1 2002-06-24 David S. Miller <davem@redhat.com>
3 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
4 32-bit ABI libfuncs to NULL.
6 * config/sparc/sparc.md: Use define_insn_and_split.
8 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
9 optabs if op1 is const0_rtx.
11 2002-06-24 Neil Booth <neil@daikokuya.co.uk>
13 * cpptrad.c (scan_out_logical_line): Check recursing only when
14 we know we have a macro invocation in the function-like case.
15 Only call _cpp_handle_directive if we know we have a good
16 directive, or we want to reject a bad directive.
18 2002-06-24 Alan Modra <amodra@bigpond.net.au>
20 * doloop.c (doloop_valid_p): Correct comment.
21 (doloop_modify_runtime <abs_inc != 1>): Simplify.
22 (doloop_modify_runtime <do-while>): Don't emit code when NE.
24 Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
26 * config.gcc: Add support for ip2k.
28 2002-06-23 Jan Hubicka <jh@suse.cz>
29 Jeff Law <law@redhat.com>
31 * function.h (struct emit_status): Clarify potential contents
32 of regno_reg_rtx array.
33 * integrate.c (copy_rtx_and_substitute): Update comments. Make
34 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
36 * reg-stack.c (convert_regs_exit): Push the registers to stack in
39 2002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
42 * function.c (assign_stack_temp_for_type): Do not return
43 the same MEM rtx for multiple uses of a stack slot.
45 2002-06-22 David S. Miller <davem@redhat.com>
47 PR target/6841 target/6770 target/6719
48 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
49 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
50 GENERAL_OR_EXTRA_FP_REGS.
52 2002-06-22 Neil Booth <neil@daikokuya.co.uk>
54 * cpptrad.c (struct fun_macro): Add line number.
55 (scan_out_logical_line): Set it, and use it to report unterminated
58 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
60 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
61 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
62 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
63 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
64 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
65 REGEXP_ONEOF, check_name): Const-ify.
67 2002-06-21 Matt Thomas <matt@3am-software.com>
69 * config/vax/vax.c (vax_output_function_prologue): Use
70 REGISTER_PREFIX. Fix some indentation.
71 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
72 (VAX_ISTREAM_SYNC): Define.
73 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
74 i-stream sync to the end.
75 (REGISTER_PREFIX): Define as "".
76 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
78 2002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
80 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
83 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
85 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
86 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
88 2002-06-21 Matt Thomas <matt@3am-software.com>
90 * config/vax/netbsd.h: Adjust a comment.
91 (TARGET_DEFAULT): Redefine as 0.
93 2002-06-21 Richard Henderson <rth@redhat.com>
95 * bb-reorder.c (make_reorder_chain_1): Search harder for the
96 vax casesi fallthru edge.
97 * cfglayout.c (cleanup_unconditional_jumps): Use
98 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
99 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
100 block after ADDR_VEC.
102 2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
104 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
106 2002-06-21 Neil Booth <neil@daikokuya.co.uk>
108 * cpperror.c (cpp_error): For traditional CPP, default to
109 diagnostics on pfile->line.
110 * cpplib.c (prepare_directive_trad): Set line number for
111 diagnostics for #define too.
112 * cpptrad.c (skip_whitespace): Skip comments properly.
113 (_cpp_expansions_different_trad): Initialize quote2.
115 2002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
117 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
118 * config/mmix/mmix.h: Ditto.
119 * config/mmix/mmix-protos.h: Ditto.
120 * config/mmix/mmix.c: Ditto. Fix typo in comment.
121 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
122 comment. Comment extra CC modes.
124 2002-06-20 Jan Hubicka <jh@suse.cz>
126 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
127 (scope_to_insns_finalize): Do not call set_block_levels; handle
129 (choose_inner_scope): New.
130 * rtl.h (choose_inner_scope): Declare.
132 2002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
134 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
136 * pa.c (pa_asm_output_mi_thunk): Likewise.
137 (n_deferred_plabels): Change type to size_t.
138 (output_deferred_plabels, output_call): Use size_t instead of int.
140 2002-06-20 Richard Henderson <rth@redhat.com>
143 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
144 pattern and adjust constraints for coldfire.
146 2002-06-20 Richard Henderson <rth@redhat.com>
148 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
150 2002-06-20 Chris Demetriou <cgd@broadcom.com>
152 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
154 2002-06-20 Chris Demetriou <cgd@broadcom.com>
156 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
158 2002-06-20 Stan Shebs <shebs@apple.com>
160 * dominance.c: Include errors.h instead of error.h.
162 2002-06-20 Neil Booth <neil@daikokuya.co.uk>
164 * cppexp.c (cpp_interpret_integer): Don't force traditional
165 numbers to be unsigned.
166 * cpplib.c (prepare_directive_trad): Set line number for
168 * cpptrad.c (scan_out_logical_line): Continue scanning out
170 * gcc.c (trad_capable_cpp): Use cc1 always.
172 2002-06-20 Jeffrey Law <law@redhat.com>
174 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
175 elimination in leaf functions by default yet.
177 2002-06-20 Richard Sandiford <rsandifo@redhat.com>
179 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
181 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
183 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
185 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
188 Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
189 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
191 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
193 * basic-block.h: Do not include et-forest.h
194 (dominance_info): Declare as struct dominance-info.
195 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
197 * dominance.c (struct dominance_info): Define.
198 (BB_NODE, SET_BB_NODE): New macros.
199 (bb_hash_func, bb_eq_func): Kill.
200 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
201 nearest_common_dominator, dominated_by_p, recount_dominator,
202 add_to_dominance_info, delete_from_dominance_info): update for new
204 (get_dominated_by, redirect_immediate_dominators): Rewrite using
206 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
207 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
210 * et-forest.h: Update copyright; revamp all function to operate on
212 (et_forest_value): Kill.
213 (et_forest_enumerate_sons, et_forest_node_value): New.
214 * et-forest.c: Update copyright.
215 * et-forest.h: Update copyright; revamp all function to operate on
217 (et_forest_value): Kill.
218 (et_forest_enumerate_sons, et_forest_node_value): New.
220 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
222 * basic-block.h: Inlude et-forest.h
223 (basic_block_def): Kill dominator.
224 (dominance_info): New type.
225 (loops): Use dominace_info.
226 (dominace handling functions): Take dominace_info as argument
228 (create_preheader): Likewise.
229 * cfg.c (entry_exit_blocks): Kill dominator.
230 (dump_flow_info): Do not dump dominators.
231 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
233 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
234 (flow_loops_pre_header_scan, make_forwarder_block,
235 canonicale_loop_headers, flow_loops_find): Likewise.
236 * dominance.c: Include error.h
237 (idoms_to_doms): Kill.
238 (bb_hash_func, bb_eq_func): New static functions.
239 (debug_dominace_info): New global function.
240 (calculate_dominance_info): Use new et forest structure.
241 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
242 get_dominated_by, redirect_immediate_dominators,
243 nearest_common_dominator, dominated_by_p, verify_dominators,
244 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
245 delete_from_dominance_info): New global functions.
246 * gcse.c (domnators): CHange to dominance_info.
247 (alloc_hoist_mem): Do not alloc dominators
248 (free_code_hoist_mem): Use free_dominance_info.
249 (compute_code_hoist_data): Use dominance_info.
250 (hoist_code): Likewise.
251 * ifcvt.c (post_dominators): Likewise.
252 (find_if_case_2, if_convert): Likewise.
253 * predict.c (process_note_predictions, process_note_prediction,
254 estimate-probability): Likewise.
255 * sched-rgn.c (find_rgns, init_regions): Likewise.
256 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
257 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
258 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
259 find_evaluations, convert_to_ssa): Likewise.
260 * ssa.h (compute_dominance_frontiers): Likewise.
262 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
264 * Makefile.in (et-forest.c): Add.
265 * et-forest.c: New file.
266 * at-forest.h: New file.
268 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
270 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
271 array size calculation.
272 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
275 * diagnostic.c (diagnostic_kind_text): Const-ify.
276 * gengtype.c (lang_names): Likewise.
278 Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
280 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
282 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
284 * config/sol2.h: New file.
285 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
286 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
287 (sparc-*-chorusos*): Likewise.
288 (sparc-*-elf*): Likewise.
289 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
290 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
291 (sparc-hal-solaris2*): Likewise.
292 (sparc-*-solaris2*): Likewise.
293 (sparclite-*-elf*): Likewise.
294 (sparc86x-*-elf*): Likewise.
295 (sparc64-*-elf*): Likewise.
297 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
299 (ASM_SPEC): Override config/sol2.h version for now.
300 Removed obsolete GAS_REJECTS_MINUS_S variant.
301 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
302 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
303 (TARGET_OS_CPP_BUILTINS): Likewise.
305 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
306 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
308 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
309 (ASM_CPU_SPEC): Define.
310 (SUBTARGET_EXTRA_SPECS): Define.
312 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
313 in config/sparc/sol2.h.
314 (ASM_SPEC): Moved to config/sol2.h.
315 (CPP_CPU_SPEC): Simplified.
316 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
318 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
319 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
320 STARTFILE_ARCH64_SPEC.
321 (STARTFILE_SPEC): Moved to config/sol2.h
322 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
323 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
324 (LINK_ARCH64_SPEC): Simplified.
325 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
326 (LINK_SPEC): Moved to config/sol2.h
328 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
330 Use BITS_PER_WORD for size.
331 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
332 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
333 (CPP_PREDEFINES): Removed OS-specific part handled by
334 TARGET_OS_CPP_BUILTINS.
335 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
336 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
337 (ASM_SPEC): Moved to config/sol2.h.
338 (PREFERRED_DEBUGGING_TYPE): Likewise.
339 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
340 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
341 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
342 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
344 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
345 * config/i386/sol2gas.h: Removed.
347 Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
349 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
351 2002-05-20 Richard Henderson <rth@redhat.com>
353 * c-common.c (c_common_get_alias_set): Correctly handle characters.
354 Rearrange order of expressions; don't handle vectors here.
355 * alias.c (get_alias_set): Let vectors match their components.
357 2002-06-19 Chris Demetriou <cgd@broadcom.com>
359 * config/mips/mips.c (mips_emit_prefetch): Use hints which
360 match desired locality.
362 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
364 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
365 (h8300_insert_attributes): New.
367 2002-06-19 Akim Demaille <akim@epita.fr>
369 * c-parse.in (initelt: identifier ':' initval): Add an empty
370 action to fix a type clash.
371 (aliasdecl, classdef): Add the missing closing `;'.
373 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
374 $$ = $1 type clashes.
376 2002-06-19 Eric Christopher <echristo@redhat.com>
378 * config/mips/mips.c (symbol_operand): New function.
379 (mips_emit_prefetch): Ditto.
380 * config/mips/mips-protos.h: Define.
381 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
382 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
383 (LEGITIMIZE_ADDRESS): Ditto.
384 * config/mips/mips.md (prefetch, prefetch_si_address,
385 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
387 2002-06-19 Eric Christopher <echristo@redhat.com>
389 * config/fp-bit.h: Add unordered defines for gofast.
391 2002-06-19 Vladimir Makarov <vmakarov@redhat.com>
393 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
394 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
395 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
396 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
397 checking and without it.
398 (decl_name, decl_mode_check_failed, regexp_name,
399 regexp_mode_check_failed): New functions.
400 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
401 gen_presence_set, gen_absence_set, gen_automaton,
402 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
403 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
404 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
405 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
406 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
407 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
408 (decl_hash, decl_eq_p): Use the macros.
409 (find_decl): Ditto. Set up mode of work_decl.
410 (process_excls, process_presence_absence, process_decls,
411 check_automaton_usage, process_regexp, process_regexp_decls,
412 check_usage, loop_in_regexp, check_loops_in_regexps,
413 process_regexp_cycles, add_advance_cycle_insn_decl,
414 initiate_states, initiate_excl_sets,
415 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
416 transform_2): Use the macros.
417 (transform_3): Ditto. Check mode before making transformations of
419 (regexp_transform_func, transform_insn_regexps,
420 process_unit_to_form_the_same_automaton_unit_lists,
421 form_the_same_automaton_unit_lists_from_regexp,
422 form_the_same_automaton_unit_lists,
423 process_seq_for_forming_states, process_alts_for_forming_states,
424 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
425 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
426 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
427 units_to_automata_heuristic_distr, create_ainsns,
428 units_to_automata_distr, create_automata): Use the macros.
429 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
430 (longest_path_length, min_issue_delay_pass_states,
431 output_dead_lock_vect, output_tables, output_insn_code_cases,
432 output_internal_insn_latency_func, output_print_reservation_func,
433 output_description, output_automaton_units, generate): Use the
435 (make_insn_alts_attr): Ditto. Check case when there are not
436 alternatives in the reservation.
437 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
438 make_bypass_attr, form_important_insn_automata_lists,
439 expand_automata): Use the macros.
441 2002-06-20 Tim Josling <tej@melbpc.org.au>
443 * Makefile.in: Clean up code to check for misspecified languages
446 2002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
448 * cpptrad.c (_cpp_replacement_text_len): initialize len.
450 2002-06-19 Jason Merrill <jason@redhat.com>
452 * Makefile.in (unstrap, restrap): New targets.
453 (bootstrap): Mention restrap.
455 2002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
457 * except.c (ehl_free): Remove.
459 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
460 builtin_define and builtin_define_std.
462 2002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
464 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
465 (sCOND): Restrict operand class so that gcc knows how to reload them.
466 (bitfield_set): Merge two unnamed insn's using alternatives.
467 (call_value): Remove constraint on unused uperand.
468 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
469 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
471 * longlong.h (count_trailing_zeros): Escape newline and beautify.
473 2002-06-19 Mark Mitchell <mark@codesourcery.com>
475 * Makefile.in (QMTEST_DIR): Simplify definition.
477 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
479 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
482 2002-06-19 Neil Booth <neil@daikokuya.co.uk>
484 * cpphash.h (struct cpp_reader): Make date and time strings.
485 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
486 _cpp_replacement_text_len): New.
487 * cppinit.c (cpp_create_reader): Update.
488 (init_builtins): Register appropriate builtins for -traditional-cpp.
489 * cppmacro.c (new_number_token): Remove.
490 (_cpp_builtin_macro_text): New.
491 (builtin_macro): Use it.
492 (cpp_macro_definition): Update to handle traditional macros.
493 * cppmain.c (cb_line_change): Don't do column positioning for
495 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
497 (skip_whitespace): Fix.
498 (maybe_start_funlike): Don't set state.parsing_args.
499 (scan_out_logical_line): Remove duplicate error. Use lex_state
500 rather than state.parsing_args.
501 (push_replacement_text): Handle builtins.
502 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
504 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
505 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
507 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
508 attribute __always_inline__.
510 2002-06-18 Bob Wilson <bob.wilson@acm.org>
512 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
513 when generating the call to _mcount.
514 (NO_PROFILE_COUNTERS): Define.
516 2002-06-18 Richard Henderson <rth@redhat.com>
518 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
521 Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
523 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
524 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
525 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
526 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
528 * sh-protos.h (sh_pr_interrupt): Declare.
529 * sh.c (sh_pr_interrupt): New function.
530 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
531 (sh_hard_regno_rename_ok): Likewise.
532 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
534 2002-06-18 Vladimir Makarov <vmakarov@redhat.com>
536 * rtl.def (DEFINE_AUTOMATON): Add description of new options
537 `time' and `v'. Fix incorrect description of option `w'.
539 * doc/md.texi: Ditto.
541 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
542 (gen_automata_option): Process the new options.
543 (transform_2, transform_3): Initialize some variables.
544 (initiate_automaton_gen): Use the new macros.
546 2002-06-18 Richard Sandiford <rsandifo@redhat.com>
548 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
549 (mips_set_return_address, mips_restore_gp): Declare.
550 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
551 (current_frame_info): Remove.
552 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
553 * config/mips/mips.c: Remove uses of current_frame_info.
554 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
555 (struct machine_function): Add 'frame' and 'insns_len'.
556 (current_frame_info, zero_frame_info): Remove.
557 (mips_restore_gp, mips_set_return_address): New.
558 (mips_initial_elimination_offset): New.
559 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
560 (eh_return define_split): Use mips_set_return_address.
562 2002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
564 * cpplib.c (dtable): Update.
565 (end_directive): Decrement expansion prevention count.
566 Clear state.in_expression.
567 (prepare_directive_trad): Set state.in_expression.
568 Increment expansion prevention count.
569 * cpptrad.c (enum ls): New.
570 (_cpp_overlay_buffer): Set overlaid_buffer.
571 (_cpp_remove_overlay): Use overlaid_buffer.
572 (_cpp_read_logcial_line_trad): Update buffer when it might
574 (scan_out_logical_line): Handle state transitions for assertions
575 and defined() in #if, and for funlike invocations including the
576 directive case. Handle '<' and '>' as a quote mechanism in
577 #include. Warn about unterminated macro invocations.
578 * cpphash.h (struct lexer_state): New member in_expression.
579 (struct cpp_reader): New member overlaid buffer.
581 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
583 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
586 2002-06-18 Alan Modra <amodra@bigpond.net.au>
588 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
590 * doloop.c (doloop_optimize): Extract pattern from insn.
592 2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
594 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
596 2002-06-17 Jeff Law <law@redhat.com>
598 * libgcc2.c: Do not include symcat.h or machmode.h.
600 2002-06-17 Richard Henderson <rth@redhat.com>
603 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
605 2002-06-17 Tom Tromey <tromey@redhat.com>
607 * dwarfout.c: Include function.h.
609 2002-06-17 Andreas Schwab <schwab@suse.de>
611 * print-rtl.c (print_rtx): Print space before vector, not after.
612 (debug_rtx): Clear sawclose before printing.
613 (debug_rtx_list): Print newline after each list element.
614 (debug_rtx_range): Likewise.
616 2002-06-17 Richard Henderson <rth@redhat.com>
618 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
619 (current_function_funcdef_no): Similarly.
620 * function.c (funcdef_no): Similarly.
621 (prepare_function_start): Set current_function_funcdef_no.
622 (expand_function_start): Don't set current_function_profile_label_no.
623 * dwarf2out.h (current_funcdef_number): Remove.
624 * dwarf2out.c (current_funcdef_number): Remove. Replace with
625 current_function_funcdef_no throughout.
626 * dwarfout.c, vmsdbgout.c: Similarly.
627 * except.c (sjlj_funcdef_number): Remove.
628 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
629 (output_function_exception_table): Likewise.
630 * final.c (profile_function): Use current_function_funcdef_no
631 instead of current_function_profile_label_no.
633 2002-06-17 Vladimir Makarov <vmakarov@redhat.com>
635 * sched-ebb.c (init_ready_list): Check INSN_P first.
637 Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
639 * sh.md (divsi3): Update way how to find insns in a sequence.
641 * reload1.c (merge_assigned_reloads): Don't change reloads
642 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
643 to RELOAD_OTHER when there are conflicting input reloads.
645 2002-06-17 Richard Earnshaw (rearnsha@arm.com)
647 * function.c (epilogue_done): Correctly build a sequence of insns for
650 2002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
652 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
655 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
657 2002-06-16 Richard Henderson <rth@redhat.com>
659 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
660 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
662 2002-06-16 Richard Henderson <rth@redhat.com>
665 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
667 2002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
669 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
670 * config/i386/i386-aout.h, config/i386/i386elf.h,
671 config/i386/sysv4.h: Remove CPP_PREDEFINES.
672 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
673 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
674 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
675 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
676 CPP_PREDEFINES and part of CPP_SPEC.
677 * config/i386/sysv4-cpp.h: New.
679 2002-06-16 Richard Henderson <rth@redhat.com>
682 * dwarf2out.c (modified_type_die): Don't assign the qualified die
683 to the unqualified type.
685 Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
687 * i386-protos.h (x86_field_alignment): Declare.
688 * i386.c (x86_field_alignment): Define.
689 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
690 (BIGGEST_FIELD_ALIGNMENT): Kill.
692 2002-06-16 Richard Henderson <rth@redhat.com>
694 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
696 2002-06-16 Richard Henderson <rth@redhat.com>
698 * c-common.c (flag_ms_extensions): Move from c++ front end.
699 * c-common.h (flag_ms_extensions): Declare.
700 * c-decl.c (c_decode_option): Add -fms-extensions.
701 (grokfield): Don't accept anonymous structures in ISO C mode;
702 accept only unnamed anonymous structures in GNU C mode; accept
703 Plan 9 extensions in MS mode.
704 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
705 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
706 (extension): Clear flag_iso.
707 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
709 2002-06-16 Hans-Peter Nilsson <hp@axis.com>
712 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
713 early if current_function_epilogue_delay_list is non-empty.
714 * config/cris/cris.md ("return"): Add sanity check asserting that
715 current_function_epilogue_delay_list is empty.
717 2002-06-16 Jeff Law <law@redhat.com>
719 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
720 sharing of hard registers.
722 * toplev.c (rest_of_compilation): Remove redundant conditional.
724 * toplev.c (rest_of_compilation): Perform a simpler, less costly
725 cleanup of the CFG when not optimizing.
727 2002-06-16 Alan Modra <amodra@bigpond.net.au>
729 * gcc.c (main): Correct startfile_prefix_spec check.
731 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
733 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
734 include both darwin.o and rs6000-c.o.
736 2002-06-15 Roger Sayle <roger@eyesopen.com>
738 * expr.c (compare_from_rtx): Call simplify_relational_operation
739 on all comparisons, not just those between integer constants,
740 with the correct (possibly unsigned) comparison code.
741 (do_compare_rtx_and_jump): Likewise.
743 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
745 * Makefile.in (tm_defines): New configuration variable.
746 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
747 Pass tm_defines in TM_DEFINES.
748 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
749 * config.gcc (tm_defines): New configuration variable.
750 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
751 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
752 * configure.in: Substitute tm_defines.
753 * configure: Rebuilt.
754 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
755 * doc/install.texi: Update.
756 * pa/pa-700.h: Delete file.
757 * pa/pa-7100.h: Delete file.
759 2002-06-15 Roger Sayle <roger@eyesopen.com>
761 * fold-const.c (comparison_to_compcode): New function to convert
762 an comparison TREE CODE into a bit-based representation.
763 (compcode_to_comparison): New function to convert from this bit
764 based representation back to a comparison TREE CODE.
765 (fold_truthop): Simplify (x<y) && (x==y) and related composite
768 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
770 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
772 * stor-layout.c (compute_record_mode): Remove check for
773 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
774 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
775 MEMBER_TYPE_FORCES_BLK.
777 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
779 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
781 2002-06-14 Jeff Sturm <jsturm@one-point.com>
783 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
785 2002-06-14 Steve Ellcey <sje@cup.hp.com>
787 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
788 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
789 * configure, config.in: Regenerate.
791 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
793 * loop.c (check_final_value): Use v->always_executed
794 instead of v->always_computable.
795 * unroll.c (final_giv_value): Don't calculate the final
796 value as a function of the biv if the giv is not computed
797 for every loop iteration.
799 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
801 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
803 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
806 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
807 the truncation down when the target type is signed.
808 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
809 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
810 the conversion if the target type is a smaller type.
812 2002-06-14 Richard Henderson <rth@redhat.com>
814 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
815 earlier. Re-factor comparisons vs extrema.
817 2002-06-14 Richard Henderson <rth@redhat.com>
819 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
821 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
823 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
824 * sched-deps.c (add_dependence): Likewise.
825 (group_leader): Likewise.
826 * sched-rgn.c (init_ready_list): Likewise.
827 * doc/rtl.texi: Adjust accordingly.
829 2002-06-13 Jeffrey Law <law@redhat.com>
831 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
832 null pointer checks were eliminated. Update prototype.
833 (delete_null_pointer_checks): Similarly.
834 * rtl.h (delete_null_pointer_checks): Update prototype.
835 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
836 delete_null_pointer_checks deletes one or more null
837 pointer checks. Do not run cleanup_cfg before gcse, the
838 CFG is accurate and optimized at that point..
840 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
843 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
845 * Makefile.in (libgcc.mk): Depend on specs.
847 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
849 * sh.md (mulsi3): Update way how to find insns in a sequence.
851 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
853 * sh.h: Define HARD_REGNO_RENAME_OK
854 * sh.c: sh_hard_regno_rename_ok: New. If current function has
855 interrupt_handler attribute, only registers saved on stack are OK.
856 * sh-protos.h: Declare sh_hard_regno_rename_ok.
858 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
860 * config/sh/sh.md (jump): Emit jump insn.
861 (call_pcrel): Get pattern of the result of gen_call_site.
862 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
864 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
866 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
867 * cpptrad.c: Update comments.
868 (skip_whitespace, copy_comment): Take a new parameter.
869 (skip_escaped_newlines): Don't duplicate escaped newline test.
870 (copy_comment): Different location for CUR, decide here how
871 to copy / replace the comment.
872 (skip_whitespace): Copy whitespace.
873 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
874 (scan_out_logical_line): Let copy comment handle keeping or
876 (scan_parameters, _cpp_create_trad_definition): Update.
878 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
880 * reload.c (get_secondary_mem,find_reloads_address,
881 find_reloads_address_1): Pass reference to MEM to find_reloads_address
882 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
884 2002-06-13 Jessica Han <jessica@cup.hp.com>
886 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
887 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
888 * doc/tm.texi: Document them.
889 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
890 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
891 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
892 (ASM_OUTPUT_FDESC): Likewise.
894 2002-06-13 Eric Christopher <echristo@redhat.com>
896 * diagnostic.c (output_format): Fix thinko.
898 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
900 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
901 (DWARF2_UNWIND_INFO): Define to 0.
903 * config/sh/sh.c (calc_live_regs): Don't use initial_value
904 optimization for PR_MEDIA_REG.
906 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
908 * cpphash.h (_cpp_lex_identifier_trad): Remove.
909 * cpplib.c (end_directive): Don't skip, always remove overlay
911 (prepare_directive_trad): Handle NULL pfile->directive.
912 (_cpp_handle_directive): Always call prepare_directive_trad
914 * cppmain.c (check_multiline_token): Rename account_for_newlines,
916 (scan_translation_unit_trad): Use it.
917 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
918 output, get escaped newline in comment close correct.
919 (check_output_buffer, skip_whitespace): Update.
920 (_cpp_lex_identifier_trad): Remove.
921 (scan_out_logical_line): Handle -C and comments in directives
924 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
926 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
927 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
928 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
929 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
930 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
931 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
932 (SELECT_SH5_COMPACT_NOFPU): Likewise.
933 (TARGET_SWITCHES): Use them.
934 (TARGET_CPU_DEFAULT): Define if not already defined.
935 (TARGET_DEFAULT): Use it.
936 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
937 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
938 * config/sh/t-monolib: New file.
940 2002-06-13 Roger Sayle <roger@eyesopen.com>
942 * toplev.c (rest_of_compilation): Simplify (and correct) the
943 logic of the first delete-null-pointer-checks pass.
945 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
947 * i386.c (ix86_expand_movstr): Fix pasto.
949 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
951 * reload.c (find_valid_class): Fix thinko in my previous patch.
953 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
955 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
956 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
957 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
958 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
960 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
962 * tree-inline.c (expand_call_inline): Don' mess with _DECL
965 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
967 * diagnostic.c (output_format): Recognize "%H" as a format
968 specifier for a location_t.
969 (text_specifies_location): New function.
970 (diagnostic_set_info): Use it.
972 2002-06-13 Jeffrey Law <law@redhat.com>
974 * emit-rtl.c (static_regno_reg_rtx): Define.
975 (init_emit_once): Initialize static_regno_reg_rtx.
976 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
977 of building new hard reg objects once per function.
978 (gen_rtx_REG): Try to share hard regs.
979 * regclass.c (init_fake_stack_mems): New function broken out from
981 * rtl.h (init_fake_stack_mems): Declare.
982 * toplev.c (lang_independent_init): Call init_regs before
983 init_emit_once. Call init_fake_stack_mems after init_emit_once.
985 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
987 * alias.c (argument_registers): Remove.
988 (init_alias_once): Initialize static_reg_base_value here. Remove
989 initialization of argument_registers.
990 (init_alias_once_per_function): Remove.
991 (init_alias_analysis): Copy all the entries from static_reg_base_value
992 into new_reg_base_value all at once.
993 * rtl.h (init_alias_once_per_function): Remove declaration.
994 * function.c (prepare_function_start): Do not call
995 init_alias_once_per_function.
997 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
998 starting a sequence and emitting an INSN.
1000 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
1002 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
1004 2002-06-13 David S. Miller <davem@redhat.com>
1006 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
1008 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
1010 * cpplib.c (end_directive): Handle line skipping. Only remove
1011 the rest of the line if the directive was valid.
1012 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
1013 expanding a traditional macro.
1014 * cpptrad.c (recursive_macro): New.
1015 (read_logical_line_trad): Handle skipping.
1016 (scan_out_logical_line): Continue after a successful directive.
1017 Don't expand macros whilst skipping, or if recursing.
1018 (_cpp_create_trad_definition): scan_out_logical_line now sets
1019 the output current position.
1021 2002-06-12 Eric Christopher <echristo@redhat.com>
1023 From Chris Demetriou <cgd@broadcom.com>
1024 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
1026 (ISA_HAS_MADD_MSUB): Ditto.
1027 (ISA_HAS_NMADD_NMSUB): Ditto.
1029 2002-06-12 Eric Christopher <echristo@redhat.com>
1031 * config.gcc: Consolidate little endian handling and
1032 little/big endian targets.
1033 * config/mips/elfl.h: Remove file.
1034 * config/mips/elfl64.h: Ditto.
1035 * config/mips/ecoffl.h: Ditto.
1036 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
1038 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
1040 * gengtype.h (xvasprintf): New prototype.
1041 (xasprintf): New prototype.
1043 (get_output_file): Return an outf_p.
1044 (header_file): Is now an outf_p.
1045 (base_files): Now are outf_p.
1047 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
1048 rather than stdio operations. Use xasprintf in a few places,
1052 (struct filemap): Delete.
1054 (output_files): New.
1056 (create_file): Create an outf_p. Add parameter to indicate output
1057 file name, change all callers.
1058 (open_base_files): Create gtype-desc.c here.
1059 (get_output_file_with_visibility): Rewrite.
1060 (get_output_file_name): Just look at 'name' field in struct outf.
1061 (close_output_files): Rewrite.
1063 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
1065 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
1066 (MASK_G_FLOAT): Define.
1067 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
1068 (TARGET_SWITCHES): Likewise.
1069 (TARGET_DEFAULT): Likewise.
1071 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
1073 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
1074 * config/mips/mips.c (mips_output_filename): Don't print a
1075 ".file" directive if we are using DWARF-2.
1076 (mips_output_function_prologue): Do not emit source file
1077 name for TARGET_GAS.
1079 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
1081 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
1082 decide whether emit the short opcode.
1083 * i386.h (x86_shift1): Declare.
1084 (TARGET_SHIFT1): New macro.
1085 * i386.c (x86_shift1): New global variable.
1087 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
1088 unconditionally; make loop to rebuild CFG; kill unnecesary
1089 find_basic_block calls; kill compute_bb_for_insn call.
1090 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
1091 * haifa-sched.c (sched_init): Likewise.
1092 * ssa-ccp.c (ssa_const_prop): Likewise.
1093 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1095 2002-06-11 David S. Miller <davem@redhat.com>
1097 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
1100 2002-06-11 Richard Henderson <rth@redhat.com>
1102 * c-common.c (builtin_define_type_max): New.
1103 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
1104 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
1106 From Joseph S. Myers:
1107 * glimits.h: Rewrite to expect the double underscore definitions
1110 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
1111 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
1112 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
1113 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
1114 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
1115 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
1116 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
1117 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
1119 2002-06-11 Richard Henderson <rth@redhat.com>
1121 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
1122 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
1123 (code_for_builtns): Update.
1124 (alpha_init_builtins): Add __builtin_thread_pointer and
1125 __builtin_set_thread_pointer.
1126 (alpha_expand_builtin): Handle void builtins.
1127 * doc/extend.texi (Alpha Built-in Functions): Update.
1129 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
1132 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
1134 2002-06-11 Zack Weinberg <zack@codesourcery.com>
1136 * config.gcc: Make the name of the extra-modes file adjustable
1138 (s390x, strongarm, xscale stanzas): Use this facility.
1139 * configure.in: Update to match.
1140 * configure: Regenerate.
1142 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
1144 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
1145 max/mins as unsigned GE compares.
1147 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
1149 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
1150 * config/vax/bsd.h: New file.
1151 * config/vax/netbsd.h: Add missing notice.
1152 (CPP_PREDEFINES): Remove.
1153 (TARGET_OS_CPP_BUILTINS): Define.
1154 (CPP_SPEC): Use NETBSD_CPP_SPEC.
1155 * config/vax/openbsd.h: Update copyright years.
1156 (CPP_PREDEFINES): Remove.
1157 (TARGET_OS_CPP_BUILTINS): Define.
1158 * config/vax/ultrix.h: Likewise.
1159 * config/vax/vaxv.h: Likewise.
1160 * config/vax/vms.h: Likewise.
1161 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
1162 (CPP_PREDEFINES, CPP_SPEC): Remove.
1164 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
1166 * i386.md (addqi_1_slp, subqi_1_slp
1167 (andqi_ext0, testqi_ext0): Remove unnecesary check.
1168 (addhi*, addqi*): Simplify "dec" condition.
1169 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
1170 (and, or, xor to QImode splitters): New.
1173 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
1174 (andqi_ext_1_rex64): New.
1178 (rotrqi3*_slp): New.
1179 (rotlqi3*_slp): New.
1181 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
1183 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
1185 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
1186 (CPP_ENDIAN_LITTLE_SPEC): Delete.
1187 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
1188 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
1189 __LONG_DOUBLE_128__ setting, _CALL_* setting.
1190 (CPP_DEFAULT_SPEC): Delete.
1191 (CPP_FLOAT_DEFAULT_SPEC): Delete.
1192 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
1193 (CPP_SYSV_DEFAULT_SPEC): Delete.
1194 (CPP_ENDIAN_BIG_SPEC): Delete.
1195 (CPP_ENDIAN_LITTLE_SPEC): Delete.
1196 (CPP_ENDIAN_SPEC): Delete.
1197 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
1198 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
1199 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
1200 cpp_longdouble_default.
1201 * config/rs6000/softfloat.h: Delete.
1202 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
1203 (EXTRA_SPECS): Delete cpp_cpu.
1204 (TARGET_CPU_CPP_BUILTINS): New.
1205 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
1207 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
1208 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
1209 (CPP_DEFAULT_SPEC): Delete.
1210 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
1211 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
1212 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
1213 (CPP_DEFAULT_SPEC): Delete.
1214 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1215 (CPLUSPLUS_CPP_SPEC): Likewise.
1216 (CPP_CPU_SPEC): Delete.
1217 (CPP_DEFAULT_SPEC): Delete.
1218 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1219 (CPLUSPLUS_CPP_SPEC): Likewise.
1220 (CPP_CPU_SPEC): Delete.
1221 (CPP_DEFAULT_SPEC): Delete.
1222 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
1223 (CPP_DEFAULT_SPEC): Delete.
1224 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
1225 (CPP_DEFAULT_SPEC): Delete.
1227 * doc/gty.texi: Small updates.
1229 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
1231 * objc/objc-act.c (warn_with_ivar): Adjust calls to
1232 diagnostic_count_error.
1233 (warn_with_method): Likewise.
1235 * diagnostic.h (warnings_are_errors_message): New field of
1237 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
1239 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
1240 (diagnostic_count_diagnostic): Make aware of other kinds of
1242 (diagnostic_initialize): Initialize warnings_are_errors_message field.
1244 2002-06-11 Tom Tromey <tromey@redhat.com>
1247 * fold-const.c (fold_convert): Don't modify existing tree's type.
1249 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
1251 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
1253 2002-06-11 Richard Henderson <rth@redhat.com>
1255 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
1257 2002-06-11 Richard Henderson <rth@redhat.com>
1259 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
1260 DWARF2_UNWIND_INFO is false.
1262 2002-06-11 Bob Wilson <bob.wilson@acm.org>
1264 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
1266 * config/s390/s390.c (emit_prologue): gen_store_multiple
1267 returns an insn now, not a pattern.
1269 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1271 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
1274 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
1276 * i386.c (x86_promote_QImode): Set for Athlon
1277 (x86_fast_prefix): New global variable.
1278 (x86_arch_always_fancy_math_387): Fix formating.
1279 * i386.h (x86_fast_prefix): Declare
1280 (TARGET_FAST_PREFIX): define.
1281 * i386.md (and to strict_low_part, HI to SI
1282 promoting splitter): Use new macro.
1284 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
1286 2002-06-11 Zack Weinberg <zack@codesourcery.com>
1288 * Makefile.in (distclean): Delete junk left in testsuite
1291 2002-06-11 Jeffrey Law <law@redhat.com>
1293 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
1294 last insn created by the splitter.
1296 * caller-save.c (init_caller_save): Move creation of SAVEINSN
1297 and RESTINSN into into the scope of the sequence.
1299 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
1302 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
1304 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
1305 not the pattern. So extract the pattern from the insn.
1307 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
1309 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
1311 * config/s390/s390.md (movsi): Only use floating point
1312 register alternatives when operands are already fprs.
1313 (movdi_31, movdi_64): Likewise.
1315 2002-06-11 David S. Miller <davem@redhat.com>
1317 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
1318 Only run RTX equality checks on INSN_P rtl.
1320 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
1322 * config/s390/s390.md (reload_base, ltorg): Remove.
1323 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
1324 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
1325 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
1326 s390_asm_output_pool_prologue): Likewise.
1327 * s390.h (s390_pool_start_insn): Likewise.
1329 * s390.c (s390_output_symbolic_const): Remove support for
1330 old-style pool chunks.
1331 (s390_function_epilogue): Likewise.
1332 (s390_output_constant_pool): Likewise. Also, fix incorrect
1333 alignment for 64-bit literal pools.
1334 (print_operand_address): Remove 'y' and 'Y' format flags.
1335 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
1336 old-style pool chunks.
1337 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
1338 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
1339 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
1341 * s390.c (consttable_operand): New function.
1342 * s390-protos.h (consttable_operand): Declare it.
1343 * s390.h (PREDICATE_CODES): Add consttable_operand.
1344 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
1345 consttable_sf, consttable_df, pool_start_31, pool_end_31,
1346 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
1347 * s390.c (struct constant, struct constant_pool): New data types.
1348 (constant_modes, gen_consttable): New variables.
1349 (s390_start_pool, s390_end_pool, s390_add_pool,
1350 s390_dump_pool, s390_free_pool): New functions.
1351 (s390_chunkify_pool): Completely reimplement literal pool
1354 * s390.c (s390_pool_overflow): New variable.
1355 * s390.h (s390_pool_overflow): Declare it.
1356 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
1357 jumps in literal pool overflow situations.
1359 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
1360 (s390_frame_info): Account for possible use of RETURN_REGNUM
1361 by new literal pool overflow code.
1362 (s390_emit_prologue): Likewise.
1364 2002-06-05 David S. Miller <davem@redhat.com>
1366 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
1367 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
1368 emit_insns_before_scope, emit_insns_after,
1369 emit_insns_after_scope): Delete declaration.
1370 * ada/misc.c (insert_code_for): Use emit_insn* instead of
1372 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
1373 (alpha_set_memflags): Fix comment.
1374 (set_frame_related_p): Use get_insns instead of gen_sequence.
1375 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
1377 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
1379 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
1380 * config/fr30/fr30.c (fr30_move_double): Likewise.
1381 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
1383 * config/ia64/ia64.c (spill_restore_mem): Likewise.
1384 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
1386 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
1387 instead of gen_sequence.
1388 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
1389 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
1390 * config/sh/sh.c (sh_need_epilogue): Likewise.
1391 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
1393 (setjmp pattern and split): Use them to avoid splitter which emits
1395 * genattrtab.c (main): Emit include of function.h
1396 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
1397 get_insns instead of gen_sequence.
1398 * config/cris/cris.c (cris_split_movdx): Likewise.
1399 * emit-rtl.c (emit_insns*): Kill.
1400 (try_split): Expect insn list instead of SEQUENCE.
1401 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
1402 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
1403 Make them abort if a SEQUENCE is given and RTL checking is
1405 (emit_*_scope): Don't forget to set scope on final insn.
1406 (gen_sequence): Move from here...
1407 * ssa.c (gen_sequence): To here as private function.
1408 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
1410 (expand_builtin_return, expand_builtin_mathfn): Likewise.
1411 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
1412 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
1413 (expand_builtin_expect_jump): Use get_insns and fix comments.
1414 * calls.c (try_to_integrate): Use emit_insn_foo.
1415 (expand_call, emit_library_call_value_1): Likewise.
1416 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
1417 (emit_move_insn_1): Use get_insns instead of gen_sequence.
1418 (expand_expr): Use emit_insn_foo.
1419 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
1420 * except.c (build_post_landing_pads): Likewise.
1421 * flow.c (attempt_auto_inc): Likewise.
1422 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
1423 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
1424 * function.c (fixup_var_refs_insn): Use get_insns instead of
1426 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
1427 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
1428 (fixup_stack_1, purge_addressof_1, expand_main_function,
1429 get_arg_pointer_save_area): Likewise.
1430 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
1431 expand_function_end): Use emit_insn_foo.
1432 (record_insns, keep_stack_depressed): Work with insn list instead
1433 of SEQUENCE, fix comments.
1434 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
1435 noce_try_store_flag_constants, noce_try_store_flag_inc,
1436 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
1437 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
1438 (noce_process_if_block): Use get_insns instead of gen_sequence.
1439 * optabs.c (add_equal_note): Work with insn list, fix comments.
1440 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
1441 (expand_unop, expand_complex_abs, expand_unop_insn,
1442 expand_no_conflict_block): Likewise.
1443 (gen_move_insn): Use get_insns instead of gen_sequence.
1444 (gen_cond_trap): Likewise.
1445 * integrate.c (copy_rtx_and_substitute): Likewise.
1446 (emit_initial_value_sets): Use emit_insn_foo.
1447 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
1448 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
1449 now that RTL generators give insn lists.
1450 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
1451 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
1452 instead of gen_sequence.
1453 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
1454 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
1455 instead of gen_sequence.
1456 * loop.c (move_movables, emit_prefetch_instructions,
1457 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
1459 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
1460 (product_cheap_p): Likewise, and add commentary about RTL wastage
1462 * lcm.c (optimize_mode_switching): Use get_insns instead of
1464 * profile.c (gen_edge_profiler): Likewise.
1465 * regmove.c (copy_src_to_dest): Likewise.
1466 * reg-stack.c (compensate_edge): Likewise and fix comment.
1467 * gcse.c (process_insert_insn): Likewise.
1468 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
1469 * jump.c (delete_prior_computation): Update comment.
1470 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
1471 of gen_sequence, update comments to match.
1472 * recog.c (peephole2_optimize): Work with insn lists instead of
1474 * sched-vis.c (print_pattern): Abort on SEQUENCE.
1475 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
1476 Use get_insns instead of gen_sequence.
1477 (copy_loop_body): Likewise and don't emit dummy NOTE.
1478 * genrecog.c: Don't mention SEQUENCE rtl in comments.
1479 * combine.c (try_combine): Expect insn lists from split generator.
1480 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
1483 2002-06-11 Roger Sayle <roger@eyesopen.com>
1484 Andreas Jaeger <aj@suse.de>
1486 * cfgbuild.c: Update copyright years.
1488 2002-06-11 Andreas Schwab <schwab@suse.de>
1490 * config/m68k/m68k.h (PREDICATE_CODES): Define.
1492 2002-06-11 Eric Christopher <echristo@redhat.com>
1494 * doc/tm.texi (Run-time Target): Add comment about flag_iso
1496 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
1497 * config/mips/ecoffl.h: Ditto.
1498 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
1499 (CPP_PREDEFINES): Ditto.
1500 * config/mips/elfl64.h: Ditto.
1501 * config/mips/elfl.h: Ditto.
1502 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
1503 out until irix header consolidation.
1504 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
1505 with SUBTARGET_OS_CPP_BUILTINS.
1506 * config/mips/iris6.h: Ditto.
1507 (CPLUSPLUS_CPP_SPEC): Remove.
1508 * config/mips/linux.h: Ditto.
1509 * config/mips/netbsd.h: Ditto.
1510 * config/mips/openbsd.h: Ditto.
1511 * config/mips/rtems.h: Ditto.
1512 * config/mips/rtems64.h: Ditto.
1513 * config/mips/sni-svr4.h: Ditto.
1514 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
1515 ISA_MIPS32, ISA_MIPS64): New defines.
1516 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
1517 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
1518 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1519 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
1520 (TARGET_CPU_CPP_BUILTINS): Define.
1521 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
1522 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
1523 (movdicc): Remove check for ISA_MIPS32.
1524 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
1525 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
1526 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
1527 sunge_sf, sunle_df, sunle_sf): New patterns.
1529 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
1531 * Makefile.in: Update cppmain.o.
1532 * cpphash.h (struct cpp_reader): Move some members to a
1534 (trad_line): Rename saved_line.
1535 (_cpp_read_logical_line_trad): Update.
1536 (_cpp_remove_overlay): New.
1537 * cppinit.c (cpp_create_reader): No need to set saved_line.
1538 (cpp_destroy): Update.
1539 (cpp_read_main_file): Only overlay if compiling.
1540 * cpplex.c (continue_after_nul): Return false if in directive.
1541 * cpplib.c (EXPAND): New.
1542 (directive_table, SEEN_EOL): Update.
1543 (end_directive): Remove overlay if traditional; don't skip
1544 line in traditional #define.
1545 (prepare_directive_trad): New.
1546 (_cpp_handle_directive, run_directive): Update for traditional
1548 (lex_macro_node): Simplify, don't use lex_identifier_trad.
1549 * cpplib.h (struct options): Add preprocess_only.
1550 * cppmain.c: Don't include intl.h.
1551 (cpp_preprocess_file): Set options->preprocess_only.
1552 (scan_translation_unit_trad): Fix, and print line numbers.
1553 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
1554 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
1555 save_replacement_text, _cpp_create_trad_definition): Update for
1557 (_cpp_overlay_buffer): Save line number.
1558 (_cpp_remove_overlay): Rename from restore_buff, restore line.
1559 (_cpp_read_logical_line_trad): Don't handle overlays here.
1560 (scan_out_logical_line): Process directives.
1562 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
1564 * gthr-win32.h: Wrap functions in extern "C".
1565 (__gthread_key_t): Typedef as unsigned long,
1567 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
1568 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
1569 (__gthr_win32_once, __gthr_win32_key_create,
1570 __gthr_win32_key_delete, __gthr_win32_getspecific,
1571 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
1572 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
1573 __gthr_win32_mutex_unlock): Declare.
1574 (__gthread_once,__gthread_key_create,
1575 __gthread_key_delete, __gthread_getspecific,
1576 __gthread_setspecific, __gthread_mutex_init_function,
1577 __gthread_mutex_lock,__gthread_mutex_trylock,
1578 __gthread_mutex_unlock): Call corresponding
1579 __gthr_win32_* extern implementations if #defined
1580 __GTHREAD_HIDE_WIN32API.
1581 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
1582 $(srcdir)/config/i386/gthr-win32.c
1583 * config/i386/gthr-win32.c: New implementation file.
1584 (__gthr_win32_once, __gthr_win32_key_create,
1585 __gthr_win32_key_delete, __gthr_win32_getspecific,
1586 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
1587 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
1588 __gthr_win32_mutex_unlock): New functions, based on
1589 static inlines in gthr-win32.h.
1591 2002-06-10 Bob Wilson <bob.wilson@acm.org>
1593 * config/xtensa/xtensa.c (override_options): Don't warn about
1594 using -fpic or -fPIC when PIC is enabled by default.
1596 2002-06-10 Roger Sayle <roger@eyesopen.com>
1598 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
1600 2002-06-10 Zack Weinberg <zack@codesourcery.com>
1602 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
1603 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
1604 exists, substitute its pathname as @extra_modes_file@, define
1605 EXTRA_MODES_FILE to be an appropriate string to #include it
1606 with, and define EXTRA_CC_MODES to 1.
1608 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
1609 it's defined. Get rid of redundancy in calling sequence for
1610 CC; don't use it to define CCmode, to avoid a warning.
1611 * libgcc2.c: Include symcat.h for the sake of machmode.def.
1613 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
1614 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
1615 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
1617 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
1618 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
1620 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
1621 defining extra CC modes.
1623 2002-06-10 Roger Sayle <roger@eyesopen.com>
1624 Andreas Jaeger <aj@suse.de>
1626 * cfgrtl.c (create_basic_block_structure): Remove index argument
1627 and use last_basic_block++ instead. (create_basic_block): Update.
1628 * cfgbuild.c (find_basic_blocks_1): Likewise.
1630 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
1631 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
1632 * sched-ebb.c (schedule_ebbs): Likewise.
1633 * sched-rgn.c (schedule_insns): Likewise.
1634 * ssa-ccp.c (ssa_const_prop): Likewise.
1635 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
1636 * toplev.c (rest_of_compilation): Likewise.
1637 * config/ia64/ia64.c (ia64_reorg): Likewise.
1639 2002-06-10 Roger Sayle <roger@eyesopen.com>
1641 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
1642 of matching registers.
1644 2002-06-10 Roger Sayle <roger@eyesopen.com>
1646 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
1647 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
1649 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
1651 * config/mmix/mmix.h: Improve comments.
1652 (CPP_SPEC, CPP_PREDEFINES): Don't define.
1653 (TARGET_CPU_CPP_BUILTINS): Define.
1654 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
1655 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
1657 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
1659 (mmix_constant_address_p): Remove another
1660 redundant test before case.
1661 (mmix_canonicalize_comparison): Remove unused function.
1662 (mmix_print_operand_address): Don't test and adjust for operand in
1663 non-canonical format.
1664 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
1665 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
1667 2002-06-10 Zack Weinberg <zack@codesourcery.com>
1669 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
1670 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
1671 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
1672 (gen_compare): Use CCmode unconditionally.
1674 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1676 PR optimization/6759
1677 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
1680 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1683 * c-decl.c (grokfield): Allow user defined types if they declare
1684 structs or unions for unnamed fields.
1686 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1689 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
1691 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1693 PR optimization/6842
1694 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
1695 operand subreg cannot be simplified.
1697 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1699 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
1700 (compare_constant): Likewise.
1701 (output_addressed_constants): Likewise.
1703 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1705 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
1706 merge bb with itself.
1708 2002-06-10 Richard Henderson <rth@redhat.com>
1710 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
1711 (builtin_zapnot): Likewise.
1713 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
1716 2002-06-10 Eric Christopher <echristo@redhat.com>
1718 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
1719 prototype and function.
1720 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
1721 (call_insn_operand): Remove half pic references.
1722 (legitimate_address_p): Ditto.
1723 * config/i386/i386.h: Remove half pic defines.
1725 2002-06-10 Eric Christopher <echristo@redhat.com>
1727 * doc/extend.texi (Return Address): Add note explaining the side-
1728 effects of inlining on __builtin_return_address.
1730 2002-06-10 Tom Tromey <tromey@redhat.com>
1732 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
1733 (c-common.o): Depend on langhooks.h.
1735 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
1737 * cpphash.h (_cpp_read_logical_line_trad,
1738 _cpp_expansions_different_trad): Update prototypes.
1739 * cpplex.c (continue_after_nul): New.
1740 * cppmain.c: Include cpphash.h.
1741 (scan_translation_unit_trad): New.
1742 (cpp_preprocess_file): Call it.
1743 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
1745 (_cpp_expansions_different_trad): Update prototype.
1747 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
1749 Fix cfi generation for SH[1-4]:
1751 * sh.c (frame_insn): New function.
1752 (output_stack_adjust): Add parameter emit_fn. All callers changed.
1753 (push): Now returns rtx. Use frame_insn.
1754 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
1756 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
1758 2002-06-10 Zack Weinberg <zack@codesourcery.com>
1760 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
1762 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
1763 (distclean): ... not here. But do delete all testsuite/*.log,
1764 testsuite/*.sum files here. Delete mkheaders. Delete
1765 po/*.gmo and the testsuite directory in a split tree build.
1767 2002-06-10 Jeffrey Law <law@redhat.com>
1769 * alias.c (static_reg_base_value): New to hold RTL for
1770 items allocated once per function for the aliasing code.
1771 (init_alias_once_per_function): Initialize static_reg_base_value.
1772 (init_alias_analysis): Avoid throw-away allocations of RTL by
1773 using pre-computed values in static_reg_base_value.
1774 * function.c (prepare_function_start): Call
1775 init_alias_once_per_function appropriately.
1776 * rtl.h (init_alias_once_per_function): Declare.
1777 * caller-save (init_caller_save): Restructure slightly to
1778 avoid lots of silly RTL generation.
1779 * expr.c (init_expr_once): Likewise.
1780 * reload1.c (reload_cse_regs_1): Allocate throw-away register
1781 RTL object here. Pass it into children.
1782 (reload_cse_simplify_operands): Use passed-in register RTL
1784 (reload_cse_simplify): Pass through throw-away register
1787 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
1789 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
1791 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1793 * gcc.c (process_command): Avoid assignment to read-only location.
1794 Fix sizeof calculation.
1796 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
1798 * cpphash.h (struct cpp_macro): Put comments on their own lines.
1799 (_cpp_expansions_different_trad): New.
1800 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
1801 * cpptrad.c (canonicalize_text): New.
1802 (scan_out_logical_line): Handle no arguments correctly.
1803 (save_replacement_text): Commit memory when finished.
1804 (_cpp_expansions_different_trad): New.
1806 2002-06-10 Tim Josling <tej@melbpc.org.au>
1808 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
1810 (lang_names): Add treelang and cobol.
1811 (get_file_basename): Add code to support treelang and cobol as
1812 4th and 5th users of c-common.c.
1814 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
1816 * Makefile.in (install-driver): Install driver as
1817 $(target_alias)-gcc-$(version).
1818 * gcc.c (spec_version): Make const.
1819 (process_command): Handle -V and -b by using exec.
1820 * doc/invoke.texi (Target Options): Restore -V option,
1821 update docs for -b option.
1823 2002-06-10 Tim Josling <tej@melbpc.org.au>
1825 * configure.in (remaining_languages_check):
1826 Added check that all languages specified were found.
1827 Exit if not found. Previous behaviour was silent failure.
1828 * configure: Regenerated.
1830 2002-06-10 Tim Josling <tej@melbpc.org.au>
1832 First steps to making treelang documentation compliant, based on
1833 instructions in sourcebuild.texi. Also add to gcc.c list of
1836 * doc/contrib.texi: Add self as contributor of treelang.
1838 * doc/frontends.texi: Add mention of treelang.
1840 * doc/invoke.texi (Overall Options): Add mention of treelang.
1842 * doc/standards.texi: Add mention of treelang.
1844 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
1846 * config/cris/cris.c: Include ggc.h
1848 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
1850 * cpphash.h (_cpp_push_text_context): Update.
1851 (_cpp_arguments_ok): New.
1852 * cppmacro.c (_cpp_arguments_ok): New, split out from...
1853 (collect_args): ...here.
1854 (_cpp_push_text_context): Change inputs.
1855 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
1856 replace_args_and_push): New.
1857 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
1858 Don't use IS macros directly.
1859 (scan_out_logical_line): Handle function-like macro argument
1861 (push_replacement_text): Update.
1862 (replacement_length): Remove.
1863 (_cpp_create_trad_definition): Don't skip whitespace before
1866 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
1868 * config/avr/avr.c (avr_mcu_types): Update for new devices.
1869 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
1870 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
1871 * config/avr/avr.md ("type" and "length" attributes): New type
1872 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
1873 output a single "call" or "rcall" insn depending on device size.
1874 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
1876 2002-06-09 David Edelsohn <edelsohn@gnu.org>
1878 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
1879 synonym for 630. Add power4. Remove embedded processors. Use -m604
1881 (CPP_CPU_SPEC): Add power3 and power4.
1882 (PROCESSOR_DEFAULT): Change to 604e.
1883 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
1884 (CPP_CPU_SPEC): Similar additions.
1885 (enum process_type): Add POWER4.
1886 (RTX_COSTS): Add POWER4.
1887 (CPP_CPU_SPEC): Similar additions.
1888 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
1889 (PROCESSOR_DEFAULT64): Define.
1890 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
1891 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
1893 (rs6000_issue_rate): Add Power4.
1894 * config/rs6000/rs6000.md (cpu attr): Add power4.
1895 (iu compare): Remove 604, 604e, 620, 630.
1896 Add basic Power4 scheduling information.
1897 (mfcr/mtcrf): Change type attribute to cr_logical.
1899 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1901 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
1903 * gengtype-lex.l: Fix format specifier warning.
1905 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
1907 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
1908 lieu of isspace/IDchar.
1909 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
1910 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
1913 2002-06-08 Zack Weinberg <zack@codesourcery.com>
1915 * Makefile.in (LIBCPP_OBJS): Take out version.o.
1916 * cpphash.h (cpp_reader): Take out print_version member.
1917 * cppinit.c: (cpp_handle_option): Don't do anything with
1918 -version. Just set help_only for --version, --target-help.
1919 Just set verbose option for -v.
1920 (cpp_post_options): Don't print a version string.
1922 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1924 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
1925 (avr_section_type_flags): New, handle .noinit* sections.
1927 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1929 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
1930 and include netbsd_entry_point.
1931 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
1932 (NETBSD_ENTRY_POINT): Define.
1934 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1936 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
1937 if not already defined.
1938 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
1940 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1942 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
1943 in a noreturn function.
1944 (avr_output_function_prologue, avr_output_function_epilogue):
1945 Correct function size calculation. Do not crash on empty function.
1946 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
1948 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1950 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
1951 netbsd_link_spec and netbsd_entry_point.
1952 (LINK_SPEC): Use %(netbsd_link_spec).
1953 (NETBSD_ENTRY_POINT): Define.
1955 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1957 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
1959 (LINK_ARCH64_SPEC): Likewise.
1960 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
1961 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
1963 2002-06-08 Marc Espie <espie@openbsd.org>
1965 * lists.c (free_list): Fix typo in comment.
1967 2002-06-08 Andreas Jaeger <aj@suse.de>
1969 * lcm.c (optimize_mode_switching): Add unused attribute for
1972 * sched-deps.c (sched_analyze): Remove unused variable.
1974 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
1976 * diagnostic.def: Don't capitalize diagnostict descriptors.
1978 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1980 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
1981 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
1982 (NETBSD_ENTRY_POINT): Define.
1984 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1986 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
1987 NETBSD_LINK_SPEC_ELF.
1988 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
1989 (NETBSD_ENTRY_POINT): Define.
1990 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
1991 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
1993 (NETBSD_ENTRY_POINT): Define.
1995 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1997 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
1998 netbsd_link_spec and netbsd_entry_point.
1999 (LINK_SPEC): Use %(netbsd_link_spec).
2000 (NETBSD_ENTRY_POINT): Define.
2002 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2004 * config/netbsd-elf.h (LINK_SPEC): Rename to...
2005 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
2006 to specify program entry point.
2008 2002-06-07 Jeff Law <law@redhat.com
2010 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
2011 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
2012 than creating a new register.
2013 (distribute_notes): Likewise.
2014 * df.c (df_reg_use_gen): Likewise.
2015 (df_reg_clobber_gen): Likewise.
2016 (df_ref_record): Likewise.
2017 * expr.c (use_regs): Likewise.
2018 * flow.c (propagate_one_insn): Likewise.
2019 (mark_set_1): Likewise.
2020 (mark_used_reg): Likewise.
2021 * reload.c (emit_reload_insns): Likewise.
2023 2002-06-07 Roger Sayle <roger@eyesopen.com>
2025 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
2026 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
2027 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
2028 comparison code comp can be reversed.
2030 2002-06-07 Roger Sayle <roger@eyesopen.com>
2032 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
2033 constants last in comparisons. Optimize (x+1.0)>0.0 into the
2034 equivalent x > -1.0 when -ffast-math.
2036 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
2038 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
2039 * config/mips/t-netbsd: New file.
2041 2002-06-07 Zack Weinberg <zack@codesourcery.com>
2043 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
2044 options their own entries.
2045 (parse_option): Clarify comment.
2046 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
2047 special case. Replace if/strcmp chain for -W options with
2048 use of new OPT_* entries for them.
2049 (cpp_handle_options): Update to match.
2050 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
2051 * c-decl.c: Update call to cpp_handle_option.
2053 2002-06-07 Akim Demaille <akim@epita.fr>
2055 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
2058 2002-06-07 Jeffrey Law <law@redhat.com>
2060 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
2063 2002-06-07 H.J. Lu (hjl@gnu.org)
2065 * configure.in: Add --enable-__cxa_atexit.
2066 * configure: Regenerated.
2067 * config.in: Likewise.
2069 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
2072 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
2074 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
2076 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
2078 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
2080 2002-06-07 Jason Merrill <jason@redhat.com>
2082 * cppexp.c (num_equality_op): Use a temporary variable to work
2083 around gcc 3.0.4 bug.
2085 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
2087 * diagnostic.c (diagnostic_build_prefix): Tidy.
2089 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
2091 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
2092 scan_parameters, save_replacement_text, replacement_length): New.
2093 (scan_out_logical_line): Take a macro and save parameters if
2095 (_cpp_logical_line_trad): Update.
2096 (_cpp_create_trad_definition): Update to handle function-like
2098 * cpplex.c (new_buff): Update.
2099 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
2100 * cpphash.h: ...here.
2101 (CPP_ALIGN2, _cpp_save_parameter): New.
2102 * cppmacro.c (save_parameter): Rename, export.
2103 (parse_params): Update.
2105 2002-06-07 Andreas Jaeger <aj@suse.de>
2107 * config/mmix/mmix.c: Remove extra broken prototype for
2108 mmix_init_machine_status.
2110 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
2112 * gengtype.c: Add comments before all the routines.
2114 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
2116 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
2117 from and add t-sh64 to ${tmake_file}.
2118 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
2119 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
2120 * config/sh/t-netbsd-sh5-32: Remove.
2121 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
2123 (MULTILIB_DIRNAMES): Define.
2125 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
2127 * i386.md (and promoting splitters): Disable QI to SImode promoting
2128 when doing so changes immediate to be 32bit.
2130 * rtl.h (emit_*_scope): Declare.
2131 * emit-rtl.c (emit_*_scope): New global functions.
2132 (try_split): Copy scope.
2133 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2134 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2135 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
2136 noce_process_if_block, find_cond_trap): Copy scopes.
2137 * recog.c (peephole2_optimize): likewise.
2139 2002-06-06 Jeffrey Law <law@redhat.com>
2141 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
2143 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
2145 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
2147 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2149 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
2150 ($(docdir)/gccinstall.info): New target.
2151 (info): Depend on it.
2152 (gccinstall.dvi): New target.
2153 (dvi): Depend on it.
2154 * doc/.cvsignore: Ignore new info files.
2155 * doc/install.texi (@setfilename): Reflect new info filename.
2157 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
2159 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
2162 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
2165 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
2166 c_common_get_alias_set.
2167 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
2169 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2171 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
2173 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
2174 * avr/avr.c (avr_output_function_epilogue): Use above to determine
2176 * pa/pa.c (pa_output_function_prologue): Likewise.
2178 2002-06-05 David S. Miller <davem@redhat.com>
2180 * integrate.c (subst_constants): Handle 'B' RTL format.
2182 2002-06-05 Eric Christopher <echristo@redhat.com>
2184 * varasm.c (make_decl_rtl): Fix comment for removed
2187 2002-06-05 Eric Christopher <echristo@redhat.com>
2189 * Makefile.in: Remove missed halfpic bits.
2191 2002-06-05 Eric Christopher <echristo@redhat.com>
2193 * toplev.c: Remove half-pic.
2194 * config/mips/mips.c: Ditto.
2195 * config/mips/mips.h: Ditto. Remove unused defines.
2196 * config/mips/openbsd.h: Update comment to reflect above.
2197 * config/mips/mips.md: Remove half-pic constraints.
2198 * halfpic.h: Delete.
2201 2002-06-05 Jeffrey Law <law@redhat.com>
2203 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
2204 rejects (mem (lo_sum (reg) (unspec))), but will allow
2205 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
2207 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
2209 * cpphash.h (_cpp_create_definition): Update prototype.
2210 (_cpp_push_text_context, _cpp_create_trad_definition): New.
2211 ( cpp_lex_identifier_trad): New.
2212 (_cpp_set_trad_context): New.
2213 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
2214 * cpplib.c (SEEN_EOL): Update.
2215 (lex_macro_node): Update for -traditional.
2216 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
2217 * cppmacro.c (_cpp_create_definition): Split into
2218 create_iso_definition() and _cpp_create_trad_definition().
2219 (warn_of_redefinition): Update prototype; handle traditional
2221 (_cpp_push_text_context): New.
2222 * cpptrad.c (skip_whitespace, push_replacement_text): New.
2223 (lex_identifier): Call ht_lookup with correct start.
2224 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
2225 _cpp_set_trad_context): New.
2226 (scan_out_logical_line): Update to handle changing contexts.
2228 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
2230 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
2232 * config/sh/t-be (MULTILIB_ENDIAN): Set.
2233 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
2234 * t-sh (MULTILIB_ENDIAN): Set.
2235 (MULTILIB_OPTIONS): Use it.
2236 * t-sh64 (MULTILIB_OPTIONS): Likewise.
2237 (MULTILIB_DIRNAMES): Likewise.
2239 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
2241 * toplev.h (report_error_function): Remove.
2243 * diagnostic.h (location_t): New datatype.
2244 (text_info): Likewise.
2245 (diagnostic_info): Likewise.
2246 (output_prefix): New macro.
2247 (diagnostic_last_function_changed): Likewise.
2248 (diagnostic_set_last_function): Likewise.
2249 (diagnostic_last_module_changed): Likewise.
2250 (diagnostic_set_last_module): Likewise.
2251 (report_diagnostic): Now macro.
2252 (diagnostic_set_info): Declare.
2254 * diagnostic.c (report_problematic_module): Rename to
2255 diagnostic_repor_current_module.
2256 (set_diagnostic_context): Remove.
2257 (count_error): Rename to diagnostic_error_count.
2258 (error_function_changed): Remove.
2259 (record_last_error_function): Likewise.
2260 (error_module_changed): Likewise.
2261 (record_last_error_module): Likewise.
2262 (context_as_prefix): Rename to diagnostic_build_prefix.
2263 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
2264 (diagnostic_set_info): New function.
2266 * objc/objc-act.c: #include diagnostic.h
2267 (error_with_ivar): Adjust call to count_error.
2268 (warn_with_method): Likewise.
2269 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
2271 2002-06-05 Bob Wilson <bob.wilson@acm.org>
2273 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
2274 lang_hooks.types.make_type instead of make_node; set up
2275 __va_list_tag type decl.
2276 (xtensa_builtin_saveregs): Remove broken use of
2277 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
2278 for saved registers; add varargs alias set.
2280 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
2283 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
2284 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
2285 CPP_PREDEFINES and part of CPP_SPEC.
2286 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
2287 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
2289 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
2291 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
2293 2002-06-05 Alan Modra <amodra@bigpond.net.au>
2295 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
2297 2002-06-04 Zack Weinberg <zack@codesourcery.com>
2299 * gengtype-yacc.y: Make sure all rules end with a semicolon.
2301 2002-06-04 Bob Wilson <bob.wilson@acm.org>
2303 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
2304 typo in function prototype and include "ggc.h" header.
2306 2002-06-04 Richard Henderson <rth@redhat.com>
2308 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
2309 (print_operand) ['U']: Likewise.
2310 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
2311 (alpha_expand_unaligned_store_words): Likewise.
2312 (alpha_expand_builtin_vector_binop): Fix typo.
2313 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
2314 umulh, and cix insns.
2315 (one_arg_builtins): Add cix builtins.
2316 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
2317 (alpha_expand_builtin): Fix typo in arity.
2318 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
2319 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
2320 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
2321 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
2322 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
2323 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
2324 builtin_ctlz, builtin_ctpop): New.
2325 * doc/extend.texi (Alpha Built-in Functions): Update.
2327 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
2329 * gengtype.c (write_gc_root): Don't unnecessarily prevent
2330 global variable-length arrays being roots.
2332 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
2333 * configure.in (config_gtfiles): New variable.
2334 (all_gtfiles): Initialise from config_gtfiles.
2335 * configure: Regenerate.
2337 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
2340 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
2341 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
2342 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
2343 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
2344 win32.h (CPP_SPEC): Remove cpp_cpu.
2345 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
2346 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
2348 2002-06-04 Janis Johnson <janis187@us.ibm.com>
2350 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
2352 2002-06-04 Jeff Law <law@redhat.com.
2353 David Edelsohn <edelsohn@gnu.org>
2354 Michael Matz <matz@kde.org>
2356 * sched-int.h (struct deps): New field libcall_block_tail_insn.
2357 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
2358 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
2359 is set, then mark the current insn as being part of a libcall
2361 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
2363 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
2364 insns against the issue rate.
2366 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
2368 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
2369 * final.c (final_scan_insn): Likewise.
2370 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
2371 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
2372 * haifa-sched.c (unlink_other_notes): Likeewise.
2373 (reemit_notes): Likewise.
2374 * print-rtl.c (print_rtx): Likewise.
2375 * sched-deps (sched-analyze): Likewise.
2376 * rtl.c (note_insn_name): Likewise.
2377 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
2378 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
2381 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2383 * varasm.c (mark_constants): Handle RTX format 'B'.
2385 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
2387 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
2388 (struct cpp_context): Add traditional fields.
2389 * cppmacro.c (paste_all_tokens, push_ptoken_context,
2390 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
2391 * cpptrad.c (skip_comment, lex_identifier,
2392 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
2394 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
2396 * gbl-ctors.h: Fix formatting.
2398 * gccspec.c: Likewise.
2400 * gcov-io.h: Likewise.
2402 * ggc-common.c: Likewise.
2404 * ggc-page.c: Likewise.
2405 * ggc-simple.c: Likewise.
2406 * global.c: Likewise.
2407 * graph.h: Likewise.
2408 * gthr-dce.h: Likewise.
2410 * gthr-posix.h: Likewise.
2411 * gthr-rtems.h: Likewise.
2412 * gthr-solaris.h: Likewise.
2413 * gthr-win32.h: Likewise.
2415 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
2417 Merge from pch-branch:
2419 * gengtype.h (UNION_OR_STRUCT_P): New macro.
2420 * gengtype.c (write_gc_structure_fields): Use it.
2421 (write_gc_root): Use it here too.
2423 * gengtype.c (write_gc_structure_fields): Assume that lengths
2424 of typenames fit into an 'int'; don't pass a size_t to "%d" in
2426 (write_gc_marker_routine_for_structure): Likewise.
2427 (write_gc_types): Likewise.
2428 (write_gc_root): Likewise.
2430 * varray.h (VARRAY_CLEAR): New.
2431 (varray_clear): Prototype.
2432 * varray.c (varray_clear): New.
2433 * cselib.c (reg_values_old): New.
2434 (used_regs_old): New.
2435 (cselib_init): Use cached varrays if available to avoid
2436 generating large amounts of garbage.
2437 (cselib_finish): Don't throw away old varrays.
2439 * final.c (insn_addresses_): Move out of ifdef.
2441 * varray.c (uses_ggc): Make more varray kinds GCable.
2442 * varray.h (union varray_data_tag): Let gengtype see
2443 fields 'generic' and 'te'.
2444 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
2445 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
2446 (reg_to_stack): Don't call VARRAY_FREE.
2447 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
2448 (insn_addresses_): Use gengtype to mark.
2449 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
2450 pointers; handle generic pointers in unused union fields.
2451 (get_output_file_with_visibility): Include cselib.h,
2452 insn-addr.h in gtype-desc.c.
2453 * function.c (prologue): Use gengtype to mark.
2454 (epilogue): Likewise.
2455 (sibcall_epilogue): Likewise.
2456 * dependence.c: Include gt-dependence.h, ggc.h.
2457 (struct def_use): Use gengtype to mark.
2458 (struct loop): Likewise.
2459 (struct induction): Likewise.
2460 (struct dependence): Likewise.
2461 (def_use_chain): Likewise.
2462 (dep_chain): Likewise.
2463 (loop_chain): Likewise.
2464 (induction_chain): Likewise.
2465 (init_dependence_analysis): Don't free anything, just clear pointers.
2466 (build_def_use): Use GGC to allocate def_use.
2467 (add_loop): Use GGC to allocate loop.
2468 (find_induction_variable): Use GGC to allocate induction.
2469 (check_node_dependence): Use GGC to allocate induction, dependence.
2470 (dump_node_dependence): Don't free varrays.
2471 (end_dependence_analysis): Likewise.
2472 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
2473 (struct elt_loc_list): Likewise.
2474 (struct elt_list): Likewise.
2475 * cselib.c: Don't include obstack.h.
2476 (hash_table): Use gengtype to mark.
2477 (reg_values): Use gengtype to mark.
2478 (used_regs): Use gengtype to mark.
2479 (cselib_obstack): Delete.
2480 (cselib_startobj): Delete.
2481 (empty_vals): Mark as deletable.
2482 (empty_elt_lists): Mark as deletable.
2483 (empty_elt_loc_lists): Mark as deletable.
2484 (new_elt_list): Use GGC to allocate struct elt_list.
2485 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
2486 (clear_table): Don't delete obstack; don't unnecessarily clear
2487 deletable variables.
2488 (new_cselib_val): Use GGC to allocate struct cselib_val.
2489 (cselib_init): Don't set up obstacks. Use GGC to allocate
2491 (cselib_finish): Just clear variables, don't free anything.
2492 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
2493 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
2494 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
2495 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
2496 (gt-reg-stack.h): New rule.
2497 (gt-dependence.h): New rule.
2498 (gtype-desc.o): Add cselib.h, insn-addr.h.
2500 * varray.c: Use only necessary headers.
2501 (element_size): New.
2503 (varray_init): Take type, not size. Use GGC if appropriate.
2504 (varray_grow): Update for change to struct varray_head_tag.
2505 Use GGC if appropriate.
2506 * varray.h (struct const_equiv_data): Use gengtype.
2507 (enum varray_data_enum): New.
2508 (union varray_data_tag): Use gengtype.
2509 (struct varray_head_tag): Use gengtype. Replace size field with
2510 enum varray_data_enum.
2511 (varray_init): Update prototype.
2512 (VARRAY_SCHED_INIT): Delete.
2513 (VARRAY_*_INIT): Update for change to varray_init.
2514 (VARRAY_SCHED): Delete.
2515 (VARRAY_PUSH_SCHED): Delete.
2516 (VARRAY_TOP_SCHED): Delete.
2517 * tree.h: Update for change to length specifier.
2518 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
2519 (clone_body): Likewise.
2520 * ssa.h (ssa_definition): Use gengtype to mark.
2521 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
2522 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
2523 * rtl.h (struct rtvec_def): Update for change to length specifier.
2524 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
2525 (struct initial_value_struct): Update for change to length specifier.
2526 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
2527 (ggc_add_tree_varray_root): Delete prototype.
2528 (ggc_mark_rtx_varray): Delete prototype.
2529 (ggc_mark_tree_varray): Delete prototype.
2530 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
2531 (ggc_add_tree_varray_root): Delete.
2532 (ggc_mark_rtx_varray): Delete.
2533 (ggc_mark_tree_varray): Delete.
2534 (ggc_mark_rtx_varray_ptr): Delete.
2535 (ggc_mark_tree_varray_ptr): Delete.
2536 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
2537 (create_varray): Delete prototype.
2538 * gengtype.c (varrays): Delete.
2539 (create_varray): Delete.
2540 (adjust_field_type): Detect array of string pointers.
2541 (process_gc_options): Remove code to handle varray_type option.
2542 (set_gc_used_type): Remove TYPE_VARRAY case.
2543 (output_escaped_param): New.
2544 (write_gc_structure_fields): Use output_escaped_param on all
2545 parameters. Handle 'skip' with 'use_param' option. Handle
2546 arrays of strings. Remove TYPE_VARRAY handling.
2547 (write_gc_roots): Use boolean to detect 'length' option.
2548 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
2549 (struct_fields): Call adjust_field_type on array fields.
2550 (type): Remove VARRAY_TYPE case.
2551 (type_option): Likewise.
2552 * gengtype-lex.l: Don't consider varray_type a keyword.
2553 * function.h: Update for change to length specifier.
2554 (free_eh_status): Delete prototype.
2555 * function.c (free_after_compilation): Don't call free_eh_status.
2556 (reorder_blocks): Don't use VARRAY_FREE.
2557 * except.c (struct eh_status): Update for change to length specifier.
2558 remove varray_type specifier.
2559 (free_eh_status): Delete.
2560 * dwarf2out.c: Include gt-dwarf2out.h.
2561 (used_rtx_varray): Use gengtype to mark, move
2563 (incomplete_types): Likewise.
2564 (decl_scope_table): Likewise.
2565 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
2566 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
2567 * c-tree.h (struct lang_type): Update for change to length specifier.
2568 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
2569 * c-objc-common.c: Include gt-c-objc-common.h.
2570 (deferred_fns): Mark for gengtype.
2571 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
2572 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
2573 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
2574 (gtype-desc.o): Update dependencies.
2575 (dwarf2out.o): Add gt-dwarf2out.h.
2576 (varray.o): Update dependencies.
2577 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
2578 (gt-c-objc-common.h): New rule.
2579 (gt-dwarf2out.h): New rule.
2580 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
2582 * doc/gty.texi (GTY Options): Correct spelling.
2583 (GGC Roots): Likewise.
2584 * Makefile.in (TEXI_CPP_FILES): New.
2585 (TEXI_GCC_FILES): New.
2586 (TEXI_GCCINT_FILES): New.
2587 (TEXI_CPPINT_FILES): New.
2588 ($(docdir)/cpp.info): Use new macros.
2589 ($(docdir)/gcc.info): Likewise.
2590 ($(docdir)/gccint.info): Likewise.
2591 ($(docdir)/cppinternals.info): Likewise.
2592 (cpp.dvi): Likewise.
2593 (gcc.dvi): Likewise.
2594 (gccint.dvi): Likewise.
2595 (cppinternals.dvi): Likewise.
2597 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
2598 * doc/gccint.texi (Top): Include gty.texi.
2599 * doc/gty.texi: New file.
2601 * bitmap.c: Include ggc.h, gt-bitmap.h.
2602 (bitmap_ggc_free): New.
2603 (bitmap_elem_to_freelist): New.
2604 (bitmap_element_free): Use bitmap_elem_to_freelist.
2605 (bitmap_element_allocate): Allow use of GGC.
2606 (bitmap_clear): Use bitmap_elem_to_freelist.
2607 (bitmap_copy): Update for change to bitmap_element_allocate.
2608 (bitmap_set_bit): Likewise.
2609 (bitmap_operation): Update for changes elsewhere.
2610 (bitmap_initialize): Allow to create bitmaps that will use GGC.
2611 * bitmap.h (struct bitmap_element_def): Use gengtype.
2612 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
2613 (bitmap_initialize): Add extra parameter.
2614 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
2615 (BITMAP_ALLOCA): Delete.
2616 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
2617 (BITMAP_GGC_ALLOC): New.
2618 * Makefile.in (gtype-desc.o): Add bitmap.h.
2619 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
2620 (GTFILES): Add bitmap.c.
2621 (gt-bitmap.h): New rule.
2622 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
2623 * basic-block.h: Update for changes to bitmap_initialize.
2624 * except.c (exception_handler_label_map): Move into...
2625 (struct eh_status): Here.
2626 (struct eh_region): Make 'aka' GCable.
2627 (free_eh_status): Don't need to specially handle
2628 exception_handler_label_map.
2629 (add_ehl_entry): Update for changes to exception_handler_label_map.
2630 (find_exception_handler_labels): Likewise.
2631 (remove_exception_handler_label): Likewise.
2632 (maybe_remove_eh_handler): Likewise.
2633 (for_each_eh_label): Likewise.
2634 (remove_eh_handler): Allocate 'aka' using GGC.
2635 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
2636 to list of includes.
2638 * gengtype.c (write_gc_marker_routine_for_structure): Name
2639 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
2640 (write_gc_types): Arrange for the tests with NULL to be inlined.
2641 (write_gc_roots): Update uses of procedure pointers.
2642 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
2644 * Makefile.in (explow.o): Add dependency on gt-explow.h.
2645 (sdbout.o): Add dependency on gt-sdbout.h.
2647 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
2648 (mem_attrs_htab): Likewise.
2649 (init_emit_once): Don't call ggc_add_deletable_htab.
2650 * fold-const.c (size_htab): Use gengtype to clear unused entries.
2651 (size_int_type_wide): Don't call ggc_add_deletable_htab.
2652 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
2653 parameters, use them, change callers.
2654 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
2655 (write_gc_roots): Handle 'if_marked' option.
2656 (main): Don't need to call set_gc_used_type any more.
2657 * ggc.h (ggc_htab_marked_p): Delete.
2658 (ggc_htab_mark): Delete.
2659 (struct ggc_cache_tab): New.
2660 (gt_ggc_cache_rtab): New declaration.
2661 * ggc-common.c (struct d_htab_root): Delete.
2662 (d_htab_roots): Delete.
2663 (ggc_add_deletable_htab): Delete.
2664 (ggc_htab_delete): Handle new htab-deleting mechanism.
2665 (ggc_mark_roots): Use new htab-deleting mechanism.
2666 * tree.c (type_hash_table): Use gengtype to clear unused entries.
2668 (init_obstacks): Don't call ggc_add_deletable_htab.
2670 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
2671 (struct hashed_entry): Likewise.
2672 (nst_method_hash_list): Likewise.
2673 (cls_method_hash_list): Likewise.
2674 (HASH_ALLOC_LIST_SIZE): Delete.
2675 (ATTR_ALLOC_LIST_SIZE): Delete.
2676 * objc/objc-act.c (hash_init): Use ggc to allocate
2677 nst_method_hash_list, cls_method_hash_list.
2678 (hash_enter): Use ggc to allocate; allocate one entry at a time.
2679 (hash_add_attr): Likewise.
2680 (ggc_mark_hash_table): Delete.
2681 (objc_act_parse_init): Delete.
2682 (objc_init): Delete reference to objc_act_parse_init.
2683 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
2684 obstack.h. Replace references to 'struct hash_table' with htab_t.
2685 (struct symbol_hash_entry): Replace hash header with key field.
2686 (struct file_hash_entry): Replace hash header with key field.
2687 (struct demangled_hash_entry): Replace hash header with key field.
2688 (hash_string_eq): New.
2689 (hash_string_hash): New.
2690 (symbol_hash_newfunc): Delete.
2691 (symbol_hash_lookup): Modify to use htab_t.
2692 (file_hash_newfunc): Delete.
2693 (file_hash_lookup): Modify to use htab_t.
2694 (demangled_hash_newfunc): Delete.
2695 (demangled_hash_lookup): Modify to use htab_t.
2696 (tlink_init): Modify to use htab_t.
2699 * ggc.h: Delete forward structure declarations.
2700 Delete prototypes for deleted functions.
2701 * ggc-common.c: Don't include hash.h.
2702 (ggc_add_tree_hash_table_root): Delete.
2703 (ggc_mark_tree_hash_table_entry): Delete.
2704 (ggc_mark_tree_hash_table): Delete.
2705 (ggc_mark_tree_hash_table_ptr): Delete.
2706 * gengtype.c (write_gc_structure_fields): Allow param_is option.
2707 (write_gc_marker_routine_for_structure): Use visibility of
2708 the parameter if there is one.
2709 * function.c: Replace hash.h with hashtab.h. Replace references
2710 to 'struct hash_table *' with htab_t.
2711 (struct insns_for_mem_entry): Include a plain key.
2712 (fixup_var_refs_insns_with_hash): Update to use htab_t.
2713 (insns_for_mem_newfunc): Delete.
2714 (insns_for_mem_hash): Update to use htab_t.
2715 (insns_for_mem_comp): Likewise.
2716 (insns_for_mem_walk): Likewise.
2717 * c-lang.c: Include ggc.h.
2718 * Makefile.in (OBJS): Remove hash.o.
2719 (c-lang.o): Add GGC_H.
2720 (COLLECT2_OBJS): Remove hash.o.
2721 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
2722 (ggc-common.o): Remove hash.h.
2723 (function.o): Remove hash.h, add HASHTAB_H.
2724 (genautomata.o): Remove hash.h, add HASHTAB_H.
2726 * varasm.c (mark_const_str_htab_1): Delete.
2727 (mark_const_str_htab): Delete.
2728 (const_str_htab_del): Delete.
2729 (const_str_htab): Use gengtype to mark.
2730 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
2732 * tree.c (mark_tree_hashtable_entry): Delete.
2733 (mark_tree_hashtable): Delete.
2734 * tree.h (mark_tree_hashtable): Delete prototype.
2735 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
2736 (ggc_mark): Likewise.
2738 (htab_create_ggc): New.
2739 * ggc-common.c (ggc_calloc): New.
2740 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
2741 (struct type): Add param_struct structure.
2742 * gengtype.c (param_structs): New.
2743 (adjust_field_type): Handle param_is option.
2744 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
2745 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
2746 (write_gc_structure_fields): Add new PARAM parameter. Update
2747 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
2748 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
2749 Use it to generate function name. Update callers.
2750 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
2752 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
2754 (main): Define PTR as pointer-to-scalar. Don't specially
2755 mark deferred_string or ehl_map_entry.
2756 * gengtype-yacc.y (PARAM_IS): Add new token.
2757 (externstatic): Use adjust_field_type.
2758 (type_option): Add PARAM_IS.
2759 * gengtype-lex.l: Add rule for typedef of function pointers.
2760 Add rule for PARAM_IS.
2761 (IWORD): Add size_t.
2762 * except.c (exception_handler_label_map): Use gengtype to mark.
2763 (type_to_runtime_map): Likewise.
2764 (mark_ehl_map_entry): Delete.
2765 (mark_ehl_map): Delete.
2766 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
2767 (t2r_mark_1): Delete.
2769 * Makefile.in (gtype-desc.o): Correct dependencies.
2770 (GTFILES): Add hashtab.h.
2771 (genautomata.o): Actually uses hashtab.h.
2773 * Makefile.in (stringpool.o): Add $(GGC_H).
2774 (dwarf2asm.o): Likewise.
2775 (GTFILES): Add hashtable.h.
2776 * c-common.h (struct c_common_identifier): Use gengtype.
2777 * c-decl.h (c_mark_tree): Delete.
2778 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
2779 * c-tree.h (struct lang_identifier): Use gengtype.
2780 (union lang_tree_node): New.
2781 (c_mark_tree): Delete prototype.
2782 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
2784 * gengtype-lex.l (IWORD): Allow 'bool'.
2786 * gengtype-yacc.y (ALIAS): New token.
2787 (type_option): New rule.
2788 (option): Use type_option.
2789 * gengtype.c (process_gc_options): New.
2790 (set_gc_used_type): Use it.
2791 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
2792 Add new variable 't' to hold the type of the field being processed.
2793 Add more error checking. Use UNION_P when looking at 'desc' option.
2794 Handle language-specific structures containing other
2795 language-specific structures.
2796 (write_gc_types): Handle 'ptr_alias' option.
2797 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
2798 * ggc-common.c (ggc_pending_trees): Delete.
2799 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
2800 (ggc_mark_trees): Delete.
2801 (gt_ggc_m_tree_node): Delete.
2802 * ggc.h (ggc_pending_trees): Delete.
2803 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
2804 * hashtable.h (ht_identifier): Use gengtype.
2805 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
2806 * langhooks.h (struct lang_hooks): Delete mark_tree.
2807 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
2809 * system.h: Poison LANG_HOOKS_MARK_TREE.
2810 * tree.c (tree_node_structure): New.
2811 * tree.h (struct tree_common): Use gengtype.
2812 (struct tree_int_cst): Likewise.
2813 (struct tree_real_cst): Likewise.
2814 (struct tree_string): Likewise.
2815 (struct tree_complex): Likewise.
2816 (struct tree_vector): Likewise.
2817 (struct tree_identifier): Likewise.
2818 (struct tree_list): Likewise.
2819 (struct tree_vec): Likewise.
2820 (struct tree_exp): Likewise.
2821 (struct tree_block): Likewise.
2822 (struct tree_type): Likewise.
2823 (struct tree_decl): Likewise.
2824 (enum tree_structure_enum): New.
2825 (union tree_node): Use gengtype, with an alias.
2826 (tree_node_structure): Prototype.
2827 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
2829 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
2830 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
2831 to LANG_HOOKS_FUNCTION_FINAL.
2832 * Makefile.in (GTFILES): Add bitmap.h.
2833 * except.c (struct eh_region): Mark field 'aka' to be skipped.
2835 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
2836 (alpha_init_machine_status): Give proper type.
2837 * Makefile.in (c-lang.o): Depend on gtype-c.h.
2838 (optabs.o): Depend on gt-optabs.h.
2839 (GTFILES): Add optabs.o.
2840 (gt-optabs.h): Add rule.
2841 * optabs.c: Include gt-optabs.h.
2843 * gengtype.c (set_gc_used_type): Correct some errors in last change.
2844 (write_gc_structure_fields): If a field which should be NULL is
2846 * c-pragma.c: Move struct align_stack and variable alignment_stack
2849 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
2850 * config/xtensa/xtensa.c: Include gt-cris.h.
2851 (struct machine_function): Use gengtype to mark.
2852 * config/mmix/mmix.h (struct machine_function): Use gengtype
2854 * config/cris/t-cris: Add dependencies for gt-cris.h.
2855 * config/cris/cris.c: Include gt-cris.h.
2856 (struct machine_function): Use gengtype to mark.
2857 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
2859 * doc/tm.texi (Per-Function Data): Delete references to
2860 mark_machine_status.
2861 * config/ia64/ia64.c (ia64_override_options): Don't set
2862 mark_machine_status.
2863 * config/i386/i386.c (override_options): Likewise.
2864 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
2865 * config/arm/arm.c (arm_init_expanders): Likewise.
2866 * config/alpha/alpha.c (override_options): Likewise.
2867 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
2868 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
2869 (write_gc_structure_fields): Don't handle 'really' option.
2870 Handle 'maybe_null' option.
2871 (write_gc_types): Handle 'maybe_null' option.
2872 * function.h (struct function): Don't use "really".
2873 (mark_machine_status): Delete declaration.
2874 (mark_lang_status): Delete declaration.
2875 (gt_ggc_mr_machine_function): Delete prototype.
2876 (gt_ggc_mr_language_function): Delete prototype.
2877 * function.c (mark_machine_status): Delete.
2878 (mark_lang_status): Delete.
2879 (gt_ggc_mr_machine_function): Delete.
2880 (gt_ggc_mr_language_function): Delete.
2881 * c-tree.h (mark_c_function_context): Delete prototype.
2882 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
2883 * c-decl.c (struct language_function): Rename from struct
2884 c_language_function. Update uses. Use gengtype to mark.
2885 (mark_c_function_context): Delete.
2886 * c-common.h (struct c_language_function): Rename from struct
2888 (mark_stmt_tree): Delete prototype.
2889 (c_mark_lang_decl): Delete prototype.
2890 (mark_c_language_function): Delete prototype.
2891 * c-common.c (mark_stmt_tree): Delete.
2892 (c_mark_lang_decl): Delete.
2893 (mark_c_language_function): Delete.
2895 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
2896 (lang_bitmap): New typedef. Use where appropriate.
2897 (struct type): Add gc_used field, lang_struct field.
2898 (UNION_P): New macro.
2899 (new_structure): New prototype.
2900 (find_structure): Remove 'pos' parameter. Change all callers.
2901 * gengtype-lex.l: Update for changes to find_structure.
2902 * gengtype-yacc.y (typedef_struct): Use new_structure.
2903 (yacc_ids): Suppress warning.
2904 (type): Use new_structure.
2905 * gengtype.c (string_type): Update for changes to struct type.
2906 (find_structure): Just find a structure, don't worry about
2908 (new_structure): New.
2909 (note_yacc_type): Use new_structure.
2910 (set_gc_used_type): New.
2912 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
2913 (write_gc_types): Handle TYPE_LANG_STRUCT.
2914 (write_gc_marker_routine_for_structure): New.
2915 (main): Call set_gc_used. Add some calls to set_gc_used_type
2916 for places where GCC doesn't use gengtype properly yet.
2917 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
2918 (gt_ggc_m_tree_node): Likewise.
2920 * varasm.c (copy_constant): Call expand_constant if we hit
2921 something we can't recognise.
2923 * ggc-common.c (ggc_mark_rtvec_children): Delete.
2924 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
2925 (lang_mark_false_label_stack): Delete.
2926 * rtl.h (struct rtvec_def): Use gengtype to mark.
2927 * ggc.h (ggc_mark_rtvec): Delete.
2928 (gt_ggc_m_rtvec_def): Delete.
2929 (ggc_mark_nonnull_tree): Delete.
2930 (ggc_mark_rtvec_children): Delete prototype.
2931 (lang_mark_false_label_stack): Delete declaration.
2933 * gengtype.h (note_yacc_type): Add prototype.
2934 * gengtype.c (note_yacc_type): New function.
2935 * gengtype-lex.l: Add lexer support for yacc files.
2936 * gengtype-yacc.y (start): Extract union from yacc files.
2937 (yacc_union): New rule.
2938 (yacc_typematch): New rule.
2939 (yacc_ids): New rule.
2940 (enum_items): Tweak for efficiency.
2941 (optionseq): Likewise.
2943 * c-common.h (struct language_function): Use gengtype.
2944 (struct c_lang_decl): Likewise.
2945 * c-tree.h (struct lang_decl): Likewise.
2946 (struct lang_type): Likewise.
2947 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
2948 tree language substructures.
2950 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
2952 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
2954 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
2956 * stmt.c (struct nesting): Add discriminator. Use gengtype to
2957 mark. Remove 'data.block.cleanup_ptr' field.
2958 (struct stmt_status): Use usual technique to mark struct nesting.
2959 (gt_ggc_mr_nesting_cond): Delete.
2960 (gt_ggc_mr_nesting_loop): Delete.
2961 (gt_ggc_mr_nesting_block): Delete.
2962 (gt_ggc_mr_nesting_case_stmt): Delete.
2963 (expand_start_cond): Set discriminator.
2964 (expand_start_loop): Likewise.
2965 (expand_start_null_loop): Likewise.
2966 (expand_start_bindings_and_block): Set discriminator. Don't set
2968 (expand_decl_cleanup): Replace 'cleanup_ptr' with
2969 &thisblock->data.block.cleanups.
2970 (expand_start_case): Set discriminator.
2971 (expand_start_case_dummy): Set discriminator.
2973 * ggc-callbacks.c: Remove.
2975 * gengtype.h (struct type): Add 'u.s.bitmap' field.
2976 (find_structure): Add 'pos' parameter.
2977 * gengtype-lex.l: Update callers to find_structure.
2978 * gengtype-yacc.y: Likewise.
2979 * gengtype.c (find_structure): Allow for structures to be defined
2980 in multiple language backends.
2981 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
2982 (counter): Rename to gc_counter.
2983 (write_gc_structure_fields): Fail when writing out fields for
2984 an incomplete structure. Ignore arrays of scalars. Handle
2986 (write_gc_types): Reset counter for each procedure written.
2988 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
2989 (free_case_nodes): Delete.
2990 (expand_end_case_type): Delete call to free_case_nodes.
2992 * Makefile.in (cselib.o): Include gt-<filename>.h.
2994 (profile.o): Likewise.
2995 (alias.o): Likewise.
2996 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
2997 alphabetize backend files.
2998 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
2999 * alias.c: Use gengtype for roots.
3000 * c-common.h (struct stmt_tree_s): Use gengtype.
3001 * c-decl.c: Use gengtype for roots.
3002 * cselib.c: Use gengtype for roots.
3003 * expr.c: Use gengtype for roots.
3004 * fold-const.c: Use gengtype for roots.
3005 * gcse.c: Use gengtype for roots.
3006 * gengtype-lex.l: Handle typedefs of function types.
3007 Allow for empty array bounds.
3008 Allow processing to stop on initialisers.
3009 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
3010 (semiequal): New rule.
3011 * gengtype.c (create_file): Tidy output files.
3012 (get_output_file_with_visibility): Fix paren warning. Fix bug
3013 involving multiple input files mapping to one output file.
3014 (write_gc_structure_fields): Skip arrays of scalars.
3015 (write_gc_types): Tidy output files.
3016 (write_gc_root): New function.
3017 (write_gc_roots): Fix bugs, add support for roots that are
3019 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
3020 (ggc_mark_tree_ptr): Delete.
3021 (ggc_add_rtx_root): Delete.
3022 (ggc_add_tree_root): Delete.
3023 (ggc_del_root): Delete.
3024 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
3025 allocate struct initial_value_struct.
3026 * profile.c: Use gengtype for roots.
3027 * sdbout.c: Use gengtype for roots.
3028 * varasm.c (mark_weak_decls): Delete unused prototype.
3029 (mark_const_hash_entry): Delete unused function.
3030 * config/darwin-protos.h: Use gengtype for roots.
3031 (machopic_add_gc_roots): Delete.
3032 * config/arm/arm.c: Use gengtype for roots.
3033 * config/arm/arm.h: Use gengtype for roots.
3034 * config/c4x/c4x-protos.h: Use gengtype for roots.
3035 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
3036 * config/d30v/d30v-protos.h: Use gengtype for roots.
3037 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
3038 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
3039 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
3040 * config/ia64/ia64-protos.h: Use gengtype for roots.
3041 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
3042 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
3043 * config/m68hc11/m68hc11.c (z_reg): Make global.
3044 (z_reg_qi): Make global.
3045 (m68hc11_add_gc_roots): Delete.
3046 * config/mcore/mcore-protos.h: Use gengtype for roots.
3047 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
3048 * config/mips/mips.c (mips_add_gc_roots): Delete.
3049 * config/mips/mips.h: Use gengtype for roots.
3050 * config/mmix/mmix.c (override_options): Use gengtype for roots.
3051 * config/mmix/mmix.h: Use gengtype for roots.
3052 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
3053 * config/mn10200/mn10200.h: Use gengtype for roots.
3054 * config/pa/pa.c: Use gengtype for roots, marking.
3055 (struct deferred_plabel): Use GGC, gengtype.
3056 (pa_add_gc_roots): Delete.
3057 (mark_deferred_plabels): Delete.
3058 * config/pj/pj-protos.h: Use gengtype for roots.
3059 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
3060 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
3061 machopic_add_gc_roots.
3062 * config/rs6000/rs6000.h: Use gengtype for roots.
3063 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
3064 (gt-darwin.h): Add rule.
3065 * config/sh/sh.c: Use gengtype for roots.
3066 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
3067 (gt-sh.h): Add rule.
3068 * config/sparc/sparc.c: Use gengtype for roots.
3069 (sparc_add_gc_roots): Delete.
3070 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
3071 (mark_ultrasparc_pipeline_state): Delete.
3072 * config/sparc/sparc.h: Use gengtype for roots.
3074 * Makefile.in (c-parse.o): Update dependencies.
3075 (c-common.o): Likewise.
3076 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
3077 Add dependencies for the files they generate.
3078 * c-common.c: Replace ggc_add_* uses with GTY annotations.
3079 * c-common.h: Likewise.
3080 * c-decl.c: Likewise.
3081 (gt_ggc_mp_binding_level): Delete.
3082 * c-lang.c: Include gtype-c.h.
3083 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
3085 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
3086 (gt_ggc_mp_align_stack): Delete.
3087 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
3088 * function.c: Replace ggc_add_* uses with GTY annotations.
3089 (gt_ggc_mp_function): Delete.
3090 * function.h: Replace ggc_add_* uses with GTY annotations.
3091 * gengtype.c (lang_names): New.
3092 (NUM_BASE_FILES): New.
3093 (open_base_files): Create language base files.
3095 (get_file_basename): New.
3096 (get_base_file_bitmap): New.
3097 (get_output_file_with_visibility): Rename from get_output_file.
3098 Add more mappings for various C/Objc filenames.
3099 (finish_root_table): New.
3100 (write_gc_roots): Handle dependencies and scoping properly.
3101 * gengtype.h: Add prototypes for new functions.
3102 * ggc-common.c (struct deletable_root): Delete.
3103 (deletables): Delete.
3104 (ggc_add_deletable_root): Delete.
3105 (ggc_mark_roots): No need to deal with deleted functionality.
3106 * ggc.h (ggc_add_deletable_root): Delete prototype.
3107 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
3108 (gtype-objc.h): Add rule to create.
3109 * objc/config-lang.in (gtfiles): New.
3110 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
3111 ggc_add_* with GTY markers. Include gtype-objc.h.
3112 (ggc_mark_imp_list): Delete.
3113 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
3114 * objc/objc-lang.c: Random Whitespace Change.
3116 * except.h (exception_handler_labels): Delete.
3117 (get_exception_handler_labels): New.
3118 * except.c (exception_handler_labels): Delete.
3119 (struct eh_status): Add exception_handler_labels field.
3120 (doing_eh): Don't add exception_handler_labels as root.
3121 (free_eh_status): Don't need to free exception_handler_labels.
3122 (get_exception_handler_labels): New.
3123 (find_exception_handler_labels): Update for move of
3124 exception_handler_labels.
3125 (remove_exception_handler_label): Likewise.
3126 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
3127 * jump.c (rebuild_jump_labels): Likewise.
3128 * loop.c (find_and_verify_loops): Likewise.
3129 * sched-rgn.c (is_cfg_nonregular): Likewise.
3131 * gengtype.c (write_gc_structure_fields): Handle variable-length
3134 * varasm.c (struct weak_syms): Use GGC, gengtype.
3135 (mark_weak_decls): Delete.
3136 (weak_decls): Likewise.
3137 (add_weak): Likewise.
3138 (remove_from_pending_weak_list): Likewise.
3139 (init_varasm_once): Likewise.
3141 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
3142 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
3143 stor-layout.c, regclass.c, and lists.c.
3144 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
3145 gt-regclass.h and gt-lists.h on s-gtype.
3146 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
3147 * except.c: Use gengtype for roots.
3148 * explow.c: Use gengtype for roots. Include gt-explow.h.
3149 * expr.h (init_stor_layout_once): Delete prototype.
3150 * function.c: Use gengtype for roots.
3151 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
3152 * gengtype-yacc.y (start): Can also be an externstatic.
3153 (externstatic): New production.
3154 (struct_fields): Correct array bounds inversion for 2-d arrays.
3155 * gengtype.c (variables): New variable.
3156 (note_variable): New function.
3157 (get_output_file): Include libfuncs.h into gtype-desc.c.
3158 (get_output_file_name): New function.
3159 (write_gc_structure_fields): Suppress warnings.
3160 (write_gc_types): Make static.
3161 (put_mangled_filename): New function.
3162 (write_gc_roots): New function.
3163 (main): Call write_gc_roots.
3164 * gengtype.h (note_variable): Prototype.
3165 (get_output_file_name): Prototype.
3166 (write_gc_types): Delete prototype.
3167 * ggc.h: Clean up unnecessary structure predefinitions.
3168 (struct ggc_root_tab): Define.
3169 (gt_ggc_m_rtx_def): Make function, not macro.
3170 (gt_ggc_m_tree_node): Likewise.
3171 * libfuncs.h: Use gengtype for roots.
3172 * lists.c: Use gengtype for roots. Include gt-lists.h.
3173 (init_EXPR_INSN_LIST_cache): Delete.
3174 * optabs.c: Use gengtype for roots.
3175 (gt_ggc_mp_optab): Delete.
3176 * optabs.h: Use gengtype for roots.
3177 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
3178 * rtl.h: Use gengtype for roots.
3179 (init_EXPR_INSN_LIST_cache): Delete prototype.
3180 * stor-layout.c: Use gengtype for roots.
3181 Include gt-stor-layout.h.
3182 (init_stor_layout_once): Delete.
3183 * toplev.c: Use gengtype for roots. Delete calls to deleted
3185 * tree.c: Use gengtype for roots.
3186 * tree.h: Use gengtype for roots.
3187 * varasm.c: Use gengtype for roots.
3189 * Makefile.in (GTFILES): Add @all_gtfiles@.
3190 * configure: Regenerate.
3191 * configure.in: Construct all_gtfiles from the gtfiles definitions
3193 * gengtype-yacc.y (type): Warn about duplicate structure names.
3194 * gengtype.c (get_output_file): Handle .c files in language
3197 * Makefile.in (GTFILES): Run gengtype on all the config files
3198 and on the target .c file.
3199 * except.c (mark_eh_region): Delete.
3200 (init_eh_for_function): Use GGC on struct eh_status.
3201 (mark_eh_status): Delete.
3202 (free_eh_status): Use GGC.
3203 (expand_eh_region_start): Use GGC to
3204 (collect_eh_region_array): Allocate last_region_number using GGC.
3205 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
3206 (remove_eh_handler): Let GGC free struct eh_region.
3207 (add_call_site): Use GGC to reallocate call_site_record array.
3208 * function.c (init_machine_status): Update calling sequence.
3209 (mark_machine_status): Likewise.
3210 (mark_lang_status): Likewise.
3211 (prepare_function_start): Update init_machine_status call.
3212 (mark_function_status): Delete.
3213 (maybe_mark_struct_function): Delete.
3214 (ggc_mark_struct_function): Delete.
3215 (gt_ggc_mp_function): New.
3216 (gt_ggc_mr_machine_function): New.
3217 (gt_ggc_mr_language_function): New.
3218 (init_function_once): Use canonical names.
3219 * function.h (struct function): Use gengtype.
3220 (init_machine_status): Return the structure.
3221 (mark_machine_status): Take a 'void *'.
3222 (mark_lang_status): Likewise.
3223 * ggc-common.c (ggc_mark_trees): Use canonical name for
3224 ggc_mark_struct_function.
3225 * tree.h (ggc_mark_struct_function): Delete prototype.
3226 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
3227 (alpha_init_machine_status): Likewise.
3228 (override_options): Use canonical name for alpha_mark_machine_status.
3229 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
3230 * config/arm/arm.h (struct machine_function): Use gengtype.
3231 * config/arm/arm.c (arm_mark_machine_status): Delete.
3232 (arm_init_machine_status): Update calling sequence.
3233 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
3234 * config/cris/cris.c (cris_init_machine_status): Update
3236 * config/d30v/d30v.h (struct machine_function): Use gengtype.
3237 * config/d30v/d30v.c (d30v_init_machine_status): Update
3239 (d30v_mark_machine_status): Delete.
3240 * config/i386/i386.c: Include gt-i386.h.
3241 (struct machine_function): Use gengtype.
3242 (ix86_init_machine_status): Update calling sequence.
3243 (ix86_mark_machine_status): Delete.
3244 (override_options): Use canonical namke for ix86_mark_machine_status.
3245 * config/ia64/ia64.h (struct machine_function): Use gengtype.
3246 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
3248 (ia64_mark_machine_status): Delete.
3249 (ia64_override_options): Use canonical name for
3250 ia64_mark_machine_status.
3251 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
3253 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
3254 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3255 * gengtype.c (get_output_file): Fix warning.
3256 (main): Add prototype to suppress warning.
3257 * tree.c: Remove tree_hash_mark prototype.
3259 * tree.h (init_stmt): Delete prototype.
3260 * toplev.c (lang_independent_init): Don't call init_stmt.
3261 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
3262 (stmt_obstack): Delete.
3263 (POPSTACK): No need to free 'struct nesting'.
3264 (gt_ggc_mr_nesting_cond): Use canonical names.
3265 (gt_ggc_mr_nesting_loop): Use canonical names.
3266 (gt_ggc_mr_nesting_block): Use canonical names.
3267 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
3268 (mark_stmt_status): Delete.
3269 (init_stmt): Delete.
3270 (clear_last_expr): Clear both last_expr_type and last_expr_value.
3271 Use it everywhere that last_expr_type was cleared.
3272 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
3273 (zap_lists): Delete.
3274 * ggc.h (ggc_add_deletable_root): Prototype.
3275 (mark_stmt_status): Remove prototype.
3276 * ggc-common.c (ggc_add_deletable_root): New.
3277 (ggc_mark_roots): Handle deletable roots.
3278 * function.c (ggc_mark_struct_function): Use canonical name
3279 for mark_stmt_status.
3280 * emit-rtl.c (free_sequence_stack): New.
3281 (start_sequence): Use a freelist for sequences.
3282 (end_sequence): Likewise.
3283 (init_emit_once): Add free_sequence_stack as a deleteable root.
3284 * c-pragma.c Include gt-c-pragma.h.
3285 (struct align_stack): Use gengtype.
3286 (push_alignment): Use GGC for struct align_stack.
3287 (mark_align_stack): Delete.
3288 (gt_ggc_mp_align_stack): New.
3289 (init_pragma): Use canonical name for mark_align_stack.
3290 * c-decl.c: Include gt-c-decl.h.
3291 (struct binding_level): Use gengtype.
3292 (make_binding_level): Use GGC; handle the freelist here.
3293 (pop_binding_level): New.
3294 (pushlevel): Move code into make_binding_level.
3295 (push_label_level): Likewise.
3296 (poplevel): Move code into pop_binding_level.
3297 (pop_label_level): Likewise.
3298 (mark_binding_level): Delete.
3299 (gt_ggc_mp_binding_level): New.
3300 (c_init_decl_processing): Use canonical name for mark_binding_level.
3301 Add free_binding_level as deletable root.
3302 (mark_c_function_context): Use canonical name for mark_binding_level.
3303 * Makefile.in (c-decl.o): Add gt-c-decl.h.
3304 (c-pragma.o): Add gt-c-pragma.h.
3305 (GTFILES): Add c-decl.c and c-pragma.c.
3306 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
3308 * tree.c (struct type_hash): Use gengtype.
3309 (init_obstacks): Use canonical name for type_hash_mark.
3310 (type_hash_mark): Delete.
3312 * rtl.h (struct mem_attrs): Use gengtype.
3313 * optabs.h (struct optab): Use gengtype.
3314 * optabs.c (expand_binop): Squish signed/unsigned warning.
3315 (mark_optab): Make local, use canonical name, use autogenerated
3317 (init_optabs): Use canonical name for mark_optab.
3318 (new_optab): Use GGC to allocate optabs.
3319 * ggc.h: Delete mark_optab prototype.
3320 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
3321 mem_attrs marker procedure.
3322 * gengtype.c (get_output_file): Include headers in gtype-desc.c
3323 explicitly rather than deducing them from file names.
3324 (write_gc_structure_fields): Handle arrays of structures.
3325 (main): Return non-zero exit code if errors occur during output.
3326 * emit-rtl.c (mem_attrs_mark): Delete.
3327 (init_emit_once): Use canonical name for mem_attrs marker procedure.
3328 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
3329 (tree.o): Depend on gt-tree.h.
3330 (GTFILES): Add rtl.h, optabs.h, tree.c.
3331 (gt-tree.h): Add it to s-gtype rule.
3333 * .cvsignore: Ignore gengtype flex/bison generated files.
3334 * Makefile.in (GGC_H): Add gtype-desc.h.
3335 (OBJS): Add gtype-desc.o.
3336 (GEN): Add gengtype.
3337 (STAGESTUFF): Add gengtype.
3338 (varasm.o): Add gt-varasm.h.
3339 (stmt.o): Add gt-stmt.h.
3340 (except.o): Add gt-except.h.
3341 (integrate.o): Add gt-integrate.h.
3343 Add new rules for new files.
3344 * configure: Regenerate.
3345 * configure.in: Correct defaults.h paths.
3346 * emit-rtl.c (mark_sequence_stack): Delete.
3347 (mark_emit_status): Delete.
3348 (start_sequence): Allocate sequence structures using GGC.
3349 (end_sequence): Allocate sequence structures using GGC.
3350 * except.c: Use gengtype for various structures. Include
3352 * expr.c (mark_expr_status): Delete.
3353 * function.c: Use gengtype for various structures. Include
3355 (mark_function_status): Use standard gt_ggc names for marker functions.
3356 (ggc_mark_struct_function): Likewise.
3357 * function.h: Use gengtype for various structures.
3358 * gengtype-lex.l: New file.
3359 * gengtype-yacc.y: New file.
3360 * gengtype.c: New file.
3361 * gengtype.h: New file.
3362 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
3363 the standard names. Remove some now-unnecessary prototypes.
3364 * integrate.c: Use gengtype for various structures. Include
3366 (mark_hard_reg_initial_vals): Delete.
3367 * integrate.h (mark_hard_reg_initial_vals): Delete.
3368 * stmt.c: Use gengtype for various structures. Include
3370 (mark_case_node): Delete.
3371 (mark_goto_fixup): Delete.
3372 (mark_stmt_status): Use standard gt_ggc names for marker functions.
3373 * system.h: Define GTY to empty. In flex/bison files,
3374 don't poison malloc or realloc, instead just define them to
3375 xmalloc and xrealloc.
3376 * varasm.c: Use gengtype for various structures. Include
3377 gt-varasm.h. Use standard gt_ggc names for marker functions.
3378 (mark_pool_constant): Delete.
3379 (mark_varasm_status): Delete.
3380 (decode_rtx_const): #if 0 out non-typesafe hack.
3382 * function.h (free_lang_status): Mark as obsolete.
3383 * function.c (free_lang_status): Mark as obsolete.
3384 * c-decl.c (push_c_function_context): Use GC to allocate and free
3385 struct language_function.
3386 (pop_c_function_context): Likewise.
3387 * c-common.c (mark_c_language_function): Mark struct
3390 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
3391 Document that the machine_function structures must be allocated
3392 using GC. Update mark_machine_status documentation.
3393 * function.h: Don't declare free_machine_status.
3394 * function.c (free_machine_status): Don't define.
3395 (free_after_compilation): Don't call free_machine_status.
3396 (ggc_mark_struct_function): Mark f->machine. Call
3397 mark_machine_status only on non-NULL pointers.
3398 * system.h: Poison free_machine_status.
3399 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
3400 struct machine_function.
3401 (xtensa_free_machine_status): Delete.
3402 (override_options): Don't set free_machine_status.
3403 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
3404 free_machine_status.
3405 (rs6000_init_machine_status): Use GC on struct machine_function.
3406 (rs6000_free_machine_status): Delete.
3407 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
3409 (ia64_mark_machine_status): Likewise.
3410 (ia64_free_machine_status): Delete.
3411 (ia64_override_options): Don't set free_machine_status.
3412 * config/i386/i386.c (override_options): Don't set
3413 free_machine_status.
3414 (ix86_init_machine_status): Use GC on struct machine_function.
3415 (ix86_mark_machine_status): Likewise.
3416 (ix86_free_machine_status): Delete.
3417 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
3419 (d30v_mark_machine_status): Likewise.
3420 (d30v_free_machine_status): Delete.
3421 (d30v_init_expanders): Don't set free_machine_status.
3422 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
3424 (arm_init_machine_status): Likewise.
3425 (arm_free_machine_status): Delete.
3426 (arm_init_expanders): Don't set free_machine_status.
3427 * config/alpha/alpha.c (override_options): Don't set
3428 free_machine_status.
3429 (alpha_init_machine_status): Use GC on struct machine_function.
3430 (alpha_mark_machine_status): Likewise.
3431 (alpha_free_machine_status): Delete.
3433 * varasm.c (compare_constant): Fix typo.
3435 * varasm.c: Don't include obstack.h.
3436 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
3437 (struct rtx_const): Give substructures names, improve formatting.
3438 (struct constant_descriptor): Delete.
3439 (struct constant_descriptor_tree): New, based on constant_descriptor.
3440 (const_hash_table): Is a hash table of trees.
3441 (mark_const_hash_entry): Is used for hashes of trees. Mark
3442 constant_descriptor_tree structure.
3443 (mark_const_str_htab_1): Mark deferred_string structure.
3444 (compare_constant): Rewrite to compare trees.
3445 (compare_constant_1): Delete.
3446 (record_constant): Delete.
3447 (record_constant_1): Delete.
3448 (output_constant_def): Use struct constant_descriptor_tree.
3449 Don't duplicate trees twice.
3450 (struct constant_descriptor_rtx): New.
3451 (struct pool_constant): Used for rtx constants.
3452 (init_varasm_status): Update for change to struct varasm_status.
3453 (mark_varasm_status): Likewise.
3454 (free_varasm_status): Delete.
3455 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
3456 (record_constant_rtx): Likewise.
3457 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
3458 (force_const_mem): Likewise.
3459 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
3460 * function.c (free_after_compilation): Don't use free_varasm_status.
3461 * function.h: Don't prototype free_varasm_status.
3463 * ggc-common.c (ggc_realloc): Handle X being NULL.
3465 * ggc-common.c (ggc_realloc): New function.
3466 * ggc.h: Prototype it.
3467 * emit-rtl.c (free_emit_status): Delete.
3468 (init_emit): Allocate emit subarrays using GC.
3469 (gen_reg_rtx): Reallocate subarrays using GC.
3470 (init_emit): Use GC to allocate 'struct emit_status' and its
3472 (mark_emit_status): Mark structure and its subarrays.
3473 * stmt.c (free_stmt_status): Delete.
3474 * expr.c (free_expr_status): Delete.
3475 * function.h: Remove prototypes for deleted functions.
3476 * function.c (free_after_compilation): Don't use deleted functions.
3477 Don't call free() on x_parm_reg_stack_loc.
3478 (free_after_parsing): Don't use free_stmt_status.
3479 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
3480 (mark_function_status): Mark x_parm_reg_stack_loc.
3482 * varasm.c (init_varasm_status): Use GC to allocate
3483 'struct varasm_status' and its fields x_const_rtx_hash_table
3484 and x_const_rtx_sym_hash_table.
3485 (mark_varasm_status): Mark them.
3486 (free_varasm_status): Use GC to free them.
3487 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
3488 (mark_expr_status): Mark the structure itself.
3489 (free_expr_status): Use GC to free the structure.
3490 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
3491 (mark_stmt_status): Mark the 'struct stmt_status' itself.
3492 (init_stmt_for_function): Allocate the structure for GC.
3494 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
3495 (equate_type_number_to_die): Likewise.
3496 * tree.h (TYPE_SYMTAB_DIE): New macro.
3497 (struct die_struct): Predeclare.
3498 (struct tree_type): Add field symtab.die. Add a tag
3499 to the union type of field symtab.
3501 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
3502 'struct rtvec_def *', not 'struct rtvec_def'.
3504 * function.h (original_arg_vector): Make a real rtvec.
3505 * function.c (ggc_mark_struct_function): Adjust.
3506 * integrate.c (expand_inline_function): Adjust.
3508 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3510 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
3511 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
3512 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
3513 (TARGET_VERSION_CPU): Define according to the
3515 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
3517 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
3518 if TARGET_SHMEDIA64.
3519 (LINK_DEFAULT_CPU_EMUL): Define according to the
3521 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
3522 (SUBTARGET_LINK_SPEC): Define.
3523 (LINK_SPEC): Use SH_LINK_SPEC.
3525 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
3526 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
3527 and TARGET_SHMEDIA64 which abort, for now.
3528 * config/sh/t-netbsd-sh5: New file.
3529 * config/sh/t-netbsd-sh5-32: New file.
3530 * config/sh/t-netbsd-sh5-64: New file.
3532 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
3533 Richard Henderson <rth@redhat.com>
3535 * config/alpha/alpha.c (reg_or_const_int_operand): New.
3536 (some_operand, input_operand): Accept CONST_VECTOR.
3537 (alpha_extra_constraint): Add 'W'.
3538 (alpha_expand_zap_mask): New.
3539 (alpha_expand_builtin_vector_binop): New.
3540 (enum alpha_builtin): New.
3541 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
3542 (alpha_init_builtins, alpha_expand_builtin): New.
3543 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
3544 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
3545 (PREDICATE_CODES): Update.
3546 * config/alpha/alpha-protos.h: Update.
3547 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
3548 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
3549 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
3550 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
3551 (movv2si, movv2si_fix, movv2si_nofix): New.
3552 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
3553 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
3554 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
3555 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
3556 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
3557 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
3558 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
3559 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
3560 builtin_unpkbw, unpkbw): New.
3561 * doc/extend.texi (Alpha Built-in Functions): New.
3563 2002-06-03 Richard Henderson <rth@redhat.com>
3565 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
3566 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
3568 2002-06-03 Richard Henderson <rth@redhat.com>
3570 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
3572 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
3573 (const0_operand): New.
3574 (reg_or_fp0_operand, fp0_operand): Remove.
3575 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3576 * config/alpha/alpha-protos.h: Update.
3577 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
3578 and fp0_operand with reg_or_0_operand and const0_operand.
3580 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
3582 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
3584 2002-06-03 Roger Sayle <roger@eyesopen.com>
3586 * gcse.c (cprop_jump): Use single_set to get the pattern
3587 from the setcc argument.
3589 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
3591 * diagnostic.h (diagnostic_count): Move from output_buffer to
3593 (diagnostic_kind_count): Adjust definition.
3595 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
3597 * except.c (except.c): Do not rebuild CFG.
3598 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
3601 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
3603 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
3604 * toplev.c: Include cfglahout.h
3605 * Makefile.in (toplev.c): Add dependnecy.
3607 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
3609 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
3610 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
3611 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
3613 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
3615 * config/ns32k/netbsd.h: Update copyright years.
3616 (TARGET_OS_CPP_BUILTINS): Define.
3617 (CPP_PREDEFINES): Remove.
3618 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
3619 (TARGET_CPU_CPP_BUILTINS): Define.
3621 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
3623 * emit-rtl.c: Fix formatting.
3624 * errors.h: Likewise.
3625 * except.c: Likewise.
3626 * explow.c: Likewise.
3627 * expmed.c: Likewise.
3631 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
3633 * config/h8300/elf.h: Fix formatting.
3634 * config/h8300/rtems.h: Likewise.
3636 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
3638 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
3640 2002-06-02 Tom Tromey <tromey@redhat.com>
3642 * fixinc/fixincl.x: Rebuilt.
3643 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
3645 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3648 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
3649 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
3653 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
3655 * final.c (final): Allow notes to not have computed addresses;
3656 kill no longer needed STACK_REGS ifdef.
3658 2002-06-02 Richard Henderson <rth@redhat.com>
3660 * gcse.c (bypass_conditional_jumps): Fix typo last change.
3662 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3664 * loop.c (emit_prefetch_instructions): Properly place the address
3667 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
3669 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
3670 (set_block_for_insn): Turn into macro.
3671 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
3672 * cfglayout.c (insn_scopes): Kill.
3673 (scope_to_insns_initialize): Do not use insn_scopes.
3674 (scope_to_insns_finalize): Likewise.
3675 (duplicate_insn_chain): Likewise.
3676 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
3677 * cfgrtl.c (basic_block_for_insn): Kill.
3678 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
3679 (create_basic_block_structure): Use reorder_insns.
3680 (compute_bb_for_insn): Do not use basic_block_for_insn.
3681 (merge_blocks_nomove): Likewise.
3682 (update_bb_for_insn): Likewise.
3683 (verify_flow_info): Likewise.
3684 (set_block_for_insn): Kill.
3685 * combine.c (try_combine): Update gen_rtx_INSN call.
3686 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
3687 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
3689 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
3690 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
3692 (emit_insns_after): Simplify.
3693 (emit_copy_of_insn_after): Copy scope.
3694 * final.c (final_start_function): Lower scopes.
3695 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
3696 * integrate.c (copy_insn_list): Cope scopes.
3697 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
3698 * loop.c (loop_optimize): Do not care block notes.
3699 * print-rtl.c (print_rtx): Print BB.
3700 * recog.c (apply_change_group): Simplify.
3701 * rtl.c (copy_rtx): Handle 'B'.
3702 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
3703 * rtl.h (Field accessors): Update indexes.
3704 * sched-ebb.c (schedule_ebbs): Do not lower notes.
3705 * sched-rgn.c (schedule_insns): Likewise.
3706 * toplev.c (rest_of_compilation): Lower notes.
3707 * unroll.c (unroll_loop): Do not care scoping notes.
3708 (copy_loop_body): Copy scopes.
3710 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3713 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
3715 * rtems.h: Similarly.
3716 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
3717 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
3718 (TARGET_CPU_CPP_BUILTINS): Use.
3720 2002-06-02 Richard Henderson <rth@redhat.com>
3722 * alias.c: Include target.h.
3723 (mark_constant_function): Use targetm.binds_local_p instead
3724 of checking TREE_PUBLIC ourselves.
3725 * Makefile.in (alias.o): Add TARGET_H.
3727 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3729 * c-lex.c: Update copyright and file description.
3731 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3733 * config/fr30/fr30.h: Update to new CPP macros.
3735 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3737 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
3739 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3740 Zack Weinberg <zack@codesourcery.com>
3742 * c-common.c (c_common_init): Override cpplib's default
3743 warn_long_long setting.
3744 * c-lex.c (lex_number): Replace with interpret_integer,
3745 interpret_float, narrowest_unsigned_type and
3746 narrowest_signed_type, taking advantage of the new
3747 cpplib functionality.
3748 * cpperror.c (_cpp_begin_message): If a warning is turned
3749 into an error, avoid printing "warning:".
3750 * cppexp.c (cpp_num_sign_extend): New.
3751 * cppinit.c: Update comment.
3752 * cpplib.h (cpp_num_sign_extend): New.
3753 * tree.h: Update comment.
3755 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
3757 * diagnostic.h (struct diagnostic_context): Add new member
3759 (internal_error_function): Remove declaration.
3760 * diagnostic.c (internal_error_function): Remove definition..
3761 (internal_error): Adjust use.
3763 2002-06-02 Richard Henderson <rth@redhat.com>
3765 * rtl.h (CC0_P): New.
3766 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
3767 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
3768 (bypass_block): Save old dest block for dump text.
3769 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
3770 Allow only true SET insns, not single_set.
3772 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
3774 * diagnostic.c (diagnostic_finish): Rename to output_flush.
3775 (clear_disgnostic_info): Rename to output_clear_data. Use false
3776 instead of 0 for boolean value.
3777 Adjust function call throughout.
3779 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
3781 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
3782 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
3784 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3786 * d30v.h (CPP_PREDEFINES): Replace with
3787 (TARGET_CPU_CPP_BUILTINS): New.
3789 2002-06-02 Roger Sayle <roger@eyesopen.com>
3791 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
3793 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
3795 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
3797 2002-06-02 Richard Henderson <rth@redhat.com>
3799 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
3801 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
3803 Support for C++ constructors/destructors.
3804 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
3805 instead of looping if main() returns.
3806 (asm_file_start): Output global symbols that cause .data and .bss
3807 initialization code to be linked in, unconditionally for now.
3808 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
3809 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
3810 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
3812 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
3813 (__tablejump__): New.
3814 (__do_copy_data, __do_clear_bss): New.
3815 (__do_global_ctors, __do_global_dtors): New.
3816 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
3819 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3821 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
3822 (CPP_SPEC, CPP_PREDEFINES): Kill.
3823 * c4x/rtems.h (CPP_PREDEFINES): Kill.
3824 (TARGET_OS_CPP_BUILTINS): New.
3826 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
3828 * Makefile.in (tracer.o): New.
3829 * params.def (TRACER_*): New options.
3830 * rtl.h (tracer): Declare.
3831 * timevar.def (TV_TRACER): New.
3832 * toplev.c (dump_file_index): Add DFI_tracer.
3833 (dump_file_info): Add tracer.
3835 (lang_indepdenent_options): Add tracer.
3836 (rest_of_compilation): Call tracer.
3837 * tracer.c: New file.
3838 * invoke.texi (-ftracer): Document.
3839 (--param tracer-*): Document.
3841 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
3843 * tree-inline.c (expand_call_inline): Make the statement
3844 expression we generate have a COMPOUND_STMT.
3846 2002-06-01 Roger Sayle <roger@eyesopen.com>
3848 * gcse.c (cprop_cc0_jump): Function deleted.
3849 (cprop_jump): Take an additional argument which is the possibly
3850 NULL cc setting insn immediately before the conditional jump.
3851 When a MODE_CC set is present, substitute it into the JUMP_INSN
3852 before attempting the constant propagation.
3853 (cprop_insn): Recognize cc setters followed by conditional jumps
3854 as a special case. Use cprop_jump instead of cprop_cc0_jump.
3855 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
3856 (find_bypass_set): New function based upon find_avail_set used by
3857 cprop, but finds constant expressions available at the end of
3859 (bypass_block): New function. Given a basic block that begins
3860 with a conditional jump and multiple incoming edges, perform
3861 the jump bypass optimization.
3862 (bypass_conditional_jumps): New function. Call bypass_block with
3863 each suitable basic block in the CFG using a simple single pass.
3865 2002-06-01 Roger Sayle <roger@eyesopen.com>
3867 * tree.c (real_minus_onep): New function to test for -1.0.
3868 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
3870 2002-06-01 Roger Sayle <roger@eyesopen.com>
3872 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
3873 and "!p && !q" into "(p|q) == 0" under suitable conditions.
3875 2002-06-01 Andreas Jaeger <aj@suse.de>
3877 * cppexp.c (cpp_classify_number): Cast precission to int for
3878 correct printf format.
3880 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
3882 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
3883 expected, but don't really exist: atmega83, atmega85, attiny10.
3884 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
3885 emulations for all devices.
3886 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
3887 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
3889 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
3891 * config/h8300/h8300-protos.h: Add a prototype for
3892 h8300_shift_needs_scratch_p.
3893 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
3894 * config/h8300/h8300.h (OK_FOR_R): New.
3895 (OK_FOR_S): Likewise.
3896 (OK_FOR_T): Likewise.
3897 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
3898 * config/h8300/h8300.md (anonymous shift patterns): Use
3899 constraints R, S, and T.
3901 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3903 * basic-block.h (struct basic_block_def): New field loop_father.
3904 (BB_VISITED): New flag.
3905 (struct loop): New field pred, removed field shared.
3906 (struct loops): New field parray.
3907 (LOOP_EXITS_DOMS): Removed.
3908 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
3909 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
3910 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
3911 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
3912 verify_loop_structure): Declare.
3913 * cfg.c (entry_exit_blocks): Initialize loop_father field.
3914 * cfganal.c (dfs_enumerate_from): New function.
3915 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
3916 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
3917 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
3918 flow_loop_dump, flow_loops_dump, flow_loops_free,
3919 flow_loop_tree_node_add, flow_loop_level_compute,
3920 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
3921 flow_loop_outside_edge_p): Modified for new infrastructure.
3922 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
3923 redirect_edge_with_latch_update, flow_loop_free): New static functions.
3924 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
3925 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
3926 find_common_loop, verify_loop_structure, loop_latch_edge,
3927 loop_preheader_edge): New functions.
3928 (flow_loops_cfg_dump): Do not show dominators, as this information
3929 does not remain up to date long.
3930 (flow_loops_find): Store results in new format.
3931 * predict.c (propagate_freq, estimate_probability,
3932 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
3935 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
3937 * except.c (nothrow_function_p): Walk epilogue delay list
3938 checking the insn, not the chain for potential throws.
3940 2002-05-31 Zack Weinberg <zack@codesourcery.com>
3942 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
3943 (install): Refer to install-cpp directly.
3944 (uninstall-cpp): Folded into uninstall rule.
3945 * configure.in: Delete all code relating to --disable-cpp.
3946 * configure: Regenerate.
3947 * config/t-install-cpp: Delete.
3949 2002-05-31 Richard Henderson <rth@redhat.com>
3951 * configure.in (HAVE_AS_TLS): Add alpha tests.
3952 * configure: Rebuild.
3953 * config/alpha/alpha.c (TARGET_AS_TLS): New.
3954 (alpha_tls_size, alpha_tls_size_string): New.
3955 (overide_options): Set it. Always install machine_status hooks.
3956 (input_operand): Accept got tls predicates.
3957 (local_symbol_p): Merge into ...
3958 (local_symbolic_operand): ... here. Reject tls symbols.
3959 (global_symbolic_operand): Likewise.
3960 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
3961 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
3962 (tp16_symbolic_operand, tp32_symbolic_operand): New.
3963 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
3964 (alpha_encode_section_info): Handle TLS symbols.
3965 (alpha_strip_name_encoding): Likewise.
3966 (alpha_legitimate_address_p): Likewise.
3967 (alpha_legitimize_address): Likewise.
3968 (alpha_expand_mov): Early exit to avoid nop moves.
3969 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
3970 (alpha_init_machine_status, alpha_mark_machine_status,
3971 alpha_free_machine_status): Always define.
3972 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
3973 (print_operand, print_operand_address): Add TLS relocs.
3974 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
3975 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
3976 (TARGET_SWITCHES): Add -mtls-kernel.
3977 (alpha_tls_size, alpha_tls_size_string): New.
3978 (TARGET_OPTIONS): Add -mtls-size=.
3979 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
3980 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
3981 (ASM_OUTPUT_LABELREF): Skip %.
3982 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
3983 (PREDICATE_CODES): Update.
3984 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
3985 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
3986 UNSPEC_TP, UNSPECV_SET_TP): New.
3987 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
3988 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
3989 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
3990 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
3991 (call_value_osf_2_er): Accept anything as op4.
3992 * config/alpha/alpha-protos.h: Update.
3993 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
3995 2002-05-31 Zack Weinberg <zack@codesourcery.com>
3997 * cppinit.c (append_include_chain): Always pay attention to
3998 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
4001 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
4003 * target.h: Fix formatting.
4004 * timevar.h: Likewise.
4005 * tlink.c: Likewise.
4006 * toplev.c: Likewise.
4007 * toplev.h: Likewise.
4009 * tree-dump.h: Likewise.
4011 * tree-inline.h: Likewise.
4012 * unroll.c: Likewise.
4013 * unwind-dw2.c: Likewise.
4014 * unwind-dw2-fde.c: Likewise.
4015 * unwind-dw2-fde-glibc.c: Likewise.
4016 * unwind-dw2-fde.h: Likewise.
4017 * unwind.h: Likewise.
4018 * unwind-sjlj.c: Likewise.
4019 * varasm.c: Likewise.
4020 * varray.h: Likewise.
4021 * vmsdbg.h: Likewise.
4022 * vmsdbgout.c: Likewise.
4023 * xcoffout.h: Likewise.
4025 2002-05-31 Igor Shevlyakov <igor@microunity.com>
4027 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
4028 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
4030 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
4032 * gcc.c (cpp_unique_options): Remove "-d" options.
4033 (cpp_debug_options): New spec string.
4034 (default_compilers): Use it.
4035 * objc/lang-specs.h: Likewise.
4037 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
4039 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
4040 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
4041 * gcc/mklibgcc.in: Likewise.
4042 * gcc/config/arc/t-arc: Likewise.
4043 * gcc/configure.in: Likewise.
4044 * gcc/configure: Regenerate.
4046 2002-05-31 Stan Shebs <shebs@apple.com>
4047 Turly O'Connor <turly@apple.com>
4049 * c-decl.c (struct binding_level): Change int field n_incomplete
4050 to tree list incomplete_list.
4051 (clear_binding_level): Init field with NULL.
4052 (pushdecl): Add incomplete type to list.
4053 (mark_binding_level): Mark the incomplete list.
4054 (finish_struct): Scan the incomplete list for types instead
4055 of all decls in the current binding level.
4057 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
4059 * pa.c (output_millicode_call): Add missing '%' characters.
4060 (output_call): Likewise.
4062 2002-05-31 David Edelsohn <edelsohn@gnu.org>
4064 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
4065 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
4067 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
4069 * varasm.c (mark_constant_pool): Walk epilogue delay list
4070 checking the insn, not the chain for potential constants.
4072 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
4074 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
4076 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
4078 * i386.c (classify_argument): Properly handle base types.
4080 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
4081 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
4084 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4086 * gcse.c (gcse_emit_move_after): New.
4087 (pre_delete, hoist_store): Use it.
4089 * reload1.c (emit_input_reload_insns): Use constrain_operands
4090 instead of constraint_accepts_reg_p to verify optimization.
4091 (constraint_accepts_reg_p): Kill
4093 * reload1.c (reload_cse_delete_noop_set): Kill.
4094 (reload_cse_simplify): use delte_insn_and_edges.
4096 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4098 * cfgloop.c (flow_loops_find): Initialize first and last fields
4101 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
4103 * c-common.c (builtin_define_std): Correct logic.
4105 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
4107 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
4108 (output_call): Likewise.
4110 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
4112 * pa.c: Move output.h include after tree.h include.
4113 (pa_asm_output_mi_thunk): Constify identifier lab.
4115 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
4117 * config/ns32k/ns32k.h: Define named constants for the
4118 bits in target_flags and use them.
4119 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
4121 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4123 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
4124 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
4125 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
4126 default scheduling model.
4127 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
4128 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
4129 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
4130 * doc/install.texi (hppa*-*-*): Document default scheduling.
4132 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4134 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
4136 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
4138 * config.gcc (ns32k-*-netbsd*): Set tm_file to
4139 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
4140 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
4141 netbsd.h, or netbsd-aout.h.
4143 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
4145 * longlong.h (count_trailing_zeros): Add missing \, and clean up
4146 whitespace in __ns32000__ case.
4148 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
4150 * expr.c (expand_expr): Output partially zeroed out vectors with
4151 output_constant_def.
4153 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4155 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
4157 (shl*-*-netbsdelf*): New targets.
4158 * config/sh/netbsd-elf.h: New file.
4159 * config/sh/t-netbsd: New file.
4161 2002-05-30 Richard Henderson <rth@redhat.com>
4162 Eric Botcazou <ebotcazou@multimania.com>
4164 PR optimization/6822
4165 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
4166 to unsigned int for op1 comparisons. Use gen_int_mode.
4168 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
4170 * expmed.c (const_mult_add_overflow_p): New.
4171 * expr.h: Declare it.
4172 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
4173 Don't eliminate the biv if the giv has a constant multiplier and
4174 the rhs argument of the comparison does satisfy the predicate.
4175 Use expand_mult_add to compute the replacement constant.
4177 2002-05-30 Osku Salerma <osku@iki.fi>
4179 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
4180 (c_common_get_alias_set): Handle it.
4181 * doc/extend.texi: Document it.
4183 2002-05-30 Richard Henderson <rth@redhat.com>
4185 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4186 * toplev.c (process_options): Don't check it.
4187 * doc/tm.texi: Don't document it.
4188 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
4189 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4190 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
4191 frame pointer optimization if current_function_profile.
4193 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
4195 * langhooks.c: Fix formatting.
4196 * langhooks.h: Likewise.
4198 * libgcc2.c: Likewise.
4199 * lists.c: Likewise.
4200 * local-alloc.c: Likewise.
4204 2002-05-30 Marc Espie <espie@openbsd.org>
4206 * config.gcc (sparc64-*-openbsd*): New.
4207 * config/sparc/openbsd1-64.h: New.
4208 * config/sparc/openbsd64.h: New.
4210 2002-05-30 Jeff Law <law@redhat.com>
4212 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
4213 a dead insn with a REG_RETVAL note when the entire libcall is not
4214 dead and remove the associated REG_LIBCALL note at the same time.
4216 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
4218 * lcm.c (output.h): #include.
4219 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
4220 as an ordinary block.
4221 (optimize_mode_switching): Don't pretend that the exit block is
4222 an ordinary block, or handle sucessors of entry block specially.
4223 Instead, split edges from entry block and to exit block, and
4224 put a computing definition on the thus gained post-entry-block,
4225 and a need on the pre-exit-block.
4227 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
4229 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
4230 * rtl.texi: Document 'B'
4232 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4234 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
4236 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
4238 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
4240 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
4241 const0_rtx instead of NULL_RTX when in error.
4242 (altivec_expand_abs_builtin): Same.
4243 (rs6000_expand_binop_builtin): Same.
4244 (altivec_expand_predicate_builtin): Same.
4245 (altivec_expand_stv_builtin): Same.
4246 (rs6000_expand_ternop_builtin): Same.
4247 (altivec_expand_builtin): Same.
4249 2002-05-29 David S. Miller <davem@redhat.com>
4251 * rtl.h (clear_emit_caches): Delete.
4252 * integrate.c (output_inline_function): Don't call it.
4253 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
4254 (clear_emit_caches): Delete definition.
4255 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
4257 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
4259 * config/mmix/mmix.c: Include real.h.
4260 (mmix_constant_address_p): Remove redundant test before switch.
4262 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4264 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
4265 only if not already defined.
4267 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
4269 * config/h8300/h8300-protos.h: Remove prototypes for
4270 ok_for_bclr and small_power_of_two.
4271 * config/h8300/h8300.c (small_power_of_two): Remove.
4272 (ok_for_blcr): Likewise.
4273 (fix_bit_operand): Make WHAT deal with an integer instead of a
4274 constraint character.
4275 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
4276 (CONST_OK_FOR_P): Likewise.
4277 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
4278 CONST_OK_FOR_P any more.
4279 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
4284 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4286 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4287 (CPP_PREDEFINES): Make sure this is undefined.
4288 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
4289 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
4290 or -U__MIPSEB__ before defining one or the other. Instead,
4291 use %(subtarget_endian_default) if neither -EB nor -EL are
4293 (SUBTARGET_EXTRA_SPECS): Define.
4294 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
4297 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
4299 * doc/md.texi (Patterns): Note pattern condition pitfall
4302 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
4304 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
4305 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
4306 ternary operations from here...
4307 (rs6000_expand_builtin): ...to here.
4308 New argument expandedp.
4309 Change all instances of altivec_expand_binop_builtin to
4310 rs6000_expand_binop_builtin.
4311 (altivec_expand_unop_builtin): Rename to
4312 rs6000_expand_unop_builtin.
4313 (altivec_expand_binop_builtin): Rename to
4314 rs6000_expand_binop_builtin.
4315 (altivec_expand_ternop_builtin): Rename to
4316 rs6000_expand_ternop_builtin.
4318 2002-05-29 Richard Henderson <rth@redhat.com>
4320 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
4321 (TARGET_BI_ARCH): Likewise.
4322 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
4323 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
4324 (TARGET_64BIT_DEFAULT): Default to 0.
4325 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
4327 2002-05-29 Richard Henderson <rth@redhat.com>
4329 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
4330 (get_pc_thunk_name): New.
4331 (output_set_got): Use it.
4332 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
4333 into linkonce sections.
4335 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4337 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4338 (CPP_PREDEFINES): Make sure this is undefined.
4339 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
4340 (CPP_SUBTARGET_SPEC): Don't provide different versions for
4341 default-32 and default-64. Just always use %(netbsd_cpp_spec).
4342 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
4343 cpp_subtarget_spec64. Add netbsd_cpp_spec.
4344 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4345 (CPP_PREDEFINES): Make sure this is undefined.
4346 (SUBTARGET_EXTRA_SPECS): Define.
4347 (CPP_SPEC): Use %(netbsd_cpp_spec).
4349 2002-05-29 Jeff Law <law@redhat.com>
4351 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
4353 * flow.c (propagate_one_insn): Do not remove a dead insn if it
4354 contains a REG_RETVAL note.
4356 * haifa-sched (sched_analyze): Remove another useless clearing
4357 of SCHED_GROUP_P I missed yesterday.
4359 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
4360 * pa.c (pa_asm_output_mi_thunk): New function.
4361 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
4363 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
4364 Marek Michalkiewicz <marekm@amelek.gda.pl>
4366 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
4367 (avr_asm_only_p): Make non-static.
4368 (enum avr_arch): Remove.
4369 (avr_arch_types): New.
4370 (avr_mcu_types): Update.
4371 (avr_override_options): Use avr_arch_types table instead of switch.
4372 * avr.h (CPP_PREDEFINES): Die.
4373 (avr_base_arch_macro, avr_extra_arch_macro): New.
4374 (TARGET_CPU_CPP_BUILTINS): New.
4375 (CPP_SPEC, EXTRA_SPECS): Simplify.
4376 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
4377 CPP_AVR5_SPEC): Die.
4379 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4381 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4382 NETBSD_OS_CPP_BUILTINS_AOUT.
4383 (SUBTARGET_EXTRA_SPECS): Define.
4384 (CPP_SPEC): Use %(netbsd_cpp_spec).
4386 2002-05-29 Richard Henderson <rth@redhat.com>
4388 * config/i386/i386.c (ix86_output_function_epilogue): New.
4389 (TARGET_ASM_FUNCTION_EPILOGUE): New.
4390 (pic_label_name): Remove.
4391 (pic_labels_used): New.
4392 (ix86_asm_file_end): Emit one pc load stub for each register used.
4393 (output_set_got): Generate deep pc load to any register.
4394 (ix86_select_alt_pic_regnum): New.
4395 (ix86_save_reg): Don't save pic register if we can find a valid
4396 call-clobbered replacement.
4397 (ix86_expand_prologue): If we found a valid replacement, renumber
4398 pic_offset_table_rtx.
4399 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
4400 pic_offset_table_rtx after reload.
4401 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
4402 * config/i386/i386.md (set_got): Make insn, not expander.
4403 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
4405 2002-05-29 Richard Henderson <rth@redhat.com>
4407 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
4408 alignment for alloca.
4410 2002-05-29 Richard Henderson <rth@redhat.com>
4412 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
4413 (print_operand_address): Only add rip for symbolic addresses
4414 for which we do not have another relocation type.
4416 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4418 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4419 (EXTRA_SPECS): Add netbsd_cpp_spec.
4420 (CPP_SPEC): Use %(netbsd_cpp_spec).
4421 (CPP_PREDEFINES): Remove.
4422 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4423 (EXTRA_SPECS): Define.
4424 (CPP_SPEC): Use %(netbsd_cpp_spec).
4425 (CPP_PREDEFINES): Remove.
4427 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
4429 PR preprocessor/6844
4430 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
4433 2002-05-29 Eric Christopher <echristo@redhat.com>
4435 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
4436 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
4438 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
4440 * config/fr30/fr30.md: Remove previous restriction on splits.
4441 Enforce conformance through gen_lowpart and cont_int_operand.
4442 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
4443 as the assembler does not support ".bss".
4445 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4447 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4448 (CPP_PREDEFINES): Remove.
4449 (SUBTARGET_EXTRA_SPECS): Define.
4450 (CPP_SPEC): Use %(netbsd_cpp_spec).
4451 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4452 (CPP_PREDEFINES): Remove.
4453 (SUBTARGET_EXTRA_SPECS): Define.
4454 (CPP_SPEC): Use %(netbsd_cpp_spec).
4455 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
4456 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
4457 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
4458 Add netbsd_cpp_spec.
4459 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
4461 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
4462 Zack Weinberg <zack@codesourcery.com>
4464 * cppexp.c (cpp_num): Move to cpplib.h.
4465 (CPP_ERROR): Remove.
4466 (interpret_float_suffix, interpret_int_suffix): New.
4467 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
4468 (cpp_classify_number, cpp_interpret_integer): New.
4469 (interpret_number): Remove.
4470 (eval_token): Update to use new routines.
4471 * cpphash.h (cpp_num_part): Move to cpplib.h.
4472 * cppinit.c (cpp_post_options): Set warn_long_long.
4473 * cpplib.h (struct cpp_options): Add warn_long_long.
4474 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
4475 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
4476 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
4477 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
4478 cpp_interpret_integer): New.
4480 2002-05-29 Joel Sherrill <joel@OARcorp.com>
4482 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
4484 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4486 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4487 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
4488 (CPP_SUBTARGET_SPEC): Define.
4489 (SUBTARGET_EXTRA_SPECS): Define.
4492 2002-05-29 Chris Lattner <sabre@nondot.org>
4494 * ssa.c (rename_insn_1): Rename uses of undefined registers to
4495 prevent confusion if/when the register is defined.
4497 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
4500 * config/cris/cris.md: Fix typos and thinkos in comments.
4501 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
4503 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
4504 ("*mov_sideqi_mem"): Similar, but for operand 3.
4505 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
4506 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
4507 Remove spurious mode specifier on operand 2.
4509 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
4511 * config/h8300/h8300-protos.h: Remove the prototype for
4513 Add prototypes for single_one_operand and single_zero_operand.
4514 * config/h8300/h8300.c (o_operand): Remove.
4515 (single_one_operand): New.
4516 (single_zero_operand): Likewise.
4517 (print_operand): For 'V' operand, and the operand with 0xff.
4518 For 'V' and 'W' operands, do not and the bit position with 7.
4519 * config/h8300/h8300.md (various anonymous patterns): Replace
4520 use of exact_log2 with single_one_operand/single_zero_operand.
4522 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
4524 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
4526 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
4528 * config/s390/s390.c (legitimate_pic_operand_p): Do not
4529 accept symbolic LARL operands.
4530 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
4533 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
4535 * config/s390/s390.md (cmpstr_64/31): Mark whole
4536 input registers as used.
4538 2002-05-28 Richard Henderson <rth@redhat.com>
4540 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
4541 not current_function_uses_pic_offset_table and
4542 current_function_uses_const_pool; examine current_function_profile.
4543 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
4544 input to blockage if needed.
4545 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
4546 (legitimize_pic_address): Likewise. Set regs_ever_live for
4547 pic_offset_table_rtx when invoked during reload.
4548 * config/i386/i386.h (FINALIZE_PIC): Remove.
4549 * config/i386/i386.md (tablejump): Reformat. Do not set
4550 current_function_uses_pic_offset_table.
4551 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
4552 (blockage): Accept anything as operand 0.
4554 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4556 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
4557 common CPP built-ins for all NetBSD a.out targets.
4558 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
4559 common CPP built-ins for all NetBSD ELF targets.
4560 * config/netbsd.h: Add missing notice.
4561 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
4562 for all NetBSD targets.
4563 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
4564 for all NetBSD targets using an LP64 code model.
4565 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
4568 2002-05-28 Richard Henderson <rth@redhat.com>
4570 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
4571 update if UPDATE_LIFE_LOCAL.
4573 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4575 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
4577 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
4578 Jason R. Thorpe <thorpej@wasabisystems.com>
4580 config/sh reorganization to factor out endianness and coff:
4582 * config/sh/little.h: New file.
4583 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
4584 defined, define to 0 to select big-endian.
4585 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
4586 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4587 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4588 * config/sh/t-be: New file.
4589 * config/sh/t-le: New file.
4591 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
4592 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
4593 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
4594 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
4595 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
4596 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
4597 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
4598 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
4599 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
4600 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
4601 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
4602 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
4603 (LINK_SPEC): Define to SH_LINK_SPEC.
4604 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
4605 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
4606 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
4607 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
4608 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
4609 * config/sh/coff.h: New file.
4610 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
4611 (TARGET_OBJFMT_CPP_BUILTINS): Define.
4612 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
4613 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
4614 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
4615 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
4616 (PTRDIFF_TYPE): Likewise.
4617 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
4618 (CPP_PREDEFINES): Don't define.
4619 (TARGET_OBJFMT_CPP_BUILTINS): Define.
4620 (LINK_SPEC): Define to SH_LINK_SPEC.
4621 (LINK_EMUL_PREFIX): Redefine.
4622 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
4623 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
4624 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
4625 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
4626 (TARGET_OS_CPP_BUILTINS): Define.
4627 (TARGET_DEFAULT): Redefine.
4628 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
4629 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
4630 (LINK_SPEC): Don't redefine.
4631 (LINK_DEFAULT_CPU_EMUL): Redefine.
4632 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4633 * sh.c (sh_asm_named_section): Don't declare / define.
4634 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
4635 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
4636 (sh64-*-elf* tm_file): Likewise.
4637 (sh-*-rtemself* tm_file): Likewise.
4638 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
4639 (sh-*-linux* tmake_file): Add sh/t-le.
4640 (sh-*-rtems* tm_file): Add sh/coff.h
4641 (sh-*-* tm_file): Likewise.
4643 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
4645 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
4646 CONSTANT_POOL_ADDRESS_P.
4648 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
4650 2002-05-28 David Edelsohn <edelsohn@gnu.org>
4651 Jeff Law <law@redhat.com>
4653 * optabs.c (expand_binop): Fix nwords sign warnings.
4654 generate pseudo for add_optab.
4656 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
4657 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
4659 2002-05-28 Marc Espie <espie@openbsd.org>
4661 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
4662 inherited from gas.h.
4663 (ASM_QUAD): Undef. OpenBSD does not support it.
4665 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
4667 * doc/install.texi (binaries): Change mingw binaries
4668 link to www.mingw.org.
4670 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4672 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
4674 2002-05-28 Richard Henderson <rth@redhat.com>
4676 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
4677 bottom alignment for leaf functions.
4679 2002-05-28 Zack Weinberg <zack@codesourcery.com>
4681 * config/pa/milli32.S, config/pa/lib1funcs.asm,
4682 config/sparc/sol2-g1.asm: Delete unused files.
4684 2002-05-28 Richard Henderson <rth@redhat.com>
4686 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
4688 * flow.c (calculate_global_regs_live): Rename call_used to
4689 invalidated_by_call. Initialize from regs_invalidated_by_call
4690 instead of call_used_regs.
4692 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
4695 2002-05-28 Zack Weinberg <zack@codesourcery.com>
4697 * tree.h: Don't include real.h.
4698 Forward-declare struct realvaluetype.
4699 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
4701 (TREE_REAL_CST_PTR): New accessor.
4702 (TREE_REAL_CST): Update.
4703 * real.h: Include machmode.h.
4704 (realvaluetype): Make it struct realvaluetype, not a typedef.
4705 (build_real): Prototype here.
4707 * tree.c: Include real.h.
4708 (build_real): Allocate the REAL_VALUE_TYPE as a separate
4709 object in GC memory, set TREE_REAL_CST_PTR to point to it.
4710 (build_real_from_int_cst): Use build_real.
4711 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
4714 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
4715 fold-const.c, print-tree.c, real.c: Include real.h.
4716 * Makefile.in: Update dependency lists.
4718 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4720 * basic-block.h (last_basic_block): Declare.
4721 (expunge_block_nocompact): Declaration removed.
4722 (compact_blocks): Declare.
4723 * cfg.c (last_basic_block): New variable.
4724 (expunge_block_nocompact): Removed.
4725 (expunge_block): Do not compact basic blocks.
4726 (compact_blocks): New.
4727 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
4729 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
4731 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
4732 real positions of blocks.
4733 (delete_unreachable_blocks): Simplified -- quadratic behavior now
4735 (cleanup_cfg): Compact blocks.
4736 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
4737 basic_block_info varray.
4738 (flow_delete_block): Comment update.
4739 (back_edge_of_syntactic_loop_p): Modify position check code.
4740 (verify_flow_info): Update checking.
4741 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
4742 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
4743 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
4744 indices no longer change.
4745 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
4747 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
4748 * profile.c (branch_prob): Compact blocks.
4749 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
4752 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
4754 * config/h8300/h8300.md (two anonymous patterns): New.
4756 2002-05-28 David S. Miller <davem@redhat.com>
4758 * config/sparc/sparc.md (cpu): Tidy.
4759 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
4761 (in_call_delay): Delete reference to 'return' type.
4762 (eligible_for_return_delay, in_return_delay, define_delay
4763 referencing those): Delete.
4764 (rest of file): Use new type attributes as appropriate.
4765 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
4766 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
4767 * config/sparc/ultra1_2.md (us1_single): New reservation.
4768 (us1_ialuX): Likewise.
4769 * config/sparc/ultra3.md (us3_single): Likewise.
4770 (us3_ialuX): Likewise.
4771 (us3_imul, us3_idiv): Tweak.
4773 2002-05-28 Richard Henderson <rth@redhat.com>
4775 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
4778 2002-05-28 Richard Henderson <rth@redhat.com>
4780 * config.gcc: Obsolete mn10200.
4782 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
4784 * cppexp.c (interpret_number): Optimize for single-digit
4785 and less-than-half-precision cases.
4786 (num_trim, num_positive, num_div_op): Cast constants.
4788 2002-05-27 Bo Thorsen <bo@suse.de>
4790 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
4791 3.1 branch. The file was made by Jakub Jelinek.
4792 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
4793 support so multilib doesn't break. And don't define this at all
4794 when -Dinhibit_libc is used.
4795 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
4796 * config/i386/t-linux64: Implement full multilib support. Patch
4797 originally done by Andreas Jaeger and Jakub Jelinek.
4799 2002-05-27 Roger Sayle <roger@eyesopen.com>
4801 * c-common.c: Add support for __attribute__((nothrow)) to specify
4802 that a function cannot throw an exception (using TREE_NOTHROW).
4803 (handle_nothrow_attribute): New function to process this attribute.
4805 * doc/extend.texi: Document the new nothrow function attribute.
4807 2002-05-27 H.J. Lu (hjl@gnu.org)
4809 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
4810 (num_positive): Likewise.
4811 (num_div_op): Likewise.
4813 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
4815 * c-common.c (c_common_init): Always use intmax_t.
4817 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
4819 * c-common.c (c_common_init): Use intmax_t for now.
4821 2002-05-24 Andrew Haley <aph@redhat.com>
4823 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
4824 if T is a boolean type.
4826 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4828 * basic-block.h (last_basic_block): Defined as synonym for
4830 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
4831 flow_depth_first_order_compute, flow_preorder_transversal_compute,
4832 flow_dfs_compute_reverse_init): Replaced relevant occurences of
4833 n_basic_blocks with last_basic_block.
4834 * cfgbuild.c (make_edges): Likewise.
4835 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
4836 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
4837 * combine.c (combine_instructions): Likewise.
4838 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
4839 iterative_dataflow_bitmap): Likewise.
4840 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
4841 calc_idoms, idoms_to_doms): Likewise.
4842 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
4844 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
4845 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
4846 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
4847 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
4848 delete_null_pointer_checks, compute_code_hoist_vbeinout,
4849 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
4850 compute_store_table, build_store_vectors): Likewise.
4851 * haifa-sched.c (sched_init): Likewise.
4852 * ifcvt.c (if_convert): Likewise.
4853 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
4854 pre_edge_lcm, compute_available, compute_nearerout,
4855 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
4857 * predict.c (estimate_probability, process_note_prediction,
4858 note_prediction_to_br_prob): Likewise.
4859 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
4860 * recog.c (split_all_insns, peephole2_optimize): Likewise.
4861 * regrename.c (copyprop_hardreg_forward): Likewise.
4862 * resource.c (init_resource_info): Likewise.
4863 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
4864 init_regions, schedule_insns): Likewise.
4865 * ssa-ccp.c (ssa_const_prop): Likewise.
4866 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
4867 * ssa.c (compute_dominance_frontiers,
4868 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
4870 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
4871 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
4874 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
4876 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
4878 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
4879 hoist_insn_after, hoist_insn_to_edge): New.
4881 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
4883 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
4884 (PROP_FINAL): Include.
4885 * flow.c (life_analysis, update_life_info,
4886 init_propagate_block_info, mark_set_1, mark_used_rgs):
4887 Support SCAN_DEAD_STORE.
4889 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
4891 * c-common.c (c_common_init): Set CPP arithmetic precision.
4892 * cppexp.c (cpp_num_part): Move typedef ...
4893 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
4894 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
4895 (sanity_checks): Update.
4897 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
4899 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
4900 (mkheaders): New rule.
4901 (install-mkheaders): New rule.
4902 * configure.in (all_outputs): Add mkheaders.
4903 * configure: Regenerate.
4904 * mkheaders.in: New file.
4906 2002-05-26 Jakub Jelinek <jakub@redhat.com>
4908 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
4910 2002-05-26 Andreas Jaeger <aj@suse.de>
4912 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
4914 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
4916 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
4917 right_shift): Remove.
4918 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
4920 (struct op): Use cpp_num.
4921 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
4922 num_part_mul, num_unary_op, num_binary_op, num_negate,
4923 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
4924 num_div_op, num_lshift, num_rshift, append_digit): New.
4925 (interpret_number, parse_defined, eval_token, reduce): Update
4926 for two-integer arithmetic.
4927 (binary_handler): New typedef.
4929 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
4930 (_cpp_parse_expr, reduce): Update to handle two-integers.
4931 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
4933 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
4935 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
4936 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
4937 branch insn into account, do not assume 1.
4938 (avr_out_sbxx_branch): New function. Optimize cases of skipping
4939 over single word insn. Handle upper half of I/O space too.
4940 * config/avr/avr.md (*sbrx_branch): Use it.
4941 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
4942 (*sbix_branch, *sbix_branch_bit7): Likewise.
4943 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
4944 Use RTL peepholes to optimize register operand sign tests.
4946 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
4948 * config/avr/avr.c (avr_asm_only_p): New variable.
4949 (avr_override_options): Set it here if AVR1.
4950 (asm_file_start): Test it here, report an error if set.
4952 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
4954 * alias.c: Fix formatting.
4955 * attribs.c: Likewise.
4956 * bb-reorder.c: Likewise.
4957 * bitmap.c: Likewise.
4958 * bitmap.h: Likewise.
4959 * builtins.c: Likewise.
4961 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
4963 * reload.c (find_valid_class): Accept new argument DEST,
4964 choose class accordingly.
4965 (push_reload): Update callers.
4967 2002-05-26 Andreas Jaeger <aj@suse.de>
4969 * combine.c (combine_instructions): Do not indent #if for
4972 2002-05-25 Richard Henderson <rth@redhat.com>
4974 * c-pragma.c (apply_pragma_weak): Convert value identifier to
4975 string for decl_attributes.
4976 (handle_pragma_weak): Call assemble_alias if we're modifying
4979 2002-05-25 Richard Henderson <rth@redhat.com>
4982 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
4983 using rtl instead of fprintf.
4984 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
4985 * config/sparc/sparc-protos.h: Update.
4987 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
4989 * Makefile.in (C_COMMON_H): Fix.
4990 Update other targets.
4991 * c-common.c: Don't include c-lex.h.
4992 (builtin_define_with_value): Make static and prototype.
4993 (builtin_define_std): Move from c-lex.h.
4994 * c-common.h (init_c_lex): Move from c-lex.h.
4995 * c-decl.c: Don't include c-lex.h.
4996 (make_pointer_declarator): Move from c-parse.in.
4997 * c-lex.c: Don't include c-lex.h.
4999 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
5000 (make_pointer_declarator): Move to c-decl.c.
5001 * c-pragma.c: Don't include c-lex.h.
5002 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
5003 * c-tree.h (make_pointer_declarator): New.
5005 * passes.texi, tm.texi: Update.
5007 * Make-lang.in: Update and correct.
5008 * objc-act.c: Don't include c-lex.h or cpplib.h.
5010 * treetree.c: Don't include c-lex.h.
5012 * darwin-c.c: Don't include c-lex.h.
5013 * c4x/c4x-c.c: Don't include c-lex.h.
5014 * c4x/t-c4x: Update.
5015 * i370/i370-c.c: Don't include c-lex.h.
5016 * i370/t-i370: Update.
5017 * i960/i960-c.c: Don't include c-lex.h.
5018 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
5019 * i960/t-960bare: Update.
5020 * i960/t-vxworks: Update.
5021 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
5022 * rs6000/t-darwin: Update.
5023 * rs6000/t-rs6000-c-rule: Update.
5024 * v850/v850-c.c: Don't include c-lex.h.
5025 * v850/v850.c: Don't include c-lex.h or cpplib.h.
5028 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
5030 * tree.def: Fix typos.
5031 * doc/install.texi: Likewise.
5033 2002-05-25 Richard Henderson <rth@redhat.com>
5035 * configure.in (HAVE_AS_TLS): Add ia64 test.
5036 * configure: Rebuild.
5037 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
5038 (override_options): Set it.
5039 (TARGET_HAVE_TLS): New.
5040 (sdata_symbolic_operand): Look for 's'.
5041 (tls_symbolic_operand): New.
5042 (ia64_expand_load_address): Abort for tls symbols.
5043 (gen_tls_get_addr): New.
5044 (gen_thread_pointer): New.
5045 (ia64_expand_move): Split out from movdi. Handle tls symbols.
5046 (rtx_needs_barrier): Add new unspecs.
5047 (ia64_encode_section_info): Handle tls symbols.
5048 (ia64_strip_name_encoding): Strip two encoding chars.
5049 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
5050 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
5051 (TARGET_OPTIONS): Add tls-size.
5052 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
5053 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
5054 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
5055 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
5056 (movsf, movdf): Likewise.
5057 (movdi_symbolic): Use match_scratch. Don't split if we won't
5058 have a scratch availiable.
5059 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
5060 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
5061 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
5062 * config/ia64/ia64-protos.h: Update.
5063 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
5064 sdata_symbolic_operand.
5065 (ASM_OUTPUT_LABELREF): Strip two characters.
5067 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
5069 * combine.c (simplify_set): Remove an unnecessary subreg.
5071 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
5073 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
5075 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
5077 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
5079 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
5081 2002-05-25 Roger Sayle <roger@eyesopen.com>
5083 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
5084 (cond (compare x y) 0) into the equivalent (cond x y).
5086 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
5088 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
5090 2002-05-24 Zack Weinberg <zack@codesourcery.com>
5092 * config.gcc: Remove all stanzas for previously obsoleted
5093 systems. Where necessary, add explicit error stanzas to
5094 prevent removed systems from being misidentified as something
5095 else. Begin a fresh obsoletions list, with the systems that
5096 were reprieved last round.
5097 * doc/install.texi: Remove all mention of dead targets.
5098 * fixinc/mkfixinc.sh: Likewise.
5100 * config/arm/arm.h: Bit 31 of target_flags is no longer
5103 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
5104 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
5105 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
5106 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
5107 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
5108 config/alpha/osf12.h, config/alpha/osf2or3.h,
5109 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
5110 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
5111 config/clipper/clipper-protos.h, config/clipper/clipper.c,
5112 config/clipper/clipper.h, config/clipper/clipper.md,
5113 config/clipper/clix.h, config/convex/convex-protos.h,
5114 config/convex/convex.c, config/convex/convex.h,
5115 config/convex/convex.md, config/convex/fixinc.convex,
5116 config/convex/proto.h, config/elxsi/elxsi-protos.h,
5117 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
5118 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
5119 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
5120 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
5121 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
5122 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
5123 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
5124 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
5125 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
5126 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
5127 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
5128 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
5129 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
5130 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
5131 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
5132 config/m68k/altos3068.h, config/m68k/apollo68.h,
5133 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
5134 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
5135 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
5136 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
5137 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
5138 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
5139 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
5140 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
5141 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
5142 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
5143 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
5144 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
5145 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
5146 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
5147 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
5148 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
5149 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
5150 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
5151 config/mips/dec-osf1.h, config/mips/elflorion.h,
5152 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
5153 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
5154 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
5155 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
5156 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
5157 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
5158 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
5159 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
5160 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
5161 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
5162 config/ns32k/sequent.h, config/ns32k/tek6000.h,
5163 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
5164 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
5165 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
5166 config/sparc/rtems.h, config/we32k/we32k-protos.h,
5167 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
5170 2002-05-24 Richard Henderson <rth@redhat.com>
5172 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
5173 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
5174 * config/i386/i386.c (tls_model_chars): Add leading space.
5175 (tls_symbolic_operand): Don't bias by 1.
5176 (legitimize_address): Don't unbias by 1.
5178 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5180 * lcm.c (optimize_mode_switching): Change bb used as indices
5183 2002-05-24 Richard Henderson <rth@redhat.com>
5185 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
5186 of update_life_info_in_dirty_blocks.
5188 2002-05-24 Jakub Jelinek <jakub@redhat.com>
5191 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
5193 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
5195 PR preprocessor/6780
5196 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
5198 2002-05-24 Jim Blandy <jimb@redhat.com>
5200 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
5201 entry with a type code of zero, marking the end of the compilation
5204 2002-05-24 Richard Henderson <rth@redhat.com>
5206 * varasm.c (asm_output_bss): Always output one byte.
5207 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
5209 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5211 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
5214 2002-05-24 Andreas Jaeger <aj@suse.de>
5216 * ggc-page.c (alloc_page): Cast variables of type size_t to
5217 unsigned long, adjust printf format string.
5218 (ggc_alloc): Likewise.
5219 (ggc_print_statistics): Likewise.
5220 (ggc_print_statistics): Correct printf format string for SCALE to
5223 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
5225 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
5227 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
5228 Zack Weinberg <zack@codesourcery.com>
5230 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
5232 * dwarf2out.c (lookup_filename): Properly quote filename in .file
5233 directive in assembly file.
5234 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5235 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5236 * config/pj/pj.h (ASM_FILE_START): Likewise.
5237 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5238 * config/avr/avr.c (asm_file_end): Likewise.
5239 * toplev.c (output_quoted_string): Handle possibly signed plain
5241 * toplev.h (output_clean_symbol_name): Declare
5242 * toplev.c (output_clean_symbol_name): Define.
5243 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
5244 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
5246 2002-05-24 Alan Modra <amodra@bigpond.net.au>
5248 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
5250 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
5252 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
5253 of size of unsigned.
5255 2002-05-23 Richard Henderson <rth@redhat.com>
5257 * configure.in (HAVE_AS_TLS): New test.
5258 * config.in, configure: Rebuild.
5259 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
5260 (ix86_tls_dialect_string, ix86_tls_dialect): New.
5261 (override_options): Set it.
5262 (tls_model_chars, tls_symbolic_operand): New.
5263 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
5264 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
5265 (local_exec_symbolic_operand): New.
5266 (get_pic_label_name): Merge into output_set_got.
5267 (ix86_asm_file_end): Emit pic_label_name if defined.
5268 (legitimate_constant_p, constant_address_p): New.
5269 (legitimate_pic_operand_p): New.
5270 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
5271 (legitimate_address_p): Likewise.
5272 (ix86_encode_section_info): Rename from i386_; handle tls decls.
5273 (ix86_strip_name_encoding): New.
5274 (get_thread_pointer): New.
5275 (legitimize_address): Handle tls symbols.
5276 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
5278 (struct machine_function): Add some_ld_name.
5279 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
5280 (print_operand) [&]: Use it. Handle UNSPEC_TP.
5281 (output_addr_const_extra): New.
5282 (maybe_get_pool_constant): New.
5283 (ix86_split_to_parts): Use it.
5284 (ix86_expand_move): Handle tls symbols.
5285 (ix86_tls_get_addr): New.
5286 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
5287 (TARGET_OPTIONS): Add tls-dialect.
5288 (CONSTANT_ADDRESS_P): Use new out-of-line function.
5289 (LEGITIMATE_CONSTANT_P): Likewise.
5290 (LEGITIMATE_PIC_OPERAND_P): Likewise.
5291 (TARGET_STRIP_NAME_ENCODING): New.
5292 (ASM_OUTPUT_LABELREF): New.
5293 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
5294 (OUTPUT_ADDR_CONST_EXTRA): New.
5295 (PREDICATE_CODES): Update.
5296 (ix86_tls_dialect, ix86_tls_dialect_string): New.
5297 * config/i386/i386.md: Regroup and renumber unspec constants.
5298 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
5299 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
5300 (tls_global_dynamic, tls_local_dynamic_base): New.
5301 (tls_local_dynamic_once): New.
5302 * config/i386/i386-protos.h: Update.
5304 2002-05-23 Richard Henderson <rth@redhat.com>
5306 * genemit.c (gen_insn): Print file:lineno comment before function.
5308 * gensupport.c (struct queue_elem): Add filename member.
5309 (queue_pattern): Initialize it; update all callers.
5310 (process_include): Don't free filename.
5311 (read_md_rtx): Set read_rtx_filename.
5313 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
5315 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
5317 2002-05-23 Richard Henderson <rth@redhat.com>
5319 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
5321 2002-05-23 Richard Henderson <rth@redhat.com>
5323 * doc/extend.texi (C++98 Thread-Local Edits): Update with
5324 commentary from Mark.
5326 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5328 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
5329 Use FOR_EACH_BB macros to iterate over basic block chain.
5330 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
5331 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
5333 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
5334 find_unreachable_blocks, create_edge_list, verify_edge_list,
5335 remove_fake_edges, add_noreturn_fake_exit_edges,
5336 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
5338 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
5339 find_sub_basic_blocks): Likewise.
5340 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
5342 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
5344 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
5346 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
5347 commit_edge_insertions, commit_edge_insertions_watch_calls,
5348 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
5349 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
5350 * conflict.c (conflict_graph_compute): Likewise.
5351 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5352 df_modified_p, df_refs_unlink, df_dump): Likewise.
5353 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
5354 * final.c (compute_alignments): Likewise.
5355 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
5356 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
5357 count_or_remove_death_notes): Likewise.
5358 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
5359 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
5360 classic_gcse, compute_transp, cprop, compute_pre_data,
5361 compute_transpout, invalidate_nonnull_info,
5362 delete_null_pointer_checks_1, delete_null_pointer_checks,
5363 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
5364 compute_store_table, build_store_vectors, store_motion): Likewise.
5365 * global.c (global_conflicts, mark_elimination): Likewise.
5366 * graph.c (print_rtl_graph_with_bb): Likewise.
5367 * haifa-sched.c (sched_init): Likewise.
5368 * ifcvt.c (if_convert): Likewise.
5369 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5370 compute_available, compute_nearerout, compute_rev_insert_delete,
5371 optimize_mode_switching): Likewise.
5372 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
5373 * predict.c (estimate_probability, note_prediction_to_br_prob,
5374 propagate_freq, counts_to_freqs, expensive_function_p,
5375 estimate_bb_frequencies): Likewise.
5376 * profile.c (instrument_edges, get_exec_counts,
5377 compute_branch_probabilities, compute_checksum, branch_prob,
5378 find_spanning_tree): Likewise.
5379 * recog.c (split_all_insns, peephole2_optimize): Likewise.
5380 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
5382 * regclass.c (scan_one_insn, regclass): Likewise.
5383 * regmove.c (mark_flags_life_zones, regmove_optimize,
5384 record_stack_memrefs): Likewise.
5385 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
5386 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
5387 * resource.c (find_basic_block): Likewise.
5388 * sched-ebb.c (schedule_ebbs): Likewise.
5389 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
5390 find_single_block_region, find_rgns, schedule_insns)
5391 * sibcall.c (optimize_sibling_and_tail_recursive_call)
5392 * ssa-ccp.c (optimize_unexecutable_edges,
5393 ssa_ccp_df_delete_unreachable_insns): Likewise.
5394 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5395 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
5396 rename_block, convert_to_ssa, compute_conservative_reg_partition,
5397 compute_coalesced_reg_partition, rename_equivalent_regs,
5398 convert_from_ssa): Likewise.
5399 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
5400 process_for_unwind_directive): Likewise.
5402 * df.c (FOR_ALL_BBS): Removed.
5403 * gcse.c (struct null_pointer_info): Type of current_block field
5405 (struct reg_avail_info): Type of last_bb field changed.
5406 * config/ia64/ia64.c (block_num): Removed.
5407 (need_copy_state): Type changed.
5410 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
5412 * cppinit.c (mark_named_operators): Split out from init_builtins.
5413 (cpp_finish_options): Call it from here instead.
5415 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
5417 * builtin-attrs.def: Update copyright years.
5418 (ATTR_NONNULL): New attribute identifier.
5419 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
5420 attribute tree lists.
5421 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
5423 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
5424 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
5425 attribute lists. Chain the appropriate nonnull attribute.
5426 * c-format.c (check_format_arg): Remove null format string
5428 * testsuite/gcc.dg/format/null-1.c: New test.
5430 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5432 * Makefile.in (ADAC): Define.
5434 (.SUFFIXES): Move before language makefile fragments.
5435 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
5437 2002-05-23 Mark Mitchell <mark@codesourcery.com>
5439 * varasm.c (make_decl_rtl): Don't allow weak variables to be
5442 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
5444 * cfg.c (dump_flow_info): Print results of
5445 maybe_hot/probably_never_executed predicates.
5446 * toplev.c (open_dump_file): Print function frequency.
5448 2002-05-23 David S. Miller <davem@redhat.com>
5450 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
5453 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
5455 * c-common.c (warn_nonnull): Declare.
5456 (c_common_attribute_table): Add "nonnull" attribute.
5457 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
5458 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
5459 check_function_arguments_recurse): New functions.
5460 * c-common.h (warn_nonnull): Declare extern.
5461 (check_function_arguments, check_function_arguments_recurse): New
5463 * c-decl.c (c_decode_option): Add -Wnonnull option.
5464 * c-format.c (set_Wformat): Set warn_nonnull if enabling
5466 (format_check_context): New structure.
5467 (check_format_info_recurse): Remove recursion and rename to...
5468 (check_format_arg): ...this. Update comment.
5469 (check_format_info): Use check_function_arguments_recurse.
5470 * c-typeck.c (build_function_call): Call check_function_arguments
5471 instead of check_function_format.
5472 * doc/extend.texi: Document "nonnull" attribute.
5473 * doc/invoke.texi: Docuemnt -Wnonnull option.
5474 * testsuite/gcc.dg/nonnull-1.c: New test.
5475 * testsuite/gcc.dg/nonnull-2.c: New test.
5477 2002-05-23 David S. Miller <davem@redhat.com>
5479 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
5480 * cfgcleanup.c (cleanup_cfg): If it is set do not
5481 attempt to delete trivially dead insns.
5482 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
5483 * toplev.c (rest_of_compilation): Document non-trivial aspect
5484 the RTL before optimize_save_area_alloca is run.
5486 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
5488 * c-lex.c (indent_level): Remove.
5489 (cb_file_change, c_lex): Remove indent level handling.
5490 * c-lex.h (indent_level): Remove.
5491 * input.h (struct file_stack): Remove indent_level.
5492 * toplev.c (push_srcloc): Remove indent_level handling.
5494 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5497 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
5498 of x in constraints for clarity.
5499 (sse_mov?fcc split): abort if op2 == op3.
5500 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
5501 sse_movsfcc_const0_4): Add earlyclobber.
5502 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
5503 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
5504 Use Y instead of x in constraints.
5506 2002-05-23 Richard Henderson <rth@redhat.com>
5508 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
5509 (C++98 Thread-Local Edits): New subsection.
5511 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
5512 (ix86_arch): Set type to enum processor_type.
5514 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
5515 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
5517 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5519 * configure.in: Fix as version test for binutils 2.12.1 releases
5521 * configure: Rebuilt.
5523 2002-05-23 Richard Henderson <rth@redhat.com>
5525 * config/i386/i386.c (get_pic_label_name): New.
5526 (load_pic_register): Remove.
5527 (output_set_got): New.
5528 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
5529 * config/i386/i386.md (UNSPEC_SET_GOT): New.
5530 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
5531 (prologue_set_got, prologue_get_pc): Remove.
5532 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
5533 (builtin_setjmp_receiver): Use gen_set_got.
5534 * config/i386/i386-protos.h: Update.
5536 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
5538 * gcse.c (hash_expr): Do not use alias set for hashing.
5540 2002-05-22 Kevin Buettner <kevinb@redhat.com>
5542 * dbxout.c (dbxout_class_name_qualifiers): New function.
5543 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
5545 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
5547 * cpperror.c (_cpp_begin_message): No special casing
5549 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
5550 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
5551 * cpplib.c (do_include_common): Use DL_ERROR.
5552 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
5554 * fix-header.c (read_scan_file): Update.
5556 2002-05-22 Richard Henderson <rth@redhat.com>
5558 * config/i386/i386.c (ix86_expand_call): New function, extracted
5559 from md call patterns. Add pic_offset_table_rtx to
5560 CALL_INSN_FUNCTION_USAGE when needed.
5561 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
5562 (call_value_pop, call_value, untyped_call): Likewise.
5563 (call_exp, call_value_exp): Remove.
5564 * config/i386/i386-protos.h: Update.
5566 2002-05-22 Richard Henderson <rth@redhat.com>
5568 * varasm.c (default_section_type_flags): Check for VAR_DECL
5569 before using DECL_THREAD_LOCAL.
5571 2002-05-22 David Edelsohn <edelsohn@gnu.org>
5573 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
5574 (STARTFILE_SPEC): Delete PE crt0.o.
5575 * config/rs6000/aix51.h: Same.
5576 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
5577 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
5578 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
5579 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
5580 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
5582 2002-05-22 Richard Henderson <rth@redhat.com>
5584 * varasm.c (default_section_type_flags): Handle tls data and
5586 (default_unique_section): Handle tls sections.
5588 2002-05-23 Alan Modra <amodra@bigpond.net.au>
5590 * configure.in (CROSS): Define NATIVE_CROSS.
5591 * configure: Regenerate.
5592 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
5593 (startfile_prefix_spec): New var.
5594 (static_specs): Add startfile_prefix_spec.
5595 (do_spec_2): Split out from..
5597 (main): Process startfile_prefix_spec.
5598 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
5600 (STARTFILE_PREFIX_SPEC): Define.
5601 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
5604 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
5606 * cpperror.c: Fix formatting.
5607 * cppexp.c: Likewise.
5608 * cppfiles.c: Likewise.
5609 * cpphash.c: Likewise.
5610 * cpphash.h: Likewise.
5611 * cppinit.c: Likewise.
5612 * cpplex.c: Likewise.
5613 * cpplib.c: Likewise.
5614 * cppmacro.c: Likewise.
5615 * cppmain.c: Likewise.
5616 * cppspec.c: Likewise.
5618 2002-05-22 Jakub Jelinek <jakub@redhat.com>
5620 * combine.c (force_to_mode): Use gen_int_mode.
5621 Don't clear CONST_INT bits outside of mode.
5623 2002-05-22 Richard Henderson <rth@redhat.com>
5625 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
5626 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
5628 2002-05-22 Jakub Jelinek <jakub@redhat.com>
5631 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
5632 if DECL_SIZE_UNIT is INTEGER_CST.
5634 2002-05-22 Richard Henderson <rth@redhat.com>
5636 * flow.c (life_analysis): Delete broken reg_label check.
5638 2002-05-22 Richard Henderson <rth@redhat.com>
5640 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
5641 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
5643 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
5645 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
5646 (embed-bb.c): New rule.
5647 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
5648 * config/sh/embed_bb.c: Delete.
5650 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
5652 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
5654 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
5656 * config/h8300/h8300.md (*andorqi3): New.
5658 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
5660 PR preprocessor/6517
5661 * Makefile.in: Update.
5662 * c-common.c (c_common_post_options): Add preprocessor
5663 errors to the error count.
5664 * c-lang.c (c_post_options): Kill.
5665 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
5666 * hooks.h: Add header guards.
5667 * langhooks-def.h: Include hooks.h.
5668 (LANG_HOOKS_POST_OPTIONS): Update.
5669 * langhooks.h (struct lang_hooks): Update post_options.
5670 * toplev.c (parse_options_and_default_flags): Update.
5672 * objc-lang.c (objc_post_options): Kill.
5673 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
5675 2002-05-21 Bruce Korb <bkorb@gnu.org>
5677 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
5678 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
5679 * fixinc/fixincl.x: regen.
5681 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
5683 * cfgbuild.c: Fix formatting.
5685 * cfgcleanup.c: Likewise.
5686 * cfglayout.c: Likewise.
5687 * cfgloop.c: Likewise.
5688 * cfgrtl.c: Likewise.
5690 2002-05-21 Richard Henderson <rth@redhat.com>
5692 * c-common.h (enum rid): Add RID_THREAD.
5693 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
5694 (grokdeclarator): Grok __thread.
5695 * c-parse.in (reswords): Add __thread.
5696 (rid_to_yy): Add RID_THREAD.
5698 * tree.h (DECL_THREAD_LOCAL): New.
5699 (struct tree_decl): Add thread_local_flag.
5700 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
5701 * tree.c (staticp): TLS variables are not static.
5703 * target-def.h (TARGET_HAVE_TLS): New.
5704 * target.h (have_tls): New.
5705 * output.h (SECTION_TLS): New.
5706 * varasm.c (assemble_variable): TLS variables can't be common for now.
5707 (default_section_type_flags): Handle .tdata and .tbss.
5708 (default_elf_asm_named_section): Handle SECTION_TLS.
5709 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
5711 * flags.h (flag_tls_default): Declare.
5712 * toplev.c (flag_tls_default): Define.
5713 (display_help): Display help for it.
5714 (decode_f_option): Set it.
5716 * doc/extend.texi (Thread-Local): New node describing language-level
5717 thread-local storage.
5718 * doc/invoke.texi (-ftls-model): Document.
5720 * fixinc/inclhack.def (thread_keyword): New.
5721 * fixinc/fixincl.x: Rebuild.
5723 2002-05-21 Jeffrey A Law <law@redhat.com>
5725 * optabs.c (expand_binop): For double-word integer multiplies,
5726 do not compute intermediate results into something that is
5727 not a register (such as a SUBREG or MEM).
5729 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
5730 (ix86_sched_reorder): Make sure to initialize scheduling
5731 data even when there's only one insn in the ready queue.
5733 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
5735 * genautomata.c (reserv_sets_hash_value): Fix a typo.
5737 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
5739 * genautomata.c (reserv_sets_hash_value): Define hash_value as
5740 set_el_t. Transform the hash value into unsigned.
5741 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
5742 (transform_3): Add code to process `(A,B)+(D,E)'.
5744 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
5746 * reload1.c (do_output_reload): Run delete_output_reload
5749 2002-05-21 Roger Sayle <roger@eyesopen.com>
5752 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
5753 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
5754 (can_store_by_pieces): ... and here to limit the largest mode used.
5755 Add a comment to document this function.
5757 2002-05-21 Richard Henderson <rth@redhat.com>
5759 * flow.c (life_analysis): Fix test for deleted label.
5761 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
5763 * doc/tm.texi: Fix typo.
5765 2002-05-21 Zack Weinberg <zack@codesourcery.com>
5767 * c-common.c (c_common_init): Set options->unsigned_char from
5769 (cb_register_builtins): Define __STRICT_ANSI__ and
5770 __CHAR_UNSIGNED__ here...
5771 * cppinit.c (init_builtins): Not here.
5772 (cpp_create_reader): unsigned_char option defaults to 0, not
5773 !DEFAULT_SIGNED_CHAR.
5774 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
5775 and -funsigned-char.
5777 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
5778 * cpphash.c (_cpp_init_hashtable): Don't set it.
5779 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
5780 directly. Clarify comment.
5782 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5784 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
5785 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
5786 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
5787 BASIC_BLOCK (n_basic_blocks - 1).
5788 * cfganal.c (can_fallthru, flow_call_edges_add,
5789 flow_preorder_transversal_compute): Too.
5790 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
5791 find_sub_basic_blocks): Too.
5792 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
5793 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
5794 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
5795 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
5796 * combine.c (this_basic_block): Type changed to basic_block.
5797 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
5798 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
5799 get_last_value, distribute_notes, distribute_links): Too.
5800 * final.c (compute_alignments): Too.
5801 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
5802 * function.c (thread_prologue_and_epilogue_insns): Too.
5803 * gcse.c (compute_code_hoist_vbeinout): Too.
5804 * global.c (build_insn_chain): Too.
5805 * ifcvt.c (find_if_block, find_cond_trap): Too.
5806 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
5807 * regmove.c (regmove_optimize): Too.
5808 * resource.c (find_basic_block): Too.
5809 * sched-ebb.c (schedule_ebbs): Too.
5810 * ssa-dce.c (find_control_dependence, find_pdom): Too.
5812 2002-05-21 Andreas Jaeger <aj@suse.de>
5814 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
5816 2002-05-21 Richard Henderson <rth@redhat.com>
5818 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
5819 unspec names, not numbers.
5821 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
5823 * doc/sourcebuild.texi: Mention snapshot-README and
5824 snapshot-index.html as needing updating for new front ends.
5826 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5828 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
5829 disabling checking, and avoid multiple evaluation of RTX.
5831 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
5833 * bitmap.c (bitmap_find_bit): Return early if we have the correct
5836 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
5838 * profile.c (gen_edge_profiler): Set alias set before the memory is
5841 2002-05-20 David S. Miller <davem@redhat.com>
5843 * cselib.c (max_value_regs): New.
5844 (cselib_lookup, cselib_invalidate_regno): Initialize it when
5845 adding new entries to the REG_VALUES table and we are dealing with
5847 (clear_table): Initialize it.
5848 (cselib_invalidate_regno): Use it to determine which hard
5849 registers to scan when mode is not VOIDmode.
5851 2002-05-20 Duraid Madina <duraid@fl.net.au>
5853 * tradcpp.c (fixup_newlines): Use old-style function header.
5855 2002-05-20 Krister Walfridsson <cato@df.lth.se>
5857 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
5859 2002-05-20 H.J. Lu (hjl@gnu.org)
5861 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
5863 * config/mips/mips.h (DFMODE_NAN): Defined.
5864 (SFMODE_NAN): Likewise.
5866 2002-05-20 Dale Johannesen <dalej@apple.com>
5868 * combine.c (cant_combine_insn_p): Back out my
5871 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5873 * params.c: Fix formatting.
5874 * params.h: Likewise.
5875 * predict.c: Likewise.
5876 * prefix.c: Likewise.
5877 * print-rtl.c: Likewise.
5878 * print-tree.c: Likewise.
5879 * profile.c: Likewise.
5881 2002-05-20 H.J. Lu (hjl@gnu.org)
5883 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
5885 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
5887 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
5888 switches straight on to the assembler, do not abbreviate them.
5889 * config/arm/elf.h (ASM_SPEC): As above.
5890 * config/arm/semi.h (ASM_SPEC): As above.
5891 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
5892 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
5893 -mcpu=xscale on to the assembler by default.
5894 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
5896 2002-05-20 Richard Henderson <rth@redhat.com>
5898 * cse.c (canon_hash): Reorder do_not_record test. Always
5899 allow pic_offset_table_rtx.
5901 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
5903 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
5904 (expand_binop): Ditto (3 times).
5906 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
5908 * Makefile.in (distclean): Remove QMTest stuff.
5909 (QMTEST_PATH): New variable.
5910 (QMTESTFLAGS): Likewise.
5911 (QMTESTRUNFLAGS): Likewise.
5913 (QMTEST_GPP_TESTS): Likewise.
5914 (QMTEST_DIR): Likewise.
5915 (QMTEST_DIR/context): New target.
5916 (qmtest-g++): Likeise.
5917 (qmtest-gui): Likewise.
5918 (QMTEST_DIR/gpp-expected.qmr): Likewise.
5920 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
5922 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
5923 an altivec register if TARGET_ALTIVEC.
5925 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
5926 to ALTIVEC_VECTOR_MODE.
5927 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
5928 (rs6000_va_arg): Vectors may go in registers if they are not
5931 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
5933 * protoize.c: Fix formatting.
5935 2002-05-19 Richard Henderson <rth@redhat.com>
5937 * gensupport.c (init_include_reader): Merge into ...
5938 (process_include): ... here. Simplify composite path creation.
5939 Plug memory leaks. Fix file/line number tracking. Do not
5940 process_define_cond_exec. Return void.
5941 (process_rtx): Don't check process_include return value.
5943 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5945 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
5947 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
5948 traversing basic block chain.
5949 (create_basic_block_structure, create_basic_block): Declaration changed.
5950 (link_block, unlink_block): Declare.
5951 * cfg.c (entry_exit_blocks): Initialize new fields.
5952 (link_block, unlink_block): New.
5953 (expunge_block_nocompact): Unlink basic block.
5954 (dump_flow_info): Print prev_bb/next_bb fields.
5955 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
5956 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
5957 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
5958 * cfgrtl.c (create_basic_block_structure, create_basic_block,
5959 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
5960 (verify_flow_info): Check that list agrees with numbering.
5962 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
5964 * c-common.c (preprocessing_asm): New macro.
5965 * c-lex.h (builtin_define, builtin_assert): Use pfile.
5969 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
5970 (CPP_SPEC): Simplify.
5971 (TARGET_CPU_CPP_BUILTINS): Update.
5972 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
5973 (CPP_SPEC): Simplify.
5974 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
5975 (TARGET_OS_CPP_BUILTINS): Update.
5976 * osf.h (CPP_XFLOAT_SPEC): Kill.
5977 (TARGET_OS_CPP_BUILTINS): Update.
5978 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
5979 * osf5.h (CPP_XFLOAT_SPEC): Kill.
5980 * vms.h (CPP_SUBTARGET_SPEC): Kill.
5981 (TARGET_OS_CPP_BUILTINS): Update.
5983 2002-05-19 Richard Henderson <rth@redhat.com>
5985 * varasm.c (default_binds_local_p): Fix typo.
5987 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
5989 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
5990 CONST_INT operand to the correct mode after adding 1 to it.
5992 2002-05-19 Mark Mitchell <mark@codesourcery.com>
5994 * config.gcc (powerpc-wrs-windiss*): New target.
5996 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5998 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
6001 2002-05-18 Mark Mitchell <mark@codesourcery.com>
6003 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
6005 * config.in: Regenerated.
6006 * configure: Regenerated.
6008 2002-05-19 Richard Henderson <rth@redhat.com>
6010 * target-def.h (TARGET_BINDS_LOCAL_P): New.
6011 * target.h (struct gcc_target): Move boolean fields to the end.
6013 * varasm.c (default_binds_local_p): New.
6014 * output.h: Declare it.
6016 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
6017 * config/cris/cris.c (cris_encode_section_info): Likewise.
6018 * config/i386/i386.c (i386_encode_section_info): Likewise.
6019 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
6020 * config/sh/sh.c (sh_encode_section_info): Likewise.
6022 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
6023 (TARGET_BINDS_LOCAL_P): New.
6025 2002-05-19 Richard Henderson <rth@redhat.com>
6027 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
6028 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
6029 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
6031 * toplev.c (display_help): Kill -a -ax help.
6033 * config/1750a/1750a.h, config/alpha/alpha.h,
6034 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
6035 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
6036 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
6037 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
6039 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
6040 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
6042 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
6043 (ix86_output_function_block_profiler): Kill.
6044 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
6045 (m68hc11_function_block_profiler): Kill.
6046 * config/m68hc11/m68hc11-protos.h: Update.
6047 * config/m88k/m88k.c (output_block_profiler): Kill.
6048 (output_function_block_profiler): Kill.
6049 * config/m88k/m88k-protos.h: Update.
6051 2002-05-19 Richard Henderson <rth@redhat.com>
6053 * system.h (STRIP_NAME_ENCODING): Poison it.
6054 * output.h (STRIP_NAME_ENCODING): Remove.
6055 (default_strip_name_encoding): Declare.
6056 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
6057 * target.h (strip_name_encoding): New.
6058 * varasm.c (default_strip_name_encoding): New.
6060 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
6061 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
6062 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
6063 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
6064 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
6065 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
6066 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
6067 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
6068 config/v850/v850.h: Use the hook, not the macro.
6070 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6071 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
6072 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
6073 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
6074 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
6075 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
6076 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
6077 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
6078 config/v850/v850.c, config/v850/v850.h:
6079 Move STRIP_NAME_ENCODING to out-of-line function and add
6080 TARGET_STRIP_NAME_ENCODING.
6082 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
6083 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
6084 with TARGET_STRIP_NAME_ENCODING referencing existing function;
6085 make function static.
6087 * xcoffout.c: Include target.h
6088 * Makefile.in (xcoffout.o): Update.
6090 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
6091 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
6092 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
6093 reloc argument unused.
6094 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
6096 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
6097 STRIP_NAME_ENCODING docs.
6099 2002-05-19 Andreas Jaeger <aj@suse.de>
6101 * gengenrtl.c: Add prototype for excluded_rtx.
6103 * real.h: Add prototype for exact_real_truncate.
6105 2002-05-18 Richard Henderson <rth@redhat.com>
6107 * system.h (ENCODE_SECTION_INFO): Poison it.
6108 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
6109 * target.h (encode_section_info): New.
6110 * varasm.c (make_decl_rtl, output_constant_def): Use it.
6111 * hooks.c (hook_tree_int_void): New.
6112 * hooks.h: Declare it.
6114 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6115 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
6116 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
6117 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
6118 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
6119 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
6120 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6121 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
6122 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
6123 config/mcore/mcore-protos.h, config/mcore/mcore.c,
6124 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
6125 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
6126 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
6127 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
6128 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
6129 referencing existing function. Make function static.
6131 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
6132 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
6133 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
6134 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
6135 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
6136 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
6137 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
6138 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
6139 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
6140 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
6141 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
6142 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
6143 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
6144 Move ENCODE_SECTION_INFO to out-of-line function and add
6145 TARGET_ENCODE_SECTION_INFO.
6147 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
6148 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
6150 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
6152 (switch_to_section): Replace in_rdata case with in_readonly_data.
6154 * config/h8300/h8300.c (h8300_encode_label): Make static.
6155 * config/h8300/h8300-protos.h: Update.
6157 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
6158 from rs6000_encode_section_info; make static.
6159 (rs6000_xcoff_encode_section_info): New.
6161 * config/v850/v850.c (v850_encode_data_area): Make static.
6162 * config/v850/v850-protos.h: Update.
6164 * config/vax/vax.c: Include flags.h.
6165 (vms_select_section): Fix typo.
6167 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
6168 ENCODE_SECTION_INFO docs.
6170 2002-05-18 Richard Henderson <rth@redhat.com>
6172 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
6173 REGISTER_TARGET_PRAGMAS.
6174 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
6176 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
6178 2002-05-18 Richard Henderson <rth@redhat.com>
6180 * system.h (SELECT_RTX_SECTION): Poison.
6181 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
6182 * target.h (select_rtx_section): New.
6183 * varasm.c (output_constant_pool): Use it.
6184 (default_select_rtx_section, default_elf_select_rtx_section): New.
6185 * output.h: Declare them.
6187 * config/darwin.h (SELECT_RTX_SECTION): Move ...
6188 * config/darwin.c (machopic_select_rtx_section): ... here.
6189 * config/darwin-protos.h: Update.
6191 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
6192 * config/nextstep.c (machopic_select_rtx_section): ... here.
6193 (nextstep_select_section): Rename variable to avoid macro clash.
6194 * config/nextstep-protos.h: Update.
6196 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
6197 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
6198 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
6199 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
6200 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
6201 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
6202 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
6203 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
6204 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
6205 (SELECT_RTX_SECTION): Remove.
6207 * config/darwin.h, config/elfos.h, config/nextstep.h,
6208 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
6209 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
6210 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
6211 config/sparc/lynx.h, config/xtensa/xtensa.c
6212 (TARGET_ASM_SELECT_RTX_SECTION): New.
6214 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
6215 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
6216 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
6217 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
6218 (ia64_aix_select_rtx_section): New.
6219 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
6221 * config/mips/mips.c (mips_select_rtx_section): Make static.
6222 Support ELF SHF_MERGE features.
6223 * config/mips/mips-protos.h: Update.
6224 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
6225 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
6226 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
6227 make static, fall back to default_elf_select_rtx_section.
6228 * config/rs6000/rs6000-protos.h: Update.
6229 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
6230 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
6231 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
6232 * config/romp/romp.c (romp_select_rtx_section): New.
6233 * config/s390/s390.c (s390_select_rtx_section): New.
6234 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
6235 declarations before target macro definition.
6236 (xtensa_emit_call): Use static buffer.
6237 (xtensa_select_rtx_section): New.
6238 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
6239 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
6240 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
6242 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
6243 SELECT_RTX_SECTION docs.
6245 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
6247 * i386.md (movsi/movdi): Fix template.
6248 (sse2 patterns): Set attributes consistently.
6250 * i386.md (pushqi2, ashrqi_*): Fix constraint.
6252 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
6254 * optabs.c (complex_part_zero_p): New.
6255 * (expand_cmplxdiv_straight): Use it.
6256 * (expand_cmplxdiv_wide): Ditto.
6257 * (expand_binop): Ditto.
6259 2002-05-18 Richard Henderson <rth@redhat.com>
6261 * final.c (HAVE_READONLY_DATA_SECTION): New.
6262 (shorten_branches): Use it instead of ifdefs.
6263 * varasm.c (enum in_section): Add in_readonly_data.
6264 (text_section, data_section): Tidy.
6265 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
6267 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
6268 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
6269 (READONLY_DATA_SECTION): Don't undef.
6271 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
6272 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
6273 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
6275 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
6276 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
6277 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
6278 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
6280 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
6281 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
6282 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6283 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
6284 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
6285 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
6286 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
6287 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
6288 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
6290 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
6291 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
6292 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
6293 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
6294 config/pa/pa64-hpux.h, config/sparc/litecoff.h
6295 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
6297 * config/elfos.h, config/netware.h, config/svr3.h,
6298 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6299 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6300 config/h8300/h8300.h, config/i386/i386-interix.h,
6301 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6302 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
6304 * config/elfos.h, config/netware.h, config/svr3.h,
6305 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6306 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
6307 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6308 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
6310 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
6311 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
6312 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
6313 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
6314 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
6315 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
6316 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
6317 config/rs6000/sysv4.h, config/v850/v850.h
6318 (EXTRA_SECTIONS): Remove in_const/in_rdata.
6319 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
6321 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
6322 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
6323 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
6324 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
6325 * config/alpha/alpha.c (alpha_start_function): Likewise.
6326 (alpha_write_linkage): Likewise.
6327 * config/m32r/m32r.c (m32r_select_section): Likewise.
6328 * config/m88k/m88k.c (m88k_select_section): Likewise.
6329 * config/mips/mips.c (mips_select_rtx_section): Likewise.
6330 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
6331 (rs6000_elf_select_section): Likewise.
6332 * config/v850/v850.c (v850_select_section): Likewise.
6334 * config/1750a/1750a.h, config/i860/sysv3.h
6335 (READONLY_DATA_SECTION_ASM_OP): New.
6336 READONLY_DATA_SECTION_ASM_OP.
6337 * config/i386/interix.c, config/i386/winnt.c
6338 (i386_pe_unique_section): Always use .rdata prefix.
6339 * config/pa/som.h (readonly_data): Always switch to read-only section.
6340 (READONLY_DATA_SECTION): Predicate on flag_pic.
6341 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
6342 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
6343 (READONLY_DATA_SECTION): Update.
6345 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
6347 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
6348 is used without -Wformat.
6349 * c-common.h (warn_format_zero_length): Declare extern.
6350 * c-decl.c (warn_options): Add "format-zero-length".
6351 * c-format.c (warn_format_zero_length): Declare.
6352 (set_Wformat): Set warn_format_zero_length for -Wformat.
6353 (check_format_info): Only warn about zero-length formats if
6354 warn_format_zero_length is true. Include the format type
6355 name in the warning message.
6356 * doc/invoke.texi: Document -Wformat-zero-length.
6357 * testsuite/gcc.dg/format/zero-length-1.c: New test.
6359 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
6361 * timevar.c: Fix formatting.
6362 * tlink.c: Likewise.
6363 * toplev.c: Likewise.
6364 * tree-dump.c: Likewise.
6365 * tree-inline.c: Likewise.
6367 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
6369 * cppinit.c (cpp_post_options): If preprocessed, turn off
6370 traditional. If traditional, turn off column numbers.
6371 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
6372 * cpptrad.c (handle_newline): Update line_base.
6373 (skip_comment): Handle -Wcomment.
6375 2002-05-17 Zack Weinberg <zack@codesourcery.com>
6377 * cppinit.c (struct builtin): Remove unused fields.
6378 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
6379 (operator_array): New - was second half of builtin_array.
6380 (init_builtins): Simplify loop over builtin_array/operator_array.
6382 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
6384 * defaults.h (UNIQUE_SECTION): Remove.
6385 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
6387 2002-05-17 Richard Henderson <rth@redhat.com>
6389 * expr.c (init_expr_once): Don't use start/end_sequence.
6390 Use rtx_alloc instead of emit_insn.
6391 * toplev.c (lang_dependent_init): Run init_expr_once here ...
6392 (lang_independent_init): ... not here.
6394 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6396 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
6398 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
6400 * config/avr/avr.c (avr_regs_to_save): New function. Also check
6401 for fixed registers, possibly used for global register variables.
6402 (initial_elimination_offset, avr_output_function_prologue,
6403 avr_output_function_epilogue): Move common code to avr_regs_to_save.
6405 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
6407 * Makefile.in: Update for cpptrad.c.
6408 * cpphash.h (struct cpp_buffer): New members for buffer
6410 (struct cpp_reader): New members for traditional output.
6411 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
6412 * cppinit.c (cpp_create_reader): Set trad_line.
6413 (cpp_destroy): Free trad_out_base if used.
6414 (cpp_read_main_file): Overlay an empty buffer if traditional.
6415 (cpp_finish_options): Don't do builtins.
6416 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
6417 (cpp_handle_option): Handle it.
6418 * cpplex.c (continue_after_nul): New.
6419 (_cpp_lex_direct): Use handle_nul.
6420 * cpplib.h (struct cpp_options): New traditional option.
6421 * cpptrad.c: New file.
6423 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
6425 * c-common.c (c_common_init_options): Use C89 for Objective-C,
6426 and set the options flag.
6427 * cppinit.c (lang_flags): Remove objc.
6428 (lang_defaults): Remove OBJC and OBJCXX.
6430 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
6431 (cpp_handle_option): Remove -+ and -lang-objc++.
6432 For ObjC, just set a flag.
6433 (print_help): Update.
6434 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
6436 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6438 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
6439 bootstrap with -mips3.
6441 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
6443 * final.c: Fix formatting.
6444 * fix-header.c: Likewise.
6446 * fold-const.c: Likewise.
6447 * function.c: Likewise.
6449 2002-05-17 David S. Miller <davem@redhat.com>
6451 PR c/6689, PR optimization/6615
6452 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
6453 and make it a pointer to rtx. Update comments.
6454 (update_equiv_regs): When scanning for equivalences, record
6455 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
6456 it while making the equiv replacements.
6458 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6460 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
6462 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
6464 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
6465 when encoding visibility into SYMBOL_REF_FLAG.
6467 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
6469 * expr.c (force_operand): Fix reversed move.
6471 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
6473 * doc/install.texi (Testing): Mention two common DejaGnu warnings
6474 that can be ignored.
6476 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6478 * doc/install.texi (Final install): Recommend to install into a
6479 "clean" target directory.
6481 2002-05-17 Richard Henderson <rth@redhat.com>
6483 * config/ia64/ia64.md: Use braced strings instead of quoted strings
6484 for code blocks. Tidy whitespace.
6486 2002-05-17 Richard Henderson <rth@redhat.com>
6488 * hooks.c (hook_tree_bool_false): New.
6489 * hooks.h: Declare it.
6490 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
6491 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
6492 * target.h (select_section, unique_section): New.
6493 (in_small_data_p): New.
6494 * varasm.c (resolve_unique_section): Use hooks instead of macros.
6495 (variable_section, output_constant_def_contents): Likewise.
6496 (default_select_section, default_unique_section): New.
6497 (categorize_decl_for_section, default_elf_select_section): New.
6498 * output.h: Declare them.
6500 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
6501 (TARGET_ASM_SELECT_SECTION): New.
6502 (SELECT_SECTION): Move ...
6503 * config/darwin.c (machopic_select_section): ... here.
6504 * config/darwin-protos.h: Update.
6506 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
6507 (SELECT_SECTION): Move ...
6508 * config/nextstep.c (nextstep_select_section): ... here.
6509 * config/nextstep-protos.h: Update.
6511 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
6512 (TARGET_ASM_SELECT_SECTION): New.
6513 * config/svr3.h (SELECT_SECTION): Remove.
6515 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
6516 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
6517 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
6518 (alpha_encode_section_info): Use it.
6519 * config/alpha/alpha-protos.h: Update.
6520 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
6521 (SELECT_SECTION, UNIQUE_SECTION): Remove.
6522 (TARGET_ASM_SELECT_SECTION): New.
6523 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
6525 * config/arm/pe.h (UNIQUE_SECTION): Remove.
6526 (TARGET_ASM_UNIQUE_SECTION): New.
6528 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
6529 (avr_unique_section): Rename from unique_section; make static.
6530 * config/avr/avr-protos.h: Update.
6531 * config/avr/avr.h (UNIQUE_SECTION): Remove.
6533 * config/c4x/c4x.h (SELECT_SECTION): Remove.
6535 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
6536 (TARGET_ASM_UNIQUE_SECTION): New.
6537 * config/i386/i386-interix.h: Likewise.
6538 * config/i386/win32.h: Likewise.
6539 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
6540 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
6541 * config/i386/sco5.h (SELECT_SECTION): Remove.
6542 (TARGET_ASM_SELECT_SECTION): New.
6543 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
6545 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
6546 instead of SELECT_SECTION.
6547 * config/m68k/dpx2.h: Likewise.
6548 * config/rs6000/lynx.h: Likewise.
6550 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6551 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
6552 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
6553 (ia64_in_small_data_p): New.
6554 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
6555 (ia64_aix_select_section, ia64_aix_unique_section): New.
6556 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
6557 (SELECT_SECTION, UNIQUE_SECTION): Remove.
6559 * config/m32r/m32r.h (SELECT_SECTION): Remove.
6560 (TARGET_ASM_SELECT_SECTION): New.
6561 * config/m32r/m32r.c (m32r_select_section): Take align argument.
6562 * config/m32r/m32r-protos.h: Update.
6564 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
6565 (SELECT_SECTION): Move ...
6566 * config/m88k/m88k.c (m88k_select_section): ... here.
6568 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
6569 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
6570 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
6571 (mcore_unique_section): Make static.
6572 * config/mcore/mcore-protos.h: Update.
6574 * config/mips/elf.h (UNIQUE_SECTION): Remove.
6575 (TARGET_ASM_UNIQUE_SECTION): New.
6576 * config/mips/elf64.h: Likewise.
6577 * config/mips/iris6gld.h: Likewise.
6578 * config/mips/linux.h: Likewise.
6579 * config/mips/mips-protos.h: Update.
6580 * config/mips/mips.c (mips_select_section): Add align argument.
6581 * config/mips/mips.h (SELECT_SECTION): Remove.
6582 (TARGET_ASM_SELECT_SECTION): New.
6584 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6585 * config/mmix/mmix.c (mmix_select_section): Remove.
6586 (mmix_unique_section): Remove.
6587 * config/mmix/mmix-protos.h: Update.
6589 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
6590 (SELECT_SECTION): Move ...
6591 * config/pa/pa.c (pa_select_section): ... here.
6592 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
6594 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
6595 from rs6000_select_section and make static.
6596 (rs6000_elf_unique_section): Similarly.
6597 (rs6000_xcoff_select_section): From xcoff.h.
6598 (rs6000_xcoff_unique_section): Likewise.
6599 * config/rs6000/rs6000-protos.h: Update.
6600 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6601 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
6602 * config/rs6000/xcoff.h: Likewise.
6604 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
6605 (SELECT_SECTION): Move ...
6606 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
6608 * config/v850/v850.h (SELECT_SECTION): Move ...
6609 * config/v850/v850.c (v850_select_section): ... here.
6610 (TARGET_ASM_SELECT_SECTION): New.
6612 * config/vax/vms.h (SELECT_SECTION): Move ...
6613 * config/vax/vax.c (vms_select_section): ... here.
6614 (TARGET_ASM_SELECT_SECTION): New.
6616 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
6617 for the target hooks.
6619 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
6621 * config/arm/arm.c (emit_multi_reg_push): Do not set
6622 RTX_FRAME_RELATED_P on the SEQUENCE.
6624 2002-05-16 Richard Henderson <rth@redhat.com>
6626 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
6627 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
6629 2002-05-16 Richard Henderson <rth@redhat.com>
6631 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
6633 * config/ia64/ia64.c (saveable_obstack): Do not declare.
6635 2002-05-16 Richard Henderson <rth@redhat.com>
6637 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
6638 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
6639 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
6640 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
6641 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
6642 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
6643 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
6644 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
6645 Revert "Basic block renumbering removal", and two followup patches.
6647 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
6649 * lcm.c (optimize_mode_switching): Revert previous change.
6651 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6653 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
6654 with only extant block numbers.
6656 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
6658 * lcm.c (optimize_mode_switching): Fix typo.
6660 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6662 * flow.c (calculate_global_regs_live): Queue blocks in program order.
6664 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6666 * doc/install.texi (Configuration): Document PWDCMD.
6668 2002-05-16 Dale Johannesen <dalej@apple.com>
6670 * combine.c (cant_combine_insn_p): Reenable combinations
6671 involving hard regs unless CLASS_LIKELY_SPILLED_P.
6673 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
6675 * c-common.c (cb_register_builtins): Handle more built-ins
6676 here rather than in gcc.c specs.
6677 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
6678 (cpp_options): Pass -O flags even when only preprocessing.
6679 * toplev.c (set_fast_math_flags): New prototype.
6680 (fast_math_flags_set_p): New.
6681 (set_no_fast_math_flags): Remove.
6682 (decode_f_option): Update.
6683 * toplev.h (set_fast_math_flags): Update.
6684 (fast_math_flags_set_p): New.
6685 (set_no_fast_math_flags): Remove.
6687 * c4x/c4x.c (c4x_override_options): Update.
6689 2002-05-16 Zack Weinberg <zack@codesourcery.com>
6691 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
6692 Default-define here.
6693 (builtin_define_with_value): Can now wrap the expansion in
6694 quotation marks if such is wanted.
6695 (cb_register_builtins): Update calls to builtin_define_with_value.
6696 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
6698 (c_common_init): Set options->stdc_0_in_system_headers.
6699 * c-lex.h: Update prototype of builtin_define_with_value.
6700 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
6701 and REGISTER_PREFIX.
6703 * cppinit.c (VERS, ULP, C, X): Kill.
6704 (builtin_array): Remove entries for __VERSION__,
6705 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
6706 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
6708 (init_builtins): Kill off a bunch of now-dead code.
6709 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
6710 -fno-leading-underscore.
6711 (cpp_handle_option): Remove code to set user_label_prefix.
6712 (cpp_post_options): Likewise.
6714 * cpplib.h (struct cpp_options): Remove user_label_prefix.
6715 (stdc_0_in_system_headers): New.
6716 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
6717 stdc_0_in_system_headers) too to decide the value of __STDC__.
6719 * tradcpp.c (user_label_prefix): Kill.
6720 (main): Remove code handling -f(no-)leading-underscore.
6721 (initialize_builtins): Don't define __REGISTER_PREFIX__
6722 or __USER_LABEL_PREFIX__.
6723 (install_value): Wrap compound statement in dummy loop so the
6724 macro works properly in an if statement.
6727 2002-05-16 Janis Johnson <janis187@us.ibm.com>
6729 * loop.h (struct loop_info): Add member has_prefetch.
6730 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
6731 (prescan_loop): Initialize has_prefetch.
6732 (struct prefetch_info): Change prefetch_in_loop and
6733 prefetch_before_loop from bit fields to ints.
6734 (emit_prefetch_instructions): Several small fixes.
6735 (check_dbra_loop): Don't reverse loop that uses prefetch.
6737 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6739 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
6740 * configure.in: Likewise.
6741 * fixinc/check.tpl: Likewise.
6742 * fixinc/fixinc.dgux: Likewise.
6743 * fixinc/fixinc.svr4: Likewise.
6744 * fixinc/fixinc.winnt: Likewise.
6745 * fixinc/fixincl.sh: Likewise.
6746 * fixproto: Likewise.
6747 * configure: Regenerate.
6749 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6751 Basic block renumbering removal:
6752 * basic_block.h (struct basic_block_def): Renamed index to sindex,
6753 added prev_bb and next_bb fields.
6754 (n_basic_blocks): Renamed to num_basic_blocks.
6755 (last_basic_block): New, index of last basic block.
6756 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
6757 traversing basic block chain.
6758 (BLOCK_NUM): index -> sindex.
6759 (create_basic_block_structure, create_basic_block): Declaration changed.
6760 (debug_num2bb): Declare.
6761 (expunge_block_nocompact): Declaration removed.
6762 (link_block, unlink_block, compact_blocks): Declare.
6763 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
6764 * cfg.c (entry_exit_blocks): Initialize new fields.
6765 (clear_edges, alloc_block, expunge_block, cached_make_edge,
6766 redirect_edge_pred, dump_flow_info, dump_edge_info,
6767 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
6768 free_aux_for_edges): Modified.
6769 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
6770 (expunge_block_nocompact): Removed.
6771 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
6772 find_unreachable_blocks, create_edge_list, print_edge_list,
6773 verify_edge_list, flow_edge_list_print, remove_fake_successors,
6774 remove_fake_edges, flow_reverse_top_sort_order_compute,
6775 flow_depth_first_order_compute, flow_preorder_transversal_compute,
6776 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
6777 flow_dfs_compute_reverse_execute): Modified.
6778 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
6779 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
6781 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
6782 merge_blocks_move_predecessor_nojumps,
6783 merge_blocks_move_successor_nojumps, merge_blocks,
6784 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
6785 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
6786 * cfglayout.c (skip_insns_after_block, label_for_bb,
6787 record_effective_endpoints, scope_to_insns_finalize,
6788 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
6789 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
6790 cfg_layout_duplicate_bb): Modified.
6791 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
6792 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
6793 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
6794 flow_loops_find, flow_loop_outside_edge_p): Modified.
6795 * cfgrtl.c (create_basic_block_structure, create_basic_block,
6796 flow_delete_block, compute_bb_for_insn, split_block,
6797 try_redirect_by_replacing_jump, redirect_edge_and_branch,
6798 force_nonfallthru_and_redirect, tidy_fallthru_edge,
6799 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
6800 commit_edge_insertions, commit_edge_insertions_watch_calls,
6801 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
6802 purge_all_dead_edges): Modified.
6803 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
6804 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
6805 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
6807 * conflict.c (conflict_graph_compute): Modified.
6808 * df.c (FOR_ALL_BBS): Removed.
6809 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
6810 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
6811 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
6812 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
6813 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
6814 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
6815 * final.c (compute_alignments, final_scan_insn): Modified.
6816 * flow.c (verify_local_live_at_start, update_life_info,
6817 update_life_info_in_dirty_blocks, free_basic_block_vars,
6818 delete_noop_moves, calculate_global_regs_live,
6819 initialize_uninitialized_subregs, allocate_bb_life_data,
6820 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
6821 mark_used_reg, count_or_remove_death_notes): Modified.
6822 * function.c (thread_prologue_and_epilogue_insns): Modified.
6823 * gcse.c (struct null_pointer_info): Change typo of current_block
6825 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
6826 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
6827 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
6828 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
6829 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
6830 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
6831 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
6832 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
6833 pre_delete, one_pre_gcse_pass, compute_transpout,
6834 invalidate_nonnull_info, delete_null_pointer_checks_1,
6835 free_code_hoist_mem, compute_code_hoist_vbeinout,
6836 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
6837 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
6838 compute_store_table, build_store_vectors, insert_insn_start_bb,
6839 insert_store, replace_store_insn, free_store_memory, store_motion):
6841 * global.c (global_alloc, global_conflicts, mark_elimination,
6842 build_insn_chain): Modified.
6843 * graph.c (print_rtl_graph_with_bb): Modified.
6844 * haifa-sched.c (sched_init): Modified.
6845 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
6846 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
6847 if_convert): Modified.
6848 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
6849 compute_insert_delete, pre_edge_lcm, compute_available,
6850 compute_farthest, compute_nearerout, compute_rev_insert_delete,
6851 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
6853 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
6854 * loop.c (loop_dump_aux): Modified.
6855 * predict.c (combine_predictions_for_insn, estimate_probability,
6856 last_basic_block_p, process_note_prediction, process_note_predictions,
6857 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
6858 expensive_function_p, estimate_bb_frequencies,
6859 compute_function_frequency): Modified.
6860 * print-rtl.c (print_rtx): Modified.
6861 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
6862 get_exec_counts, compute_branch_probabilities, compute_checksum,
6863 branch_prob, find_spanning_tree): Modified.
6864 * recog.c (split_all_insns, peephole2_optimize): Modified.
6865 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
6866 convert_regs_1, convert_regs_2, convert_regs): Modified.
6867 * regclass.c (scan_one_insn, regclass): Modified.
6868 * regmove.c (mark_flags_life_zones, regmove_optimize,
6869 combine_stack_adjustments): Modified.
6870 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
6871 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
6872 * reorg.c (dbr_schedule): Modified.
6873 * resource.c (find_basic_block, init_resource_info): Modified.
6874 * sbitmap.c (sbitmap_intersection_of_succs,
6875 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
6876 sbitmap_union_of_preds): Modified.
6877 * sched-deps.c (init_dependency_caches): Modified.
6878 * sched-ebb.c (schedule_ebbs): Modified.
6879 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
6880 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
6881 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
6882 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
6883 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
6884 ssa_const_prop): Modified.
6885 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
6886 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
6887 * ssa.c (remove_phi_alternative, find_evaluations,
6888 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
6889 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
6890 make_regs_equivalent_over_bad_edges,
6891 make_equivalent_phi_alternatives_equival,
6892 compute_conservative_reg_partition,
6893 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
6894 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
6897 2002-05-16 Mark Mitchell <mark@codesourcery.com>
6899 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
6901 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
6903 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
6904 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
6905 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
6906 calling CONSTANT_POOL_ADDRESS_P.
6907 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
6908 to decide whether to define __arm__ or __thumb.
6909 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
6910 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
6912 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
6914 * config/arc/arc.h (CPP_PREDEFINES): Remove.
6916 (TARGET_CPU_CPP_BUILTINS): New.
6918 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
6920 * cpphash.h (cpp_macro): Move here, and make expansion a union.
6921 * cppmacro.c (cpp_macro): Remove.
6922 (enter_macro_context, replace_args, warn_of_redefinition,
6923 _cpp_create_definition, cpp_macro_definition): Update.
6925 2002-05-16 Jason Merrill <jason@redhat.com>
6927 * config/mips/mips.c (mips_output_external): Don't do sdata
6928 optimization for a variable with DECL_COMDAT set.
6930 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
6932 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
6933 Cleanups for accepting modifiers on pointers.
6934 Fix predicate typos.
6935 Allow long pointers as well as int pointers.
6937 2002-05-15 Richard Henderson <rth@redhat.com>
6939 * varasm.c (merge_weak): Remove special case for extern and common.
6941 2002-05-15 Matt Hiller <hiller@redhat.com>
6943 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
6945 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
6946 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
6947 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
6948 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
6949 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
6950 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
6952 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
6954 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
6956 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
6958 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
6959 ("altivec_mfvscr"): Read from VSCR.
6961 Add vscr sets for the following insns: altivec_vctuxs,
6962 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
6963 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
6964 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
6965 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
6966 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
6967 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
6968 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
6969 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
6970 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
6971 altivec_vsum2sws, altivec_vsumsws.
6973 * config/rs6000/rs6000.h: Add VSCR fixed register.
6974 (CALL_REALLY_USED_REGISTERS): Add vscr.
6975 (CALL_USED_REGISTERS): Same.
6976 (FIXED_REGISTERS): Same.
6977 (REG_ALLOC_ORDER): Same.
6978 (reg_class): Add VSCR_REGS.
6979 (REG_CLASS_NAMES): Same.
6980 (REG_CLASS_CONTENTS): Same.
6982 (REGISTER_NAMES): Add vscr.
6983 (DEBUG_REGISTER_NAMES): Same.
6984 (ADDITIONAL_REGISTER_NAMES): Same.
6985 (FIRST_PSEUDO_REGISTER): Increment.
6986 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
6988 2002-05-15 Jakub Jelinek <jakub@redhat.com>
6990 * fold-const.c (fold): Fix a typo.
6992 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
6994 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
6995 comparison against the highest or lowest integer value before
6996 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
6997 transformation and that of an unsigned comparison against 0
7000 2002-05-15 Richard Henderson <rth@redhat.com>
7002 * varasm.c (merge_weak): Error for any weakening after definition.
7003 Adjust weakening after use warning to catch more cases.
7004 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
7005 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
7007 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
7009 * invoke.texi (-malign-double): Re-add lost warning.
7011 * i386-protos.h (x86_output_mi_thunk): Declare.
7012 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
7013 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
7015 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
7016 when flag_asynchronous_unwind_tables is set.
7018 * flags.h (flag_reorder_functions): Declare.
7019 * function.c (prepare_function_start): Initialize frequnecy.
7020 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
7021 * Makefile.in (predict.o): Add dependency on target.h and params.h
7022 * defaults.h (HOT_TEXT_SECTION_NAME,
7023 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
7024 * predict.c (choose_function_section): New function.
7025 (estimate_bb_frequencies): Use it.
7026 * toplev.c (flag_reorder_functions): New global variable.
7027 (lang_independent_options): New.
7028 (parse_options_and_default_flags): Set.
7029 * varasm.c (assemble_start_function): Bypass functdion alignment
7030 for never executed functions.
7031 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
7032 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
7033 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
7036 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
7038 * predict.c: Inlude profile.h
7039 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
7040 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
7041 Use the information about maximal counter in the program.
7043 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
7045 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
7046 probably_never_executed_bb_p): New functions.
7047 * cfgcleanup.c (outgoing_edges_match): Use them.
7048 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
7049 (maybe_hot_bb_p, probably_cold_bb_p,
7050 probably_never_executed_bb_p): New functions.
7052 * function.h (function): Add new field function_frequency.
7053 * predict.c (compute_function_frequency): New function.
7054 (estimate_probability): Call it.
7056 2002-03-09 Jakub Jelinek <jakub@redhat.com>
7058 PR optimization/5172, optimization/5200
7059 * gcse.c (gcse_main): Disable store_motion.
7061 2002-05-14 Zack Weinberg <zack@codesourcery.com>
7063 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
7064 (c_common_nodes_and_builtins): Use it.
7065 (builtin_define_with_value): New function.
7066 (cb_register_builtins): Define __SIZE_TYPE__,
7067 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
7068 using builtin_define_with_value. Use consistent notation when
7069 defining __GXX_WEAK__.
7070 (WCHAR_TYPE_SIZE): Don't redefine.
7071 (combine_strings): Don't use WCHAR_TYPE_SIZE.
7073 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
7074 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
7075 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
7076 * tradcpp.c (initialize_builtins): Likewise.
7077 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
7079 * c-lex.h (builtin_define_with_value): Prototype.
7080 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
7081 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
7082 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
7084 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
7085 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
7086 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
7087 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
7088 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
7089 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
7090 config/sparc/sol2-bi.h, config/sparc/sparc.h:
7091 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
7092 to __SIZE_TYPE__ etc from all spec strings. When this makes
7093 extra specs empty, delete them.
7095 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
7097 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
7098 for PA8000 or generating dwarf2 call frame information.
7099 (output_call): Remove DO_FRAME_NOTES check from return pointer
7101 (following_call): Return 0 when scheduling for PA8000 or generating
7102 dwarf2 call frame information. Revise comment.
7104 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
7107 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
7108 and __IEEE_FP_INEXACT as appropriate.
7109 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
7110 (CPP_SPEC): Remove ieee defines.
7111 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
7113 2002-05-14 Richard Henderson <rth@redhat.com>
7115 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
7116 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
7118 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
7120 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
7122 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
7123 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
7124 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
7125 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
7126 (EXTRA_SPECS): Update.
7127 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
7128 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
7129 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
7130 define TARGET_OS_CPP_BUILTINS if necessary.
7132 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
7134 * gcc.c (cpp_options): Must pass -m* and -f* options
7135 to the front end even when only preprocessing.
7136 (cc1_options): Remove redundant -lang-c.
7137 * tradcpp.c (main): Ignore -m options.
7139 * lang-specs.h: Similarly.
7141 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
7143 * genautomata.c (transform_3): Add code for transformation
7144 `(A,B,...)+C -> A+C,B,...'.
7146 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
7148 * final.c (end_final): Do not output profile_arcs constructor, when
7149 no functions are instrumented.
7151 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
7153 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
7155 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7157 * doc/install.texi: Remove special markup originally required for
7158 HTML generation with texi2html.
7160 2002-05-14 Andreas Schwab <schwab@suse.de>
7162 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
7164 (UNIQUE_SECTION): Define to get small data correctly.
7166 * varasm.c (resolve_unique_section): Add third parameter
7167 flag_function_or_data_sections and use it instead of
7168 flag_function_sections.
7169 (assemble_start_function): Pass flag_function_sections.
7170 (asm_emit_uninitialised): Pass flag_data_sections.
7171 (assemble_variable): Likewise.
7173 2002-05-14 Richard Henderson <rth@redhat.com>
7175 * config/i386/i386.md: Use define_constants for unspec numbers.
7176 * config/i386/i386.c: Likewise.
7178 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
7180 * doc/contrib.texi: Update my entry.
7182 2002-05-13 Mark Mitchell <mark@codesourcery.com>
7184 * fixinc/inclhack.def (winidss_valist): Limit applicability.
7185 * fixinc/fixincl.x: Regenerated.
7186 * fixinc/tests/base/math.h: Update.
7187 * fixinc/tests/base/testing.h: Likewise.
7189 2002-05-13 Zack Weinberg <zack@codesourcery.com>
7191 * genattr.c (gen_attr): Don't emit a comma after the last
7194 2002-05-13 Richard Henderson <rth@redhat.com>
7196 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
7198 * recog.c (peephole2_optimize): Likewise.
7200 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
7202 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
7205 2002-05-13 Jeffrey A Law (law@redhat.com)
7207 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
7208 Update prototype and callers.
7209 (propagate_one_insn): Stack pointer adjustments kill MEMs on
7210 the mem_set_list which reference the stack pointer, as do
7211 calls to constant functions as they may clobber outgoing
7214 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
7216 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7217 (ia32_multipass_dfa_lookahead): New function.
7219 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
7221 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
7222 (translate_options): Remove 'V'.
7223 (process_command): Similarly.
7225 * invoke.texi: Remove documentation of 'V'.
7227 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7229 * config/s390/linux.h: Revert 2002-04-22 changes.
7231 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
7233 * config/fr30/fr30.md: Only allow splits of immediate loads
7234 if the destination is a register.
7236 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
7238 * Makefile.in (c-common.o, cppinit.o): Update.
7239 * c-common.c: Include except.h.
7240 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
7241 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
7242 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
7243 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
7244 CPP_PREDEFINES): Handle here.
7246 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
7247 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
7248 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
7249 TARGET_OS_CPP_BUILTINS.
7250 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
7251 (CPP_SPEC, EXTRA_SPECS): Update.
7252 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
7253 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
7254 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
7255 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
7256 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
7258 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
7259 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
7261 2002-05-12 Zack Weinberg <zack@codesourcery.com>
7263 * emit-rtl.c (global_rtl): Update comment.
7264 (const_double_htab, const_double_htab_hash,
7265 const_double_htab_hash, lookup_const_double): New.
7266 (const_int_htab_hash, const_int_htab_eq): Remove const
7267 qualifiers, which cause tons of warnings with RTL checking on.
7268 (gen_rtx_CONST_DOUBLE): Deleted.
7269 (const_double_from_real_value): New function - bears some
7270 resemblance to the former immed_real_const_1.
7271 (immed_double_const): Moved here from varasm.c and
7273 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
7274 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
7275 (gen_rtx): Use immed_double_const.
7276 (init_emit_once): Initialize the const_double_htab. Use
7277 REAL_VALUE_FROM_INT where possible. Can now use
7278 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
7279 * varasm.c (struct varasm_status): Remove x_const_double_chain.
7280 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
7281 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
7282 (init_varasm_status, mark_varasm_status): Don't touch
7283 x_const_double_chain.
7285 * output.h: Delete prototype for clear_const_double_mem.
7286 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
7287 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
7288 const_double_from_real_value, not immed_real_const_1, and use
7289 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
7291 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
7292 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
7293 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
7294 (gen_rtx_REG): Second arg is unsigned.
7296 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
7297 (excluded_rtx): New, return true for CONST_DOUBLE.
7298 (genmacro): Write nothing for excluded codes.
7299 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
7300 * expr.c (expand_expr): Likewise.
7301 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
7303 * toplev.c (rest_of_compilation): Don't call
7304 clear_const_double_mem.
7306 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
7307 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
7308 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
7309 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
7310 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
7311 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
7312 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
7313 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
7315 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7317 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
7319 2002-05-12 Tom Tromey <tromey@redhat.com>
7321 * tree.h (copy_node): Don't mention TREE_PERMANENT.
7323 2002-05-12 Zack Weinberg <zack@codesourcery.com>
7325 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
7326 (scan_comma_elt): New function. Accepts whitespace in comma lists.
7327 * gensupport.h: Prototype new routines.
7328 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
7330 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
7331 (next_comma_elt): Use scan_comma_elt.
7333 * config/i386/i386.md: Use new attribute notation to break up
7334 long lines in define_attr forms.
7336 2002-05-12 Richard Henderson <rth@redhat.com>
7338 * expr.c (compress_float_constant): New.
7339 (emit_move_insn): Use it.
7340 (float_extend_from_mem): New.
7341 (init_expr_once): Initialize it.
7342 * real.c (exact_real_truncate): New.
7344 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
7345 dropped into memory; penalize for size.
7346 (RTX_COSTS): FLOAT_EXTEND is free.
7347 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
7348 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
7350 2002-05-12 Richard Henderson <rth@redhat.com>
7352 * profile.h (profile_info): Add missing extern to declaration.
7353 * profile.c (profile_info): Define it.
7355 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7357 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
7358 used for DImode and TImode.
7360 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
7362 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
7365 2002-05-11 Zack Weinberg <zack@codesourcery.com>
7367 * config/rs6000/rs6000.c (rs6000_default_long_calls,
7368 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
7369 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
7370 (rs6000_override_options): Handle -m(no-)longcall.
7371 (init_cumulative_args, output_mi_thunk): Check for both
7372 longcall and shortcall attributes on the function.
7373 (rs6000_attribute_table): Add "shortcall".
7374 (rs6000_handle_longcall_attribute): Update comment.
7375 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
7376 altivec_expand_ternop_builtin): Add default clauses to switches
7377 to silence warnings.
7379 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
7380 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
7381 (TARGET_OPTIONS): Add longcall and no-longcall.
7383 * config/rs6000/rs6000.md (call_nonlocal_sysv,
7384 call_value_nonlocal_sysv): Split by alternatives. One pair
7385 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
7386 the call cookie. The other pair accepts only LR/CTR and has
7389 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
7390 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
7392 * config/rs6000/rs6000-c.c: New file.
7393 * config/rs6000/t-rs6000-c-rule: New file.
7394 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
7395 Prototype rs6000_pragma_longcall.
7397 * doc/extend.texi: Document shortcall attribute.
7398 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
7400 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7402 * reorg.c (dbr_schedule): Remove unnecessary test.
7404 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
7406 * i386.md (testsi to testqi spliters): New.
7408 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
7410 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
7412 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
7414 * basic-block.h: New flag EDGE_CAN_FALLTHRU
7415 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
7416 that can be made fallthru.
7418 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
7420 * cfglayout.c (cleanup_unconditional_jumps): New static function.
7421 (cfg_layout_initialize): Use it.
7423 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
7425 * config/avr/avr.c (avr_mcu_types): Update supported devices.
7426 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7427 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7429 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
7431 * dbxout.c: Fix formatting.
7432 * dependence.c: Likewise.
7434 * diagnostic.c: Likewise.
7435 * doloop.c: Likewise.
7436 * dominance.c: Likewise.
7437 * doschk.c: Likewise.
7438 * dwarf2asm.c: Likewise.
7439 * dwarf2out.c: Likewise.
7440 * dwarfout.c: Likewise.
7442 2002-05-10 Richard Henderson <rth@redhat.com>
7444 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
7445 Convert integers constants as needed. Replace "nwords" field with
7447 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
7448 * function.h: Fix typo in comment.
7449 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
7451 2002-05-10 Roger Sayle <roger@eyesopen.com>
7453 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
7454 into the equivalent (signed char)c > 0.
7456 2002-05-10 Janis Johnson <janis187@us.ibm.com>
7458 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
7459 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
7460 (struct prefetch_info): Fix spelling of member bytes_accessed.
7461 (emit_prefetch_instructions): Make dump messages more regular;
7462 restructure code to add more dump messages; use new macros for
7463 heuristics. (There are no code generation changes in any of this).
7465 2002-05-10 David S. Miller <davem@redhat.com>
7467 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
7468 (struct rtx_def): Update unchanging flag comment.
7469 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
7470 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
7471 to be handled to INSN too.
7472 (dbr_schedule): Likewise.
7473 * resource.c (next_insn_no_annul): Likewise.
7475 * cse.c (rtx_cost): Remove multiplication by power of 2 special
7478 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7480 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
7481 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
7482 (possibly) work around broken /bin/sh.
7484 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7486 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
7487 . as N64/N32 libgcc_s.so subdirs.
7489 2002-05-10 David S. Miller <davem@redhat.com>
7491 * config/sparc/sparc.md: Use define_constants for unspec numbers.
7493 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
7495 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
7497 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
7498 * doc/rtl.texi: Document these macros more accurately.
7499 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
7500 JUMP_INSNs and CALL_INSNs.
7501 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
7502 or INSN_FROM_TARGET_P if the code is appropriate.
7504 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
7506 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
7507 before using SYMBOL_REF_FLAG (addr).
7509 * config/avr/avr-protos.h (avr_io_address_p): Declare.
7510 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
7511 Make non-static. Update all callers.
7512 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
7513 New insns to clear/set/test a single bit in I/O address space.
7515 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7517 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
7519 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7521 * Makefile.in: Update.
7522 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
7523 builtin_define_std): New.
7524 (c_common_init): Register CPP builtins callback.
7525 * c-common.h (flag_iso, flag_undef): New.
7526 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
7527 * c-lex.c: Don't include target.h.
7528 (cb_register_builtins): Move to c-common.c.
7529 (init_c_lex): Don't register hook here.
7530 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
7531 (cpp_define, cpp_assert): Remove.
7532 * gcc.c (cc1_options): Pass -undef to front end.
7533 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
7534 (TARGET_INITIALIZER): Update.
7535 * target.h (struct cpp_reader): Don't predeclare.
7536 (struct gcc_target): Remove cpp builtin hook.
7537 * tree.c (default_register_cpp_builtins): Remove.
7541 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7543 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
7545 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7547 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
7548 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
7550 2002-05-09 Jakub Jelinek <jakub@redhat.com>
7552 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
7553 * config/sparc/libgcc-sparc-glibc.ver: New file.
7554 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
7555 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
7557 2002-05-09 Jakub Jelinek <jakub@redhat.com>
7560 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
7561 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
7562 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
7564 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
7565 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
7566 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
7567 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
7569 2002-05-09 Richard Henderson <rth@redhat.com>
7571 * config/ia64/ia64.md: Use define_constants for unspec numbers.
7572 * config/ia64/ia64.c: Likewise.
7574 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
7576 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
7577 (save_restore_insns): Likewise.
7578 (mips_expand_prologue, mips_expand_epilogue): Update callers.
7579 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
7581 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
7583 * athlon.md, k6.md, pentium.md, ppro.md): New files.
7584 * i386.md: Move scheduling information into new files.
7586 * i386.md (type attribute): Add "rotate" for rotate insns.
7587 (rotate insns): Set type to "rotate".
7588 (various attributes and function units): Treat rotate like shift.
7589 (pent_pair attribute): Only rotates by one bit position are
7591 (sbb insns): Explicitly set pent_pair attribute on a couple
7592 that were missing it.
7594 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
7596 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
7597 make sure that buffer starts on odd word address.
7598 (sh_va_arg): Skip odd fp registers when reading a double precision
7601 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7603 * tree.h (preserve_data, object_permanent_p, type_precision):
7606 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7608 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
7609 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
7611 * cpp.texi: Update for removal of obsolete features.
7613 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
7614 Jeffrey A Law (law@redhat.com)
7616 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
7617 the DFA interface for Pentium processors.
7618 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
7619 (attr_pent_pair, ix86_pent_find_pair): Remove.
7620 (ix86_sched_reorder_pentium): Remove.
7621 (ix86_sched_reorder): Remove reordering for Pentium.
7622 * i386.md (Pentium scheduling): Rewrite using DFA description.
7624 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
7626 * cfganal.c (can_fallthru): Fix fast path.
7627 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
7628 with edges to the next block.
7630 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
7631 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
7633 * final.c (end_final): Use C trees to output data structures for profiling.
7635 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
7636 (profile.o): New dependency profile.h
7637 (final.o): New dependency profile.h
7638 * profile.h: New file. New global structure profile_info.
7639 * final.h (count_edges_instrumented_now): Declare.
7640 (current_function_cfg_checksum): Declare.
7641 (function_list): New structure.
7642 (functions_head, functions_tail): New static variables.
7643 (end_final): Emits more data, removed some -ax stuff.
7644 (final): Stores function names and chcksums.
7645 * gcov-io.h (__write_gcov_string): New function.
7646 (__read_gcov_string): New function.
7647 * gcov.c (read_profile): New function.
7648 (create_program_flow_graph): Uses read_profile instead of reading
7650 (read_files): Removed da_file checking, it's done by read_profile now.
7651 * libgcc2.c (bb_function_info): New structure.
7652 (bb): New field in structure, removed some -ax stuff.
7653 (__bb_exit_func): Changed structure of da_file.
7654 * profile.c (count_edges_instrumented_now): New global variable.
7655 (current_function_cfg_checksum): New global variable.
7656 (max_counter_in_program): New global variable.
7657 (get_exec_counts): New function.
7658 (compute_checksum): New function.
7659 (instrument_edges): Sets count_edges_instrumented_now.
7660 (compute_branch_probabilities): Uses get_exec_counts instead of
7662 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
7663 (init_branch_prob): Removed da_file checking, done in get_exec_counts
7665 (end_branch_prob): Removed da_file checking, done in get_exec_counts
7667 * gcov.texi: Updated information about gcov file format.
7669 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
7671 * sbitmap.c: Fix formatting.
7673 * scan-decls.c: Likewise.
7674 * sched-deps.c: Likewise.
7675 * sched-ebb.c: Likewise.
7676 * sched-rgn.c: Likewise.
7677 * sched-vis.c: Likewise.
7678 * sdbout.c: Likewise.
7679 * sibcall.c: Likewise.
7680 * simplify-rtx.c: Likewise.
7682 * ssa-ccp.c: Likewise.
7683 * ssa-dce.c: Likewise.
7685 * stor-layout.c: Likewise.
7686 * stringpool.c: Likewise.
7688 2002-05-09 David S. Miller <davem@redhat.com>
7690 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
7692 2002-05-07 David S. Miller <davem@redhat.com>
7694 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
7695 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
7696 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
7697 library implementation clobbers the output before the inputs
7698 are fully consumed, use stack temporary for the output.
7700 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
7702 * config/netbsd.h (CPP_SPEC): Remove.
7703 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
7704 * config/i386/netbsd.h (CPP_SPEC): Define.
7705 * config/ns32k/netbsd.h (CPP_SPEC): Define.
7706 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
7707 * config/sparc/netbsd.h (CPP_SPEC): Define.
7708 * config/vax/netbsd.h (CPP_SPEC): Define.
7710 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
7712 * read-rtl.c: Fix formatting.
7714 * recog.c: Likewise.
7715 * regclass.c: Likewise.
7716 * regmove.c: Likewise.
7717 * reg-stack.c: Likewise.
7718 * reload1.c: Likewise.
7719 * reload.c: Likewise.
7720 * resource.c: Likewise.
7721 * rtlanal.c: Likewise.
7723 * rtl-error.c: Likewise.
7725 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
7727 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
7728 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
7730 2002-05-08 Bernd Schmidt <bernds@redhat.com>
7732 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
7733 use __SSE2__ macro instead.
7734 * config/i386/xmmintrin.h: Likewise.
7736 2002-05-08 Janis Johnson <janis187@us.ibm.com>
7738 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
7739 and use it in all invocations of these macros. Clean up comments.
7740 * rtl.c (rtl_check_failed_flag): Add an argument for the name
7741 of the flag access macro whose check failed.
7742 * doc/rtl.texi (Flags): Document additional flag uses.
7744 2002-05-08 Robert Spier <rspier@pobox.com>
7745 Neil Booth <neil@daikokuya.demon.co.uk>
7747 PR preprocessor/6521
7748 * cppfiles.c (handle_missing_header): Don't do anything
7749 different for <> includes.
7751 * cppopts.texi: Update documentation for -MG.
7753 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
7755 * cpplex.c (cpp_interpret_charconst): Truncate as well as
7758 * cpp.texi: Clarify multichar charconst valuation.
7760 2002-05-08 Mark Mitchell <mark@codesourcery.com>
7762 * doc/invoke.texi: Document -mwindiss option.
7764 2002-05-08 Jason Merrill <jason@redhat.com>
7766 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
7768 * dwarf2out.c (gen_type_die): Abort on broken recursion.
7771 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
7774 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
7776 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
7777 little-endian multilibs to override arm/thumb multilibs.
7778 Do not build hardware floating point multilibs, nor apcs-26
7779 multilibs for the Thumb.
7781 2002-05-08 Mark Mitchell <mark@codesourcery.com>
7784 * varasm.c (mark_weak): New function.
7785 (merge_weak): Use it. Do not call declare_weak.
7786 (declare_weak): Use merge_weak.
7788 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
7790 * cse.c (dead_libcall_p): Update counts.
7791 (delete_trivially_dead_insns): Update call of dead_libcall_p.
7793 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
7795 * cfglayout.c (function_tail_eff_head): Rename to ...
7796 (function_footer): ... this one.
7797 (unlink_insn_chain): New functions.
7798 (label_for_bb): Only call block_label and emit debug message.
7799 (record_effective_endpoints): Actually unlink the headers and footers.
7800 (fixup_reorder_cahin): Re-insert the unlinked sequences.
7801 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
7802 * cfglayout.h (struct reorder_block_def): New fields footer/header;
7803 remove eff_head/eff_end.
7804 * rtl.h (set_first_insn): Declare.
7805 * emit-rtl.c (set_first_insn): New function.
7807 * cfglayout.c (fixup_reorder_chain): Dump duplicated
7808 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
7809 cfg_layout_duplicate_bb): New global function.
7810 (duplicate_insn_chain): New static function.
7811 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
7812 cfg_layout_duplicate_bb): Declare.
7813 (struct reorder_block_def): Add "original" field.
7814 * emit-rtl.c (emit_copy_of_insn_after): New function.
7815 * rtl.h (emit_copy_of_insn_after): Declare.
7817 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
7818 (fixup_reorder_chain): properly handle edges to exit block.
7820 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7821 Jan Hubicka <jh@suse.cz>
7823 * basic-block.h (note_prediction_to_br_prob): declare.
7824 * c-semantics.c: Inlucde predit.h
7825 (expand_stmt): predict GOTO_STMT as not taken.
7826 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
7827 (cleanup_cfg): Do not free tail_recursion_list.
7828 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
7829 (flow_delete_block): Kill predictions past end of basic block.
7830 * output.h (delete_unreachable_blocks): Declare.
7831 * predict.c (predicted_by_p, process_note_predictions,
7832 process_note_prediction, last_block_p): New function.
7833 (estimate_probability): Bypass loop on PRED_CONTINUE;
7834 do not handle noreturn heuristics; kill PRED_RETURN; add
7836 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
7837 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
7838 * predict.h (IS_TAKEN): New constant.
7839 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
7840 * rtl.c (NOTE_INSN_PREDICTION): New.
7841 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
7843 (insn_note): add NOTE_INSN_PREDICTION.
7844 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
7845 CFG; free tail_recursion_label_list.
7846 * stmt.c: Include predict.h;
7847 (return_prediction): New.
7848 (expand_value_return): Use it.
7849 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
7851 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
7853 * config/mips/mips.md: Name the unspecs with define_constant.
7854 (*HILO_delay): Rename to 'hilo_delay' (no star).
7855 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
7856 (reload_outdi, reload_outsi): Likewise.
7858 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
7860 * toplev.c: Fix formatting.
7862 2002-05-07 Janis Johnson <janis187@us.ibm.com>
7864 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
7865 * configure.in (ac_rtlflag_checking): New.
7866 * doc/install.texi (--enable-checking): Document RTL flag checking.
7868 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
7870 * c-common.c (c_common_init): Set options->unsigned_wchar.
7871 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
7872 group target dependencies.
7873 (init_builtins, cpp_handle_option): Update.
7874 * cpplex.c (cpp_interpret_charconst): Update.
7875 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
7876 signed_char to unsigned_char, group target dependencies.
7877 * defaults.h (WCHAR_UNSIGNED): Remove.
7878 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
7880 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
7881 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
7882 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
7883 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
7884 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
7886 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
7888 2002-05-07 Mark Mitchell <mark@codesourcery.com>
7890 * fixinc/inclhack.def (windiss_math1): New fix.
7891 (windiss_math2): Likewise.
7892 (windiss_valist): Likewise.
7893 * fixinc/fixincl.x: Regenerated.
7895 2002-05-07 Andreas Jaeger <aj@suse.de>
7897 * genautomata.c (output_internal_min_issue_delay_func): Add
7898 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
7899 (output_internal_trans_func): Likewise.
7901 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
7903 * pa.c (hppa_profile_hook): Use force_reg to get the address
7904 of the profile hook into an appropriate pseudo register.
7906 2002-05-07 Mark Mitchell <mark@codesourcery.com>
7908 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
7909 (LINK_START_SPEC): Handle it.
7910 (LINK_OS_SPEC): Likewise.
7911 (CPP_SPEC): Likewise.
7912 (STARTFILE_SPEC): Likewise.
7913 (LIB_SPEC): Likewise.
7914 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
7916 (CRTSAVRES_DEFAULT_SPEC): New macro.
7917 (LIB_WINDISS_SPEC): New macro.
7918 (CPP_OS_WINDISS_SPEC): Likewise.
7919 (STARTFILE_WINDISS_SPEC): Likewise.
7920 (ENDFILE_WINDISS_SPEC): Likewise.
7921 (LINK_START_WINDISS_SPEC): Likewise.
7922 (LINK_OS_WINDISS_SPEC): Likewise.
7923 * config/rs6000/windiss.h: New file.
7925 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
7927 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
7929 2002-05-06 David S. Miller <davem@redhat.com>
7931 * config/sparc/sparc.md (shift insns): Do not mask off
7932 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
7935 2002-05-06 Richard Henderson <rth@redhat.com>
7938 * expr.c (highest_pow2_factor_for_type): New.
7939 (expand_assignment): Use it.
7941 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
7943 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
7945 ("altivec_mfvscr"): Same.
7947 2002-05-06 Janis Johnson <janis187@us.ibm.com>
7949 * rtl.h (struct rtx_def): Update comments.
7950 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
7951 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
7952 RTL_FLAG_CHECK macros with list of expected RTL codes.
7953 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
7954 (rtl_check_failed_flag): New.
7955 * reload1.c (reload): Use REG macro before changing rtx to MEM.
7956 (reload_cse_noop_set_p): Check rtx code before using access macro.
7957 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
7958 before using access macro.
7960 2002-05-06 Janis Johnson <janis187@us.ibm.com>
7962 * doc/rtl.texi (Flags): Update to reflect current usage.
7964 2002-05-06 Roger Sayle <roger@eyesopen.com>
7967 * fold-const.c (sign_bit_p): New function.
7968 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
7969 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
7970 Reapply fold when converting (A & C) == C into (A & C) != 0.
7971 (fold_binary_op_with_conditional_arg): Fix typo in comment.
7973 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
7975 * c-common.c (warn_multichar): New.
7976 (c_common_init): Set CPP's warn_multichar.
7977 * c-common.h (warn_multichar): New.
7978 * c-decl.c (warn_multichar): Remove.
7979 * c-lex.c (lex_charconst): Update.
7980 * c-tree.h (warn_multichar): Remove.
7981 * cppexp.c (eval_token): Sign-extend charconst value.
7982 * cppinit.c (cpp_create_reader): Set warn_multichar.
7983 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
7984 each character. Update prototype. Sign-extend the result.
7985 * cpplib.h: Fix conditions.
7986 (struct cpp_options): Add new warning flag.
7987 (cpp_interpret_charconst): Update prototype.
7989 * cpp.texi: Update documentation.
7991 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
7993 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
7994 Fix typo in usage of allof instead of unit.
7996 2002-05-06 Richard Henderson <rth@redhat.com>
7998 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
7999 and any jump or call for IN.
8001 2002-05-06 Bernd Schmidt <bernds@redhat.com>
8003 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
8005 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
8007 2002-05-06 Roger Sayle <roger@eyesopen.com>
8009 * fold-const.c (lshift-double): Cast the high word to an unsigned
8010 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
8011 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
8012 avoid compiler warning. (fold): Remove redundant code from
8013 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
8015 2002-05-06 Jeff Law <law@redhat.com>
8017 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
8018 * pa.c (pa_adjust_cost): Remove all true dependency cost
8019 adjustments. Also remove support for non-DFA scheduling.
8020 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
8021 to adjust true dependency costs. Update various comments.
8022 (7100lc, 7200, 7300 scheduling): Simplify by combining the
8023 FP ALU & MPY units into a single unit.
8025 2002-05-06 Catherine Moore <clm@redhat.com>
8027 * config/v850/v850.c (compute_register_save_size): Make sure
8028 to count all of the registers that will be saved.
8030 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
8032 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
8034 2002-05-06 David S. Miller <davem@redhat.com>
8036 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
8037 allow result to overlap input operands in memory.
8039 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
8042 * cpp.texi: Update multichar charconst docs.
8044 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
8046 * cpplex.c (cpp_interpret_charconst): Sign-extend each
8047 character. Don't ignore excess characters. Treat
8048 multicharacter character constants as signed.
8049 (cpp_parse_escape): Clarify diagnostic.
8051 2002-05-05 Jakub Jelinek <jakub@redhat.com>
8053 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
8054 use add instead of shift.
8055 (ashldi3_sp64): Likewise.
8056 (ashlsi3_const1, ashldi3_const1): Remove.
8057 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
8058 * config/sparc/sparc.c (const1_operand): New.
8060 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
8062 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
8064 2002-05-05 Jakub Jelinek <jakub@redhat.com>
8067 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
8069 2002-05-05 Richard Henderson <rth@redhat.com>
8071 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
8072 memory latency adjustments.
8073 (alpha_variable_issue): Remove.
8074 (alpha_use_dfa_pipeline_interface): New.
8075 (alpha_multipass_dfa_lookahead): New.
8076 * config/alpha/alpha.md: Remove define_function_unit scheduling;
8077 include new dfa scheduling.
8078 (attr type): Add none.
8080 * config/alpha/ev4.md: New.
8081 * config/alpha/ev5.md: New.
8082 * config/alpha/ev6.md: New.
8084 2002-05-05 David S. Miller <davem@redhat.com>
8086 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
8088 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
8090 * cse.c: Fix formatting.
8091 * emit-rtl.c: Likewise.
8093 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
8095 * genautomata.c (initiate_states): Add additional guard to
8096 initialize `units_array'.
8098 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
8100 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
8101 process_unit_to_form_the_same_automaton_unit_lists,
8102 form_the_same_automaton_unit_lists
8103 check_unit_distributions_to_automata): New prototypes and
8105 (check_automata): Rename it into `check_automata_insn_issues'.
8106 (unit_decl): New fields `the_same_automaton_unit' and
8107 `the_same_automaton_message_reported_p'.
8108 (unit_decl_t): New typedef.
8109 (the_same_automaton_lists): New gloval variable.
8110 (unit_regexp, unit_set_el, units_array, units_cmp,
8111 output_get_cpu_unit_code_func): Use the typedef.
8112 (evaluate_max_reserv_cycles): Increment
8113 `description->max_insn_reserv_cycles'.
8114 (initiate_states): Don't increment `max_cycles_num'.
8115 (transform_insn_regexps): Move code around transformation of
8116 regexps from `generate'.
8117 (generate): Remove call of `transform_insn_regexps'.
8118 (expand_automata): Call `transform_insn_regexps' and
8119 `check_unit_distributions_to_automata'. Check errors before
8122 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
8123 automaton `ultrasparc3_1'.
8125 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
8127 * c-common.c (c_common_init): Set up CPP arithmetic.
8128 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
8129 something reasonable for the host.
8130 (sanity_checks): Add checks.
8131 (cpp_read_main_file): Call sanity_checks() from here...
8132 (cpp_post_options): ... not here.
8133 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
8134 * cpplib.h (struct cpp_options): New member int_precision.
8136 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8138 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
8140 2002-05-04 David S. Miller <davem@redhat.com>
8142 * config/sparc/linux.h, config/sparc/linux64.h
8143 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
8145 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
8147 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
8149 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
8152 2002-05-05 Tim Josling <tej@melbpc.org.au>
8154 * treelang; New directory for new sample language treelang.
8156 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
8158 * Makefile.in (c-lex.o): Update.
8159 * c-lex.c: Include target.h.
8160 (cb_register_builtins): New.
8161 (init_c_lex): Set builtins callback.
8162 * c-lex.h (cpp_define, cpp_assert): New prototypes.
8163 * cppinit.c (init_builtins): Use callback, including for
8165 * cpplib.h (struct cpp_callbacks): New member.
8166 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
8167 (TARGET_INITIALIZER): Update.
8168 * target.h (struct gcc_target): New hook.
8169 * tree.c (default_register_cpp_builtins): New.
8170 * tree.h (default_register_cpp_builtins): New.
8172 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
8174 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
8176 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
8177 (cpp_post_options): Move sanity checks to...
8178 (sanity_checks): New.
8179 * cpplex.c (maybe_read_ucs): Fix prototype.
8180 (parse_string, cpp_parse_escape): Cast for %c format specifier.
8181 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
8184 2002-05-04 Bernd Schmidt <bernds@redhat.com>
8186 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
8187 builtins. Use V2DI patterns instead of TI for logical operations.
8188 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
8189 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
8190 (ix86_expand_builtins): Change the pattern used for movntdq.
8191 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
8192 sse2_nandv2di3): New patterns.
8193 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
8195 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
8196 (cvtdq2pd): Correct mode on operand 1.
8197 (sse2_umulsidi3): Describe without unspec.
8198 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
8200 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
8201 (ashlv2di3): Likewise, from sse2_ashlv2di3.
8202 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
8203 ashlv4si3, ashlv2di3): Use SImode for shift count.
8204 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
8205 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
8207 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
8209 (__m128i, __m128d): New macros.
8210 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
8211 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
8212 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
8213 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
8214 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
8215 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
8216 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
8217 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
8218 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
8219 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
8220 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
8221 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
8222 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
8223 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
8224 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
8225 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
8226 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
8227 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
8228 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
8229 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
8230 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
8231 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
8232 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
8233 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
8234 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
8235 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
8236 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
8237 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
8238 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
8239 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
8240 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
8241 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
8242 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
8243 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
8244 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
8245 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
8246 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
8248 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
8249 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
8251 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
8253 * dwarf2out.c: Fix formatting.
8254 * varasm.c: Likewise.
8256 2002-05-04 David Edelsohn <edelsohn@gnu.org>
8259 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
8260 clobber and use result as temporary value.
8262 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
8264 * expr.c (force_operand): Use expand_simple_* to handle more
8267 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
8269 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
8271 (lex_charconst): Update for change in prototype of
8272 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
8274 * cpphash.h (BITS_PER_CPPCHAR_T): New.
8275 * cppinit.c (cpp_create_reader): Initialize them for no
8276 change in semantics.
8277 (cpp_post_options): Add sanity checks.
8278 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
8279 and truncation issues. Calculate in type cppchar_t.
8280 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
8281 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
8282 run-time dependent precision correctly. Return whether the
8283 result is signed or not.
8284 * cpplib.c (dequote_string): Use cppchar_t; update.
8285 * cpplib.h (cppchar_signed_t): New.
8286 struct cpp_options): New precision members.
8287 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
8288 * cppexp.c (eval_token): Update.
8290 2002-05-03 David S. Miller <davem@redhat.com>
8292 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
8293 * config/sparc/sparc.c (sparc_rtx_costs): New function
8294 implementing RTX_COSTS and CONST_COSTS.
8295 * config/sparc/sparc.h (CONST_COSTS): Delete.
8296 (RTX_COSTS_CASES): Define.
8297 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
8300 * config/sparc/sparc.md (DFA schedulers): Split out...
8301 * config/sparc/cypress.md, config/sparc/hypersparc.md,
8302 config/sparc/sparclet.md, config/sparc/supersparc.md,
8303 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
8305 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
8306 checks on it, always defined for Sparc.
8308 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
8309 Tweak, and add more detailed comments.
8311 2002-05-03 Zack Weinberg <zack@codesourcery.com>
8313 * Re-apply patch accidentally reverted with
8314 DFA scheduler merge: remove all rules and variables to slurp
8315 source files out of libiberty and rebuild them with HOST_CC.
8316 ($(HOST_PREFIX_1)varray.o): New rule.
8317 (genattrtab rule): Word wrap.
8319 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
8321 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
8322 (CPP_SUBTARGET_SPEC): Define.
8323 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
8324 cpp_subtarget specs.
8325 (CPP_SPEC): Redefine to include %(cpp_subtarget).
8327 2002-05-03 David S. Miller <davem@redhat.com>
8329 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
8330 * target.h (struct gcc_target): Delete cycle_display member.
8332 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
8333 (rtx_needs_barrier): Delete reference to cycle_display unspec.
8334 (ia64_sched_reorder2): Mention need for cycle display handling
8335 once such notes exist.
8337 2002-05-03 Richard Henderson <rth@redhat.com>
8339 * real.c (etoasc): Strip most trailing zeros for clarity.
8340 * sched-vis.c: Include real.h.
8341 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
8342 * Makefile.in (sched-vis.o): Add real.h.
8344 2002-05-03 David S. Miller <davem@redhat.com>
8346 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
8349 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
8351 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
8352 when we get an out of range literal.
8353 (altivec_expand_ternop_builtin): Same.
8354 (altivec_expand_unop_builtin): Same.
8355 (altivec_expand_builtin): Same, for dss.
8356 (altivec_expand_builtin): Use trees instead of rtl when
8357 determining literal argument validity.
8359 2002-05-03 David S. Miller <davem@redhat.com>
8361 Delete cycle display scheduling hook.
8362 * config/ia64/ia64.c (ia64_cycle_display,
8363 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
8364 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
8365 and use emit_insn_before instead of ia64_emit_insn_before.
8366 * config/ia64/ia64.md (unspec usage): Delete cycle display.
8367 (cycle_display): Delete insn pattern.
8368 * config/sparc/sparc.md (unspec usage): Delete cycle display.
8369 (cycle_display): Delete insn pattern.
8370 * config/sparc/sparc.c (sparc_cycle_display,
8371 TARGET_SCHED_CYCLE_DISPLAY): Delete.
8372 * doc/md.texi (cycle_display): Don't mention.
8373 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
8375 2002-05-03 Richard Henderson <rth@redhat.com>
8377 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
8378 * recog.h: Declare them.
8380 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
8381 * config/sparc/sparc.md: Use store_data_bypass_p instead.
8382 * config/sparc/sparc-protos.h: Update.
8384 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
8386 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
8387 -D__arch64__. Add -D_LP64.
8388 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
8390 (CPP_ARCH64_SPEC): Likewise.
8391 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
8392 (NO_BUILTIN_SIZE_TYPE): Undef.
8394 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
8396 * genautomata.c (min_issue_delay_pass_states): Change return type
8398 (min_issue_delay_pass_states): Change the algorithm.
8399 (min_issue_delay): Set up min_insn_issue_delay for the state.
8400 (output_min_issue_delay_table): Interchange the nested loops and
8401 and initiate min_insn_issue_delay for states.
8403 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
8405 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
8408 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
8410 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
8413 2002-05-03 Richard Henderson <rth@redhat.com>
8416 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
8417 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
8418 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
8419 code before JUMP, not EARLIEST.
8421 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
8423 * c-format.c (check_format_info_main): Don't check for presence of
8424 parameter for * width until after operand number has been read,
8425 and only check for it if format parameters are available.
8428 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
8430 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
8431 (LINK_SPEC): Undef before defining.
8433 2002-05-03 Jakub Jelinek <jakub@redhat.com>
8435 PR preprocessor/6489
8436 * tradcpp.c (fixup_newlines): New.
8437 (main, finclude): Use it.
8439 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
8441 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
8442 * config/mips/mips.c (mips_unique_section): Strip encoding from
8445 2002-05-03 Jakub Jelinek <jakub@redhat.com>
8447 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
8450 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8452 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
8453 (Specific): Removed buildstats references.
8454 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
8455 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
8456 Accomodate Solaris versions beyond 8.
8457 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
8458 (Specific, *-*-solaris2.8): Removed, obsolete.
8460 2002-05-03 Jakub Jelinek <jakub@redhat.com>
8463 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
8464 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
8465 fill leaf_reg_remap with identity.
8466 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
8468 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
8470 * config/h8300/crti.asm: Remove trailing spaces.
8471 * config/h8300/h8300.c: Likewise.
8472 * config/h8300/lib1funcs.asm: Likewise.
8474 2002-05-02 Jason Merrill <jason@redhat.com>
8476 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
8477 * c-decl.c (c_init_decl_processing): Use it.
8478 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
8479 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
8480 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
8482 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
8484 * regrename.c: Fix formatting.
8487 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
8489 * i386.md (attribute memory): Handle compares properly.
8491 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
8493 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
8496 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
8498 * function.c: Fix formatting.
8500 2002-05-02 Jan Hubicka <jh@suse.cz>
8502 * haifa-sched.c (schedule_insn): Print table of instructions and
8504 (sched_block): Do not print ready list at verbosity level 1.
8505 * sched-vis.c (print_insn): Make global.
8506 * sched-ebb.c (ebb_print_insn): Rename from...
8507 (print_insn): ... this one.
8508 * sched-int.h (print_insn): Declare
8510 2002-05-02 Richard Henderson <rth@redhat.com>
8512 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
8513 emitted by cycle_display.
8515 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
8517 * doc/install.texi (*-*-freebsd*): Update to latest status.
8519 2002-05-02 Jakub Jelinek <jakub@redhat.com>
8522 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
8523 * config/float-sparc.h: Assume 128-bit long double if
8524 __LONG_DOUBLE_128__ is defined.
8526 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
8528 * genattrtab.c (write_function_unit_info): Add a dummy element
8529 when num_units == 0.
8531 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8533 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
8534 TYPE_MODE (double_type_node) instead of DFmode.
8536 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
8538 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
8540 * toplev.c (rest_of_compilation): Revert Richard's patch.
8542 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
8544 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
8546 2002-05-02 Catherine Moore <clm@redhat.com>
8548 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
8550 2002-05-02 Kazu Hirata <kazu@hxi.com>
8552 * combine.c: Fix comment typos.
8554 * genautomata.c: Likewise.
8558 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
8560 * doc/install.texi: State GNAT version requirements.
8562 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
8564 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
8565 of the frame pointer or arg pointer register which strict register
8566 checking is not enabled.
8568 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
8570 * gcc.dg/altivec-8.c: New.
8572 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
8573 PRE_INC and PRE_DEC for altivec modes.
8575 2002-05-01 Bruce Korb <bkorb@gnu.org>
8577 * fixinc/check.tpl(set-writable): make sure the function exists first
8578 * fixinc/inclhack.def(alpha_assert): fix test_text
8579 * fixinc/tests/base/assert.h: add in missing result
8581 2002-05-01 Jeff Law <law@redhat.com>
8583 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
8586 2002-05-01 Joel Brobecker <brobecker@gnat.com>
8588 * dbxout.c (dbxout_type): Emit size information for range types,
8589 as well, but only when using GDB extensions.
8591 2002-05-01 Richard Henderson <rth@redhat.com>
8593 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
8594 target-independent gnu binutils date test.
8596 2002-05-01 Richard Henderson <rth@redhat.com>
8598 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
8599 info before expunging the block.
8601 2002-05-01 Jakub Jelinek <jakub@redhat.com>
8603 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
8604 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
8605 -M -or -MM is in effect.
8607 2002-05-01 Zack Weinberg <zack@codesourcery.com>
8609 * config.gcc: Correct test of --enable-obsolete. Obsolete all
8610 A29k configurations.
8611 * doc/install.texi: Update to match.
8613 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8616 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
8617 for duplicates. Always loop over whole list.
8619 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8621 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
8623 2002-05-01 Joel Sherrill <joel@OARcorp.com>
8625 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
8628 2002-05-01 Joel Sherrill <joel@OARcorp.com>
8630 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
8632 2002-05-01 David Edelsohn <edelsohn@gnu.org>
8634 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
8635 (nabs_nopower): Same.
8636 (floatdisf2): New pattern.
8637 (absdi2): Convert to define_insn_and_split.
8642 (fix_trunctfdi2): Same.
8643 (fix_trunctfsi2): Same.
8645 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
8647 * doc/install.texi: Update Texinfo version requirement
8650 2002-05-01 Jakub Jelinek <jakub@redhat.com>
8652 PR target/6512, PR target/5628
8653 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
8654 when memory is not aligned.
8655 (movdf_insn_v9only_vis): Likewise.
8656 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
8657 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
8658 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
8660 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
8662 * gcc.dg/altivec-7.c: New.
8664 * config/rs6000/altivec.h: Cleanup.
8666 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
8668 * doc/invoke.texi (Option Summary): Add -mvrsave=.
8669 (RS/6000 and PowerPC Options): Document -mvrsave=.
8671 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
8672 (rs6000_altivec_vrsave_string): Same.
8673 (rs6000_override_options): Call rs6000_parse_vrsave_option.
8674 (rs6000_parse_vrsave_option): New.
8675 (rs6000_stack_info): Only generate vrsave instructions when
8676 TARGET_ALTIVEC_VRSAVE.
8678 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
8679 (rs6000_altivec_vrsave_string): Define extern.
8680 (rs6000_altivec_vrsave): Same.
8681 (TARGET_ALTIVEC_VRSAVE): New.
8683 2002-04-30 Richard Henderson <rth@redhat.com>
8686 * toplev.c (rest_of_compilation): Don't run cross-jump before
8689 2002-04-30 Tom Rix <trix@redhat.com>
8691 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
8692 check which_alternative.
8694 2002-04-30 Kazu Hirata <kazu@hxi.com>
8696 * cpplex.c: Fix comment formatting.
8697 * function.c: Likewise.
8698 * integrate.c: Likewise.
8699 * regrename.c: Likewise.
8700 * sibcall.c: Likewise.
8701 * simplify-rtx.c: Likewise.
8702 * tree-inline.c: Likewise.
8704 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
8706 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
8707 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
8708 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
8709 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
8710 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
8711 * pa/x-ada: New file. Define ADA_CFLAGS.
8713 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
8715 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
8716 from MMIX_LAST_REGISTER_FILE_REGNUM.
8717 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
8718 (struct machine_function): New member highest_saved_stack_register
8719 previously static variable in mmix.c.
8720 (MACHINE_DEPENDENT_REORG): Define.
8721 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
8722 (MMIX_OUTPUT_REGNO): New.
8723 (mmix_target_asm_function_prologue): Move calculation of last used
8724 saved-stack-register into...
8725 (mmix_machine_dependent_reorg): New function. Update to also handle
8727 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
8728 register names, simplify somewhat by new variable regno.
8729 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
8731 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
8732 emitting register names.
8733 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
8734 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
8736 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
8739 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
8741 2002-04-30 Richard Henderson <rth@redhat.com>
8743 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
8744 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
8745 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
8746 emit_tfmode_cvt): New.
8747 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
8748 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
8749 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
8750 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
8751 * config/sparc/sparc-protos.h: Update.
8753 2002-04-30 Janis Johnson <janis187@us.ibm.com>
8755 * install.texi (Final install): Add to the list of info to include
8756 in a report of a successful bootstrap, and add link to 3.1 list.
8758 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
8760 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
8761 (mode): Add vector modes
8762 (i387): Kill attribute.
8763 (unit): New attribute.
8764 (length_immediate): Grok new types.
8765 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
8766 (modrm): Use "unit".
8767 (memory): Handle MMX/SSE properly.
8768 (scheduling descriptions): Kill uses of fop1.
8769 (sse, mmx, fp patterns): Set type and mode properly.
8771 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
8773 * pa.c (override_options): Default to PA8000 scheduling.
8774 * doc/invoke.texi (HP-PA options): Mention newly added 7300
8775 scheduling parameter.
8777 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
8778 handling of double precision multiplies.
8780 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
8781 fpdiv and fpsqrt instructions.
8782 (7200 & 7300 scheduling): Fix typo in handling of
8783 store-load and store-store penalties.
8785 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8787 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
8788 mips. Add two missing commas.
8790 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
8792 * doc/contrib.texi (Contributors): Update Paolo Carlini's
8793 and Benjamin Kosnik's entries.
8795 2002-04-29 David S. Miller <davem@redhat.com>
8797 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
8798 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
8799 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
8800 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
8802 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8804 * combine.c (find_split_point): Use gen_int_mode.
8806 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
8808 Merging code from dfa-branch:
8810 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
8812 * genautomata.c (output_reserv_sets): Fix typo.
8814 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
8816 * genautomata.c (output_reserv_sets): Remove
8817 next_cycle_output_flag.
8819 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
8821 * sched-rgn.c (init_ready_list): Make the DFA code handle
8822 USE/CLOBBER insns in the same way as the traditional
8824 (new_ready): Similarly..
8826 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
8828 * haifa-sched.c (schedule_block): Change the DFA state only after
8831 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
8833 * pa.c (hppa_use_dfa_pipeline_interface): New function.
8834 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
8835 (override_options): Add PA7300 scheduling support.
8836 (pa_adjust_cost): Update various comments. Properly
8837 handle anti and output dependencies when using the
8839 (pa_issue_rate): Add PA7300 scheduling support.
8840 (pa_can_combine_p): Call extract_insn before calling
8841 constrain_operands (taken from mainline tree).
8842 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
8843 * pa.md (cpu attr): Add 7300. Rewrite pipeline
8844 descriptions using DFA descriptions. Add PA7300
8847 2002-03-30 David S. Miller <davem@redhat.com>
8849 Add UltraSPARC-III DFA scheduling support.
8850 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
8851 Update FP conditional move on register insn patterns to use it, as
8853 (define_attr cpu): Add ultrasparc3.
8854 (define_attr us3load_type): New, update integer load patterns to
8855 set it, as appropriate.
8856 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
8857 (rest): Add UltraSPARC3 scheduling description.
8858 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
8859 (PROCESSOR_ULTRASPARC3): New.
8860 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
8861 ({ASM,CPP}_CPU_SPEC): Likewise.
8862 (REGISTER_MOVE_COST): Likewise.
8863 (RTX_COSTS): Likewise.
8864 * config/sparc/sparc.c (sparc_override_options,
8865 sparc_initialize_trampoline, sparc64_initialize_trampoline,
8866 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
8867 sparc_issue_rate): Likewise.
8868 * config/sparc/sol2.h: Likewise.
8869 * config/sparc/sol2-sld-64.h: Likewise.
8870 * config/sparc/linux64.h: Likewise.
8872 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
8874 * doc/md.texi: Add comments about usage the latency time for the
8875 different dependencies and about case when two or more conditions
8876 in different define_insn_reservations returns TRUE for an insn.
8878 * doc/md.texi: Add reference for automaton based pipeline
8881 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
8883 * doc/passes.texi: Add missed information about genattrtab.
8885 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
8887 * genautomata.c (output_automata_list_transition_code): Check
8888 automata_list on NULL.
8890 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
8892 * genautomata.c (output_insn_code_cases,
8893 output_automata_list_min_issue_delay_code,
8894 output_automata_list_transition_code,
8895 output_automata_list_state_alts_code): Comment the functions.
8897 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
8899 * genautomata.c (automata_list_el_t): New typedef.
8900 (get_free_automata_list_el,free_automata_list_el,
8901 free_automata_list, automata_list_hash, automata_list_eq_p,
8902 initiate_automata_lists, automata_list_start, automata_list_add,
8903 automata_list_finish, finish_automata_lists,
8904 output_insn_code_cases, output_automata_list_min_issue_delay_code,
8905 output_automata_list_transition_code,
8906 output_automata_list_state_alts_code, add_automaton_state,
8907 form_important_insn_automata_lists): New functions and prototypes.
8908 (insn_reserv_decl): Add members important_automata_list and
8910 (ainsn): Add members important_p.
8911 (automata_list_el): New structure.
8912 (first_free_automata_list_el, current_automata_list,
8913 automata_list_table): New global variables.
8914 (create_ainsns): Initiate member important_p.
8915 (output_internal_min_issue_delay_func): Generate the switch and
8916 call output_insn_code_cases.
8917 (output_internal_trans_func, output_internal_state_alts_func):
8919 (generate): Call initiate_automata_lists.
8920 (automaton_states): New global variable.
8921 (expand_automata): Call form_important_insn_automata_lists.
8922 (write_automata): Call finish_automata_lists.
8924 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
8926 * genautomata.c (add_excls, add_presence_absence): Check that
8927 cpu units in the sets belong the same automaton.
8929 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
8930 about that cpu units in the sets belong the same automaton.
8932 * doc/md.texi: Ditto.
8934 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
8935 Nitin Gupta <niting@noida.hcltech.com>
8937 * config/sh/sh.c (sh_use_dfa_interface): New function.
8939 (sh_issue_rate): New Function.
8940 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
8941 TARGET_SCHED_ISSUE_RATE: define.
8943 * config/sh/sh.md: Add DFA based pipeline description for SH4.
8945 (define_attr insn_class): New attribute used for DFA
8947 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
8948 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
8949 cmpeqdi_t): Likewise.
8951 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
8952 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
8954 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
8956 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
8958 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
8961 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
8963 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
8964 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
8966 (output_dfa_start_func): Initiate new variable insn_codes_length,
8967 (write_automata): Output definition of the new variable.
8969 2001-10-02 David S. Miller <davem@redhat.com>
8971 * haifa-sched.c (advance_one_cycle): New function.
8972 (schedule_block): Use it.
8973 (queue_to_ready): Use it, and also make sure to advance the DFA
8974 state on all stall cycles, not just those where insn_queue links
8977 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
8979 * haifa-sched.c (max_issue): Remove last_p argument. Only return
8980 non-zero if the highest-priority instruction could be scheduled.
8981 (choose_ready): Remove last argument from max_issue call.
8983 2001-09-28 David S. Miller <davem@redhat.com>
8985 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
8986 ultrasparc and 3 for other multi-issue sparcs.
8988 2001-09-27 David S. Miller <davem@redhat.com>
8990 * config/sparc/sparc.md (cycle_display): New pattern.
8991 * config/sparc/sparc.c (sparc_cycle_display): New.
8992 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
8994 2001-09-25 David S. Miller <davem@redhat.com>
8996 Convert all of Sparc scheduling to DFA
8997 * config/sparc/sparc.md: Kill all define_function_unit
8998 directives and replace with DFA equivalent.
8999 * config/sparc/sparc.c (ultrasparc_adjust_cost,
9000 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
9001 ultra_fpmode_conflict_exists, ultra_find_type,
9002 ultra_build_types_avail, ultra_flush_pipeline,
9003 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
9004 ultrasparc_variable_issue, ultrasparc_sched_init,
9005 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
9006 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
9007 ultra_cur_hist, ultra_cycles_elapsed): Kill.
9008 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9009 ultrasparc_store_bypass_p): New.
9010 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
9013 2001-09-24 David S. Miller <davem@redhat.com>
9015 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
9016 ready->vec[foo] not ready[foo].
9018 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
9020 * doc/md.texi: Correct examples for define_insn_reservations
9023 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
9025 * genautomata.c (create_automata): Print message about creation of
9027 (generate): Remove printing meease about creation of
9030 2001-09-05 David S. Miller <davem@redhat.com>
9032 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
9033 * config/sparc/linux64.h: Likewise.
9035 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
9037 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
9038 schedule_block, sched_init, sched_finish): Add missed calls of
9039 use_dfa_pipeline_interface.
9041 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
9044 * sched-vis.c (get_visual_tbl_length): Ditto.
9046 2001-08-27 Richard Henderson <rth@redhat.com>
9048 * genattr.c (main): Emit state_t even when not doing scheduling.
9050 2001-08-27 Richard Henderson <rth@redhat.com>
9052 * genautomata.c (expand_automata): Always create a description.
9054 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
9056 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
9057 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
9058 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
9061 * genattr.c (main): New variable num_insn_reservations. Increase
9062 it if there is DEFINE_INSN_RESERVATION. Output automaton based
9063 pipeline hazard recognizer interface.
9065 * genattrtab.h: New file.
9067 * genattrtab.c: Include genattrtab.h.
9068 (attr_printf, check_attr_test, make_internal_attr,
9069 make_numeric_value): Move protypes into genattrtab.h. Define them
9071 (num_dfa_decls): New global variable.
9072 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
9073 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
9074 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
9075 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
9077 * genautomata.c: New file.
9079 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
9081 * sched-int.h: (curr_state): Add the external definition for
9082 automaton pipeline interface.
9083 (haifa_insn_data): Add comments for members blockage and units.
9085 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9086 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9087 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9088 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9089 TARGET_SCHED_DFA_POST_CYCLE_INSN,
9090 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9091 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
9093 (TARGET_SCHED): Use the new macros.
9095 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
9096 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
9097 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
9098 dfa_bubble): New members in gcc_target.sched.
9100 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
9101 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
9102 (insn_queue): Redefine it as pointer to array.
9103 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
9105 (max_insn_queue_index_macro_value): New variable.
9106 (curr_state, dfa_state_size, ready_try): New varaibles for
9107 automaton interface.
9108 (ready_element, ready_remove, max_issue): New function prototypes
9109 for automaton interface.
9110 (choose_ready): New function prototype.
9111 (insn_unit, blockage_range): Add comments.
9112 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
9113 FUNCTION_UNITS_SIZE == 0.
9114 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
9115 actual_hazard, potential_hazard): Add comments.
9116 (insn_cost): Use cost -1 as undefined value. Remove
9117 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
9119 (ready_element, ready_remove): New functions for automaton
9121 (schedule_insn): Add new code for automaton pipeline interface.
9122 (queue_to_ready): Add new code for automaton pipeline interface.
9123 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
9124 (debug_ready_list): Print newline when the queue is empty.
9125 (max_issue): New function for automaton pipeline interface.
9126 (choose_ready): New function.
9127 (schedule_block): Add new code for automaton pipeline interface.
9128 Print ready list before scheduling each insn.
9129 (sched_init): Add new code for automaton pipeline interface.
9130 Initiate insn cost by -1.
9131 (sched_finish): Free the current automaton state and finalize
9132 automaton pipeline interface.
9134 * sched-rgn.c: Include target.h.
9135 (init_ready_list, new_ready, debug_dependencies): Add new code for
9136 automaton pipeline interface.
9138 * sched-vis.c: Include target.h.
9139 (get_visual_tbl_length): Add code for automaton interface.
9140 (target_units, print_block_visualization): Add comments.
9142 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
9143 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
9144 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
9145 (getruntime.o, genautomata.o): New entries.
9146 (genattrtab.o): Add new dependency file genattrtab.h.
9147 (genattrtab): Add new dependencies. Link it with `libm.a'.
9148 (getruntime.o, hashtab.o): New entries for canadian cross.
9150 * doc/md.texi: Description of automaton based model.
9152 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
9154 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9155 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9156 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9157 TARGET_SCHED_DFA_POST_CYCLE_INSN,
9158 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9159 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9160 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
9162 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
9163 MAX_DFA_ISSUE_RATE): New macro descriptions.
9165 * doc/contrib.texi: Add dfa based scheduler contribution.
9167 * doc/gcc.texi: Add more information about genattrtab.
9169 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9171 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
9172 adjust_address_nv call.
9174 2002-04-29 Janis Johnson <janis187@us.ibm.com>
9176 * doc/install.texi (Testing): Provide additional information, and
9177 a stronger encouragement, for running the testsuites.
9179 2002-04-29 DJ Delorie <dj@redhat.com>
9181 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
9182 given in upper case.
9184 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9186 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
9187 Solaris 2 <widec.h> if missing.
9188 * fixinc/fixincl.x: Regenerate.
9189 * fixinc/tests/base/widec.h: New file.
9191 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
9193 * toplev.c (f_options): Add "profile" switch so that
9194 -fno-profile can be used to disable -p.
9196 2002-04-29 Bernd Schmidt <bernds@redhat.com>
9198 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
9200 * tree.c (build_common_tree_nodes_2): Likewise.
9201 * tree.h (enum tree_index): Likewise.
9202 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
9204 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
9206 (init_mmx_sse_builtins): Initialize SSE2 builtins.
9207 (ix86_expand_builtin): Add support for SSE2 builtins.
9208 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
9209 (VALID_SSE_REG_MODE): Use it.
9210 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
9211 (enum ix86_builtins): Add SSE2 builtins.
9212 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
9213 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
9214 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
9215 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
9216 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
9217 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
9218 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
9219 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
9220 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
9221 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
9222 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
9223 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
9224 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
9225 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
9226 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
9227 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
9228 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
9229 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
9230 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
9231 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
9232 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
9233 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
9234 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
9235 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
9236 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
9237 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
9238 lfence_insn): New patterns.
9239 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
9240 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
9242 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
9244 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
9246 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9248 * doc/contrib.texi (Contributors): Add Paolo Carlini and
9250 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
9251 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
9252 and CPU instead of cpu.
9254 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
9256 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
9258 (lang_independent_options): Add -fif-conversion, -fif-conversion2
9259 (rest_of_compilation): Do if conversion only when asked for.
9260 (parse_options_and_default_flags): Set new variables to 1 for -O1
9261 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
9263 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
9265 * i386.c (dbx64_register_map): Fix typo.
9267 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
9269 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
9270 real_one_half, real_bb_freq_max): New static variables.
9271 (debug_profile_bbauxs): Kill.
9272 (process_note_predictions): Kill unused variable.
9273 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
9275 (propagate_freq): Use REAL_ARITHMETICS.
9276 (estimate_bb_frequencies): Likevise; init new static variables.
9277 * Makefile.in (predict.o): Add dependency on real.h
9279 2002-04-28 David S. Miller <davem@redhat.com>
9282 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
9283 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
9284 several {reads,writes} instead.
9285 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
9288 2002-04-27 David S. Miller <davem@redhat.com>
9291 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
9294 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
9295 including signal.h and sys/ucontext.h, not needed.
9297 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
9299 * varasm.c (output_constant_def): Correct test for not calling
9300 ENCODE_SECTION_INFO for INTEGER_CST.
9302 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
9304 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
9305 keep most cases as function eval_token.
9306 (eval_token): New function.
9307 (_cpp_parse_expr): Read token here for improved diagnostics.
9308 Don't use op_as_text. Detect bad ':' here.
9309 (reduce): Don't detect bad ':' here.
9310 (op_as_text): Remove.
9311 * cpphash.h (_cpp_test_assertion): Change prototype.
9312 * cpplib.c (_cpp_test_assertion): Change prototype.
9314 2002-04-28 Richard Henderson <rth@redhat.com>
9317 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
9318 (ggc_mark_rtx_children): New.
9320 2002-04-28 Jakub Jelinek <jakub@redhat.com>
9323 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
9324 after call peepholes for UltraSPARC.
9325 (call + jump 64-bit peepholes): Remove.
9327 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9330 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
9331 result as temporary value.
9333 2002-04-28 Jakub Jelinek <jakub@redhat.com>
9336 * toplev.c (rest_of_compilation): Only run regrename and copy
9337 propagation if optimizing.
9339 2002-04-28 Jakub Jelinek <jakub@redhat.com>
9341 PR optimization/6475
9342 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
9343 register of REGNO_DECL (i).
9344 * Makefile.in (reload1.o): Add $(TREE_H).
9346 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
9348 * cppexp.c (lex): Update to use state.skip_eval.
9349 (struct op): Remove prio and flags members.
9350 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
9351 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
9352 (LEFT_ASSOC): New macro.
9353 (optab): New table of operator priorities and flags.
9355 (_cpp_parse_expr): Clean up logic. Return bool. Use a
9356 malloc-ed parser stack.
9357 (reduce): New; reduce the operator stack.
9358 (_cpp_expand_op_stack): Expand the operator stack as necessary.
9359 * cpphash.h (struct op): Predeclare.
9360 (struct cpp_reader): New members op_stack, op_limit.
9361 (struct lexer_state): New member skip_eval.
9362 (_cpp_parse_expr): Update.
9363 (_cpp_expand_op_stack): New.
9364 * cpplib.c (do_if): Update.
9365 * cppinit.c (cpp_create_reader): Create op stack.
9366 (cpp_destroy): And destroy it.
9367 * cpplib.h (CPP_LAST_CPP_OP): Correct.
9368 (TTYPE_TABLE): Correct.
9370 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9373 * c-decl.c (duplicate_decls): Call merge_weak.
9374 * c-pragma.c (apply_pragma_weak): Warn about misuse.
9375 * output.h (merge_weak): Prototype merge_weak.
9376 * varasm.c (merge_weak): New function.
9377 (declare_weak): Make sure we don't give an error on VAR_DECLs.
9378 Mark RTL with SYMBOL_REF_WEAK.
9380 2002-04-27 Kurt Garloff <garloff@suse.de>
9382 * tree-inline.c (inlinable_function_p): Improve heuristics
9383 by using a smoother function to cut down allowable inlinable size.
9384 * param.def: Add parameters max-inline-insns-single,
9385 max-inline-slope, min-inline-insns that determine the exact
9386 shape of the above function.
9387 * param.h: Likewise.
9389 2002-04-26 Richard Henderson <rth@redhat.com>
9391 * c-parse.in (malloced_yyss, malloced_yyvs): New.
9392 (yyoverflow): Re-add. Set them.
9393 (free_parser_stacks): New.
9394 * c-common.h: Declare it.
9395 * c-lex.c (c_common_parse_file): Call it.
9397 2002-04-26 Richard Henderson <rth@redhat.com>
9399 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
9400 for fallthru search.
9402 2002-04-26 Eric Christopher <echristo@redhat.com>
9404 PR optimization/3700
9405 * config/mips/mips.c (mips_issue_rate): Define. New function.
9406 (TARGET_SCHED_ISSUE_RATE): Use.
9408 2002-04-25 David S. Miller <davem@redhat.com>
9411 * reorg.c (optimize_skip): Do not allow exception causing
9412 instructions to be considered for delay slots.
9413 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
9414 (relax_delay_slots): Do not try to consider exception causing
9415 instructions as redundant.
9417 2002-04-26 Richard Henderson <rth@redhat.com>
9420 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
9422 2002-04-26 Mark Mitchell <mark@codesourcery.com>
9425 * config/i386/i386.md (untyped_call): Return the value in a float
9426 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
9429 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
9431 * tree.c (tree_int_cst_lt): Compare constants whose types differ
9432 in unsigned-ness correctly.
9434 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
9436 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
9437 portable runtime model.
9439 2002-04-26 Richard Henderson <rth@redhat.com>
9441 * c-parse.in (yyoverflow): Revert.
9443 2002-04-26 David Edelsohn <edelsohn@gnu.org>
9444 Richard Henderson <rth@redhat.com>
9446 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
9447 result as temporary value.
9449 2002-04-26 Richard Henderson <rth@redhat.com>
9452 * c-common.c (fix_string_type): Split out of ...
9453 (combine_strings): ... here. Take a varray, not a tree list.
9454 (c_expand_builtin_printf): Use fix_string_type.
9455 * c-common.h: Update decls.
9456 * c-parse.in (string): Remove. Update all uses to use STRING
9457 instead, and not call combine_strings.
9460 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
9461 (build_asm_stmt): Likewise.
9462 * objc/objc-act.c (my_build_string): Use fix_string_type.
9463 (build_objc_string_object): Build varray for combine_strings.
9465 2002-04-26 Bo Thorsen <bo@suse.co.uk>
9467 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
9470 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
9472 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
9473 (HAVE_NO_R_OPERAND): Remove.
9474 (HAVE_VALUE): Remove.
9475 (op_to_prio): Update.
9476 (UNARY): Don't alter flags.
9477 (_cpp_parse_expr): want_value used to indicate whether
9478 a number or unary operator is expected next. Distinguish
9479 unary and binary +/-.
9480 (op_as_text): Update for unary operators.
9482 2002-04-25 Richard Henderson <rth@redhat.com>
9485 * c-parse.in (yyoverflow): New.
9487 2002-04-25 Richard Henderson <rth@redhat.com>
9490 * c-common.c (shorten_compare): Simplfy conditions leading to
9491 the generation of a warning.
9493 2002-04-25 Richard Henderson <rth@redhat.com>
9496 * expmed.c (extract_bit_field): Fall through to generic code rather
9497 than aborting on subreg special case.
9499 2002-04-25 David S. Miller <davem@redhat.com>
9501 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
9502 for DECL being NULL.
9504 2002-04-25 Steve Christiansen <smc@us.ibm.com>
9506 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
9508 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
9510 * c-decl.c (grokdeclarator): Remove outdated ??? note
9511 on invalid declaration of flexible array members.
9513 2002-04-25 Richard Henderson <rth@redhat.com>
9515 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
9517 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
9519 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
9520 needed by the compiler, even if they are used as global regs.
9522 2002-04-25 Matt Hiller <hiller@redhat.com>
9524 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
9526 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
9527 of the corresponding functions.
9528 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
9531 2002-04-25 Matt Hiller <hiller@redhat.com>
9533 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
9535 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
9536 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
9537 registers, adjust comment accordingly.
9538 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
9539 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
9540 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
9541 for coprocessor registers.
9542 (ADDITIONAL_REGISTER_NAMES): Include
9543 ALL_COP_ADDITIONAL_REGISTER_NAMES.
9545 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
9546 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
9547 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
9548 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
9549 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
9551 (mips_char_to_class): Adjust comment to include coprocessor
9554 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
9556 (mips_reg_names, mips_regno_to_class): Include coprocessor
9558 (mips_sw_reg_names): Ditto, make non-static.
9559 (mips_move_1word): Handle moves to and from coprocessor registers.
9560 (mips_move_2words): Handle moves to and from coprocessor
9562 (mips_class_max_nregs, mips_register_move_cost): Handle
9563 coprocessor register classes.
9564 (override_options): Initialize mips_char_to_class and
9565 mips_hard_regno_mode_ok properly for coprocessor registers.
9567 * config/mips/mips.md (movdi_internal, movdi_internal2,
9568 movsi_internal1, movsi_internal2): Add constraint-sets for
9569 coprocessor registers.
9570 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
9571 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
9573 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
9574 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
9576 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
9577 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
9579 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
9580 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
9583 * doc/tm.texi: Document feature.
9585 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
9587 * integrate.c (function_attribute_inlinable_p): Simplify.
9588 Check the table pointer is not NULL.
9590 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
9592 * doc/c-tree.texi: Fix typo in introduction.
9594 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
9596 * c-common.h (c_common_parse_file): Update.
9597 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
9598 * c-lex.c (YYDEBUG): Get from c-lex.h.
9599 (c_common_parse_file): Update.
9600 * c-lex.h (YYDEBUG, yydebug): New.
9601 * c-parse.in (YYDEBUG): Get from c-lex.h.
9602 (c_set_yydebug): Remove.
9603 * c-tree.h (c_set_yydebug): Remove.
9604 * langhooks-def.h (lhd_do_nothing_i): New.
9605 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
9606 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
9607 * langhooks.c (lhd_do_nothing_i): New.
9608 (lhd_set_yydebug): Remove.
9609 * langhooks.h (struct lang_hooks): Update.
9610 * toplev.c (set_yydebug): New.
9611 (compile_file): Update call to parse_file hook.
9612 (decode_d_option): Update.
9614 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
9616 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
9618 * loop.c (load_mems): Don't change the interface of called functions.
9620 * calls.c (expand_call): Take current_function_pretend_args_size
9621 into account when setting argblock for sibcalls.
9623 2002-04-24 Matt Hiller <hiller@redhat.com>
9625 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
9628 * cpplex.c (skip_line_comment): Process comment one multibyte
9629 character at a time rather than one char at a time, if
9631 (parse_string): Process string one multibyte character at a time
9632 rather than one char at a time, if appropriate.
9633 * c-lex.c (lex_string): Lex and copy multibyte strings
9635 * cpplib.h (cppchar_t): Change to unsigned.
9637 2002-04-24 Richard Henderson <rth@redhat.com>
9640 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
9643 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
9645 * sh.c (sh_va_arg): If argument was passed by reference,
9646 dereference the pointer.
9648 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9650 * sh.md (divsi3_i4_media): Use match_operand for input values
9651 rather than hard registers.
9652 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
9653 unnecessarily through hard registers. Keep copies of pseudo
9654 registers outside of the libcall sequence.
9656 * sh.md (casesi_shift_media): Add modes.
9658 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
9661 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
9663 * attribs.c (c_common_attribute_table): Move table and handlers
9665 (format_attribute_table, lang_attribute_table,
9666 lang_attribute_common): Remove.
9667 (init_attributes): Replace NULL pointers with pointers to the
9669 (handle_packed_attribute, handle_nocommon_attribute,
9670 handle_common_attribute, handle_noreturn_attribute,
9671 handle_noinline_attribute, handle_always_inline_attribute,
9672 handle_used_attribute, handle_unused_attribute,
9673 handle_const_attribute, handle_transparent_union_attribute,
9674 handle_constructor_attribute, handle_destructor_attribute,
9675 handle_mode_attribute, handle_section_attribute,
9676 handle_aligned_attribute, handle_weak_attribute,
9677 handle_alias_attribute, handle_visibility_attribute,
9678 handle_no_instrument_function_attribute, handle_malloc_attribute,
9679 handle_no_limit_stack_attribute, handle_pure_attribute,
9680 handle_deprecated_attribute, handle_vector_size_attribute,
9681 vector_size_helper): Move to c-common.c.
9682 * c-common.c (c_common_attribute_table,
9683 handle_packed_attribute, handle_nocommon_attribute,
9684 handle_common_attribute, handle_noreturn_attribute,
9685 handle_noinline_attribute, handle_always_inline_attribute,
9686 handle_used_attribute, handle_unused_attribute,
9687 handle_const_attribute, handle_transparent_union_attribute,
9688 handle_constructor_attribute, handle_destructor_attribute,
9689 handle_mode_attribute, handle_section_attribute,
9690 handle_aligned_attribute, handle_weak_attribute,
9691 handle_alias_attribute, handle_visibility_attribute,
9692 handle_no_instrument_function_attribute, handle_malloc_attribute,
9693 handle_no_limit_stack_attribute, handle_pure_attribute,
9694 handle_deprecated_attribute, handle_vector_size_attribute,
9695 vector_size_helper): Move from attribs.c.
9696 * c-common.h (c_common_attribute_table,
9697 c_common_format_attribute_table): New.
9698 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
9699 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
9700 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
9701 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
9702 (LANG_HOOKS_INITIALIZER): Update.
9703 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
9704 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
9705 * target.h: Update comment.
9706 * tree.c (default_target_attribute_table): Remove.
9707 * tree.h (default_target_attribute_table, format_attribute_table,
9708 lang_attribute_table, lang_attribute_common): Remove.
9710 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
9711 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
9713 2002-04-24 Jason Merrill <jason@redhat.com>
9715 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
9716 * dwarf2out.c (dwarf_attr_name): Support it.
9717 (gen_array_type_die): Emit it.
9718 (lookup_type_die): No special handling for VECTOR_TYPE.
9719 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
9721 2002-04-24 Richard Henderson <rth@redhat.com>
9723 * config/mips/mips.md (movdi_usd): Renumber.
9725 2002-04-24 David S. Miller <davem@redhat.com>
9728 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
9729 32-bit Sparc and current_function_returns_struct is true.
9731 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
9733 * loop.c (canonicalize_condition): Use gen_int_mode.
9735 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
9737 * config/rs6000/altivec.h: Cleanup file. Add non individual
9759 (vec_vcmpequb): New.
9760 (vec_vcmpequh): New.
9761 (vec_vcmpequw): New.
9762 (vec_vcmpeqfp): New.
9763 (vec_vcmpgefp): New.
9764 (vec_vcmpgtub): New.
9765 (vec_vcmpgtsb): New.
9766 (vec_vcmpgtuh): New.
9767 (vec_vcmpgtsh): New.
9768 (vec_vcmpgtuw): New.
9769 (vec_vcmpgtsw): New.
9770 (vec_vcmpgtfp): New.
9771 (vec_vcmpgefp): New.
9776 (vec_vexptefp): New.
9781 (vec_lde): Add vector float variant.
9786 (vec_vmhaddshs): New.
9808 (vec_vmladduhm): New.
9809 (vec_vmhraddshs): New.
9811 (vec_vmsummbm): New.
9812 (vec_vmsumuhm): New.
9813 (vec_vmsumshm): New.
9814 (vec_vmsumuhs): New.
9815 (vec_vmsumshs): New.
9824 (vec_vnmsubfp): New.
9842 (vec_vrsqrtefp): New.
9853 (vec_vspltisb): New.
9854 (vec_vspltish): New.
9855 (vec_vspltisw): New.
9880 (vec_vsum4ubs): New.
9881 (vec_vsum4sbs): New.
9882 (vec_vsum4shs): New.
9883 (vec_vsum2sws): New.
9894 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
9897 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
9898 added literals from substracted literals.
9899 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
9900 (fold) [associate]: Preserve MINUS_EXPR if needed.
9902 2002-04-23 Zack Weinberg <zack@codesourcery.com>
9904 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
9907 2002-04-23 Tom Tromey <tromey@redhat.com>
9909 * gcc.c: Added --resource. For PR java/6314.
9911 2002-04-23 David O'Brien <obrien@FreeBSD.org>
9913 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
9914 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
9917 2002-04-23 David O'Brien <obrien@FreeBSD.org>
9919 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
9921 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
9923 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
9925 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
9926 (ix86_expand_clrstr): Fix typo.
9927 * loop.c (gen_load_of_final_value): New.
9928 (loop_givs_rescan, strength_reduce, check_dbra_loop):
9931 2002-04-23 Roger Sayle <roger@eyesopen.com>
9933 * builtins.c (builtin_memset_gen_str): New function.
9934 (expand_builtin_memset): Optimize the case of constant length, but
9937 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
9939 * config/rs6000/altivec.h (vec_step): Remove extraneous
9941 (vec_ctu): Cast return.
9943 2002-04-23 Alan Modra <amodra@bigpond.net.au>
9946 * function.h: (struct function): Add profile_label_no field.
9947 (current_function_profile_label_no): Define.
9948 * function.c: (profile_label_no): New static var.
9949 (expand_function_start): Increment it, and copy to
9950 current_function_profile_label_no.
9951 * output.h (profile_label_no): Delete.
9952 * final.c (profile_label_no): Delete.
9953 (profile_function): Use current_function_profile_label_no.
9954 (final_end_function): Don't increment profile_label_no here.
9955 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
9956 profile_label_no with current_function_profile_label_no.
9957 * config/pa/pa.c (current_function_number): Delete.
9958 (pa_output_function_prologue): Don't output profile label here.
9959 (hppa_profile_hook): Use label_no param rather than
9960 current_function_number.
9961 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
9962 * config/pa/pa.h: .. here.
9963 (FUNCTION_PROFILER): Output profile label here.
9965 2002-04-22 Eric Christopher <echristo@redhat.com>
9967 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
9968 patch of 2002-04-09 due to binutils issues.
9969 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
9971 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
9973 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
9974 constraint to 'o' for m=r and r=m alternatives.
9975 ("*movv8hi_internal1"): Same.
9976 ("*movv16qi_internal1"): Same.
9977 ("*movv4sf_internal1"): Same.
9979 2002-04-22 Janis Johnson <janis187@us.ibm.com>
9981 * rtl.h (RTX_FLAG): New macro.
9982 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
9983 * final.c (alter_subreg): Use macro to access rtx flag.
9984 * integrate.c (copy_rtx_and_substitute): Use new access macro.
9985 * print-rtl.c (print_rtx): Use new access macro.
9987 * cse.c (insert): Check rtx code before accessing flag.
9989 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
9990 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
9991 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
9992 convert_const_symbol_ref, make_canonical, make_alternative_compare,
9993 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
9994 simplify_test_exp, optimize_attrs, simplify_by_exploding,
9995 find_and_mark_used_attributes, unmark_used_attributes,
9996 add_values_to_cover, simplify_with_current_value,
9997 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
9998 copy_rtx_unchanging, main): Use new access macros.
10000 2002-04-22 Tom Rix <trix@redhat.com>
10002 * expmed.c (init_expmed): Generate shifted constant once.
10004 2002-04-22 Zack Weinberg <zack@codesourcery.com>
10006 * c-lex.c (lex_charconst): Call convert to get constant in
10007 proper type; don't just smash the type field.
10010 * config.gcc: Add list of obsolete configurations. Disallow
10011 building these without --enable-obsolete.
10012 * doc/install.texi: Document --enable-obsolete and obsoletion
10013 policy. Mention obsoletion of individual targets in
10014 appropriate places.
10016 2002-04-22 Richard Henderson <rth@redhat.com>
10018 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
10020 2002-04-22 Mark Mitchell <mark@codesourcery.com>
10023 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
10024 (walk_fixup_memory_subreg): Likewise.
10025 (fixup_var_refs_insn): Adjust accordingly.
10026 (fixup_var_refs_1): Likewise.
10028 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
10030 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
10031 LIBPATH_ARCH64_SPEC): Define.
10032 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
10033 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
10034 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
10035 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
10037 2002-04-22 Joel Sherrill <joel@OARcorp.com>
10039 * gthr-rtems.h: Correct prototypes to remove warnings.
10041 2002-04-22 Richard Henderson <rth@redhat.com>
10044 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
10046 * gcse.c (free_insn_expr_list_list): New.
10047 (clear_modify_mem_tables): Use it. Fix bit set usage.
10048 (canon_list_insert): Use EXPR_LISTs for expressions.
10049 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
10051 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
10053 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
10054 file change and include code to _cpp_pop_buffer.
10055 * cpphash.h (struct pending_option): Predeclare.
10056 (struct cpp_reader): New member next_include_file.
10057 (_cpp_pop_file_buffer): Update.
10058 (_cpp_push_next_buffer): Update, rename.
10059 * cppinit.c (cpp_destroy): Free include chain and pending here.
10060 (cpp_finish_options): Simplify.
10061 (_cpp_push_next_buffer): Rename and clean up.
10062 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
10064 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
10066 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
10068 * config/rs6000/altivec.h (vec_xor): Add variant for both args
10069 being vector signed int.
10071 (vec_xor): Add variant for both args being vector signed char.
10072 Remove redundant variant.
10075 2002-04-21 David S. Miller <davem@redhat.com>
10077 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
10078 compare mode in output RTL.
10080 2002-04-22 David Edelsohn <edelsohn@gnu.org>
10082 * config/rs6000/rs6000.c (rs6000_override_options): Correct
10083 style and formatting of previous patch.
10085 2002-04-22 Alan Modra <amodra@bigpond.net.au>
10087 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
10088 flag_pic for ABI_AIX.
10090 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
10092 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
10093 * cppfiles.c (read_include_file): Similarly.
10094 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
10095 uxstrdup ustrchr, ufputs): Similarly.
10096 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
10097 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
10098 cpp_ideq, parse_identifier, parse_number): Similarly.
10099 * cpplib.c (struct directive, dequote_string, D, run_directive,
10100 cpp_push_buffer): Similarly.
10101 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
10102 _cpp_create_definition, check_trad_stringification,
10103 cpp_macro_definition): Similarly.
10105 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
10107 * cppmacro.c (funlike_invocation_p): Don't step back
10110 2002-04-21 David Edelsohn <edelsohn@gnu.org>
10112 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
10115 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
10117 * doc/invoke.texi: Remove Chill references.
10118 * doc/gcc.texi: Update last modified date.
10120 2002-04-20 Kazu Hirata <kazu@hxi.com>
10122 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
10123 push and pop. Replace add.l with add.w.
10125 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
10127 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
10128 multiply instructions for H8/300H case.
10130 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
10132 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
10133 Bum three instructions from each routine.
10135 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
10137 * Makefile.in: Update.
10138 * decl.c (push_c_function_context, pop_c_function_context,
10139 mark_c_function_context): Rename for consistency.
10140 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
10141 * c-tree.h (push_c_function_context, pop_c_function_context,
10142 mark_c_function_context): Rename for consistency.
10143 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10144 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10145 * function.c (init_lang_status, save_lang_status,
10146 restore_lang_status, mark_lang_status, free_lang_status):
10147 Move to langhooks.h.
10148 (push_function_context_to, pop_function_context_from,
10149 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
10151 * function.h (init_lang_status, save_lang_status,
10152 restore_lang_status, mark_lang_status, free_lang_status):
10153 Move to langhooks.h.
10154 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
10155 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
10156 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
10157 LANG_HOOKS_FUNCTION_INITIALIZER): New.
10158 (LANG_HOOKS_INITIALIZER): Update.
10159 (lhd_do_nothing_f): New.
10160 * langhooks.h (struct lang_hooks_for_functions): New.
10161 (struct lang_hooks): New hooks.
10162 * langhooks.c (lhd_do_nothing_f): New.
10164 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10165 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10167 2002-04-19 David S. Miller <davem@redhat.com>
10169 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
10170 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
10172 2002-04-19 Jakub Jelinek <jakub@redhat.com>
10174 PR optimization/3756
10175 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
10176 x = ((int) y < 0) ? cst1 : cst2.
10178 2002-04-19 Jakub Jelinek <jakub@redhat.com>
10181 * function.c: Reapply patch for c/6358.
10182 (expand_function_end): Copy decl_rtl's mode, not
10183 current_function_return_rtx mode.
10185 2002-04-19 Joel Sherrill <joel@OARcorp.com>
10187 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
10190 2002-04-19 Tom Tromey <tromey@redhat.com>
10192 * doc/install.texi (Specific): Update status of Solaris 2.8.
10193 For PR libgcj/6158.
10195 2002-04-19 Andreas Schwab <schwab@suse.de>
10197 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
10198 (PUT_REAL): Restore old definition.
10200 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
10201 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10203 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
10204 binutils 2.11.2 and higher generate smaller binaries than Sun's
10207 2002-04-19 Mark Mitchell <mark@codesourcery.com>
10210 * toplev.c (rest_of_compilation): Do not defer functions for which
10211 TREE_SYMBOL_REFERENCED has already been set.
10213 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
10215 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
10218 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
10220 * builtins.c: Include langhooks.h.
10221 (lang_type_promotes_to): Remove.
10222 (expand_builtin_va_arg): Use new hook.
10223 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
10224 (simple_type_promotes_to): Move to c-typeck.c.
10225 * c-common.h (simple_type_promotes_to): Remove.
10226 * c-decl.c (duplicate_decls, grokdeclarator): Update.
10227 * c-format.c: Include langhooks.h.
10228 (check_format_types): Update.
10229 * c-tree.h (c_type_promotes_to): New.
10230 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
10231 (type_lists_compatible_p): Update.
10232 * langhooks-def.h (lhd_type_promotes_to): New.
10233 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
10234 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10235 * langhooks.c (lhd_type_promotes_to): New.
10236 * langhooks.h (struct lang_hooks_for_types): New hook.
10237 * tree.h (lang_type_promotes_to): Remove.
10239 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
10241 2002-04-18 Richard Henderson <rth@redhat.com>
10243 * function.c: Revert patch for c/6358.
10245 2002-04-18 Richard Henderson <rth@redhat.com>
10247 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
10248 blocks. Handle multiple references to the TRAP block. Handle
10249 non-adjacent THEN and OTHER blocks.
10251 2002-04-18 Richard Henderson <rth@redhat.com>
10253 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
10254 crash with no type for by-mode libcalls.
10256 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
10258 2002-04-18 Bob Wilson <bob.wilson@acm.org>
10260 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
10261 __xtensa_nonlocal_goto): Use a syscall instructions to flush
10262 the register windows.
10264 2002-04-18 Zack Weinberg <zack@codesourcery.com>
10266 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
10267 appropriate. Document need for extended precision even when
10268 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
10269 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
10270 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
10271 instead of relying on later syntax error when REAL_WIDTH > 5.
10272 * real.c: Define NE based only on whether or not we have a
10273 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
10274 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
10275 define GET_REAL and PUT_REAL as simple memcpy operations; no
10276 need to byteswap or round.
10277 Use #error instead of #ifdef-ing out the entire file, for
10278 prompt error detection.
10280 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
10282 2002-04-18 David S. Miller <davem@redhat.com>
10284 * config/sparc/sparc.h (BRANCH_COST): Define.
10286 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
10289 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
10291 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
10292 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
10293 propagate_block calls after relaxation loop using new variable
10294 stabilized_prop_flags.
10296 2002-04-18 Richard Henderson <rth@redhat.com>
10298 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
10299 (ia64_va_arg): Expect variable sized types by reference.
10300 * config/ia64/ia64-protos.h: Update.
10301 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
10302 ia64_function_arg_pass_by_reference.
10304 2002-04-18 Richard Henderson <rth@redhat.com>
10306 * ifcvt.c: Include except.h.
10307 (block_has_only_trap): Break out from find_cond_trap.
10308 (find_cond_trap): Use it. Always delete the trap block.
10309 (merge_if_block): Allow then block null. Be less simplistic about
10310 what insns can end a block.
10311 * Makefile.in (ifcvt.o): Depend on except.h.
10313 * config/ia64/ia64.md (trap, conditional_trap): New.
10315 2002-04-18 Jakub Jelinek <jakub@redhat.com>
10318 * function.c (assign_parms): Assign hard current_function_return_rtx
10320 (expand_function_end): ...not here.
10322 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
10324 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10325 * c-tree.h (c_incomplete_type_error): New.
10326 * c-typeck.c (require_complete_type, build_component_ref): Update.
10327 (incomplete_type_error): Rename.
10328 * langhooks-def.h (lhd_incomplete_type_error): New.
10329 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
10330 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10331 * langhooks.c (lhd_incomplete_type_error): New.
10332 * langhooks.h (struct lang_hooks_for_types): New hook.
10333 * tree.c (size_in_bytes): Use new hook.
10334 * tree.h (incomplete_type_error): Remove.
10336 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10338 2002-04-18 Zack Weinberg <zack@codesourcery.com>
10340 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
10341 TARGET_FLOAT_FORMAT blocks.
10343 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10345 * doc/install.texi (Downloading the source): Do not mention Chill
10346 any longer, but mention Ada.
10347 (Configuration): Do not mention Chill any longer.
10349 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
10351 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
10353 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
10355 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
10358 2002-04-18 Jakub Jelinek <jakub@redhat.com>
10360 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
10361 instead of unsigned_type.
10363 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
10365 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
10366 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
10369 2002-04-18 Bernd Schmidt <bernds@redhat.com>
10371 * attribs.c (vector_type_node_list): New static variable.
10372 (handle_vector_size_attribute): Use it to avoid generating a
10373 new type node each time we are called.
10375 * combine.c (subst): Avoid trying to make a vector mode subreg of
10376 an integer constant.
10377 (gen_lowpart_for_combine): Likewise.
10379 2002-04-18 Roger Sayle <roger@eyesopen.com>
10380 Jakub Jelinek <jakub@redhat.com>
10382 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
10383 for integer constant c (if x has unsigned type or sign bit is not
10384 set in c). This folds the zero/sign extension into the bit-wise and
10387 2002-04-18 Jakub Jelinek <jakub@redhat.com>
10390 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
10393 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
10395 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
10397 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
10399 * gcc.c (read_specs): Detect and fail if an attempt is made to
10400 rename a spec string to an already existing string.
10402 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
10404 * config/s390/s390.c (legitimize_pic_address): Do not generate
10405 illegal address constant without CONST.
10407 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10409 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
10410 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10412 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
10414 PR optimization/6305
10415 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
10416 to make sure previous reloads are taken into account. Generate
10417 better code if one operand is an in-range immediate constant.
10419 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
10421 * doc/install.texi (Building): libgcj requires GNU make.
10423 2002-04-17 Jakub Jelinek <jakub@redhat.com>
10426 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
10427 even if hard quad and register is not floating.
10428 (movtf reg<-mem split): Disallow splitting if hard quad and
10429 register is floating.
10430 (movtf mem<-reg split): Likewise.
10431 * config/sparc/sparc.c (fp_register_operand): New predicate.
10432 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
10434 2002-04-17 Zack Weinberg <zack@codesourcery.com>
10436 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
10437 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
10438 (unprotoize.o): Ditto. Build from protoize.c. Define
10439 UNPROTOIZE on command line.
10440 * protoize.c: Include cppdefault.h. Delete include_defaults.
10441 (in_system_include_dir): Use cpp_include_defaults (defined in
10443 * unprotoize.c: Delete file.
10445 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
10447 * config/rs6000/altivec.h (vec_ld): Add array variants.
10451 2002-04-17 Alan Matsuoka <alanm@redhat.com>
10452 Aldy Hernandez <aldyh@redhat.com>
10454 * config/rs6000/altivec.h: Define __ALTIVEC__.
10459 (vec_vmaddfp): New.
10461 Add parentheses to all macro arguments.
10463 2002-04-16 Richard Henderson <rth@redhat.com>
10466 * except.c (remove_eh_handler): Insert inner regions at beginning
10467 of sibling chain. Refactor expressions.
10469 2002-04-16 Richard Henderson <rth@redhat.com>
10471 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
10472 * config/sparc/sol2-gas-bi.h: New file.
10473 * config.gcc (sparc*-solaris): Add it as needed.
10474 * configure.in (AS_SPARC64_FLAG): Remove check.
10475 * config.in, configure: Regenerate.
10477 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
10479 2002-04-16 Richard Henderson <rth@redhat.com>
10481 * config/mips/mips.c (override_options): Don't override N32 for
10485 * config/mips/mips.md (can_delay): Split out of existing define_delays.
10486 (HILO_delay): Set can_delay false.
10488 2002-04-16 Dale Johannesen <dalej@apple.com>
10490 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
10491 instruction addresses.
10492 (rs6000_output_function_epilogue): Likewise.
10494 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
10496 * c-parse.in (poplevel, compstmt_start,
10497 compstmt_primary_start): Add ending ';', in accordance
10500 2002-04-16 Richard Henderson <rth@redhat.com>
10502 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
10503 Adjust tm_file order to get TARGET_DEFAULT set properly.
10504 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
10505 * doc/install.texi (sparc-solaris): Update.
10507 2002-04-16 Dale Johannesen <dalej@apple.com>
10509 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
10510 comparison operands do not match each other or if modes of
10511 conditions do not match result.
10513 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
10516 * config/s390/s390.md (mulsidi3): Set both subregs of the
10517 multiword register.
10519 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
10521 * config/rs6000/altivec.h (vec_addc): Type check.
10523 2002-04-16 Jakub Jelinek <jakub@redhat.com>
10526 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
10528 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
10530 2002-04-15 Richard Henderson <rth@redhat.com>
10532 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
10533 call_really_used_regs too.
10535 2002-04-15 Richard Henderson <rth@redhat.com>
10537 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
10539 2002-04-15 David S. Miller <davem@redhat.com>
10541 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
10542 as being CLOBBERed.
10544 2002-04-16 Jakub Jelinek <jakub@redhat.com>
10547 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
10548 CONST_VECTOR is { 0, ... 0 }.
10550 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
10552 * doc/install.texi (Installing GCC: Configuration): Clarify
10553 the only supported ways to configure gcc.
10555 2002-04-15 Roland McGrath <roland@frob.com>
10557 * config.gcc (alpha*-*-gnu*): New target configuration.
10558 * config/alpha/gnu.h: New file for it.
10559 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
10561 2002-04-16 Mark Mitchell <mark@codesourcery.com>
10563 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
10564 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
10565 * tree.h (expand_start_stmt_expr): Update prototype.
10566 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
10567 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
10568 on the STMT_EXPR created for the inline function.
10570 2002-04-15 Richard Henderson <rth@redhat.com>
10572 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
10573 config/i386/linux-aout.h, config/i386/linux-oldld.h,
10574 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
10575 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
10576 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
10577 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
10578 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
10579 Define __gnu_linux__, not gnu_linux.
10580 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
10582 2002-04-15 Mark Mitchell <mark@codesourcery.com>
10584 Remove Chill front end.
10585 * gcc.c (default_compilers): Remove Chill entries.
10586 * ch: Remove directory.
10587 * doc/frontends.texi: Remove information about Chill.
10588 * doc/sourcebuild.texi: Likewise.
10589 * doc/standards.texi: Likewise.
10591 2002-04-15 Douglas B Rupp <rupp@gnat.com>
10593 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
10594 (LONGLONG_STANDALONE): Define.
10596 2002-04-15 David S. Miller <davem@redhat.com>
10598 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
10599 Call emit_library_call with LCT_NORMAL.
10600 (sparc_initialize_trampoline): Use LCT_foo instead of
10601 magic constant in emit_library_call invocations.
10602 (sparc64_initialize_trampoline): Likewise.
10603 (sparc_profile_hook): Likewise.
10604 * config/sparc/sparc.md: Likewise.
10606 * config/sparc/sparc.c (sparc_extra_constraint_check):
10607 Fix type of argument 'c'.
10608 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
10611 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
10613 * diagnostic.h (output_buffer_state): Redefine.
10614 (output_format_decoder): New macro.
10615 (output_prefixing_rule): Likewise.
10616 (output_line_cutoff): Likewise.
10617 (diagnostic_format_decoder): Adjust.
10618 (diagnostic_prefixing_rule): Likewise.
10619 (diagnostic_line_cutoff): Likewise.
10620 (diagnostic_state): Likewise.
10621 (diagnostic_kind_count): Likewise.
10622 (diagnostic_buffer): Now a macro.
10624 * diagnostic.c (diagnostic_buffer): Remove definition.
10625 (output_is_line_wrapping): Adjust.
10626 (set_real_maximum_length): Likewise.
10627 (output_set_maximum_length): Likewise.
10628 (init_output_buffer): Likewise.
10629 (lhd_print_error_function): Likewise.
10630 (output_do_verbatim): Likewise.
10632 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
10634 * cpperror.c (print_location): Don't print include chain
10636 (cpp_begin_message): Update to use DL_ macros.
10637 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
10638 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
10639 cpp_notice, cpp_notice_from_errno): Remove.
10640 (cpp_error, cpp_error_with_line): Update to take a diagnostic
10643 * cppexp.c (CPP_ICE): Remove.
10644 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
10645 lex, integer_overflow, _cpp_parse_expr): Update.
10646 * cppfiles.c (read_include_file, find_include_file,
10647 handle_missing_header, _cpp_read_file, remap_filename): Update.
10648 * cpphash.h (enum error_type): Remove.
10649 (_cpp_begin_message): Update.
10650 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
10651 cpp_handle_option, cpp_post_options): Update.
10652 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
10653 skip_whitespace, parse_identifier, parse_slow, parse_string,
10654 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
10655 cpp_interpret_charconst): Update.
10656 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
10657 lex_macro_node, do_undef, glue_header_name, parse_include,
10658 do_include_common, read_flag, do_line, do_linemarker, do_ident,
10659 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
10660 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
10661 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
10662 _cpp_pop_buffer, do_diagnostic): Update.
10663 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
10664 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
10665 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
10666 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
10667 cpp_notice, cpp_notice_from_errno): Remove.
10668 (cpp_error, cpp_error_with_line): Update to take a diagnostic
10671 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
10672 collect_args, enter_macro_context, save_parameter, parse_params,
10673 _cpp_create_definition, check_trad_stringification,
10674 cpp_macro_definition): Update.
10675 * cppmain.c (cpp_preprocess_file): Update.
10676 * fix-header.c (read_scan_file): Update.
10678 2002-04-14 Andreas Schwab <schwab@suse.de>
10680 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
10682 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10684 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
10686 2002-04-13 Mark Mitchell <mark@codesourcery.com>
10688 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
10691 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
10693 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
10695 2002-04-13 Joel Sherrill <joel@OARcorp.com>
10697 * config/sparc/t-elf: Enable v8 multilibs. Impacts
10698 sparc-elf and sparc-rtems targets.
10700 2002-04-13 Mark Mitchell <mark@codesourcery.com>
10702 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
10703 defined, and __gnu_hurd__ wherever __GNU__ is defined.
10704 * arm/linux-elf.h: Likewise.
10705 * cris/aout.h: Likewise.
10706 * cris/linux.h: Likewise.
10707 * i370/linux.h: Likewise.
10708 * i386/gnu.h: Likewise.
10709 * i386/linux-aout.h: Likewise.
10710 * i386/linux-oldld.h: Likewise.
10711 * i386/linux.h: Likewise.
10712 * i386/linux64.h: Likewise.
10713 * ia64/linux.h: Likewise.
10714 * m68k/linux-aout.h: Likewise.
10715 * m68k/linux.h: Likewise.
10716 * mips/linux.h: Likewise.
10717 * pa/pa-linux.h: Likewise.
10718 * pj/linux.h: Likewise.
10719 * rs6000/sysv4.h: Likewise.
10720 * s390/linux.h: Likewise.
10721 * sh/linux.h: Likewise.
10722 * sparc/linux-aout.h: Likewise.
10723 * sparc/linux.h: Likewise.
10724 * sparc/linux64.h: Likewise.
10725 * xtensa/linux.h: Likewise.
10727 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
10729 * stmt.c (check_unique_operand_names): Expect operand names to
10730 be strings rather than identifiers. Use simple_cst_equal to
10732 (resolve_operand_name_1): Make same identifier to string change here.
10733 * c-parse.in (asm_operand): Convert a named operand into a string.
10734 * cp/parse.y (asm_operand): Likewise.
10736 2002-04-13 Andreas Schwab <schwab@suse.de>
10738 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
10740 2002-04-12 Mark Mitchell <mark@codesourcery.com>
10742 Revert these changes:
10744 2002-04-06 Mark Mitchell <mark@codesourcery.com>
10747 * stor-layout.c (layout_decl): Reset the RTL for the decl.
10749 2002-04-12 Richard Henderson <rth@redhat.com>
10751 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
10752 (sparc*-*-solaris): Clean up header files.
10753 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
10754 and plan on generating 64-bit code.
10755 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
10756 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
10757 * config/sparc/sol2-sld-64.h: Rename ...
10758 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
10759 for AS_SPARC64_FLAG not defined.
10760 * config/sparc/sol2-gld-bi.h: New.
10761 * config/sparc/sol2-sld.h: Remove.
10762 * config/sparc/sol26-sld.h: New.
10763 * config/sparc/sol2.h: Tidy comments.
10764 * doc/install.texi: Document sparc-solaris configury changes.
10766 2002-04-12 Richard Henderson <rth@redhat.com>
10768 * recog.c (offsettable_address_p): Match the logic in adjust_address.
10770 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
10771 in 64-bit mode only. Use only for 32-bit or MEDLOW.
10773 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10775 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
10777 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
10779 * pa.c (pa_can_combine_p): Call extract_insn before calling
10780 constrain_operands.
10782 2002-04-12 Douglas B Rupp <rupp@gnat.com>
10784 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
10785 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
10786 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
10787 (CPP_PREDEFINES): Handle __declspec.
10788 * config/i386/t-interix (USER_H): Remove.
10790 2002-04-12 DJ Delorie <dj@redhat.com>
10792 * integrate.c (compare_blocks): Make comparisons safe for when
10793 sizeof(int) < sizeof(char *).
10794 (find_block): Likewise.
10796 2002-04-12 Jan Hubicka <jh@suse.cz>
10797 David Edelsohn <edelsohn@gnu.org>
10799 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
10801 (symbol_ref_operand): New.
10802 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
10803 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
10805 2002-04-12 Andreas Schwab <schwab@suse.de>
10807 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
10808 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
10809 overrides the definition in config/svr4.h.
10811 2002-04-12 Eric Norum <eric.norum@usask.ca>
10813 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
10814 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
10815 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
10816 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
10817 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
10818 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
10819 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
10820 definitions to config/rtems.h and make the targets more similar.
10822 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10824 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
10825 POINTERS_EXTEND_UNSIGNED.
10826 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
10827 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
10829 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
10832 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
10834 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
10835 depends on TARGET_SHMEDIA, not TARGET_SH5.
10837 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
10839 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
10840 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
10842 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
10844 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
10847 2002-04-12 Andreas Schwab <schwab@suse.de>
10849 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
10851 2002-04-12 Richard Henderson <rth@redhat.com>
10854 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
10856 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
10857 modes spanning multiple hard regs.
10859 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
10861 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10863 * pa.c (pa_output_function_prologue): Don't accumulate the total
10864 number of code bytes when using TARGET_64BIT, or gas, SOM and not
10865 the portable runtime.
10866 (output_deferred_plabels): Handle 64bit plabels.
10867 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
10868 generating pic code using the GAS assembler for object formats that
10869 are not SOM (ie., ELF32 and ELF64).
10870 (output_millicode_call): Check attribute type if attribute length is 28.
10871 Likewise use $PIC_pcrel$0. Only call get_attr_length and
10872 dbr_sequence_length once.
10873 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
10874 dbr_sequence_length once.
10875 * pa.h (TARGET_SOM): Define if not defined.
10876 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
10877 with GAS and not SOM.
10878 (jump, call_internal_reg, call_value_internal_reg): Likewise.
10879 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
10881 2002-04-11 David O'Brien <obrien@FreeBSD.org>
10883 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
10884 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
10885 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
10886 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
10887 elfos.h and dbxelf.h values are fine now.
10888 * config/i386/freebsd.h, config/alpha/freebsd.h
10889 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
10891 2002-04-11 David O'Brien <obrien@FreeBSD.org>
10893 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
10894 or set Acpu or Amachine. Reformat.
10895 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
10897 (LINK_SPEC): Do not need to undef.
10898 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
10899 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
10900 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
10902 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
10903 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
10904 (LINK_SPEC): Do not need to undef.
10905 (DONT_USE_BUILTIN_SETJMP): Do not define.
10906 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
10907 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
10908 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
10909 Remove trailing spaces.
10910 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
10911 __ELF__, or set Acpu or Amachine. Reformat.
10912 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
10915 2002-04-11 David O'Brien <obrien@FreeBSD.org>
10917 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
10918 all other *-*-freebsd* targets.
10920 2002-04-11 Richard Henderson <rth@redhat.com>
10922 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
10924 2002-04-11 David O'Brien <obrien@FreeBSD.org>
10926 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
10927 Include {cpu}/{cpu}.h thru tm_file.
10928 (alpha*-*-linux*ecoff): Remove target.
10929 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
10930 (LINK_SPEC): Remove, is not OS independent.
10931 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
10932 (LINK_SPEC): Do not need to #undef any longer.
10933 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
10935 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
10937 (LINK_SPEC): Moved here from alpha/elf.h.
10938 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
10939 SUB_CPP_PREDEFINES.
10940 * config/alpha/linux-ecoff.h: Remove.
10941 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
10942 (CPP_SPEC): Define _POSIX_SOURCE as needed.
10943 (CPP_SUBTARGET_SPEC): Do not define.
10944 (LINK_SPEC): Do not need to #undef any longer.
10945 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
10946 * config/alpha/vms.h: Likewise.
10948 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
10950 * doc/extend.texi: Remove old claim that typedefs cannot have
10951 an alignment attribute.
10953 2002-04-11 Jakub Jelinek <jakub@redhat.com>
10955 PR optimization/6177
10956 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
10957 bitpos is 0 and bitsize CONCAT size.
10959 2002-04-11 Jakub Jelinek <jakub@redhat.com>
10962 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
10964 2002-04-10 David O'Brien <obrien@FreeBSD.org>
10966 * config/alpha/freebsd.h: Minor reformatting.
10967 (CPP_SPEC): Define ELF and add cpp_subtarget.
10968 (ASM_SPEC): No longer needed.
10970 2002-04-11 Richard Henderson <rth@redhat.com>
10972 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
10973 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
10974 (dimode mem/zero splitter): New.
10976 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
10978 * config/cris/cris.c (cris_override_options): Tweak error message
10979 for PIC not implemented.
10981 * config/cris/cris.h: Tweak comments related to parameter-passing.
10983 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
10985 2002-04-10 Richard Henderson <rth@redhat.com>
10987 * except.c (add_ehl_entry): Allow duplicates after landing pad
10990 2002-04-10 David Edelsohn <edelsohn@gnu.org>
10992 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
10994 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
10996 * c-decl.c (c_init_decl_processing): Move generation of
10997 decls for g77_integer_type_node and friends from here ...
10998 * c-common.c (c_common_nodes_and_builtins): ... to here.
11000 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
11002 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
11003 is only used as frame pointer when frame_pointer_needed is true.
11005 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
11008 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
11009 for the fact that the pool entry uses two words.
11010 (movdf_hard_insn): Similarly. Also, ADR instruction can span
11012 (movdf_soft_insn): Similarly.
11013 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
11014 for the fact that the pool entry uses three words.
11016 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
11018 * config/mips/mips.c (mips_va_arg): When using the struct version
11019 of the EABI va_list, allow arguments in the register save area to
11020 take up less room than a stack argument.
11022 2002-04-10 Richard Henderson <rth@redhat.com>
11024 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
11025 if EXPAND_INITIALIZER.
11027 2002-04-09 Richard Henderson <rth@redhat.com>
11029 * config/alpha/alpha.md (movdi_er_maybe_g): New.
11030 * config/alpha/alpha.c (alpha_expand_mov): Use it.
11032 2002-04-10 Alan Modra <amodra@bigpond.net.au>
11034 PR optimization/6233
11035 * rtlanal.c (pure_call_p): New function.
11036 * rtl.h (pure_call_p): Declare.
11037 * loop.c (prescan_loop): Use it to set has_nonconst_call.
11038 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
11040 2002-04-09 Eric Christopher <echristo@redhat.com>
11042 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
11043 information to .comm directive.
11045 2002-04-09 Richard Henderson <rth@redhat.com>
11048 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
11050 2002-04-09 Richard Henderson <rth@redhat.com>
11052 * basic-block.h (flow_delete_block_noexpunge): Declare.
11053 (expunge_block_nocompact): Declare.
11054 * cfg.c (expunge_block_nocompact): Split out from ...
11055 (expunge_block): ... here.
11056 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
11057 (flow_delete_block_noexpunge): Split out from ...
11058 (flow_delete_block): ... here.
11059 * cfgcleanup.c (delete_unreachable_blocks): Compact while
11060 removing dead blocks.
11061 * except.c (exception_handler_labels): Remove.
11062 (exception_handler_label_map): New.
11063 (struct eh_region): Add aka member.
11064 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
11065 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
11066 (for_each_eh_label, for_each_eh_label_1): New.
11067 (init_eh): Register exception_handler_label_map.
11068 (free_eh_status): Use free_region.
11069 (find_exception_handler_labels): Use the map, not the list.
11070 (remove_exception_handler_label): Likewise.
11071 (maybe_remove_eh_handler): Likewise.
11072 (remove_eh_handler): Use the region aka bitmap.
11073 * except.h (exception_handler_labels): Remove.
11074 (for_each_eh_label): Declare.
11075 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
11076 * loop.c (invalidate_loops_containing_label): New.
11077 (find_and_verify_loops): Use it. Use for_each_eh_label.
11078 * sched-rgn.c (is_cfg_nonregular): Use
11079 current_function_has_exception_handlers.
11081 2002-04-09 Richard Henderson <rth@redhat.com>
11083 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
11084 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
11085 Do not return changed status.
11086 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
11087 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
11088 New functions that do return changed status.
11089 * sbitmap.h: Update decls.
11090 * gcse.c, lcm.c: Use _cg functions as needed.
11092 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
11094 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
11095 (sh64-*-elf*, sh-*-rtemself*): Likewise.
11096 * config/sh/embed_bb.c: New file.
11097 * config/sh/embed-elf.h: New file.
11098 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
11099 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
11100 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11102 (SUBTARGET_CPP_PTR_SPEC): Don't define.
11103 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
11104 Add subtarget_asm_endian_spec.
11105 (ASM_SPEC): Use subtarget_asm_endian_spec.
11106 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
11107 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
11108 (WCHAR_UNSIGNED): Define.
11109 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
11110 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11111 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
11113 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
11114 (sh_adjust_cost): Likewise.
11115 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11117 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
11118 (WCHAR_TYPE_SIZE): Likewise.
11119 (ASM_SPEC): Use subtarget_asm_endian_spec.
11120 (SH_ELF_WCHAR_TYPE): #undef/ #define.
11121 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
11122 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
11123 (MAX_WCHAR_TYPE_SIZE): Don't #define .
11124 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
11125 (USER_LABEL_PREFIX): Don't #undef /#define .
11126 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11127 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
11128 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
11129 (ASM_SPEC): Likewise.
11130 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
11131 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
11132 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
11133 (LIB2FUNCS_EXTRA): Define.
11134 * t-sh64 (LIB2FUNCS_EXTRA): Define.
11135 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
11136 (LIB1ASMFUNCS_CACHE): Define.
11137 (LIB2FUNCS_EXTRA): Redefine empty.
11139 2002-04-08 Richard Henderson <rth@redhat.com>
11141 * reorg.c (get_branch_condition): Use reversed_comparison_code.
11143 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11145 * config/m68hc11/larith.asm (__map_data_section): Fix condition
11146 and optimize for size.
11147 (__do_global_ctors): Fix pointer comparison.
11148 (__do_global_dtors): Likewise.
11150 2002-04-09 David S. Miller <davem@redhat.com>
11152 * config/sparc/sparc.c (sparc_extra_constraint_check): New
11153 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
11154 allow reloading pseudos.
11155 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
11156 * config/sparc/sparc-protos.h: Declare it.
11158 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
11159 unsigned comparison warning.
11160 (output_restore_regs): Mark leaf_function as unused.
11162 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11164 * expr.c (is_aligning_offset): New function.
11165 (expand_expr, case COMPONENT_EXPR): Call it.
11167 2002-04-08 David S. Miller <davem@redhat.com>
11170 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
11172 Make init_priority work on Sparc when using GNU ld.
11173 * config/sparc/linux.h, config/sparc/linux64.h,
11174 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
11175 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
11176 * config/sparc/sol2-gld.h: New file to do the same.
11177 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
11178 sparc/sol2-gld.h to tm_file.
11180 PR optimization/4328
11181 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
11182 * doc/md.texi: Document it.
11183 * config/sparc/sparc.md (movdi_insn_sp64_novis,
11184 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
11185 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
11186 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
11187 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
11189 2002-04-08 Andreas Jaeger <aj@suse.de>
11191 * stmt.c (expand_asm_operands): Revert last patch from Richard
11194 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11196 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
11197 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
11199 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11201 * doc/contrib.texi (Contributors): Add David O'Brien.
11203 2002-04-08 Alan Modra <amodra@bigpond.net.au>
11205 * configure.in (auto-build.h): Use target_alias and build_alias
11206 when running configure.
11207 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
11208 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
11209 * configure: Regenerate.
11211 2002-04-07 David S. Miller <davem@redhat.com>
11213 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
11215 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
11218 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
11219 generating 32-bit pic code.
11221 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
11223 * cppinit.c (cpp_create_reader): Initialize
11224 discard_comments_in_macro_exp.
11225 (COMMAND_LINE_OPTIONS): Add "-CC" option.
11226 (cpp_handle_option): Handle "-CC" option.
11227 * cpplex.c (save_comment): If saving a C++ comment in
11228 a directive, convert it to a C comment.
11229 (_cpp_lex_direct): Pass second comment start character to
11230 save_comment to indicate comment type.
11231 * cpplib.c (_cpp_handle_directive): If processing
11232 a "#define" directive and discard_comments_in_macro_exp
11233 is false, re-enable saving of comments.
11234 (lex_macro_node): If discard_comments_in_macro_exp is false,
11235 discard any comments before the macro identifier.
11236 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
11238 * cppmacro.c (cpp_get_token): If expanding a macro while
11239 processing a directive, discard any comments we might encounter.
11240 (parse_params): If discard_comments_in_macro_exp is false,
11241 ignore comments in the macro parameter list.
11242 * gcc.c (cpp_unique_options): Add "-CC" option.
11243 (option_map): Map "--comments-in-macros" to "-CC".
11244 * doc/cppopts.texi: Document "-CC" option.
11245 * f/lang-specs.h: Add "-CC" option.
11246 * testsuite/gcc.dg/cpp/maccom1.c: New test.
11247 * testsuite/gcc.dg/cpp/maccom2.c: New test.
11248 * testsuite/gcc.dg/cpp/maccom3.c: New test.
11249 * testsuite/gcc.dg/cpp/maccom4.c: New test.
11250 * testsuite/gcc.dg/cpp/maccom5.c: New test.
11251 * testsuite/gcc.dg/cpp/maccom6.c: New test.
11253 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
11256 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
11258 2002-04-06 Mark Mitchell <mark@codesourcery.com>
11261 * stor-layout.c (layout_decl): Reset the RTL for the decl.
11264 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
11265 RTX_UNCHANGING_P for the functions arguments when a tail call
11268 2002-04-06 Jason Merrill <jason@redhat.com>
11270 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
11271 (parse_options_and_default_flags): Set them appropriately.
11272 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
11274 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
11276 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
11279 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
11282 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
11283 types come in by-reference. Fix typo in comment.
11285 2002-04-05 David S. Miller <davem@redhat.com>
11287 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
11288 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
11289 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
11290 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
11292 2002-04-05 David S. Miller <davem@redhat.com>
11294 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
11295 are not going to emit return instructions, emit at least a nop
11296 for the sake of sane backtraces.
11298 2002-04-05 Richard Henderson <rth@redhat.com>
11300 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
11302 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
11304 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
11306 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
11308 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
11309 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
11310 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
11312 2002-04-05 Andreas Schwab <schwab@suse.de>
11314 * c-convert.c: Include c-common.h.
11315 * Makefile.in (c-convert.o): Updated.
11317 2002-04-05 Jakub Jelinek <jakub@redhat.com>
11319 * mklibgcc.in: Use separate libgcc.map for each multilib.
11320 * Makefile.in (distclean): Don't remove libgcc.map here.
11322 2002-04-05 Jakub Jelinek <jakub@redhat.com>
11324 * Makefile.in (s-mlib): Handle --disable-multilib by separate
11325 genmultilib invocation.
11327 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
11329 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
11330 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
11331 to num_gprs for symmetry.
11332 * config/mips/mips.c: Adjust accordingly.
11334 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
11336 * c-common.c (truthvalue_conversion): Rename, update.
11337 * c-common.h (c_common_truthvalue_conversion): New.
11338 * c-convert.c (convert): Update.
11339 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11340 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
11341 * c-typeck.c (build_binary_op, build_unary_op,
11342 build_conditional_expr): Update.
11343 * fold-const.c (constant_boolean_node, fold): Use langhook.
11344 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
11345 * langhooks.h (struct lang_hooks): New hook.
11346 * stmt.c (expand_decl_cleanup): Use langhook.
11347 * tree.h (truthvalue_conversion): Remove.
11349 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11351 2002-04-05 Alan Modra <amodra@bigpond.net.au>
11353 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
11354 Add rules to make null object file.
11356 2002-04-04 Jim Blandy <jimb@redhat.com>
11358 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
11359 macro formal parameter names.
11361 2002-04-04 David S. Miller <davem@redhat.com>
11363 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
11365 2002-04-04 Richard Henderson <rth@redhat.com>
11368 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
11369 Support copies into and out of memory. Don't accept allows_reg
11370 and allows_mem as gospel.
11372 2002-04-04 Richard Henderson <rth@redhat.com>
11375 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
11376 (write_dependence_p): Likewise.
11378 2002-04-04 Richard Henderson <rth@redhat.com>
11380 * predict.c (estimate_bb_frequencies): Do frequency calculation
11381 with a volatile temporary.
11383 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
11385 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
11387 2002-04-04 Jakub Jelinek <jakub@redhat.com>
11390 * final.c (final_start_function): Don't bump profile_label_no here...
11391 (final_end_function): ...but here.
11393 2002-04-04 Jakub Jelinek <jakub@redhat.com>
11395 * config/sparc/sparc.md (pic): New attribute.
11396 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
11398 (split after do_builtin_setjmp_setup): New.
11400 2002-04-04 Jakub Jelinek <jakub@redhat.com>
11403 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
11406 2002-04-04 Jakub Jelinek <jakub@redhat.com>
11408 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
11409 UNITS_PER_WORD for zero sized aggregates.
11411 2002-04-03 David S. Miller <davem@redhat.com>
11413 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
11414 one-character spec for this, just use %(link_gcc_c_sequence).
11416 2002-04-03 David S. Miller <davem@redhat.com>
11418 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
11421 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
11423 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
11424 (DWARF_FRAME_RETURN_COLUMN): Move.
11425 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11426 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
11427 * pa.c (except.h, predict.h): Include.
11429 (store_reg_modify, set_reg_plus_d): Revise prototypes.
11430 (output_ascii): Add cast.
11431 (store_reg_modify): Revise to add frame notes.
11432 (set_reg_plus_d): Likewise.
11433 (compute_frame_size): Include space for eh data registers in frame if
11434 the current function calls eh_return.
11435 (hppa_expand_prologue): Ensure register %r2 is saved if the current
11436 function calls eh_return. Save eh data registers if the current
11437 function calls eh_return. Fix code to add frame notes. Emit
11438 blockage to prevent insns with frame notes being scheduled in the
11439 delay slot of calls.
11440 (hppa_expand_epilogue): Restore eh data registers and do final stack
11441 adjustment if the current function calls eh_return. Don't add frame
11443 (output_call): Revise for change in length of call insn. Don't do
11444 return pointer adjustment for an unconditional jump in the delay slot
11445 of a call when using frame notes.
11446 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
11447 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
11448 (ARG_POINTER_CFA_OFFSET): Define.
11449 * pa.md (return_external_pic): New pattern.
11450 (prologue): Correct formatting. Use return_external_pic if current
11451 function calls eh_return.
11452 (call_internal_symref, call_value_internal_symref,
11453 sibcall_internal_symref, sibcall_value_internal_symref): Change default
11454 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
11456 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
11458 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
11459 list of targets to check using "nop" insn.
11460 * configure: Rebuilt.
11462 2002-04-04 Alan Modra <amodra@bigpond.net.au>
11464 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
11466 2002-04-03 David S. Miller <davem@redhat.com>
11468 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
11469 library sequence passed to the linker.
11470 (LINK_COMMAND_SPEC): Use it.
11471 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
11472 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
11473 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11475 2002-04-03 Jason Merrill <jason@redhat.com>
11477 * except.c (struct eh_status): Remove protect_list.
11478 (begin_protect_partials, end_protect_partials): Remove.
11479 (add_partial_entry): Remove.
11480 * except.h: Remove prototypes.
11482 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
11483 expand_decl_cleanup_eh.
11486 * tree.h (CLEANUP_EH_ONLY): New macro.
11487 * stmt.c (expand_decl_cleanup_eh): New fn.
11488 (expand_cleanups): Check CLEANUP_EH_ONLY.
11489 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
11490 Use expand_decl_cleanup_eh.
11491 (expand_stmt): Adjust.
11492 * c-common.h: Adjust prototype.
11494 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
11496 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
11497 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
11498 (cris_target_asm_function_epilogue): Ditto.
11499 (cris_initial_frame_pointer_offset): Ditto.
11500 (cris_simple_epilogue): Ditto.
11501 (cris_expand_builtin_va_arg): Variable-size types come in
11504 2002-04-03 David S. Miller <davem@redhat.com>
11506 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
11508 (set_fast_math): Correct 'fsr' type.
11510 2002-04-03 Richard Henderson <rth@redhat.com>
11513 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
11514 * toplev.c (check_global_declarations): Use it.
11515 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
11516 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11517 (LANG_HOOKS_DECLS): Add it.
11518 * langhooks.c (lhd_warn_unused_global_decl): New.
11519 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11520 * c-objc-common.c (c_warn_unused_global_decl): New.
11521 * c-tree.h (c_warn_unused_global_decl): Declare.
11522 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11524 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
11526 * langhooks-def.h (lhd_set_decl_assembler_name,
11527 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
11528 (LANG_HOOKS_INITIALIZER): Update.
11529 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
11530 * langhooks.h (struct lang_hooks): New hook.
11531 * tree.c (set_decl_assembler_name): Move to langhooks.c.
11532 (lang_set_decl_assembler_name): Remove.
11533 (init_obstacks): Don't set hook.
11534 (decl_assembler_name): New function.
11535 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
11536 (decl_assembler_name): New.
11537 (lang_set_decl_assembler_name): Remove.
11539 2002-04-03 Jakub Jelinek <jakub@redhat.com>
11541 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
11542 works properly with .hidden symbols.
11543 * configure: Rebuilt.
11544 * config.in: Rebuilt.
11545 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
11546 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
11547 properly with .hidden symbols.
11549 2002-04-03 Jakub Jelinek <jakub@redhat.com>
11552 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
11555 2002-04-03 Richard Henderson <rth@redhat.com>
11558 * sched-rgn.c (sets_likely_spilled): New.
11559 (sets_likely_spilled_1): New.
11560 (add_branch_dependences): Use it.
11562 2002-04-02 Richard Henderson <rth@redhat.com>
11565 * loop.h (LOOP_FIRST_PASS): New.
11566 * loop.c (strength_reduce): Mind it when deciding to unroll.
11567 * toplev.c (rest_of_compilation): Set it.
11569 2002-04-02 David S. Miller <davem@redhat.com>
11571 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
11572 mems_ok_for_ldd_peep when the order of the loads being examined
11574 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
11575 existing comment to increase comprehension of this situation.
11577 2002-04-02 Zack Weinberg <zack@codesourcery.com>
11579 * config/sh/sh.md: Don't use union real_extract.
11581 2002-04-02 Richard Henderson <rth@redhat.com>
11583 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
11585 2002-04-02 David O'Brien <obrien@FreeBSD.org>
11587 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
11588 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
11589 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
11590 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
11591 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
11592 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
11593 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
11594 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
11595 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
11596 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
11597 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
11598 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
11599 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
11600 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
11601 Include as many configury headers via tm_file as possible. This
11602 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
11603 * config/openbsd-oldgas.h: New file.
11604 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
11605 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
11606 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
11607 config/i386/i386-coff.h, config/i386/i386-interix.h,
11608 config/i386/iscdbx.h, config/i386/linux-aout.h,
11609 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
11610 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
11611 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
11612 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
11613 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
11614 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
11615 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
11616 config/i386/vxi386.h: Do not directly include configury headers.
11617 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
11618 Directly include configury headers that are no longer automatically
11619 included by the above headers.
11620 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
11621 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
11622 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
11623 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
11624 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
11625 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
11626 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
11627 (TARGET_VERSION): Define.
11628 * config/i386/beos-elf.h, config/i386/freebsd.h,
11629 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
11630 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
11631 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
11632 config/i386/sco5.h, config/i386/sysv4.h
11633 (TARGET_VERSION): Do not need to protect.
11634 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
11635 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
11636 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
11637 config/i386/i386-interix.h, config/i386/linux-aout.h,
11638 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
11639 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
11640 (YES_UNDERSCORES): Do not define - not needed.
11641 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
11642 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
11643 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
11644 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
11645 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
11646 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
11647 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
11648 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
11650 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
11651 Richard Henderson <rth@redhat.com>
11654 * function.c (assign_temp): Accept either type or decl argument.
11655 Detect variables whose size is too large to fit into an integer.
11656 * stmt.c (expand_decl): Pass the decl, not the type.
11658 2002-04-02 David O'Brien <obrien@FreeBSD.org>
11660 * protoize.c: Match include directory usage with cppdefault.c.
11662 2002-04-03 Jeffrey A Law (law@redhat.com)
11663 Hans-Peter Nilsson <hp@bitrange.com>
11665 * combine.c (simplify_comparison): Avoid narrowing a comparison
11666 with a paradoxical subreg when doing so would drop signficant bits.
11668 2002-04-02 Steve Ellcey <sje@cup.hp.com>
11670 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
11671 if POINTERS_EXTEND_UNSIGNED is defined.
11673 2002-04-02 Richard Henderson <rth@redhat.com>
11676 * local-alloc.c (contains_replace_regs): LO_SUM may contain
11679 2002-04-02 Richard Henderson <rth@redhat.com>
11681 * doc/standards.texi: Document required freestanding libc entry points.
11683 2002-04-02 Alan Modra <amodra@bigpond.net.au>
11685 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
11686 associated splitter. Remove MQ constraint.
11687 (ctrdi_internal4): Correct CCmode clobber.
11689 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
11691 * milli64.S ($$dyncall): New function.
11692 * t-linux (LIB1ASMFUNCS): Revise module list.
11693 (LIB1ASMSRC): Use pa/milli64.S.
11695 2002-04-02 Richard Henderson <rth@redhat.com>
11697 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
11698 rename solaris_sys_varargs_h.
11700 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11702 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
11703 the same mode as its component.
11705 2002-04-02 Richard Henderson <rth@redhat.com>
11708 * final.c (this_is_asm_operands): Export.
11709 * output.h (this_is_asm_operands): Declare.
11710 * config/i386/i386.c (print_operand): Error odd asm operands.
11712 2002-04-02 Richard Henderson <rth@redhat.com>
11715 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
11717 2002-04-01 Richard Henderson <rth@redhat.com>
11720 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
11721 * fixinc/fixincl.x: Rebuild.
11723 2002-04-01 Richard Henderson <rth@redhat.com>
11725 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
11726 (atomic_alloc, atomic_free): New.
11727 (SIZE, MASK_FOR, PTR_IN): New.
11728 (emergency_reg_state, emergency_reg_state_free): New.
11729 (emergency_labeled_state, emergency_labeled_state_free): New.
11730 (reg_state_alloced, labeled_state_alloced): New.
11731 (alloc_reg_state, free_reg_state): New.
11732 (alloc_label_state, free_label_state, free_label_states): New.
11733 (push, pop, dup_state_stack, free_state_stack): Use them.
11734 (desc_label_state): Likewise.
11735 (uw_frame_state_for): Free label states and state stack.
11736 (uw_update_reg_address): Eliminate warnings.
11738 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
11740 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
11741 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
11743 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11745 * c-decl.c (grokdeclarator): Update.
11746 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
11747 * c-tree.h (c_mark_addressable): New.
11748 * c-typeck.c (default_function_array_conversion, build_unary_op,
11749 build_array_ref, convert_for_assignment): Update.
11750 (mark_addressable): Rename.
11751 * calls.c (try_to_integrate, expand_call): Use langhook.
11752 * expr.c (expand_expr): Use langhook.
11753 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
11754 * langhooks.h (struct lang_hooks): New hook.
11755 * stmt.c (expand_asm_operands): Use langhook.
11756 * tree.h (mark_addressable): Remove.
11758 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
11760 2002-04-01 Bob Wilson <bob.wilson@acm.org>
11762 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
11763 in previous change.
11765 2002-04-01 Bob Wilson <bob.wilson@acm.org>
11767 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
11768 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
11770 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11772 * c-common.c (unsigned_conversion_warning, convert_and_check,
11773 unsigned_type, signed_type, shorten_compare,
11774 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
11775 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
11776 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
11778 * c-decl.c (grokdeclarator): Update.
11779 * c-format.c (check_format_types): Update.
11780 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
11781 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
11782 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
11783 * convert.c (convert_to_integer): Use new hooks.
11784 * expmed.c (make_tree): Use new hooks.
11785 * expr.c (store_expr): Use new hooks.
11786 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
11787 all_ones_mask_p, unextend, fold): Use new hooks.
11788 * langhooks.h (struct lang_hooks_for_types): New hooks.
11789 * tree.h (signed_or_unsigned_type, signed_type,
11790 unsigned_type): Remove.
11792 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
11793 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
11795 2002-03-31 Richard Henderson <rth@redhat.com>
11797 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
11798 (desc_frgr_mem): Fix reference to f16-f31.
11800 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11802 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
11803 RTVEC_ELT): Const-ify.
11804 * varray.h (VARRAY_CHECK): Const-ify.
11805 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
11806 ggc_mark_rtvec, ggc_mark): Const-ify.
11808 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11810 * diagnostic.c: Include langhooks-def.h.
11811 * Makefile.in (diagnostic.o): Update.
11813 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
11815 * c-common.c (c_unsafe_for_reeval): Rename.
11816 * c-common.h (c_unsafe_for_reeval): Rename.
11817 * c-decl.c (finish_incomplete_decl): Rename.
11818 (c_init_decl_processing): Don't set langhook.
11819 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
11820 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
11821 * c-objc-common.c (c_objc_common_init): Don't set langhook.
11822 * c-tree.h (finish_incomplete_decl): Rename.
11823 * langhooks-def.h (lhd_unsafe_for_reeval): New.
11824 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
11825 (LANG_HOOKS_INITIALIZER): Update.
11826 * langhooks.c (lhd_unsafe_For_reeval): New.
11827 * langhooks.h (struct langhooks): New hooks.
11828 * toplev.c (incomplete_decl_finalize_hook): Remove.
11829 (wrapup_global_declarations): Update.
11830 * tree.c (lang_unsafe_for_reeval): Remove.
11831 (unsafe_for_reeval): Update.
11832 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
11835 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
11836 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
11838 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
11840 * diagnostic.c (print_error_function): Remove.
11841 (default_print_error_function): Rename.
11842 (report_error_function): Update.
11843 * diagnostic.h (print_error_function): Remove.
11844 (default_print_error_function): Remove.
11845 * langhooks-def.h (struct diagnostic_context): Predeclare.
11846 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
11847 (LANG_HOOKS_INITIALIZER): Update.
11848 * langhooks.h (struct diagnostic context): Predeclare.
11849 (struct lang_hooks): New hook.
11851 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11853 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
11854 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
11856 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
11857 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
11858 of PIC_OFFSET_TABLE_REGNUM thruout.
11859 * config/rs6000/rs6000.md: Likewise.
11860 * config/rs6000/darwin.h: Likewise.
11862 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11864 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
11865 unsigned HOST_WIDE_INT, not unsigned int.
11867 2002-03-31 Jakub Jelinek <jakub@redhat.com>
11869 PR middle-end/6096, middle-end/6098, middle-end/6099
11870 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
11872 (fill_slots_from_thread): Likewise.
11874 2002-03-31 Jakub Jelinek <jakub@redhat.com>
11876 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
11877 floating fields in float regs.
11878 (function_arg_record_value_2): Likewise.
11880 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
11882 * config/mmix/mmix.md (define_constants): Remove misleading
11883 FIXME. Add MMIX_fp_rO_OFFSET.
11884 ("nonlocal_goto_receiver"): Don't have stack-frame address of
11885 saved rO as part of the pattern. Remove FIXME.
11886 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
11887 here, at output-time.
11889 2002-03-31 Jakub Jelinek <jakub@redhat.com>
11892 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
11894 (output_v9branch): Likewise.
11896 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
11898 * gcc.c: Revert previous patch for now.
11899 * config/i386/djgpp.h: Likewise.
11901 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
11903 * config/mmix/crti.asm (_init): Register _fini with atexit.
11904 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
11906 2002-03-31 Richard Henderson <rth@redhat.com>
11909 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
11910 (ASM_OUTPUT_DEF_FROM_DECLS): New.
11912 2002-03-31 Richard Henderson <rth@redhat.com>
11914 * libgcc2.c (__bb_exit_func): Make static.
11916 * config/alpha/alpha.md (trap): New.
11918 2002-03-31 Richard Henderson <rth@redhat.com>
11920 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
11921 promoted argument types; build trap.
11922 (expand_builtin_trap): New.
11923 (expand_builtin): Use it.
11924 * stmt.c (expand_nl_goto_receivers): Likewise.
11925 * expr.h (expand_builtin_trap): Declare.
11926 * libfuncs.h (LTI_abort, abort_libfunc): New.
11927 * optabs.c (init_optabs): Init abort_libfunc.
11929 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
11931 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
11932 (LINK_COMMAND_SPEC): ... from here.
11933 (init_gcc_specs): Duplicate it here too, omitting
11934 shared_name in the second copy.
11935 (init_spec): Test for duplicate
11936 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
11938 2002-03-30 David S. Miller <davem@redhat.com>
11940 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11941 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
11943 2002-03-30 Roger Sayle <roger@eyesopen.com>
11944 Richard Henderson <rth@redhat.com>
11946 * regmove.c (combine_stack_adjustments_for_block): Avoid
11947 emitting a stack adjustment of zero bytes. Let delete_insn
11950 2002-03-30 Richard Henderson <rth@redhat.com>
11952 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
11953 (sparc_emitting_epilogue): New.
11954 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
11955 * config/sparc/sparc-protos.h: Update.
11956 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
11957 (TARGET_SWITCHES): Update.
11958 * config/sparc/sparc.md (return): Remove.
11959 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
11960 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
11961 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
11962 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11963 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
11964 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
11965 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
11966 Remove MASK_EPILOGUE.
11967 * doc/invoke.texi: Update.
11969 2002-03-30 Daniel Berlin <dan@dberlin.org>
11971 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
11972 CPP will start the file for us.
11974 2002-03-30 Richard Henderson <rth@redhat.com>
11977 * config/ia64/ia64.c (group_barrier_needed_p): Special case
11978 prologue_allocate_stack.
11979 (ia64_single_set): Use insn codes for recognition of special
11980 cases, not rtl matching.
11981 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
11983 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
11985 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
11987 2002-03-30 Richard Henderson <rth@redhat.com>
11990 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
11991 or -fomit-frame-pointer with profiling.
11992 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
11993 (FUNCTION_PROFILER): Do nothing.
11994 (PROFILE_HOOK): New.
11995 * config/sparc/sparc.c (sparc_override_options): Don't check
11996 code models for profiling.
11997 (sparc_function_profiler): Remove.
11998 (sparc_profile_hook): New.
11999 * config/sparc/sparc-protos.h: Update.
12001 2002-03-30 Jakub Jelinek <jakub@redhat.com>
12003 PR optimization/6086
12004 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
12005 of SUBREG of volatile MEM or because the MEM was mode dependent,
12006 return CLOBBER instead of unmodified SUBREG.
12008 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
12010 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
12011 when not optimizing.
12013 * toplev.c (rest_of_compilation): Cann mark_constant_function
12014 only when optimizing.
12016 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
12019 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
12020 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
12021 (try_optimize_cfg): clear all AUX fields.
12023 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
12024 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
12025 (ix86_address_cost): Be prepared for SUBREGed registers.
12026 (legitimate_address_p): Accept SUBREGed registers.
12028 2002-03-29 Richard Henderson <rth@redhat.com>
12031 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
12033 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12035 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
12036 for aggregate and TFmode types.
12038 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
12040 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
12042 2002-03-29 Richard Henderson <rth@redhat.com>
12045 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
12046 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
12048 2002-03-29 Richard Henderson <rth@redhat.com>
12051 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
12052 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
12053 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
12054 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
12056 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
12058 2002-03-29 Dale Johannesen <dalej@apple.com>
12060 * loop.c (combine_movables): Do allow combination of pseudos.
12062 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
12064 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
12065 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
12066 No functional change except ...
12067 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
12068 * doc/install.texi (*-*-freebsd*): Document port configuration.
12070 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
12072 * Makefile.in (convert.o, calls.o, expmed.o): Update.
12073 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
12075 * builtin-types.def (BT_PTRMODE): Update.
12076 * c-common.c (type_for_size): Rename c_common_type_for_size.
12077 (type_for_mode): Similarly.
12078 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
12080 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
12081 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
12082 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
12084 * c-typeck.c (common_type, comptypes, default_conversion):
12086 * calls.c: Include langhooks.h.
12087 (emit_library_call_value_1): Use new hooks. Avoid redundant
12089 * convert.c: Include langhooks.h
12090 (convert_to_pointer, convert_to_integer): Use new hooks.
12091 * except.c (init_eh): Similarly.
12092 * expmed.c: Include langhooks.h.
12093 (expand_mult_add): Use new hooks.
12094 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
12095 try_casesi): Similarly.
12096 * fold-const.c (optimize_bit_field_compare, make_range,
12097 decode_field_reference, fold_truthop, fold): Similarly.
12098 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
12099 put_var_into_stack): Similarly.
12100 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
12101 LANG_HOOKS_TYPE_FOR_SIZE): New.
12102 (LANG_HOOKS_TYPES_INITIALIZER): Update.
12103 * langhooks.h (lang_hooks_for_types): New hooks.
12104 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
12105 * tree.c (get_unwidened, get_narrower): Similarly.
12106 * tree.h (type_for_mode, type_for_size): Remove.
12107 * varasm.c (force_const_mem): Use new hooks.
12108 * utils2.c (nonbinary_modular_operation): Update.
12110 * objc-act.c (handle_impent): Update.
12111 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
12114 2002-03-29 Steve Ellcey <sje@cup.hp.com>
12116 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
12117 * config/ia64/ia64.c (basereg_operand): New.
12118 * config/ia64/ia64-protos.h (basereg_operand): Declare.
12119 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
12121 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
12123 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
12124 unwind information when frame_pointer_needed.
12125 (mmix_assemble_integer): Tweak wording in comment.
12127 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
12129 * Makefile.in (except.o): Update.
12130 * except.c: Include langhooks.h.
12131 (init_eh): Use langhook.
12132 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
12133 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
12134 (LANG_HOOKS_INITIALIZER): Update.
12135 * langhooks.h (lang_hooks_for_types): New.
12136 (struct lang_hooks): Add it.
12137 * tree.c (make_lang_type_fn, make_lang_type): Remove.
12138 * tree.h (make_lang_type_fn, make_lang_type): Remove.
12140 * alpha/alpha.c: Include langhooks.h.
12141 (alpha_build_va_list): Use langhook.
12142 * d30v/d30v.c: Include langhooks.h.
12143 (d30v_build_va_list): Use langhook.
12144 * i386/i386.c: Include langhooks.h.
12145 (ix86_build_va_list): Use langhook.
12146 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
12147 * s390/s390.c: Include langhooks.h.
12148 (s390_build_va_list): Use langhook.
12149 * stormy16/stormy16.c: Include langhooks.h.
12150 (stormy16_build_va_list): Use langhook.
12152 2002-03-29 Jakub Jelinek <jakub@redhat.com>
12155 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
12157 (length): Compute variable length for branches/calls/jumps here.
12158 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
12159 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
12160 define branch_type attribute.
12161 (divsi3_sp32): Maximum length is 6 not 7.
12162 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
12163 call_address_untyped_struct_value_sp32,
12164 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
12165 * config/sparc/sparc.c (empty_delay_slot): New function.
12166 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
12167 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
12169 2002-03-29 Jakub Jelinek <jakub@redhat.com>
12171 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
12172 nonzero_bits if not needed.
12173 (nonzero_bits) [XOR]: Likewise.
12174 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
12175 reg_last_set_mode and mode are both MODE_INT, but not equal.
12176 (record_value_for_reg): Compute reg_last_set_nonzero_bits
12177 in nonzero_bits_mode for MODE_INT modes.
12179 2002-03-28 Richard Henderson <rth@redhat.com>
12182 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
12183 to GAS. Correct drift between alternatives.
12185 2002-03-28 Richard Henderson <rth@redhat.com>
12188 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
12190 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
12192 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
12193 emulation to the linker.
12195 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
12197 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
12198 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
12200 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
12202 * combine.c (simplify_and_const_int): Make sure to apply mask
12203 when force_to_mode returns a constant integer. PR3311.
12205 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
12207 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
12209 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12211 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
12212 and Objective-C Dialect Options.
12214 2002-03-28 Richard Henderson <rth@redhat.com>
12216 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
12217 comparison should be done vs !=0 not >0 return code. Tidy cases.
12219 2002-03-28 Richard Henderson <rth@redhat.com>
12221 * c-decl.c (finish_function): New arg can_defer_p. Pass it
12222 on to c_expand_body.
12223 * c-tree.h (finish_function): Update decl.
12224 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
12226 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
12228 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
12230 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
12232 * rtlanal.c: Include flags.h
12233 (may_trap_p): Do not mark FP operations if trapping
12234 if !flag_trapping_math
12235 * Makefile.in (rtlanal.o): Add dependency on flag.h
12236 * ifcvt.c (noce_operand_ok): Avoid the lameness.
12238 2002-03-27 Zack Weinberg <zack@codesourcery.com>
12240 * mips.md: Use dconst1, not 1.0, as first argument of
12241 REAL_VALUE_LDEXP. Don't use union real_extract.
12243 2002-03-28 Alan Modra <amodra@bigpond.net.au>
12245 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
12246 rather than $target. Heed program_prefix and
12247 program_transform_name. Search for gas in cross-compiler case too.
12248 "test -x" rather than "test -f".
12249 (gcc_cv_ld): Likewise.
12250 (gcc_cv_nm): Heed program_prefix and program_transform_name.
12251 (gcc_cv_objdump): Likewise.
12252 * configure: Regenerate.
12254 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12256 * Makefile.in (attribs.o): Update.
12257 * attribs.c: Include langhooks.h.
12258 (decl_attributes): Use langhook.
12259 * c-decl.c (insert_default_attributes): Rename.
12260 * c-tree.h (c_insert_default_attributes): New.
12261 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
12262 (LANG_HOOKS_INITIALIZER): Update.
12263 * langhooks.h (struct lang_hooks): New hook.
12264 * tree.h (insert_default_attributes): Remove.
12266 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
12268 2002-03-27 Andreas Schwab <schwab@suse.de>
12270 * config/i386/i386.c (classify_argument): Also check for
12273 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12275 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
12278 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
12280 * i960.md (ret): Set PC.
12281 (nonlocal_goto): Fix expander.
12282 * builtins.c (epxand_builin_longjmp): Check that we've emitted
12285 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
12287 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
12288 of libcall regions.
12290 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12292 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
12293 assigning to BLOCK_FOR_INSN directly.
12295 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
12297 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
12299 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12301 * c-common.c (c_expand_expr): Fix prototype.
12302 * c-common.h (c_expand_expr): Always declare, update.
12303 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12304 * c-objc-common.c (c_objc_common_init): No global hook.
12305 * expr.c (expand_expr): Use langhook.
12306 * expr.h (enum expand_modifier): Conditionally declare.
12307 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
12308 (LANG_HOOKS_INITIALIZER): Update.
12309 * langhooks.c (lhd_expand_expr): New.
12310 * langhooks.h (struct lang_hooks): New hook.
12311 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
12312 (lang_independent_init): Don't default hook.
12314 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12316 2002-03-27 Richard Henderson <rth@redhat.com>
12319 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
12320 TARGET_CONST_GP. Simplify conditions.
12322 2002-03-27 Richard Henderson <rth@redhat.com>
12324 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12325 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
12326 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
12328 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
12330 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
12331 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
12332 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
12333 Remove unnecessary masks.
12334 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
12335 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
12336 -mwindows, -mdll switches and their negations.
12338 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12340 * gcc-common.c (lang_mark_false_label_stack): Remove.
12341 * ggc.h (lang_mark_false_label_stack): Similarly.
12343 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
12345 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
12347 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
12348 or __rtems_ is defined.
12350 2002-03-26 Richard Henderson <rth@redhat.com>
12352 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
12353 if a non-trivial load was emitted.
12354 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
12355 in high+extra+low case.
12357 2002-03-26 Richard Henderson <rth@redhat.com>
12359 * config.gcc (sparc*-solaris): Use float_format=sparc.
12361 2002-03-26 Richard Henderson <rth@redhat.com>
12363 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12364 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
12365 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
12366 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
12367 (WINT_TYPE_SIZE): Fix at 32.
12369 2002-03-26 Richard Henderson <rth@redhat.com>
12371 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
12372 until after eh landing pad generation.
12373 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
12374 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
12376 2002-03-26 Richard Henderson <rth@redhat.com>
12378 * expr.h (ADD_PARM_SIZE): One more convert for INC.
12380 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
12382 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
12383 and warning switches.
12384 (cc1_options): Likewise.
12386 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
12388 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
12389 Restore more of the signal context. Set no_reg_stack_frame.
12390 * config/ia64/unwind-ia64.c (unw_state_record):
12391 Add no_reg_stack_frame, comments.
12392 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
12393 (uw_update_context): Adjust bsp when unwinding from leaf,
12394 but not signal frame.
12396 2002-03-26 David Edelsohn <edelsohn@gnu.org>
12398 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
12400 2002-03-26 Bob Wilson <bob.wilson@acm.org>
12402 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
12404 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
12407 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
12408 "Add a pool_range attribute", which was lost during the ARM/Thumb
12411 2002-03-26 Bob Wilson <bob.wilson@acm.org>
12413 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
12414 a register into the MAC16 accumulator.
12416 2002-03-26 Andrew Cagney <ac131313@redhat.com>
12418 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
12419 (Warning Options): Document -Wswitch-enum.
12420 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
12422 (warn_switch_enum): Define variables.
12423 * flags.h (warn_switch_enum): Declare variables.
12424 * stmt.c (expand_end_case_type): When warn_switch_enum /
12425 -Wswitch-enum, perform switch checks.
12428 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
12430 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
12431 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
12432 (reload_muladdsi_compare0_scratch): Delete.
12434 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
12436 * doc/install.texi (*-*-freebsd*): Update.
12438 2002-03-26 Richard Henderson <rth@redhat.com>
12440 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
12441 (SUB_PARM_SIZE): Cast DEC to ssizetype.
12443 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
12444 types from the normal argument frame.
12446 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
12447 variable sized objects by reference.
12448 (sparc_va_arg): Receive them by reference too.
12450 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
12452 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
12453 code to not restoring global registers.
12455 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
12457 * Makefile.in (ggc-common.o): Update.
12458 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
12459 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12460 * c-tree.h (c_mark_tree): New.
12461 * ggc-common.c: Include langhooks.h.
12462 (gcc_mark_trees): Use new langhook.
12463 * ggc-callbacks.c: Delete file.
12464 * ggc.h (lang_mark_tree): Remove.
12465 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
12466 (LANG_HOOKS_INITIALIZER): Update.
12467 * langhooks.h (struct lang_hooks): New hook.
12469 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12471 2002-03-25 Zack Weinberg <zack@codesourcery.com>
12473 * doc/cpp.texi: Exclude entire Top node from printed manual.
12474 Move option index after directive index. Insert page breaks
12475 before GFDL and concept index. Index environment variables
12476 with command line options.
12477 * doc/cppenv.texi: Use @vtable for environment variable list.
12478 Add paragraph explaining semantics of empty elements in path
12479 variables. Exclude a cross-reference to Fishkill from the
12480 manpage. Remove an unnecessary cross-reference of the entry
12481 right above the referer. Don't use @anchor in text that goes
12483 * doc/cppopts.texi: Cross-reference the environment variables
12484 section, not the specific environment variable, for consistency.
12486 2002-03-25 Richard Henderson <rth@redhat.com>
12488 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
12489 anywhere in the block. Don't refer to insns that have been
12490 removed from the chain. Iterate backward through the new insns.
12491 Don't refer to edges that have been removed.
12493 2002-03-26 Alan Modra <amodra@bigpond.net.au>
12495 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
12496 test for overflow of constant.
12498 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
12501 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
12502 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
12503 these patterns on arm_archv4.
12505 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
12507 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
12510 2002-03-25 Zack Weinberg <zack@codesourcery.com>
12512 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
12513 float_handled, float_handler, float_signal, set_float_handler,
12514 and do_float_handler. Set handler for SIGFPE to crash_signal.
12515 * toplev.h: Don't prototype do_float_handler.
12517 * c-lex.c: Fold parse_float into lex_number. Make warning
12518 about portability of hex float constants more informative, and
12519 don't issue it on top of a syntax error.
12520 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
12522 * real.h: Define REAL_VALUE_ABS here...
12523 * simplify-rtx.c: ... not here. Fold check_fold_consts,
12524 simplify_unary_real, simplify_binary_real, and
12525 simplify_binary_is2orm1 into their callers.
12526 * tree.c: Fold build_real_from_int_cst_1 into caller.
12528 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
12530 * tsystem.h: Include float.h here...
12531 * libgcc2.c: ... not here.
12533 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
12535 Fixes for: PR bootstrap/3591, target/5676
12536 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
12537 defined. Do not disable exceptions or rtti.
12538 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
12539 mcore.h. Disable exceptions and rtti, since they are not
12542 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
12544 * c-decl.c (maybe_build_cleanup): Remove.
12545 * expr.c (expand_expr): Use langhook.
12546 * langhooks-def.h (lhd_return_null_tree,
12547 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
12548 (LANGHOOKS_INITIALIZER): Update.
12549 * langhooks.c (lhd_return_null_tree): New.
12550 * langhooks.h (struct lang_hooks): New hook.
12551 * tree-inline.c (initialize_inlined_parameters): Use langhook.
12552 * tree.h (maybe_build_cleanup): Remove.
12554 2002-03-25 Jakub Jelinek <jakub@redhat.com>
12556 * regrename.c (build_def_use): Move recog_memoized
12557 before extract_insn.
12559 2002-03-25 Jakub Jelinek <jakub@redhat.com>
12562 * expr.c (emit_group_store): Handle storing into CONCAT.
12564 2002-03-25 Jakub Jelinek <jakub@redhat.com>
12566 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
12567 corresponding MATCH_DUP.
12569 2002-03-24 Richard Henderson <rth@redhat.com>
12571 * unroll.c (unroll_loop): Zero label_map.
12573 * gcse.c: Include except.h.
12574 * Makefile.in (gcse.o): Update.
12576 2002-03-24 Richard Henderson <rth@redhat.com>
12578 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
12579 Do resolve_unique_section before shared data clause.
12581 2002-03-24 Richard Henderson <rth@redhat.com>
12583 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
12585 2002-03-24 Richard Henderson <rth@redhat.com>
12587 * recog.c (peephole2_optimize): Split blocks when EH insns are
12588 generated in the middle of a block. Do global life update if
12591 2002-03-24 Richard Henderson <rth@redhat.com>
12593 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
12595 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
12598 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
12599 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
12600 (init_dependency_output): Don't make no_output decision here.
12602 2002-03-24 Andrew Cagney <ac131313@redhat.com>
12604 * stmt.c (check_for_full_enumeration_handling): Remove tests of
12605 warn_switch. Update description.
12606 (expand_end_case_type): Call check_for_full_enumeration_handling
12609 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12611 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
12612 (m68hc11_split_move): Call it to see if the source and destination
12613 operands use the same direction auto inc/dec mode, otherwise make the
12614 source an offsetable memory operand and generate an add.
12616 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12618 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
12619 register for operand 2.
12620 ("*subsi3_zero_extendqi"): Likewise.
12621 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
12622 bits so that it is compatible with a pop.
12623 ("*andhi3_gen"): Likewise.
12624 ("xorhi3"): Likewise.
12626 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
12628 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
12630 (cpp_post_options): ... not here.
12632 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
12633 Aldy Hernandez <aldyh@redhat.com>
12635 Removal of separate preprocessor cpp0.
12637 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
12638 cpp0, install-common): Update.
12639 * c-common.c (flag_preprocess_only): New.
12640 (c_common_init): Preprocess for -E.
12641 * c-common.h (flag_preprocess_only): New.
12642 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
12643 * c-objc-common.c (c_init_decl_processing): Exit quickly
12644 for NULL return from c_common_init.
12645 * cpplib.h (cpp_preprocess_file): New.
12646 * cppmain.c (main, general_init, pfile, progname): Remove.
12647 (do_preprocessing): Rename cpp_preprocess_file, don't call
12648 cpp_finish. Don't close stdout here.
12649 (setup_callbacks): Update prototype.
12650 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
12652 * tradcpp.c (main): Ignore -quiet.
12654 * lang-specs.h (default_compilers): Preprocess with cc1obj.
12656 2002-03-24 Richard Henderson <rth@redhat.com>
12658 PR optimization/5742
12659 * machmode.def: Add inner mode field to complex modes.
12660 * config/mips/mips.c (mips_function_value): Always define. Add
12661 new argument to handle libcalls.
12662 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
12663 (FUNCTION_VALUE): Likewise.
12664 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
12665 * config/mips/mips-protos.h: Update.
12667 2002-03-23 Richard Henderson <rth@redhat.com>
12669 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
12670 * config/sparc/sparc-protos.h: Update.
12671 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
12673 2002-03-23 Richard Henderson <rth@redhat.com>
12675 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
12676 _start or _init begins the text segment.
12678 2002-03-23 David Edelsohn <edelsohn@gnu.org>
12680 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
12681 not HOST_WIDEST_INT.
12682 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
12684 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
12687 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
12688 operand argument to output_return_instruction.
12689 * arm.c (arm_print_operand, case 'd'): If the operand is
12690 const_true_rtx then just return.
12691 (arm_print_operand, case 'D'): If the operand is const_true_rtx
12694 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12696 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
12697 (Warning Options): Document -Wswitch-default.
12698 * toplev.c (W_options): Add -Wswitch-default. Update comment on
12700 (warn_switch_default): Define variable.
12701 (warn_switch): Update comment.
12702 * flags.h (warn_switch_default): Declare variable.
12703 (warn_switch): Update comment.
12704 * stmt.c (expand_end_case): Check for and, when
12705 warn_switch_no_default, warn of a missing default case.
12707 2002-03-23 Alan Modra <amodra@bigpond.net.au>
12709 * real.h (N): Special case 128 bit doubles.
12711 * combine.c (simplify_comparison): When widening modes, ignore
12712 sign extension on CONST_INTs.
12714 2002-03-22 Bob Wilson <bob.wilson@acm.org>
12716 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
12717 passed to adjust_address. Fix comment formatting.
12720 2002-03-22 Zack Weinberg <zack@codesourcery.com>
12722 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
12723 Always make REAL_VALUE_TYPE a struct containing an array of
12724 HOST_WIDE_INT, not a double. Tidy up the code deciding how
12725 big it is. Don't declare or use union real_extract.
12727 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
12728 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
12729 (print_operand), config/arm/arm.c (output_move_double),
12730 config/arm/arm.md (consttable_4, consttable_8),
12731 config/romp/romp.c (output_fpops), config/s390/s390.h
12732 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
12733 (xtensa_output_literal): Don't use union real_extract.
12735 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
12736 (sfmode_constant_to_ulong), config/ns32k/merlin.h
12737 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
12738 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
12739 (PRINT_OPERAND): Don't use local version of union
12742 * config/convex/convex.c (check_float_value), config/vax/vax.c
12743 (vax_float_literal), config/m88k/m88k.md (divdf3),
12744 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
12745 config/pdp11/pdp11.c (output_move_quad): Don't do host
12746 arithmetic on target floating point quantities.
12748 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
12749 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
12751 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
12752 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
12754 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
12755 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
12757 * print-rtl.c (print_rtx): Disable code which needs
12758 floating-point emulator.
12759 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
12760 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
12761 depending on HOST_FLOAT_FORMAT to be defined properly.
12763 * config/1750a/1750a.c (get_double, float_label): Delete.
12764 (print_operand): Delete huge commented-out chunk. Use
12765 REAL_VALUE_TO_DECIMAL.
12766 * config/1750a/1750a-protos.h: Delete prototypes of deleted
12768 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
12770 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
12771 Use REAL_VALUE_TO_DECIMAL as ELF version does.
12772 * config/m88k/m88k.c (real_power_of_2_operand,
12773 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
12774 real_extract out of the union; run the input through
12775 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
12776 from that into the union.
12777 * config/pdp11/pdp11.c (output_move_double): Rearrange
12778 parentheses to make automatic indenter happy.
12780 * doc/tm.texi (Cross-compilation): Rename node to "Floating
12781 Point" and rewrite to describe current situation. Also adjust
12782 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
12784 * doc/rtl.texi: Adjust cross reference.
12786 2002-03-22 Bob Wilson <bob.wilson@acm.org>
12788 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
12789 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
12790 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
12791 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
12792 prevent use of sp as a reload register.
12793 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
12794 non_acc_reg_operand.
12795 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
12796 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
12797 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
12798 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
12800 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
12802 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
12803 * cpplex.c (unterminated): Delete.
12804 (parse_string): No string literal may extend over multiple
12805 lines. Suppress the error when preprocessing assembly.
12806 * cppmain.c (scan_translation_unit): Strings are single-line.
12808 * doc/cpp.texi: Update to match.
12810 2002-03-22 Jakub Jelinek <jakub@redhat.com>
12812 PR optimization/5854
12813 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
12815 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
12816 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
12817 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
12818 const0 if scratch register was not allocated.
12819 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
12820 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
12821 with GEN_INT (...).
12822 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
12823 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
12824 with GEN_INT (...) everywhere. Remove constraints in define_split
12826 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
12827 require scratch register for setting 0 into regs/non-pushable memory.
12829 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
12831 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
12832 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
12834 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
12836 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
12837 * cppinit.c (cpp_create_reader): On by default.
12838 (cpp_handle_option): Handle -W[no-]endif-labels.
12839 (cpp_post_options): Also enable if -pedantic.
12840 * cpplib.c (do_else): Use it.
12841 (do_endif): Likewise.
12842 * doc/cppopts.texi: Document new option.
12843 * doc/invoke.texi: Document new option.
12845 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
12847 * config/i386/i386.c, config/i386/i386.md: Change all occurences
12848 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
12850 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
12852 * flow.c (calculate_global_regs_live): Clear aux fields of
12855 2002-03-22 Jakub Jelinek <jakub@redhat.com>
12857 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
12858 REG or MEM subregs, pass rtx * instead of rtx to it.
12859 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
12860 rtx * instead of rtx to alter_subreg.
12861 * config/m32r/m32r.c (gen_split_move_double): Likewise.
12862 * config/pj/pj.c (pj_output_rval): Likewise.
12864 2002-03-22 Richard Henderson <rth@redhat.com>
12867 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
12868 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
12869 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
12870 (ia64_expand_prologue): Look at int_regs, not words, for number
12871 of incomming int regs.
12873 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
12875 * expr.c (expand_expr): A RESULT_DECL is part of a call.
12877 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
12879 * toplev.c (flag_loop_optimize, flag_crossjumping):
12880 New static variables.
12881 (rest_of_compilation): Conditionalize crossjumping and
12883 (parse_options_and_default_flags): Default loop_optimize and
12885 (lang_independent_options): Add -fcrossjumping and -floop-optimize
12886 * invoke.texi (crossjumping, loop-optimize): Document.
12888 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
12890 * real.c (eiisneg): Move outside #ifdef NANS.
12892 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
12894 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
12895 frequencies match; avoid match on different loop depths.
12896 (try_crossjump_to_bb): Kill tests that no longer brings time
12898 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
12900 (split_edge): Likewise.
12902 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
12905 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
12906 * cfgrtl.c: Include insn-config.h
12907 (split_block) Dirtify block in presence of conditional execution
12909 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
12911 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
12912 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
12913 (function_arg): Constify CUMULATIVE_ARGS.
12914 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
12915 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
12916 (UNITS_PER_DOUBLE): New macro.
12917 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
12918 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
12919 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
12920 fp_regs and stack_words.
12921 (EABI_FLOAT_VARARGS_P): New macro.
12922 * config/mips/mips.c (struct mips_arg_info): New.
12923 (mips_arg_info): New function.
12924 (function_arg_advance): Use it. Add adjustment instructions here
12925 rather than in function_arg.
12926 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
12927 for VOIDmode at the beginning of the function.
12928 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
12929 (function_arg_pass_by_reference): Likewise.
12930 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
12931 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
12932 (mips_va_start): Likewise. Use the new stack_words field of
12933 CUMULATIVE_ARGS to set up overflow area. Reformat.
12934 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
12935 doubles and other types, aligning the overflow pointer for non-doubles
12936 too. Remove some code duplication. Replace hard-coded constants.
12938 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
12940 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
12941 (CLASS_UNITS): Undefine.
12942 (CLASS_MAX_NREGS): Use FP_INC.
12943 * config/mips/mips.c (compute_frame_size): Likewise.
12944 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
12946 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
12948 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
12949 prototype, and handle lexing numbers and identifiers.
12950 (parse_identifier): Update to new form of parse_slow.
12951 (parse_number): Fast path only, use parse_slow otherwise.
12952 (_cpp_lex_direct): Update calls to parse_number.
12954 2002-03-21 DJ Delorie <dj@redhat.com>
12956 * bb-reorder.c (make_reorder_chain_1): Protect against
12957 when redundant edges are omitted.
12958 * predict.c (dump_prediction): Likewise.
12960 2002-03-21 Richard Henderson <rth@redhat.com>
12963 * fixinc/inclhack.def (solaris_stdio_tag): New.
12964 * fixinc/fixincl.x: Regenerate.
12966 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
12969 * c-typeck.c (process_init_element): Flag non-static
12970 initialization of a flexible array member as illegal.
12972 2002-03-22 Alan Modra <amodra@bigpond.net.au>
12974 * config/rs6000/t-linux64: New.
12975 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
12976 t-ppccomm. Use t-rs6000 and t-linux64.
12977 (powerpc64-*-gnu* <tmake_file>): Likewise.
12978 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
12979 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
12980 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
12982 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
12984 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
12985 flag_really_no_inline instead of optimize == 0.
12987 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
12989 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
12991 * flags.h (flag_really_no_inline): New.
12993 * c-common.c (c_common_post_options): Initialize
12994 flag_really_no_inline.
12996 * toplev.c (flag_really_no_inline): New.
12998 2002-03-21 Jakub Jelinek <jakub@redhat.com>
13000 * config/avr/avr.md (length): Fix length computation for
13001 conditional branches.
13003 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
13005 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
13006 sdbout.o, profile.o): Update.
13007 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
13009 * c-common.h (gettags): Move here from tree.h.
13010 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
13011 insert_block, getdecls, kept_level_p, global_bindings_p): New.
13012 * dbxout.c (dbxout_init): Use getdecls langhook.
13013 * expr.c (expand_expr): Use insert_block langhook.
13014 * fold-const.c: Include langhooks.h.
13015 (fold_range_test, fold_binary_op_with_conditional_arg,
13016 fold): Use global_bindings_p langhook.
13017 * integrate.c (expand_inline_function): Use insert_block langhook.
13018 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
13019 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
13020 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
13021 LANG_HOOKS_GETDECLS): New.
13022 (LANG_HOOKS_INITIALIZER): Update.
13023 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
13025 * langhooks.h (struct lang_hooks_for_decls): New.
13026 (struct lang_hooks): Update.
13027 * profile.c: Include langhooks.h.
13028 (output_func_start_profiler): Use new langhooks.
13029 * sdbout.c: Include langhooks.h.
13030 (sdbout_init, sdbout_finish): Use getdecls langhook.
13031 * stmt.c: Include langhooks.h.
13032 (expand_fixup, fixup_gotos): Use new langhooks.
13033 * stor-layout.c: Include langhooks.h.
13034 (variable_size): Use global_bindings_p langhook.
13035 * toplev.c (compile_file): Use getdecls langhook.
13036 * tree-inline.c (remap_block): Use insert_block langhook.
13037 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
13038 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
13040 2002-03-21 Richard Henderson <rth@redhat.com>
13042 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
13043 constants in .data when -fpic.
13045 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13047 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
13050 2002-03-21 Tom Tromey <tromey@redhat.com>
13052 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
13054 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13056 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
13058 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
13060 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
13061 Richard Henderson <rth@redhat.com>
13064 * c-common.c (c_expand_expr): Preserve result of a statement
13065 expression if needed.
13067 2002-03-21 Jakub Jelinek <jakub@redhat.com>
13070 * genrecog.c (maybe_both_true_mode): Remove.
13071 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
13072 * machmode.def (Pmode): Likewise.
13074 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
13076 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
13077 (nonlocal_mentioned_p_1): New function.
13078 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
13079 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
13080 (mark_constant_function): Recognize pure functions.
13081 * rtl.h (global_reg_mentioned_p): New prototype.
13082 * rtlanal.c (global_reg_mentioned_p,
13083 global_reg_mentioned_p_1): New function.
13085 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13087 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
13089 * fixinc/fixincl.x: Regenerate.
13091 2002-03-20 Jason Merrill <jason@redhat.com>
13093 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
13095 2002-03-20 Michael Meissner <meissner@redhat.com>
13097 * doc/invoke.texi (Optimize Options): Document that -O2 sets
13100 2002-03-20 Bob Wilson <bob.wilson@acm.org>
13102 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
13103 ".literal_position" directive before the constant pool.
13105 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13107 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
13108 Add Craig Rodrigues.
13109 Add Brad Lucier to testers.
13111 2002-03-20 Jakub Jelinek <jakub@redhat.com>
13114 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
13116 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
13117 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
13118 instead of insn_extract.
13120 2002-03-20 Jakub Jelinek <jakub@redhat.com>
13123 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
13125 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
13126 stmt if some case has been output.
13128 2002-03-20 Jakub Jelinek <jakub@redhat.com>
13131 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
13132 movsfcc_1, movdfcc_1): Add %O2.
13133 * config/i386/i386.c (print_operand): Handle %ON.
13134 Print . before float condition codes in Sun as cmov syntax.
13135 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
13136 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
13139 2002-03-20 Philip Blundell <pb@nexus.co.uk>
13141 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
13142 return instruction if PC was popped.
13144 2002-03-20 Bob Wilson <bob.wilson@acm.org>
13146 * config/xtensa/xtensa.md: Remove unused type attributes.
13147 (adddi_carry, subddi_carry): Change type attribute to "multi".
13149 2002-03-19 Dale Johannesen <dalej@apple.com>
13151 PR optimization/5999, middle-end/5731
13152 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
13153 multiplications by reciprocals.
13155 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
13157 * Makefile.in: Update.
13158 * c-common.c: Include langhooks.h.
13159 (inline_forbidden_p): Use new hook.
13160 * diagnostic.c: Include langhooks.h.
13161 (format_with_decl, announce_function,
13162 default_print_error_function): Use new hook.
13163 * dwarf2out.c (dwarf2_name): Use new hook.
13164 * function.c: Include langhooks.h.
13165 (init_function_start): Use new hook.
13166 * langhooks-def.h (lhd_decl_printable_name): New.
13167 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
13168 (LANGHOOKS_INITIALIZER): Update.
13169 * langhooks.c (lhd_decl_printable_name): New.
13170 * langhooks.h (struct lang_hooks): New hook.
13171 * toplev.c (decl_name, decl_printable_name): Remove.
13172 (open_dump_file): Use new hook.
13173 (process_options): Remove old hook.
13174 * tree.h (decl_printable_name): Remove.
13176 * objc-act.c (objc_init): Remove old hook.
13177 (objc_printable_name): Export.
13178 * objc-act.h (objc_printable_name): New.
13179 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
13181 2002-03-19 Jim Blandy <jimb@redhat.com>
13183 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
13184 the start_source_file debug hook, not the current line number.
13186 2002-03-19 Richard Henderson <rth@redhat.com>
13188 * flow.c (EH_USES): Provide default.
13189 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
13190 * doc/tm.texi (EH_USES): New.
13192 * config/ia64/ia64.c (ia64_eh_uses): New.
13193 * config/ia64/ia64-protos.h: Update.
13194 * config/ia64/ia64.h (EH_USES): New.
13196 2002-03-19 Richard Henderson <rth@redhat.com>
13198 * varasm.c (output_constant_def): Fix stupid typo.
13200 2002-03-19 Richard Henderson <rth@redhat.com>
13203 * except.c (current_function_has_exception_handlers): New.
13204 * except.h: Declare it.
13205 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
13206 Combine tests that disable all sibcalls for the function.
13208 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
13210 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
13213 2002-03-19 Richard Henderson <rth@redhat.com>
13216 * config/ia64/ia64.c: Revert 2002-03-01 patch.
13217 * config/ia64/ia64.h (INIT_EXPANDERS): New.
13219 2002-03-19 Jim Blandy <jimb@redhat.com>
13221 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
13222 name, even if the replacement list contains no tokens, as required
13225 2002-03-19 Jason Merrill <jason@redhat.com>
13227 * varasm.c (globalize_decl): Get the name from the RTL, not
13228 DECL_ASSEMBLER_NAME.
13230 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
13232 2002-03-19 Bob Wilson <bob.wilson@acm.org>
13234 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
13235 subdi_carry): Define.
13237 2002-03-19 David Edelsohn <edelsohn@gnu.org>
13239 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
13240 about -fpic/-fPIC if extra_warnings set.
13242 2002-03-19 David Edelsohn <edelsohn@gnu.org>
13244 * expr.c (expand_expr): Sign-extend CONST_INT generated from
13245 TREE_STRING_POINTER.
13246 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
13248 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13250 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
13251 in favor of SP if FRAME_POINTER_REQUIRED is false.
13253 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
13255 * emit-rtl.c (gen_int_mode): New function.
13256 * rtl.h: Prototype for it.
13257 * combine.c (make_extraction, simplify_comparison), expmed.c
13258 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
13259 (convert_modes, store_field), optabs.c (expand_fix),
13260 simplify-rtx.c (neg_const_int, simplify_unary_real),
13262 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
13263 Use it instead of GEN_INT (trunc_int_for_mode (...)).
13265 2002-03-19 Jakub Jelinek <jakub@redhat.com>
13268 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
13269 convert_parm_for_inlining.
13270 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
13272 * langhooks-def.h: Likewise.
13273 * objc/objc-lang.c: Likewise.
13274 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
13276 * tree-inline.c (initialize_inlined_parameters):
13277 Call convert_parm_for_inlining lang hook if needed.
13278 * c-typeck.c (c_convert_parm_for_inlining): New function.
13279 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
13281 2002-03-18 Mark Mitchell <mark@codesourcery.com>
13283 * calls.c (precompute_arguments): Do not assume that temporaries
13284 can be destroyed after expanding the argument.
13285 (expand_call): Likewise.
13287 2002-03-15 Eric Christopher <echristo@redhat.com>
13289 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
13290 Fix register preference on last change.
13291 * config/mips/mips.c (mips_return_in_memory): New function.
13292 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
13293 * config/mips/mips-protos.h: Declare.
13294 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
13295 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
13297 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
13299 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
13301 (anddi3, iorsi3): Likewise.
13303 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
13304 use %gprel for symbols that are going to be placed in linkonce
13307 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
13308 RETURN_ADDRESS_POINTER_REGNUM to $ra.
13309 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
13310 not needed. Disregard leaf_function_p().
13311 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
13312 mips16 frame pointer.
13313 * config/mips/mips.md (store ra): Only to small SP offsets.
13314 2001-08-22 Graham Stott <grahams@redhat.com>
13315 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
13316 return a REG rtx for the return address register.
13318 2002-03-18 Bob Wilson <bob.wilson@acm.org>
13320 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
13321 constant-pool addresses as "mode-dependent".
13322 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
13324 2002-03-18 Jakub Jelinek <jakub@redhat.com>
13327 * expr.c (emit_group_load): Use extract_bit_field if
13328 needed for CONCAT arguments.
13330 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
13333 * arm.md (tablejump): Make this a define_expand. For PIC add the
13334 offset to the base of the table.
13335 (thumb_tablejump): Matcher for Thumb tablejump insn.
13336 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
13337 as the difference of two labels.
13338 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13339 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
13340 tables in the code.
13341 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
13342 * arm.c (get_jump_table_size): If the table is not in the text
13343 section, return zero.
13345 2002-03-18 Bernd Schmidt <bernds@redhat.com>
13347 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
13349 (arm_reload_out_hi): Use gen_lowpart instead of
13350 gen_rtx_SUBREG to access QImode components.
13351 * config/arm/arm.md: Disable zero_extend split for QImode
13352 subregs in BIG_ENDIAN mode.
13353 (storehi_bigend): Match use of least significant byte.
13354 (storeinthi): Remove extraneous SUBREG.
13355 Add missing construction of operands[2].
13356 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
13357 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
13358 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
13360 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
13362 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
13365 2002-03-17 Richard Henderson <rth@redhat.com>
13367 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
13370 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
13372 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
13373 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
13375 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13377 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
13379 * predict.c (estimate_bb_frequencies): Delete unused variables.
13381 2002-03-17 Richard Henderson <rth@redhat.com>
13383 * config/ia64/ia64.c (ia64_attribute_table): Move before
13384 targetm definition. Make static.
13386 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
13388 * c-common.h (yyparse, c_common_parse_file): New.
13389 * c-lang.c: Include c-common.h.
13390 (LANG_HOOKS_PARSE_FILE): Redefine.
13391 * c-lex.c: Include c-common.h.
13392 (yyparse): Rename c_common_parse_file. Call yyparse.
13393 * c-parse.in (yyparse): Remove macro.
13394 * c-tree.h (yyparse_1): Remove.
13395 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
13396 (LANG_HOOKS_INITIALIZER): Update.
13397 * langhooks.h (struct lang_hoooks): New hook parse_file.
13398 * toplev.c (compile_file): Use parse_file hook.
13399 * tree.h (yyparse): Remove.
13400 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
13402 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
13404 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
13405 float_truncate, not fix.
13406 ("*truncdfsf2_real"): Ditto.
13407 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
13409 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
13411 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
13413 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
13414 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
13415 where appropriate. Make the second reference to
13416 leaf_function_p a function call, as intended. Reindented.
13418 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
13419 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
13421 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
13422 add register to non-constant into sp.
13424 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
13425 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
13426 (mips16_gp_pseudo_rtx): Lose.
13427 (INIT_EXPANDERS): Deleted.
13428 * config/mips/mips.c (mips_init_machine_status): New.
13429 (mips_free_machine_status): New.
13430 (mips_mark_machine_status): New.
13431 (override_options): Set them.
13432 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
13433 (struct machine_function): ... new. Replaced all references.
13434 (mips_add_gc_roots): Don't mark them.
13435 (embedded_pic_fnaddr_reg): New, extracted from...
13436 (embedded_pic_offset): ... here.
13437 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
13440 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
13442 * cppinit.c: Revert -MD removal.
13444 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13446 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
13447 soft registers by default for 68HC12.
13448 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
13449 when compiling with -fomit-frame-pointer.
13450 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
13451 (expand_epilogue): Likewise.
13452 (m68hc11_gen_rotate): Use exg when rotating by 8.
13454 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13456 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
13457 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
13458 (splits): Remove unused add splits.
13459 ("*addhi3_68hc12"): Tune constraints.
13460 ("addhi_sp"): Try to use X instead of Y in all cases and if the
13461 constant fits in 8-bits and D is dead use abx/aby instructions.
13462 ("*addhi3"): Remove extern declaration of ix_reg.
13463 ("*subsi3"): Optimize and provide new split.
13464 ("subhi3"): Cleanup.
13465 ("*subhi3_sp"): Avoid saving X if we know it is dead.
13466 (arith splits): For 68hc12 save the address register on the stack
13467 and do the arithmetic operation with a pop.
13469 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13471 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
13472 allocating QImode in address registers.
13473 ("*movqi_m68hc11"): Likewise.
13475 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
13477 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
13479 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
13481 * cppinit.c (print_help): Display -MD and -MMD.
13482 Don't display usage string. Update assertion syntax and
13484 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
13485 (cpp_handle_option): Update.
13487 2002-03-15 Chris Demetriou <cgd@broadcom.com>
13489 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
13490 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
13491 and define it so that regardless of target CPU size,
13492 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
13493 of "int" rather than "long."
13495 2002-03-15 Richard Henderson <rth@redhat.com>
13497 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
13500 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13502 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
13503 ("tstqi" split): Avoid using memory for tstqi on address register.
13504 (splits): Remove constraints.
13505 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
13506 ("cmpdf", "cmpsf"): Remove since not used.
13507 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
13508 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
13510 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13512 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
13513 ("neghi2"): Tighten constraints.
13514 ("one_cmplsi2"): Optimize and simplify split.
13515 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
13517 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13519 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
13520 and split of AND operation to clear the upper bits.
13521 ("*logicalsi3_zextqi"): Likewise.
13522 ("*logicallhi3_zexthi_ashift8"): Likewise.
13523 ("*logicalsi3_silshr16"): Likewise.
13524 ("logicalsi3_silshl16"): Likewise.
13525 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
13527 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13529 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
13530 (m68hc11_indirect_p): New function.
13531 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
13532 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
13534 (asm_print_register): Likewise.
13535 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
13536 (m68hc11_indirect_p): Declare.
13537 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
13538 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
13539 (TARGET_SWITCHES): New option -mrelax.
13540 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
13542 ("iorsi3", "xorsi3"): Likewise.
13543 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
13544 ("*andhi3_mem"): New to handle destination in memory with bclr
13545 and a scratch register.
13546 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
13547 ("*andhi3_const"): New when operand2 is constant.
13548 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
13549 ("*andhi3_gen"): Cleanup of the old "andhi3".
13550 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
13551 ("xorqi3"): Update constraints.
13553 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13555 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
13556 for reg_equiv_memory_loc when the operand is a register that does
13557 not get a hard register (stack location).
13558 (tst_operand): After reload, accept all memory operand.
13559 (symbolic_memory_operand): Fix detection of symbolic references.
13560 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
13561 accept symbols and any constant.
13563 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13565 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
13566 note on the insn that sets the soft frame register.
13567 (must_parenthesize): ix and iy are also reserved names.
13568 (print_operand_address): One more place where parenthesis are required
13569 to avoid confusion with register names.
13570 (m68hc11_gen_movhi): Allow push of stack pointer.
13571 (m68hc11_check_z_replacement): Fix handling of parallel with a
13573 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
13574 the replacement register is.
13575 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
13576 and D8_REGS classes.
13577 (MODES_TIEABLE_P): All modes are tieable except QImode.
13579 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13581 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
13582 (___subdi3): Likewise.
13583 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
13584 (__map_data_section): Optimize 68hc11 case.
13586 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13588 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
13589 than a shift to avoid adding a register with itself.
13590 (m68hc11_memory_move_cost): Take into account NO_REGS.
13591 (m68hc11_register_move_cost): Update and use memory move cost
13592 for soft registers.
13593 (m68hc11_address_cost): Make cost of valid offset not 0 so that
13594 it gives more opportunities to cse to optimize.
13595 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
13596 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
13598 2002-03-15 Mark Mitchell <mark@codesourcery.com>
13600 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
13601 * c-common.def (CLEANUP_STMT): New tree node.
13602 * c-common.h (CLEANUP_DECL): New macro.
13603 (CLEANUP_EXPR): Likewise.
13604 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
13605 * expr.c (expand_expr): Tidy.
13606 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
13607 * tree-inline.c (initialize_inlined_parameters): Clean up
13608 new local variables.
13610 2002-03-15 Jakub Jelinek <jakub@redhat.com>
13613 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
13614 before movrXX only, use reg_overlap_mentioned_p.
13615 Only special case NE if just one insn can be generated.
13617 2002-03-15 Jason Merrill <jason@redhat.com>
13619 * varasm.c (assemble_variable): Call resolve_unique_section before
13620 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
13621 of error_mark_node.
13623 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
13626 * arm.md (split pattern for thumb shiftable immediates): Add comment
13627 explaining non-obvious test.
13629 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
13632 * arm.md (movaddr, movaddr_insn): Delete.
13634 2002-03-15 Jason Merrill <jason@redhat.com>
13636 * toplev.c (wrapup_global_declarations): Clarify variable handling.
13637 -fkeep-static-consts doesn't apply to comdats.
13639 2002-03-14 Richard Henderson <rth@redhat.com>
13641 * c-decl.c: Include c-pragma.h.
13642 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
13643 (finish_function): Tidy.
13644 * c-pragma.c: Include c-common.h.
13645 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
13646 (handle_pragma_weak): Use them.
13647 (init_pragma): Register pending_weaks.
13648 * c-pragma.h (maybe_apply_pragma_weak): Declare.
13649 * print-tree.c (print_node): Print DECL_WEAK.
13650 * varasm.c (mark_weak_decls): Remove.
13651 (remove_from_pending_weak_list): Remove.
13652 (add_weak): Remove.
13653 (asm_emit_uninitialised): Call globalize_decl for weak commons.
13654 (weak_decls): Make a tree_list.
13655 (declare_weak): Cons weak_decls directly.
13656 (globalize_decl): Remove weak_decls elements directly.
13657 (weak_finish): Simplify weak_decls walk. Don't weaken unused
13658 symbols. Don't pretend to handle aliases.
13659 (init_varasm_once): Update weak_decls registry.
13660 * Makefile.in: Update dependencies.
13662 2002-03-14 Richard Henderson <rth@redhat.com>
13665 * config/ia64/ia64.c: Include tm_p.h last.
13666 (gen_nop_type): Remove duplicate definition.
13667 (cycle_end_fill_slots): Set sched_data for second L slot.
13668 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
13669 (nop_cycles_until): Fix typos.
13671 2002-03-15 Jakub Jelinek <jakub@redhat.com>
13673 PR optimization/5891
13674 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
13676 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
13678 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
13679 descriptors correctly.
13681 2002-03-14 Michael Meissner <meissner@redhat.com>
13683 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
13684 100, allowing MAX_UNROLLED_INSNS to be overridden.
13686 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
13689 * unroll.c (params.h): Include.
13690 (MAX_UNROLLED_INSNS): Delete, now in params.h.
13692 * doc/invoke.texi (--param max-unroll-insns): Document.
13694 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
13696 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
13698 * arm.md: Fix warnings about constraints in peepholes and splits.
13700 2002-03-14 Zack Weinberg <zack@codesourcery.com>
13702 * cpphash.h (struct lexer_state): Remove line_extension member.
13703 * cpplib.c (dequote_string, do_linemarker): New functions.
13704 (linemarker_dir): New data object.
13705 (DIRECTIVE_TABLE): No longer need to interpret #line in
13706 preprocessed source. Delete obsolete comment about return
13707 values of handlers.
13708 (end_directive, directive_diagnostics, _cpp_handle_directive):
13709 Don't muck with line_extension.
13710 (directive_diagnostics): No need to issue warnings for
13712 (_cpp_handle_directive): Issue warnings for linemarkers here,
13713 when appropriate. Dispatch linemarkers to do_linemarker, not
13715 (do_line): Code to handle linemarkers split out to do_linemarker.
13716 Convert escape sequences in filename argument, both places.
13718 * cppmacro.c (quote_string): Rename cpp_quote_string and
13719 export. All callers changed.
13720 * cpplib.h (cpp_quote_string): Prototype.
13721 * cppmain.c (print_line): Call cpp_quote_string on to_file
13722 before printing it.
13724 * doc/cpp.texi: Document that escapes are now interpreted in
13725 #line and in linemarkers, and that non-printing characters are
13726 converted to octal escapes when linemarkers are generated.
13728 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
13730 * emit-rtl.c (try_split): Use delete_insns.
13731 * recog.c (split_all_insns): Fix terminating condition.
13733 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
13734 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
13737 * arm.c (arm_output_epilogue): Fix floating-point register save
13738 adjustment when using a frame pointer.
13740 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
13742 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
13743 * config/mips/mips.c (compute_frame_size): Retrofit them here.
13744 (save_restore_insns, mips_expand_epilogue): And here.
13745 (build_mips16_call_stub): And here.
13746 (mips_function_value): Use the new macros to decide whether a single
13747 or complex float can be returned in floating-point registers. Return
13748 a parallel rtx in the complex case.
13750 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
13752 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
13753 call after liveness analysis.
13755 * recog.c (split_insn): Use delete_insn_and_edges.
13757 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
13758 instructions to have branch prediction notes.
13759 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
13761 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
13763 * configure.in: Don't pass -Wno-long-long to a ADA compiler
13764 that doesn't support it.
13765 * configure: Regenerate.
13767 2002-03-13 Jakub Jelinek <jakub@redhat.com>
13770 * config/sparc/sparc.md (normal_branch, inverted_branch,
13771 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
13772 inverted_fp_branch): Adjust calls to output_cbranch.
13773 Set length attribute.
13774 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
13775 output_v9branch. Set length attribute.
13776 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
13778 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
13779 (output_cbranch): Likewise. Handle far branches.
13780 (output_v9branch): Handle far branches.
13781 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
13783 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
13784 noov_compare64_op predicates.
13786 2002-03-13 Jason Merrill <jason@redhat.com>
13788 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
13789 into the function and constify it.
13790 * gthr-dce.h, gthr-solaris.h: Likewise.
13792 2002-03-13 David Edelsohn <edelsohn@gnu.org>
13794 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
13795 * config/rs6000/rs6000.c (rs6000_va_arg): Use
13796 std_expand_builtin_va_arg if not ABI_V4.
13798 2002-03-13 Jason Merrill <jason@redhat.com>
13800 * varasm.c (globalize_decl): New fn.
13801 (assemble_start_function): Use it.
13802 (asm_emit_uninitialized): Use it.
13803 (assemble_alias): Use it.
13804 (assemble_variable): Use it.
13806 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
13808 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
13809 2002-03-12 internal visibility change.
13810 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
13811 visibility into SYMBOL_REF_FLAG.
13813 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
13815 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
13816 VOIDmode operand. Add compile-time optimization for constant results.
13818 2002-03-12 Jason Merrill <jason@redhat.com>
13820 * c-typeck.c (convert_for_assignment): Don't allow conversions
13821 between pointers and references. Only allow lvalues to convert to
13824 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
13826 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
13827 before prologue, to avoid scheduling problems.
13829 2002-03-13 Jakub Jelinek <jakub@redhat.com>
13831 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
13832 (ELIMINABLE_REGS): Add sfp->sp.
13833 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
13835 2002-03-13 Jakub Jelinek <jakub@redhat.com>
13837 PR optimization/5892
13838 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
13840 2002-03-13 Jakub Jelinek <jakub@redhat.com>
13842 * loop.c (basic_induction_var): Don't call convert_modes if mode
13843 classes are different.
13845 2002-03-12 Richard Henderson <rth@redhat.com>
13847 PR optimization/5901
13848 * function.c (reposition_prologue_and_epilogue_notes): Position
13849 the markers after/before the last/first insn not deleted.
13851 2002-03-12 Richard Henderson <rth@redhat.com>
13853 PR optimization/5878
13854 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
13855 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
13856 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
13858 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
13859 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
13860 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
13862 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
13863 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
13864 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
13865 also. Don't set it if not flag_pic.
13866 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
13867 to be INVALID_REGNUM when not used.
13869 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
13871 * expmed.c (store_bit_field): Reset alias set for memory.
13872 (extract_bit_field): Same.
13874 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13876 * c-common.c (c_tree_code_type, c_tree_code_length,
13877 c_tree_code_name, add_c_tree_codes): Delete.
13878 * c-common.h (add_c_tree_codes): Delete.
13879 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
13881 * c-objc-common.c (c_objc_common_init): Don't call
13882 add_c_tree_codes, instead set lang_unsafe_for_reeval.
13883 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
13884 objc_tree_code_name, add_objc_tree_codes): Delete.
13885 (objc_init): Don't call add_objc_tree_codes.
13886 * objc/objc-lang.c (tree_code_type, tree_code_length,
13887 tree_code_name): Define.
13888 * toplev.c (lang_independent_init): Don't set
13889 tree_code_length[IDENTIFIER_NODE].
13890 * tree.c (tree_code_type, tree_code_length, tree_code_name):
13891 Delete definitions, moved to language front-ends.
13892 * tree.def (IDENTIFIER_NODE): Hardwire the length.
13893 * tree.h (tree_code_type, tree_code_length, tree_code_name):
13895 (tree_code_length): Change type to unsigned char.
13897 2002-03-12 Richard Henderson <rth@redhat.com>
13899 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
13900 internal visibility change.
13902 2002-03-12 Bob Wilson <bob.wilson@acm.org>
13904 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
13905 validize_mem() instead of change_address to avoid clobbering
13908 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
13910 * c-lex.h (position_after_whitespace): Remove.
13912 2002-03-12 Jakub Jelinek <jakub@redhat.com>
13914 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
13915 (lex_string): Use unsigned char pointers.
13917 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
13919 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
13920 is not a valid memory_operand.
13922 2002-03-12 Bob Wilson <bob.wilson@acm.org>
13924 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
13925 * config/xtensa/lib1funcs.asm: Fix copyright to include
13926 special case for libgcc files.
13927 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
13928 (__divsi3): Likewise.
13929 (__umodsi3): Likewise.
13930 (__modsi3): Likewise.
13931 * config/xtensa/lib2funcs.S: Fix copyright to include
13932 special case for libgcc files.
13934 2002-03-12 Tom Rix <trix@redhat.com>
13936 * collect2.c (resolve_lib_name): Move outside of
13937 OBJECT_FORMAT_COFF ifdef.
13938 (ignore_library): Same.
13940 2002-03-12 Bob Wilson <bob.wilson@acm.org>
13942 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
13944 2002-03-12 Bob Wilson <bob.wilson@acm.org>
13946 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
13947 to function_section before writing out the constant pool.
13949 2002-03-12 David Edelsohn <edelsohn@gnu.org>
13951 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
13953 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
13955 2002-03-12 Alan Modra <amodra@bigpond.net.au>
13957 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
13958 (adddi3): Likewise.
13961 (cmpsi splitter): Likewise.
13962 (modsi3): Fail if <= 0.
13963 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
13964 redundant test when HOST_BITS_PER_WIDE_INT != 32.
13965 (reg_or_sub_cint64_operand): Likewise.
13966 (num_insns_constant_wide): Optimize sign extension.
13967 (rs6000_legitimize_address): Likewise.
13969 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
13971 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13972 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13974 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
13976 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
13977 address calculation.
13979 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
13981 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
13982 scratch register to DImode / TImode.
13983 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
13984 register used does not overlap the target.
13986 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13988 * Makefile.in (debug.o): Depend on debug.h.
13989 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
13990 * debug.c (do_nothing_debug_hooks): Likewise.
13991 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
13992 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
13993 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
13994 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
13995 * dwarfout.c (dwarf_debug_hooks): Likewise.
13996 * integrate.c (output_inline_function): Likewise.
13997 * objc/objc-act.c (synth_module_prologue): Likewise.
13998 * sdbout.c (sdb_debug_hooks): Likewise.
13999 * toplev.c (debug_hooks): Likewise.
14000 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14002 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14004 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
14005 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
14006 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
14007 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
14008 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
14009 * defaults.h (POINTER_SIZE): Define.
14010 * doc/tm.texi (POINTER_SIZE): Document default.
14012 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14014 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
14016 2002-03-11 Richard Henderson <rth@redhat.com>
14018 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
14019 if rebuild_label_notes_after_reload.
14021 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
14023 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
14024 emit pic register load if "internal" visibility.
14025 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
14026 (cris_expand_builtin_va_arg): Do all computations on trees.
14028 2002-03-11 Richard Henderson <rth@redhat.com>
14030 * rtlanal.c: Include recog.h.
14031 (keep_with_call_p): Fix thinko.
14032 * Makefile.in (rtlanal.o): Update dependencies.
14034 2002-03-11 Chris Meyer <cmeyer@gatan.com>
14036 * genflags.c (gen_insn): Use IS_VSPACE.
14037 * genoutput.c (output_insn_data): Likewise.
14038 (process_template): Likewise.
14040 2002-03-11 Richard Henderson <rth@redhat.com>
14042 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
14044 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
14046 * Makefile.in: Update.
14047 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
14048 Update documentation.
14049 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
14050 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
14052 2002-03-11 Zack Weinberg <zack@codesourcery.com>
14054 * Makefile.in: Give texi2pod its input file as a command line
14055 argument, not on stdin.
14057 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
14058 Daniel Berlin <dan@dberlin.org>
14060 C++ alias analysis improvement.
14061 * alias.c (record_component_aliases): Record aliases for base
14064 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
14066 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
14068 2002-03-11 Douglas B Rupp <rupp@gnat.com>
14070 * toplev.c (vms_fopen): Remove, not needed.
14072 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
14074 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
14076 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
14077 for FP, already done later.
14079 * toplev.c (debug_args): Add entry for VMS_DEBUG.
14080 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
14082 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
14084 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
14085 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
14086 LARGEST_EXPONENT_IS_NORMAL for the given mode.
14087 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
14088 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
14089 (ediv, emul, eldexp, esqrt): Likewise.
14090 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
14091 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
14092 (saturate): New function.
14093 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
14094 (make_nan): Use a saturation value instead of a NaN if
14095 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
14096 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
14097 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
14098 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
14099 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
14100 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
14101 !ROUND_TOWARDS_ZERO.
14102 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
14103 (ROUND_TOWARDS_ZERO): Document.
14105 2002-03-11 Andreas Jaeger <aj@suse.de>
14107 * cfg.c (dump_flow_info): Remove unused variable.
14109 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
14111 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
14112 computations on trees.
14114 2002-03-10 Richard Henderson <rth@redhat.com>
14117 * reload.c (copy_replacements_1): New.
14118 (copy_replacements): Use it to recurse through the rtx.
14120 2002-03-10 Richard Henderson <rth@redhat.com>
14122 * loop.c (strength_reduce): Compute number of iterations as
14123 unsigned HOST_WIDE_INT.
14125 2002-03-10 Richard Henderson <rth@redhat.com>
14127 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
14128 to move away from the end of the block.
14130 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
14132 PR preprocessor/5899
14133 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
14135 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14137 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
14139 * attribs.c (decl_attributes): Fix signed/unsigned warning.
14141 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
14143 * config/mmix/mmix.c: Improve comments.
14144 (mmix_target_asm_function_prologue): Drop variable
14145 empty_stack_frame. Don't allocate unused slot above fp.
14146 (mmix_target_asm_function_epilogue): Mirror prologue changes.
14147 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
14148 brace in first column.
14149 (enum reg_class): Ditto.
14150 (FIRST_PARM_OFFSET): Now 0.
14151 (USER_LABEL_PREFIX): Remove #if 0:d definition.
14153 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14155 * combine.c (make_extraction): Fix error in last change.
14157 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14159 * c4x.c (c4x_fp_reglist): Const-ify.
14160 * cris.c (cris_print_operand): Likewise.
14161 * i386.c (ix86_va_arg): Likewise.
14162 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
14163 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
14164 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
14165 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
14166 * mcore.h (regno_reg_class): Likewise.
14167 * mips.c (gen_int_relational): Likewise.
14168 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
14169 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
14170 * pdp11.c (move_costs): Likewise.
14171 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
14172 * s390.c (s390_branch_condition_mnemonic, regclass_map):
14174 * s390.h (regclass_map): Likewise.
14175 * sh.c (shift_amounts): Likewise.
14176 * sh.md (rotlsi3): Likewise.
14178 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
14180 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
14181 (ne0+5): Use new clobber to generate proper shift pattern.
14182 Patch by Michael Matz <matz@kde.org>.
14184 2002-03-09 Andreas Schwab <schwab@suse.de>
14186 * gcc.c (validate_all_switches): Also handle `%W{...}'.
14188 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
14190 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
14192 2002-03-09 Jakub Jelinek <jakub@redhat.com>
14195 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
14196 even for non-representable constants.
14198 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14200 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
14201 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
14202 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
14203 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
14204 (pop_function_context): Compute MAY_SHARE parameter for
14206 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
14207 (gen_mem_addressof): Call fixup_var_refs with new parm.
14209 * combine.c (make_extraction): Don't make extension of CONST_INT.
14211 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
14213 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
14214 in o32 and o64 ABIs.
14215 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
14216 but getting fixed-size structs passed in registers regardless of
14217 padding in o32 and o64 ABIs.
14219 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
14220 offset before loading address of argument passed by transparent
14223 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
14225 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
14227 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
14229 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
14230 marker such that registers after it are saved.
14232 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14234 * sparc.c (arith_4096_operand): Fix error in last change.
14236 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
14238 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
14239 defaults for MEABI.
14241 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
14243 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
14246 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
14248 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
14250 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
14252 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
14253 removed; fix return value.
14254 * combine.c (combine_instructions): Dirtify blocks where we failed to
14255 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
14256 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
14258 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14260 * gcse.c (insert_insn_end_bb): Fix typo in last change.
14262 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
14264 * recog.c (peephole2_optimize): Re-distribute EH edges.
14266 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
14268 * expr.c (expand_expr): Use unsave lang hook.
14269 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
14270 (LANG_HOOKS_INITIALIZER): Update.
14271 * langhooks.h (struct lang_hooks): New hook unsave.
14272 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
14273 (unsave_expr_1): Remove unused lang_unsave_expr_now.
14274 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
14275 (unsave_expr_now): Remove.
14276 * tree.h (unsave_expr_now, lang_unsave,
14277 lang_unsave_expr_now): Remove.
14280 2002-03-08 Andreas Jaeger <aj@suse.de>
14282 * flow.c (propagate_block_delete_insn): Remove unused variable.
14284 2002-03-08 Kazu Hirata <kazu@hxi.com>
14286 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
14287 insn length for memory load/store.
14289 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
14291 * doc/install.texi (--with-libiconv-prefix): Document.
14293 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
14295 * doc/sourcebuild.texi: Fix typo.
14297 2002-03-08 Jakub Jelinek <jakub@redhat.com>
14300 * builtins.c (std_expand_builtin_va_arg): Do all computations on
14303 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14305 * rtl.c (copy_most_rtx): Move from here ...
14306 * emit-rtl.c (copy_most_rtx): ... to here.
14308 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
14310 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
14311 SUBTARGET_CPP_SIZE_SPEC.
14312 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
14314 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
14316 2002-03-07 Matt Hiller <hiller@redhat.com>
14318 * gensupport.c (first_dir_md_include): Renamed from include;
14319 change all references.
14320 (last_dir_md_include): Renamed from last_include; change all
14322 (init_md_reader): Unconditionally initialize base_dir whether or
14323 not filename is a relative path.
14325 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
14327 * config/fp-bit.c (_unord_f2): Compile it in even if
14328 US_SOFTWARE_GOFAST is enabled.
14330 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
14331 NULL_RTX. Set all HFmode operations as NULL_RTX.
14332 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
14333 NULL_RTX, try reversing the comparison and the operands.
14335 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
14337 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
14338 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
14341 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
14343 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
14345 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
14347 * basic-block.h (fixup_abnormal_edges): Declare.
14348 * reload1.c (fixup_abnormal_edges): New function.
14349 * reg-stack.c (convert_regs): Use it.
14351 * gcse.c (insert_insn_end_bb): Handle trapping insns.
14353 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
14355 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
14357 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
14358 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
14359 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
14360 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
14361 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
14362 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
14363 unless x and y could be infinite.
14364 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
14365 Check that the common type of both arguments is a real, even for
14366 targets without unordered comparisons. Allow an integer argument
14367 to be compared against a real.
14368 (expand_tree_builtin): Use expand_unordered_cmp.
14369 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
14370 * cse.c (fold_rtx): Likewise. Fix indentation.
14371 * fold-const.c (fold_real_zero_addition_p): New.
14372 (fold): Use it, and the new HONOR_... macros.
14373 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
14374 * jump.c (reversed_comparison_code_parts): After searching for
14375 the true comparison mode, use HONOR_NANS to decide whether it
14376 can be safely reversed.
14377 (reverse_condition_maybe_unordered): Remove IEEE check.
14378 * simplify-rtx.c (simplify_binary_operation): Use the new macros
14379 to decide which simplifications are valid. Allow the following
14380 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
14381 and (a - -b) to (a + b).
14382 (simplify_relational_operation): Use HONOR_NANS.
14383 * doc/tm.texi: Document the MODE_HAS_... macros.
14385 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
14387 * combine.c (simplify_comparison): If simplifying a logical shift
14388 right and compare with constant, force the comparison to unsigned.
14390 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
14392 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
14394 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
14396 (alt_reg_names): Remove % for vrsave.
14398 2002-03-06 Richard Henderson <rth@redhat.com>
14400 PR optimization/5844
14401 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
14402 if used indicates we've already emitted one copy of an operand.
14403 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
14404 (gen_split): Supply a non-null used.
14406 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
14408 * reload1.c (reload): Unshare all rtl after reload is done.
14410 * simplify-rtx.c (simplify_plus_minus): Do not abort,
14411 but simply fail if the expression is too complex to simplify.
14412 (simplify_gen_binary): Handle simplify_plus_minus failures.
14414 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
14416 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
14417 consistently call delete_trivially_dead_insns after CSE and GCSE;
14418 fix DFI_life dumping; do jump threading after liveness; do crossjumping
14419 after liveness2; update comment in last crossjumping.
14420 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
14422 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
14424 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
14425 after completing fast dead code elimination.
14427 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
14430 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
14432 * version.c: Fix misplaced leading blanks on first line.
14434 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
14436 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
14438 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
14440 * cfgcleanup.c (mentions_nonequal_regs): New function.
14441 (thread_jump): Use it.
14442 * toplev.c (rest_of_compilation): Run jump threading after
14445 2002-03-06 Jakub Jelinek <jakub@redhat.com>
14447 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
14450 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
14452 * predict.c (estimate_bb_frequencies): Do not reload the
14453 frequencies from notes.
14455 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
14457 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
14458 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
14460 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
14461 delete_noop_moves): Return indeger.
14462 * flow.c (ndead): New variable.
14463 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
14464 BB argument; update callers.
14465 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
14466 (life_analysis): Do not call purge_all_dead_edges.
14467 (update_life_info): Return number of deleted insns; print statistics.
14468 (update_life_info_in_dirty_blocks): likewise.
14469 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
14470 return number of insns deleted.
14472 * cse.c: Include timevar.h
14473 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
14474 iterate until stabilizes; print statistics; return number of killed
14476 * Makefile.in: (cse.o): Add timevar.h dependency
14477 * rtl.h (delete_trivially_dead_insns): New.
14478 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
14479 * toplev.c (rest_of_compilation): Update callers.
14481 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
14482 (try_optimize_cfg): Do not update liveness.
14483 (cleanup-cfg): Loop until try_optimize_cfg and dead code
14484 removal stabilizes; use delete_trivially_dead_insns.
14486 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
14488 2002-03-05 Zack Weinberg <zack@codesourcery.com>
14490 * cppmain.c (setup_callbacks): Disable #pragma and #ident
14491 callbacks when processing assembly language.
14493 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
14495 * pa.h (ASM_FILE_END): Define.
14496 * som.h (ASM_FILE_END): Delete.
14498 * pa.c (function_arg): Don't pass floats in general registers in
14499 indirect calls if TARGET_ELF32.
14501 2002-03-05 Richard Henderson <rth@redhat.com>
14503 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
14505 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
14507 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
14509 2002-03-05 Jakub Jelinek <jakub@redhat.com>
14511 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
14512 -r command line. Don't hide any symbols if not building
14515 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
14517 * cfg.c (dump_flow_info): Warn about profile mismatches.
14518 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
14519 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
14521 2002-03-05 Jakub Jelinek <jakub@redhat.com>
14523 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
14524 wide volatile memory by parts.
14526 2002-03-05 Jakub Jelinek <jakub@redhat.com>
14528 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
14531 2002-03-05 Richard Henderson <rth@redhat.com>
14533 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
14535 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
14537 * toplev.c (documented_lang_options): Document more
14538 language-specific options.
14539 * doc/invoke.texi (Warning Options): Correct documentation for
14540 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
14541 * c-decl.c (c_decode_option): Use a table to handle warning options.
14543 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
14545 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
14546 parameter to mmix_encode_section_info.
14547 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
14548 relocatably. Always produce ELF, not mmo if linking relocatably.
14549 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
14550 first is non-zero, don't add symbol prefix.
14551 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
14552 prototype accordingly.
14554 2002-03-04 Krister Walfridsson <cato@df.lth.se>
14556 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
14558 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
14560 * configure.in: Increase required makeinfo version to 4.1.
14561 * configure: Regenerate.
14563 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
14565 * .cvsignore: Remove *.info* and genrtl*; these files are generated
14568 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
14570 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
14571 * doc/invoke.texi: Fix @math uses.
14573 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
14575 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
14578 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
14580 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
14581 (powerpc-*-eabisimaltivec*): Same.
14583 * config/rs6000/t-ppcendian: New.
14585 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14587 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
14588 nonimmediate_src_operand and nonimmediate_lsrc_operand to
14589 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
14591 2002-03-03 Richard Henderson <rth@redhat.com>
14593 * toplev.c (rest_of_decl_compilation): Revert last two changes.
14595 2002-03-03 Zack Weinberg <zack@codesourcery.com>
14597 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
14598 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
14599 tree.c, config/m68k/m68k.c:
14600 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
14601 REAL_ARITHMETIC blocks unconditional. Delete some further
14602 #ifdef blocks predicated on REAL_ARITHMETIC.
14603 * flags.h, toplev.c: Delete remaining references to
14604 flag_pretend_float.
14606 * doc/invoke.texi: Remove documentation of -fpretend-float.
14607 * doc/tm.texi: Describe the various REAL_* macros as provided by
14608 real.h, not by the target configuration files.
14610 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
14611 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
14612 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14613 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
14614 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
14615 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
14616 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
14617 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
14618 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
14619 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
14620 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
14621 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14622 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
14623 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
14624 config/xtensa/xtensa.h:
14625 Do not define, undefine, or mention in comments any of
14626 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
14627 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
14628 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
14629 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
14630 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
14631 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
14632 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
14633 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
14634 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
14636 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14638 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
14639 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
14640 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
14641 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
14642 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
14643 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
14645 * defaults.h (BITS_PER_WORD): Define.
14646 * doc/tm.texi (BITS_PER_WORD): Document default value.
14648 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
14649 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
14650 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
14652 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14654 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
14655 lieu of explicit sizeof/sizeof.
14656 * i386.c (override_options, ix86_init_mmx_sse_builtins,
14657 ix86_expand_builtin): Likewise.
14658 * mips.c (mips_add_gc_roots): Likewise.
14659 * mmix.c (mmix_output_condition): Likewise.
14660 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
14661 altivec_init_builtins): Likewise.
14662 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
14663 * cppexp.c (Nsuff, parse_number): Likewise.
14664 * cppinit.c (builtin_array_end): Likewise.
14665 * gcc.c (n_default_compilers, process_command): Likewise.
14666 * genpreds.c (output_predicate_decls): Likewise.
14667 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
14668 * lcm.c (N_ENTITIES): Likewise.
14669 * stor-layout.c (set_sizetype): Likewise.
14671 2002-03-03 Richard Henderson <rth@redhat.com>
14673 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
14674 for types or labels.
14676 2002-03-03 Richard Henderson <rth@redhat.com>
14678 * c-decl.c (start_decl): Initialized variables are not common.
14680 2002-03-02 Per Bothner <per@bothner.com>
14682 * gcc.c (option_map): Suport new --bootclasspath option.
14683 --CLASSPATH is now just an alias for --classpath.
14685 2002-03-02 Richard Henderson <rth@redhat.com>
14687 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
14688 load if "internal" visibility.
14689 * doc/extend.texi: Document visibility meanings.
14691 2002-03-02 Richard Henderson <rth@redhat.com>
14693 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
14694 to functions as well.
14696 2002-03-02 Richard Henderson <rth@redhat.com>
14698 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
14699 (handle_visibility_attribute): Don't call assemble_visibility.
14700 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
14701 without asmspec. Invoke assemble_alias when needed.
14702 * varasm.c (maybe_assemble_visibility): New.
14703 (assemble_start_function, assemble_variable, assemble_alias): Use it.
14705 2002-03-02 Richard Henderson <rth@redhat.com>
14707 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
14708 invoke ENCODE_SECTION_INFO with first call flag.
14710 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
14711 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
14712 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
14713 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
14714 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
14715 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
14716 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
14717 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
14718 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
14719 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
14720 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
14721 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
14722 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
14723 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
14724 config/mcore/mcore-protos.h, config/mcore/mcore.c,
14725 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
14726 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
14727 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
14728 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
14729 config/sh/sh.h, config/sparc/sparc.h,
14730 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
14731 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
14732 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
14733 FIRST argument. As needed, examine it and do nothing.
14735 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
14736 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14737 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
14739 * config/arm/t-pe (pe.o): Add dependencies.
14741 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14743 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
14744 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
14745 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
14746 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
14747 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
14748 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
14749 * defaults.h (BITS_PER_UNIT): Define.
14750 * doc/tm.texi (BITS_PER_UNIT): Document default value.
14752 2002-03-02 Kazu Hirata <kazu@hxi.com>
14754 * config/h8300/h8300-protos.h: Add a prototype for
14755 compute_a_shift_length.
14756 * config/h8300/h8300.c (h8300_asm_insn_count): New.
14757 (compute_a_shift_length): Likewise.
14758 (h8300_adjust_insn_length): Do not adjust insn length of shift
14760 * config/h8300/h8300.md (anonymous shift patterns): Use
14761 compute_a_shift_length.
14763 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14765 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
14766 trunc_int_for_mode.
14768 * emit-rtl.c (offset_address): Call update_temp_slot_address.
14770 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14772 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
14773 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
14774 * flags.h (flag_zero_initialized_in_bss): Declare.
14775 * toplev.c (flag_zero_initialized_in_bss): New flag.
14776 (lang_independent_options): Add flag_zero_initialized_in_bss.
14777 * tree.c (initializer_zerop): New function.
14778 * tree.h (initializer_zerop): Declare.
14779 * varasm.c (assemble_variable): If we can emit bss, put zero
14780 initializers in the bss section.
14782 2002-03-02 Alan Modra <amodra@bigpond.net.au>
14784 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
14785 like more than one symbol per .weak directive.
14787 2002-03-01 Richard Henderson <rth@redhat.com>
14789 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
14790 adjust argument_pointer by pretend_args_size.
14791 (ia64_va_start): Adjust va_start address by -pretend_args_size.
14793 2002-03-01 Kazu Hirata <kazu@hxi.com>
14795 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
14797 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
14799 * toplev.c (rest_of_compilation): Delete dead jumptables before
14801 * flow.c (delete_dead_jumptables): Make global.
14802 * rtl.h (delete_dead_jumptables): Declare.
14804 2002-03-01 David Edelsohn <edelsohn@gnu.org>
14806 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
14807 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
14808 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
14810 2002-03-01 Kazu Hirata <kazu@hxi.com>
14812 * config/h8300/h8300-protos.h: Fix formatting.
14813 * config/h8300/h8300.c: Likewise.
14814 * config/h8300/h8300.h: Likewise.
14816 2002-03-01 Kazu Hirata <kazu@hxi.com>
14818 * config/h8300/h8300.c (print_operand): Support 16-bit
14819 constant addresses.
14820 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
14822 2002-02-28 Richard Henderson <rth@redhat.com>
14824 * expmed.c (store_bit_field): Prevent generation of CONCATs;
14825 pun complex values as integers; use gen_lowpart instead of
14827 (extract_bit_field): Likewise.
14829 2002-03-01 Alan Modra <amodra@bigpond.net.au>
14830 David Edelsohn <edelsohn@gnu.org>
14832 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
14833 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
14834 (SUPPORTS_WEAK): Likewise.
14835 * output.h (add_weak): Add tree param.
14836 * varasm.c (add_weak): Likewise. Save decl.
14837 (struct weak_syms): Add decl field.
14838 (mark_weak_decls): New function.
14839 (init_varasm_once): ggc_add_root mark_weak_decls.
14840 (assemble_start_function): Use ASM_WEAKEN_DECL.
14841 (assemble_variable): Likewise.
14842 (assemble_alias): Likewise.
14843 (declare_weak): Pass decl to add_weak.
14844 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
14845 (remove_from_pending_weak_list): Declare and define for
14847 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
14848 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
14849 * defaults.h (SUPPORTS_WEAK): Likewise.
14850 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
14851 .weak for code sym. Do emit .size for descriptor sym.
14852 (ASM_DECLARE_FUNCTION_SIZE): Define.
14853 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
14854 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
14855 .lglobl unless TARGET_XCOFF. Formatting fixes.
14856 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
14857 .weak for code sym.
14858 (HANDLE_PRAGMA_WEAK): Remove.
14859 (ASM_WEAKEN_LABEL): Remove.
14860 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
14862 2002-03-01 Jason Merrill <jason@redhat.com>
14864 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
14865 (TARGET_EXPR_CLEANUP): New macro.
14867 2002-02-28 Steve Ellcey <sje@cup.hp.com>
14869 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
14870 to take ptr_extend into account as third type of extension.
14871 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
14872 fields used by SUBREG_PROMOTED_UNSIGNED_P.
14873 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
14874 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
14875 * calls.c (precompute_arguments): Use new macro.
14876 (expand_call): Ditto.
14877 * combine.c (nonzero_bits): Ditto.
14878 (record_promoted_value): Ditto.
14879 * expr.c (store_expr): Ditto.
14880 (expand_expr): Ditto.
14881 * function.c (assign_parms): Ditto.
14883 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
14885 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
14886 override -shared and -shared-libgcc.
14888 2002-02-28 David O'Brien <obrien@FreeBSD.org>
14890 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
14892 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
14895 2002-02-28 Richard Henderson <rth@redhat.com>
14897 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
14898 4 cycle latency from MM producers.
14899 (ia64_internal_sched_reorder): Likewise with pipeline flush.
14901 2002-02-28 Jakub Jelinek <jakub@redhat.com>
14903 * mklibgcc.in: Don't use GNU make extension.
14905 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
14907 * c-parse.in (STATIC): New terminal.
14908 (scspec): New non-terminal. Update productions accordingly.
14909 (program): Remove bogus ifc / end ifc.
14910 (array_declarator): Simplify production using STATIC.
14912 2002-02-28 Jim Meyering <meyering@lucent.com>
14914 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
14915 \a still means TARGET_BELL.
14917 2002-02-28 Richard Henderson <rth@redhat.com>
14919 * haifa-sched.c (sched_emit_insn): New.
14920 (schedule_block): Use last_scheduled_insn to track last insn.
14921 * sched-int.h (sched_emit_insn): Prototype.
14922 * config/ia64/ia64.c (last_issued): Remove.
14923 (ia64_variable_issue): Don't set it.
14924 (nop_cycles_until): Use sched_emit_insn.
14926 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
14928 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
14929 extended constants.
14931 2002-02-28 Kazu Hirata <kazu@hxi.com>
14933 * config/h8300/h8300.c: Fix formatting.
14934 * config/h8300/h8300.h: Likewise.
14936 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
14938 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
14939 which may overwrite the high byte of the frame pointer.
14941 2002-02-28 Bo Thorsen <bo@suse.de>
14943 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
14944 (STARTFILE_SPEC): Add 64 bit files.
14945 (ENDFILE_SPEC): Likewise.
14947 2002-02-28 Jason Merrill <jason@redhat.com>
14949 * c-decl.c (finish_function): Only warn about missing return
14950 statement with -Wreturn-type.
14952 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
14954 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
14956 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
14957 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
14959 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
14961 * basic-block.h (BB_REACHABLE): Renumber.
14962 (BB_DIRTY, BB_NEW): New flags.
14963 (clear_bb_flags): Declare.
14964 (update_life_info_in_dirty_blocks): Declare.
14965 * cfg.c (clear_bb_flags): New function.
14966 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
14967 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
14968 reorder_insns, emit_insn_after): Mark block as dirty.
14969 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
14970 (update_life_info_in_dirty_blocks): New function.
14971 * recog.c (apply_change_group): Dirtify block.
14973 * cse.c (cse_insn): Reorder emitting of jump insn to keep
14975 * gcse.c (delete_null_pointer_checks): Likewise.
14977 * toplev.c (dump_file_index): Move cse2 after bp,
14979 (dump_file_info): Similary.
14980 (rest_of_compilation): Avoid most of CFG rebuilds;
14981 do first if converision after null pointer checks, do cse2
14982 after branch prediction; avoid full liveness rebuild after
14983 initializing subregs.
14984 * invoke.texi (-d options): Document -du, renumber.
14986 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
14987 (notice_new_block): Do not set BB_UPDATE_LIFE.
14988 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
14989 merge_blocks_move_successor_nojumps, merge_blocks,
14990 try_crossjump_to_edge): Likewise.
14991 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
14992 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
14993 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
14994 (merge_of_block): Do not use life_data_ok.
14995 (find_if_case_1): Do not use SET_UPDATE_LIFE.
14996 (if_convert): Use BB_DIRTY mechanizm to update life.
14997 * lcm.c (optimize_mode_switching): Update
14998 update_life_info_in_dirty_blocks
15000 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
15002 * Makefile.in (integrate.o): Update.
15003 * c-decl.c (copy_lang_decl): Rename.
15004 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15005 * integrate.c: Include langhooks.h.
15006 (copy_decl_for_inlining): Update to use langhook.
15007 * langhooks-def.h (lhd_do_nothing_t,
15008 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
15009 (LANG_HOOKS_INITIALIZER): Update.
15010 * langhooks.c (lhd_do_nothing_t): New.
15011 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
15012 * tree.h (copy_lang_decl): Remove.
15014 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15016 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
15018 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
15019 POST_DEC, and POST_MODIFY.
15021 2002-02-27 Zack Weinberg <zack@codesourcery.com>
15023 * c-typeck.c (digest_init): Remove unused parameter; all
15026 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
15028 * expmed.c (expand_shift): Correctly test for low part of a
15031 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15033 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
15034 insn UIDs with insn addresses.
15036 2002-02-27 Zack Weinberg <zack@codesourcery.com>
15038 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
15039 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
15040 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
15041 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
15042 gcc.c, toplev.c: Delete code implementing -traditional mode.
15044 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
15045 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
15046 Document removal of -traditional mode for compilation, and
15047 remove documentation only relevant to that mode.
15049 * config/nextstep.h, config/ptx4.h, config/svr4.h,
15050 config/convex/convex.h, config/d30v/d30v.h,
15051 config/i386/dgux.h, config/i386/osf1elf.h,
15052 config/i386/osfelf.h, config/i386/osfrose.h,
15053 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
15054 config/m68k/hp310.h, config/m88k/dgux.h,
15055 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
15056 config/m88k/m88k.h, config/m88k/openbsd.h,
15057 config/mips/abi64.h, config/mips/osfrose.h,
15058 config/mips/svr4-5.h, config/mips/svr4-t.h,
15059 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
15060 config/stormy16/stormy16.h: Remove all references to
15061 -traditional from target specs. Delete all mention of the
15062 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
15063 delete a couple of commented-out definitions of
15064 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
15067 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
15068 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
15070 2002-02-27 Zack Weinberg <zack@codesourcery.com>
15072 * mklibgcc.in: Don't use \n in a line subject to
15073 interpretation by echo.
15075 2002-02-27 Graham Stott <grahams@redhat.com>
15077 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
15080 * loop.c (prescan_loop): Handle PARALLEL.
15082 * unroll.c (loop_iterations): Return 0 if the add_val for
15085 * final.c (output_operand_lossage): Constify PFX_STR.
15087 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
15089 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
15091 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
15092 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
15094 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
15096 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
15098 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
15100 * cpplex.c (_cpp_lex_token): Handle directives in macro
15102 * cpplib.c (_cpp_handle_directive): Save and restore state
15103 if parsing macro args when entering a directive.
15104 * cppmacro.c (collect_args): No need to handle directives
15105 in macro arguments.
15106 (enter_macro_context, replace_args): Use the original macro
15107 definition in case it was redefined whilst collecting arguments.
15109 * cpp.texi: Update.
15111 2002-02-26 David Edelsohn <edelsohn@gnu.org>
15113 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
15114 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
15115 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
15117 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
15118 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
15119 (load_toc_v4_PIC_2): Same.
15121 2002-02-26 Alan Modra <amodra@bigpond.net.au>
15123 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
15125 2002-02-26 Richard Henderson <rth@redhat.com>
15127 * config/alpha/alpha.md (ashldi_se): Re-enable.
15129 2002-02-26 Richard Henderson <rth@redhat.com>
15131 * config/alpha/alpha.c (alpha_encode_section_info): Examine
15132 MODULE_LOCAL_P; improve commentary.
15134 2002-02-26 Zack Weinberg <zack@codesourcery.com>
15136 * doc/cpp.texi: Clarify documentation of relationship between
15137 #line and #include.
15139 2002-02-26 Kazu Hirata <kazu@hxi.com>
15141 * config/h8300/h8300-protos.h: Update the prototype for
15142 compute_logical_op_length. Add the prototype for
15143 compute_logical_op_cc.
15144 * config/h8300/h8300.c (compute_logical_op_length): Figure out
15145 code from operands.
15146 (compute_logical_op_cc): New.
15147 * config/h8300/h8300.md: Combine all the logical op patterns
15148 in HImode and SImode. Use compute_logical_op_cc.
15150 2002-02-26 Kelley Cook <kelleycook@comcast.net>
15152 * config/i386/i386.c (print_operand): Don't append ATT-style
15153 length suffixs to x87 opcodes when in Intel mode.
15155 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
15157 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
15158 (init_emit_once): Update calls.
15159 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
15160 (init_syntax_once): Prototype.
15162 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
15164 * pa-linux.h (LIB_SPEC): Update definition.
15165 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15167 2002-02-26 Richard Henderson <rth@redhat.com>
15169 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
15170 if we emitted a stop bit.
15172 2002-02-26 Jakub Jelinek <jakub@redhat.com>
15174 * configure.in (libgcc_visibility): Substitute.
15175 * configure: Rebuilt.
15176 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
15177 defined symbols .hidden.
15179 2002-02-26 Jakub Jelinek <jakub@redhat.com>
15181 * attribs.c (c_common_attribute_table): Add visibility.
15182 (handle_visibility_attribute): New function.
15183 * varasm.c (assemble_visibility): New function.
15184 * output.h (assemble_visibility): Add prototype.
15185 * tree.h (MODULE_LOCAL_P): Define.
15186 * crtstuff.c (__dso_handle): Use visibility attribute.
15187 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
15188 for MODULE_LOCAL_P symbols too.
15189 * config/ia64/ia64.c (ia64_encode_section_info): Handle
15190 MODULE_LOCAL_P symbols the same way as local symbols.
15191 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
15192 into .sdata/.sbss by the user.
15193 * doc/extend.texi (Function Attributes): Document visibility
15196 2002-02-26 Jakub Jelinek <jakub@redhat.com>
15199 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
15200 STRING_CST initializer spanning the whole variable without
15202 If expand_expr returned MEM, don't use it.
15204 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
15206 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
15207 generate a die for the lexical block.
15209 2002-02-26 Kazu Hirata <kazu@hxi.com>
15211 * config/h8300/h8300-protos.h: Add a prototype for
15212 compute_logical_op_length.
15213 * config/h8300/h8300.c (compute_logical_op_length): New.
15214 * config/h8300/h8300.md (anonymous logical patterns): Use
15215 compute_logical_op_length for length.
15217 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
15219 * dwarf2out.c (modified_type_die): Do not call type_main_variant
15221 (gen_type_die): Same.
15223 * attribs.c (handle_vector_size_attribute): Set debug information.
15225 2002-02-26 Daniel Egger <degger@fhm.edu>
15227 * config/rs6000/rs6000.md: Swap define_insn attributes to
15228 fix incorrect generation of merge high instructions instead
15231 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
15233 * c-typeck.c (really_start_incremental_init): Use
15234 bitsize_zero_node for vectors.
15236 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
15238 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
15239 ("*set_vrsave_internal"): Same.
15241 2002-02-25 Richard Henderson <rth@redhat.com>
15243 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
15244 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
15246 2002-02-25 Jakub Jelinek <jakub@redhat.com>
15249 * config/i386/i386.c (ix86_return_pops_args): Only pop
15250 fake structure return argument if it was passed on the stack.
15252 2002-02-25 Jason Merrill <jason@redhat.com>
15254 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
15257 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
15259 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
15260 link with shared_name only.
15261 * doc/invoke.texi (Link Options): Document new behavior.
15263 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
15265 * c-typeck.c (push_init_level): Handle vectors.
15267 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
15269 * config/sparc/sparc.c (const64_high_operand): Zero-extend
15270 operands of SPARC_SETHI_P.
15271 (input_operand): Likewise.
15272 (sparc_emit_set_const32): Likewise.
15273 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
15274 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
15275 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
15276 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
15277 (movdi_insn_sp64_vis): Likewise.
15278 (movdi split, movdf split): Use SETHI32.
15279 * doc/md.texi: Document SPARC constraints L, M and N.
15281 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
15283 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
15284 ("*set_vrsave_internal"): use mfspr for Darwin.
15286 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
15287 gen_get_vrsave_internal.
15289 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15291 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
15293 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
15295 * cpplex.c (cpp_interpret_charconst): Get signedness or
15296 otherwise of wide character constants correct.
15297 * cppexp.c (lex): Get signedness of wide charconsts correct.
15299 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15301 * optabs.c (widen_operand): Only call convert_modes for
15302 promoted SUBREG if signedness matches.
15303 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
15305 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
15307 * cpplib.c (glue_header_name): Use local buffer to build up
15310 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
15312 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
15314 2002-02-23 Kazu Hirata <kazu@hxi.com>
15316 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
15317 H8/300[HS] separately.
15318 * config/h8300/h8300.md: Remove the early clobber constraint
15319 from bit field patterns.
15321 2002-02-23 Kazu Hirata <kazu@hxi.com>
15323 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
15325 (mulhisi3): Likewise.
15326 (umulqisi3): Likewise.
15327 (umulhisi3): Likewise.
15329 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
15331 * cppinit.c (output_deps): Correct test for stdout output.
15332 (init_dependency_output): Cure warning.
15334 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15336 * expr.c (store_expr): When converting expression to promoted
15337 equivalent type, allow using SUBREG_REG of TARGET as the target
15338 of the expansion of EXP.
15339 * loop.c (basic_induction_var, case SUBREG): Always look inside.
15340 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
15341 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
15342 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
15343 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
15345 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
15347 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
15348 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
15349 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
15351 2002-02-23 Jakub Jelinek <jakub@redhat.com>
15353 PR optimization/5747
15354 * loop.c (scan_loop): Update reg info if move_movables created new
15357 2002-02-23 David Edelsohn <edelsohn@gnu.org>
15359 * gcc.c (init_gcc_spec): Revert last change.
15361 2002-02-23 David Edelsohn <edelsohn@gnu.org>
15363 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
15364 gpc_reg_operand constraint.
15366 2002-02-23 Alan Modra <amodra@bigpond.net.au>
15368 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
15369 Simplify comparison of `low'.
15370 (add_operand): Fix formatting.
15371 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
15372 (mask_operand): Disallow mask to wrap in 64-bit mode.
15373 (rs6000_stack_info): Remove redundant test setting push_p.
15374 (output_toc): Fix formatting.
15375 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
15376 cc_reg_not_cr0_operand constraint.
15377 (booldi3, boolcdi3 splitters): Same.
15379 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
15381 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
15383 2002-02-22 David Edelsohn <edelsohn@gnu.org>
15385 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
15386 gcc invoked with -shared-libgcc.
15388 2002-02-22 Jakub Jelinek <jakub@redhat.com>
15391 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
15392 decl if any of elements was TREE_USED.
15394 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
15396 * config/sparc/sol2.h: Don't include sys/mman.h.
15397 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
15398 (arith_4096_operand): Don't throw high bits away.
15399 (const64_operand): Take sign extension of CONST_INTs into account.
15400 (const64_high_operand, sparc_emit_set_const32): Likewise.
15401 (GEN_HIGHINT64): Likewise.
15402 (sparc_emit_set_const64_quick1): Likewise.
15403 (const64_is_2insns): Likewise.
15404 (print_operand): Use trunc_int_for_mode for sign extension.
15405 * config/sparc/sparc.h (SMALL_INT32): Likewise.
15406 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
15407 chars. Assume CONST_INT is already properly sign-extended.
15408 (movdi split): Sign-extend each SImode part.
15409 (andsi3 split): Don't mask high bits off, so that result
15410 remains properly sign-extend.
15411 (iorsi3 split): Likewise.
15412 (xorsi3 split): Likewise.
15414 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
15416 * fold-const.c (fold): Fix typo in comments.
15418 2002-02-21 Diego Novillo <dnovillo@redhat.com>
15420 * Makefile.in (langhooks.o): Update dependencies.
15422 2002-02-21 Diego Novillo <dnovillo@redhat.com>
15424 * langhooks.c: Include flags.h.
15426 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
15428 * testsuite/gcc.dg/attr-alwaysinline.c: New.
15430 * c-common.c (c_common_post_options): Set inline trees by
15433 * doc/extend.texi (Function Attributes): Document always_inline
15435 Update documentation about inlining when not optimizing.
15437 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
15439 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
15440 unless DECL_ALWAYS_INLINE.
15442 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
15443 unless DECL_ALWAYS_INLINE.
15444 (c_disregard_inline_limits): Disregard if always_inline set.
15446 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
15447 Disregard if always_inline set.
15448 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
15449 unless DECL_ALWAYS_INLINE.
15451 * attribs.c (handle_always_inline_attribute): New.
15452 (c_common_attribute_table): Add always_inline.
15454 * config/rs6000/altivec.h: Add prototypes for builtins
15455 requiring the always_inline attribute.
15457 2002-02-21 Eric Christopher <echristo@redhat.com>
15459 * expmed.c (store_bit_field): Try to simplify the subreg
15460 before generating a new one when when the mode size of
15461 value is less than maxmode.
15463 2002-02-21 Richard Henderson <rth@redhat.com>
15465 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
15466 than gen_rtx_PLUS to form the sum.
15467 * explow.c (force_reg): Rearrange to not allocate new pseudo
15468 when force_operand returns a register.
15469 * expr.c (expand_assignment): Allow offset_rtx expansion to
15470 return a sum. Do not force addresses into registers.
15471 (expand_expr): Likewise.
15472 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
15473 to canonicalize arithmetic that didn't simpify.
15474 (simplify_plus_minus): New argument force; update
15475 all callers. Don't split CONST unless we can do something with it,
15476 and wouldn't lose the constness of the operands.
15478 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
15479 that we generated earlier.
15481 2002-02-21 Tom Tromey <tromey@redhat.com>
15483 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15484 (output_line_info): Use constant `1', with a long explanatory
15486 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
15488 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
15490 * jump.c (redirect_jump): If old label has no UID, don't try to
15493 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
15495 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
15496 If input is constant, do shifts at compile time.
15498 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
15500 * doc/extend.texi: Fix some more overfull hboxes.
15502 2002-02-21 Jakub Jelinek <jakub@redhat.com>
15504 PR optimization/4994
15505 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
15508 2002-02-21 Jakub Jelinek <jakub@redhat.com>
15511 * expr.h (expand_and): Add mode argument.
15512 * expmed.c (expand_and): Add mode argument.
15513 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
15514 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
15515 * except.c (expand_builtin_extract_return_addr): Likewise.
15516 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
15517 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
15518 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
15519 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
15520 * config/c4x/c4x.md: Use GEN_INT (x) instead of
15521 gen_rtx (CONST_INT, VOIDmode, x).
15523 2002-02-21 Jakub Jelinek <jakub@redhat.com>
15526 * stmt.c (warn_if_unused_value): Move side effects test once more.
15528 2002-02-20 Torbjorn Granlund <tege@swox.com>
15530 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
15531 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
15533 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
15535 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
15536 SUBREG or ZERO_EXTEND.
15538 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
15540 * sh.h (current_function_anonymous_args): Remove.
15541 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
15542 of current_function_varargs and current_function_stdarg is set.
15543 * sh.c (sh_expand_prologue): Check current_function_varargs /
15544 current_function_stdarg / TARGET_SH5 instead of
15545 current_function_anonymous_args.
15547 * sh64.h (TARGET_VERSION): Define.
15549 2002-02-20 David Edelsohn <edelsohn@gnu.org>
15551 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
15552 VRSAVE_REGNO on TARGET_ALTIVEC.
15554 2002-02-20 Alan Modra <amodra@bigpond.net.au>
15556 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
15557 bits of SImode const_int.
15558 (includes_rshift_p): Likewise.
15559 (print_operand): Call mask_operand and mask64_operand with correct
15561 (rs6000_output_function_epilogue): Pad traceback table to word.
15562 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
15563 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
15564 mask64_operand with correct mode.
15565 (FUNCTION_ARG_REGNO_P): Correct parentheses.
15567 2002-02-20 Jakub Jelinek <jakub@redhat.com>
15570 * varasm.c (get_pool_constant_mark): New.
15571 * rtl.h (get_pool_constant_mark): Add prototype.
15572 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
15573 be represented if it has not been output.
15575 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
15577 * combine.c (do_SUBST): Sanity check substitutions of
15578 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
15579 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
15580 CONST_INT into its operand.
15581 (known_cond): Likewise, for ZERO_EXTEND.
15582 * simplify-rtx.c (simplify_unary_operation): Fix condition to
15583 allow for simplification of wide modes. Reject CONST_INTs in
15584 ZERO_EXTEND when their actual mode is not given.
15586 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
15588 * c-decl.c (pushdecl): If no global declaration is found for an
15589 extern declaration in block scope, try a limbo one.
15591 2002-02-20 Jakub Jelinek <jakub@redhat.com>
15594 * c-common.c (pointer_int_sum): Moved from...
15595 * c-typeck.c (pointer_int_sum): ...here.
15596 * c-common.h (pointer_int_sum): Add prototype.
15598 2002-02-20 Jakub Jelinek <jakub@redhat.com>
15601 * c-decl.c (duplicate_decls): Return 0 if issued error about
15604 2002-02-20 Roger Sayle <roger@eyesopen.com>
15605 Jakub Jelinek <jakub@redhat.com>
15608 * tree.c (host_integerp): Ensure that the constant integer is
15609 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
15610 when pos is zero or non-zero respectively. Clarify comment.
15611 * c-format.c (check_format_info_recurse): Fix host_integerp
15612 usage; the pos argument should be zero when assigning to a
15613 signed HOST_WIDE_INT.
15615 2002-02-20 Richard Henderson <rth@redhat.com>
15617 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
15618 of the operand, rather than assuming TImode.
15619 (ix86_expand_binop_builtin): Cope with commutative patterns
15620 using nonimmediate_operand for both operands.
15621 (ix86_expand_timode_binop_builtin): Likewise.
15622 (ix86_expand_store_builtin): Validate operand 1.
15623 (ix86_expand_unop1_builtin): Likewise.
15625 2002-02-20 Philip Blundell <philb@gnu.org>
15628 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
15630 2002-02-20 Richard Henderson <rth@redhat.com>
15633 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
15635 2002-02-20 Tom Tromey <tromey@redhat.com>
15637 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15638 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15639 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15640 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15641 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
15644 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
15646 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
15647 for (const_int 0) in X not just INTVAL.
15649 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
15651 * doc/extend.texi: Avoid or reduce overfull hboxes.
15653 2002-02-20 Diego Novillo <dnovillo@redhat.com>
15655 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
15656 operations if the field does not start at a mode boundary.
15658 2001-02-20 Joel Sherrill <joel@OARcorp.com>
15660 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
15661 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
15662 Also done for -Acpu and -Amachine.
15664 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
15666 * cppinit.c (init_dependency_output): Take deps output file
15667 from -o if none given with -MF. Suppress normal output.
15668 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
15669 * doc/cpp.texi, doc/invoke.texi: Update.
15671 2002-02-19 Zack Weinberg <zack@codesourcery.com>
15673 * toplev.c (output_quoted_string): Write unprintable
15674 characters with octal escapes.
15676 2002-02-19 David Edelsohn <edelsohn@gnu.org>
15678 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
15679 really_call_used[VRSAVE_REGNO] if not Altivec.
15681 2002-02-19 Alan Modra <amodra@bigpond.net.au>
15683 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
15685 (constant_pool_expr_1): Fix formatting.
15686 (rs6000_legitimize_reload_address): Likewise.
15688 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15690 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
15691 now that we have one.
15693 2002-02-19 Zack Weinberg <zack@codesourcery.com>
15695 * tree.h (struct tree_common): Remove aux. Add unused_0 at
15696 end of first block of bitfields (which was only seven bits);
15697 rename dummy to unused_1; remove comment which is no longer true.
15699 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
15701 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
15703 2002-02-19 Philip Blundell <pb@nexus.co.uk>
15706 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
15710 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
15711 arm_is_longcall_p rather than inspecting call-type cookie
15713 (call_value_insn) [TARGET_THUMB]: Likewise.
15715 2002-02-19 Graham Stott <grahams@redhat.com>
15717 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
15719 2002-02-19 David Edelsohn <edelsohn@gnu.org>
15721 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
15722 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
15723 (FP_SAVE_INLINE): Delete.
15725 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
15726 * config/rs6000/eabi.asm: Remove ABI save restore routines.
15727 * config/rs6000/t-ppccomm: Build crtsavres.o.
15728 * config/rs6000/crtsavres.asm: New file.
15730 2002-02-19 Philip Blundell <philb@gnu.org>
15732 * config/arm/arm.c (use_return_insn): Don't reject interrupt
15734 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
15735 (output_return_instruction): Allow interrupt functions to return with
15736 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
15737 (arm_expand_prologue): Subtract 4 before stacking LR in an
15738 interrupt function.
15740 2002-02-19 Philip Blundell <pb@nexus.co.uk>
15742 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
15743 decl, not just FUNCTION_DECL.
15744 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
15745 (arm_assemble_integer): Likewise.
15746 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
15749 2002-02-19 matthew green <mrg@eterna.com.au>
15751 * config.gcc (sparc-*-netbsdelf*): Enable target.
15752 (sparc64-*-netbsd*): New target.
15753 * config/sparc/netbsd-elf.h: New file.
15754 * config/sparc/t-netbsd64: New file.
15756 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
15758 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
15760 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
15762 * doc/invoke.texi: explicitly list the style guidelines that
15763 -Weffc++ checks for.
15765 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
15767 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
15769 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
15772 * gcc.c (cpp_unique_options): Treat -o as indicating object file
15773 only if not -E. If -E, pass -o through to the preprocessor.
15775 2002-02-19 Kazu Hirata <kazu@hxi.com>
15777 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
15778 register number with an appropriate macro.
15780 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
15782 * doc/rtl.texi (Constants): Close @code tag.
15784 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
15786 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
15787 ("mmx_uavgv4hi3"): Same.
15788 ("pmulhrwv4hi3"): Same.
15790 * tree-inline.c (walk_tree): Handle vectors.
15792 * c-common.c (constant_expression_warning): Handle vectors.
15793 (overflow_warning): Same.
15795 * sched-deps.c (sched_analyze_2): Handle vectors.
15797 * rtlanal.c (rtx_unstable_p): Handle vectors.
15798 (rtx_varies_p): Same.
15799 (count_occurrences): Same.
15800 (regs_set_between_p): Same.
15801 (modified_between_p): Same.
15802 (modified_in_p): Same.
15803 (volatile_insn_p): Same.
15804 (volatile_refs_p): Same.
15805 (side_effects_p): Same.
15806 (may_trap_p): Same.
15807 (inequality_comparisons_p): Same.
15808 (replace_regs): Same.
15809 (computed_jump_p_1): Same.
15811 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
15813 (inner_mode_array): New.
15814 (copy_rtx): Handle vectors.
15815 (copy_most_rtx): Same.
15816 (rtx_equal_p): Same.
15817 (get_mode_alignment): Adjust for vectors.
15819 * resource.c (mark_referenced_resources): Handle vectors.
15820 (mark_set_resources): Same.
15822 * reload1.c (eliminate_regs): Handle vectors.
15823 (elimination_effects): Same.
15824 (scan_paradoxical_subregs): Same.
15826 * reload.c (subst_reg_equivs): Handle vectors.
15828 * regrename.c (scan_rtx): Handle vectors.
15830 * regclass.c (reg_scan_mark_refs): Handle vectors.
15832 * recog.c (find_single_use_1): Handle vectors.
15834 * local-alloc.c (equiv_init_varies_p): Handle vectors.
15835 (contains_replace_regs): Same.
15836 (memref_referenced_p): Same.
15838 * integrate.c (copy_rtx_and_substitute): Handle vectors.
15839 (subst_constants): Same.
15841 * genattrtab.c (attr_copy_rtx): Handle vectors.
15842 (encode_units_mask): Same.
15843 (clear_struct_flag): Same.
15844 (count_sub_rtxs): Same.
15846 * gcse.c (want_to_gcse_p): Handle vectors.
15847 (oprs_unchanged_p): Same.
15848 (hash_expr_1): Same.
15849 (oprs_not_set_p): Same.
15850 (expr_killed_p): Same.
15851 (compute_transp): Same.
15852 (store_ops_ok): Same.
15854 * function.c (purge_addressof_1): Do not allow paradoxical subregs
15856 (fixup_var_refs_1): Same.
15857 (instantiate_virtual_regs_1): Same.
15859 * fold-const.c (operand_equal_p): Handle vectors.
15861 (rtl_expr_nonnegative_p): Same.
15863 * flow.c (mark_used_regs): Handle vectors.
15865 * df.c (df_uses_record): Handle vectors.
15867 * cselib.c (cselib_subst_to_values): Handle vectors.
15868 (cselib_mem_conflict_p): Same.
15871 * cse.c (canon_reg): Handle vectors.
15873 (cse_process_notes): Same.
15874 (count_reg_usage): Same.
15875 (canon_hash): Same.
15877 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
15879 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
15881 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
15882 (gen_rtx): Handle CONST_VECTOR.
15883 (gen_const_vector_0): New.
15884 (copy_rtx_if_shared): CONST_VECTORs can be shared.
15885 (reset_used_flags): Same.
15886 (copy_insn_1): Same.
15887 (initializer_constant_valid_p): Handle VECTOR_CST.
15889 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
15891 * doc/rtl.texi (Constants): Document const_vector.
15892 (CONST0_RTX): Update for vectors.
15893 (RTL sharing): Same.
15895 * print-tree.c (print_node): Add case for VECTOR_CST.
15897 * tree.h (TREE_VECTOR_CST_ELTS): New.
15898 (struct tree_vector): New.
15899 (union tree_node): Add vector node.
15900 (build_vector): Add prototype.
15902 * tree.def (VECTOR_CST): New.
15904 * tree.c (build_vector): New.
15906 * expmed.c (make_tree): Handle CONST_VECTOR.
15908 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
15909 (CONST_VECTOR_ELT): New.
15910 (CONST_VECTOR_NUNITS): New.
15912 * machmode.h (GET_MODE_INNER): New.
15913 (DEF_MACHMODE): Accept 8th arg.
15915 * machmode.def: Add 8th argument for vector inner mode.
15916 Add inner vector modes for vectors.
15918 * rtl.def (VEC_CONST): Remove.
15919 (CONST_VECTOR): New.
15921 * expr.c (clear_storage): Allow vectors.
15922 (is_zeros_p): Handle VECTOR_CST.
15924 * varasm.c (output_constant_pool): Handle vectors.
15925 (rtx_const): Add veclo and vechi fields.
15926 (kind): Add RTX_VECTOR.
15927 (decode_rtx_const): Add case for vector.
15929 * config/rs6000/rs6000-protos.h: Add zero_constant.
15931 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
15932 constants. Force easy vector constants into memory.
15933 (easy_vector_constant): New.
15934 (emit_easy_vector_constant): New.
15935 (rs6000_legitimize_reload_address): Do not generate bad reloads on
15938 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
15940 ("altivec_lvxl"): Same.
15941 (altivec_lvebx): Same.
15942 (altivec_lvehx): Same.
15943 (altivec_lvewx): Same.
15944 ("*movv4si_const0"): New.
15945 ("*movv4sf_const0"): New.
15946 ("*movv8hi_const0"): New.
15947 ("*movv16qi_const0"): New.
15949 2002-02-18 Kazu Hirata <kazu@hxi.com>
15951 * config/h8300/h8300.c (notice_update_cc): Use
15954 2002-02-18 Kazu Hirata <kazu@hxi.com>
15956 * config/h8300/h8300.md (divmod patterns): Change the
15957 constraints for operands[1] to register_operand.
15959 2002-02-18 Kazu Hirata <kazu@hxi.com>
15961 * config/h8300/h8300-protos.h: Remove the prototype for
15963 * config/h8300/h8300.c (p_operand): Remove.
15964 * config/h8300/h8300.md: Replace p_operand with
15967 2002-02-18 Philip Blundell <pb@nexus.co.uk>
15969 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
15971 (output_return_instruction): Allow use of LDR to unstack
15972 return addresss even for interrupt handlers or when
15973 interworking. If compiling for ARMv5, use interworking-safe
15974 return instructions by default. Remove duplicated code and
15975 lengthy "strcat" sequences.
15977 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15979 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
15980 (LINK_EH_SPEC): Define.
15981 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
15983 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
15985 * config/s390/s390.c (s390_emit_prologue): Do not set the
15986 frame_related flag for call-clobbered registers.
15988 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
15990 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
15991 (construct_container): Fix handling of SSE operands.
15992 (ix86_expand_builtin): Fix handling of 64bit pointers.
15993 (mmx_maskmovq_rex): New pattern.
15995 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
15997 * regrename.c (kill_set_value): Handle subregs properly.
15999 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
16001 * objc/objc-act.c (handle_impent): Remove leading '*'
16002 from objc_class_name.
16004 2002-02-17 Richard Henderson <rth@redhat.com>
16006 * config/alpha/alpha.c (some_small_symbolic_operand,
16007 some_small_symbolic_operand_1, split_small_symbolic_operand,
16008 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
16009 Handle small SYMBOL_REFs anywhere, not just inside memories.
16010 * config/alpha/alpha-protos.h: Update.
16011 * config/alpha/alpha.h (PREDICATE_CODES): Update.
16012 * config/alpha/alpha.md (small symbolic operand splitter): Update.
16014 2002-02-17 Roland McGrath <roland@frob.com>
16016 * config.gcc (powerpc-*-gnu-gnualtivec*,
16017 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
16018 * config/rs6000/gnu.h: New file.
16019 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
16020 Grok "gnu" in rs6000_abi_name.
16021 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
16022 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
16023 Grok -mcall-gnu analogous to -mcall-linux et al.
16024 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
16025 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
16026 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
16028 2002-02-17 Jakub Jelinek <jakub@redhat.com>
16031 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
16034 2002-02-17 Philipp Thomas <pthomas@suse.de>
16036 * config/cris/cris.h: Undefine STARTFILE_SPEC and
16037 ENDFILE_SPEC before (re)defining them.
16039 2002-02-17 Kazu Hirata <kazu@hxi.com>
16041 * config/h8300/h8300.c: Fix formatting.
16042 * config/h8300/h8300.h: Likewise.
16044 2002-02-17 Philipp Thomas <pthomas@suse.de>
16046 * doc/tm.texi: Explain why empty strings should not be
16047 marked for translation.
16049 2002-02-17 Philipp Thomas <pthomas@suse.de>
16051 * final.c (output_operand_lossage): Changed to accept
16052 printf style arguments. Change calls where necessary.
16053 * output.h (output_operand_lossage): Change declaration
16054 accordingly. Update copyright.
16055 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
16056 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
16057 Update copyright date where necessary.
16059 * config/i386/i386.c (print_operand): Likewise. Remove use of
16062 * config/cris/cris.c (cris_operand_lossage): Likewise.
16063 Rename parameter so that exgettext recognizes it as
16064 translatable message.
16065 (LOSE_AND_RETURN): Rename parameter to msgid.
16067 2002-02-17 Kazu Hirata <kazu@hxi.com>
16069 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
16070 hard coded register number with an appropriate macro.
16071 (HARD_REGNO_MODE_OK): Likewise.
16072 (ARG_POINTER_REGNUM): Likewise.
16073 (STATIC_CHAIN_REGNUM): Likewise.
16074 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
16075 * config/h8300/h8300.md (define_constants): Define more
16078 2002-02-17 Philipp Thomas <pthomas@suse.de>
16080 * config/i386/i386.h: Don't mark empty strings for translation.
16082 2002-02-16 H.J. Lu <hjl@gnu.org>
16084 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
16086 2002-02-16 Zack Weinberg <zack@codesourcery.com>
16088 * cppinit.c (merge_include_chains): Check for brack being
16089 NULL before attempting to merge it with qtail.
16091 2002-02-16 Andrew Cagney <ac131313@redhat.com>
16093 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
16096 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
16098 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
16100 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
16102 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
16103 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
16104 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
16106 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16108 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
16109 now only if !TARGET_FIX.
16110 (*movsi_nt_vms_fix): New pattern.
16112 2002-02-16 Douglas B Rupp <rupp@gnat.com>
16114 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
16115 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
16116 (alpha_sa_mask, alpha_sa_size): Reflect above change.
16117 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
16118 (alpha_start_function, alpha_expand_epilogue): Likewise.
16119 (unicosmk_gen_dsib): Likewise.
16121 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16123 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
16125 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
16127 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
16128 check_and_change_labels, s390_final_chunkify): Delete.
16129 (s390_split_branches, s390_chunkify_pool): New functions.
16130 (s390_function_prologue): Call them.
16132 * config/s390/s390.h (S390_REL_MAX): Delete.
16133 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
16135 * config/s390/s390.md (cjump, icjump, jump): Fix length
16136 attribute calculation.
16139 2002-02-15 David Edelsohn <edelsohn@gnu.org>
16141 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
16142 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
16144 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
16146 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
16147 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
16148 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
16150 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
16152 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
16154 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
16156 * reload.c (find_dummy_reload): Check that an output register
16157 is valid for its mode.
16159 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
16161 * combine.c (known_cond): After replacing the REG of a SUBREG, try
16164 * function.c (assign_parms): Demote promoted argument passed by
16165 transparent reference.
16167 2001-02-14 Joel Sherrill <joel@OARcorp.com>
16169 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
16170 -Acpu() and -Amachine() to eliminate warnings.
16172 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
16174 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
16176 2002-02-14 Kazu Hirata <kazu@hxi.com>
16178 * config/h8300/h8300-protos.h: Update the prototype for
16180 * config/h8300/h8300.c (const_costs): Treat SET as a little
16181 more expensive operation.
16182 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
16183 reference to const_costs.
16185 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
16187 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
16189 2002-02-14 Jakub Jelinek <jakub@redhat.com>
16192 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
16193 use arguments from newtype.
16195 2002-02-13 Eric Christopher <echristo@redhat.com>
16197 * config/mips/mips.c (override_options): Add check for march/mipsX
16198 on the same command line. Fix error message in cpu processing.
16199 Remove architecture and ISA checks.
16201 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
16203 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
16205 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
16207 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
16209 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
16211 ("*movv8hi_internal1"): Same.
16212 ("*movv16qi_internal1"): Same.
16213 ("*movv4sf_internal1"): Same.
16215 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
16216 not push_reload for altivec modes.
16218 2002-02-13 Joel Sherrill <joel@OARcorp.com>
16220 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
16221 all RTEMS targets including removal of #includes from config/*/rtems*.h
16222 file and adding them to tm_file setting. Added xm_defines=POSIX to
16224 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
16225 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
16226 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
16227 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
16228 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
16229 config/m68k/rtemself.h: Ditto.
16230 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
16231 config/mips/rtems64.h: Ditto.
16232 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
16233 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
16235 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
16236 config/sparc/rtemself.h: Ditto.
16237 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
16238 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
16239 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
16241 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
16242 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
16243 target made more similar to i386-elf.
16244 * config/i386/t-rtems-i386: Added soft float support and multilibs.
16245 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
16246 be similar to config/m68k/t-m68kelf.
16247 * gthr-rtems.h: Encapsulate with extern "C" for C++.
16249 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
16251 * regmove.c (kill_value): Handle subregs.
16253 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
16255 * i386.md (mul patterns): Allow memory operand to be first;
16256 add expanders where needed; fix constraints.
16257 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
16258 Allow memory operand to be the first.
16260 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
16263 2002-02-13 Jakub Jelinek <jakub@redhat.com>
16266 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
16269 2002-02-13 Jakub Jelinek <jakub@redhat.com>
16271 PR optimization/5547:
16272 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
16273 all valid IA-32 address modes involving non-scaled %ebx and
16274 GOT/GOTOFF as displacement.
16276 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
16278 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
16279 after emitting ltorg insns.
16281 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
16282 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
16283 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
16284 *abssf2): Fix "op_type" attribute.
16286 2002-02-13 Douglas B Rupp <rupp@gnat.com>
16288 * mkconfig.sh: Avoid using a subshell redirect.
16289 ($output.T): Change to $(output)T.
16290 (ENABLE_NLS): Remove unneeded undef.
16292 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
16293 * config/alpha/x-vms (libsubdir): Define.
16295 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
16296 register frame procedures. Optimize retrieving context.
16298 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
16299 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
16300 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
16302 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16304 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
16305 Make same change as for find_base_value.
16307 2002-02-13 Kazu Hirata <kazu@hxi.com>
16309 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
16310 of QImode and SImode.
16312 2002-02-13 Kazu Hirata <kazu@hxi.com>
16314 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
16315 length computation of movsi.
16316 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
16318 2002-02-13 Kazu Hirata <kazu@hxi.com>
16320 * config/h8300/h8300.md (subqi3): Tighten the predicate for
16321 operands[2] to register_operand.
16323 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
16325 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
16327 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
16329 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
16330 for altivec_lvx* and altivec_stvx*.
16331 ("*movv4si_internal"): Add constraint for loading from GPRs.
16332 ("*movv8hi_internal1"): Same.
16333 ("*movv16qi_internal1"): Same.
16334 ("*movv4sf_internal1"): Same.
16336 * config/rs6000/rs6000.c (altivec_register_operand): New.
16338 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
16339 altivec_register_operand.
16341 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
16343 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
16346 2002-02-13 Stan Shebs <shebs@apple.com>
16348 * c-typeck.c (digest_init): Handle vectors.
16349 (really_start_incremental_init): Same.
16350 (pop_init_level): Same.
16351 (process_init_element): Same.
16353 * varasm.c (output_constant): Same.
16355 * expr.c (clear_storage): Same.
16356 (store_constructor): Same.
16358 2002-02-12 Eric Christopher <echristo@redhat.com>
16360 * explow.c (hard_function_value): Add comment explaining
16361 signed/unsigned comparison.
16363 2002-02-12 Jakub Jelinek <jakub@redhat.com>
16365 * jump.c (never_reached_warning): Add finish argument.
16366 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
16367 real insn after end.
16368 * rtl.h (never_reached_warning): Adjust prototype.
16369 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
16370 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
16371 never_reached_warning.
16373 2002-02-12 Graham Stott <grahams@redhat.com>
16375 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
16377 2002-02-12 Kazu Hirata <kazu@hxi.com>
16379 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
16380 logical shifts on H8/300.
16381 (shift_alg_si): Improve several shifts on H8/300.
16382 (get_shift_alg): Likewise.
16384 2002-02-12 Graham Stott <grahams@redhat.com>
16386 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
16388 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16390 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
16391 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
16393 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
16395 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
16396 non-CONST_INT through default_assemble_integer.
16397 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
16398 <case 8>: Abort for CONST_DOUBLE.
16400 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
16402 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
16404 * config/pa/pa-linux.h (LIB_SPEC): Delete.
16405 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
16407 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
16409 * config/stormy16/stormy16.md (zero_extendqihi2): New.
16411 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
16413 * regrename.c (regrename_optimize): Don't accept a
16414 part-clobbered register if the replaced register is not part
16417 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
16418 take padding into account when computing the argument value.
16420 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
16422 * combine.c (try_combine): Apply substitutions in
16423 CALL_INSN_FUNCTION_USAGE too.
16425 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
16427 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
16428 __builtin_altivec_abs*.
16431 * config/rs6000/rs6000.h (rs6000_builtins): Add
16432 ALTIVEC_BUILTIN_ABS*.
16434 * config/rs6000/altivec.h: Use const char for builtins expecting
16436 (vec_abs): New versions for C and C++.
16439 2002-02-10 Kazu Hirata <kazu@hxi.com>
16441 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
16444 2002-02-10 Kazu Hirata <kazu@hxi.com>
16446 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
16447 constant definition from h8300.md.
16448 (FRAME_POINTER_REGNUM): Likewise.
16449 * config/h8300/h8300.md (define_constants): Add FP_REG.
16451 2002-02-10 Kazu Hirata <kazu@hxi.com>
16453 * config/h8300/h8300.c (print_operand): Remove redundant code.
16455 2002-02-10 Kazu Hirata <kazu@hxi.com>
16457 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
16458 * config/h8300/h8300.c (byte_reg): Make it static.
16460 2002-02-10 Richard Henderson <rth@redhat.com>
16463 * c-typeck.c (incomplete_type_error): Handle flexible array members.
16465 2002-02-10 Richard Henderson <rth@redhat.com>
16468 * tree.c (append_random_chars): Don't abort if main_input_filename
16471 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
16473 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
16475 2002-02-10 Kazu Hirata <kazu@hxi.com>
16477 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
16478 (pushhi1): Likewise.
16480 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
16482 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
16483 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
16485 2002-02-09 David O'Brien <obrien@FreeBSD.org>
16487 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
16489 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
16491 2002-02-09 Kazu Hirata <kazu@hxi.com>
16493 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
16494 a half of an SImode register on H8/300.
16496 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
16498 * i386.md (movdi_2): Add missing '!'.
16500 2002-02-09 Kazu Hirata <kazu@hxi.com>
16502 * config/h8300/h8300.h: Fix formatting. Remove commented-out
16505 2002-02-09 Kazu Hirata <kazu@hxi.com>
16507 * config/h8300/h8300.md (length): Correct the distance valid
16508 for the short branch.
16510 2002-02-09 Kazu Hirata <kazu@hxi.com>
16512 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
16514 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
16516 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
16517 registers in SImode.
16518 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
16521 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
16524 Contribute sh64-elf.
16525 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
16526 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
16527 (sh_cannot_modify_jumps_p): New function.
16528 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
16529 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
16530 (sh_ms_bitfield_layout_p): New function.
16531 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
16532 Zack Weinberg <zack@codesourcery.com>
16533 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
16534 expand_simple_binop instead of expand_binop.
16535 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
16536 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
16537 use of .quad and .uaquad.
16538 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
16539 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
16540 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16541 * config/sh/sh.md (movdi_const, movdi_const_32bit,
16542 movdi_const_16bit): Make sure all CONSTs have modes.
16543 (sym2PIC): Ditto, but by adjusting all callers.
16544 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
16545 if the prologue calls the SHmedia argument decoder or register
16547 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16548 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
16549 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
16550 (sh_expand_epilogue): Don't emit USE of return target register.
16551 (prepare_move_operands): Legitimize DImode PIC addresses.
16552 (sh_media_register_for_return): Skip tr0, used to initialize the
16554 (sh_expand_prologue): Remove explicit USE of return register.
16555 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
16556 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
16557 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
16558 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
16559 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
16560 EXTRA_CONSTRAINT_T.
16561 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
16562 (MOVI_SHORI_BASE_OPERAND_P): New.
16563 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
16564 (EXTRA_CONSTRAINT_T): Define in terms of them.
16565 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
16566 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
16567 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
16568 alternatives supporting TARGET_REGS.
16569 (UNSPEC_GOTPLT): New constant.
16570 (movdi split): Move incrementing of LABEL_NUSES...
16571 (movdi_const, movdi_const_32bit): Here. Use
16572 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
16573 (movdi_const_16bit): New.
16574 (call, call_value) [flag_pic]: Use GOTPLT.
16575 (call_pop, call_value_pop): New expands.
16576 (call_pop_compact, call_pop_rettramp): New insns.
16577 (call_value_pop_compact, call_value_pop_rettramp): New insns.
16578 (sibcall) [flag_pic]: Use GOT.
16579 (builtint_setjmp_receiver): Remove bogus, unused expand.
16580 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
16581 (*pt, *ptb, ptrel): New insns.
16582 (sym2GOT): Handle DImode GOT.
16583 (sym2GOTPLT, symGOTPLT2reg): New expands.
16584 (sym2PIC): New expand.
16585 (shcompact_return_tramp): Use GOTPLT to return trampoline.
16586 (shcompact_return_tramp_i): Use return register explicitly.
16587 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
16588 disable flag_reorder_blocks.
16589 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
16590 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
16591 clobbers, for clarity.
16592 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
16593 restoring of r0 in macl as MAYBE_DEAD.
16594 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
16595 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
16596 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
16597 alter_subreg all over.
16598 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
16599 reload, instead of emitting instructions that would require
16601 (casesi_load_media): Add missing modes.
16602 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
16603 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
16604 as used if the argument decoder is called.
16605 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
16606 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
16607 Pmode, then extend it to DImode if necessary.
16608 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
16609 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
16610 constants in FPU-enabled SHmedia, let them be loaded from memory.
16611 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
16612 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
16613 Adjust whitespace in assembly output templates.
16614 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
16615 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
16616 mode of if_then_else.
16617 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
16618 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
16620 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
16621 Joern Rennecke <amylaar@redhat.com>
16622 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
16623 (SUBTARGET_CPP_PTR_SPEC): New.
16624 (SUBTARGET_CPP_SPEC): Remove.
16625 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
16626 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
16627 Fix typo in previous checkin.
16628 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
16629 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
16630 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
16631 Alexandre Oliva <aoliva@redhat.com>
16632 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
16633 what single FP register can hold for SHmedia target.
16634 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
16635 Alexandre Oliva <aoliva@redhat.com>
16636 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
16637 Do not split into SUBREG.
16638 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
16639 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
16640 and added new functions as specified in SH5 ABI r9.
16641 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
16642 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
16644 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
16645 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
16646 gen_consttable_4 and gen_consttable_8. Emit multiple labels
16647 and consttable_window_ends.
16648 2001-06-03 Graham Stott <grahams@redhat,com>
16649 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
16650 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
16651 * config/sh/sh.c (print_operand): Handle floating-point pair,
16652 vector and matrix registers.
16653 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
16654 vector modes into account.
16655 * config/sh/sh.md (movv2sf): Split move between registers into
16657 (movv4sf, movv16sf): Introduce insns that get split only after
16659 * config/sh/shmedia.h: Fix Copyright dates.
16660 * config/sh/ushmedia.h: Likewise. Move loop counter
16661 declarations into conditionals that uses them.
16662 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
16664 * config/sh/sshmedia.h: Fix Copyright dates.
16665 (sh_media_PUTCFG): Fix constraints.
16666 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
16667 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
16668 ptrmemfunc_vbit_in_delta for SH5.
16669 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
16670 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
16671 * invoke.texi: Likewise.
16672 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
16673 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
16674 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
16675 GCC_pop_shmedia_regs_nofpu): New global symbols.
16676 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
16677 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
16678 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
16679 compact function with nonlocal labels.
16680 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
16681 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
16682 (initial_elimination_offset): Account for their stack space.
16683 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
16684 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
16685 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
16686 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
16687 least one of the operands to be a register.
16688 (movv2sf): Likewise. Renamed to movv2sf_i.
16689 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
16690 prepare_move_operands() before emitting SHmedia insns.
16691 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
16692 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
16693 Don't save nor initialize r12. Don't mis-align the stack.
16694 Pad the code with a nop.
16695 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
16697 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
16698 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
16699 [__SHMEDIA__]: Implement.
16700 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
16701 * config/sh/sh.md: Set latency of `pt' closer to reality.
16702 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
16703 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
16704 Set move, load and store type attributes.
16705 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
16706 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
16708 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
16709 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
16710 * config/sh/sh.c (sh_media_register_for_return): New function.
16711 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
16712 branch-target register.
16713 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
16714 * config/sh/sh.md (return_media_i): Use any call-clobbered
16715 branch-target register.
16716 (return_media): If r18 wasn't copied in the prologue, copy it
16718 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
16719 Clear class FP0_REGS.
16720 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
16722 2001-03-08 DJ Delorie <dj@redhat.com>
16723 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
16724 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
16725 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
16726 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
16727 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
16728 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
16729 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
16730 return value correctly for call_cookie.
16731 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
16732 * config/sh/crt1.asm (start): Modified so as to call
16733 ___setup_argv_and_call_main.
16734 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
16735 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
16737 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
16738 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
16739 (STRIP_NAME_ENCODING): Use it.
16740 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
16741 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
16742 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
16743 prepare_scc_operands().
16744 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
16745 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
16746 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
16747 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
16748 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
16749 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
16750 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
16751 used in shcompact_incoming_args.
16752 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
16754 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
16756 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
16757 Adjust accordingly.
16758 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
16759 Simplify. Adjust. Add sanity check.
16760 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
16762 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
16764 (udivsi3, divsi3): Use them.
16765 (force_mode_for_call): New insn.
16766 (call, call_value, sibcall_value): Emit it before SHcompact
16768 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
16769 * config/sh/sh.md (call, call_value, sibcall): Make sure the
16770 call cookie is non-NULL before taking its value.
16771 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
16772 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
16773 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
16774 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
16776 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
16777 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
16778 temporary for stack adjusts. Use MACL and MACH to pass
16779 arguments to shcompact_incoming_args.
16780 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
16782 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
16783 (nested_trampoline): Load static chain address into r1.
16784 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
16785 2001-01-07 Alexandre Oliva <aoliva@redhat.com
16786 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
16787 fp_arith_reg_operand().
16788 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
16789 * config/sh/sh.md (casesi): Sign-extend the first two operands,
16790 and use signed compares for them.
16791 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
16792 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
16793 ones properly aligned.
16794 (find_barrier): Account for extra alignment needed for 8-byte wide
16796 (machine_dependent_reorg): Require a label for the second 4-byte
16797 constant after an 8-byte one.
16798 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
16800 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
16801 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
16802 last_float when switching float modes.
16803 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
16804 auto-increment for general-purpose registers.
16805 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
16807 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
16809 * config/sh/sh.c (sh_builtin_saveregs): Support using all
16810 registers for varargs.
16811 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
16812 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
16813 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
16814 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
16815 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
16816 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
16817 call_cookie accordingly.
16818 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
16819 (SHCOMPACT_BYREF): Likewise.
16820 (SHCOMPACT_FORCE_ON_STACK): New macro.
16821 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
16822 (sh_builtin_saveregs): Likewise.
16823 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
16824 shcompact_incoming_args): Use new shift values. Support
16825 sequences of consecutive and non-consecutive pushes/pops.
16826 * config/sh/sh.md (return): Don't explicitly use PR_REG.
16827 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
16828 * config/sh/sh.h (TEXT_SECTION): Define.
16829 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
16830 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
16831 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
16832 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
16833 return values on FPU-enabled SHmedia.
16834 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
16835 FPU-enabled SHmedia.
16836 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
16837 value is returned in a non-FP reg and is not returned by
16839 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
16841 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
16842 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
16843 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
16844 quad-aligned to be passed by callee-copy reference.
16845 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
16846 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
16847 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
16848 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
16849 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
16850 copying low-numbered FP regs to r7 and r8.
16851 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
16852 FP regs to general-purpose regs only if the copy was passed on the
16854 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
16855 copying FP reg to r9.
16856 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
16857 copy FP regs to general-purpose regs only in outgoing calls.
16858 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
16859 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
16861 * config/sh/sh.h (struct sh_args): Document all fields.
16862 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
16863 passed partially on the stack should not consider making
16865 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
16866 stack_regs only for incoming calls. When passing FP args,
16867 make sure there are FP regs available before modifying
16869 (SHCOMPACT_BYREF): Pass double args in general-purpose
16870 registers by reference.
16871 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
16872 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
16873 attempt to generate sibcalls if the caller got any arguments
16875 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
16876 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
16877 to 8-byte boundaries.
16878 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
16879 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
16880 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
16881 stored in the stack.
16882 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
16883 for the offsets to have the ISA bit set.
16884 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
16885 invocation. Use beq instead of bgt to mark end of sequence of
16887 (shcompact_incoming_args): Fix store of r2. Use beq instead of
16888 bgt to mark end of sequence of stores.
16889 * config/sh/sh.c (arith_operand): Don't check whether
16890 CONST_OK_FOR_J for now.
16891 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
16892 instead of long for conversion.
16893 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
16894 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
16895 before passing it to fprintf.
16896 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
16897 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
16898 Call set_fpscr before reading/writing SR.
16899 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
16901 * config/sh/lib1funcs.asm: Add `.align 2' directives before
16903 (FMOVD_WORKS): Define on SH5 with FPU.
16904 (set_fpscr): Define on SH5. Remove separate _fpscr_values
16906 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
16908 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
16909 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
16911 (ia_main_table): Ditto.
16912 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
16913 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
16914 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
16915 the definitions from sh.h.
16916 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
16918 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
16919 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
16920 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
16921 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
16922 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
16923 Increment LABEL_NUSES.
16925 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
16927 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
16929 * config/sh/elf.h (SIZE_TYPE): Likewise.
16930 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
16931 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
16932 shcompact_incoming_args): Load switch table addresses using
16934 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
16935 (NO_BUILTIN_SIZE_TYPE): Define.
16936 (SIZE_TYPE): Don't define.
16937 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
16938 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
16939 definition of __SH5__=32 for -m5-compact-nofpu.
16940 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
16942 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
16943 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
16944 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
16945 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
16946 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
16947 (INSN_LENGTH_ALIGNMENT): Likewise.
16948 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
16949 * config/sh/sh.md (call, call_value, sibcall): Simplify
16950 copying of non-branch-target register.
16951 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
16952 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
16953 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
16954 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
16955 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
16956 floating-point values as structs.
16957 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
16958 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
16959 general-purpose register.
16960 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
16961 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
16962 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
16963 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
16964 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
16965 (ENCODE_SECTION_INFO): Enclose variables and constants in
16967 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
16968 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
16969 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
16970 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
16971 only for LABEL_REFs. For SYMBOL_REFs, prepend
16972 SH_DATALABEL_ENCODING to the symbol name.
16973 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
16975 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
16976 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
16978 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
16979 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
16980 (DATALABEL_REF_P): Don't require CONST.
16981 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
16983 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
16984 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
16986 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
16987 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
16988 Use shallow_copy_rtx and PUT_MODE to change the mode of
16989 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
16990 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
16991 on SHmedia using GENERAL_REGs.
16992 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
16993 bltu_media_i): Fix reversion of conditions.
16994 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
16995 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
16996 * config/sh/sh.c (output_far_jump): Save r13 in macl.
16997 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
16998 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
16999 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
17000 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
17001 (GCC_nested_trampoline): Likewise.
17002 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
17003 * config/sh/sh.c (gen_datalabel_ref): Define.
17004 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
17005 (INITIALIZE_TRAMPOLINE): Likewise.
17006 (TRAMPOLINE_ADJUST_ADDRESS): Define.
17007 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
17008 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
17009 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
17010 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
17011 (ic_invalidate): Adjust for SH5.
17012 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
17013 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
17014 _nested_trampoline.
17015 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
17016 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
17017 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
17018 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
17019 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
17020 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
17021 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
17022 * config/sh/sh.c (target_reg_operand): Match only target-branch
17023 registers and pseudos that aren't virtual registers.
17024 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17025 Copy operands that don't match target_reg_operand to pseudos.
17026 (call_media, call_value_media, sibcall_media): Use
17027 target_reg_operand instead of target_operand.
17028 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
17029 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
17030 * config/sh/sh.c (target_reg_operand): Match hardware registers
17031 other than branch-target registers.
17032 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
17033 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
17034 (fpscr_values) [SH5 == 32]: Define.
17035 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
17036 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17037 Handle function addresses coming in SUBREGs.
17038 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
17039 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17040 shcompact_return_trampoline): Use datalabel where appropriate.
17041 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
17042 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
17043 general-purpose register to copy one branch-target register to
17045 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
17046 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
17047 SYMBOL_REFs with VOIDmode.
17048 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17049 bltu_media_i): New insns.
17050 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
17051 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
17052 (INIT_CUMULATIVE_ARGS): Likewise.
17053 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
17054 * machmode.def (V16SFmode): New mode.
17055 * c-common.c (type_for_mode): Support V2SF and V16SF.
17056 * tree.c (build_common_tree_nodes_2): Likewise.
17057 * tree.h (tree_index): Likewise.
17058 * calls.c (emit_call_1): Take args_so_far. Adjust all
17059 callers. Introduce CALL_POPS_ARGS.
17060 * tm.texi (CALL_POPS_ARGS): Document.
17061 * config/sh/crt1.asm: Implement in SHmedia mode.
17062 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
17063 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
17064 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
17065 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
17066 Implement divsi and udivsi in SHmedia mode. Introduce
17067 SHcompact trampolines.
17068 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
17070 (regno_reg_class): Rewrite.
17071 (fp_reg_names): Remove.
17072 (sh_register_names, sh_additional_register_names): New.
17073 (print_operand): Added `u'. Support SUBREGs in addresses.
17074 Add parentheses around shifted CONSTs.
17075 (output_file_start): Output .mode and .abi directives.
17076 (shiftcosts, addsubcosts, multcosts): Adjust.
17077 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
17078 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
17079 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
17080 bytes, not registers. Take into account the need for the
17081 SHcompact incoming args trampoline. Adjust all callers.
17082 (sh_expand_prologue): Take stack_regs into account. Call
17083 incoming args trampoline. Keep stack aligned as per SH5 ABI.
17084 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
17085 stack aligned as per SH5 ABI.
17086 (sh_builtin_saveregs): Support SH5 ABI.
17087 (sh_build_va_list, sh_va_start): Likewise.
17088 (initial_elimination_offset): Take alignment into account.
17089 Compute location of PR according to the SH5 stack frame.
17090 (arith_reg_operand): Reject branch-target registers.
17091 (shmedia_6bit_operand): New.
17092 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
17093 (target_reg_operand): Match DImode only. Accept SUBREGs.
17094 (target_operand): New.
17095 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
17096 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
17097 SIBCALL_REGS for SHmedia.
17098 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
17099 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
17100 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
17101 (TARGET_SWITCHES): New SH5 flags.
17102 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
17103 VALID_REGISTER_P to disable unsupported registers.
17104 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
17105 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
17106 (FUNCTION_ARG_PADDING): Define.
17107 (FASTEST_ALIGNMENT): Adjust.
17108 (SH_REGISTER_NAMES_INITIALIZER): New.
17109 (sh_register_names): Declare.
17110 (DEBUG_REGISTER_NAMES): Define.
17111 (REGISTER_NAMES): Define based on sh_register_names.
17112 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
17113 (sh_additional_register_names): Declare.
17114 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
17115 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
17116 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
17117 (REGISTER_NATURAL_MODE): Define.
17118 (FIRST_PSEUDO_REGISTER): Adjust.
17119 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
17120 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
17121 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
17122 (VECTOR_MODE_SUPPORTED_P): Define.
17123 (REG_CLASS_CONTENTS): Adjust.
17124 (SMALL_REGISTER_CLASSES): Adjust.
17125 (REG_ALLOC_ORDER): Adjust.
17126 (INDEX_REG_CLASS): Adjust.
17127 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
17128 (CONST_OK_FOR_LETTER_P): Adjust.
17129 (PREFERRED_RELOAD_CLASS): Adjust.
17130 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
17131 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
17132 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
17133 (FIRST_FP_PARM_REG): Adjust.
17134 (CALL_POPS_ARGS): Define.
17135 (FUNCTION_ARG_REGNO_P): Adjust.
17136 (struct sh_args): New fields.
17137 (GET_SH_ARG_CLASS): Adjust.
17138 (INIT_CUMULATIVE_ARGS): Adjust.
17139 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
17140 (FUNCTION_ARG_ADVANCE): Adjust.
17141 (FUNCTION_ARG): Adjust.
17142 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
17143 (FUNCTION_ARG_CALLEE_COPIES): Define.
17144 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
17145 (STRICT_ARGUMENT_NAMING): Define.
17146 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
17147 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
17148 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
17149 (SETUP_INCOMING_VARARGS): Adjust.
17150 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
17151 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
17152 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
17153 (SUBREG_OK_FOR_INDEX_P): Adjust.
17154 (EXTRA_CONSTRAINT_S): Update.
17155 (EXTRA_CONSTRAINT_T): New.
17156 (EXTRA_CONSTRAINT): Adjust.
17157 (GO_IF_LEGITIMATE_INDEX): Adjust.
17158 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
17159 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
17160 (MOVE_MAX): Adjust.
17161 (MAX_MOVE_MAX): Define.
17163 (CONST_COSTS): Adjust.
17164 (REGISTER_MOVE_COST): Adjust.
17165 (BRANCH_COST): Adjust.
17166 (TEXT_SECTION_ASM_OP): Adjust.
17167 (DBX_REGISTER_NUMBER): Adjust.
17168 (ASM_OUTPUT_DOUBLE_INT): New.
17169 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
17170 (PREDICATE_CODES): Adjust.
17171 (PROMOTE_MODE): Adjust.
17172 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
17173 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
17174 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
17175 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
17176 (DR0_REG, DR2_REG, DR4_REG): Renumber.
17177 (TR0_REG, TR1_REG, TR2_REG): New.
17178 (XD0_REG): Renumber.
17179 (UNSPEC_COMPACT_ARGS): New.
17180 (type): Added pt and ptabs.
17181 (length): Default to 4 on SHmedia. Default pt length to 12
17182 and 20 on SHmedia32 and SHmedia64, respectively.
17183 (pt): New function unit.
17184 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
17185 Add whitespace between operands of SHmedia instructions.
17187 (adddi3_media, addsi3_media): Adjust constraints.
17188 (subsi3) [SHmedia]: Force operand 1 into a register.
17189 (udivsi3_i1_media, udivsi3_i4_media): New.
17190 (udivsi3): Support SHmedia.
17191 (divsi3_i1_media, divsi3_i4_media): New.
17192 (divsi3): Support SHmedia.
17193 (anddi3, iordi3, xordi3): Adjust constraints.
17194 (zero_extendhidi2, zero_extendqidi2): New.
17195 (extendsidi2, extendhidi2, extendqidi2): New.
17196 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
17197 (pop_e, pop_fpul, pop_4): Likewise.
17198 (movsi_media): Support FP and BT registers.
17199 (movsi_media_nofpu): New. Adjust splits to DImode.
17200 (lduw, ldub): Renamed to zero_extend* above.
17201 (movqi_media): Fix typo.
17202 (movdi_media): Support FP and BT registers.
17203 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
17204 (movdi_const_32bit): New.
17205 (shori_media): Require immediate operand. Use `u' for output.
17206 (movdf_media, movsf_media): Simplified.
17207 (movdf_media_nofpu, movsf_media_nofpu): New.
17208 (movdf, movsf): Adjust
17209 (movv2sf, movv2sf, movv16sf): New.
17210 (beq_media, beq_media_i): Adjust constraints. Don't use
17211 scratch BT register.
17212 (bne_media, bne_media_i): Likewise.
17213 (bgt_media, bgt_media_i): Likewise.
17214 (bge_media, bge_media_i): Likewise.
17215 (bgtu_media, bgtu_media_i): Likewise.
17216 (bgeu_media, bgeu_media_i): Likewise.
17217 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
17218 bunordered): Emit jump insn. Force operands to registers when
17220 (jump_media, jump): Simplify.
17221 (call_compact, call_compact_rettramp): New.
17222 (call_value_compact, call_value_compact_rettramp): New.
17223 (call_media, call_value_media): Simplify.
17224 (sibcall_compact, sibcall_media): New.
17225 (call, call_value): Adjust for SHmedia and SHcompact.
17226 (sibcall, sibcall_value, untyped_call): Likewise.
17227 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
17228 (indirect_jump): Adjust for SHmedia.
17229 (casesi_jump_media): New.
17230 (nop): Re-enable for SHmedia.
17231 (call_site): Restrict to SH1.
17232 (casesi): Adjust for SHmedia.
17233 (casesi_shift_media, casesi_load_media): New.
17234 (return): Explicitly use PR register. Call return trampoline
17236 (return_i): Explicitly use PR register.
17237 (shcompact_return_tramp, shcompact_return_tramp_i): New.
17238 (return_media): Adjust.
17239 (shcompact_incoming_args): New.
17240 (epilogue): Adjust.
17241 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17242 (movstrsi): Disable on SH5.
17243 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
17244 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
17245 (subsf3, subsf3_media): Likewise.
17246 (mulsf3, mulsf3_media, mac_media): Likewise.
17247 (divsf3, divsf3_media): Likewise.
17248 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
17249 (floatsisf2, fux_truncsfsi2): Likewise.
17250 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
17252 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
17253 (cmpunsf_media, cmpsf): Likewise.
17254 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
17255 (abssf2, abssf2_media): Likewise.
17256 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
17257 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
17258 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
17259 (floatsidf2, fix_truncdfsi2): Likewise.
17260 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
17262 (cmpeqdf_media, cmpgtdf_media): Likewise.
17263 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
17264 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
17265 (absdf2, absdf2_media): Likewise.
17266 (extendsfdf2, extendsfdf2_media): Likewise.
17267 (truncsfdf2, truncsfdf2_media): Likewise.
17268 * config/sh/sh64.h: New file.
17269 * config/sh/t-sh64: New file.
17270 * config/sh/shmedia.h: New file.
17271 * config/sh/ushmedia.h: New file.
17272 * config/sh/sshmedia.h: New file.
17273 * configure.in: Added sh64-*-elf.
17274 * configure: Rebuilt.
17275 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
17276 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
17277 (reg_class_from_letter): Use `b' for TARGET_REGS.
17278 (print_operand): Support `%M', `%m', `AND' and
17279 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
17280 (andcosts): Adjust for SHmedia.
17281 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
17283 (target_reg_operand): New function.
17284 * config/sh/sh-protos.h (target_reg_operand): Declare.
17285 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
17286 FP registers on SH5.
17287 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
17289 (TARGET_REGISTER_P): New macro.
17290 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
17291 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
17292 (EXTRA_CONSTRAINT_S): New macro.
17293 (EXTRA_CONSTRAINT): Adjust.
17294 (FLOAT_TYPE_SIZE): Define to 32.
17295 (Pmode): DImode on SHmedia.
17296 (CONST_COSTS): Adjust for SHmedia literals.
17297 (PREDICATE_CODES): Added target_reg_operand.
17298 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
17299 * config/sh/sh.md: Remove all attrs from SHmedia insns.
17300 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
17301 (cmpdi): Accept SHmedia.
17302 (movdicc_false, movdicc_true): New insns.
17303 (movdicc): New expand.
17304 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
17306 (addsi3_media): Match `S' constraint.
17307 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
17308 (negdi2): Expand for SHmedia.
17309 (one_cmpldi2): New expand.
17310 (zero_extendsidi2): Change from expand to insn.
17311 (extendsidi2): Add constraints.
17312 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
17313 LD/ST address. Fix SI immediate loading split.
17314 (movhi_media, movqi_media, lduw, ldub): New insns.
17315 (movhi, movqi): Accept SHmedia.
17316 (shori_media, movdi_media): Relax input constraints. Split
17317 symbolic constants.
17318 (movdf_media, movsf_media): New insn. New split to movdi.
17319 (movdf, movsf): Match on SHmedia.
17320 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
17321 bgeu_media): New insns and splits. New insns with `_i' suffix.
17322 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
17323 (bunordered): New expand.
17324 (jump_compact): Renamed from `jump'.
17325 (jump_media): New insn.
17326 (jump): New expand.
17327 (call_media, call_value_media): New insns.
17328 (call, call_value): Adjust.
17329 (indirect_jump_compact): Renamed from `indirect_jump'.
17330 (indirect_jump_media): New insn.
17331 (indirect_jump): New expand.
17332 (untyped_call, return): Accept SHmedia.
17333 (return_media): New insn.
17334 (prologue, epilogue, blockage): Accept SHmedia.
17335 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17336 (sunordered): New expand.
17337 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
17338 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
17339 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
17340 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
17341 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
17342 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
17343 abssf2_media): New insns.
17344 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
17345 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
17346 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
17347 floatdidf2, floatsidf2_media, fix_truncdfdi2,
17348 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
17349 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
17350 absdf2_media): New insns.
17351 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
17352 (extendsfdf2_media, truncdfsf2_media): New insns.
17353 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
17354 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
17355 * config/sh/sh.h (CONST_OK_FOR_J): Document.
17356 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
17357 * config/sh/sh.md (adddi3): New expand.
17358 (adddi3_media, adddi3z_media): New insns.
17359 (adddi3_compact): Renamed from adddi3.
17360 (addsi3_media): Use add.l r63 to add constant zero.
17361 (subdi3): New expand.
17362 (subdi3_media): New insn.
17363 (subdi3_compact): Renamed from subdi3.
17364 (mulsidi3): New expand.
17365 (mulsidi3_media): New insn.
17366 (mulsidi3_compact): Renamed from mulsidi3.
17367 (umulsidi3): New expand.
17368 (umulsidi3_media): New insn.
17369 (umulsidi3_compact): Renamed from umulsidi3.
17370 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
17371 (ashlsi3, ashrsi3, lshrsi3): Use them.
17372 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
17373 (ashldi3, ashrdi3, lshrdi3): Use them.
17374 (zero_extendsidi2): New expand.
17375 (extendsidi2): New insn.
17376 (movsi_media): New insn. Split to movdi to load constants.
17377 (movsi): Enable for shmedia.
17378 (movdi_media): New insn. Use shori_media to load wide constants.
17379 (short_media): New insn.
17380 (movdi): Enable for shmedia.
17381 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
17382 * config/sh/sh.h (CPP_SPEC): Added `m5'.
17383 (SUBTARGET_CPP_SPEC): Added `!m5'.
17384 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
17385 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
17386 to all other SH variants.
17387 (TARGET_DEFAULT): Set to SH1_BIT.
17388 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
17389 (BITS_PER_WORD): Raise to 64 on shmedia.
17390 (MAX_BITS_PER_WORD): Change to 64.
17391 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
17392 (INT_TYPE_SIZE): Keep as 32.
17393 (UNITS_PER_WORD): Raise to 8 on shmedia.
17394 (MIN_UNITS_PER_WORD): Keep as 4.
17395 (POINTER_SIZE): Raise to 64 on shmedia.
17396 (CONST_OK_FOR_J): New macro.
17397 (CONST_OK_FOR_LETTER_P): Use it.
17398 (processor_type): Add PROCESSOR_SH5.
17399 * config/sh/sh.md: Conditionalize all expands, insns and
17400 splits to TARGET_SH1.
17402 (addsi3_compact): Renamed from...
17403 (addsi3): Now an expand.
17404 (addsi3_media, subsi3_media): New insns.
17405 (subsi3): Don't negate constants with SHmedia.
17407 * hooks.c: New file.
17408 * hooks.h: New file.
17409 * Makefile.in (HOOKS_H): New.
17410 (TARGET_DEF_H): Added $(HOOKS_H).
17411 (OBJS): Added hooks.o.
17412 (cfgcleanup.o, bb-reorder.o): Added target.h.
17413 (hooks.o): Added dependencies.
17414 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
17415 (TARGET_INITIALIZER): this.
17416 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
17417 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
17418 * bb-reorder.c: Include target.h.
17419 (reorder_basic_blocks): Skip if cannot modify jumps.
17420 * cfgcleanup.c: Include target.h.
17421 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
17423 2002-02-08 Chris Demetriou <cgd@broadcom.com>
17425 * config/mips/mips.md (casesi_internal, casesi_internal_di):
17426 Protect jump delay slot instructions with .set noreorder and
17429 2002-02-08 Chris Demetriou <cgd@broadcom.com>
17431 * config/mips/mips.md (casesi_internal_di): Calculate
17432 the index into the target offset table correctly.
17434 2002-02-08 Richard Henderson <rth@redhat.com>
17436 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
17437 * final.c (output_addr_const): Accept and discard SUBREG.
17438 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
17439 mark them unknown instead.
17440 (simplify_subtraction): Handle RTX_UNKNOWN.
17441 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
17443 2002-02-08 David Edelsohn <edelsohn@gnu.org>
17445 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
17447 2002-02-08 Richard Henderson <rth@redhat.com>
17449 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
17451 2002-02-08 Andreas Jaeger <aj@suse.de>
17453 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
17454 * config/i386/t-linux64: New file.
17456 2002-02-08 Jakub Jelinek <jakub@redhat.com>
17458 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
17459 * c-parse.in (compstmt): Clear last_expr_type.
17461 2002-02-07 Richard Henderson <rth@redhat.com>
17463 * loop.c (strength_reduce): Sink final_value when not
17466 2002-02-07 David O'Brien <obrien@FreeBSD.org>
17468 * config/sparc/freebsd.h: Fix mismatched spec {.
17470 2002-02-07 Richard Henderson <rth@redhat.com>
17472 * cfgrtl.c: Include recog.h and insn-config.h.
17473 (keep_with_call_p): Fix general_operand invocation.
17474 * Makefile.in (cfgrtl.o): Update dependencies.
17476 2002-02-07 Kazu Hirata <kazu@hxi.com>
17478 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
17479 comment. Accept HImode only if TARGET_H8300.
17481 2002-02-07 Eric Christopher <echristo@redhat.com>
17483 * config/mips/crtn.asm: Cleanup #ifdefs.
17485 2002-02-07 Eric Christopher <echristo@redhat.com>
17487 * config/mips/crti.asm: Add changes for mips16. mips16 uses
17488 register 7 as RA instead of $31.
17489 * config/mips/crtn.asm: Ditto.
17490 * config/mips/mips.c (mips_move_2words): Add case for
17491 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
17492 (compute_frame_size): Fix typo.
17493 (save_restore_insns): Ditto. Make documentation about using
17494 register $7 as return register more precise.
17495 (mips_expand_epilogue): Fix comment. Add code to work around not
17496 being able to add to the stack pointer directly.
17497 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
17498 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
17501 2002-02-07 Tom Rix <trix@redhat.com>
17503 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
17504 immediates in ldu and stdu DS opcode field.
17505 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
17506 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
17507 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
17509 2002-02-07 Jeff Sturm <jsturm@one-point.com>
17511 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
17512 offset for stack bias.
17514 2002-02-07 H.J. Lu <hjl@gnu.org>
17516 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
17518 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
17520 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
17522 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
17524 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
17525 * i386.c (x86_order_regs_for_local_alloc): New global function.
17526 * i386.h (REG_ALLOC_ORDER): CLeanup.
17527 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
17529 2002-02-07 Richard Henderson <rth@redhat.com>
17531 PR optimization/2463
17532 * alias.c (find_base_value): Recall base values for fixed hard regs.
17533 * loop.c (loop_regs_update): Don't use single_set on non-insns.
17535 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
17537 * config/mips/mips.md (define_delay) [mips16]: Adjust required
17540 2002-02-06 Richard Henderson <rth@redhat.com>
17543 * stmt.c (resolve_operand_name_1): Take more care with mixed
17544 named and unnamed operands.
17546 2002-02-06 Janis Johnson <janis187@us.ibm.com>
17547 Jan Hubicka <jh@suse.cz>
17549 * loop.c (remove_constant_addition): Avoid clobbering a shared
17552 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
17554 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
17555 * config/s390/t-linux64: New file.
17556 * config/s390/libgcc-glibc.ver: New file.
17558 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
17560 * config/s390/linux64.h: Delete file.
17561 * config/s390/s390x.h: New file.
17562 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
17563 as target header file.
17564 * config/s390/linux.h (TARGET_VERSION): Define depending on
17565 DEFAULT_TARGET_64BIT.
17566 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
17567 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
17568 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
17569 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
17570 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
17571 (EXTRA_SPEC): New define.
17572 * config/s390/s390.h (TARGET_VERSION): Define depending on
17573 DEFAULT_TARGET_64BIT.
17574 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
17576 2002-02-06 Jason Merrill <jason@redhat.com>
17578 * c-decl.c (finish_function): Warn about a non-void function with
17579 no return statement and no abnormal exit.
17580 (current_function_returns_abnormally): New variable.
17581 (start_function): Clear it.
17582 (struct c_language_function): Add returns_abnormally.
17583 (push_c_function_context): Save it.
17584 (pop_c_function_context): Restore it.
17585 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
17586 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
17587 an explicit return type.
17588 * c-tree.h: Declare current_function_returns_abnormally.
17589 (C_FUNCTION_IMPLICIT_INT): New macro.
17590 * c-typeck.c (build_function_call): Set it.
17591 (c_expand_return): Set current_function_returns_value even if the
17592 value is erroneous.
17594 2002-02-06 Jakub Jelinek <jakub@redhat.com>
17597 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
17598 unsafe for reevaluation.
17600 2002-02-06 Jakub Jelinek <jakub@redhat.com>
17603 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
17604 EXPR_STMT, but COMPOUND_STMT, recurse into it.
17606 2002-02-06 Richard Henderson <rth@redhat.com>
17608 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
17609 be a general_operand. Dest for function value must be a pseudo.
17611 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
17613 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
17614 as SYMBOL_REFs from the constant pool.
17616 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
17618 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
17619 passed by invisible reference.
17621 2002-02-05 Richard Henderson <rth@redhat.com>
17623 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
17625 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
17627 Implement using "base addresses" in insn operands as default.
17628 * config/mmix/mmix.c (mmix_conditional_register_usage): if
17629 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
17630 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
17631 used to read the rtx value.
17632 (mmix_target_asm_function_epilogue): Fix spacing.
17633 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
17634 (mmix_legitimate_address): Ditto.
17635 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
17636 should be loaded with a GETA insn. Don't allocate needless extra
17637 char for nul termination and fix misleading comment.
17638 (mmix_print_operand_address): Handle constants if
17639 TARGET_BASE_ADDRESSES.
17640 (mmix_output_register_setting): Use base addressing if
17641 TARGET_BASE_ADDRESSES and the number of insns is 3.
17642 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
17643 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
17644 to use R as constraint, add LDA to match s.
17645 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
17646 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
17647 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
17648 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
17649 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
17650 order with other fixed registers.
17651 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
17652 other parameter/call-clobbered registers.
17653 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
17654 -mbase-addresses, -mno-base-addresses.
17655 (MMIX Options): Ditto.
17657 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
17659 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
17661 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
17663 * config/rs6000/altivec.h: Change elem to _S_elem.
17665 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
17667 * config/netbsd.h (WCHAR_TYPE): Define.
17668 (WCHAR_TYPE_SIZE): Ditto.
17669 (WINT_TYPE): Ditto.
17670 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
17671 (WCHAR_UNSIGNED): Ditto.
17672 (WCHAR_TYPE_SIZE): Ditto.
17673 (WINT_TYPE): Ditto.
17674 * config/arm/netbsd.h: Likewise.
17675 * config/i386/netbsd-elf.h: Likewise.
17676 * config/i386/netbsd.h: Likewise.
17677 * config/m68k/netbsd-elf.h: Likewise.
17678 * config/m68k/netbsd.h: Likewise.
17679 * config/ns32k/netbsd.h: Likewise.
17680 * config/sparc/netbsd.h: Likewise.
17681 * config/vax/netbsd.: Likewise.
17683 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
17685 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
17686 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
17687 (TARGET_INITIALIZER): this.
17688 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
17689 (BITFIELD_NBYTES_LIMITED): Markup fix.
17690 * tree.h (default_ms_bitfield_layout_p): Declare.
17691 (record_layout_info): Added prev_field.
17692 * tree.c (default_ms_bitfield_layout_p): New fn.
17693 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
17694 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
17695 * stor-layout.c: Include target.h.
17696 (start_record_layout): Initialize prev_field.
17697 (place_field): Handle MS bit-field layout, and disregard
17698 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
17699 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
17700 * Makefile.in (stor-layout.o): Adjust dependencies.
17702 2002-02-05 Jason Merrill <jason@redhat.com>
17704 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
17706 2002-02-05 Andreas Jaeger <aj@suse.de>
17708 * crtstuff.c: Fix comments.
17710 2002-02-05 Richard Henderson <rth@redhat.com>
17713 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
17714 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
17717 * config/mips/mips.c (function_arg): Handle TImode.
17718 (function_arg_advance): Likewise.
17720 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
17722 * config/rs6000/altivec.h (vec_step_help): Rename to
17725 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
17727 * config/rs6000/altivec.h: Fix typos.
17729 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
17731 * config/arm/netbsd.h: Correct a comment.
17733 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
17735 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
17736 building void typed builtins.
17738 * config/rs6000/altivec.h (vec_ld*): Fix typos.
17739 (vec_step): Implement for C++.
17741 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17743 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
17745 2002-02-04 Richard Henderson <rth@redhat.com>
17747 * combine.c (nonzero_bits): Re-introduce special case for
17748 sp/fp/ap wrt REGNO_POINTER_ALIGN.
17750 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
17752 * doc/extend.texi: Warn about unsupported usage of altivec
17755 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
17756 (altivec_predicate_*): New.
17758 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
17759 Add C++ version of vec_*() functions.
17761 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
17762 (bdesc_2arg): Remove altivec predicates.
17763 (altivec_expand_builtin): Handle predicates.
17764 (altivec_init_builtins): Handle predicates.
17765 (altivec_expand_predicate_builtin): New.
17767 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17769 * pa.c (DO_FRAME_NOTES): Move forward.
17770 (store_reg): Revise handling of frame notes.
17771 (load_reg): Likewise.
17772 (set_reg_plus_d): Likewise.
17773 (hppa_expand_prologue): Likewise.
17774 (hppa_expand_epilogue): Likewise.
17776 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17778 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
17780 2002-02-04 Jakub Jelinek <jakub@redhat.com>
17782 PR c/4475, c++/3780:
17783 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
17784 * c-common.h (SWITCH_TYPE): Define.
17785 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
17786 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
17787 Rename spareness variable to sparseness.
17788 (expand_end_case_type): Renamed from expand_end_case, use orig_type
17789 if non-NULL instead of TREE_TYPE (orig_index).
17790 * tree.h (expand_end_case_type): Renamed from expand_end_case.
17791 (expand_end_case): Define using expand_end_case_type.
17792 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
17793 to expand_end_case_type.
17794 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
17796 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17798 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
17799 (BIGGEST_ALIGNMENT): Change to 128.
17801 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17803 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
17805 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17807 * pa.md (call_internal_reg_64bit): Remove unused variable.
17809 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
17811 * config/arm/arm.h (machine_function): Add uses_anonymous_args
17813 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
17814 * config/arm/arm.c (current_function_anonymous_args): Delete,
17815 replace uses with cfun->machine->uses_anonymous_args.
17816 (arm_reorg): Do not reset uses_anonymous_args.
17818 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
17819 any geenral register.
17821 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
17823 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
17826 2002-02-04 Richard Henderson <rth@redhat.com>
17828 * combine.c (force_to_mode): Remove STACK_BIAS code.
17829 (nonzero_bits): Likewise. Replace sp/fp special case with
17830 REGNO_POINTER_ALIGN.
17832 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
17833 (HARD_FRAME_POINTER_REGNUM): New.
17834 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
17835 (FIXED_REGS, CALL_USED_REGS): Update.
17836 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
17837 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
17838 (HARD_REGNO_NREGS): Update for SFP.
17839 (STACK_POINTER_OFFSET): Include bias here ...
17840 (FIRST_PARM_OFFSET): ... not here.
17841 (STACK_BIAS): Remove.
17842 (INIT_EXPANDERS): New.
17843 (STARTING_FRAME_OFFSET): Do not include bias.
17844 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
17845 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
17846 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
17847 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
17848 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
17849 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
17850 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
17851 (MUST_SAVE_REGISTER): Likewise.
17852 (sparc_flat_function_prologue): Likewise.
17853 (sparc_flat_function_epilogue): Likewise.
17854 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
17855 (sparc_init_modes): SFP is GENERAL_REGS.
17856 (sparc_builtin_saveregs): SFP does not have bias applied.
17858 2002-02-04 Richard Henderson <rth@redhat.com>
17860 * config/alpha/alpha.c (current_function_is_thunk): Don't check
17861 current_function_is_thunk.
17862 (alpha_sa_mask): Distinguish between current_function_is_thunk
17863 called from ASM_OUTPUT_MI_THUNK and not.
17864 (alpha_does_function_need_gp): Thunks always need gp.
17865 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
17866 (alpha_output_mi_thunk_osf): New.
17867 * config/alpha/alpha-protos.h: Update.
17868 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
17870 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
17872 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
17873 function types, not when they're taken away.
17875 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
17877 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
17878 CODE_LABEL and jump table when replacing a table jump with a
17881 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
17883 * config/s390/s390-protos.h (legitimize_la_operand,
17884 s390_secondary_input_reload_class, s390_plus_operand,
17885 s390_expand_plus_operand): Add prototypes.
17887 config/s390/s390.c (s390_secondary_input_reload_class,
17888 s390_plus_operand, s390_expand_plus_operand): New functions.
17890 (struct s390_address): New member 'pointer'.
17891 (s390_decompose_address): Compute it.
17892 (legitimate_la_operand_p): Use it.
17893 (legitimize_la_operand): New function.
17894 (movti, movdi, movdf splitters): Call it.
17896 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
17897 (PREDICATE_CODES): Add s390_plus_operand.
17899 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
17900 (la_ccclobber): Allow GENERAL_REGS as output operand.
17902 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
17903 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
17904 (*la_64, *la_31, reload_indi, reload_insi): ... these.
17906 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
17908 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
17909 register names for regular asm () construct.
17911 2002-02-04 Jakub Jelinek <jakub@redhat.com>
17913 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
17916 2002-02-04 Jakub Jelinek <jakub@redhat.com>
17918 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
17921 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
17923 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
17924 constant pool to be identical by string address and index.
17926 2002-02-04 Anthony Green <green@redhat.com>
17928 * output.h (SECTION_OVERRIDE): Define.
17929 * varasm.c (named_section): Obey SECTION_OVERRIDE.
17931 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
17933 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
17934 by existing arm*-*-netbsd* (a.out) target.
17935 (ns32k-*-netbsdelf*): Likewise.
17936 (sparc-*-netbsdelf*): Likewise.
17937 (vax-*-netbsdelf*): Likewise.
17939 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
17941 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
17942 headers and libobjc headers.
17944 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
17946 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
17947 (_mingw.h): Remove duplicate include.
17949 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
17951 * config.gcc: Set cpu_type to m68k for 68010, as well.
17952 (m68010-*-netbsdelf*): New...
17953 (m68k*-*-netbsdelf*): ...targets.
17954 * config/m68k/netbsd-elf.h: New file.
17956 2002-02-02 Kazu Hirata <kazu@hxi.com>
17958 * config/h8300/h8300.c (hand_list): Move inside function_arg.
17960 2002-02-02 Kazu Hirata <kazu@hxi.com>
17962 * config/h8300/h8300.c (h8_push_ops): Move inside
17964 (h8_pop_ops): Likewise.
17965 (h8_move_ops): Likewise.
17967 2002-02-02 Kazu Hirata <kazu@hxi.com>
17969 * config/h8300/h8300.c (os_task): Make it static.
17970 (monitor): Likewise.
17971 (pragma_saveall): Likewise.
17973 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
17975 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
17976 constant is a valid sign-extension for Pmode.
17978 2002-02-02 Kazu Hirata <kazu@hxi.com>
17980 * config/h8300/h8300.c: Fix formatting.
17982 2002-02-02 Kazu Hirata <kazu@hxi.com>
17984 * config/h8300/h8300.md: Fix formatting.
17986 2002-02-02 Kazu Hirata <kazu@hxi.com>
17988 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
17989 predicates of operands[1]. Split the patterns for each
17992 2002-02-02 Kazu Hirata <kazu@hxi.com>
17994 * config/h8300/h8300.md (xor patterns): Tighten the predicates
17995 of operands[1] to register_operand.
17997 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
17999 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
18000 * cpphash.c (_cpp_init_hashtable): Similarly.
18001 * cppinit.c (cpp_create_reader): Default the signed_char flag.
18002 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
18003 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
18004 (cpp_handle_option): Handle the new options.
18005 * cpplex.c (cpp_interpret_charconst): Use new flag.
18006 * cpplib.h (struct cpp_options): New member signed_char.
18007 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
18008 (cpp_options): Handle -fsigned-char and -funsigned-char.
18009 (static_specs): Remove signed_char_spec.
18010 (do_spec1): Don't handle %c.
18011 * system.h: Poison SIGNED_CHAR_SPEC.
18012 * tradcif.y (yylex): Use flag_signed_char.
18013 * tradcpp.h (flag_signed_char): New.
18014 * tradcpp.c (flag_signed_char): New.
18015 (main): Handle new command-line options.
18016 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
18018 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
18019 * avr/avr.h: Remove old comments.
18020 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
18021 (CC1_SPEC): Pass -fsigned-char if -mic*.
18022 (SIGNED_CHAR_SPEC): Remove.
18024 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
18026 2002-02-01 Eric Christopher <echristo@redhat.com>
18028 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
18029 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
18030 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
18031 (ASM_OUTPUT_REG_POP): Ditto.
18033 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
18035 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
18038 2002-02-02 Jakub Jelinek <jakub@redhat.com>
18040 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
18042 2002-02-02 Jakub Jelinek <jakub@redhat.com>
18045 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
18048 2002-02-01 Janis Johnson <janis187@us.ibm.com>
18050 * cfganal.c: Include tm_p.h.
18051 (keep_with_call_p): Fix the test that determines if a register holds
18052 the return value of a call.
18054 2002-02-01 DJ Delorie <dj@redhat.com>
18056 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
18057 we are given conflicting registers, switch to the other one we
18058 had allocated for us.
18059 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
18060 as TImode so we know when the "other" register is available.
18062 2002-02-01 David O'Brien <obrien@FreeBSD.org>
18064 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
18067 2002-02-01 Janis Johnson <janis187@us.ibm.com>
18069 * cfganal.c (keep_with_call_p): New function.
18070 (flow_call_edges_add): Prevent splitting a block between a call and
18071 a single-set instruction that should be kept in the same block.
18073 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
18075 * doc/install.texi (avr): Update outdated URL.
18077 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
18079 * config/stormy16/stormy16.md (pushqi): New.
18083 (movhi): Remove stack operands.
18085 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
18086 nonimmediate_nonstack_operand.
18087 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
18089 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
18092 2002-01-31 Jason Merrill <jason@redhat.com>
18094 * Makefile.in (c-parse.c): Handle .output file.
18095 * objc/Make-lang.in (objc-parse.c): Likewise.
18097 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
18099 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
18100 the -me[lb] option is given. Don't output the default flag
18103 2002-01-31 Zack Weinberg <zack@codesourcery.com>
18105 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
18106 the primary source file; this has not been done yet.
18107 * c-decl.c (c_expand_body): Reset input_filename from
18108 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
18110 2002-01-31 Kazu Hirata <kazu@hxi.com>
18112 * rtlanal.c (subreg_regno_offset): Do not use
18113 SUBREG_REGNO_OFFSET.
18114 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
18115 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
18117 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
18119 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
18120 version rather than GNATS version in --version output.
18122 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
18124 * ifcvt.c (noce_process_if_block): Make a copy of the destination
18125 when copying back from a temporary.
18127 2002-01-30 Richard Henderson <rth@redhat.com>
18129 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
18130 and new_dest are the same.
18132 2002-01-30 Richard Henderson <rth@redhat.com>
18135 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
18136 * rtl.c (note_insn_name): Update.
18137 * emit-rtl.c (remove_unnecessary_notes): Kill it.
18138 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
18139 to perform loop rotation.
18140 (expand_exit_loop_top_cond): New.
18141 * tree.h (expand_exit_loop_top_cond): Declare it.
18142 * c-semantics.c (genrtl_while_stmt): Use it.
18143 (genrtl_for_stmt): Likewise.
18145 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
18147 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
18148 arguments to 64-bit boundaries on 64-bit ABIs.
18150 2002-01-30 Steve Ellcey <sje@cup.hp.com>
18152 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
18154 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
18156 * c-decl.c (grokdeclarator): Handle type being a typedef for an
18159 2002-01-30 David O'Brien <obrien@FreeBSD.org>
18161 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
18162 * config/sparc/sparc_bi.h: Remove file.
18163 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
18165 2002-01-30 Richard Henderson <rth@redhat.com>
18167 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
18169 2002-01-30 Zack Weinberg <zack@codesourcery.com>
18171 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
18173 2002-01-30 Jason Merrill <jason@redhat.com>
18175 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
18176 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
18177 (reg_save): Use DW_CFA_offset_extended_sf instead.
18179 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
18181 2002-01-29 Jakub Jelinek <jakub@redhat.com>
18183 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
18186 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
18188 * rs6000.md ("*call_value_local32"): Remove constraints.
18189 ("*call_value_local64"): Same.
18190 ("*call_value_indirect_nonlocal_aix32"): Same.
18191 ("*call_value_nonlocal_aix32"): Same.
18192 ("*call_value_indirect_nonlocal_aix64"): Same.
18193 ("*call_value_nonlocal_aix64"): Same.
18194 ("*call_value_nonlocal_sysv"): Same.
18196 2002-01-29 Richard Henderson <rth@redhat.com>
18198 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
18200 2002-01-29 Richard Henderson <rth@redhat.com>
18202 * expr.c (force_operand): Ignore flag_pic for detecting pic
18204 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
18205 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
18206 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
18207 instead of open-coded loop.
18208 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
18209 be fixed when in use.
18211 2002-01-29 Richard Henderson <rth@redhat.com>
18213 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
18214 * sched-rgn.c (propagate_deps): Update them.
18215 * sched-deps.c (sched_analyze_insn): Update them. Flush the
18216 clobbers list when either gets too long.
18218 2002-01-29 Jakub Jelinek <jakub@redhat.com>
18220 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
18221 and INDEX_REGS the same as GENERAL_REGS.
18222 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
18224 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
18226 * tree.c (build_nonstandard_integer_type): Correct prototype.
18228 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
18230 * config/s390/s390.md (movstrsico, movstrdix_64,
18231 movstrsix_31): Remove, replace by ...
18232 (movstrdi_short, movstrsi_short, movstrdi_long,
18233 movstrsi_long): ... these. New.
18234 (movstrdi, movstrsi): Adapt.
18236 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
18237 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
18238 Remove unnecessary CC clobber.
18239 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
18240 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
18242 (divmoddi4): Don't partially initialize TImode register.
18244 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
18246 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
18248 2002-01-29 Richard Henderson <rth@redhat.com>
18250 * flow.c (print_rtl_and_abort): Remove.
18251 (print_rtl_and_abort_fcn): Remove.
18252 (verify_local_live_at_start): Use dump_bb instead.
18253 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
18254 (verify_wide_reg_1): Return 2 on mode test failure.
18256 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
18258 PR c/3325, c/3326, c/2511, c/3347
18259 * c-decl.c (enum_decl_context): Remove BITFIELD.
18260 (grokdeclarator): Take bitfield width as an input.
18261 Ensure bitfields are given the correct type. Perform
18262 bitfield width validation with build_bitfield_integer_type
18263 rather than waiting for finish_struct.
18264 (grok_typename, grok_typename_in_parm_context, start_decl,
18265 push_parmdecl, grokfield, start_function): Update calls to
18267 (build_bitfield_integer_type): New function.
18268 (finish_struct): Move bitfield validation to grokdeclarator
18269 and build_bitfield_integer_type.
18270 * tree.c (build_nonstandard_integer_type): New function.
18271 * tree.h (build_nonstandard_integer_type): New prototype.
18273 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
18275 2002-01-29 Jakub Jelinek <jakub@redhat.com>
18278 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
18279 don't ignore unrecognized -W* options.
18280 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
18281 * cpplib.h (cpp_handle_option): Adjust prototype.
18282 * c-decl.c (c_decode_options): Pass 0 as last argument to
18286 * gcc.c (cpp_unique_options): Split from cpp_options.
18287 (cpp_options): Source cpp_unique_options.
18288 (default_compilers): Use cpp_unique_options instead of cpp_options
18289 when used together with cc1_options.
18290 (static_specs): Add cpp_unique_options.
18291 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
18292 when used together with cc1_options.
18294 2002-01-29 Kazu Hirata <kazu@hxi.com>
18296 * config/h8300/h8300-protos.h: Update the prototype of
18298 * config/h8300/h8300.c (output_a_shift): Remove an unused
18299 argument 'insn'. Remove redundant code.
18300 * config/h8300/h8300.md: Adust to the new prototype of
18303 2002-01-29 Kazu Hirata <kazu@hxi.com>
18305 * config/h8300/h8300-protos.h: Update the prototypes of
18306 emit_a_rotate and expand_a_rotate.
18307 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
18308 first argument to 'enum rtx_code'.
18309 (expand_a_rotate): Likewise.
18311 2002-01-28 Kazu Hirata <kazu@hxi.com>
18313 * config/h8300/h8300-protos.h: Update the prototype of
18315 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
18317 * config/h8300/h8300.md: Adjust to the new prototype.
18319 2002-01-28 Kazu Hirata <kazu@hxi.com>
18321 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
18324 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
18326 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
18327 is a fixed register before returning pic_offset_table_rtx.
18328 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
18329 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
18331 2002-01-28 Jason Merrill <jason@redhat.com>
18333 * dwarf2.h: Sync with src version.
18335 2002-01-28 Paul Koning <pkoning@equallogic.com>
18337 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
18338 BT_FN_VOID_PTR_VAR.
18339 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
18340 * doc/extend.texi (__builtin_prefetch): Update documentation:
18341 first argument is now const void ptr.
18343 2002-01-28 Kazu Hirata <kazu@hxi.com>
18345 * config/h8300/h8300-protos.h: Remove an unused prototype.
18347 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
18349 * toplev.c (lang_independent_init): Round up identifier size.
18351 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
18353 * config.gcc: Revert previous change.
18355 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
18357 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
18359 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
18361 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
18362 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
18363 other non-elf netbsd config frags.
18364 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
18365 collect2 will does that.
18366 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
18367 shared-lib frobbing will work.
18369 2002-01-28 Kazu Hirata <kazu@hxi.com>
18371 * config/h8300/h8300.h: Fix formatting.
18372 * config/h8300/h8300.md: Likewise.
18374 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
18376 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
18377 the old, removed AAA_standards fix.
18378 * fixinc/fixincl.x: Rebuilt.
18380 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
18382 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
18383 atexit call in crtbegin, hooked in after call to frame_dummy;
18384 register EH before registering __fini__start.
18386 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
18388 * config/rs6000/altivec.h: Remove spurious semicolons.
18390 2002-01-27 Kazu Hirata <kazu@hxi.com>
18392 * config/h8300/h8300.md: Replace dead bit extraction patterns
18393 with ones that work.
18395 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18397 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
18398 if not STRICT_ALIGNMENT.
18399 * rtl.h (MEM_ALIGN): Likewise.
18401 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
18403 * doc/invoke.texi (-fdump-translation-unit): Revert this
18404 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
18406 2002-01-27 Kazu Hirata <kazu@hxi.com>
18408 * config/h8300/h8300.md (define_constants): New.
18409 (anonymous patterns) Use defined constants appropriately.
18411 2002-01-27 Kazu Hirata <kazu@hxi.com>
18413 * config/h8300/h8300.c (function_arg): Remove redundant code.
18415 2002-01-26 Richard Henderson <rth@redhat.com>
18417 * sched-deps.c (reg_pending_uses_head): New.
18418 (reg_pending_barrier): Rename from reg_pending_sets_all.
18419 (find_insn_list): Don't mark inline.
18420 (find_insn_mem_list): Remove.
18421 (add_dependence_list, add_dependence_list_and_free): New.
18422 (flush_pending_lists): Replace only_write param with separate
18423 for_read and for_write parameters. Update all callers. Use
18424 add_dependence_list_and_free.
18425 (sched_analyze_1): Do not add reg dependencies here; just set
18426 the pending bits. Use add_dependence_list.
18427 (sched_analyze_2): Likewise.
18428 (sched_analyze_insn): Replace schedule_barrier_found with
18429 reg_pending_barrier. Add all dependencies for pending reg
18430 uses, sets, and clobbers.
18431 (sched_analyze): Don't add reg dependencies for calls, just
18432 set pending bits. Use regs_invalidated_by_call. Treat
18433 sched_before_next_call as a normal list, not a fake insn.
18434 (init_deps): No funny init for sched_before_next_call.
18435 (free_deps): Free pending mems lists. Don't zero reg_last.
18436 (init_deps_global): Init reg_pending_uses.
18437 (finish_deps_global): Free it.
18438 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
18439 (find_insn_mem_list): Remove.
18440 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
18441 (propagate_deps): Use them. Zero temp mem lists.
18443 2002-01-26 Richard Henderson <rth@redhat.com>
18445 * Makefile.in (CRTSTUFF_CFLAGS): New.
18446 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
18447 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
18448 crtstuff.c instead of alpha assembly version.
18449 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
18450 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
18451 not FORCE_{INIT,FINI}_SECTION_ALIGN.
18452 (__do_global_dtors_aux): Mark used.
18453 (frame_dummy, __do_global_ctors_aux): Mark used.
18454 (fini_dummy, init_dummy): Remove.
18456 * config/alpha/crtbegin.asm: Remove file.
18457 * config/alpha/crtend.asm: Remove file.
18458 * config/alpha/t-crtbe: Remove file.
18459 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
18460 (LINK_EH_SPEC): New.
18462 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
18463 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
18464 calling constructors.
18465 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
18467 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
18468 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
18469 CRT_END_INIT_DUMMY hack.
18470 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
18471 FORCE_{INIT,FINI}_SECTION_ALIGN.
18473 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
18474 FORCE_{INIT,FINI}_SECTION_ALIGN.
18476 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
18477 invocation sequence.
18478 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
18480 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
18481 (FORCE_CODE_SECTION_ALIGN): New.
18483 2002-01-26 Richard Henderson <rth@redhat.com>
18485 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
18487 2002-01-26 Richard Henderson <rth@redhat.com>
18489 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
18490 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
18492 2002-01-26 Kazu Hirata <kazu@hxi.com>
18494 * config/h8300/h8300.md: Remove bit extraction patterns that
18495 cannot be triggered.
18496 Restrict each bit extraction pattern to a variant on which the
18499 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
18501 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
18503 2002-01-26 Kazu Hirata <kazu@hxi.com>
18505 * config/h8300/h8300.md: Remove bit test patterns that cannot
18507 Restrict each bit test pattern to a variant on which the
18510 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18512 * builtins.c (expand_builtin_strncat): Remove redundant check for
18515 2002-01-25 David O'Brien <obrien@FreeBSD.org>
18517 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
18519 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
18522 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
18524 * dbxout.c (dbxout_init): Use assemble_name rather than just
18525 stripping off the first character.
18526 (dbxout_source_file): Likewise.
18528 2002-01-25 DJ Delorie <dj@redhat.com>
18530 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
18531 using rtx_equal_p, not by comparing pointers.
18533 2002-01-25 Steve Ellcey <sje@cup.hp.com>
18535 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
18536 for PIC_OFFSET_TABLE_REGNUM.
18537 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
18539 2002-01-25 David O'Brien <obrien@FreeBSD.org>
18541 * config.gcc (x86_64-*-freebsd*): New target.
18542 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
18544 (i[34567]86-*-freebsd*): Don't include svr4.h.
18545 * config/i386/freebsd64.h: New file.
18547 2002-01-25 Douglas B Rupp <rupp@gnat.com>
18549 * config/alpha/x-vms (version): Make static.
18551 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
18552 in previous checkin.
18554 * Makefile.in (install-headers-cp): New target.
18555 * config.gcc (alpha-dec-*vms*): Install headers with
18558 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
18560 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
18563 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18565 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
18566 of compare_tree_int.
18567 (expand_builtin_strncat): Likewise.
18568 * c-decl.c (finish_struct): Use tree_low_cst.
18569 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
18570 * tree.c (compare_tree_int): Likewise.
18572 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
18574 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
18575 adjustments even if they are implemented by more than two insns.
18577 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
18579 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
18580 * df.h (struct ref): Kill B.
18581 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
18583 * basic-block.h (PROP_EQUAL_NOTES): New flag.
18584 * flow.c (propagate_one_insn): Use it.
18585 (mark_used_regs): Handle NIL.
18587 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
18589 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
18592 2002-01-25 David Edelsohn <edelsohn@gnu.org>
18594 * rs6000.md (prefetch): Make address V4SI mode so that the address
18595 is restricted to legitimate form for instruction.
18597 2002-01-25 Bob Wilson <bob.wilson@acm.org>
18599 * doc/install.texi (xtensa-*-elf): New target.
18600 (xtensa-*-linux*): New target.
18601 * doc/contrib.texi: Add myself.
18603 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
18605 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
18606 purpose register to hold an SImode (or smaller) value.
18608 2002-01-25 Jakub Jelinek <jakub@redhat.com>
18610 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
18612 * crtstuff.c: Likewise.
18614 2002-01-25 Kazu Hirata <kazu@hxi.com>
18616 * config/h8300/h8300.md (negation patterns): Tighten
18617 predicates to register_operand.
18619 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
18621 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
18624 * builtins.c (expand_builtin_prefetch): Same.
18626 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18628 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
18631 2002-01-24 Kazu Hirata <kazu@hxi.com>
18633 * config/h8300/h8300.c (print_operand): Remove support for
18634 operand character 'A'.
18635 * config/h8300/h8300.md (three anonymous patterns): Replace
18636 operand character 'A' with either 'T' or 'S'.
18638 2002-01-24 Kazu Hirata <kazu@hxi.com>
18640 * config/h8300/h8300.c (print_operand): Remove support for
18641 operand character 'U'.
18643 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
18645 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
18647 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
18649 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
18650 values to be assigned to the stack pointer.
18652 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
18654 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
18655 to const_double needs to be done right for big-endian systems.
18657 2002-01-24 Jason Merrill <jason@redhat.com>
18660 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
18661 to can_throw_internal.
18663 2002-01-23 Richard Henderson <rth@redhat.com>
18665 * fold-const.c (fold): Change UINT_MAX test to check vs precision
18666 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
18668 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18670 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
18671 (symGOT2reg): Use them, then set as GOT value as unchanging.
18672 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
18673 as a temporary, if possible.
18674 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
18675 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
18677 2002-01-23 Kazu Hirata <kazu@hxi.com>
18679 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
18680 accept to accept 0x80 as operands[2].
18682 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18684 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
18686 2002-01-23 Richard Henderson <rth@redhat.com>
18688 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
18690 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
18692 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
18693 (parmlist_or_identifiers_1): Verify that only a parmlist follows
18696 2002-01-23 Richard Henderson <rth@redhat.com>
18698 * expr.c (move_by_pieces_1): Extend size before negation.
18700 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
18701 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
18702 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
18703 * config/m68k/t-m68kelf: Likewise.
18705 2002-01-23 Bob Wilson <bob.wilson@acm.org>
18707 * config/xtensa/elf.h: New file.
18708 * config/xtensa/lib1funcs.asm: New file.
18709 * config/xtensa/lib2funcs.S: New file.
18710 * config/xtensa/linux.h: New file.
18711 * config/xtensa/t-xtensa: New file.
18712 * config/xtensa/xtensa-config.h: New file.
18713 * config/xtensa/xtensa-protos.h: New file.
18714 * config/xtensa/xtensa.c: New file.
18715 * config/xtensa/xtensa.h: New file.
18716 * config/xtensa/xtensa.md: New file.
18717 * config.gcc (xtensa-*-elf*): New target.
18718 (xtensa-*-linux*): New target.
18719 * cse.c (canon_hash): Compare rtx pointers instead of register
18720 numbers. This is required for the Xtensa port.
18721 * integrate.c (copy_insn_list): Handle case where the static
18722 chain is in memory and the memory address has to be copied to
18724 * doc/invoke.texi (Option Summary): Add Xtensa options.
18725 (Xtensa Options): New node.
18726 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
18728 2002-01-23 Zack Weinberg <zack@codesourcery.com>
18730 * diagnostic.c (internal_error): Do ICE suppression only
18731 when ENABLE_CHECKING is not defined.
18733 * c-typeck.c (require_complete_type): Return error_mark_node
18734 if type is error_mark_node.
18736 2002-01-23 Janis Johnson <janis187@us.ibm.com>
18738 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
18739 -Os and issue a warning.
18741 2002-01-23 Zack Weinberg <zack@codesourcery.com>
18743 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
18744 current (lack of) need for host configuration by hand.
18746 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
18747 references. Documentation of some target macros moved from
18748 hostconfig.texi to tm.texi.
18750 2002-01-23 Will Cohen <wcohen@redhat.com>
18752 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
18755 2002-01-23 Kazu Hirata <kazu@hxi.com>
18757 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
18760 2002-01-23 Jason Merrill <jason@redhat.com>
18762 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
18764 * function.c (assign_parms): Don't put args of inline functions
18765 into registers when not optimizing.
18767 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
18769 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
18770 (prologue_use): New pattern.
18771 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
18772 preference to gen_rtx_USE.
18773 (thumb_expand_prologue): Use gen_prologue_use in preference to
18775 (thumb_expand_epilogue): Use gen_prologue_use in preference to
18778 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
18780 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
18782 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
18785 * doc/extend.texi: Correct documentation of __alignof__.
18787 2002-01-22 Zack Weinberg <zack@codesourcery.com>
18789 * params.h: Rename arguments of DEFPARAM so that it will be
18790 recognized as a translation keyword.
18792 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
18794 * extend.texi: Document altivec functions.
18795 Fix N-bit adjectives in X86 builtin documentation.
18797 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
18799 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
18800 auto_inc_dec values.
18802 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
18804 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
18806 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
18808 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
18810 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
18812 2002-01-22 Richard Henderson <rth@redhat.com>
18814 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
18815 copy_insn not copy_rtx.
18817 2002-01-23 Alan Modra <amodra@bigpond.net.au>
18819 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
18820 "nonzero" as that might add "1" bits. Ensure "constop" is
18821 properly sign extened.
18822 (force_to_mode): Tweak for sign extended constop.
18824 2002-01-22 Richard Henderson <rth@redhat.com>
18826 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
18827 for_each_rtx instead of assuming we're already looking at the MEM.
18828 (split_small_symbolic_mem_operand): Likewise.
18829 * config/alpha/alpha.h (PREDICATE_CODES): Update.
18830 * config/alpha/alpha.md (small symbolic memory splitters): Update.
18832 2002-01-22 Richard Henderson <rth@redhat.com>
18834 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
18835 sequence number for the literal.
18836 (divmoddi_internal_er): Likewise.
18838 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
18841 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
18842 in LIBICONV variable.
18843 * configure: Regenerated.
18845 2002-01-22 Krister Walfridsson <cato@df.lth.se>
18847 * dependence.c (build_def_use): Remove array_idx.
18849 * dwarfout.c (last_filename): Remove.
18850 (output_compile_unit_die): Remove last_filename.
18852 2002-01-22 Roger Sayle <roger@eyesopen.com>
18853 Richard Henderson <rth@redhat.com>
18856 * fold-const.c (fold): Optimize unsigned comparisons against
18857 UINT_MAX (and similar unsigned constants).
18859 2002-01-22 Janis Johnson <janis187@us.ibm.com>
18861 * Makefile.in (loop.o): Depend on OPTABS_H.
18862 * loop.c (emit_prefetch_instructions): Check the prefetch operand
18863 against the predicate.
18866 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
18867 for the address operand.
18869 2002-01-22 Richard Henderson <rth@redhat.com>
18871 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
18873 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
18876 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
18877 preprocessor flags.
18879 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
18881 * config.gcc (x86_64-*-netbsd*): New target.
18882 * config/i386/netbsd64.h: New file.
18884 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
18886 * regrename.c (kill_value): Fix typo.
18888 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
18890 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
18892 * config/rs6000/rs6000.h: Same.
18894 * function.c (instantiate_virtual_regs): Remove
18895 STARTING_FRAME_PHASE.
18896 (assign_stack_local_1): Same.
18897 Calculate frame phase.
18899 2002-01-22 Nick Clifton <nickc@redhat.com>
18901 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
18902 variable declaration to outer scope in order to simplify
18904 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
18905 arm_hard_regno_mode_ok.
18906 * config/arm/arm-protos.h: Add a prototype for
18907 arm_hard_regno_mode_ok.
18908 * config/arm/arm.c (soft_df_operand): Remove now redundant
18909 check for DImode values using IP_REGNUM.
18910 (nonimmediate_soft_df_operand): Remove now redundant check for
18911 DImode values using IP_REGNUM.
18912 (arm_hard_regno_mode_ok): New function. New check: make sure
18913 that DImode values are not stored in IP_REGNUM.
18915 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
18917 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
18919 2002-01-22 Jason Merrill <jason@redhat.com>
18921 * c-semantics.c (genrtl_compound_stmt): Only check nesting
18922 consistency if this COMPOUND_STMT is scoped.
18924 2002-01-22 Kazu Hirata <kazu@hxi.com>
18926 * predict.c: Fix formatting.
18927 * print-tree.c: Likewise.
18928 * protoize.c: Likewise.
18929 * real.h: Likewise.
18931 * sbitmap.h: Likewise.
18932 * scan.c: Likewise.
18933 * sched-deps.c: Likewise.
18934 * sched-vis.c: Likewise.
18935 * sdbout.c: Likewise.
18936 * sibcall.c: Likewise.
18938 * ssa-ccp.c: Likewise.
18939 * ssa-dce.c: Likewise.
18940 * stmt.c: Likewise.
18941 * stor-layout.c: Likewise.
18942 * system.h: Likewise.
18944 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18946 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
18947 if fits in bounds of base type.
18949 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
18950 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
18951 (add_bound_info, default): If can't find a context, make a
18953 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
18955 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
18957 * c-typeck.c (parser_build_binary_op): If result from
18958 build_binary_op is ERROR_MARK just return error_mark_node without
18959 further processing.
18961 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
18963 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
18964 Split a.out-specific bits into...
18965 * config/netbsd-aout.h: ...this.
18966 * config/netbsd-elf.h: New file.
18967 * config/alpha/netbsd-elf.h: Remove.
18968 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
18969 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
18970 (STARTFILE_SPEC): Remove redundant definition.
18971 (ENDFILE_SPEC): Likewise.
18972 (LINK_SPEC): Likewise.
18973 (CPP_SPEC): Likewise.
18974 (ASM_SPEC): Likewise.
18975 (LIB_SPEC): Likewise.
18976 (SWITCH_TAKES_ARG): Likewise.
18977 (TARGET_MEM_FUNCTIONS): Likewise.
18978 (CPP_PREDEFINES): Redefine.
18979 (ASM_FINAL_SPEC): Remove redefinition.
18980 (ASM_COMMENT_START): Redefine.
18981 (FUNCTION_PROFILER): Define.
18982 (TARGET_VERSION): Redefine.
18983 Comment and formatting cleanup.
18984 * config/i386/netbsd.h: Include <netbsd-aout.h>.
18985 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
18986 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
18987 big- or little-endian.
18988 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
18989 * config.gcc (*-*-netbsd*): Add definitions common to all
18991 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
18992 gnu_ld definitions. Add netbsd-elf.h to and remove
18993 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
18994 tmake_file, and don't lose previous tmake_file contents.
18995 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
18996 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
18997 gnu_ld definitions. Add netbsd-elf.h to tm_file.
18998 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
18999 (mipsel-*-netbsd*): Rename this to...
19000 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
19001 mips/little.h to tm_file for mips*el-*.
19002 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
19003 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
19004 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
19006 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
19008 * pa-protos.h (reg_before_reload_operand): New function prototype.
19009 * pa.c (reg_before_reload_operand): New function implementation.
19010 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
19011 contraints to "*m".
19013 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19015 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
19017 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
19019 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
19020 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
19021 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
19022 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
19023 (ENDFILE_SPEC): Undefine.
19024 (STARTFILE_SPEC): Redefine for PA.
19026 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19028 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
19030 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
19032 * config.gcc: Add entries to supported PowerPC --with-cpu
19035 2002-01-21 Jakub Jelinek <jakub@redhat.com>
19037 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
19038 true for 64-bit mode only SSE registers in 32-bit mode.
19040 2002-01-21 Kazu Hirata <kazu@hxi.com>
19042 * unwind-dw2.c: Fix formatting.
19043 * unwind-dw2-fde.c: Likewise.
19044 * unwind-dw2-fde.h: Likewise.
19045 * unwind-pe.h: Likewise.
19046 * varasm.c: Likewise.
19047 * varray.h: Likewise.
19049 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
19051 Remove workaround for register stack overwrite bug in mmix.
19052 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
19053 support for TARGET_REG_STACK_FILL_BUG.
19054 * config/mmix/mmix.h: Remove member has_call_without_parameters.
19055 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
19057 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
19058 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
19059 -mno-reg-stack-fill-bug-workaround.
19060 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
19061 machine member has_call_without_parameters.
19062 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
19063 -mreg-stack-fill-bug-workaround and
19064 -mno-reg-stack-fill-bug-workaround.
19065 (MMIX Options): Ditto.
19067 2002-01-21 Kazu Hirata <kazu@hxi.com>
19069 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
19071 Remove redundant code.
19073 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
19075 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
19076 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
19077 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
19078 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
19079 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
19080 out target macro definitions and non-target-specific comments
19081 mostly taken from old versions of the manual.
19083 2002-01-20 Kazu Hirata <kazu@hxi.com>
19085 * config/h8300/h8300.h: Fix comment formatting.
19086 * config/ia64/aix.h: Likewise.
19087 * config/ia64/ia64-protos.h: Likewise.
19088 * config/ia64/ia64.c: Likewise.
19089 * config/ia64/ia64.h: Likewise.
19090 * config/ia64/ia64intrin.h: Likewise.
19091 * config/ia64/linux.h: Likewise.
19092 * config/ia64/unwind-aix.c: Likewise.
19093 * config/ia64/unwind-ia64.c: Likewise.
19095 2002-01-20 Kazu Hirata <kazu@hxi.com>
19097 * config/h8300/h8300.c: Revise comments about shift code.
19099 2002-01-20 Kazu Hirata <kazu@hxi.com>
19101 * config/h8300/h8300.c (function_arg): Update a comment.
19103 2002-01-20 Kazu Hirata <kazu@hxi.com>
19105 * config/h8300/h8300.md: Update the comments at the beginning
19108 2002-01-20 Kazu Hirata <kazu@hxi.com>
19110 * config/i370/i370.c: Fix comment formatting.
19111 * config/i370/i370.h: Likewise.
19112 * config/i370/i370.md: Likewise.
19113 * config/i370/linux.h: Likewise.
19115 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19117 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
19119 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
19120 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
19121 in incomplete case.
19123 2002-01-20 Graham Stott <grahams@redhat.com>
19125 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
19127 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
19129 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
19131 2002-01-19 Tom Rix <trix@redhat.com>
19133 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
19135 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
19137 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
19139 * function.c (assign_stack_local_1): Adjust x_frame_offset with
19140 STARTING_FRAME_PHASE.
19141 (STARTING_FRAME_PHASE): New.
19142 (instantiate_virtual_regs): Check saneness of
19143 STARTING_FRAME_PHASE.
19145 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
19147 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
19149 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
19151 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
19153 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
19154 be used for bootstrapping GCC 3.0.
19156 2002-01-18 Kazu Hirata <kazu@hxi.com>
19158 * config/h8300/h8300.md: Fix an insn length.
19160 2002-01-18 Kazu Hirata <kazu@hxi.com>
19162 * bitmap.h: Fix comment formatting.
19163 * combine.c: Likewise.
19164 * cppfiles.c: Likewise.
19165 * c-pragma.h: Likewise.
19166 * c-typeck.c: Likewise.
19168 * dwarf2out.c: Likewise.
19169 * function.c: Likewise.
19171 * genattrtab.c: Likewise.
19172 * gthr-win32.h: Likewise.
19173 * haifa-sched.c: Likewise.
19174 * predict.c: Likewise.
19175 * rtlanal.c: Likewise.
19177 * unwind-dw2-fde.h: Likewise.
19178 * unwind-pe.h: Likewise.
19179 * vmsdbgout.c: Likewise.
19181 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19183 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
19184 if type_required and passed decl.
19186 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
19188 * config.gcc (cpu_type): Include altivec.h in powerpc
19192 * config/rs6000/altivec.h: New.
19194 2002-01-17 David Edelsohn <edelsohn@gnu.org>
19196 * doc/install.texi (*-ibm-aix*): Update assembler and exception
19197 handling information.
19198 * doc/trouble.texi (Interoperation): Add libstdc++ information
19200 (Misunderstandings): Add template instantiation and static template
19201 member information for AIX.
19203 2002-01-17 Jason Merrill <jason@redhat.com>
19205 * dbxout.c (dbxout_type): Support const and volatile.
19207 * except.c (add_partial_entry): Remove backwards compatibility code.
19208 (end_protect_partials): Likewise.
19210 2002-01-17 Jakub Jelinek <jakub@redhat.com>
19212 * config/ia64/ia64.md (prologue_use): New.
19213 * config/ia64/ia64.c (ia64_expand_prologue): Use
19214 gen_prologue_use instead of gen_rtx_USE.
19215 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
19216 as CODE_FOR_pred_rel_mutex.
19217 (ia64_sched_reorder2): Likewise.
19219 2002-01-16 Eric Christopher <echristo@redhat.com>
19221 * config/mips/r3900.h: Reformat.
19222 (SUBTARGET_CPP_SIZE_SPEC): Remove.
19223 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
19224 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
19225 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
19226 * config/mips/t-elf: Remove mips3 multilib.
19228 2002-01-16 H.J. Lu <hjl@gnu.org>
19230 * config/mips/linux.h: Include "mips/abi64.h".
19232 2002-01-16 H.J. Lu <hjl@gnu.org>
19234 * config/mips/t-linux: New.
19236 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
19238 * config/mips/linux.h: Don't include "gofast.h".
19239 (INIT_SUBTARGET_OPTABS): Removed.
19241 2002-01-16 Kazu Hirata <kazu@hxi.com>
19243 * config/h8300/h8300-protos.h: Replace emit_a_shift with
19245 * config/h8300/h8300.c: Likewise.
19246 * config/h8300/h8300.md: Likewise.
19248 2002-01-16 Kazu Hirata <kazu@hxi.com>
19250 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
19251 spaces after an opcode name.
19252 (pushqi1_h8300hs): Likewise.
19253 (pushhi1_h8300hs): Likewise.
19255 2002-01-16 Kazu Hirata <kazu@hxi.com>
19257 * doc/extend.texi: Replace "option" with "attribute"
19260 2002-01-16 Jakub Jelinek <jakub@redhat.com>
19262 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
19263 (and:DI () (const_int -8)).
19264 (split_small_symbolic_mem_operand): Split
19265 (mem (and:DI () (const_int -8)).
19267 2002-01-16 Jakub Jelinek <jakub@redhat.com>
19270 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
19271 same way as TYPE_IMUL.
19272 (ultrasparc_sched_reorder): Likewise.
19273 * config/sparc/sparc.md (type): Add comment to update
19274 ultrasparc_sched_reorder when making changes.
19276 2002-01-16 Kazu Hirata <kazu@hxi.com>
19278 * doc/invoke.texi: Change the dump file name of block
19279 reordering pass from 28.bbro to 29.bbro.
19280 Mention -dk option.
19282 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
19284 * i386.md (minsf splitter): Fix pasto.
19286 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
19288 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
19289 to frame pointer initialisation instruction.
19290 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
19291 initialisation instruction.
19292 (soft_df_operand): Do not accept the IP register.
19293 (nonimmediate_soft_df_operand): Do not accept the IP register.
19295 2002-01-16 Jakub Jelinek <jakub@redhat.com>
19298 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
19299 MASK_V8 being both set.
19301 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
19303 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
19304 insn for GOT register; add REG_MAYBE_DEAD notes instead.
19305 config/s390/s390.md (call, call_value): Add GOT register to
19306 CALL_INSN_FUNCTION_USAGE where needed.
19307 (call_exp, call_value_exp): New.
19309 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
19311 * config/arm/arm.c: General formatting tidy up.
19313 2002-01-16 Graham Stott <grahams@redhat.com>
19315 * calls.c (try_to_integrate): Use "(size_t)" intermediate
19316 cast and when casting an integer literal to "rtx" pointer.
19317 (expand_call): Likewise.
19318 * flow.c (try_pre_increment): Likewise.
19319 (find_use_as_address): Likewise.
19320 * integrate.c (expand_iline_function): Likewise.
19321 * regmove.c (try_auto_increment): Likewise.
19323 2002-01-16 Graham Stott <grahams@redhat.com>
19325 * sched-rgn.c (passed): Use sbitmap_free.
19326 (header): Likewise.
19328 (in_queue): Likewise.
19329 (in_stack): Likewise.
19331 2002-01-15 Eric Christopher <echristo@redhat.com>
19333 * flow.c (propagate_one_insn): Change to use fatal_insn.
19335 2002-01-15 Kazu Hirata <kazu@hxi.com>
19337 * expmed.c (extract_fixed_bit_field): Remove unused code.
19338 * system.h: Poison SLOW_ZERO_EXTEND.
19339 * doc/tm.texi: Remove.
19340 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
19341 * config/arm/arm.h: Likewise.
19342 * config/avr/avr.h: Likewise.
19343 * config/clipper/clipper.h: Likewise.
19344 * config/convex/convex.h: Likewise.
19345 * config/d30v/d30v.h: Likewise.
19346 * config/dsp16xx/dsp16xx.h: Likewise.
19347 * config/elxsi/elxsi.h: Likewise.
19348 * config/fr30/fr30.h: Likewise.
19349 * config/h8300/h8300.h: Likewise.
19350 * config/i370/i370.h: Likewise.
19351 * config/i386/i386.h: Likewise.
19352 * config/m68k/m68k.h: Likewise.
19353 * config/mips/mips.h: Likewise.
19354 * config/ns32k/ns32k.h: Likewise.
19355 * config/pdp11/pdp11.h: Likewise.
19356 * config/pj/pj.h: Likewise.
19357 * config/s390/s390.h: Likewise.
19358 * config/sh/sh.h: Likewise.
19359 * config/stormy16/stormy16.h: Likewise.
19360 * config/v850/v850.h: Likewise.
19361 * config/vax/vax.h: Likewise.
19362 * config/we32k/we32k.h: Likewise.
19364 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
19366 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
19367 (altivec_lvsl): Change constraint to b.
19368 (altivec_lvsr): Same.
19369 (altivec_lvebx): Same.
19370 (altivec_lvehx): Same.
19371 (altivec_lvewx): Same.
19372 (altivec_lvxl): Same.
19373 (altivec_lvx): Same.
19374 (altivec_stvx): Add parallel.
19375 (altivec_stvxl): Same.
19376 (altivec_stvehx): Same.
19377 (altivec_stvebx): Same.
19378 (altivec_stvebx): Same.
19380 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
19382 * config.gcc: Change altivec.h to altivec-defs.h.
19384 * config/rs6000/altivec.h: Delete.
19386 * config/rs6000/altivec-defs.h: Add.
19388 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
19390 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
19393 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
19394 less than or equal to eight bytes.
19396 * vax.md (andsi3): Remove constraints and change SET destination
19397 operand type to nonimmediate_operand.
19398 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
19399 when it is a CONST_INT.
19401 2002-01-15 Jason Merrill <jason@redhat.com>
19403 * c-common.def (FILE_STMT): New code.
19404 * c-common.c (statement_code_p): It's a statement.
19405 * c-common.h (stmt_tree_s): Add x_last_filename.
19406 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
19407 (last_expr_filename): New macro.
19408 * c-semantics.c (begin_stmt_tree): Initialize it.
19409 (add_stmt): If the filename changed, also insert a
19411 (expand_stmt): Handle seeing one.
19413 2002-01-15 Eric Christopher <echristo@redhat.com>
19415 * flow.c (propagate_one_insn): Add error message and print out
19416 insn for debugging.
19418 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
19420 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
19421 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
19422 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
19423 TRAMPOLINE_ALIGNMENT.
19424 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
19426 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
19427 PCC_BITFIELD_TYPE_MATTERS.
19428 * config/interix.h (STDC_VALUE): Remove. Use
19429 STDC_0_IN_SYSTEM_HEADERS.
19430 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
19431 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
19432 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
19434 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
19436 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
19437 not work on this platform currently.
19439 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
19441 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
19442 readonly_warning in _().
19444 2002-01-15 Douglas B Rupp <rupp@gnat.com>
19446 * gcc.c (delete_if_ordinary): Backout previous change.
19448 2002-01-15 Kazu Hirata <kazu@hxi.com>
19450 * config/h8300/h8300.c (print_operand): Remove support for
19451 unused operand characters.
19453 * read-rtl.c: Fix formatting.
19454 * real.c: Likewise.
19455 * recog.c: Likewise.
19456 * regclass.c: Likewise.
19457 * regmove.c: Likewise.
19458 * reg-stack.c: Likewise.
19459 * reload1.c: Likewise.
19460 * rtlanal.c: Likewise.
19462 2002-01-15 Kazu Hirata <kazu@hxi.com>
19464 * config/i386/i386.c: Fix formatting.
19466 2002-01-15 Jakub Jelinek <jakub@redhat.com>
19468 * c-typeck.c (process_init_element): Don't save_expr
19469 COMPOUND_LITERAL_EXPR if just its initializer will be used.
19471 2002-01-15 David Edelsohn <edelsohn@gnu.org>
19473 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
19474 emit optional traceback table if optimize_size or TARGET_ELF.
19475 * config/rs6000/rs6000.md (prefetch): New.
19477 2002-01-15 Andreas Jaeger <aj@suse.de>
19479 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
19481 2002-01-15 Kazu Hirata <kazu@hxi.com>
19483 * mips-tfile.c: Fix formatting.
19485 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
19487 * unroll.c (final_reg_note_copy): Fix previous commit.
19489 2002-01-14 Kazu Hirata <kazu@hxi.com>
19491 * config/h8300/h8300-protos.h: Remove the prototype for
19493 * config/h8300/h8300.c (eq_operator): Remove.
19495 2002-01-14 Richard Henderson <rth@redhat.com>
19497 * config/i386/i386.md (prefetch): Tidy.
19498 (prefetch_3dnow): Fix locality operand.
19500 2002-01-14 Richard Henderson <rth@redhat.com>
19502 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
19503 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
19505 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
19507 * reload1.c (reload_combine): Pass reg_sum replacement through
19508 copy_rtx in loop performing multiple changes.
19510 2002-01-14 Jakub Jelinek <jakub@redhat.com>
19512 * except.c (remove_unreachable_regions): New.
19513 (free_eh_status): Clear exception_handler_labels.
19514 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
19515 (find_exception_handler_labels): Don't add the same label more than
19517 (remove_exception_handler_label): Don't die if
19518 find_exception_handler_labels hasn't been called for the current
19521 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
19523 * toplev.c (rest_of_compilation): Rebuild jump labels after
19526 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
19528 * doc/extend.texi: Move documentation of X86 built-in functions
19530 * doc/invoke.texi: From here.
19531 * doc/sourcebuild.texi: Document location of documentation for
19532 machine built-in functions.
19534 2002-01-13 Christopher Faylor <cgf@redhat.com>
19536 * cppfiles.c (TEST_THRESHOLD): New macro.
19537 (SHOULD_MMAP): Ditto.
19538 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
19541 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
19543 * unroll.c (final_reg_note_copy): Properly handle
19545 (unroll_loops): Fix LOOP_CONDITION heuristics.
19547 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
19549 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
19550 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
19552 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
19554 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
19557 2002-01-14 Tom Rix <trix@redhat.com>
19559 * config/rs6000/rs6000.md: Fix typo with sradi.
19561 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
19563 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
19564 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
19565 (clrstrdi, clrstrsi): Adapt callers.
19567 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
19569 (movti splitter): Never use register 0 as base register.
19571 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
19573 * combine.c (simplify_shift_const): Always generate new rtx
19574 for shift expression instead of reusing given expression.
19576 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19578 * config/alpha/alpha.c (alpha_expand_mov): Don't call
19579 alpha_legitimize_address unless mode is Pmode.
19581 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
19583 * doc/md.texi (Modifiers): Document the '*' constraint for the
19586 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
19587 * doc/extend.texi (Function Attributes): 'interrupt' is valid
19590 2002-01-13 Richard Henderson <rth@redhat.com>
19592 * reload.c (find_reloads): Use a hard reg destination as reload reg
19593 for an input reload of the source.
19595 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
19597 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
19600 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
19602 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
19603 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
19605 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
19607 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19609 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
19611 2002-01-12 Tom Rix <trix@redhat.com>
19613 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
19616 2002-01-12 Richard Henderson <rth@redhat.com>
19618 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
19620 * doc/invoke.texi: Update Alpha options.
19622 * doc/invoke.texi: Update i386 built-in function lists.
19624 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
19626 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
19627 referencing outside.
19629 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19631 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
19632 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
19633 offsets, and change line folding.
19634 * optabs.c (expand_binop): Remove warnings.
19635 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
19637 2002-01-12 Graham Stott <grahams@redhat.com>
19639 * attribs.c (handle_deprecated_attribute): constify WHAT.
19640 * diagnostic.c (warn_deprecated_use): Add braces, fixes
19641 dangling else warning and constify WHAT.
19642 * except.h (struct function, struct inline_remap): Move
19643 struct tag forward defs before all prototypes.
19644 (duplicate_eh_regions): Whitespace.
19646 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
19648 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
19649 MODE_BASE_REG_CLASS.
19650 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
19652 2002-01-12 Richard Henderson <rth@redhat.com>
19654 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
19655 (ix86_expand_vector_move): New.
19656 (bdesc_2arg): Remove andps, andnps, orps, xorps.
19657 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
19658 Remove old prefetch builtins. Special case the logicals removed above.
19659 (ix86_expand_builtin): Likewise.
19660 (safe_vector_operand): Use V4SFmode, not TImode.
19661 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
19662 (ix86_expand_timode_binop_builtin): New.
19663 * config/i386/i386-protos.h: Update.
19664 * config/i386/i386.h (enum ix86_builtins): Update.
19665 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
19666 Use ix86_expand_vector_move in vector move expanders.
19667 (movti_internal, movti_rex64): Add xorps alternative.
19668 (sse_clrv4sf): Rename and adjust from sse_clrti.
19669 (prefetch): Don't work so hard.
19670 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
19671 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
19672 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
19674 2002-01-11 Richard Henderson <rth@redhat.com>
19676 * config/i386/mmintrin.h: New file.
19677 * config/i386/xmmintrin.h: New file.
19678 * config.gcc (i?86-*-*): Add extra_headers.
19679 * simplify-rtx.c (simplify_unary_operation): Handle saturating
19681 (simplify_binary_operation): Handle saturating arithmetic codes.
19682 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
19683 not the lowpart subreg.
19684 (ix86_expand_builtin): Return a TImode dummy register instead of 0
19686 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
19688 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19690 * conflict.c (conflict_graph_compute): Free regsets when finished.
19691 * ssa.c (compute_coalesced_reg_partition): Likewise.
19693 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19695 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
19696 every where we allocate a register.
19698 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19700 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
19701 * lcm.c (compute_earliest, compute_farthest): Likewise.
19703 2002-01-11 Janis Johnson <janis187@us.ibm.com>
19705 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
19707 2002-01-11 Janis Johnson <janis187@us.ibm.com>
19709 * doc/rtl.texi (Insns): Fix 2 typos.
19711 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
19713 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
19714 options. Use @table @gcctabopt for MMIX options. Add index
19715 entries for MMIX options. Start new paragraph with first
19716 heading of the machine-dependent options.
19718 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
19721 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
19722 * combine.c (force_to_mode): Same.
19723 * reload1.c (clear_reload_reg_in_use): Same.
19725 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
19727 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
19730 2002-01-11 Andreas Jaeger <aj@suse.de>,
19731 Brad Lucier <lucier@math.purdue.edu>
19733 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
19736 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
19738 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
19739 Protect with IN_LIBGCC.
19740 (LINK_EH_SPEC): Add required trailing space.
19742 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
19744 * c-tree.h: Move function declarations so that they are listed
19745 under the filename which contains them.
19746 (check_identifier, finish_decl_top_level,
19747 lookup_name_current_level_global, shadow_record_fields): Remove.
19749 2002-01-11 Andreas Jaeger <aj@suse.de>
19751 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
19754 2002-01-10 Richard Henderson <rth@redhat.com>
19756 * config/alpha/alpha.c (print_operand): Add 'J'.
19757 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
19758 new operand with the sequence number for the lituse. When splitting
19759 the insns, use gen_movdi_er_high_g and generate a sequence number.
19760 (gen_movdi_er_high_g): Print the sequence number if non-zero.
19762 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
19764 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
19765 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
19767 (altivec_expand_builtin): Same.
19768 (altivec_expand_stv_builtin): New.
19770 * config/rs6000/rs6000.h (rs6000_builtins): Same.
19772 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
19773 ("altivec_lvehx"): New.
19774 ("altivec_lvewx"): New.
19775 ("altivec_lvxl"): New.
19776 ("altivec_lvx"): New.
19777 ("altivec_stvx"): New.
19778 ("altivec_stvebx"): New.
19779 ("altivec_stvehx"): New.
19780 ("altivec_stvewx"): New.
19781 ("altivec_stvxl"): New.
19783 2002-01-10 Richard Henderson <rth@redhat.com>
19785 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
19786 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
19787 care not to delete instructions twice.
19789 2002-01-10 Zack Weinberg <zack@codesourcery.com>
19791 * toplev.c: Don't declare environ (it's not used anywhere).
19792 * configure.in: Don't check for declaration of environ.
19793 * config/i386/xm-mingw32.h: Don't #define environ.
19794 * config.in, configure: Regenerate.
19796 2002-01-10 Zack Weinberg <zack@codesourcery.com>
19798 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
19799 * configure: Regenerate.
19801 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
19802 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
19803 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
19805 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
19806 LIMITS_H_TEST here, not in m68k/x-next.
19807 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
19808 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
19810 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
19811 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
19812 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
19814 * config/i386/x-djgpp: Renamed i386/t-djgpp.
19815 * config/m88k/x-dolph: Renamed m88k/t-dolph.
19816 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
19817 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
19818 replacement of quadlib.asm with quadlib.c.
19820 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
19821 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
19822 config/rs6000/xm-beos.h: Delete file.
19824 * config.gcc: Update to match above changes.
19826 2002-01-10 Kazu Hirata <kazu@hxi.com>
19828 * config/h8300/h8300.h: Fix comment typos.
19829 * config/h8300/h8300.md: Likewise.
19830 * config/h8300/lib1funcs.asm: Likewise.
19832 2002-01-10 Dale Johannesen <dalej@apple.com>
19834 PR optimization/5269
19835 * unroll.c (precondition_loop_p): Make *increment be the correct
19836 sign when n_iterations known, to avoid confusing caller.
19838 2002-01-10 Kazu Hirata <kazu@hxi.com>
19840 * doc/extend.texi (deprecated): Fix a typo.
19842 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
19844 * basic-block.h (update_br_prob_note): Declare.
19845 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
19846 (try_forward_edges): Care negative frequencies and update note.
19847 (outgoing_edges_match): Tweek conditional merging heuristics.
19848 (try_crossjump_to_edge): use update_br_prob_note.
19849 * cfglayout.c (fixup_reorder_chain): Likewise.
19850 * cfrtl.c (update_br_prob_note): New.
19851 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
19853 * i386.c (ix86_decompose_address): Return -1 if address contains
19855 (legitimate_address_p): Require ix86_decompose_address to return 1.
19857 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
19858 (cprop_insn): Likewise.
19860 2002-01-10 Kazu Hirata <kazu@hxi.com>
19862 * toplev.c: Fix formatting.
19863 * tree.c: Likewise.
19864 * tree-dump.c: Likewise.
19865 * unroll.c: Likewise.
19866 * unwind-dw2.c: Likewise.
19867 * unwind-dw2-fde.c: Likewise.
19868 * unwind-dw2-fde-glibc.c: Likewise.
19869 * unwind-sjlj.c: Likewise.
19871 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
19873 * doc/invoke.texi: Document PDP-11 options.
19875 2002-01-10 Kazu Hirata <kazu@hxi.com>
19877 * config/h8300/h8300.h: Fix formatting.
19879 2002-01-10 Ira Ruben <ira@apple.com>
19881 Add __attribute__ ((deprecated)).
19882 * extend.texi: Document __attribute__ ((deprecated)).
19883 * invoke.texi: Document -Wno-deprecated-declarations.
19884 * testsuite/g++.dg/other/deprecated.C: New C++ test.
19885 * testsuite/gcc.dg/deprecated.c: New C test.
19886 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
19887 (c_common_attribute_table): Add "deprecated" entry.
19888 (handle_deprecated_attribute): New function.
19889 * c-decl.c (deprecated_states): New enum.
19890 deprecated_state: State of "deprecated" handling.
19891 (start_decl): Set deprecated_state based on attributes.
19892 (grokdeclarator): Test for deprecated uses, propagate attribute.
19893 * c-typeck.c (build_component_ref): Test for deprecated fields.
19894 (build_external_ref): Test for deprecated primaries.
19895 * diagnostic.c (warn_deprecated_use) New function to issue
19896 warnings about __attribute__ ((depricated)) references.
19897 * flags.h (warn_deprecated_decl): Extern declared for
19898 -W[no-]deprecated-declarations option.
19899 * print-tree.c (print_node): Show deprecated flag status.
19900 * toplev.c (warn_deprecated_decl): Defined.
19901 (W_options): Added "deprecated-declaration".
19902 * toplev.h (warn_deprecated_use): Extern declared.
19903 * tree.h (struct tree_common): Define deprecated_flag.
19904 (TREE_DEPRECATED): New macro to access flag.
19905 * cp/call.c (build_call): Test for deprecated calls.
19906 * cp/class.c (add_implicitly_declared_members): Set global
19907 flag to tell grokdeclarator to not issue deprecated warnings.
19908 * cp/cp-tree.h: Add extern for adding_implicit_members.
19909 * cp/decl.c (deprecated_states): New enum.
19910 (start_decl): Set deprecated_state based on attributes.
19911 (grokdeclarator): Test for deprecated uses, propagate attribute.
19912 * cp/lex.c (do_identifier): Test for deprecated primaries.
19913 * cp/typeck.c (build_component_ref): Test for deprecated fields.
19915 2002-01-10 Ira Ruben <ira@apple.com>
19917 Fix to assign attributes to inline member functions.
19918 * cp/decl.c (start_method): Handle attrlist.
19920 2002-01-10 Kazu Hirata <kazu@hxi.com>
19922 * combine.c (expand_field_assignment): Use subreg_lsb().
19924 2002-01-10 David Edelsohn <edelsohn@gnu.org>
19926 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
19927 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
19928 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
19929 Recurse for any operand of AND as long as constant is non-zero.
19931 2002-01-10 Kazu Hirata <kazu@hxi.com>
19933 * config/h8300/h8300.md: Remove constraints from expanders.
19935 2002-01-10 Kazu Hirata <kazu@hxi.com>
19937 * varasm.c: Fix formatting.
19938 * varray.c: Likewise.
19939 * vmsdbgout.c: Likewise.
19940 * xcoffout.c: Likewise.
19942 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
19944 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
19945 update edge probabilities to match.
19947 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
19949 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
19951 * doc/languages.texi, doc/sourcebuild.texi: New files.
19952 * doc/configfiles.texi: Make a subsubsection. Update.
19953 * doc/configterms.texi: Add @node. Remove warning that this isn't
19954 instructions for building GCC.
19955 * doc/makefile.texi: Make a subsection.
19956 * doc/gccint.texi: Update.
19958 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
19960 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
19962 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
19964 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
19966 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
19968 * optabs.c (expand_fix): Look for wider integer modes first.
19970 * i386.md (mov?f): Avoid the fake const double trick for medium
19972 (min?f*/max?f*): Prohibit memory operands for i387 variant.
19973 (fop_df_4): Disable for SSE compilation.
19975 2002-01-10 Graham Stott <grahams@redhat.com>
19977 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
19978 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
19980 2002-01-10 Richard Henderson <rth@redhat.com>
19982 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
19984 2002-01-10 Richard Henderson <rth@redhat.com>
19986 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
19987 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
19989 2002-01-10 Kazu Hirata <kazu@hxi.com>
19991 * combine.c (can_combine_p): Fix a comment typo.
19993 2002-01-09 Zack Weinberg <zack@codesourcery.com>
19995 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
19996 empty list correctly. Change loop index $t to $f for
19997 consistency with rest of Makefile.
19999 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
20001 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
20002 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20004 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
20005 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
20006 (altivec_init_builtins): Same.
20007 (altivec_expand_unop_builtin): Return NULL_RTX on error.
20008 (altivec_expand_binop_builtin): Same.
20009 (altivec_expand_ternop_builtin): Same.
20012 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
20013 ("altivec_vctuxs"): Fix typo.
20014 ("altivec_vnmsubfp"): Same.
20015 ("altivec_dssall"): New.
20016 ("altivec_mfvscr"): New.
20017 ("altivec_dss"): New.
20018 ("altivec_lvsl"): New.
20019 ("altivec_lvsr"): New.
20020 ("altivec_dstt"): New.
20021 ("altivec_dstst"): New.
20022 ("altivec_dststt"): New.
20023 ("altivec_dst"): New.
20025 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
20026 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20028 2002-01-09 Richard Henderson <rth@redhat.com>
20030 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
20032 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
20034 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
20036 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
20038 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
20040 2002-01-09 Kazu Hirata <kazu@hxi.com>
20042 * read-rtl.c: Fix formatting.
20043 * real.c: Likewise.
20044 * regclass.c: Likewise.
20045 * regrename.c: Likewise.
20046 * reg-stack.c: Likewise.
20047 * reload1.c: Likewise.
20048 * reload.c: Likewise.
20051 2002-01-09 Kazu Hirata <kazu@hxi.com>
20053 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
20054 to extract items in the expr_list chain.
20056 2002-01-09 Richard Henderson <rth@redhat.com>
20058 * config/vax/vax.c (vax_rtx_cost): Never abort.
20060 * config/vax/vax.h (REAL_ARITHMETIC): Define.
20062 2002-01-09 Jan Hubicka <jh@suse.cz>
20064 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
20066 2002-01-09 Richard Henderson <rth@redhat.com>
20068 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
20069 Unify code from various alternatives.
20071 2002-01-09 Richard Henderson <rth@redhat.com>
20073 * regrename.c (copy_value): Ignore the copy if the source register
20074 is present in the value chain with a narrower mode.
20076 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20078 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
20079 for the c4x target. Also improve layout.
20081 2002-01-09 Richard Henderson <rth@redhat.com>
20083 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
20084 * config/m32r/m32r.md (and ior xor splitters): Swap operands
20085 to match insn patterns.
20087 2002-01-09 Richard Henderson <rth@redhat.com>
20089 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
20090 (copyprop_hardreg_forward_1): Likewise.
20092 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
20094 * pa.md (decrement_and_branch_until_zero): Change predicate for
20095 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
20097 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
20099 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
20100 gets undefined. For Darwin.
20102 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20104 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
20106 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20108 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
20110 2002-01-08 Richard Henderson <rth@redhat.com>
20112 * regrename.c (copy_value): Ignore overlapping copies.
20114 2002-01-08 Richard Henderson <rth@redhat.com>
20116 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
20117 as needed to avoid shared structure.
20119 2002-01-08 Kazu Hirata <kazu@hxi.com>
20121 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
20124 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
20126 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
20127 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
20128 documentation of obsolete macros.
20129 * system.h: Poison these macros.
20130 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
20131 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
20132 config/c4x/c4x.h, config/clipper/clipper.h,
20133 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
20134 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
20135 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
20136 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
20137 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
20138 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
20139 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
20140 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
20141 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
20142 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
20143 config/sparc/sparc.h, config/stormy16/stormy16.h,
20144 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
20145 definitions and commented out definitions of obsolete macros.
20146 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
20147 of MAX_INT_TYPE_SIZE.
20149 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
20151 * config/s390/s390.c (s390_preferred_reload_class): Never
20152 return ADDR_REGS if it isn't a subset of the given class.
20153 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
20154 FP_REGS, but all superclasses as well.
20156 * config/s390/s390.c (s390_function_profiler): Fix thinko.
20158 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
20159 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
20160 must not be a const_int.
20162 2002-01-08 Richard Henderson <rth@redhat.com>
20164 * Makefile.in (toplev.o): Depend on options.h.
20165 (gcc.o): Depend on specs.h.
20167 2002-01-08 Jakub Jelinek <jakub@redhat.com>
20169 * expr.c (store_expr): Convert VOIDmode constants back to target's
20172 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
20174 * doc/invoke.texi: Markup gcc as @command. Refer to
20175 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
20176 of http://gcc.gnu.org/thanks.html.
20178 2002-01-08 Dale Johannesen <dalej@apple.com>
20180 * config/rs6000/rs6000.md: Add missing int register
20181 target case to movdf_low.
20183 2002-01-08 Zack Weinberg <zack@codesourcery.com>
20185 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
20186 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
20187 (cppinit.o): Depend on except.h.
20188 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
20189 s-specs): New rules.
20191 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
20192 Don't create specs.h/options.h/gencheck.h here. Remove
20193 unnecessary variable settings from last argument of AC_OUTPUT.
20194 * config.in, configure: Regenerate.
20195 * intl.c: Hardcode package name as "gcc".
20197 * cppinit.c: Include except.h.
20198 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
20200 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
20201 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
20202 (!)USING_SJLJ_EXCEPTIONS.
20203 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
20205 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
20207 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
20208 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
20209 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
20210 documentation of obsolete macros.
20211 * system.h: Poison these macros.
20212 * config/d30v/d30v.h, config/ns32k/encore.h,
20213 config/stormy16/stormy16.h: Remove definitions and commented out
20214 definitions of obsolete macros.
20216 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
20218 * objc/objc-act.c (handle_class_ref): Mark the declaration of
20219 %sobjc_class_ref_%s as used - to prevent unwanted compiler
20222 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
20224 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
20225 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
20226 to insn adjusting stack/frame pointer.
20227 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
20228 accept operands that cause the insn to be non-splittable.
20230 2002-01-08 Graham Stott <grahams@redhat.com>
20232 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
20233 (C_TYPE_FIELDS_VOLATILE): Likewise.
20234 (C_TYPE_BEING_DEFINED): Likewise.
20235 (C_IS_RESERVED_WORD): Likewise.
20236 (C_TYPE_VARIABLE_SIZE): Likewise.
20237 (C_DECL_VARIABLE_SIZE): Likewise.
20238 (C_MISSING_PROTOTYPE_WARNED): Likewise.
20239 (C_SET_EXP_ORIGINAL_CODE): Likewise.
20240 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
20242 (C_DECL_ANTICIPATED): Likewise.
20243 (c_build_type_variant): Add parenthesis.
20245 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
20247 * gcc.c (option_map): Remove --version.
20248 (process_command): Handle -fversion following the GNU Coding
20249 Standards. Partially addresses PR other/704.
20251 2002-01-08 Graham Stott <grahams@redhat.com>
20253 * combine.c (combine_instructions): Fix typo.
20255 2002-01-08 Graham Stott <grahams@redhat.com>
20257 * debug.h: Use "tree" and "rtx" throughout.
20259 * debug.c: Likewise.
20261 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
20263 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
20264 constant pool, use the pool's version of the symbol instead.
20266 2002-01-07 Richard Henderson <rth@redhat.com>
20268 * regrename.c (find_oldest_value_reg): Ignore the value chain if
20269 the original register was copied in a mode with a fewer number of
20270 hard registers than the desired mode.
20271 (copyprop_hardreg_forward_1): Likewise.
20272 (debug_value_data): Fix loop test.
20273 * toplev.c (parse_options_and_default_flags): Reenable
20274 -fcprop-registers at -O1.
20276 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
20278 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
20279 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
20281 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
20284 * config/rs6000/rs6000.md: Add altivec predicate patterns.
20286 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
20288 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
20289 (pa_output_function_prologue): Output local label at the beginning of
20290 the prologue when profiling.
20291 (hppa_profile_hook): Use the local label rather than the function label.
20292 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
20294 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
20296 * config/rs6000/rs6000.c (print_operand): Remove extra space.
20297 (altivec_expand_unop_builtin): Fix thinko.
20298 (altivec_expand_binop_builtin): Same.
20299 (altivec_expand_ternop_builtin): Same.
20300 (altivec_expand_builtin): Same.
20302 2002-01-07 Richard Henderson <rth@redhat.com>
20304 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
20306 2002-01-07 Jason Merrill <jason@redhat.com>
20308 * unwind-dw2.c (execute_cfa_program): Use < again.
20310 2002-01-07 Jakub Jelinek <jakub@redhat.com>
20312 * predict.c (combine_predictions_for_insn): Avoid division by zero.
20314 2002-01-07 Jakub Jelinek <jakub@redhat.com>
20316 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
20317 Don't allow -1 - x -> ~x simplifications in the first pass.
20319 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
20321 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
20323 (altivec_expand_binop_builtin): Same.
20324 (altivec_expand_unop_builtin): Same.
20325 (print_operand): Fix typo.
20326 (bdesc_1arg): Add vupk* variants.
20328 * rs6000.h (rs6000_builtins): Add vupk* enums.
20330 * rs6000.md: Add altivec_vupk* variants.
20332 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
20334 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
20335 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
20336 and last update dates.
20338 2002-01-07 Janis Johnson <janis187@us.ibm.com>
20340 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
20342 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
20344 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
20345 * config/avr/avr.h (CPP_SPEC): Likewise.
20346 (LINK_SPEC): Likewise.
20347 (CRT_BINUTILS_SPECS): Likewise.
20348 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
20349 * doc/invoke.texi (AVR Options): Document them.
20351 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
20353 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
20356 2002-01-07 Graham Stott <grahams@redhat.com>
20358 * config/i386/i386.h: Update copyright date.
20359 (HALF_PIC_PTR): Add parenthesis.
20360 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
20361 (CONSTANT_ALIGNMENT): Add parenthesis.
20362 (DATA_ALIGNMENT): Likewise.
20363 (LOCAL_ALIGNMENT): Likewise.
20364 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
20365 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
20366 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
20367 (HARD_REGNO_NREGS): Add paranethesis.
20368 (VALID_SSE_REG_MODE): Whitespace.
20369 (VALID_MMX_REG_MODE): Whitespace.
20370 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
20371 (ix86_hard_regno_mode_ok): Add parenthesis.
20372 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
20373 (RETURN_IN_MEMORY): Whitespace.
20374 (N_REG_CLASSES): Add parenthesis.
20375 (INTEGER_CLASS_P): Add parenthesis and wrap.
20376 (FLOAT_CLASS_P): Likewise.
20377 (SSE_CLASS_P): Likewise.
20378 (MMX_CLASS_P): Likewise.
20379 (MAYBE_INTEGER_CLASS_P): Likewise.
20380 (MAYBE_FLOAT_CLASS_P): Likewise.
20381 (MAYBE_SSE_CLASS_P): Likewise.
20382 (MAYBE_MMX_CLASS_P): Likewise.
20383 (Q_CLASS_P): Likewise.
20384 (GENERAL_REGNO_P): Uppercase macro parameter.
20385 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
20386 (FP_REGNO_P): Likewise.
20387 (ANY_FP_REGNO_P): Uppercase macro parameter.
20388 (SSE_REGNO_P): Likewise.
20389 (SSE_REGNO): Likewise.
20390 (SSE_REG_P): Likewise.
20391 (SSE_FLOAT_MODE_P): Likewise.
20392 (MMX_REGNO_P): Likewise.
20393 (MMX_REG_P):Likewise.
20394 (STACK_REG_P): Likewise.
20395 (NON_STACK_REG_P): Likewise.
20396 (STACK_TOP_P): Likewise.
20397 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
20398 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
20399 (SECONDARY_MEMORY_NEEDED): Likewise.
20400 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
20401 (MD_ASM_CLOBBERS): Whitespace and wrap.
20402 (MUST_PASS_IN_STACK): Whitespace and wrap.
20403 (RETURN_POPS_ARGS): Add parenthesis.
20404 (INIT_CUMULATIVE_ARGS): Likewise.
20405 (FUNCTION_ARG): Likewise.
20406 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
20407 (SETUP_INCOMING_VARARGS): Likewise.
20408 (BUILD_VA_LIST_TYPE): Add parenthesis.
20409 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
20411 (EXPAND_BUILTIN_VA_ARG): Likewise.
20412 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
20413 (INITIALIZE_TRAMPOLINE): Add parenthesis.
20414 (INITIAL_ELIMINATION_OFFSET): Likewise.
20415 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
20416 (REGNO_OK_FOR_BASE_P): Likewise.
20417 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
20418 (REGNO_OK_FOR_DIREG_P): Likewise.
20419 (REG_OK_FOR_INDEX_P): Whitespace.
20420 (REG_OK_FOR_BASE_P): Whitespace.
20421 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
20423 (FIND_BASE_TERM): Fix typo.
20424 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
20425 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
20426 (SYMBOLIC_CONST; Whitespace.
20427 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
20428 (ENCODE_SECTION_INFO): Whitespace.
20429 (FINALIZE_PIC): Remove do { ... } while (0).
20430 (PROMOTE_MODE): Wrap in do { ... } while (0).
20431 (CONST_COSTS): Whitespace.
20432 (RTX_COSTS): Add paramethesis, whitespace and wrap.
20433 (REGISTER_MOVE_COST): Add parenthesis.
20434 (MEMORY_MOVE_COST): Likewise.
20435 (EXTRA_CC_MODES): Whitespace.
20436 (SELECT_CC_MODE): Add parenthesis and whitespace.
20437 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
20438 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
20439 (ASM_OUTPUT_LABEL): Add paramethesis.
20440 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
20441 (ASM_OUTPUT_REG_POP): Likewise.
20442 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
20443 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20445 * config/i386/i386.c: Update copyright.
20446 (CHECK_STACK_LIMIT): Add parenthesis.
20447 (AT_BP): Uppercase macro parameter.
20448 (x86_64_int_parameter_registers): Constify.
20449 (x86_64_int_return_registers): Likewise.
20450 (ix86_compare_op0): Use rtx.
20451 (construct_container): Constify INTREG parameter.
20452 (function_arg): Use rtx.
20454 * diagnostic.h: Update copyright date.
20455 (output_buffer_state): Add parenthesis.
20456 (output_buffer_format_args): Likewise.
20458 * combine.c (combine_instructions): Replace XEXP (links, 0)
20461 2002-01-06 H.J. Lu <hjl@gnu.org>
20463 * cfgcleanup.c (thread_jump): Fix 2 typos.
20465 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
20467 * config.gcc: Add support for --enable-altivec.
20469 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
20471 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
20473 2002-01-06 Jakub Jelinek <jakub@redhat.com>
20475 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
20476 __objc_class_name_*.
20478 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
20480 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
20482 2002-01-06 Richard Henderson <rth@redhat.com>
20484 * reorg.c (emit_delay_sequence): Remove death notes, not merely
20485 nop them out. Increment label reference count for REG_LABEL.
20486 (fill_slots_from_thread): Frob label reference count around
20487 delete_related_insns.
20489 2002-01-05 Richard Henderson <rth@redhat.com>
20491 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
20494 2002-01-05 Richard Henderson <rth@redhat.com>
20496 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
20497 * integrate.c (output_inline_function): Likewise.
20498 * toplev.c (rest_of_compilation): Do it here instead. Move call
20499 to remove_unnecessary_notes after emitting abstract instance.
20500 Force an emitted nested function to have its parent emited as well.
20501 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
20503 (rtl_for_decl_location): Do not look at reload data structures
20504 before reload has run.
20506 2002-01-05 Kazu Hirata <kazu@hxi.com>
20508 * cse.c: Fix formatting.
20509 * dwarf2asm.c: Likewise.
20510 * dwarf2out.c: Likewise.
20511 * explow.c: Likewise.
20512 * expmed.c: Likewise.
20513 * function.c: Likewise.
20514 * gcov.c: Likewise.
20515 * gencheck.c: Likewise.
20516 * genrecog.c: Likewise.
20517 * ggc-common.c: Likewise.
20518 * ggc-page.c: Likewise.
20519 * global.c: Likewise.
20521 2002-01-05 Kazu Hirata <kazu@hxi.com>
20523 * combine.c: Fix formatting.
20525 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
20528 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
20530 2002-01-05 David Edelsohn <edelsohn@gnu.org>
20532 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
20533 as 1 for __powerpc64__ as well.
20535 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
20537 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
20540 2002-01-05 Daniel Berlin <dan@dberlin.org>
20542 * lcm.c: Revert change, due to performance regression it causes on
20543 SPEC because it's slightly more conservative (sigh, I hate
20546 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
20548 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
20550 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
20552 * doc/cppinternals.texi: Update.
20554 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
20556 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
20557 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
20559 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
20560 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
20561 kludge for pre-october-14th mmix versions to handle new-found bug
20562 with PUSHJ/PUSHGO and the register stack.
20563 * config/mmix/mmix.h (struct machine_function): Rename member
20564 has_call_value_without_parameters to has_call_without_parameters.
20565 All referers changed.
20566 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
20567 TARGET_MASK_BRANCH_PREDICT): New macros.
20568 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
20569 -mno-reg-stack-fill-bug-workaround.
20570 * config/mmix/mmix.md ("call"): Set struct machine member
20571 has_call_without_parameters.
20573 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
20575 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
20577 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
20579 * cfgcleanup.c: Include tm_p.h
20580 (mark_effect): Fix handling of hard register; fix handling of SET
20582 2002-01-04 Kazu Hirata <kazu@hxi.com>
20584 * config/h8300/h8300.md (anonymous patterns): Check that
20585 operands are registers before using REGNO on them.
20587 2002-01-03 Roland McGrath <roland@frob.com>
20589 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
20591 2002-01-04 Jakub Jelinek <jakub@redhat.com>
20593 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
20594 * c-common.h (genrtl_expr_stmt_value): Likewise.
20595 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
20596 (expand_expr_stmt_value): Add maybe_last argument.
20597 Don't warn about statement with no effect if it is the last statement
20598 in expression statement.
20599 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
20600 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
20601 expand_expr_stmt_value.
20602 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
20603 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
20604 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
20605 as maybe_last to expand_expr_stmt_value.
20607 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
20609 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
20610 be passed in, do not build it.
20611 (c_begin_if_stmt): New function.
20612 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
20613 * c-common.h (c_expand_start_cond): Update prototype.
20614 (c_begin_if_stmt): Prototype new function.
20615 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
20616 * c-parse.in (if_prefix): Use c_begin_if_stmt,
20617 c_begin_while_stmt and c_finish_while_stmt_cond.
20619 2002-01-04 William Cohen <wcohen@redhat.com>
20621 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
20622 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
20623 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
20624 * config/pa/som.h (ASM_FILE_START): Likewise.
20626 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
20628 * lcm.c: Include df.h.
20629 Add available_transfer_function prototype.
20630 (compute_available): Rework to use iterative dataflow framework.
20631 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
20632 with bb_info in df.h
20633 (available_transfer_function): New function.
20635 * Makefile.in (lcm.o): add df.h to dependencies.
20637 2002-01-04 Richard Henderson <rth@redhat.com>
20639 * config/alpha/alpha.c (some_operand): Accept HIGH.
20640 (input_operand): Likewise; accept simple references to globals.
20641 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
20642 (alpha_const_double_ok_for_letter_p): Likewise.
20643 (alpha_extra_constraint): Likewise.
20644 (alpha_preferred_reload_class): Likewise. Do not force
20645 symbolic constants to memory.
20646 (alpha_legitimate_address_p): Accept simple references
20647 to small_symbolic_operand.
20648 (alpha_legitimize_address): New arg scratch. Be prepared to be
20649 called when no_new_pseudos. Emit simple symbolic references.
20650 Split integers into low, high, and rest.
20651 (alpha_expand_mov): Use alpha_legitimize_address.
20652 (some_small_symbolic_mem_operand): New.
20653 (split_small_symbolic_mem_operand): New.
20654 * config/alpha/alpha-protos.h: Update.
20655 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
20656 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
20657 (EXTRA_CONSTRAINT): Likewise.
20658 (PREFERRED_RELOAD_CLASS): Likewise.
20659 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
20660 (PREDICATE_CODES): Update.
20661 * config/alpha/alpha.md: New post-reload splitters to convert
20662 simplfied symbolic operands to the form that references $29.
20663 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
20664 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
20666 2002-01-03 Richard Henderson <rth@redhat.com>
20668 * local-alloc.c (function_invariant_p): Update commentary.
20670 2002-01-04 H.J. Lu <hjl@gnu.org>
20672 * toplev.c (rest_of_compilation): Fix a typo when calling
20675 2002-01-03 Kazu Hirata <kazu@hxi.com>
20677 * c-common.c: Fix formatting.
20678 * diagnostic.c: Likewise.
20679 * doloop.c: Likewise.
20680 * dwarf2out.c: Likewise.
20682 2002-01-03 Kazu Hirata <kazu@hxi.com>
20684 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
20685 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
20687 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
20689 * cpperror.c: Update comments and copyright.
20690 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
20691 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
20693 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
20695 * collect2.c (main): Use strcmp when testing for "-shared".
20697 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
20699 * cppmacro.c: Don't include intl.h. Update comments.
20700 (new_number_token): Allocate enough buffer for 64-bit unsigned
20701 integers; update prototype.
20702 * cppmain.c: Update comments.
20704 2002-01-03 William Cohen <wcohen@redhat.com>
20706 * function.h (struct function): Add profile.
20707 (current_function_profile): New.
20708 doc/extend.texi: Update documentation.
20709 * final.c (final_start_function): Use current_function_profile
20710 instead of profile_flag.
20711 (profile_after_prologue): Likewise.
20712 * function.c (expand_function_start): Likewise.
20713 (expand_function_start): Likewise.
20714 * config/alpha/alpha.c (direct_call_operand):
20715 (alpha_does_function_need_gp): Likewise.
20716 (alpha_expand_prologue): Likewise.
20717 * config/arm/arm.c (arm_expand_prologue): Likewise.
20718 thumb_expand_prologue: Likewise.
20719 * config/d30v/d30v.c (d30v_stack_info): Likewise.
20720 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
20721 (fr30_expand_prologue): Likewise.
20722 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
20723 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
20724 * config/i386/i386.h (FINALIZE_PIC): Likewise.
20725 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
20726 * config/i960/i960.c (i960_output_function_prologue): Likewise.
20727 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
20728 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
20729 (m32r_expand_prologue): Likewise.
20730 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
20731 (m88k_expand_prologue): Likewise.
20732 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
20733 * config/mips/mips.c (compute_frame_size): Likewise.
20734 (mips_expand_prologue): Likewise.
20735 (mips_can_use_return_insn): Likewise.
20736 * config/pa/elf.h (ASM_FILE_START): Likewise.
20737 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
20738 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
20739 * config/pa/som.h (ASM_FILE_START): Likewise.
20740 * config/romp/romp.c (romp_using_r14): Likewise.
20741 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
20742 (rs6000_stack_info): Likewise.
20743 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
20744 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
20745 * config/v850/v850.c (compute_register_save_size): Likewise.
20747 2002-01-03 Jakub Jelinek <jakub@redhat.com>
20749 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
20750 gen_lowpart_common fails, use gen_lowpart_SUBREG.
20752 2002-01-03 Turly O'Connor <turly@apple.com>
20754 * darwin.c (machopic_output_possible_stub_label): Don't generate
20755 stub routines for pseudo-stubs which we've just defined.
20757 2002-01-03 Kazu Hirata <kazu@hxi.com>
20759 * builtins.c: Fix formatting.
20760 * c-typeck.c: Likewise.
20761 * combine.c: Likewise.
20762 * expr.c: Likewise.
20763 * loop.c: Likewise.
20765 2002-01-03 Andreas Schwab <schwab@suse.de>
20767 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
20768 and return true if _cpp_push_next_buffer pushed a new include
20770 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
20771 _cpp_pop_file_buffer did not push a new file.
20772 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
20774 2002-01-02 Eric Christopher <echristo@redhat.com>
20776 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
20777 FIND_REG_INC_NOTE call. Update copyright.
20778 * loop.c (canonicalize_condition): Ditto.
20779 * reorg.c (delete_scheduled_jump): Ditto.
20781 2002-01-03 Kazu Hirata <kazu@hxi.com>
20783 * gcse.c: Fix formatting.
20785 2002-01-03 Graham Stott <grahams@redhat.com>
20787 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
20788 forward defs for struct tags rtx_def, union_tree, rtvec_def
20789 also output corresponding typedefs for rtx, tree, and rtvec.
20791 * system.h: Move forward defs for struct tags rtx_def, union_tree,
20792 rtvec_def along with corresponding typedefs for rtx, tree, and
20793 rtvec to config.h, hconfig.h, tconfig.h.
20795 2002-01-03 Graham Stott <grahams@redhat.com>
20797 * tree.h: Update copyright date.
20798 (IS_EXPR_CODE_CLASS): Add parenthesis.
20799 (TREE_SET_CODE): Add whitespace.
20800 (TREE_CHECK): Add parenthesis.
20801 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
20802 (CST_OR_CONSTRUCTOR_CHECK):
20803 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
20804 (TREE_SYMBOL_REFERENCED): Whitespace.
20805 (INT_CST_LT): Likewise.
20806 (INT_CST_LT_UNSIGNED): Likewise.
20807 (tree_real_cst): Unwrap comment.
20808 (tree_string): Likewise.
20809 (tree_complex): Likewise.
20810 (IDENTIFIER_POINTER): correct cast.
20811 (SAVE_EXPR_CONTEXT): Whitespace.
20812 (EXPR_WFL_FILENAME_NODE): Likewise.
20813 (EXPR_WFL_FILENAME): Remove parenthesis.
20814 (DECL_ORIGIN): Add parenthesis.
20815 (DECL_FROM_INLINE): Use NULL_TREE.
20816 (build_int_2): Whitespace.
20817 (build_type_variant): Add parenthesis.
20819 * gcc/jcf-parse.c: Update copyright date.
20820 (yyparse): Constify resource_filename.
20822 2002-01-03 Graham Stott <grahams@redhat.com>
20824 * rtl.h: Update copyright date.
20825 (RTL_CHECK1): Wrap long line.
20826 (RTL_CHECK2): Likewise.
20827 (RTL_CHECKC1): Wrap long line and whitespace.
20828 (RTL_CHECKC2): Likewise.
20829 (XWINT): Whitespace.
20835 (XBITMAP): Likewise.
20837 (XBBDEF): Likewise.
20839 (X0WINT): Likewise.
20841 (X0UINT): Likewise.
20845 (X0MODE): Likewise.
20846 (X0BITMAP): Likewise.
20847 (X0TREE): Likewise.
20848 (X0BBDEF): Likewise.
20849 (X0ADVFLAGS): Likewise.
20850 (X0CSELIB): Likewise.
20851 (X0MEMATTR): Likewise.
20852 (XCWINT): Likewise.
20854 (XCUINT): Likewise.
20858 (XCMODE): Likewise.
20859 (XCBITMAP): Likewise.
20860 (XCTREE): Likewise.
20861 (XCBBDEF): Likewise.
20862 (XCADVFLAGS): Likewise.
20863 (XCCSELIB): Likewise.
20864 (XC2EXP): Likewise.
20865 (INSN_UID): Likewise.
20866 (PREV_INSN): Likewise.
20867 (PATTERN): Likewise.
20868 (INSN_CODE): Likewise.
20869 (PUT_REG_NOTE_KIND): Likewise.
20870 (CODE_LABEL_NUMBER): Likewise.
20871 (NOTE_SOURCE_FILE): Likewise.
20872 (NOTE_BLOCK): Likewise.
20873 (NOTE_EH_HANDLER): Likewise.
20874 (NOTE_RANGE_INFO): Likewise.
20875 (NOTE_LIVE_INFO): Likewise.
20876 (NOTE_BASIC_BLOCK): Likewise.
20877 (NOTE_EXPECTED_VALUE): Likewise.
20878 (NOTE_LINE_NUMBER): Likewise.
20879 (LABEL_NAME): Likewise.
20880 (LABEL_NUSES): Likewise.
20881 (LABEL_ALTERNATE_NAME): Likewise.
20882 (ADDRESSOF_DECL): Likewise.
20883 (JUMP_LABEL): Likewise.
20884 (LABEL_NEXTREF): Likewise.
20886 (ORIGINAL_REGNO: Likewise.
20887 (HARD_REGISTER_NUM_P): Add parenthesis.
20888 (SUBREG_REG): Whitespace.
20889 (SUBREG_BYTE): Likewise.
20890 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
20891 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
20892 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
20893 (ASM_OPERANDS_INPUT_VEC): Likewise.
20894 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
20895 (ASM_OPERANDS_INPUT): Likewise.
20896 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
20897 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
20898 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
20899 (ASM_OPERANDS_INPUT_MODE): Likewise.
20900 (ASM_OPERANDS_SOURCE_FILE): Likewise.
20901 (ASM_OPERANDS_SOURCE_LINE): Likewise.
20902 (MEM_SET_IN_STRUCT_P): Minor reformat.
20903 (TRAP_CONDITION): Whitespace.
20904 (TRAP_CODE): Likewise.
20905 (COND_EXEC_TEST): Likewise.
20906 (COND_EXEC_CODE): Likewise.
20907 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
20908 (PHI_NODE_P): Add parenthesis.
20909 (plus_constant): Whitespace and add parenthesis.
20911 2002-01-03 Kazu Hirata <kazu@hxi.com>
20913 * config/avr/avr.c: Fix comment typos.
20914 * config/c4x/c4x.md: Likewise.
20915 * config/dsp16xx/dsp16xx.h: Likewise.
20916 * config/dsp16xx/dsp16xx.md: Likewise.
20917 * config/i386/i386.md: Likewise.
20918 * config/ia64/ia64.c: Likewise.
20919 * config/m32r/m32r.h: Likewise.
20920 * config/m68hc11/m68hc11.md: Likewise.
20921 * config/mmix/mmix.c: Likewise.
20922 * config/mn10200/mn10200.c: Likewise.
20923 * config/romp/romp.c: Likewise.
20924 * config/sh/sh.c: Likewise.
20925 * config/stormy16/stormy16.c: Likewise.
20926 * config/stormy16/stormy16.h: Likewise.
20927 * config/stormy16/stormy16.md: Likewise.
20929 2002-01-03 Graham Stott <grahams@redhat.com>
20931 * loop.h: Update copyright date.
20932 (LOOP_MOVABLES): Fix typo.
20933 (LOOP_REGS): Likewise.
20934 (LOOP_IVS): Likewise.
20936 2002-01-03 Graham Stott <grahams@redhat.com>
20938 * cppinit.c: Update copyright date.
20939 Don't include output.h
20940 * Makefile.in: Update copyright date.
20943 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
20946 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
20947 (-pthread) Add to RS/6000 options.
20949 2002-01-02 Kazu Hirata <kazu@hxi.com>
20951 * except.c: Fix comment typos.
20952 * loop.c: Likewise.
20953 * varasm.c: Likewise.
20954 * doc/tm.texi: Fix a typo.
20956 2002-01-02 Jakub Jelinek <jakub@redhat.com>
20958 * c-typeck.c (output_init_element): Allow initializing static storage
20959 duration objects with compound literals.
20961 2002-01-02 Richard Henderson <rth@redhat.com>
20963 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
20966 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20968 * gcc.c (default_compilers): Const-ify.
20969 * mips-tdump.c (stab_names): Likewise.
20970 * mips-tfile.c (map_coff_types, map_coff_storage,
20971 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
20972 pseudo_ops_t, pseudo_ops): Likewise.
20973 * protoize.c (default_include): Likewise
20975 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
20976 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
20977 Add array size in declaration.
20978 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
20979 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
20980 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
20981 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
20982 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
20983 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
20984 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
20985 emtens, make_nan): Const-ify.
20986 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
20987 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
20989 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
20991 * config.gcc (ia64-*-*): Set extra_headers.
20992 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
20993 * config/alpha/t-osf: Remove.
20994 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
20996 2002-01-02 David Edelsohn <edelsohn@gnu.org>
20998 * config/rs6000/t-aix43: Revert previous change.
21000 2002-01-02 Jason Merrill <jason@redhat.com>
21002 * c-decl.c (c_expand_body): Call outlining_inline_function when
21003 emitting an inline function out of line.
21005 2002-01-02 Richard Henderson <rth@redhat.com>
21007 * dwarf2out.c (limbo_die_node): Add created_for member.
21008 (new_die): New argument created_for. Update all callers.
21009 (mark_limbo_die_list): New.
21010 (dwarf2out_init): Register limbo_die_list as a root.
21011 (dwarf2out_finish): Force insert limbo dies into their function
21014 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
21017 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
21019 2002-01-02 Kazu Hirata <kazu@hxi.com>
21021 * config/h8300/fixunssfsi.c: Update copyright.
21024 * config/h8300/h8300.c: Update copyright.
21025 Eliminate warnings.
21027 2002-01-02 Kazu Hirata <kazu@hxi.com>
21029 * config/romp/romp.c: Fix comment formatting.
21030 * config/romp/romp.h: Likewise.
21031 * config/romp/romp.md: Likewise.
21032 * config/s390/s390.c: Likewise.
21033 * config/stormy16/stormy16.c: Likewise.
21034 * config/stormy16/stormy16.h: Likewise.
21036 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
21038 * c-common.h (genrtl_expr_stmt_value): Declare.
21039 * c-semantics.c (genrtl_goto_stmt): Redirect to...
21040 (genrtl_goto_stmt_value): ... this new function. Pass new
21041 argument down to expand_expr_stmt_value, taking
21042 TREE_ADDRESSABLE into account.
21043 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
21044 STMT_EXPR as addressable, i.e., one whose result we want.
21045 * expr.c (expand_expr): Don't save expression statement value
21046 of labeled_blocks or loop_exprs.
21047 * stmt.c (expand_expr_stmt): Redirect to...
21048 (expand_expr_stmt_value): ... this new function. Use new
21049 argument to tell whether to save expression value.
21050 (expand_end_stmt_expr): Reset last_expr_type and
21051 last_expr_value if we don't have either.
21052 * tree-inline.c (declare_return_variable): Mark its use
21053 statement as addressable.
21054 * tree.h: Document new use of TREE_ADDRESSABLE.
21055 (expand_expr_stmt_value): Declare.
21057 2002-01-01 Tom Rix <trix@redhat.com>
21059 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
21060 rs6000_emit_allocate_stack.
21062 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
21064 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
21065 ${srcdir}/ginclude/ to every entry in extra_headers.
21066 * configure: Regenerate.
21067 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
21068 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
21069 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
21070 * ginclude/proto.h: Rename to config/convex/proto.h.
21072 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21074 * attribs.c (handle_vector_size_attribute): Use host_integerp
21075 and tree_int_cst; remove warnings.
21076 * caller-save.c (insert_restore): Add cast to get rid of warning.
21077 (insert_save): Likewise.
21078 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
21079 * regmove.c (find_matches): Add temporary var to kill a warning.
21081 2002-01-01 Douglas B Rupp <rupp@gnat.com>
21083 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
21084 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
21085 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
21086 (vms-dwarf2eh.o): Add Makefile rule.
21087 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
21088 * config/alpha/vms-dwarf2eh.asm: New file.
21090 * gcc.c (delete_if_ordinary): Delete all versions.
21092 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
21094 * config/mmix/mmix.md: Update FIXME to not mention
21096 (MMIX_rJ_REGNUM): New define_constants constant.
21097 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
21098 "*movdicc_real"): Adjust contraints formatting.
21099 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
21100 for branch prediction.
21101 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
21103 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
21104 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
21105 number. Delete related FIXMEs.
21106 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
21107 from number to MMIX_rJ_REGNUM.
21108 (TARGET_MASK_BRANCH_PREDICT): New.
21109 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
21110 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
21111 value. Add -mbranch-predict and -mno-branch-predict.
21112 (TARGET_VERSION): Drop date.
21113 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
21114 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
21115 for finding out global symbols.
21116 (mmix_asm_output_labelref): Revert condition for global symbol.
21117 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
21118 (mmix_print_operand_punct_valid_p): A '+' is valid.
21120 See ChangeLog.6 for earlier changes.