1 2002-06-23 Jan Hubicka <jh@suse.cz>
3 * reg-stack.c (convert_regs_exit): Push the registers to stack in
6 2002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
9 * function.c (assign_stack_temp_for_type): Do not return
10 the same MEM rtx for multiple uses of a stack slot.
12 2002-06-22 David S. Miller <davem@redhat.com>
14 PR target/6841 target/6770 target/6719
15 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
16 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
17 GENERAL_OR_EXTRA_FP_REGS.
19 2002-06-22 Neil Booth <neil@daikokuya.co.uk>
21 * cpptrad.c (struct fun_macro): Add line number.
22 (scan_out_logical_line): Set it, and use it to report unterminated
25 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
28 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
29 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
30 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
31 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
32 REGEXP_ONEOF, check_name): Const-ify.
34 2002-06-21 Matt Thomas <matt@3am-software.com>
36 * config/vax/vax.c (vax_output_function_prologue): Use
37 REGISTER_PREFIX. Fix some indentation.
38 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
39 (VAX_ISTREAM_SYNC): Define.
40 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
41 i-stream sync to the end.
42 (REGISTER_PREFIX): Define as "".
43 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
45 2002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
47 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
50 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
52 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
53 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
55 2002-06-21 Matt Thomas <matt@3am-software.com>
57 * config/vax/netbsd.h: Adjust a comment.
58 (TARGET_DEFAULT): Redefine as 0.
60 2002-06-21 Richard Henderson <rth@redhat.com>
62 * bb-reorder.c (make_reorder_chain_1): Search harder for the
63 vax casesi fallthru edge.
64 * cfglayout.c (cleanup_unconditional_jumps): Use
65 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
66 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
69 2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
71 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
73 2002-06-21 Neil Booth <neil@daikokuya.co.uk>
75 * cpperror.c (cpp_error): For traditional CPP, default to
76 diagnostics on pfile->line.
77 * cpplib.c (prepare_directive_trad): Set line number for
78 diagnostics for #define too.
79 * cpptrad.c (skip_whitespace): Skip comments properly.
80 (_cpp_expansions_different_trad): Initialize quote2.
82 2002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
84 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
85 * config/mmix/mmix.h: Ditto.
86 * config/mmix/mmix-protos.h: Ditto.
87 * config/mmix/mmix.c: Ditto. Fix typo in comment.
88 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
89 comment. Comment extra CC modes.
91 2002-06-20 Jan Hubicka <jh@suse.cz>
93 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
94 (scope_to_insns_finalize): Do not call set_block_levels; handle
96 (choose_inner_scope): New.
97 * rtl.h (choose_inner_scope): Declare.
99 2002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
101 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
103 * pa.c (pa_asm_output_mi_thunk): Likewise.
104 (n_deferred_plabels): Change type to size_t.
105 (output_deferred_plabels, output_call): Use size_t instead of int.
107 2002-06-20 Richard Henderson <rth@redhat.com>
110 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
111 pattern and adjust constraints for coldfire.
113 2002-06-20 Richard Henderson <rth@redhat.com>
115 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
117 2002-06-20 Chris Demetriou <cgd@broadcom.com>
119 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
121 2002-06-20 Chris Demetriou <cgd@broadcom.com>
123 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
125 2002-06-20 Stan Shebs <shebs@apple.com>
127 * dominance.c: Include errors.h instead of error.h.
129 2002-06-20 Neil Booth <neil@daikokuya.co.uk>
131 * cppexp.c (cpp_interpret_integer): Don't force traditional
132 numbers to be unsigned.
133 * cpplib.c (prepare_directive_trad): Set line number for
135 * cpptrad.c (scan_out_logical_line): Continue scanning out
137 * gcc.c (trad_capable_cpp): Use cc1 always.
139 2002-06-20 Jeffrey Law <law@redhat.com>
141 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
142 elimination in leaf functions by default yet.
144 2002-06-20 Richard Sandiford <rsandifo@redhat.com>
146 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
148 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
150 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
152 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
155 Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
156 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
158 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
160 * basic-block.h: Do not include et-forest.h
161 (dominance_info): Declare as struct dominance-info.
162 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
164 * dominance.c (struct dominance_info): Define.
165 (BB_NODE, SET_BB_NODE): New macros.
166 (bb_hash_func, bb_eq_func): Kill.
167 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
168 nearest_common_dominator, dominated_by_p, recount_dominator,
169 add_to_dominance_info, delete_from_dominance_info): update for new
171 (get_dominated_by, redirect_immediate_dominators): Rewrite using
173 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
174 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
177 * et-forest.h: Update copyright; revamp all function to operate on
179 (et_forest_value): Kill.
180 (et_forest_enumerate_sons, et_forest_node_value): New.
181 * et-forest.c: Update copyright.
182 * et-forest.h: Update copyright; revamp all function to operate on
184 (et_forest_value): Kill.
185 (et_forest_enumerate_sons, et_forest_node_value): New.
187 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
189 * basic-block.h: Inlude et-forest.h
190 (basic_block_def): Kill dominator.
191 (dominance_info): New type.
192 (loops): Use dominace_info.
193 (dominace handling functions): Take dominace_info as argument
195 (create_preheader): Likewise.
196 * cfg.c (entry_exit_blocks): Kill dominator.
197 (dump_flow_info): Do not dump dominators.
198 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
200 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
201 (flow_loops_pre_header_scan, make_forwarder_block,
202 canonicale_loop_headers, flow_loops_find): Likewise.
203 * dominance.c: Include error.h
204 (idoms_to_doms): Kill.
205 (bb_hash_func, bb_eq_func): New static functions.
206 (debug_dominace_info): New global function.
207 (calculate_dominance_info): Use new et forest structure.
208 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
209 get_dominated_by, redirect_immediate_dominators,
210 nearest_common_dominator, dominated_by_p, verify_dominators,
211 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
212 delete_from_dominance_info): New global functions.
213 * gcse.c (domnators): CHange to dominance_info.
214 (alloc_hoist_mem): Do not alloc dominators
215 (free_code_hoist_mem): Use free_dominance_info.
216 (compute_code_hoist_data): Use dominance_info.
217 (hoist_code): Likewise.
218 * ifcvt.c (post_dominators): Likewise.
219 (find_if_case_2, if_convert): Likewise.
220 * predict.c (process_note_predictions, process_note_prediction,
221 estimate-probability): Likewise.
222 * sched-rgn.c (find_rgns, init_regions): Likewise.
223 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
224 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
225 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
226 find_evaluations, convert_to_ssa): Likewise.
227 * ssa.h (compute_dominance_frontiers): Likewise.
229 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
231 * Makefile.in (et-forest.c): Add.
232 * et-forest.c: New file.
233 * at-forest.h: New file.
235 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
237 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
238 array size calculation.
239 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
242 * diagnostic.c (diagnostic_kind_text): Const-ify.
243 * gengtype.c (lang_names): Likewise.
245 Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
247 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
249 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
251 * config/sol2.h: New file.
252 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
253 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
254 (sparc-*-chorusos*): Likewise.
255 (sparc-*-elf*): Likewise.
256 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
257 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
258 (sparc-hal-solaris2*): Likewise.
259 (sparc-*-solaris2*): Likewise.
260 (sparclite-*-elf*): Likewise.
261 (sparc86x-*-elf*): Likewise.
262 (sparc64-*-elf*): Likewise.
264 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
266 (ASM_SPEC): Override config/sol2.h version for now.
267 Removed obsolete GAS_REJECTS_MINUS_S variant.
268 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
269 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
270 (TARGET_OS_CPP_BUILTINS): Likewise.
272 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
273 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
275 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
276 (ASM_CPU_SPEC): Define.
277 (SUBTARGET_EXTRA_SPECS): Define.
279 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
280 in config/sparc/sol2.h.
281 (ASM_SPEC): Moved to config/sol2.h.
282 (CPP_CPU_SPEC): Simplified.
283 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
285 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
286 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
287 STARTFILE_ARCH64_SPEC.
288 (STARTFILE_SPEC): Moved to config/sol2.h
289 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
290 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
291 (LINK_ARCH64_SPEC): Simplified.
292 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
293 (LINK_SPEC): Moved to config/sol2.h
295 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
297 Use BITS_PER_WORD for size.
298 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
299 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
300 (CPP_PREDEFINES): Removed OS-specific part handled by
301 TARGET_OS_CPP_BUILTINS.
302 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
303 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
304 (ASM_SPEC): Moved to config/sol2.h.
305 (PREFERRED_DEBUGGING_TYPE): Likewise.
306 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
307 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
308 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
309 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
311 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
312 * config/i386/sol2gas.h: Removed.
314 Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
316 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
318 2002-05-20 Richard Henderson <rth@redhat.com>
320 * c-common.c (c_common_get_alias_set): Correctly handle characters.
321 Rearrange order of expressions; don't handle vectors here.
322 * alias.c (get_alias_set): Let vectors match their components.
324 2002-06-19 Chris Demetriou <cgd@broadcom.com>
326 * config/mips/mips.c (mips_emit_prefetch): Use hints which
327 match desired locality.
329 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
331 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
332 (h8300_insert_attributes): New.
334 2002-06-19 Akim Demaille <akim@epita.fr>
336 * c-parse.in (initelt: identifier ':' initval): Add an empty
337 action to fix a type clash.
338 (aliasdecl, classdef): Add the missing closing `;'.
340 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
341 $$ = $1 type clashes.
343 2002-06-19 Eric Christopher <echristo@redhat.com>
345 * config/mips/mips.c (symbol_operand): New function.
346 (mips_emit_prefetch): Ditto.
347 * config/mips/mips-protos.h: Define.
348 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
349 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
350 (LEGITIMIZE_ADDRESS): Ditto.
351 * config/mips/mips.md (prefetch, prefetch_si_address,
352 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
354 2002-06-19 Eric Christopher <echristo@redhat.com>
356 * config/fp-bit.h: Add unordered defines for gofast.
358 2002-06-19 Vladimir Makarov <vmakarov@redhat.com>
360 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
361 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
362 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
363 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
364 checking and without it.
365 (decl_name, decl_mode_check_failed, regexp_name,
366 regexp_mode_check_failed): New functions.
367 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
368 gen_presence_set, gen_absence_set, gen_automaton,
369 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
370 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
371 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
372 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
373 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
374 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
375 (decl_hash, decl_eq_p): Use the macros.
376 (find_decl): Ditto. Set up mode of work_decl.
377 (process_excls, process_presence_absence, process_decls,
378 check_automaton_usage, process_regexp, process_regexp_decls,
379 check_usage, loop_in_regexp, check_loops_in_regexps,
380 process_regexp_cycles, add_advance_cycle_insn_decl,
381 initiate_states, initiate_excl_sets,
382 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
383 transform_2): Use the macros.
384 (transform_3): Ditto. Check mode before making transformations of
386 (regexp_transform_func, transform_insn_regexps,
387 process_unit_to_form_the_same_automaton_unit_lists,
388 form_the_same_automaton_unit_lists_from_regexp,
389 form_the_same_automaton_unit_lists,
390 process_seq_for_forming_states, process_alts_for_forming_states,
391 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
392 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
393 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
394 units_to_automata_heuristic_distr, create_ainsns,
395 units_to_automata_distr, create_automata): Use the macros.
396 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
397 (longest_path_length, min_issue_delay_pass_states,
398 output_dead_lock_vect, output_tables, output_insn_code_cases,
399 output_internal_insn_latency_func, output_print_reservation_func,
400 output_description, output_automaton_units, generate): Use the
402 (make_insn_alts_attr): Ditto. Check case when there are not
403 alternatives in the reservation.
404 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
405 make_bypass_attr, form_important_insn_automata_lists,
406 expand_automata): Use the macros.
408 2002-06-20 Tim Josling <tej@melbpc.org.au>
410 * Makefile.in: Clean up code to check for misspecified languages
413 2002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
415 * cpptrad.c (_cpp_replacement_text_len): initialize len.
417 2002-06-19 Jason Merrill <jason@redhat.com>
419 * Makefile.in (unstrap, restrap): New targets.
420 (bootstrap): Mention restrap.
422 2002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
424 * except.c (ehl_free): Remove.
426 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
427 builtin_define and builtin_define_std.
429 2002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
431 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
432 (sCOND): Restrict operand class so that gcc knows how to reload them.
433 (bitfield_set): Merge two unnamed insn's using alternatives.
434 (call_value): Remove constraint on unused uperand.
435 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
436 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
438 * longlong.h (count_trailing_zeros): Escape newline and beautify.
440 2002-06-19 Mark Mitchell <mark@codesourcery.com>
442 * Makefile.in (QMTEST_DIR): Simplify definition.
444 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
446 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
449 2002-06-19 Neil Booth <neil@daikokuya.co.uk>
451 * cpphash.h (struct cpp_reader): Make date and time strings.
452 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
453 _cpp_replacement_text_len): New.
454 * cppinit.c (cpp_create_reader): Update.
455 (init_builtins): Register appropriate builtins for -traditional-cpp.
456 * cppmacro.c (new_number_token): Remove.
457 (_cpp_builtin_macro_text): New.
458 (builtin_macro): Use it.
459 (cpp_macro_definition): Update to handle traditional macros.
460 * cppmain.c (cb_line_change): Don't do column positioning for
462 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
464 (skip_whitespace): Fix.
465 (maybe_start_funlike): Don't set state.parsing_args.
466 (scan_out_logical_line): Remove duplicate error. Use lex_state
467 rather than state.parsing_args.
468 (push_replacement_text): Handle builtins.
469 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
471 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
472 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
474 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
475 attribute __always_inline__.
477 2002-06-18 Bob Wilson <bob.wilson@acm.org>
479 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
480 when generating the call to _mcount.
481 (NO_PROFILE_COUNTERS): Define.
483 2002-06-18 Richard Henderson <rth@redhat.com>
485 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
488 Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
490 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
491 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
492 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
493 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
495 * sh-protos.h (sh_pr_interrupt): Declare.
496 * sh.c (sh_pr_interrupt): New function.
497 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
498 (sh_hard_regno_rename_ok): Likewise.
499 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
501 2002-06-18 Vladimir Makarov <vmakarov@redhat.com>
503 * rtl.def (DEFINE_AUTOMATON): Add description of new options
504 `time' and `v'. Fix incorrect description of option `w'.
506 * doc/md.texi: Ditto.
508 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
509 (gen_automata_option): Process the new options.
510 (transform_2, transform_3): Initialize some variables.
511 (initiate_automaton_gen): Use the new macros.
513 2002-06-18 Richard Sandiford <rsandifo@redhat.com>
515 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
516 (mips_set_return_address, mips_restore_gp): Declare.
517 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
518 (current_frame_info): Remove.
519 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
520 * config/mips/mips.c: Remove uses of current_frame_info.
521 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
522 (struct machine_function): Add 'frame' and 'insns_len'.
523 (current_frame_info, zero_frame_info): Remove.
524 (mips_restore_gp, mips_set_return_address): New.
525 (mips_initial_elimination_offset): New.
526 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
527 (eh_return define_split): Use mips_set_return_address.
529 2002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
531 * cpplib.c (dtable): Update.
532 (end_directive): Decrement expansion prevention count.
533 Clear state.in_expression.
534 (prepare_directive_trad): Set state.in_expression.
535 Increment expansion prevention count.
536 * cpptrad.c (enum ls): New.
537 (_cpp_overlay_buffer): Set overlaid_buffer.
538 (_cpp_remove_overlay): Use overlaid_buffer.
539 (_cpp_read_logcial_line_trad): Update buffer when it might
541 (scan_out_logical_line): Handle state transitions for assertions
542 and defined() in #if, and for funlike invocations including the
543 directive case. Handle '<' and '>' as a quote mechanism in
544 #include. Warn about unterminated macro invocations.
545 * cpphash.h (struct lexer_state): New member in_expression.
546 (struct cpp_reader): New member overlaid buffer.
548 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
550 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
553 2002-06-18 Alan Modra <amodra@bigpond.net.au>
555 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
557 * doloop.c (doloop_optimize): Extract pattern from insn.
559 2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
561 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
563 2002-06-17 Jeff Law <law@redhat.com>
565 * libgcc2.c: Do not include symcat.h or machmode.h.
567 2002-06-17 Richard Henderson <rth@redhat.com>
570 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
572 2002-06-17 Tom Tromey <tromey@redhat.com>
574 * dwarfout.c: Include function.h.
576 2002-06-17 Andreas Schwab <schwab@suse.de>
578 * print-rtl.c (print_rtx): Print space before vector, not after.
579 (debug_rtx): Clear sawclose before printing.
580 (debug_rtx_list): Print newline after each list element.
581 (debug_rtx_range): Likewise.
583 2002-06-17 Richard Henderson <rth@redhat.com>
585 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
586 (current_function_funcdef_no): Similarly.
587 * function.c (funcdef_no): Similarly.
588 (prepare_function_start): Set current_function_funcdef_no.
589 (expand_function_start): Don't set current_function_profile_label_no.
590 * dwarf2out.h (current_funcdef_number): Remove.
591 * dwarf2out.c (current_funcdef_number): Remove. Replace with
592 current_function_funcdef_no throughout.
593 * dwarfout.c, vmsdbgout.c: Similarly.
594 * except.c (sjlj_funcdef_number): Remove.
595 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
596 (output_function_exception_table): Likewise.
597 * final.c (profile_function): Use current_function_funcdef_no
598 instead of current_function_profile_label_no.
600 2002-06-17 Vladimir Makarov <vmakarov@redhat.com>
602 * sched-ebb.c (init_ready_list): Check INSN_P first.
604 Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
606 * sh.md (divsi3): Update way how to find insns in a sequence.
608 * reload1.c (merge_assigned_reloads): Don't change reloads
609 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
610 to RELOAD_OTHER when there are conflicting input reloads.
612 2002-06-17 Richard Earnshaw (rearnsha@arm.com)
614 * function.c (epilogue_done): Correctly build a sequence of insns for
617 2002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
619 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
622 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
624 2002-06-16 Richard Henderson <rth@redhat.com>
626 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
627 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
629 2002-06-16 Richard Henderson <rth@redhat.com>
632 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
634 2002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
636 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
637 * config/i386/i386-aout.h, config/i386/i386elf.h,
638 config/i386/sysv4.h: Remove CPP_PREDEFINES.
639 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
640 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
641 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
642 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
643 CPP_PREDEFINES and part of CPP_SPEC.
644 * config/i386/sysv4-cpp.h: New.
646 2002-06-16 Richard Henderson <rth@redhat.com>
649 * dwarf2out.c (modified_type_die): Don't assign the qualified die
650 to the unqualified type.
652 Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
654 * i386-protos.h (x86_field_alignment): Declare.
655 * i386.c (x86_field_alignment): Define.
656 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
657 (BIGGEST_FIELD_ALIGNMENT): Kill.
659 2002-06-16 Richard Henderson <rth@redhat.com>
661 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
663 2002-06-16 Richard Henderson <rth@redhat.com>
665 * c-common.c (flag_ms_extensions): Move from c++ front end.
666 * c-common.h (flag_ms_extensions): Declare.
667 * c-decl.c (c_decode_option): Add -fms-extensions.
668 (grokfield): Don't accept anonymous structures in ISO C mode;
669 accept only unnamed anonymous structures in GNU C mode; accept
670 Plan 9 extensions in MS mode.
671 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
672 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
673 (extension): Clear flag_iso.
674 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
676 2002-06-16 Hans-Peter Nilsson <hp@axis.com>
679 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
680 early if current_function_epilogue_delay_list is non-empty.
681 * config/cris/cris.md ("return"): Add sanity check asserting that
682 current_function_epilogue_delay_list is empty.
684 2002-06-16 Jeff Law <law@redhat.com>
686 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
687 sharing of hard registers.
689 * toplev.c (rest_of_compilation): Remove redundant conditional.
691 * toplev.c (rest_of_compilation): Perform a simpler, less costly
692 cleanup of the CFG when not optimizing.
694 2002-06-16 Alan Modra <amodra@bigpond.net.au>
696 * gcc.c (main): Correct startfile_prefix_spec check.
698 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
700 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
701 include both darwin.o and rs6000-c.o.
703 2002-06-15 Roger Sayle <roger@eyesopen.com>
705 * expr.c (compare_from_rtx): Call simplify_relational_operation
706 on all comparisons, not just those between integer constants,
707 with the correct (possibly unsigned) comparison code.
708 (do_compare_rtx_and_jump): Likewise.
710 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
712 * Makefile.in (tm_defines): New configuration variable.
713 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
714 Pass tm_defines in TM_DEFINES.
715 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
716 * config.gcc (tm_defines): New configuration variable.
717 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
718 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
719 * configure.in: Substitute tm_defines.
720 * configure: Rebuilt.
721 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
722 * doc/install.texi: Update.
723 * pa/pa-700.h: Delete file.
724 * pa/pa-7100.h: Delete file.
726 2002-06-15 Roger Sayle <roger@eyesopen.com>
728 * fold-const.c (comparison_to_compcode): New function to convert
729 an comparison TREE CODE into a bit-based representation.
730 (compcode_to_comparison): New function to convert from this bit
731 based representation back to a comparison TREE CODE.
732 (fold_truthop): Simplify (x<y) && (x==y) and related composite
735 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
737 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
739 * stor-layout.c (compute_record_mode): Remove check for
740 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
741 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
742 MEMBER_TYPE_FORCES_BLK.
744 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
746 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
748 2002-06-14 Jeff Sturm <jsturm@one-point.com>
750 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
752 2002-06-14 Steve Ellcey <sje@cup.hp.com>
754 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
755 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
756 * configure, config.in: Regenerate.
758 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
760 * loop.c (check_final_value): Use v->always_executed
761 instead of v->always_computable.
762 * unroll.c (final_giv_value): Don't calculate the final
763 value as a function of the biv if the giv is not computed
764 for every loop iteration.
766 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
768 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
770 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
773 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
774 the truncation down when the target type is signed.
775 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
776 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
777 the conversion if the target type is a smaller type.
779 2002-06-14 Richard Henderson <rth@redhat.com>
781 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
782 earlier. Re-factor comparisons vs extrema.
784 2002-06-14 Richard Henderson <rth@redhat.com>
786 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
788 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
790 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
791 * sched-deps.c (add_dependence): Likewise.
792 (group_leader): Likewise.
793 * sched-rgn.c (init_ready_list): Likewise.
794 * doc/rtl.texi: Adjust accordingly.
796 2002-06-13 Jeffrey Law <law@redhat.com>
798 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
799 null pointer checks were eliminated. Update prototype.
800 (delete_null_pointer_checks): Similarly.
801 * rtl.h (delete_null_pointer_checks): Update prototype.
802 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
803 delete_null_pointer_checks deletes one or more null
804 pointer checks. Do not run cleanup_cfg before gcse, the
805 CFG is accurate and optimized at that point..
807 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
810 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
812 * Makefile.in (libgcc.mk): Depend on specs.
814 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
816 * sh.md (mulsi3): Update way how to find insns in a sequence.
818 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
820 * sh.h: Define HARD_REGNO_RENAME_OK
821 * sh.c: sh_hard_regno_rename_ok: New. If current function has
822 interrupt_handler attribute, only registers saved on stack are OK.
823 * sh-protos.h: Declare sh_hard_regno_rename_ok.
825 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
827 * config/sh/sh.md (jump): Emit jump insn.
828 (call_pcrel): Get pattern of the result of gen_call_site.
829 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
831 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
833 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
834 * cpptrad.c: Update comments.
835 (skip_whitespace, copy_comment): Take a new parameter.
836 (skip_escaped_newlines): Don't duplicate escaped newline test.
837 (copy_comment): Different location for CUR, decide here how
838 to copy / replace the comment.
839 (skip_whitespace): Copy whitespace.
840 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
841 (scan_out_logical_line): Let copy comment handle keeping or
843 (scan_parameters, _cpp_create_trad_definition): Update.
845 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
847 * reload.c (get_secondary_mem,find_reloads_address,
848 find_reloads_address_1): Pass reference to MEM to find_reloads_address
849 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
851 2002-06-13 Jessica Han <jessica@cup.hp.com>
853 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
854 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
855 * doc/tm.texi: Document them.
856 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
857 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
858 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
859 (ASM_OUTPUT_FDESC): Likewise.
861 2002-06-13 Eric Christopher <echristo@redhat.com>
863 * diagnostic.c (output_format): Fix thinko.
865 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
867 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
868 (DWARF2_UNWIND_INFO): Define to 0.
870 * config/sh/sh.c (calc_live_regs): Don't use initial_value
871 optimization for PR_MEDIA_REG.
873 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
875 * cpphash.h (_cpp_lex_identifier_trad): Remove.
876 * cpplib.c (end_directive): Don't skip, always remove overlay
878 (prepare_directive_trad): Handle NULL pfile->directive.
879 (_cpp_handle_directive): Always call prepare_directive_trad
881 * cppmain.c (check_multiline_token): Rename account_for_newlines,
883 (scan_translation_unit_trad): Use it.
884 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
885 output, get escaped newline in comment close correct.
886 (check_output_buffer, skip_whitespace): Update.
887 (_cpp_lex_identifier_trad): Remove.
888 (scan_out_logical_line): Handle -C and comments in directives
891 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
893 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
894 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
895 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
896 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
897 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
898 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
899 (SELECT_SH5_COMPACT_NOFPU): Likewise.
900 (TARGET_SWITCHES): Use them.
901 (TARGET_CPU_DEFAULT): Define if not already defined.
902 (TARGET_DEFAULT): Use it.
903 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
904 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
905 * config/sh/t-monolib: New file.
907 2002-06-13 Roger Sayle <roger@eyesopen.com>
909 * toplev.c (rest_of_compilation): Simplify (and correct) the
910 logic of the first delete-null-pointer-checks pass.
912 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
914 * i386.c (ix86_expand_movstr): Fix pasto.
916 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
918 * reload.c (find_valid_class): Fix thinko in my previous patch.
920 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
922 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
923 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
924 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
925 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
927 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
929 * tree-inline.c (expand_call_inline): Don' mess with _DECL
932 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
934 * diagnostic.c (output_format): Recognize "%H" as a format
935 specifier for a location_t.
936 (text_specifies_location): New function.
937 (diagnostic_set_info): Use it.
939 2002-06-13 Jeffrey Law <law@redhat.com>
941 * emit-rtl.c (static_regno_reg_rtx): Define.
942 (init_emit_once): Initialize static_regno_reg_rtx.
943 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
944 of building new hard reg objects once per function.
945 (gen_rtx_REG): Try to share hard regs.
946 * regclass.c (init_fake_stack_mems): New function broken out from
948 * rtl.h (init_fake_stack_mems): Declare.
949 * toplev.c (lang_independent_init): Call init_regs before
950 init_emit_once. Call init_fake_stack_mems after init_emit_once.
952 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
954 * alias.c (argument_registers): Remove.
955 (init_alias_once): Initialize static_reg_base_value here. Remove
956 initialization of argument_registers.
957 (init_alias_once_per_function): Remove.
958 (init_alias_analysis): Copy all the entries from static_reg_base_value
959 into new_reg_base_value all at once.
960 * rtl.h (init_alias_once_per_function): Remove declaration.
961 * function.c (prepare_function_start): Do not call
962 init_alias_once_per_function.
964 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
965 starting a sequence and emitting an INSN.
967 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
969 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
971 2002-06-13 David S. Miller <davem@redhat.com>
973 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
975 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
977 * cpplib.c (end_directive): Handle line skipping. Only remove
978 the rest of the line if the directive was valid.
979 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
980 expanding a traditional macro.
981 * cpptrad.c (recursive_macro): New.
982 (read_logical_line_trad): Handle skipping.
983 (scan_out_logical_line): Continue after a successful directive.
984 Don't expand macros whilst skipping, or if recursing.
985 (_cpp_create_trad_definition): scan_out_logical_line now sets
986 the output current position.
988 2002-06-12 Eric Christopher <echristo@redhat.com>
990 From Chris Demetriou <cgd@broadcom.com>
991 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
993 (ISA_HAS_MADD_MSUB): Ditto.
994 (ISA_HAS_NMADD_NMSUB): Ditto.
996 2002-06-12 Eric Christopher <echristo@redhat.com>
998 * config.gcc: Consolidate little endian handling and
999 little/big endian targets.
1000 * config/mips/elfl.h: Remove file.
1001 * config/mips/elfl64.h: Ditto.
1002 * config/mips/ecoffl.h: Ditto.
1003 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
1005 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
1007 * gengtype.h (xvasprintf): New prototype.
1008 (xasprintf): New prototype.
1010 (get_output_file): Return an outf_p.
1011 (header_file): Is now an outf_p.
1012 (base_files): Now are outf_p.
1014 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
1015 rather than stdio operations. Use xasprintf in a few places,
1019 (struct filemap): Delete.
1021 (output_files): New.
1023 (create_file): Create an outf_p. Add parameter to indicate output
1024 file name, change all callers.
1025 (open_base_files): Create gtype-desc.c here.
1026 (get_output_file_with_visibility): Rewrite.
1027 (get_output_file_name): Just look at 'name' field in struct outf.
1028 (close_output_files): Rewrite.
1030 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
1032 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
1033 (MASK_G_FLOAT): Define.
1034 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
1035 (TARGET_SWITCHES): Likewise.
1036 (TARGET_DEFAULT): Likewise.
1038 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
1040 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
1041 * config/mips/mips.c (mips_output_filename): Don't print a
1042 ".file" directive if we are using DWARF-2.
1043 (mips_output_function_prologue): Do not emit source file
1044 name for TARGET_GAS.
1046 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
1048 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
1049 decide whether emit the short opcode.
1050 * i386.h (x86_shift1): Declare.
1051 (TARGET_SHIFT1): New macro.
1052 * i386.c (x86_shift1): New global variable.
1054 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
1055 unconditionally; make loop to rebuild CFG; kill unnecesary
1056 find_basic_block calls; kill compute_bb_for_insn call.
1057 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
1058 * haifa-sched.c (sched_init): Likewise.
1059 * ssa-ccp.c (ssa_const_prop): Likewise.
1060 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1062 2002-06-11 David S. Miller <davem@redhat.com>
1064 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
1067 2002-06-11 Richard Henderson <rth@redhat.com>
1069 * c-common.c (builtin_define_type_max): New.
1070 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
1071 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
1073 From Joseph S. Myers:
1074 * glimits.h: Rewrite to expect the double underscore definitions
1077 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
1078 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
1079 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
1080 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
1081 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
1082 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
1083 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
1084 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
1086 2002-06-11 Richard Henderson <rth@redhat.com>
1088 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
1089 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
1090 (code_for_builtns): Update.
1091 (alpha_init_builtins): Add __builtin_thread_pointer and
1092 __builtin_set_thread_pointer.
1093 (alpha_expand_builtin): Handle void builtins.
1094 * doc/extend.texi (Alpha Built-in Functions): Update.
1096 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
1099 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
1101 2002-06-11 Zack Weinberg <zack@codesourcery.com>
1103 * config.gcc: Make the name of the extra-modes file adjustable
1105 (s390x, strongarm, xscale stanzas): Use this facility.
1106 * configure.in: Update to match.
1107 * configure: Regenerate.
1109 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
1111 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
1112 max/mins as unsigned GE compares.
1114 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
1116 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
1117 * config/vax/bsd.h: New file.
1118 * config/vax/netbsd.h: Add missing notice.
1119 (CPP_PREDEFINES): Remove.
1120 (TARGET_OS_CPP_BUILTINS): Define.
1121 (CPP_SPEC): Use NETBSD_CPP_SPEC.
1122 * config/vax/openbsd.h: Update copyright years.
1123 (CPP_PREDEFINES): Remove.
1124 (TARGET_OS_CPP_BUILTINS): Define.
1125 * config/vax/ultrix.h: Likewise.
1126 * config/vax/vaxv.h: Likewise.
1127 * config/vax/vms.h: Likewise.
1128 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
1129 (CPP_PREDEFINES, CPP_SPEC): Remove.
1131 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
1133 * i386.md (addqi_1_slp, subqi_1_slp
1134 (andqi_ext0, testqi_ext0): Remove unnecesary check.
1135 (addhi*, addqi*): Simplify "dec" condition.
1136 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
1137 (and, or, xor to QImode splitters): New.
1140 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
1141 (andqi_ext_1_rex64): New.
1145 (rotrqi3*_slp): New.
1146 (rotlqi3*_slp): New.
1148 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
1150 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
1152 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
1153 (CPP_ENDIAN_LITTLE_SPEC): Delete.
1154 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
1155 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
1156 __LONG_DOUBLE_128__ setting, _CALL_* setting.
1157 (CPP_DEFAULT_SPEC): Delete.
1158 (CPP_FLOAT_DEFAULT_SPEC): Delete.
1159 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
1160 (CPP_SYSV_DEFAULT_SPEC): Delete.
1161 (CPP_ENDIAN_BIG_SPEC): Delete.
1162 (CPP_ENDIAN_LITTLE_SPEC): Delete.
1163 (CPP_ENDIAN_SPEC): Delete.
1164 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
1165 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
1166 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
1167 cpp_longdouble_default.
1168 * config/rs6000/softfloat.h: Delete.
1169 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
1170 (EXTRA_SPECS): Delete cpp_cpu.
1171 (TARGET_CPU_CPP_BUILTINS): New.
1172 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
1174 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
1175 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
1176 (CPP_DEFAULT_SPEC): Delete.
1177 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
1178 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
1179 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
1180 (CPP_DEFAULT_SPEC): Delete.
1181 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1182 (CPLUSPLUS_CPP_SPEC): Likewise.
1183 (CPP_CPU_SPEC): Delete.
1184 (CPP_DEFAULT_SPEC): Delete.
1185 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1186 (CPLUSPLUS_CPP_SPEC): Likewise.
1187 (CPP_CPU_SPEC): Delete.
1188 (CPP_DEFAULT_SPEC): Delete.
1189 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
1190 (CPP_DEFAULT_SPEC): Delete.
1191 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
1192 (CPP_DEFAULT_SPEC): Delete.
1194 * doc/gty.texi: Small updates.
1196 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
1198 * objc/objc-act.c (warn_with_ivar): Adjust calls to
1199 diagnostic_count_error.
1200 (warn_with_method): Likewise.
1202 * diagnostic.h (warnings_are_errors_message): New field of
1204 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
1206 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
1207 (diagnostic_count_diagnostic): Make aware of other kinds of
1209 (diagnostic_initialize): Initialize warnings_are_errors_message field.
1211 2002-06-11 Tom Tromey <tromey@redhat.com>
1214 * fold-const.c (fold_convert): Don't modify existing tree's type.
1216 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
1218 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
1220 2002-06-11 Richard Henderson <rth@redhat.com>
1222 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
1224 2002-06-11 Richard Henderson <rth@redhat.com>
1226 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
1227 DWARF2_UNWIND_INFO is false.
1229 2002-06-11 Bob Wilson <bob.wilson@acm.org>
1231 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
1233 * config/s390/s390.c (emit_prologue): gen_store_multiple
1234 returns an insn now, not a pattern.
1236 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1238 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
1241 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
1243 * i386.c (x86_promote_QImode): Set for Athlon
1244 (x86_fast_prefix): New global variable.
1245 (x86_arch_always_fancy_math_387): Fix formating.
1246 * i386.h (x86_fast_prefix): Declare
1247 (TARGET_FAST_PREFIX): define.
1248 * i386.md (and to strict_low_part, HI to SI
1249 promoting splitter): Use new macro.
1251 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
1253 2002-06-11 Zack Weinberg <zack@codesourcery.com>
1255 * Makefile.in (distclean): Delete junk left in testsuite
1258 2002-06-11 Jeffrey Law <law@redhat.com>
1260 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
1261 last insn created by the splitter.
1263 * caller-save.c (init_caller_save): Move creation of SAVEINSN
1264 and RESTINSN into into the scope of the sequence.
1266 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
1269 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
1271 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
1272 not the pattern. So extract the pattern from the insn.
1274 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
1276 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
1278 * config/s390/s390.md (movsi): Only use floating point
1279 register alternatives when operands are already fprs.
1280 (movdi_31, movdi_64): Likewise.
1282 2002-06-11 David S. Miller <davem@redhat.com>
1284 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
1285 Only run RTX equality checks on INSN_P rtl.
1287 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
1289 * config/s390/s390.md (reload_base, ltorg): Remove.
1290 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
1291 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
1292 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
1293 s390_asm_output_pool_prologue): Likewise.
1294 * s390.h (s390_pool_start_insn): Likewise.
1296 * s390.c (s390_output_symbolic_const): Remove support for
1297 old-style pool chunks.
1298 (s390_function_epilogue): Likewise.
1299 (s390_output_constant_pool): Likewise. Also, fix incorrect
1300 alignment for 64-bit literal pools.
1301 (print_operand_address): Remove 'y' and 'Y' format flags.
1302 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
1303 old-style pool chunks.
1304 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
1305 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
1306 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
1308 * s390.c (consttable_operand): New function.
1309 * s390-protos.h (consttable_operand): Declare it.
1310 * s390.h (PREDICATE_CODES): Add consttable_operand.
1311 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
1312 consttable_sf, consttable_df, pool_start_31, pool_end_31,
1313 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
1314 * s390.c (struct constant, struct constant_pool): New data types.
1315 (constant_modes, gen_consttable): New variables.
1316 (s390_start_pool, s390_end_pool, s390_add_pool,
1317 s390_dump_pool, s390_free_pool): New functions.
1318 (s390_chunkify_pool): Completely reimplement literal pool
1321 * s390.c (s390_pool_overflow): New variable.
1322 * s390.h (s390_pool_overflow): Declare it.
1323 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
1324 jumps in literal pool overflow situations.
1326 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
1327 (s390_frame_info): Account for possible use of RETURN_REGNUM
1328 by new literal pool overflow code.
1329 (s390_emit_prologue): Likewise.
1331 2002-06-05 David S. Miller <davem@redhat.com>
1333 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
1334 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
1335 emit_insns_before_scope, emit_insns_after,
1336 emit_insns_after_scope): Delete declaration.
1337 * ada/misc.c (insert_code_for): Use emit_insn* instead of
1339 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
1340 (alpha_set_memflags): Fix comment.
1341 (set_frame_related_p): Use get_insns instead of gen_sequence.
1342 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
1344 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
1346 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
1347 * config/fr30/fr30.c (fr30_move_double): Likewise.
1348 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
1350 * config/ia64/ia64.c (spill_restore_mem): Likewise.
1351 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
1353 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
1354 instead of gen_sequence.
1355 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
1356 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
1357 * config/sh/sh.c (sh_need_epilogue): Likewise.
1358 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
1360 (setjmp pattern and split): Use them to avoid splitter which emits
1362 * genattrtab.c (main): Emit include of function.h
1363 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
1364 get_insns instead of gen_sequence.
1365 * config/cris/cris.c (cris_split_movdx): Likewise.
1366 * emit-rtl.c (emit_insns*): Kill.
1367 (try_split): Expect insn list instead of SEQUENCE.
1368 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
1369 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
1370 Make them abort if a SEQUENCE is given and RTL checking is
1372 (emit_*_scope): Don't forget to set scope on final insn.
1373 (gen_sequence): Move from here...
1374 * ssa.c (gen_sequence): To here as private function.
1375 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
1377 (expand_builtin_return, expand_builtin_mathfn): Likewise.
1378 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
1379 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
1380 (expand_builtin_expect_jump): Use get_insns and fix comments.
1381 * calls.c (try_to_integrate): Use emit_insn_foo.
1382 (expand_call, emit_library_call_value_1): Likewise.
1383 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
1384 (emit_move_insn_1): Use get_insns instead of gen_sequence.
1385 (expand_expr): Use emit_insn_foo.
1386 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
1387 * except.c (build_post_landing_pads): Likewise.
1388 * flow.c (attempt_auto_inc): Likewise.
1389 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
1390 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
1391 * function.c (fixup_var_refs_insn): Use get_insns instead of
1393 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
1394 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
1395 (fixup_stack_1, purge_addressof_1, expand_main_function,
1396 get_arg_pointer_save_area): Likewise.
1397 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
1398 expand_function_end): Use emit_insn_foo.
1399 (record_insns, keep_stack_depressed): Work with insn list instead
1400 of SEQUENCE, fix comments.
1401 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
1402 noce_try_store_flag_constants, noce_try_store_flag_inc,
1403 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
1404 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
1405 (noce_process_if_block): Use get_insns instead of gen_sequence.
1406 * optabs.c (add_equal_note): Work with insn list, fix comments.
1407 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
1408 (expand_unop, expand_complex_abs, expand_unop_insn,
1409 expand_no_conflict_block): Likewise.
1410 (gen_move_insn): Use get_insns instead of gen_sequence.
1411 (gen_cond_trap): Likewise.
1412 * integrate.c (copy_rtx_and_substitute): Likewise.
1413 (emit_initial_value_sets): Use emit_insn_foo.
1414 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
1415 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
1416 now that RTL generators give insn lists.
1417 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
1418 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
1419 instead of gen_sequence.
1420 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
1421 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
1422 instead of gen_sequence.
1423 * loop.c (move_movables, emit_prefetch_instructions,
1424 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
1426 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
1427 (product_cheap_p): Likewise, and add commentary about RTL wastage
1429 * lcm.c (optimize_mode_switching): Use get_insns instead of
1431 * profile.c (gen_edge_profiler): Likewise.
1432 * regmove.c (copy_src_to_dest): Likewise.
1433 * reg-stack.c (compensate_edge): Likewise and fix comment.
1434 * gcse.c (process_insert_insn): Likewise.
1435 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
1436 * jump.c (delete_prior_computation): Update comment.
1437 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
1438 of gen_sequence, update comments to match.
1439 * recog.c (peephole2_optimize): Work with insn lists instead of
1441 * sched-vis.c (print_pattern): Abort on SEQUENCE.
1442 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
1443 Use get_insns instead of gen_sequence.
1444 (copy_loop_body): Likewise and don't emit dummy NOTE.
1445 * genrecog.c: Don't mention SEQUENCE rtl in comments.
1446 * combine.c (try_combine): Expect insn lists from split generator.
1447 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
1450 2002-06-11 Roger Sayle <roger@eyesopen.com>
1451 Andreas Jaeger <aj@suse.de>
1453 * cfgbuild.c: Update copyright years.
1455 2002-06-11 Andreas Schwab <schwab@suse.de>
1457 * config/m68k/m68k.h (PREDICATE_CODES): Define.
1459 2002-06-11 Eric Christopher <echristo@redhat.com>
1461 * doc/tm.texi (Run-time Target): Add comment about flag_iso
1463 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
1464 * config/mips/ecoffl.h: Ditto.
1465 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
1466 (CPP_PREDEFINES): Ditto.
1467 * config/mips/elfl64.h: Ditto.
1468 * config/mips/elfl.h: Ditto.
1469 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
1470 out until irix header consolidation.
1471 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
1472 with SUBTARGET_OS_CPP_BUILTINS.
1473 * config/mips/iris6.h: Ditto.
1474 (CPLUSPLUS_CPP_SPEC): Remove.
1475 * config/mips/linux.h: Ditto.
1476 * config/mips/netbsd.h: Ditto.
1477 * config/mips/openbsd.h: Ditto.
1478 * config/mips/rtems.h: Ditto.
1479 * config/mips/rtems64.h: Ditto.
1480 * config/mips/sni-svr4.h: Ditto.
1481 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
1482 ISA_MIPS32, ISA_MIPS64): New defines.
1483 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
1484 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
1485 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1486 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
1487 (TARGET_CPU_CPP_BUILTINS): Define.
1488 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
1489 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
1490 (movdicc): Remove check for ISA_MIPS32.
1491 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
1492 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
1493 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
1494 sunge_sf, sunle_df, sunle_sf): New patterns.
1496 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
1498 * Makefile.in: Update cppmain.o.
1499 * cpphash.h (struct cpp_reader): Move some members to a
1501 (trad_line): Rename saved_line.
1502 (_cpp_read_logical_line_trad): Update.
1503 (_cpp_remove_overlay): New.
1504 * cppinit.c (cpp_create_reader): No need to set saved_line.
1505 (cpp_destroy): Update.
1506 (cpp_read_main_file): Only overlay if compiling.
1507 * cpplex.c (continue_after_nul): Return false if in directive.
1508 * cpplib.c (EXPAND): New.
1509 (directive_table, SEEN_EOL): Update.
1510 (end_directive): Remove overlay if traditional; don't skip
1511 line in traditional #define.
1512 (prepare_directive_trad): New.
1513 (_cpp_handle_directive, run_directive): Update for traditional
1515 (lex_macro_node): Simplify, don't use lex_identifier_trad.
1516 * cpplib.h (struct options): Add preprocess_only.
1517 * cppmain.c: Don't include intl.h.
1518 (cpp_preprocess_file): Set options->preprocess_only.
1519 (scan_translation_unit_trad): Fix, and print line numbers.
1520 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
1521 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
1522 save_replacement_text, _cpp_create_trad_definition): Update for
1524 (_cpp_overlay_buffer): Save line number.
1525 (_cpp_remove_overlay): Rename from restore_buff, restore line.
1526 (_cpp_read_logical_line_trad): Don't handle overlays here.
1527 (scan_out_logical_line): Process directives.
1529 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
1531 * gthr-win32.h: Wrap functions in extern "C".
1532 (__gthread_key_t): Typedef as unsigned long,
1534 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
1535 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
1536 (__gthr_win32_once, __gthr_win32_key_create,
1537 __gthr_win32_key_delete, __gthr_win32_getspecific,
1538 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
1539 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
1540 __gthr_win32_mutex_unlock): Declare.
1541 (__gthread_once,__gthread_key_create,
1542 __gthread_key_delete, __gthread_getspecific,
1543 __gthread_setspecific, __gthread_mutex_init_function,
1544 __gthread_mutex_lock,__gthread_mutex_trylock,
1545 __gthread_mutex_unlock): Call corresponding
1546 __gthr_win32_* extern implementations if #defined
1547 __GTHREAD_HIDE_WIN32API.
1548 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
1549 $(srcdir)/config/i386/gthr-win32.c
1550 * config/i386/gthr-win32.c: New implementation file.
1551 (__gthr_win32_once, __gthr_win32_key_create,
1552 __gthr_win32_key_delete, __gthr_win32_getspecific,
1553 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
1554 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
1555 __gthr_win32_mutex_unlock): New functions, based on
1556 static inlines in gthr-win32.h.
1558 2002-06-10 Bob Wilson <bob.wilson@acm.org>
1560 * config/xtensa/xtensa.c (override_options): Don't warn about
1561 using -fpic or -fPIC when PIC is enabled by default.
1563 2002-06-10 Roger Sayle <roger@eyesopen.com>
1565 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
1567 2002-06-10 Zack Weinberg <zack@codesourcery.com>
1569 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
1570 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
1571 exists, substitute its pathname as @extra_modes_file@, define
1572 EXTRA_MODES_FILE to be an appropriate string to #include it
1573 with, and define EXTRA_CC_MODES to 1.
1575 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
1576 it's defined. Get rid of redundancy in calling sequence for
1577 CC; don't use it to define CCmode, to avoid a warning.
1578 * libgcc2.c: Include symcat.h for the sake of machmode.def.
1580 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
1581 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
1582 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
1584 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
1585 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
1587 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
1588 defining extra CC modes.
1590 2002-06-10 Roger Sayle <roger@eyesopen.com>
1591 Andreas Jaeger <aj@suse.de>
1593 * cfgrtl.c (create_basic_block_structure): Remove index argument
1594 and use last_basic_block++ instead. (create_basic_block): Update.
1595 * cfgbuild.c (find_basic_blocks_1): Likewise.
1597 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
1598 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
1599 * sched-ebb.c (schedule_ebbs): Likewise.
1600 * sched-rgn.c (schedule_insns): Likewise.
1601 * ssa-ccp.c (ssa_const_prop): Likewise.
1602 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
1603 * toplev.c (rest_of_compilation): Likewise.
1604 * config/ia64/ia64.c (ia64_reorg): Likewise.
1606 2002-06-10 Roger Sayle <roger@eyesopen.com>
1608 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
1609 of matching registers.
1611 2002-06-10 Roger Sayle <roger@eyesopen.com>
1613 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
1614 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
1616 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
1618 * config/mmix/mmix.h: Improve comments.
1619 (CPP_SPEC, CPP_PREDEFINES): Don't define.
1620 (TARGET_CPU_CPP_BUILTINS): Define.
1621 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
1622 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
1624 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
1626 (mmix_constant_address_p): Remove another
1627 redundant test before case.
1628 (mmix_canonicalize_comparison): Remove unused function.
1629 (mmix_print_operand_address): Don't test and adjust for operand in
1630 non-canonical format.
1631 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
1632 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
1634 2002-06-10 Zack Weinberg <zack@codesourcery.com>
1636 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
1637 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
1638 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
1639 (gen_compare): Use CCmode unconditionally.
1641 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1643 PR optimization/6759
1644 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
1647 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1650 * c-decl.c (grokfield): Allow user defined types if they declare
1651 structs or unions for unnamed fields.
1653 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1656 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
1658 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1660 PR optimization/6842
1661 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
1662 operand subreg cannot be simplified.
1664 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1666 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
1667 (compare_constant): Likewise.
1668 (output_addressed_constants): Likewise.
1670 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1672 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
1673 merge bb with itself.
1675 2002-06-10 Richard Henderson <rth@redhat.com>
1677 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
1678 (builtin_zapnot): Likewise.
1680 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
1683 2002-06-10 Eric Christopher <echristo@redhat.com>
1685 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
1686 prototype and function.
1687 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
1688 (call_insn_operand): Remove half pic references.
1689 (legitimate_address_p): Ditto.
1690 * config/i386/i386.h: Remove half pic defines.
1692 2002-06-10 Eric Christopher <echristo@redhat.com>
1694 * doc/extend.texi (Return Address): Add note explaining the side-
1695 effects of inlining on __builtin_return_address.
1697 2002-06-10 Tom Tromey <tromey@redhat.com>
1699 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
1700 (c-common.o): Depend on langhooks.h.
1702 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
1704 * cpphash.h (_cpp_read_logical_line_trad,
1705 _cpp_expansions_different_trad): Update prototypes.
1706 * cpplex.c (continue_after_nul): New.
1707 * cppmain.c: Include cpphash.h.
1708 (scan_translation_unit_trad): New.
1709 (cpp_preprocess_file): Call it.
1710 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
1712 (_cpp_expansions_different_trad): Update prototype.
1714 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
1716 Fix cfi generation for SH[1-4]:
1718 * sh.c (frame_insn): New function.
1719 (output_stack_adjust): Add parameter emit_fn. All callers changed.
1720 (push): Now returns rtx. Use frame_insn.
1721 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
1723 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
1725 2002-06-10 Zack Weinberg <zack@codesourcery.com>
1727 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
1729 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
1730 (distclean): ... not here. But do delete all testsuite/*.log,
1731 testsuite/*.sum files here. Delete mkheaders. Delete
1732 po/*.gmo and the testsuite directory in a split tree build.
1734 2002-06-10 Jeffrey Law <law@redhat.com>
1736 * alias.c (static_reg_base_value): New to hold RTL for
1737 items allocated once per function for the aliasing code.
1738 (init_alias_once_per_function): Initialize static_reg_base_value.
1739 (init_alias_analysis): Avoid throw-away allocations of RTL by
1740 using pre-computed values in static_reg_base_value.
1741 * function.c (prepare_function_start): Call
1742 init_alias_once_per_function appropriately.
1743 * rtl.h (init_alias_once_per_function): Declare.
1744 * caller-save (init_caller_save): Restructure slightly to
1745 avoid lots of silly RTL generation.
1746 * expr.c (init_expr_once): Likewise.
1747 * reload1.c (reload_cse_regs_1): Allocate throw-away register
1748 RTL object here. Pass it into children.
1749 (reload_cse_simplify_operands): Use passed-in register RTL
1751 (reload_cse_simplify): Pass through throw-away register
1754 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
1756 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
1758 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1760 * gcc.c (process_command): Avoid assignment to read-only location.
1761 Fix sizeof calculation.
1763 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
1765 * cpphash.h (struct cpp_macro): Put comments on their own lines.
1766 (_cpp_expansions_different_trad): New.
1767 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
1768 * cpptrad.c (canonicalize_text): New.
1769 (scan_out_logical_line): Handle no arguments correctly.
1770 (save_replacement_text): Commit memory when finished.
1771 (_cpp_expansions_different_trad): New.
1773 2002-06-10 Tim Josling <tej@melbpc.org.au>
1775 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
1777 (lang_names): Add treelang and cobol.
1778 (get_file_basename): Add code to support treelang and cobol as
1779 4th and 5th users of c-common.c.
1781 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
1783 * Makefile.in (install-driver): Install driver as
1784 $(target_alias)-gcc-$(version).
1785 * gcc.c (spec_version): Make const.
1786 (process_command): Handle -V and -b by using exec.
1787 * doc/invoke.texi (Target Options): Restore -V option,
1788 update docs for -b option.
1790 2002-06-10 Tim Josling <tej@melbpc.org.au>
1792 * configure.in (remaining_languages_check):
1793 Added check that all languages specified were found.
1794 Exit if not found. Previous behaviour was silent failure.
1795 * configure: Regenerated.
1797 2002-06-10 Tim Josling <tej@melbpc.org.au>
1799 First steps to making treelang documentation compliant, based on
1800 instructions in sourcebuild.texi. Also add to gcc.c list of
1803 * doc/contrib.texi: Add self as contributor of treelang.
1805 * doc/frontends.texi: Add mention of treelang.
1807 * doc/invoke.texi (Overall Options): Add mention of treelang.
1809 * doc/standards.texi: Add mention of treelang.
1811 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
1813 * config/cris/cris.c: Include ggc.h
1815 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
1817 * cpphash.h (_cpp_push_text_context): Update.
1818 (_cpp_arguments_ok): New.
1819 * cppmacro.c (_cpp_arguments_ok): New, split out from...
1820 (collect_args): ...here.
1821 (_cpp_push_text_context): Change inputs.
1822 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
1823 replace_args_and_push): New.
1824 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
1825 Don't use IS macros directly.
1826 (scan_out_logical_line): Handle function-like macro argument
1828 (push_replacement_text): Update.
1829 (replacement_length): Remove.
1830 (_cpp_create_trad_definition): Don't skip whitespace before
1833 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
1835 * config/avr/avr.c (avr_mcu_types): Update for new devices.
1836 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
1837 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
1838 * config/avr/avr.md ("type" and "length" attributes): New type
1839 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
1840 output a single "call" or "rcall" insn depending on device size.
1841 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
1843 2002-06-09 David Edelsohn <edelsohn@gnu.org>
1845 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
1846 synonym for 630. Add power4. Remove embedded processors. Use -m604
1848 (CPP_CPU_SPEC): Add power3 and power4.
1849 (PROCESSOR_DEFAULT): Change to 604e.
1850 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
1851 (CPP_CPU_SPEC): Similar additions.
1852 (enum process_type): Add POWER4.
1853 (RTX_COSTS): Add POWER4.
1854 (CPP_CPU_SPEC): Similar additions.
1855 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
1856 (PROCESSOR_DEFAULT64): Define.
1857 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
1858 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
1860 (rs6000_issue_rate): Add Power4.
1861 * config/rs6000/rs6000.md (cpu attr): Add power4.
1862 (iu compare): Remove 604, 604e, 620, 630.
1863 Add basic Power4 scheduling information.
1864 (mfcr/mtcrf): Change type attribute to cr_logical.
1866 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1868 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
1870 * gengtype-lex.l: Fix format specifier warning.
1872 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
1874 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
1875 lieu of isspace/IDchar.
1876 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
1877 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
1880 2002-06-08 Zack Weinberg <zack@codesourcery.com>
1882 * Makefile.in (LIBCPP_OBJS): Take out version.o.
1883 * cpphash.h (cpp_reader): Take out print_version member.
1884 * cppinit.c: (cpp_handle_option): Don't do anything with
1885 -version. Just set help_only for --version, --target-help.
1886 Just set verbose option for -v.
1887 (cpp_post_options): Don't print a version string.
1889 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1891 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
1892 (avr_section_type_flags): New, handle .noinit* sections.
1894 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1896 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
1897 and include netbsd_entry_point.
1898 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
1899 (NETBSD_ENTRY_POINT): Define.
1901 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1903 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
1904 if not already defined.
1905 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
1907 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1909 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
1910 in a noreturn function.
1911 (avr_output_function_prologue, avr_output_function_epilogue):
1912 Correct function size calculation. Do not crash on empty function.
1913 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
1915 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1917 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
1918 netbsd_link_spec and netbsd_entry_point.
1919 (LINK_SPEC): Use %(netbsd_link_spec).
1920 (NETBSD_ENTRY_POINT): Define.
1922 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1924 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
1926 (LINK_ARCH64_SPEC): Likewise.
1927 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
1928 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
1930 2002-06-08 Marc Espie <espie@openbsd.org>
1932 * lists.c (free_list): Fix typo in comment.
1934 2002-06-08 Andreas Jaeger <aj@suse.de>
1936 * lcm.c (optimize_mode_switching): Add unused attribute for
1939 * sched-deps.c (sched_analyze): Remove unused variable.
1941 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
1943 * diagnostic.def: Don't capitalize diagnostict descriptors.
1945 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1947 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
1948 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
1949 (NETBSD_ENTRY_POINT): Define.
1951 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1953 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
1954 NETBSD_LINK_SPEC_ELF.
1955 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
1956 (NETBSD_ENTRY_POINT): Define.
1957 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
1958 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
1960 (NETBSD_ENTRY_POINT): Define.
1962 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1964 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
1965 netbsd_link_spec and netbsd_entry_point.
1966 (LINK_SPEC): Use %(netbsd_link_spec).
1967 (NETBSD_ENTRY_POINT): Define.
1969 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1971 * config/netbsd-elf.h (LINK_SPEC): Rename to...
1972 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
1973 to specify program entry point.
1975 2002-06-07 Jeff Law <law@redhat.com
1977 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
1978 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
1979 than creating a new register.
1980 (distribute_notes): Likewise.
1981 * df.c (df_reg_use_gen): Likewise.
1982 (df_reg_clobber_gen): Likewise.
1983 (df_ref_record): Likewise.
1984 * expr.c (use_regs): Likewise.
1985 * flow.c (propagate_one_insn): Likewise.
1986 (mark_set_1): Likewise.
1987 (mark_used_reg): Likewise.
1988 * reload.c (emit_reload_insns): Likewise.
1990 2002-06-07 Roger Sayle <roger@eyesopen.com>
1992 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
1993 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
1994 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
1995 comparison code comp can be reversed.
1997 2002-06-07 Roger Sayle <roger@eyesopen.com>
1999 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
2000 constants last in comparisons. Optimize (x+1.0)>0.0 into the
2001 equivalent x > -1.0 when -ffast-math.
2003 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
2005 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
2006 * config/mips/t-netbsd: New file.
2008 2002-06-07 Zack Weinberg <zack@codesourcery.com>
2010 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
2011 options their own entries.
2012 (parse_option): Clarify comment.
2013 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
2014 special case. Replace if/strcmp chain for -W options with
2015 use of new OPT_* entries for them.
2016 (cpp_handle_options): Update to match.
2017 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
2018 * c-decl.c: Update call to cpp_handle_option.
2020 2002-06-07 Akim Demaille <akim@epita.fr>
2022 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
2025 2002-06-07 Jeffrey Law <law@redhat.com>
2027 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
2030 2002-06-07 H.J. Lu (hjl@gnu.org)
2032 * configure.in: Add --enable-__cxa_atexit.
2033 * configure: Regenerated.
2034 * config.in: Likewise.
2036 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
2039 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
2041 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
2043 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
2045 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
2047 2002-06-07 Jason Merrill <jason@redhat.com>
2049 * cppexp.c (num_equality_op): Use a temporary variable to work
2050 around gcc 3.0.4 bug.
2052 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
2054 * diagnostic.c (diagnostic_build_prefix): Tidy.
2056 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
2058 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
2059 scan_parameters, save_replacement_text, replacement_length): New.
2060 (scan_out_logical_line): Take a macro and save parameters if
2062 (_cpp_logical_line_trad): Update.
2063 (_cpp_create_trad_definition): Update to handle function-like
2065 * cpplex.c (new_buff): Update.
2066 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
2067 * cpphash.h: ...here.
2068 (CPP_ALIGN2, _cpp_save_parameter): New.
2069 * cppmacro.c (save_parameter): Rename, export.
2070 (parse_params): Update.
2072 2002-06-07 Andreas Jaeger <aj@suse.de>
2074 * config/mmix/mmix.c: Remove extra broken prototype for
2075 mmix_init_machine_status.
2077 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
2079 * gengtype.c: Add comments before all the routines.
2081 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
2083 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
2084 from and add t-sh64 to ${tmake_file}.
2085 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
2086 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
2087 * config/sh/t-netbsd-sh5-32: Remove.
2088 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
2090 (MULTILIB_DIRNAMES): Define.
2092 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
2094 * i386.md (and promoting splitters): Disable QI to SImode promoting
2095 when doing so changes immediate to be 32bit.
2097 * rtl.h (emit_*_scope): Declare.
2098 * emit-rtl.c (emit_*_scope): New global functions.
2099 (try_split): Copy scope.
2100 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2101 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2102 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
2103 noce_process_if_block, find_cond_trap): Copy scopes.
2104 * recog.c (peephole2_optimize): likewise.
2106 2002-06-06 Jeffrey Law <law@redhat.com>
2108 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
2110 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
2112 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
2114 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2116 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
2117 ($(docdir)/gccinstall.info): New target.
2118 (info): Depend on it.
2119 (gccinstall.dvi): New target.
2120 (dvi): Depend on it.
2121 * doc/.cvsignore: Ignore new info files.
2122 * doc/install.texi (@setfilename): Reflect new info filename.
2124 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
2126 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
2129 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
2132 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
2133 c_common_get_alias_set.
2134 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
2136 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2138 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
2140 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
2141 * avr/avr.c (avr_output_function_epilogue): Use above to determine
2143 * pa/pa.c (pa_output_function_prologue): Likewise.
2145 2002-06-05 David S. Miller <davem@redhat.com>
2147 * integrate.c (subst_constants): Handle 'B' RTL format.
2149 2002-06-05 Eric Christopher <echristo@redhat.com>
2151 * varasm.c (make_decl_rtl): Fix comment for removed
2154 2002-06-05 Eric Christopher <echristo@redhat.com>
2156 * Makefile.in: Remove missed halfpic bits.
2158 2002-06-05 Eric Christopher <echristo@redhat.com>
2160 * toplev.c: Remove half-pic.
2161 * config/mips/mips.c: Ditto.
2162 * config/mips/mips.h: Ditto. Remove unused defines.
2163 * config/mips/openbsd.h: Update comment to reflect above.
2164 * config/mips/mips.md: Remove half-pic constraints.
2165 * halfpic.h: Delete.
2168 2002-06-05 Jeffrey Law <law@redhat.com>
2170 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
2171 rejects (mem (lo_sum (reg) (unspec))), but will allow
2172 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
2174 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
2176 * cpphash.h (_cpp_create_definition): Update prototype.
2177 (_cpp_push_text_context, _cpp_create_trad_definition): New.
2178 ( cpp_lex_identifier_trad): New.
2179 (_cpp_set_trad_context): New.
2180 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
2181 * cpplib.c (SEEN_EOL): Update.
2182 (lex_macro_node): Update for -traditional.
2183 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
2184 * cppmacro.c (_cpp_create_definition): Split into
2185 create_iso_definition() and _cpp_create_trad_definition().
2186 (warn_of_redefinition): Update prototype; handle traditional
2188 (_cpp_push_text_context): New.
2189 * cpptrad.c (skip_whitespace, push_replacement_text): New.
2190 (lex_identifier): Call ht_lookup with correct start.
2191 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
2192 _cpp_set_trad_context): New.
2193 (scan_out_logical_line): Update to handle changing contexts.
2195 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
2197 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
2199 * config/sh/t-be (MULTILIB_ENDIAN): Set.
2200 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
2201 * t-sh (MULTILIB_ENDIAN): Set.
2202 (MULTILIB_OPTIONS): Use it.
2203 * t-sh64 (MULTILIB_OPTIONS): Likewise.
2204 (MULTILIB_DIRNAMES): Likewise.
2206 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
2208 * toplev.h (report_error_function): Remove.
2210 * diagnostic.h (location_t): New datatype.
2211 (text_info): Likewise.
2212 (diagnostic_info): Likewise.
2213 (output_prefix): New macro.
2214 (diagnostic_last_function_changed): Likewise.
2215 (diagnostic_set_last_function): Likewise.
2216 (diagnostic_last_module_changed): Likewise.
2217 (diagnostic_set_last_module): Likewise.
2218 (report_diagnostic): Now macro.
2219 (diagnostic_set_info): Declare.
2221 * diagnostic.c (report_problematic_module): Rename to
2222 diagnostic_repor_current_module.
2223 (set_diagnostic_context): Remove.
2224 (count_error): Rename to diagnostic_error_count.
2225 (error_function_changed): Remove.
2226 (record_last_error_function): Likewise.
2227 (error_module_changed): Likewise.
2228 (record_last_error_module): Likewise.
2229 (context_as_prefix): Rename to diagnostic_build_prefix.
2230 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
2231 (diagnostic_set_info): New function.
2233 * objc/objc-act.c: #include diagnostic.h
2234 (error_with_ivar): Adjust call to count_error.
2235 (warn_with_method): Likewise.
2236 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
2238 2002-06-05 Bob Wilson <bob.wilson@acm.org>
2240 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
2241 lang_hooks.types.make_type instead of make_node; set up
2242 __va_list_tag type decl.
2243 (xtensa_builtin_saveregs): Remove broken use of
2244 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
2245 for saved registers; add varargs alias set.
2247 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
2250 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
2251 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
2252 CPP_PREDEFINES and part of CPP_SPEC.
2253 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
2254 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
2256 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
2258 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
2260 2002-06-05 Alan Modra <amodra@bigpond.net.au>
2262 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
2264 2002-06-04 Zack Weinberg <zack@codesourcery.com>
2266 * gengtype-yacc.y: Make sure all rules end with a semicolon.
2268 2002-06-04 Bob Wilson <bob.wilson@acm.org>
2270 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
2271 typo in function prototype and include "ggc.h" header.
2273 2002-06-04 Richard Henderson <rth@redhat.com>
2275 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
2276 (print_operand) ['U']: Likewise.
2277 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
2278 (alpha_expand_unaligned_store_words): Likewise.
2279 (alpha_expand_builtin_vector_binop): Fix typo.
2280 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
2281 umulh, and cix insns.
2282 (one_arg_builtins): Add cix builtins.
2283 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
2284 (alpha_expand_builtin): Fix typo in arity.
2285 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
2286 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
2287 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
2288 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
2289 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
2290 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
2291 builtin_ctlz, builtin_ctpop): New.
2292 * doc/extend.texi (Alpha Built-in Functions): Update.
2294 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
2296 * gengtype.c (write_gc_root): Don't unnecessarily prevent
2297 global variable-length arrays being roots.
2299 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
2300 * configure.in (config_gtfiles): New variable.
2301 (all_gtfiles): Initialise from config_gtfiles.
2302 * configure: Regenerate.
2304 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
2307 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
2308 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
2309 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
2310 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
2311 win32.h (CPP_SPEC): Remove cpp_cpu.
2312 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
2313 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
2315 2002-06-04 Janis Johnson <janis187@us.ibm.com>
2317 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
2319 2002-06-04 Jeff Law <law@redhat.com.
2320 David Edelsohn <edelsohn@gnu.org>
2321 Michael Matz <matz@kde.org>
2323 * sched-int.h (struct deps): New field libcall_block_tail_insn.
2324 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
2325 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
2326 is set, then mark the current insn as being part of a libcall
2328 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
2330 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
2331 insns against the issue rate.
2333 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
2335 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
2336 * final.c (final_scan_insn): Likewise.
2337 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
2338 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
2339 * haifa-sched.c (unlink_other_notes): Likeewise.
2340 (reemit_notes): Likewise.
2341 * print-rtl.c (print_rtx): Likewise.
2342 * sched-deps (sched-analyze): Likewise.
2343 * rtl.c (note_insn_name): Likewise.
2344 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
2345 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
2348 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2350 * varasm.c (mark_constants): Handle RTX format 'B'.
2352 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
2354 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
2355 (struct cpp_context): Add traditional fields.
2356 * cppmacro.c (paste_all_tokens, push_ptoken_context,
2357 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
2358 * cpptrad.c (skip_comment, lex_identifier,
2359 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
2361 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
2363 * gbl-ctors.h: Fix formatting.
2365 * gccspec.c: Likewise.
2367 * gcov-io.h: Likewise.
2369 * ggc-common.c: Likewise.
2371 * ggc-page.c: Likewise.
2372 * ggc-simple.c: Likewise.
2373 * global.c: Likewise.
2374 * graph.h: Likewise.
2375 * gthr-dce.h: Likewise.
2377 * gthr-posix.h: Likewise.
2378 * gthr-rtems.h: Likewise.
2379 * gthr-solaris.h: Likewise.
2380 * gthr-win32.h: Likewise.
2382 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
2384 Merge from pch-branch:
2386 * gengtype.h (UNION_OR_STRUCT_P): New macro.
2387 * gengtype.c (write_gc_structure_fields): Use it.
2388 (write_gc_root): Use it here too.
2390 * gengtype.c (write_gc_structure_fields): Assume that lengths
2391 of typenames fit into an 'int'; don't pass a size_t to "%d" in
2393 (write_gc_marker_routine_for_structure): Likewise.
2394 (write_gc_types): Likewise.
2395 (write_gc_root): Likewise.
2397 * varray.h (VARRAY_CLEAR): New.
2398 (varray_clear): Prototype.
2399 * varray.c (varray_clear): New.
2400 * cselib.c (reg_values_old): New.
2401 (used_regs_old): New.
2402 (cselib_init): Use cached varrays if available to avoid
2403 generating large amounts of garbage.
2404 (cselib_finish): Don't throw away old varrays.
2406 * final.c (insn_addresses_): Move out of ifdef.
2408 * varray.c (uses_ggc): Make more varray kinds GCable.
2409 * varray.h (union varray_data_tag): Let gengtype see
2410 fields 'generic' and 'te'.
2411 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
2412 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
2413 (reg_to_stack): Don't call VARRAY_FREE.
2414 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
2415 (insn_addresses_): Use gengtype to mark.
2416 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
2417 pointers; handle generic pointers in unused union fields.
2418 (get_output_file_with_visibility): Include cselib.h,
2419 insn-addr.h in gtype-desc.c.
2420 * function.c (prologue): Use gengtype to mark.
2421 (epilogue): Likewise.
2422 (sibcall_epilogue): Likewise.
2423 * dependence.c: Include gt-dependence.h, ggc.h.
2424 (struct def_use): Use gengtype to mark.
2425 (struct loop): Likewise.
2426 (struct induction): Likewise.
2427 (struct dependence): Likewise.
2428 (def_use_chain): Likewise.
2429 (dep_chain): Likewise.
2430 (loop_chain): Likewise.
2431 (induction_chain): Likewise.
2432 (init_dependence_analysis): Don't free anything, just clear pointers.
2433 (build_def_use): Use GGC to allocate def_use.
2434 (add_loop): Use GGC to allocate loop.
2435 (find_induction_variable): Use GGC to allocate induction.
2436 (check_node_dependence): Use GGC to allocate induction, dependence.
2437 (dump_node_dependence): Don't free varrays.
2438 (end_dependence_analysis): Likewise.
2439 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
2440 (struct elt_loc_list): Likewise.
2441 (struct elt_list): Likewise.
2442 * cselib.c: Don't include obstack.h.
2443 (hash_table): Use gengtype to mark.
2444 (reg_values): Use gengtype to mark.
2445 (used_regs): Use gengtype to mark.
2446 (cselib_obstack): Delete.
2447 (cselib_startobj): Delete.
2448 (empty_vals): Mark as deletable.
2449 (empty_elt_lists): Mark as deletable.
2450 (empty_elt_loc_lists): Mark as deletable.
2451 (new_elt_list): Use GGC to allocate struct elt_list.
2452 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
2453 (clear_table): Don't delete obstack; don't unnecessarily clear
2454 deletable variables.
2455 (new_cselib_val): Use GGC to allocate struct cselib_val.
2456 (cselib_init): Don't set up obstacks. Use GGC to allocate
2458 (cselib_finish): Just clear variables, don't free anything.
2459 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
2460 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
2461 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
2462 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
2463 (gt-reg-stack.h): New rule.
2464 (gt-dependence.h): New rule.
2465 (gtype-desc.o): Add cselib.h, insn-addr.h.
2467 * varray.c: Use only necessary headers.
2468 (element_size): New.
2470 (varray_init): Take type, not size. Use GGC if appropriate.
2471 (varray_grow): Update for change to struct varray_head_tag.
2472 Use GGC if appropriate.
2473 * varray.h (struct const_equiv_data): Use gengtype.
2474 (enum varray_data_enum): New.
2475 (union varray_data_tag): Use gengtype.
2476 (struct varray_head_tag): Use gengtype. Replace size field with
2477 enum varray_data_enum.
2478 (varray_init): Update prototype.
2479 (VARRAY_SCHED_INIT): Delete.
2480 (VARRAY_*_INIT): Update for change to varray_init.
2481 (VARRAY_SCHED): Delete.
2482 (VARRAY_PUSH_SCHED): Delete.
2483 (VARRAY_TOP_SCHED): Delete.
2484 * tree.h: Update for change to length specifier.
2485 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
2486 (clone_body): Likewise.
2487 * ssa.h (ssa_definition): Use gengtype to mark.
2488 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
2489 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
2490 * rtl.h (struct rtvec_def): Update for change to length specifier.
2491 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
2492 (struct initial_value_struct): Update for change to length specifier.
2493 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
2494 (ggc_add_tree_varray_root): Delete prototype.
2495 (ggc_mark_rtx_varray): Delete prototype.
2496 (ggc_mark_tree_varray): Delete prototype.
2497 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
2498 (ggc_add_tree_varray_root): Delete.
2499 (ggc_mark_rtx_varray): Delete.
2500 (ggc_mark_tree_varray): Delete.
2501 (ggc_mark_rtx_varray_ptr): Delete.
2502 (ggc_mark_tree_varray_ptr): Delete.
2503 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
2504 (create_varray): Delete prototype.
2505 * gengtype.c (varrays): Delete.
2506 (create_varray): Delete.
2507 (adjust_field_type): Detect array of string pointers.
2508 (process_gc_options): Remove code to handle varray_type option.
2509 (set_gc_used_type): Remove TYPE_VARRAY case.
2510 (output_escaped_param): New.
2511 (write_gc_structure_fields): Use output_escaped_param on all
2512 parameters. Handle 'skip' with 'use_param' option. Handle
2513 arrays of strings. Remove TYPE_VARRAY handling.
2514 (write_gc_roots): Use boolean to detect 'length' option.
2515 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
2516 (struct_fields): Call adjust_field_type on array fields.
2517 (type): Remove VARRAY_TYPE case.
2518 (type_option): Likewise.
2519 * gengtype-lex.l: Don't consider varray_type a keyword.
2520 * function.h: Update for change to length specifier.
2521 (free_eh_status): Delete prototype.
2522 * function.c (free_after_compilation): Don't call free_eh_status.
2523 (reorder_blocks): Don't use VARRAY_FREE.
2524 * except.c (struct eh_status): Update for change to length specifier.
2525 remove varray_type specifier.
2526 (free_eh_status): Delete.
2527 * dwarf2out.c: Include gt-dwarf2out.h.
2528 (used_rtx_varray): Use gengtype to mark, move
2530 (incomplete_types): Likewise.
2531 (decl_scope_table): Likewise.
2532 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
2533 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
2534 * c-tree.h (struct lang_type): Update for change to length specifier.
2535 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
2536 * c-objc-common.c: Include gt-c-objc-common.h.
2537 (deferred_fns): Mark for gengtype.
2538 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
2539 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
2540 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
2541 (gtype-desc.o): Update dependencies.
2542 (dwarf2out.o): Add gt-dwarf2out.h.
2543 (varray.o): Update dependencies.
2544 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
2545 (gt-c-objc-common.h): New rule.
2546 (gt-dwarf2out.h): New rule.
2547 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
2549 * doc/gty.texi (GTY Options): Correct spelling.
2550 (GGC Roots): Likewise.
2551 * Makefile.in (TEXI_CPP_FILES): New.
2552 (TEXI_GCC_FILES): New.
2553 (TEXI_GCCINT_FILES): New.
2554 (TEXI_CPPINT_FILES): New.
2555 ($(docdir)/cpp.info): Use new macros.
2556 ($(docdir)/gcc.info): Likewise.
2557 ($(docdir)/gccint.info): Likewise.
2558 ($(docdir)/cppinternals.info): Likewise.
2559 (cpp.dvi): Likewise.
2560 (gcc.dvi): Likewise.
2561 (gccint.dvi): Likewise.
2562 (cppinternals.dvi): Likewise.
2564 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
2565 * doc/gccint.texi (Top): Include gty.texi.
2566 * doc/gty.texi: New file.
2568 * bitmap.c: Include ggc.h, gt-bitmap.h.
2569 (bitmap_ggc_free): New.
2570 (bitmap_elem_to_freelist): New.
2571 (bitmap_element_free): Use bitmap_elem_to_freelist.
2572 (bitmap_element_allocate): Allow use of GGC.
2573 (bitmap_clear): Use bitmap_elem_to_freelist.
2574 (bitmap_copy): Update for change to bitmap_element_allocate.
2575 (bitmap_set_bit): Likewise.
2576 (bitmap_operation): Update for changes elsewhere.
2577 (bitmap_initialize): Allow to create bitmaps that will use GGC.
2578 * bitmap.h (struct bitmap_element_def): Use gengtype.
2579 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
2580 (bitmap_initialize): Add extra parameter.
2581 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
2582 (BITMAP_ALLOCA): Delete.
2583 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
2584 (BITMAP_GGC_ALLOC): New.
2585 * Makefile.in (gtype-desc.o): Add bitmap.h.
2586 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
2587 (GTFILES): Add bitmap.c.
2588 (gt-bitmap.h): New rule.
2589 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
2590 * basic-block.h: Update for changes to bitmap_initialize.
2591 * except.c (exception_handler_label_map): Move into...
2592 (struct eh_status): Here.
2593 (struct eh_region): Make 'aka' GCable.
2594 (free_eh_status): Don't need to specially handle
2595 exception_handler_label_map.
2596 (add_ehl_entry): Update for changes to exception_handler_label_map.
2597 (find_exception_handler_labels): Likewise.
2598 (remove_exception_handler_label): Likewise.
2599 (maybe_remove_eh_handler): Likewise.
2600 (for_each_eh_label): Likewise.
2601 (remove_eh_handler): Allocate 'aka' using GGC.
2602 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
2603 to list of includes.
2605 * gengtype.c (write_gc_marker_routine_for_structure): Name
2606 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
2607 (write_gc_types): Arrange for the tests with NULL to be inlined.
2608 (write_gc_roots): Update uses of procedure pointers.
2609 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
2611 * Makefile.in (explow.o): Add dependency on gt-explow.h.
2612 (sdbout.o): Add dependency on gt-sdbout.h.
2614 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
2615 (mem_attrs_htab): Likewise.
2616 (init_emit_once): Don't call ggc_add_deletable_htab.
2617 * fold-const.c (size_htab): Use gengtype to clear unused entries.
2618 (size_int_type_wide): Don't call ggc_add_deletable_htab.
2619 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
2620 parameters, use them, change callers.
2621 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
2622 (write_gc_roots): Handle 'if_marked' option.
2623 (main): Don't need to call set_gc_used_type any more.
2624 * ggc.h (ggc_htab_marked_p): Delete.
2625 (ggc_htab_mark): Delete.
2626 (struct ggc_cache_tab): New.
2627 (gt_ggc_cache_rtab): New declaration.
2628 * ggc-common.c (struct d_htab_root): Delete.
2629 (d_htab_roots): Delete.
2630 (ggc_add_deletable_htab): Delete.
2631 (ggc_htab_delete): Handle new htab-deleting mechanism.
2632 (ggc_mark_roots): Use new htab-deleting mechanism.
2633 * tree.c (type_hash_table): Use gengtype to clear unused entries.
2635 (init_obstacks): Don't call ggc_add_deletable_htab.
2637 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
2638 (struct hashed_entry): Likewise.
2639 (nst_method_hash_list): Likewise.
2640 (cls_method_hash_list): Likewise.
2641 (HASH_ALLOC_LIST_SIZE): Delete.
2642 (ATTR_ALLOC_LIST_SIZE): Delete.
2643 * objc/objc-act.c (hash_init): Use ggc to allocate
2644 nst_method_hash_list, cls_method_hash_list.
2645 (hash_enter): Use ggc to allocate; allocate one entry at a time.
2646 (hash_add_attr): Likewise.
2647 (ggc_mark_hash_table): Delete.
2648 (objc_act_parse_init): Delete.
2649 (objc_init): Delete reference to objc_act_parse_init.
2650 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
2651 obstack.h. Replace references to 'struct hash_table' with htab_t.
2652 (struct symbol_hash_entry): Replace hash header with key field.
2653 (struct file_hash_entry): Replace hash header with key field.
2654 (struct demangled_hash_entry): Replace hash header with key field.
2655 (hash_string_eq): New.
2656 (hash_string_hash): New.
2657 (symbol_hash_newfunc): Delete.
2658 (symbol_hash_lookup): Modify to use htab_t.
2659 (file_hash_newfunc): Delete.
2660 (file_hash_lookup): Modify to use htab_t.
2661 (demangled_hash_newfunc): Delete.
2662 (demangled_hash_lookup): Modify to use htab_t.
2663 (tlink_init): Modify to use htab_t.
2666 * ggc.h: Delete forward structure declarations.
2667 Delete prototypes for deleted functions.
2668 * ggc-common.c: Don't include hash.h.
2669 (ggc_add_tree_hash_table_root): Delete.
2670 (ggc_mark_tree_hash_table_entry): Delete.
2671 (ggc_mark_tree_hash_table): Delete.
2672 (ggc_mark_tree_hash_table_ptr): Delete.
2673 * gengtype.c (write_gc_structure_fields): Allow param_is option.
2674 (write_gc_marker_routine_for_structure): Use visibility of
2675 the parameter if there is one.
2676 * function.c: Replace hash.h with hashtab.h. Replace references
2677 to 'struct hash_table *' with htab_t.
2678 (struct insns_for_mem_entry): Include a plain key.
2679 (fixup_var_refs_insns_with_hash): Update to use htab_t.
2680 (insns_for_mem_newfunc): Delete.
2681 (insns_for_mem_hash): Update to use htab_t.
2682 (insns_for_mem_comp): Likewise.
2683 (insns_for_mem_walk): Likewise.
2684 * c-lang.c: Include ggc.h.
2685 * Makefile.in (OBJS): Remove hash.o.
2686 (c-lang.o): Add GGC_H.
2687 (COLLECT2_OBJS): Remove hash.o.
2688 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
2689 (ggc-common.o): Remove hash.h.
2690 (function.o): Remove hash.h, add HASHTAB_H.
2691 (genautomata.o): Remove hash.h, add HASHTAB_H.
2693 * varasm.c (mark_const_str_htab_1): Delete.
2694 (mark_const_str_htab): Delete.
2695 (const_str_htab_del): Delete.
2696 (const_str_htab): Use gengtype to mark.
2697 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
2699 * tree.c (mark_tree_hashtable_entry): Delete.
2700 (mark_tree_hashtable): Delete.
2701 * tree.h (mark_tree_hashtable): Delete prototype.
2702 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
2703 (ggc_mark): Likewise.
2705 (htab_create_ggc): New.
2706 * ggc-common.c (ggc_calloc): New.
2707 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
2708 (struct type): Add param_struct structure.
2709 * gengtype.c (param_structs): New.
2710 (adjust_field_type): Handle param_is option.
2711 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
2712 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
2713 (write_gc_structure_fields): Add new PARAM parameter. Update
2714 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
2715 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
2716 Use it to generate function name. Update callers.
2717 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
2719 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
2721 (main): Define PTR as pointer-to-scalar. Don't specially
2722 mark deferred_string or ehl_map_entry.
2723 * gengtype-yacc.y (PARAM_IS): Add new token.
2724 (externstatic): Use adjust_field_type.
2725 (type_option): Add PARAM_IS.
2726 * gengtype-lex.l: Add rule for typedef of function pointers.
2727 Add rule for PARAM_IS.
2728 (IWORD): Add size_t.
2729 * except.c (exception_handler_label_map): Use gengtype to mark.
2730 (type_to_runtime_map): Likewise.
2731 (mark_ehl_map_entry): Delete.
2732 (mark_ehl_map): Delete.
2733 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
2734 (t2r_mark_1): Delete.
2736 * Makefile.in (gtype-desc.o): Correct dependencies.
2737 (GTFILES): Add hashtab.h.
2738 (genautomata.o): Actually uses hashtab.h.
2740 * Makefile.in (stringpool.o): Add $(GGC_H).
2741 (dwarf2asm.o): Likewise.
2742 (GTFILES): Add hashtable.h.
2743 * c-common.h (struct c_common_identifier): Use gengtype.
2744 * c-decl.h (c_mark_tree): Delete.
2745 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
2746 * c-tree.h (struct lang_identifier): Use gengtype.
2747 (union lang_tree_node): New.
2748 (c_mark_tree): Delete prototype.
2749 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
2751 * gengtype-lex.l (IWORD): Allow 'bool'.
2753 * gengtype-yacc.y (ALIAS): New token.
2754 (type_option): New rule.
2755 (option): Use type_option.
2756 * gengtype.c (process_gc_options): New.
2757 (set_gc_used_type): Use it.
2758 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
2759 Add new variable 't' to hold the type of the field being processed.
2760 Add more error checking. Use UNION_P when looking at 'desc' option.
2761 Handle language-specific structures containing other
2762 language-specific structures.
2763 (write_gc_types): Handle 'ptr_alias' option.
2764 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
2765 * ggc-common.c (ggc_pending_trees): Delete.
2766 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
2767 (ggc_mark_trees): Delete.
2768 (gt_ggc_m_tree_node): Delete.
2769 * ggc.h (ggc_pending_trees): Delete.
2770 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
2771 * hashtable.h (ht_identifier): Use gengtype.
2772 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
2773 * langhooks.h (struct lang_hooks): Delete mark_tree.
2774 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
2776 * system.h: Poison LANG_HOOKS_MARK_TREE.
2777 * tree.c (tree_node_structure): New.
2778 * tree.h (struct tree_common): Use gengtype.
2779 (struct tree_int_cst): Likewise.
2780 (struct tree_real_cst): Likewise.
2781 (struct tree_string): Likewise.
2782 (struct tree_complex): Likewise.
2783 (struct tree_vector): Likewise.
2784 (struct tree_identifier): Likewise.
2785 (struct tree_list): Likewise.
2786 (struct tree_vec): Likewise.
2787 (struct tree_exp): Likewise.
2788 (struct tree_block): Likewise.
2789 (struct tree_type): Likewise.
2790 (struct tree_decl): Likewise.
2791 (enum tree_structure_enum): New.
2792 (union tree_node): Use gengtype, with an alias.
2793 (tree_node_structure): Prototype.
2794 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
2796 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
2797 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
2798 to LANG_HOOKS_FUNCTION_FINAL.
2799 * Makefile.in (GTFILES): Add bitmap.h.
2800 * except.c (struct eh_region): Mark field 'aka' to be skipped.
2802 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
2803 (alpha_init_machine_status): Give proper type.
2804 * Makefile.in (c-lang.o): Depend on gtype-c.h.
2805 (optabs.o): Depend on gt-optabs.h.
2806 (GTFILES): Add optabs.o.
2807 (gt-optabs.h): Add rule.
2808 * optabs.c: Include gt-optabs.h.
2810 * gengtype.c (set_gc_used_type): Correct some errors in last change.
2811 (write_gc_structure_fields): If a field which should be NULL is
2813 * c-pragma.c: Move struct align_stack and variable alignment_stack
2816 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
2817 * config/xtensa/xtensa.c: Include gt-cris.h.
2818 (struct machine_function): Use gengtype to mark.
2819 * config/mmix/mmix.h (struct machine_function): Use gengtype
2821 * config/cris/t-cris: Add dependencies for gt-cris.h.
2822 * config/cris/cris.c: Include gt-cris.h.
2823 (struct machine_function): Use gengtype to mark.
2824 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
2826 * doc/tm.texi (Per-Function Data): Delete references to
2827 mark_machine_status.
2828 * config/ia64/ia64.c (ia64_override_options): Don't set
2829 mark_machine_status.
2830 * config/i386/i386.c (override_options): Likewise.
2831 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
2832 * config/arm/arm.c (arm_init_expanders): Likewise.
2833 * config/alpha/alpha.c (override_options): Likewise.
2834 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
2835 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
2836 (write_gc_structure_fields): Don't handle 'really' option.
2837 Handle 'maybe_null' option.
2838 (write_gc_types): Handle 'maybe_null' option.
2839 * function.h (struct function): Don't use "really".
2840 (mark_machine_status): Delete declaration.
2841 (mark_lang_status): Delete declaration.
2842 (gt_ggc_mr_machine_function): Delete prototype.
2843 (gt_ggc_mr_language_function): Delete prototype.
2844 * function.c (mark_machine_status): Delete.
2845 (mark_lang_status): Delete.
2846 (gt_ggc_mr_machine_function): Delete.
2847 (gt_ggc_mr_language_function): Delete.
2848 * c-tree.h (mark_c_function_context): Delete prototype.
2849 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
2850 * c-decl.c (struct language_function): Rename from struct
2851 c_language_function. Update uses. Use gengtype to mark.
2852 (mark_c_function_context): Delete.
2853 * c-common.h (struct c_language_function): Rename from struct
2855 (mark_stmt_tree): Delete prototype.
2856 (c_mark_lang_decl): Delete prototype.
2857 (mark_c_language_function): Delete prototype.
2858 * c-common.c (mark_stmt_tree): Delete.
2859 (c_mark_lang_decl): Delete.
2860 (mark_c_language_function): Delete.
2862 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
2863 (lang_bitmap): New typedef. Use where appropriate.
2864 (struct type): Add gc_used field, lang_struct field.
2865 (UNION_P): New macro.
2866 (new_structure): New prototype.
2867 (find_structure): Remove 'pos' parameter. Change all callers.
2868 * gengtype-lex.l: Update for changes to find_structure.
2869 * gengtype-yacc.y (typedef_struct): Use new_structure.
2870 (yacc_ids): Suppress warning.
2871 (type): Use new_structure.
2872 * gengtype.c (string_type): Update for changes to struct type.
2873 (find_structure): Just find a structure, don't worry about
2875 (new_structure): New.
2876 (note_yacc_type): Use new_structure.
2877 (set_gc_used_type): New.
2879 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
2880 (write_gc_types): Handle TYPE_LANG_STRUCT.
2881 (write_gc_marker_routine_for_structure): New.
2882 (main): Call set_gc_used. Add some calls to set_gc_used_type
2883 for places where GCC doesn't use gengtype properly yet.
2884 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
2885 (gt_ggc_m_tree_node): Likewise.
2887 * varasm.c (copy_constant): Call expand_constant if we hit
2888 something we can't recognise.
2890 * ggc-common.c (ggc_mark_rtvec_children): Delete.
2891 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
2892 (lang_mark_false_label_stack): Delete.
2893 * rtl.h (struct rtvec_def): Use gengtype to mark.
2894 * ggc.h (ggc_mark_rtvec): Delete.
2895 (gt_ggc_m_rtvec_def): Delete.
2896 (ggc_mark_nonnull_tree): Delete.
2897 (ggc_mark_rtvec_children): Delete prototype.
2898 (lang_mark_false_label_stack): Delete declaration.
2900 * gengtype.h (note_yacc_type): Add prototype.
2901 * gengtype.c (note_yacc_type): New function.
2902 * gengtype-lex.l: Add lexer support for yacc files.
2903 * gengtype-yacc.y (start): Extract union from yacc files.
2904 (yacc_union): New rule.
2905 (yacc_typematch): New rule.
2906 (yacc_ids): New rule.
2907 (enum_items): Tweak for efficiency.
2908 (optionseq): Likewise.
2910 * c-common.h (struct language_function): Use gengtype.
2911 (struct c_lang_decl): Likewise.
2912 * c-tree.h (struct lang_decl): Likewise.
2913 (struct lang_type): Likewise.
2914 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
2915 tree language substructures.
2917 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
2919 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
2921 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
2923 * stmt.c (struct nesting): Add discriminator. Use gengtype to
2924 mark. Remove 'data.block.cleanup_ptr' field.
2925 (struct stmt_status): Use usual technique to mark struct nesting.
2926 (gt_ggc_mr_nesting_cond): Delete.
2927 (gt_ggc_mr_nesting_loop): Delete.
2928 (gt_ggc_mr_nesting_block): Delete.
2929 (gt_ggc_mr_nesting_case_stmt): Delete.
2930 (expand_start_cond): Set discriminator.
2931 (expand_start_loop): Likewise.
2932 (expand_start_null_loop): Likewise.
2933 (expand_start_bindings_and_block): Set discriminator. Don't set
2935 (expand_decl_cleanup): Replace 'cleanup_ptr' with
2936 &thisblock->data.block.cleanups.
2937 (expand_start_case): Set discriminator.
2938 (expand_start_case_dummy): Set discriminator.
2940 * ggc-callbacks.c: Remove.
2942 * gengtype.h (struct type): Add 'u.s.bitmap' field.
2943 (find_structure): Add 'pos' parameter.
2944 * gengtype-lex.l: Update callers to find_structure.
2945 * gengtype-yacc.y: Likewise.
2946 * gengtype.c (find_structure): Allow for structures to be defined
2947 in multiple language backends.
2948 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
2949 (counter): Rename to gc_counter.
2950 (write_gc_structure_fields): Fail when writing out fields for
2951 an incomplete structure. Ignore arrays of scalars. Handle
2953 (write_gc_types): Reset counter for each procedure written.
2955 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
2956 (free_case_nodes): Delete.
2957 (expand_end_case_type): Delete call to free_case_nodes.
2959 * Makefile.in (cselib.o): Include gt-<filename>.h.
2961 (profile.o): Likewise.
2962 (alias.o): Likewise.
2963 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
2964 alphabetize backend files.
2965 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
2966 * alias.c: Use gengtype for roots.
2967 * c-common.h (struct stmt_tree_s): Use gengtype.
2968 * c-decl.c: Use gengtype for roots.
2969 * cselib.c: Use gengtype for roots.
2970 * expr.c: Use gengtype for roots.
2971 * fold-const.c: Use gengtype for roots.
2972 * gcse.c: Use gengtype for roots.
2973 * gengtype-lex.l: Handle typedefs of function types.
2974 Allow for empty array bounds.
2975 Allow processing to stop on initialisers.
2976 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
2977 (semiequal): New rule.
2978 * gengtype.c (create_file): Tidy output files.
2979 (get_output_file_with_visibility): Fix paren warning. Fix bug
2980 involving multiple input files mapping to one output file.
2981 (write_gc_structure_fields): Skip arrays of scalars.
2982 (write_gc_types): Tidy output files.
2983 (write_gc_root): New function.
2984 (write_gc_roots): Fix bugs, add support for roots that are
2986 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
2987 (ggc_mark_tree_ptr): Delete.
2988 (ggc_add_rtx_root): Delete.
2989 (ggc_add_tree_root): Delete.
2990 (ggc_del_root): Delete.
2991 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
2992 allocate struct initial_value_struct.
2993 * profile.c: Use gengtype for roots.
2994 * sdbout.c: Use gengtype for roots.
2995 * varasm.c (mark_weak_decls): Delete unused prototype.
2996 (mark_const_hash_entry): Delete unused function.
2997 * config/darwin-protos.h: Use gengtype for roots.
2998 (machopic_add_gc_roots): Delete.
2999 * config/arm/arm.c: Use gengtype for roots.
3000 * config/arm/arm.h: Use gengtype for roots.
3001 * config/c4x/c4x-protos.h: Use gengtype for roots.
3002 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
3003 * config/d30v/d30v-protos.h: Use gengtype for roots.
3004 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
3005 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
3006 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
3007 * config/ia64/ia64-protos.h: Use gengtype for roots.
3008 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
3009 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
3010 * config/m68hc11/m68hc11.c (z_reg): Make global.
3011 (z_reg_qi): Make global.
3012 (m68hc11_add_gc_roots): Delete.
3013 * config/mcore/mcore-protos.h: Use gengtype for roots.
3014 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
3015 * config/mips/mips.c (mips_add_gc_roots): Delete.
3016 * config/mips/mips.h: Use gengtype for roots.
3017 * config/mmix/mmix.c (override_options): Use gengtype for roots.
3018 * config/mmix/mmix.h: Use gengtype for roots.
3019 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
3020 * config/mn10200/mn10200.h: Use gengtype for roots.
3021 * config/pa/pa.c: Use gengtype for roots, marking.
3022 (struct deferred_plabel): Use GGC, gengtype.
3023 (pa_add_gc_roots): Delete.
3024 (mark_deferred_plabels): Delete.
3025 * config/pj/pj-protos.h: Use gengtype for roots.
3026 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
3027 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
3028 machopic_add_gc_roots.
3029 * config/rs6000/rs6000.h: Use gengtype for roots.
3030 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
3031 (gt-darwin.h): Add rule.
3032 * config/sh/sh.c: Use gengtype for roots.
3033 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
3034 (gt-sh.h): Add rule.
3035 * config/sparc/sparc.c: Use gengtype for roots.
3036 (sparc_add_gc_roots): Delete.
3037 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
3038 (mark_ultrasparc_pipeline_state): Delete.
3039 * config/sparc/sparc.h: Use gengtype for roots.
3041 * Makefile.in (c-parse.o): Update dependencies.
3042 (c-common.o): Likewise.
3043 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
3044 Add dependencies for the files they generate.
3045 * c-common.c: Replace ggc_add_* uses with GTY annotations.
3046 * c-common.h: Likewise.
3047 * c-decl.c: Likewise.
3048 (gt_ggc_mp_binding_level): Delete.
3049 * c-lang.c: Include gtype-c.h.
3050 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
3052 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
3053 (gt_ggc_mp_align_stack): Delete.
3054 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
3055 * function.c: Replace ggc_add_* uses with GTY annotations.
3056 (gt_ggc_mp_function): Delete.
3057 * function.h: Replace ggc_add_* uses with GTY annotations.
3058 * gengtype.c (lang_names): New.
3059 (NUM_BASE_FILES): New.
3060 (open_base_files): Create language base files.
3062 (get_file_basename): New.
3063 (get_base_file_bitmap): New.
3064 (get_output_file_with_visibility): Rename from get_output_file.
3065 Add more mappings for various C/Objc filenames.
3066 (finish_root_table): New.
3067 (write_gc_roots): Handle dependencies and scoping properly.
3068 * gengtype.h: Add prototypes for new functions.
3069 * ggc-common.c (struct deletable_root): Delete.
3070 (deletables): Delete.
3071 (ggc_add_deletable_root): Delete.
3072 (ggc_mark_roots): No need to deal with deleted functionality.
3073 * ggc.h (ggc_add_deletable_root): Delete prototype.
3074 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
3075 (gtype-objc.h): Add rule to create.
3076 * objc/config-lang.in (gtfiles): New.
3077 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
3078 ggc_add_* with GTY markers. Include gtype-objc.h.
3079 (ggc_mark_imp_list): Delete.
3080 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
3081 * objc/objc-lang.c: Random Whitespace Change.
3083 * except.h (exception_handler_labels): Delete.
3084 (get_exception_handler_labels): New.
3085 * except.c (exception_handler_labels): Delete.
3086 (struct eh_status): Add exception_handler_labels field.
3087 (doing_eh): Don't add exception_handler_labels as root.
3088 (free_eh_status): Don't need to free exception_handler_labels.
3089 (get_exception_handler_labels): New.
3090 (find_exception_handler_labels): Update for move of
3091 exception_handler_labels.
3092 (remove_exception_handler_label): Likewise.
3093 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
3094 * jump.c (rebuild_jump_labels): Likewise.
3095 * loop.c (find_and_verify_loops): Likewise.
3096 * sched-rgn.c (is_cfg_nonregular): Likewise.
3098 * gengtype.c (write_gc_structure_fields): Handle variable-length
3101 * varasm.c (struct weak_syms): Use GGC, gengtype.
3102 (mark_weak_decls): Delete.
3103 (weak_decls): Likewise.
3104 (add_weak): Likewise.
3105 (remove_from_pending_weak_list): Likewise.
3106 (init_varasm_once): Likewise.
3108 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
3109 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
3110 stor-layout.c, regclass.c, and lists.c.
3111 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
3112 gt-regclass.h and gt-lists.h on s-gtype.
3113 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
3114 * except.c: Use gengtype for roots.
3115 * explow.c: Use gengtype for roots. Include gt-explow.h.
3116 * expr.h (init_stor_layout_once): Delete prototype.
3117 * function.c: Use gengtype for roots.
3118 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
3119 * gengtype-yacc.y (start): Can also be an externstatic.
3120 (externstatic): New production.
3121 (struct_fields): Correct array bounds inversion for 2-d arrays.
3122 * gengtype.c (variables): New variable.
3123 (note_variable): New function.
3124 (get_output_file): Include libfuncs.h into gtype-desc.c.
3125 (get_output_file_name): New function.
3126 (write_gc_structure_fields): Suppress warnings.
3127 (write_gc_types): Make static.
3128 (put_mangled_filename): New function.
3129 (write_gc_roots): New function.
3130 (main): Call write_gc_roots.
3131 * gengtype.h (note_variable): Prototype.
3132 (get_output_file_name): Prototype.
3133 (write_gc_types): Delete prototype.
3134 * ggc.h: Clean up unnecessary structure predefinitions.
3135 (struct ggc_root_tab): Define.
3136 (gt_ggc_m_rtx_def): Make function, not macro.
3137 (gt_ggc_m_tree_node): Likewise.
3138 * libfuncs.h: Use gengtype for roots.
3139 * lists.c: Use gengtype for roots. Include gt-lists.h.
3140 (init_EXPR_INSN_LIST_cache): Delete.
3141 * optabs.c: Use gengtype for roots.
3142 (gt_ggc_mp_optab): Delete.
3143 * optabs.h: Use gengtype for roots.
3144 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
3145 * rtl.h: Use gengtype for roots.
3146 (init_EXPR_INSN_LIST_cache): Delete prototype.
3147 * stor-layout.c: Use gengtype for roots.
3148 Include gt-stor-layout.h.
3149 (init_stor_layout_once): Delete.
3150 * toplev.c: Use gengtype for roots. Delete calls to deleted
3152 * tree.c: Use gengtype for roots.
3153 * tree.h: Use gengtype for roots.
3154 * varasm.c: Use gengtype for roots.
3156 * Makefile.in (GTFILES): Add @all_gtfiles@.
3157 * configure: Regenerate.
3158 * configure.in: Construct all_gtfiles from the gtfiles definitions
3160 * gengtype-yacc.y (type): Warn about duplicate structure names.
3161 * gengtype.c (get_output_file): Handle .c files in language
3164 * Makefile.in (GTFILES): Run gengtype on all the config files
3165 and on the target .c file.
3166 * except.c (mark_eh_region): Delete.
3167 (init_eh_for_function): Use GGC on struct eh_status.
3168 (mark_eh_status): Delete.
3169 (free_eh_status): Use GGC.
3170 (expand_eh_region_start): Use GGC to
3171 (collect_eh_region_array): Allocate last_region_number using GGC.
3172 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
3173 (remove_eh_handler): Let GGC free struct eh_region.
3174 (add_call_site): Use GGC to reallocate call_site_record array.
3175 * function.c (init_machine_status): Update calling sequence.
3176 (mark_machine_status): Likewise.
3177 (mark_lang_status): Likewise.
3178 (prepare_function_start): Update init_machine_status call.
3179 (mark_function_status): Delete.
3180 (maybe_mark_struct_function): Delete.
3181 (ggc_mark_struct_function): Delete.
3182 (gt_ggc_mp_function): New.
3183 (gt_ggc_mr_machine_function): New.
3184 (gt_ggc_mr_language_function): New.
3185 (init_function_once): Use canonical names.
3186 * function.h (struct function): Use gengtype.
3187 (init_machine_status): Return the structure.
3188 (mark_machine_status): Take a 'void *'.
3189 (mark_lang_status): Likewise.
3190 * ggc-common.c (ggc_mark_trees): Use canonical name for
3191 ggc_mark_struct_function.
3192 * tree.h (ggc_mark_struct_function): Delete prototype.
3193 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
3194 (alpha_init_machine_status): Likewise.
3195 (override_options): Use canonical name for alpha_mark_machine_status.
3196 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
3197 * config/arm/arm.h (struct machine_function): Use gengtype.
3198 * config/arm/arm.c (arm_mark_machine_status): Delete.
3199 (arm_init_machine_status): Update calling sequence.
3200 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
3201 * config/cris/cris.c (cris_init_machine_status): Update
3203 * config/d30v/d30v.h (struct machine_function): Use gengtype.
3204 * config/d30v/d30v.c (d30v_init_machine_status): Update
3206 (d30v_mark_machine_status): Delete.
3207 * config/i386/i386.c: Include gt-i386.h.
3208 (struct machine_function): Use gengtype.
3209 (ix86_init_machine_status): Update calling sequence.
3210 (ix86_mark_machine_status): Delete.
3211 (override_options): Use canonical namke for ix86_mark_machine_status.
3212 * config/ia64/ia64.h (struct machine_function): Use gengtype.
3213 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
3215 (ia64_mark_machine_status): Delete.
3216 (ia64_override_options): Use canonical name for
3217 ia64_mark_machine_status.
3218 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
3220 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
3221 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3222 * gengtype.c (get_output_file): Fix warning.
3223 (main): Add prototype to suppress warning.
3224 * tree.c: Remove tree_hash_mark prototype.
3226 * tree.h (init_stmt): Delete prototype.
3227 * toplev.c (lang_independent_init): Don't call init_stmt.
3228 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
3229 (stmt_obstack): Delete.
3230 (POPSTACK): No need to free 'struct nesting'.
3231 (gt_ggc_mr_nesting_cond): Use canonical names.
3232 (gt_ggc_mr_nesting_loop): Use canonical names.
3233 (gt_ggc_mr_nesting_block): Use canonical names.
3234 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
3235 (mark_stmt_status): Delete.
3236 (init_stmt): Delete.
3237 (clear_last_expr): Clear both last_expr_type and last_expr_value.
3238 Use it everywhere that last_expr_type was cleared.
3239 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
3240 (zap_lists): Delete.
3241 * ggc.h (ggc_add_deletable_root): Prototype.
3242 (mark_stmt_status): Remove prototype.
3243 * ggc-common.c (ggc_add_deletable_root): New.
3244 (ggc_mark_roots): Handle deletable roots.
3245 * function.c (ggc_mark_struct_function): Use canonical name
3246 for mark_stmt_status.
3247 * emit-rtl.c (free_sequence_stack): New.
3248 (start_sequence): Use a freelist for sequences.
3249 (end_sequence): Likewise.
3250 (init_emit_once): Add free_sequence_stack as a deleteable root.
3251 * c-pragma.c Include gt-c-pragma.h.
3252 (struct align_stack): Use gengtype.
3253 (push_alignment): Use GGC for struct align_stack.
3254 (mark_align_stack): Delete.
3255 (gt_ggc_mp_align_stack): New.
3256 (init_pragma): Use canonical name for mark_align_stack.
3257 * c-decl.c: Include gt-c-decl.h.
3258 (struct binding_level): Use gengtype.
3259 (make_binding_level): Use GGC; handle the freelist here.
3260 (pop_binding_level): New.
3261 (pushlevel): Move code into make_binding_level.
3262 (push_label_level): Likewise.
3263 (poplevel): Move code into pop_binding_level.
3264 (pop_label_level): Likewise.
3265 (mark_binding_level): Delete.
3266 (gt_ggc_mp_binding_level): New.
3267 (c_init_decl_processing): Use canonical name for mark_binding_level.
3268 Add free_binding_level as deletable root.
3269 (mark_c_function_context): Use canonical name for mark_binding_level.
3270 * Makefile.in (c-decl.o): Add gt-c-decl.h.
3271 (c-pragma.o): Add gt-c-pragma.h.
3272 (GTFILES): Add c-decl.c and c-pragma.c.
3273 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
3275 * tree.c (struct type_hash): Use gengtype.
3276 (init_obstacks): Use canonical name for type_hash_mark.
3277 (type_hash_mark): Delete.
3279 * rtl.h (struct mem_attrs): Use gengtype.
3280 * optabs.h (struct optab): Use gengtype.
3281 * optabs.c (expand_binop): Squish signed/unsigned warning.
3282 (mark_optab): Make local, use canonical name, use autogenerated
3284 (init_optabs): Use canonical name for mark_optab.
3285 (new_optab): Use GGC to allocate optabs.
3286 * ggc.h: Delete mark_optab prototype.
3287 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
3288 mem_attrs marker procedure.
3289 * gengtype.c (get_output_file): Include headers in gtype-desc.c
3290 explicitly rather than deducing them from file names.
3291 (write_gc_structure_fields): Handle arrays of structures.
3292 (main): Return non-zero exit code if errors occur during output.
3293 * emit-rtl.c (mem_attrs_mark): Delete.
3294 (init_emit_once): Use canonical name for mem_attrs marker procedure.
3295 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
3296 (tree.o): Depend on gt-tree.h.
3297 (GTFILES): Add rtl.h, optabs.h, tree.c.
3298 (gt-tree.h): Add it to s-gtype rule.
3300 * .cvsignore: Ignore gengtype flex/bison generated files.
3301 * Makefile.in (GGC_H): Add gtype-desc.h.
3302 (OBJS): Add gtype-desc.o.
3303 (GEN): Add gengtype.
3304 (STAGESTUFF): Add gengtype.
3305 (varasm.o): Add gt-varasm.h.
3306 (stmt.o): Add gt-stmt.h.
3307 (except.o): Add gt-except.h.
3308 (integrate.o): Add gt-integrate.h.
3310 Add new rules for new files.
3311 * configure: Regenerate.
3312 * configure.in: Correct defaults.h paths.
3313 * emit-rtl.c (mark_sequence_stack): Delete.
3314 (mark_emit_status): Delete.
3315 (start_sequence): Allocate sequence structures using GGC.
3316 (end_sequence): Allocate sequence structures using GGC.
3317 * except.c: Use gengtype for various structures. Include
3319 * expr.c (mark_expr_status): Delete.
3320 * function.c: Use gengtype for various structures. Include
3322 (mark_function_status): Use standard gt_ggc names for marker functions.
3323 (ggc_mark_struct_function): Likewise.
3324 * function.h: Use gengtype for various structures.
3325 * gengtype-lex.l: New file.
3326 * gengtype-yacc.y: New file.
3327 * gengtype.c: New file.
3328 * gengtype.h: New file.
3329 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
3330 the standard names. Remove some now-unnecessary prototypes.
3331 * integrate.c: Use gengtype for various structures. Include
3333 (mark_hard_reg_initial_vals): Delete.
3334 * integrate.h (mark_hard_reg_initial_vals): Delete.
3335 * stmt.c: Use gengtype for various structures. Include
3337 (mark_case_node): Delete.
3338 (mark_goto_fixup): Delete.
3339 (mark_stmt_status): Use standard gt_ggc names for marker functions.
3340 * system.h: Define GTY to empty. In flex/bison files,
3341 don't poison malloc or realloc, instead just define them to
3342 xmalloc and xrealloc.
3343 * varasm.c: Use gengtype for various structures. Include
3344 gt-varasm.h. Use standard gt_ggc names for marker functions.
3345 (mark_pool_constant): Delete.
3346 (mark_varasm_status): Delete.
3347 (decode_rtx_const): #if 0 out non-typesafe hack.
3349 * function.h (free_lang_status): Mark as obsolete.
3350 * function.c (free_lang_status): Mark as obsolete.
3351 * c-decl.c (push_c_function_context): Use GC to allocate and free
3352 struct language_function.
3353 (pop_c_function_context): Likewise.
3354 * c-common.c (mark_c_language_function): Mark struct
3357 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
3358 Document that the machine_function structures must be allocated
3359 using GC. Update mark_machine_status documentation.
3360 * function.h: Don't declare free_machine_status.
3361 * function.c (free_machine_status): Don't define.
3362 (free_after_compilation): Don't call free_machine_status.
3363 (ggc_mark_struct_function): Mark f->machine. Call
3364 mark_machine_status only on non-NULL pointers.
3365 * system.h: Poison free_machine_status.
3366 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
3367 struct machine_function.
3368 (xtensa_free_machine_status): Delete.
3369 (override_options): Don't set free_machine_status.
3370 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
3371 free_machine_status.
3372 (rs6000_init_machine_status): Use GC on struct machine_function.
3373 (rs6000_free_machine_status): Delete.
3374 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
3376 (ia64_mark_machine_status): Likewise.
3377 (ia64_free_machine_status): Delete.
3378 (ia64_override_options): Don't set free_machine_status.
3379 * config/i386/i386.c (override_options): Don't set
3380 free_machine_status.
3381 (ix86_init_machine_status): Use GC on struct machine_function.
3382 (ix86_mark_machine_status): Likewise.
3383 (ix86_free_machine_status): Delete.
3384 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
3386 (d30v_mark_machine_status): Likewise.
3387 (d30v_free_machine_status): Delete.
3388 (d30v_init_expanders): Don't set free_machine_status.
3389 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
3391 (arm_init_machine_status): Likewise.
3392 (arm_free_machine_status): Delete.
3393 (arm_init_expanders): Don't set free_machine_status.
3394 * config/alpha/alpha.c (override_options): Don't set
3395 free_machine_status.
3396 (alpha_init_machine_status): Use GC on struct machine_function.
3397 (alpha_mark_machine_status): Likewise.
3398 (alpha_free_machine_status): Delete.
3400 * varasm.c (compare_constant): Fix typo.
3402 * varasm.c: Don't include obstack.h.
3403 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
3404 (struct rtx_const): Give substructures names, improve formatting.
3405 (struct constant_descriptor): Delete.
3406 (struct constant_descriptor_tree): New, based on constant_descriptor.
3407 (const_hash_table): Is a hash table of trees.
3408 (mark_const_hash_entry): Is used for hashes of trees. Mark
3409 constant_descriptor_tree structure.
3410 (mark_const_str_htab_1): Mark deferred_string structure.
3411 (compare_constant): Rewrite to compare trees.
3412 (compare_constant_1): Delete.
3413 (record_constant): Delete.
3414 (record_constant_1): Delete.
3415 (output_constant_def): Use struct constant_descriptor_tree.
3416 Don't duplicate trees twice.
3417 (struct constant_descriptor_rtx): New.
3418 (struct pool_constant): Used for rtx constants.
3419 (init_varasm_status): Update for change to struct varasm_status.
3420 (mark_varasm_status): Likewise.
3421 (free_varasm_status): Delete.
3422 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
3423 (record_constant_rtx): Likewise.
3424 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
3425 (force_const_mem): Likewise.
3426 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
3427 * function.c (free_after_compilation): Don't use free_varasm_status.
3428 * function.h: Don't prototype free_varasm_status.
3430 * ggc-common.c (ggc_realloc): Handle X being NULL.
3432 * ggc-common.c (ggc_realloc): New function.
3433 * ggc.h: Prototype it.
3434 * emit-rtl.c (free_emit_status): Delete.
3435 (init_emit): Allocate emit subarrays using GC.
3436 (gen_reg_rtx): Reallocate subarrays using GC.
3437 (init_emit): Use GC to allocate 'struct emit_status' and its
3439 (mark_emit_status): Mark structure and its subarrays.
3440 * stmt.c (free_stmt_status): Delete.
3441 * expr.c (free_expr_status): Delete.
3442 * function.h: Remove prototypes for deleted functions.
3443 * function.c (free_after_compilation): Don't use deleted functions.
3444 Don't call free() on x_parm_reg_stack_loc.
3445 (free_after_parsing): Don't use free_stmt_status.
3446 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
3447 (mark_function_status): Mark x_parm_reg_stack_loc.
3449 * varasm.c (init_varasm_status): Use GC to allocate
3450 'struct varasm_status' and its fields x_const_rtx_hash_table
3451 and x_const_rtx_sym_hash_table.
3452 (mark_varasm_status): Mark them.
3453 (free_varasm_status): Use GC to free them.
3454 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
3455 (mark_expr_status): Mark the structure itself.
3456 (free_expr_status): Use GC to free the structure.
3457 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
3458 (mark_stmt_status): Mark the 'struct stmt_status' itself.
3459 (init_stmt_for_function): Allocate the structure for GC.
3461 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
3462 (equate_type_number_to_die): Likewise.
3463 * tree.h (TYPE_SYMTAB_DIE): New macro.
3464 (struct die_struct): Predeclare.
3465 (struct tree_type): Add field symtab.die. Add a tag
3466 to the union type of field symtab.
3468 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
3469 'struct rtvec_def *', not 'struct rtvec_def'.
3471 * function.h (original_arg_vector): Make a real rtvec.
3472 * function.c (ggc_mark_struct_function): Adjust.
3473 * integrate.c (expand_inline_function): Adjust.
3475 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3477 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
3478 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
3479 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
3480 (TARGET_VERSION_CPU): Define according to the
3482 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
3484 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
3485 if TARGET_SHMEDIA64.
3486 (LINK_DEFAULT_CPU_EMUL): Define according to the
3488 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
3489 (SUBTARGET_LINK_SPEC): Define.
3490 (LINK_SPEC): Use SH_LINK_SPEC.
3492 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
3493 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
3494 and TARGET_SHMEDIA64 which abort, for now.
3495 * config/sh/t-netbsd-sh5: New file.
3496 * config/sh/t-netbsd-sh5-32: New file.
3497 * config/sh/t-netbsd-sh5-64: New file.
3499 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
3500 Richard Henderson <rth@redhat.com>
3502 * config/alpha/alpha.c (reg_or_const_int_operand): New.
3503 (some_operand, input_operand): Accept CONST_VECTOR.
3504 (alpha_extra_constraint): Add 'W'.
3505 (alpha_expand_zap_mask): New.
3506 (alpha_expand_builtin_vector_binop): New.
3507 (enum alpha_builtin): New.
3508 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
3509 (alpha_init_builtins, alpha_expand_builtin): New.
3510 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
3511 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
3512 (PREDICATE_CODES): Update.
3513 * config/alpha/alpha-protos.h: Update.
3514 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
3515 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
3516 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
3517 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
3518 (movv2si, movv2si_fix, movv2si_nofix): New.
3519 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
3520 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
3521 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
3522 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
3523 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
3524 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
3525 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
3526 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
3527 builtin_unpkbw, unpkbw): New.
3528 * doc/extend.texi (Alpha Built-in Functions): New.
3530 2002-06-03 Richard Henderson <rth@redhat.com>
3532 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
3533 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
3535 2002-06-03 Richard Henderson <rth@redhat.com>
3537 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
3539 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
3540 (const0_operand): New.
3541 (reg_or_fp0_operand, fp0_operand): Remove.
3542 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3543 * config/alpha/alpha-protos.h: Update.
3544 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
3545 and fp0_operand with reg_or_0_operand and const0_operand.
3547 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
3549 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
3551 2002-06-03 Roger Sayle <roger@eyesopen.com>
3553 * gcse.c (cprop_jump): Use single_set to get the pattern
3554 from the setcc argument.
3556 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
3558 * diagnostic.h (diagnostic_count): Move from output_buffer to
3560 (diagnostic_kind_count): Adjust definition.
3562 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
3564 * except.c (except.c): Do not rebuild CFG.
3565 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
3568 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
3570 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
3571 * toplev.c: Include cfglahout.h
3572 * Makefile.in (toplev.c): Add dependnecy.
3574 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
3576 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
3577 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
3578 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
3580 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
3582 * config/ns32k/netbsd.h: Update copyright years.
3583 (TARGET_OS_CPP_BUILTINS): Define.
3584 (CPP_PREDEFINES): Remove.
3585 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
3586 (TARGET_CPU_CPP_BUILTINS): Define.
3588 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
3590 * emit-rtl.c: Fix formatting.
3591 * errors.h: Likewise.
3592 * except.c: Likewise.
3593 * explow.c: Likewise.
3594 * expmed.c: Likewise.
3598 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
3600 * config/h8300/elf.h: Fix formatting.
3601 * config/h8300/rtems.h: Likewise.
3603 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
3605 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
3607 2002-06-02 Tom Tromey <tromey@redhat.com>
3609 * fixinc/fixincl.x: Rebuilt.
3610 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
3612 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3615 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
3616 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
3620 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
3622 * final.c (final): Allow notes to not have computed addresses;
3623 kill no longer needed STACK_REGS ifdef.
3625 2002-06-02 Richard Henderson <rth@redhat.com>
3627 * gcse.c (bypass_conditional_jumps): Fix typo last change.
3629 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3631 * loop.c (emit_prefetch_instructions): Properly place the address
3634 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
3636 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
3637 (set_block_for_insn): Turn into macro.
3638 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
3639 * cfglayout.c (insn_scopes): Kill.
3640 (scope_to_insns_initialize): Do not use insn_scopes.
3641 (scope_to_insns_finalize): Likewise.
3642 (duplicate_insn_chain): Likewise.
3643 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
3644 * cfgrtl.c (basic_block_for_insn): Kill.
3645 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
3646 (create_basic_block_structure): Use reorder_insns.
3647 (compute_bb_for_insn): Do not use basic_block_for_insn.
3648 (merge_blocks_nomove): Likewise.
3649 (update_bb_for_insn): Likewise.
3650 (verify_flow_info): Likewise.
3651 (set_block_for_insn): Kill.
3652 * combine.c (try_combine): Update gen_rtx_INSN call.
3653 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
3654 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
3656 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
3657 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
3659 (emit_insns_after): Simplify.
3660 (emit_copy_of_insn_after): Copy scope.
3661 * final.c (final_start_function): Lower scopes.
3662 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
3663 * integrate.c (copy_insn_list): Cope scopes.
3664 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
3665 * loop.c (loop_optimize): Do not care block notes.
3666 * print-rtl.c (print_rtx): Print BB.
3667 * recog.c (apply_change_group): Simplify.
3668 * rtl.c (copy_rtx): Handle 'B'.
3669 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
3670 * rtl.h (Field accessors): Update indexes.
3671 * sched-ebb.c (schedule_ebbs): Do not lower notes.
3672 * sched-rgn.c (schedule_insns): Likewise.
3673 * toplev.c (rest_of_compilation): Lower notes.
3674 * unroll.c (unroll_loop): Do not care scoping notes.
3675 (copy_loop_body): Copy scopes.
3677 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3680 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
3682 * rtems.h: Similarly.
3683 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
3684 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
3685 (TARGET_CPU_CPP_BUILTINS): Use.
3687 2002-06-02 Richard Henderson <rth@redhat.com>
3689 * alias.c: Include target.h.
3690 (mark_constant_function): Use targetm.binds_local_p instead
3691 of checking TREE_PUBLIC ourselves.
3692 * Makefile.in (alias.o): Add TARGET_H.
3694 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3696 * c-lex.c: Update copyright and file description.
3698 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3700 * config/fr30/fr30.h: Update to new CPP macros.
3702 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3704 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
3706 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3707 Zack Weinberg <zack@codesourcery.com>
3709 * c-common.c (c_common_init): Override cpplib's default
3710 warn_long_long setting.
3711 * c-lex.c (lex_number): Replace with interpret_integer,
3712 interpret_float, narrowest_unsigned_type and
3713 narrowest_signed_type, taking advantage of the new
3714 cpplib functionality.
3715 * cpperror.c (_cpp_begin_message): If a warning is turned
3716 into an error, avoid printing "warning:".
3717 * cppexp.c (cpp_num_sign_extend): New.
3718 * cppinit.c: Update comment.
3719 * cpplib.h (cpp_num_sign_extend): New.
3720 * tree.h: Update comment.
3722 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
3724 * diagnostic.h (struct diagnostic_context): Add new member
3726 (internal_error_function): Remove declaration.
3727 * diagnostic.c (internal_error_function): Remove definition..
3728 (internal_error): Adjust use.
3730 2002-06-02 Richard Henderson <rth@redhat.com>
3732 * rtl.h (CC0_P): New.
3733 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
3734 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
3735 (bypass_block): Save old dest block for dump text.
3736 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
3737 Allow only true SET insns, not single_set.
3739 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
3741 * diagnostic.c (diagnostic_finish): Rename to output_flush.
3742 (clear_disgnostic_info): Rename to output_clear_data. Use false
3743 instead of 0 for boolean value.
3744 Adjust function call throughout.
3746 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
3748 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
3749 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
3751 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3753 * d30v.h (CPP_PREDEFINES): Replace with
3754 (TARGET_CPU_CPP_BUILTINS): New.
3756 2002-06-02 Roger Sayle <roger@eyesopen.com>
3758 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
3760 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
3762 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
3764 2002-06-02 Richard Henderson <rth@redhat.com>
3766 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
3768 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
3770 Support for C++ constructors/destructors.
3771 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
3772 instead of looping if main() returns.
3773 (asm_file_start): Output global symbols that cause .data and .bss
3774 initialization code to be linked in, unconditionally for now.
3775 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
3776 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
3777 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
3779 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
3780 (__tablejump__): New.
3781 (__do_copy_data, __do_clear_bss): New.
3782 (__do_global_ctors, __do_global_dtors): New.
3783 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
3786 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3788 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
3789 (CPP_SPEC, CPP_PREDEFINES): Kill.
3790 * c4x/rtems.h (CPP_PREDEFINES): Kill.
3791 (TARGET_OS_CPP_BUILTINS): New.
3793 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
3795 * Makefile.in (tracer.o): New.
3796 * params.def (TRACER_*): New options.
3797 * rtl.h (tracer): Declare.
3798 * timevar.def (TV_TRACER): New.
3799 * toplev.c (dump_file_index): Add DFI_tracer.
3800 (dump_file_info): Add tracer.
3802 (lang_indepdenent_options): Add tracer.
3803 (rest_of_compilation): Call tracer.
3804 * tracer.c: New file.
3805 * invoke.texi (-ftracer): Document.
3806 (--param tracer-*): Document.
3808 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
3810 * tree-inline.c (expand_call_inline): Make the statement
3811 expression we generate have a COMPOUND_STMT.
3813 2002-06-01 Roger Sayle <roger@eyesopen.com>
3815 * gcse.c (cprop_cc0_jump): Function deleted.
3816 (cprop_jump): Take an additional argument which is the possibly
3817 NULL cc setting insn immediately before the conditional jump.
3818 When a MODE_CC set is present, substitute it into the JUMP_INSN
3819 before attempting the constant propagation.
3820 (cprop_insn): Recognize cc setters followed by conditional jumps
3821 as a special case. Use cprop_jump instead of cprop_cc0_jump.
3822 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
3823 (find_bypass_set): New function based upon find_avail_set used by
3824 cprop, but finds constant expressions available at the end of
3826 (bypass_block): New function. Given a basic block that begins
3827 with a conditional jump and multiple incoming edges, perform
3828 the jump bypass optimization.
3829 (bypass_conditional_jumps): New function. Call bypass_block with
3830 each suitable basic block in the CFG using a simple single pass.
3832 2002-06-01 Roger Sayle <roger@eyesopen.com>
3834 * tree.c (real_minus_onep): New function to test for -1.0.
3835 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
3837 2002-06-01 Roger Sayle <roger@eyesopen.com>
3839 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
3840 and "!p && !q" into "(p|q) == 0" under suitable conditions.
3842 2002-06-01 Andreas Jaeger <aj@suse.de>
3844 * cppexp.c (cpp_classify_number): Cast precission to int for
3845 correct printf format.
3847 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
3849 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
3850 expected, but don't really exist: atmega83, atmega85, attiny10.
3851 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
3852 emulations for all devices.
3853 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
3854 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
3856 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
3858 * config/h8300/h8300-protos.h: Add a prototype for
3859 h8300_shift_needs_scratch_p.
3860 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
3861 * config/h8300/h8300.h (OK_FOR_R): New.
3862 (OK_FOR_S): Likewise.
3863 (OK_FOR_T): Likewise.
3864 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
3865 * config/h8300/h8300.md (anonymous shift patterns): Use
3866 constraints R, S, and T.
3868 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3870 * basic-block.h (struct basic_block_def): New field loop_father.
3871 (BB_VISITED): New flag.
3872 (struct loop): New field pred, removed field shared.
3873 (struct loops): New field parray.
3874 (LOOP_EXITS_DOMS): Removed.
3875 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
3876 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
3877 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
3878 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
3879 verify_loop_structure): Declare.
3880 * cfg.c (entry_exit_blocks): Initialize loop_father field.
3881 * cfganal.c (dfs_enumerate_from): New function.
3882 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
3883 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
3884 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
3885 flow_loop_dump, flow_loops_dump, flow_loops_free,
3886 flow_loop_tree_node_add, flow_loop_level_compute,
3887 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
3888 flow_loop_outside_edge_p): Modified for new infrastructure.
3889 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
3890 redirect_edge_with_latch_update, flow_loop_free): New static functions.
3891 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
3892 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
3893 find_common_loop, verify_loop_structure, loop_latch_edge,
3894 loop_preheader_edge): New functions.
3895 (flow_loops_cfg_dump): Do not show dominators, as this information
3896 does not remain up to date long.
3897 (flow_loops_find): Store results in new format.
3898 * predict.c (propagate_freq, estimate_probability,
3899 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
3902 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
3904 * except.c (nothrow_function_p): Walk epilogue delay list
3905 checking the insn, not the chain for potential throws.
3907 2002-05-31 Zack Weinberg <zack@codesourcery.com>
3909 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
3910 (install): Refer to install-cpp directly.
3911 (uninstall-cpp): Folded into uninstall rule.
3912 * configure.in: Delete all code relating to --disable-cpp.
3913 * configure: Regenerate.
3914 * config/t-install-cpp: Delete.
3916 2002-05-31 Richard Henderson <rth@redhat.com>
3918 * configure.in (HAVE_AS_TLS): Add alpha tests.
3919 * configure: Rebuild.
3920 * config/alpha/alpha.c (TARGET_AS_TLS): New.
3921 (alpha_tls_size, alpha_tls_size_string): New.
3922 (overide_options): Set it. Always install machine_status hooks.
3923 (input_operand): Accept got tls predicates.
3924 (local_symbol_p): Merge into ...
3925 (local_symbolic_operand): ... here. Reject tls symbols.
3926 (global_symbolic_operand): Likewise.
3927 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
3928 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
3929 (tp16_symbolic_operand, tp32_symbolic_operand): New.
3930 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
3931 (alpha_encode_section_info): Handle TLS symbols.
3932 (alpha_strip_name_encoding): Likewise.
3933 (alpha_legitimate_address_p): Likewise.
3934 (alpha_legitimize_address): Likewise.
3935 (alpha_expand_mov): Early exit to avoid nop moves.
3936 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
3937 (alpha_init_machine_status, alpha_mark_machine_status,
3938 alpha_free_machine_status): Always define.
3939 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
3940 (print_operand, print_operand_address): Add TLS relocs.
3941 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
3942 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
3943 (TARGET_SWITCHES): Add -mtls-kernel.
3944 (alpha_tls_size, alpha_tls_size_string): New.
3945 (TARGET_OPTIONS): Add -mtls-size=.
3946 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
3947 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
3948 (ASM_OUTPUT_LABELREF): Skip %.
3949 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
3950 (PREDICATE_CODES): Update.
3951 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
3952 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
3953 UNSPEC_TP, UNSPECV_SET_TP): New.
3954 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
3955 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
3956 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
3957 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
3958 (call_value_osf_2_er): Accept anything as op4.
3959 * config/alpha/alpha-protos.h: Update.
3960 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
3962 2002-05-31 Zack Weinberg <zack@codesourcery.com>
3964 * cppinit.c (append_include_chain): Always pay attention to
3965 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
3968 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
3970 * target.h: Fix formatting.
3971 * timevar.h: Likewise.
3972 * tlink.c: Likewise.
3973 * toplev.c: Likewise.
3974 * toplev.h: Likewise.
3976 * tree-dump.h: Likewise.
3978 * tree-inline.h: Likewise.
3979 * unroll.c: Likewise.
3980 * unwind-dw2.c: Likewise.
3981 * unwind-dw2-fde.c: Likewise.
3982 * unwind-dw2-fde-glibc.c: Likewise.
3983 * unwind-dw2-fde.h: Likewise.
3984 * unwind.h: Likewise.
3985 * unwind-sjlj.c: Likewise.
3986 * varasm.c: Likewise.
3987 * varray.h: Likewise.
3988 * vmsdbg.h: Likewise.
3989 * vmsdbgout.c: Likewise.
3990 * xcoffout.h: Likewise.
3992 2002-05-31 Igor Shevlyakov <igor@microunity.com>
3994 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
3995 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
3997 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
3999 * gcc.c (cpp_unique_options): Remove "-d" options.
4000 (cpp_debug_options): New spec string.
4001 (default_compilers): Use it.
4002 * objc/lang-specs.h: Likewise.
4004 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
4006 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
4007 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
4008 * gcc/mklibgcc.in: Likewise.
4009 * gcc/config/arc/t-arc: Likewise.
4010 * gcc/configure.in: Likewise.
4011 * gcc/configure: Regenerate.
4013 2002-05-31 Stan Shebs <shebs@apple.com>
4014 Turly O'Connor <turly@apple.com>
4016 * c-decl.c (struct binding_level): Change int field n_incomplete
4017 to tree list incomplete_list.
4018 (clear_binding_level): Init field with NULL.
4019 (pushdecl): Add incomplete type to list.
4020 (mark_binding_level): Mark the incomplete list.
4021 (finish_struct): Scan the incomplete list for types instead
4022 of all decls in the current binding level.
4024 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
4026 * pa.c (output_millicode_call): Add missing '%' characters.
4027 (output_call): Likewise.
4029 2002-05-31 David Edelsohn <edelsohn@gnu.org>
4031 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
4032 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
4034 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
4036 * varasm.c (mark_constant_pool): Walk epilogue delay list
4037 checking the insn, not the chain for potential constants.
4039 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
4041 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
4043 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
4045 * i386.c (classify_argument): Properly handle base types.
4047 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
4048 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
4051 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4053 * gcse.c (gcse_emit_move_after): New.
4054 (pre_delete, hoist_store): Use it.
4056 * reload1.c (emit_input_reload_insns): Use constrain_operands
4057 instead of constraint_accepts_reg_p to verify optimization.
4058 (constraint_accepts_reg_p): Kill
4060 * reload1.c (reload_cse_delete_noop_set): Kill.
4061 (reload_cse_simplify): use delte_insn_and_edges.
4063 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4065 * cfgloop.c (flow_loops_find): Initialize first and last fields
4068 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
4070 * c-common.c (builtin_define_std): Correct logic.
4072 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
4074 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
4075 (output_call): Likewise.
4077 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
4079 * pa.c: Move output.h include after tree.h include.
4080 (pa_asm_output_mi_thunk): Constify identifier lab.
4082 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
4084 * config/ns32k/ns32k.h: Define named constants for the
4085 bits in target_flags and use them.
4086 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
4088 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4090 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
4091 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
4092 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
4093 default scheduling model.
4094 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
4095 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
4096 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
4097 * doc/install.texi (hppa*-*-*): Document default scheduling.
4099 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4101 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
4103 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
4105 * config.gcc (ns32k-*-netbsd*): Set tm_file to
4106 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
4107 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
4108 netbsd.h, or netbsd-aout.h.
4110 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
4112 * longlong.h (count_trailing_zeros): Add missing \, and clean up
4113 whitespace in __ns32000__ case.
4115 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
4117 * expr.c (expand_expr): Output partially zeroed out vectors with
4118 output_constant_def.
4120 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4122 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
4124 (shl*-*-netbsdelf*): New targets.
4125 * config/sh/netbsd-elf.h: New file.
4126 * config/sh/t-netbsd: New file.
4128 2002-05-30 Richard Henderson <rth@redhat.com>
4129 Eric Botcazou <ebotcazou@multimania.com>
4131 PR optimization/6822
4132 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
4133 to unsigned int for op1 comparisons. Use gen_int_mode.
4135 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
4137 * expmed.c (const_mult_add_overflow_p): New.
4138 * expr.h: Declare it.
4139 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
4140 Don't eliminate the biv if the giv has a constant multiplier and
4141 the rhs argument of the comparison does satisfy the predicate.
4142 Use expand_mult_add to compute the replacement constant.
4144 2002-05-30 Osku Salerma <osku@iki.fi>
4146 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
4147 (c_common_get_alias_set): Handle it.
4148 * doc/extend.texi: Document it.
4150 2002-05-30 Richard Henderson <rth@redhat.com>
4152 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4153 * toplev.c (process_options): Don't check it.
4154 * doc/tm.texi: Don't document it.
4155 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
4156 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4157 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
4158 frame pointer optimization if current_function_profile.
4160 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
4162 * langhooks.c: Fix formatting.
4163 * langhooks.h: Likewise.
4165 * libgcc2.c: Likewise.
4166 * lists.c: Likewise.
4167 * local-alloc.c: Likewise.
4171 2002-05-30 Marc Espie <espie@openbsd.org>
4173 * config.gcc (sparc64-*-openbsd*): New.
4174 * config/sparc/openbsd1-64.h: New.
4175 * config/sparc/openbsd64.h: New.
4177 2002-05-30 Jeff Law <law@redhat.com>
4179 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
4180 a dead insn with a REG_RETVAL note when the entire libcall is not
4181 dead and remove the associated REG_LIBCALL note at the same time.
4183 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
4185 * lcm.c (output.h): #include.
4186 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
4187 as an ordinary block.
4188 (optimize_mode_switching): Don't pretend that the exit block is
4189 an ordinary block, or handle sucessors of entry block specially.
4190 Instead, split edges from entry block and to exit block, and
4191 put a computing definition on the thus gained post-entry-block,
4192 and a need on the pre-exit-block.
4194 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
4196 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
4197 * rtl.texi: Document 'B'
4199 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4201 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
4203 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
4205 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
4207 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
4208 const0_rtx instead of NULL_RTX when in error.
4209 (altivec_expand_abs_builtin): Same.
4210 (rs6000_expand_binop_builtin): Same.
4211 (altivec_expand_predicate_builtin): Same.
4212 (altivec_expand_stv_builtin): Same.
4213 (rs6000_expand_ternop_builtin): Same.
4214 (altivec_expand_builtin): Same.
4216 2002-05-29 David S. Miller <davem@redhat.com>
4218 * rtl.h (clear_emit_caches): Delete.
4219 * integrate.c (output_inline_function): Don't call it.
4220 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
4221 (clear_emit_caches): Delete definition.
4222 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
4224 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
4226 * config/mmix/mmix.c: Include real.h.
4227 (mmix_constant_address_p): Remove redundant test before switch.
4229 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4231 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
4232 only if not already defined.
4234 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
4236 * config/h8300/h8300-protos.h: Remove prototypes for
4237 ok_for_bclr and small_power_of_two.
4238 * config/h8300/h8300.c (small_power_of_two): Remove.
4239 (ok_for_blcr): Likewise.
4240 (fix_bit_operand): Make WHAT deal with an integer instead of a
4241 constraint character.
4242 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
4243 (CONST_OK_FOR_P): Likewise.
4244 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
4245 CONST_OK_FOR_P any more.
4246 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
4251 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4253 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4254 (CPP_PREDEFINES): Make sure this is undefined.
4255 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
4256 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
4257 or -U__MIPSEB__ before defining one or the other. Instead,
4258 use %(subtarget_endian_default) if neither -EB nor -EL are
4260 (SUBTARGET_EXTRA_SPECS): Define.
4261 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
4264 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
4266 * doc/md.texi (Patterns): Note pattern condition pitfall
4269 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
4271 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
4272 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
4273 ternary operations from here...
4274 (rs6000_expand_builtin): ...to here.
4275 New argument expandedp.
4276 Change all instances of altivec_expand_binop_builtin to
4277 rs6000_expand_binop_builtin.
4278 (altivec_expand_unop_builtin): Rename to
4279 rs6000_expand_unop_builtin.
4280 (altivec_expand_binop_builtin): Rename to
4281 rs6000_expand_binop_builtin.
4282 (altivec_expand_ternop_builtin): Rename to
4283 rs6000_expand_ternop_builtin.
4285 2002-05-29 Richard Henderson <rth@redhat.com>
4287 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
4288 (TARGET_BI_ARCH): Likewise.
4289 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
4290 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
4291 (TARGET_64BIT_DEFAULT): Default to 0.
4292 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
4294 2002-05-29 Richard Henderson <rth@redhat.com>
4296 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
4297 (get_pc_thunk_name): New.
4298 (output_set_got): Use it.
4299 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
4300 into linkonce sections.
4302 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4304 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4305 (CPP_PREDEFINES): Make sure this is undefined.
4306 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
4307 (CPP_SUBTARGET_SPEC): Don't provide different versions for
4308 default-32 and default-64. Just always use %(netbsd_cpp_spec).
4309 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
4310 cpp_subtarget_spec64. Add netbsd_cpp_spec.
4311 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4312 (CPP_PREDEFINES): Make sure this is undefined.
4313 (SUBTARGET_EXTRA_SPECS): Define.
4314 (CPP_SPEC): Use %(netbsd_cpp_spec).
4316 2002-05-29 Jeff Law <law@redhat.com>
4318 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
4320 * flow.c (propagate_one_insn): Do not remove a dead insn if it
4321 contains a REG_RETVAL note.
4323 * haifa-sched (sched_analyze): Remove another useless clearing
4324 of SCHED_GROUP_P I missed yesterday.
4326 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
4327 * pa.c (pa_asm_output_mi_thunk): New function.
4328 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
4330 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
4331 Marek Michalkiewicz <marekm@amelek.gda.pl>
4333 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
4334 (avr_asm_only_p): Make non-static.
4335 (enum avr_arch): Remove.
4336 (avr_arch_types): New.
4337 (avr_mcu_types): Update.
4338 (avr_override_options): Use avr_arch_types table instead of switch.
4339 * avr.h (CPP_PREDEFINES): Die.
4340 (avr_base_arch_macro, avr_extra_arch_macro): New.
4341 (TARGET_CPU_CPP_BUILTINS): New.
4342 (CPP_SPEC, EXTRA_SPECS): Simplify.
4343 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
4344 CPP_AVR5_SPEC): Die.
4346 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4348 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4349 NETBSD_OS_CPP_BUILTINS_AOUT.
4350 (SUBTARGET_EXTRA_SPECS): Define.
4351 (CPP_SPEC): Use %(netbsd_cpp_spec).
4353 2002-05-29 Richard Henderson <rth@redhat.com>
4355 * config/i386/i386.c (ix86_output_function_epilogue): New.
4356 (TARGET_ASM_FUNCTION_EPILOGUE): New.
4357 (pic_label_name): Remove.
4358 (pic_labels_used): New.
4359 (ix86_asm_file_end): Emit one pc load stub for each register used.
4360 (output_set_got): Generate deep pc load to any register.
4361 (ix86_select_alt_pic_regnum): New.
4362 (ix86_save_reg): Don't save pic register if we can find a valid
4363 call-clobbered replacement.
4364 (ix86_expand_prologue): If we found a valid replacement, renumber
4365 pic_offset_table_rtx.
4366 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
4367 pic_offset_table_rtx after reload.
4368 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
4369 * config/i386/i386.md (set_got): Make insn, not expander.
4370 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
4372 2002-05-29 Richard Henderson <rth@redhat.com>
4374 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
4375 alignment for alloca.
4377 2002-05-29 Richard Henderson <rth@redhat.com>
4379 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
4380 (print_operand_address): Only add rip for symbolic addresses
4381 for which we do not have another relocation type.
4383 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4385 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4386 (EXTRA_SPECS): Add netbsd_cpp_spec.
4387 (CPP_SPEC): Use %(netbsd_cpp_spec).
4388 (CPP_PREDEFINES): Remove.
4389 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4390 (EXTRA_SPECS): Define.
4391 (CPP_SPEC): Use %(netbsd_cpp_spec).
4392 (CPP_PREDEFINES): Remove.
4394 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
4396 PR preprocessor/6844
4397 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
4400 2002-05-29 Eric Christopher <echristo@redhat.com>
4402 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
4403 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
4405 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
4407 * config/fr30/fr30.md: Remove previous restriction on splits.
4408 Enforce conformance through gen_lowpart and cont_int_operand.
4409 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
4410 as the assembler does not support ".bss".
4412 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4414 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4415 (CPP_PREDEFINES): Remove.
4416 (SUBTARGET_EXTRA_SPECS): Define.
4417 (CPP_SPEC): Use %(netbsd_cpp_spec).
4418 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4419 (CPP_PREDEFINES): Remove.
4420 (SUBTARGET_EXTRA_SPECS): Define.
4421 (CPP_SPEC): Use %(netbsd_cpp_spec).
4422 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
4423 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
4424 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
4425 Add netbsd_cpp_spec.
4426 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
4428 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
4429 Zack Weinberg <zack@codesourcery.com>
4431 * cppexp.c (cpp_num): Move to cpplib.h.
4432 (CPP_ERROR): Remove.
4433 (interpret_float_suffix, interpret_int_suffix): New.
4434 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
4435 (cpp_classify_number, cpp_interpret_integer): New.
4436 (interpret_number): Remove.
4437 (eval_token): Update to use new routines.
4438 * cpphash.h (cpp_num_part): Move to cpplib.h.
4439 * cppinit.c (cpp_post_options): Set warn_long_long.
4440 * cpplib.h (struct cpp_options): Add warn_long_long.
4441 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
4442 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
4443 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
4444 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
4445 cpp_interpret_integer): New.
4447 2002-05-29 Joel Sherrill <joel@OARcorp.com>
4449 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
4451 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4453 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4454 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
4455 (CPP_SUBTARGET_SPEC): Define.
4456 (SUBTARGET_EXTRA_SPECS): Define.
4459 2002-05-29 Chris Lattner <sabre@nondot.org>
4461 * ssa.c (rename_insn_1): Rename uses of undefined registers to
4462 prevent confusion if/when the register is defined.
4464 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
4467 * config/cris/cris.md: Fix typos and thinkos in comments.
4468 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
4470 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
4471 ("*mov_sideqi_mem"): Similar, but for operand 3.
4472 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
4473 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
4474 Remove spurious mode specifier on operand 2.
4476 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
4478 * config/h8300/h8300-protos.h: Remove the prototype for
4480 Add prototypes for single_one_operand and single_zero_operand.
4481 * config/h8300/h8300.c (o_operand): Remove.
4482 (single_one_operand): New.
4483 (single_zero_operand): Likewise.
4484 (print_operand): For 'V' operand, and the operand with 0xff.
4485 For 'V' and 'W' operands, do not and the bit position with 7.
4486 * config/h8300/h8300.md (various anonymous patterns): Replace
4487 use of exact_log2 with single_one_operand/single_zero_operand.
4489 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
4491 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
4493 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
4495 * config/s390/s390.c (legitimate_pic_operand_p): Do not
4496 accept symbolic LARL operands.
4497 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
4500 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
4502 * config/s390/s390.md (cmpstr_64/31): Mark whole
4503 input registers as used.
4505 2002-05-28 Richard Henderson <rth@redhat.com>
4507 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
4508 not current_function_uses_pic_offset_table and
4509 current_function_uses_const_pool; examine current_function_profile.
4510 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
4511 input to blockage if needed.
4512 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
4513 (legitimize_pic_address): Likewise. Set regs_ever_live for
4514 pic_offset_table_rtx when invoked during reload.
4515 * config/i386/i386.h (FINALIZE_PIC): Remove.
4516 * config/i386/i386.md (tablejump): Reformat. Do not set
4517 current_function_uses_pic_offset_table.
4518 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
4519 (blockage): Accept anything as operand 0.
4521 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4523 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
4524 common CPP built-ins for all NetBSD a.out targets.
4525 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
4526 common CPP built-ins for all NetBSD ELF targets.
4527 * config/netbsd.h: Add missing notice.
4528 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
4529 for all NetBSD targets.
4530 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
4531 for all NetBSD targets using an LP64 code model.
4532 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
4535 2002-05-28 Richard Henderson <rth@redhat.com>
4537 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
4538 update if UPDATE_LIFE_LOCAL.
4540 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4542 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
4544 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
4545 Jason R. Thorpe <thorpej@wasabisystems.com>
4547 config/sh reorganization to factor out endianness and coff:
4549 * config/sh/little.h: New file.
4550 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
4551 defined, define to 0 to select big-endian.
4552 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
4553 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4554 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4555 * config/sh/t-be: New file.
4556 * config/sh/t-le: New file.
4558 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
4559 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
4560 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
4561 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
4562 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
4563 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
4564 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
4565 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
4566 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
4567 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
4568 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
4569 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
4570 (LINK_SPEC): Define to SH_LINK_SPEC.
4571 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
4572 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
4573 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
4574 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
4575 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
4576 * config/sh/coff.h: New file.
4577 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
4578 (TARGET_OBJFMT_CPP_BUILTINS): Define.
4579 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
4580 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
4581 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
4582 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
4583 (PTRDIFF_TYPE): Likewise.
4584 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
4585 (CPP_PREDEFINES): Don't define.
4586 (TARGET_OBJFMT_CPP_BUILTINS): Define.
4587 (LINK_SPEC): Define to SH_LINK_SPEC.
4588 (LINK_EMUL_PREFIX): Redefine.
4589 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
4590 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
4591 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
4592 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
4593 (TARGET_OS_CPP_BUILTINS): Define.
4594 (TARGET_DEFAULT): Redefine.
4595 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
4596 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
4597 (LINK_SPEC): Don't redefine.
4598 (LINK_DEFAULT_CPU_EMUL): Redefine.
4599 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4600 * sh.c (sh_asm_named_section): Don't declare / define.
4601 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
4602 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
4603 (sh64-*-elf* tm_file): Likewise.
4604 (sh-*-rtemself* tm_file): Likewise.
4605 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
4606 (sh-*-linux* tmake_file): Add sh/t-le.
4607 (sh-*-rtems* tm_file): Add sh/coff.h
4608 (sh-*-* tm_file): Likewise.
4610 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
4612 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
4613 CONSTANT_POOL_ADDRESS_P.
4615 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
4617 2002-05-28 David Edelsohn <edelsohn@gnu.org>
4618 Jeff Law <law@redhat.com>
4620 * optabs.c (expand_binop): Fix nwords sign warnings.
4621 generate pseudo for add_optab.
4623 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
4624 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
4626 2002-05-28 Marc Espie <espie@openbsd.org>
4628 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
4629 inherited from gas.h.
4630 (ASM_QUAD): Undef. OpenBSD does not support it.
4632 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
4634 * doc/install.texi (binaries): Change mingw binaries
4635 link to www.mingw.org.
4637 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4639 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
4641 2002-05-28 Richard Henderson <rth@redhat.com>
4643 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
4644 bottom alignment for leaf functions.
4646 2002-05-28 Zack Weinberg <zack@codesourcery.com>
4648 * config/pa/milli32.S, config/pa/lib1funcs.asm,
4649 config/sparc/sol2-g1.asm: Delete unused files.
4651 2002-05-28 Richard Henderson <rth@redhat.com>
4653 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
4655 * flow.c (calculate_global_regs_live): Rename call_used to
4656 invalidated_by_call. Initialize from regs_invalidated_by_call
4657 instead of call_used_regs.
4659 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
4662 2002-05-28 Zack Weinberg <zack@codesourcery.com>
4664 * tree.h: Don't include real.h.
4665 Forward-declare struct realvaluetype.
4666 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
4668 (TREE_REAL_CST_PTR): New accessor.
4669 (TREE_REAL_CST): Update.
4670 * real.h: Include machmode.h.
4671 (realvaluetype): Make it struct realvaluetype, not a typedef.
4672 (build_real): Prototype here.
4674 * tree.c: Include real.h.
4675 (build_real): Allocate the REAL_VALUE_TYPE as a separate
4676 object in GC memory, set TREE_REAL_CST_PTR to point to it.
4677 (build_real_from_int_cst): Use build_real.
4678 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
4681 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
4682 fold-const.c, print-tree.c, real.c: Include real.h.
4683 * Makefile.in: Update dependency lists.
4685 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4687 * basic-block.h (last_basic_block): Declare.
4688 (expunge_block_nocompact): Declaration removed.
4689 (compact_blocks): Declare.
4690 * cfg.c (last_basic_block): New variable.
4691 (expunge_block_nocompact): Removed.
4692 (expunge_block): Do not compact basic blocks.
4693 (compact_blocks): New.
4694 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
4696 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
4698 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
4699 real positions of blocks.
4700 (delete_unreachable_blocks): Simplified -- quadratic behavior now
4702 (cleanup_cfg): Compact blocks.
4703 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
4704 basic_block_info varray.
4705 (flow_delete_block): Comment update.
4706 (back_edge_of_syntactic_loop_p): Modify position check code.
4707 (verify_flow_info): Update checking.
4708 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
4709 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
4710 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
4711 indices no longer change.
4712 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
4714 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
4715 * profile.c (branch_prob): Compact blocks.
4716 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
4719 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
4721 * config/h8300/h8300.md (two anonymous patterns): New.
4723 2002-05-28 David S. Miller <davem@redhat.com>
4725 * config/sparc/sparc.md (cpu): Tidy.
4726 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
4728 (in_call_delay): Delete reference to 'return' type.
4729 (eligible_for_return_delay, in_return_delay, define_delay
4730 referencing those): Delete.
4731 (rest of file): Use new type attributes as appropriate.
4732 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
4733 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
4734 * config/sparc/ultra1_2.md (us1_single): New reservation.
4735 (us1_ialuX): Likewise.
4736 * config/sparc/ultra3.md (us3_single): Likewise.
4737 (us3_ialuX): Likewise.
4738 (us3_imul, us3_idiv): Tweak.
4740 2002-05-28 Richard Henderson <rth@redhat.com>
4742 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
4745 2002-05-28 Richard Henderson <rth@redhat.com>
4747 * config.gcc: Obsolete mn10200.
4749 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
4751 * cppexp.c (interpret_number): Optimize for single-digit
4752 and less-than-half-precision cases.
4753 (num_trim, num_positive, num_div_op): Cast constants.
4755 2002-05-27 Bo Thorsen <bo@suse.de>
4757 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
4758 3.1 branch. The file was made by Jakub Jelinek.
4759 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
4760 support so multilib doesn't break. And don't define this at all
4761 when -Dinhibit_libc is used.
4762 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
4763 * config/i386/t-linux64: Implement full multilib support. Patch
4764 originally done by Andreas Jaeger and Jakub Jelinek.
4766 2002-05-27 Roger Sayle <roger@eyesopen.com>
4768 * c-common.c: Add support for __attribute__((nothrow)) to specify
4769 that a function cannot throw an exception (using TREE_NOTHROW).
4770 (handle_nothrow_attribute): New function to process this attribute.
4772 * doc/extend.texi: Document the new nothrow function attribute.
4774 2002-05-27 H.J. Lu (hjl@gnu.org)
4776 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
4777 (num_positive): Likewise.
4778 (num_div_op): Likewise.
4780 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
4782 * c-common.c (c_common_init): Always use intmax_t.
4784 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
4786 * c-common.c (c_common_init): Use intmax_t for now.
4788 2002-05-24 Andrew Haley <aph@redhat.com>
4790 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
4791 if T is a boolean type.
4793 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4795 * basic-block.h (last_basic_block): Defined as synonym for
4797 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
4798 flow_depth_first_order_compute, flow_preorder_transversal_compute,
4799 flow_dfs_compute_reverse_init): Replaced relevant occurences of
4800 n_basic_blocks with last_basic_block.
4801 * cfgbuild.c (make_edges): Likewise.
4802 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
4803 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
4804 * combine.c (combine_instructions): Likewise.
4805 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
4806 iterative_dataflow_bitmap): Likewise.
4807 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
4808 calc_idoms, idoms_to_doms): Likewise.
4809 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
4811 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
4812 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
4813 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
4814 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
4815 delete_null_pointer_checks, compute_code_hoist_vbeinout,
4816 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
4817 compute_store_table, build_store_vectors): Likewise.
4818 * haifa-sched.c (sched_init): Likewise.
4819 * ifcvt.c (if_convert): Likewise.
4820 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
4821 pre_edge_lcm, compute_available, compute_nearerout,
4822 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
4824 * predict.c (estimate_probability, process_note_prediction,
4825 note_prediction_to_br_prob): Likewise.
4826 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
4827 * recog.c (split_all_insns, peephole2_optimize): Likewise.
4828 * regrename.c (copyprop_hardreg_forward): Likewise.
4829 * resource.c (init_resource_info): Likewise.
4830 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
4831 init_regions, schedule_insns): Likewise.
4832 * ssa-ccp.c (ssa_const_prop): Likewise.
4833 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
4834 * ssa.c (compute_dominance_frontiers,
4835 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
4837 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
4838 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
4841 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
4843 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
4845 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
4846 hoist_insn_after, hoist_insn_to_edge): New.
4848 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
4850 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
4851 (PROP_FINAL): Include.
4852 * flow.c (life_analysis, update_life_info,
4853 init_propagate_block_info, mark_set_1, mark_used_rgs):
4854 Support SCAN_DEAD_STORE.
4856 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
4858 * c-common.c (c_common_init): Set CPP arithmetic precision.
4859 * cppexp.c (cpp_num_part): Move typedef ...
4860 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
4861 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
4862 (sanity_checks): Update.
4864 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
4866 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
4867 (mkheaders): New rule.
4868 (install-mkheaders): New rule.
4869 * configure.in (all_outputs): Add mkheaders.
4870 * configure: Regenerate.
4871 * mkheaders.in: New file.
4873 2002-05-26 Jakub Jelinek <jakub@redhat.com>
4875 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
4877 2002-05-26 Andreas Jaeger <aj@suse.de>
4879 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
4881 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
4883 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
4884 right_shift): Remove.
4885 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
4887 (struct op): Use cpp_num.
4888 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
4889 num_part_mul, num_unary_op, num_binary_op, num_negate,
4890 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
4891 num_div_op, num_lshift, num_rshift, append_digit): New.
4892 (interpret_number, parse_defined, eval_token, reduce): Update
4893 for two-integer arithmetic.
4894 (binary_handler): New typedef.
4896 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
4897 (_cpp_parse_expr, reduce): Update to handle two-integers.
4898 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
4900 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
4902 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
4903 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
4904 branch insn into account, do not assume 1.
4905 (avr_out_sbxx_branch): New function. Optimize cases of skipping
4906 over single word insn. Handle upper half of I/O space too.
4907 * config/avr/avr.md (*sbrx_branch): Use it.
4908 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
4909 (*sbix_branch, *sbix_branch_bit7): Likewise.
4910 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
4911 Use RTL peepholes to optimize register operand sign tests.
4913 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
4915 * config/avr/avr.c (avr_asm_only_p): New variable.
4916 (avr_override_options): Set it here if AVR1.
4917 (asm_file_start): Test it here, report an error if set.
4919 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
4921 * alias.c: Fix formatting.
4922 * attribs.c: Likewise.
4923 * bb-reorder.c: Likewise.
4924 * bitmap.c: Likewise.
4925 * bitmap.h: Likewise.
4926 * builtins.c: Likewise.
4928 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
4930 * reload.c (find_valid_class): Accept new argument DEST,
4931 choose class accordingly.
4932 (push_reload): Update callers.
4934 2002-05-26 Andreas Jaeger <aj@suse.de>
4936 * combine.c (combine_instructions): Do not indent #if for
4939 2002-05-25 Richard Henderson <rth@redhat.com>
4941 * c-pragma.c (apply_pragma_weak): Convert value identifier to
4942 string for decl_attributes.
4943 (handle_pragma_weak): Call assemble_alias if we're modifying
4946 2002-05-25 Richard Henderson <rth@redhat.com>
4949 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
4950 using rtl instead of fprintf.
4951 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
4952 * config/sparc/sparc-protos.h: Update.
4954 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
4956 * Makefile.in (C_COMMON_H): Fix.
4957 Update other targets.
4958 * c-common.c: Don't include c-lex.h.
4959 (builtin_define_with_value): Make static and prototype.
4960 (builtin_define_std): Move from c-lex.h.
4961 * c-common.h (init_c_lex): Move from c-lex.h.
4962 * c-decl.c: Don't include c-lex.h.
4963 (make_pointer_declarator): Move from c-parse.in.
4964 * c-lex.c: Don't include c-lex.h.
4966 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
4967 (make_pointer_declarator): Move to c-decl.c.
4968 * c-pragma.c: Don't include c-lex.h.
4969 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
4970 * c-tree.h (make_pointer_declarator): New.
4972 * passes.texi, tm.texi: Update.
4974 * Make-lang.in: Update and correct.
4975 * objc-act.c: Don't include c-lex.h or cpplib.h.
4977 * treetree.c: Don't include c-lex.h.
4979 * darwin-c.c: Don't include c-lex.h.
4980 * c4x/c4x-c.c: Don't include c-lex.h.
4981 * c4x/t-c4x: Update.
4982 * i370/i370-c.c: Don't include c-lex.h.
4983 * i370/t-i370: Update.
4984 * i960/i960-c.c: Don't include c-lex.h.
4985 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
4986 * i960/t-960bare: Update.
4987 * i960/t-vxworks: Update.
4988 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
4989 * rs6000/t-darwin: Update.
4990 * rs6000/t-rs6000-c-rule: Update.
4991 * v850/v850-c.c: Don't include c-lex.h.
4992 * v850/v850.c: Don't include c-lex.h or cpplib.h.
4995 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
4997 * tree.def: Fix typos.
4998 * doc/install.texi: Likewise.
5000 2002-05-25 Richard Henderson <rth@redhat.com>
5002 * configure.in (HAVE_AS_TLS): Add ia64 test.
5003 * configure: Rebuild.
5004 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
5005 (override_options): Set it.
5006 (TARGET_HAVE_TLS): New.
5007 (sdata_symbolic_operand): Look for 's'.
5008 (tls_symbolic_operand): New.
5009 (ia64_expand_load_address): Abort for tls symbols.
5010 (gen_tls_get_addr): New.
5011 (gen_thread_pointer): New.
5012 (ia64_expand_move): Split out from movdi. Handle tls symbols.
5013 (rtx_needs_barrier): Add new unspecs.
5014 (ia64_encode_section_info): Handle tls symbols.
5015 (ia64_strip_name_encoding): Strip two encoding chars.
5016 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
5017 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
5018 (TARGET_OPTIONS): Add tls-size.
5019 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
5020 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
5021 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
5022 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
5023 (movsf, movdf): Likewise.
5024 (movdi_symbolic): Use match_scratch. Don't split if we won't
5025 have a scratch availiable.
5026 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
5027 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
5028 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
5029 * config/ia64/ia64-protos.h: Update.
5030 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
5031 sdata_symbolic_operand.
5032 (ASM_OUTPUT_LABELREF): Strip two characters.
5034 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
5036 * combine.c (simplify_set): Remove an unnecessary subreg.
5038 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
5040 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
5042 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
5044 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
5046 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
5048 2002-05-25 Roger Sayle <roger@eyesopen.com>
5050 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
5051 (cond (compare x y) 0) into the equivalent (cond x y).
5053 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
5055 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
5057 2002-05-24 Zack Weinberg <zack@codesourcery.com>
5059 * config.gcc: Remove all stanzas for previously obsoleted
5060 systems. Where necessary, add explicit error stanzas to
5061 prevent removed systems from being misidentified as something
5062 else. Begin a fresh obsoletions list, with the systems that
5063 were reprieved last round.
5064 * doc/install.texi: Remove all mention of dead targets.
5065 * fixinc/mkfixinc.sh: Likewise.
5067 * config/arm/arm.h: Bit 31 of target_flags is no longer
5070 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
5071 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
5072 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
5073 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
5074 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
5075 config/alpha/osf12.h, config/alpha/osf2or3.h,
5076 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
5077 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
5078 config/clipper/clipper-protos.h, config/clipper/clipper.c,
5079 config/clipper/clipper.h, config/clipper/clipper.md,
5080 config/clipper/clix.h, config/convex/convex-protos.h,
5081 config/convex/convex.c, config/convex/convex.h,
5082 config/convex/convex.md, config/convex/fixinc.convex,
5083 config/convex/proto.h, config/elxsi/elxsi-protos.h,
5084 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
5085 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
5086 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
5087 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
5088 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
5089 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
5090 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
5091 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
5092 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
5093 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
5094 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
5095 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
5096 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
5097 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
5098 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
5099 config/m68k/altos3068.h, config/m68k/apollo68.h,
5100 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
5101 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
5102 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
5103 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
5104 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
5105 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
5106 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
5107 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
5108 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
5109 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
5110 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
5111 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
5112 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
5113 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
5114 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
5115 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
5116 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
5117 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
5118 config/mips/dec-osf1.h, config/mips/elflorion.h,
5119 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
5120 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
5121 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
5122 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
5123 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
5124 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
5125 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
5126 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
5127 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
5128 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
5129 config/ns32k/sequent.h, config/ns32k/tek6000.h,
5130 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
5131 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
5132 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
5133 config/sparc/rtems.h, config/we32k/we32k-protos.h,
5134 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
5137 2002-05-24 Richard Henderson <rth@redhat.com>
5139 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
5140 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
5141 * config/i386/i386.c (tls_model_chars): Add leading space.
5142 (tls_symbolic_operand): Don't bias by 1.
5143 (legitimize_address): Don't unbias by 1.
5145 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5147 * lcm.c (optimize_mode_switching): Change bb used as indices
5150 2002-05-24 Richard Henderson <rth@redhat.com>
5152 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
5153 of update_life_info_in_dirty_blocks.
5155 2002-05-24 Jakub Jelinek <jakub@redhat.com>
5158 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
5160 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
5162 PR preprocessor/6780
5163 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
5165 2002-05-24 Jim Blandy <jimb@redhat.com>
5167 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
5168 entry with a type code of zero, marking the end of the compilation
5171 2002-05-24 Richard Henderson <rth@redhat.com>
5173 * varasm.c (asm_output_bss): Always output one byte.
5174 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
5176 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5178 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
5181 2002-05-24 Andreas Jaeger <aj@suse.de>
5183 * ggc-page.c (alloc_page): Cast variables of type size_t to
5184 unsigned long, adjust printf format string.
5185 (ggc_alloc): Likewise.
5186 (ggc_print_statistics): Likewise.
5187 (ggc_print_statistics): Correct printf format string for SCALE to
5190 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
5192 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
5194 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
5195 Zack Weinberg <zack@codesourcery.com>
5197 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
5199 * dwarf2out.c (lookup_filename): Properly quote filename in .file
5200 directive in assembly file.
5201 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5202 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5203 * config/pj/pj.h (ASM_FILE_START): Likewise.
5204 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5205 * config/avr/avr.c (asm_file_end): Likewise.
5206 * toplev.c (output_quoted_string): Handle possibly signed plain
5208 * toplev.h (output_clean_symbol_name): Declare
5209 * toplev.c (output_clean_symbol_name): Define.
5210 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
5211 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
5213 2002-05-24 Alan Modra <amodra@bigpond.net.au>
5215 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
5217 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
5219 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
5220 of size of unsigned.
5222 2002-05-23 Richard Henderson <rth@redhat.com>
5224 * configure.in (HAVE_AS_TLS): New test.
5225 * config.in, configure: Rebuild.
5226 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
5227 (ix86_tls_dialect_string, ix86_tls_dialect): New.
5228 (override_options): Set it.
5229 (tls_model_chars, tls_symbolic_operand): New.
5230 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
5231 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
5232 (local_exec_symbolic_operand): New.
5233 (get_pic_label_name): Merge into output_set_got.
5234 (ix86_asm_file_end): Emit pic_label_name if defined.
5235 (legitimate_constant_p, constant_address_p): New.
5236 (legitimate_pic_operand_p): New.
5237 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
5238 (legitimate_address_p): Likewise.
5239 (ix86_encode_section_info): Rename from i386_; handle tls decls.
5240 (ix86_strip_name_encoding): New.
5241 (get_thread_pointer): New.
5242 (legitimize_address): Handle tls symbols.
5243 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
5245 (struct machine_function): Add some_ld_name.
5246 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
5247 (print_operand) [&]: Use it. Handle UNSPEC_TP.
5248 (output_addr_const_extra): New.
5249 (maybe_get_pool_constant): New.
5250 (ix86_split_to_parts): Use it.
5251 (ix86_expand_move): Handle tls symbols.
5252 (ix86_tls_get_addr): New.
5253 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
5254 (TARGET_OPTIONS): Add tls-dialect.
5255 (CONSTANT_ADDRESS_P): Use new out-of-line function.
5256 (LEGITIMATE_CONSTANT_P): Likewise.
5257 (LEGITIMATE_PIC_OPERAND_P): Likewise.
5258 (TARGET_STRIP_NAME_ENCODING): New.
5259 (ASM_OUTPUT_LABELREF): New.
5260 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
5261 (OUTPUT_ADDR_CONST_EXTRA): New.
5262 (PREDICATE_CODES): Update.
5263 (ix86_tls_dialect, ix86_tls_dialect_string): New.
5264 * config/i386/i386.md: Regroup and renumber unspec constants.
5265 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
5266 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
5267 (tls_global_dynamic, tls_local_dynamic_base): New.
5268 (tls_local_dynamic_once): New.
5269 * config/i386/i386-protos.h: Update.
5271 2002-05-23 Richard Henderson <rth@redhat.com>
5273 * genemit.c (gen_insn): Print file:lineno comment before function.
5275 * gensupport.c (struct queue_elem): Add filename member.
5276 (queue_pattern): Initialize it; update all callers.
5277 (process_include): Don't free filename.
5278 (read_md_rtx): Set read_rtx_filename.
5280 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
5282 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
5284 2002-05-23 Richard Henderson <rth@redhat.com>
5286 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
5288 2002-05-23 Richard Henderson <rth@redhat.com>
5290 * doc/extend.texi (C++98 Thread-Local Edits): Update with
5291 commentary from Mark.
5293 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5295 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
5296 Use FOR_EACH_BB macros to iterate over basic block chain.
5297 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
5298 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
5300 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
5301 find_unreachable_blocks, create_edge_list, verify_edge_list,
5302 remove_fake_edges, add_noreturn_fake_exit_edges,
5303 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
5305 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
5306 find_sub_basic_blocks): Likewise.
5307 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
5309 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
5311 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
5313 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
5314 commit_edge_insertions, commit_edge_insertions_watch_calls,
5315 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
5316 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
5317 * conflict.c (conflict_graph_compute): Likewise.
5318 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5319 df_modified_p, df_refs_unlink, df_dump): Likewise.
5320 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
5321 * final.c (compute_alignments): Likewise.
5322 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
5323 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
5324 count_or_remove_death_notes): Likewise.
5325 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
5326 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
5327 classic_gcse, compute_transp, cprop, compute_pre_data,
5328 compute_transpout, invalidate_nonnull_info,
5329 delete_null_pointer_checks_1, delete_null_pointer_checks,
5330 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
5331 compute_store_table, build_store_vectors, store_motion): Likewise.
5332 * global.c (global_conflicts, mark_elimination): Likewise.
5333 * graph.c (print_rtl_graph_with_bb): Likewise.
5334 * haifa-sched.c (sched_init): Likewise.
5335 * ifcvt.c (if_convert): Likewise.
5336 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5337 compute_available, compute_nearerout, compute_rev_insert_delete,
5338 optimize_mode_switching): Likewise.
5339 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
5340 * predict.c (estimate_probability, note_prediction_to_br_prob,
5341 propagate_freq, counts_to_freqs, expensive_function_p,
5342 estimate_bb_frequencies): Likewise.
5343 * profile.c (instrument_edges, get_exec_counts,
5344 compute_branch_probabilities, compute_checksum, branch_prob,
5345 find_spanning_tree): Likewise.
5346 * recog.c (split_all_insns, peephole2_optimize): Likewise.
5347 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
5349 * regclass.c (scan_one_insn, regclass): Likewise.
5350 * regmove.c (mark_flags_life_zones, regmove_optimize,
5351 record_stack_memrefs): Likewise.
5352 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
5353 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
5354 * resource.c (find_basic_block): Likewise.
5355 * sched-ebb.c (schedule_ebbs): Likewise.
5356 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
5357 find_single_block_region, find_rgns, schedule_insns)
5358 * sibcall.c (optimize_sibling_and_tail_recursive_call)
5359 * ssa-ccp.c (optimize_unexecutable_edges,
5360 ssa_ccp_df_delete_unreachable_insns): Likewise.
5361 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5362 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
5363 rename_block, convert_to_ssa, compute_conservative_reg_partition,
5364 compute_coalesced_reg_partition, rename_equivalent_regs,
5365 convert_from_ssa): Likewise.
5366 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
5367 process_for_unwind_directive): Likewise.
5369 * df.c (FOR_ALL_BBS): Removed.
5370 * gcse.c (struct null_pointer_info): Type of current_block field
5372 (struct reg_avail_info): Type of last_bb field changed.
5373 * config/ia64/ia64.c (block_num): Removed.
5374 (need_copy_state): Type changed.
5377 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
5379 * cppinit.c (mark_named_operators): Split out from init_builtins.
5380 (cpp_finish_options): Call it from here instead.
5382 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
5384 * builtin-attrs.def: Update copyright years.
5385 (ATTR_NONNULL): New attribute identifier.
5386 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
5387 attribute tree lists.
5388 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
5390 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
5391 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
5392 attribute lists. Chain the appropriate nonnull attribute.
5393 * c-format.c (check_format_arg): Remove null format string
5395 * testsuite/gcc.dg/format/null-1.c: New test.
5397 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5399 * Makefile.in (ADAC): Define.
5401 (.SUFFIXES): Move before language makefile fragments.
5402 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
5404 2002-05-23 Mark Mitchell <mark@codesourcery.com>
5406 * varasm.c (make_decl_rtl): Don't allow weak variables to be
5409 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
5411 * cfg.c (dump_flow_info): Print results of
5412 maybe_hot/probably_never_executed predicates.
5413 * toplev.c (open_dump_file): Print function frequency.
5415 2002-05-23 David S. Miller <davem@redhat.com>
5417 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
5420 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
5422 * c-common.c (warn_nonnull): Declare.
5423 (c_common_attribute_table): Add "nonnull" attribute.
5424 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
5425 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
5426 check_function_arguments_recurse): New functions.
5427 * c-common.h (warn_nonnull): Declare extern.
5428 (check_function_arguments, check_function_arguments_recurse): New
5430 * c-decl.c (c_decode_option): Add -Wnonnull option.
5431 * c-format.c (set_Wformat): Set warn_nonnull if enabling
5433 (format_check_context): New structure.
5434 (check_format_info_recurse): Remove recursion and rename to...
5435 (check_format_arg): ...this. Update comment.
5436 (check_format_info): Use check_function_arguments_recurse.
5437 * c-typeck.c (build_function_call): Call check_function_arguments
5438 instead of check_function_format.
5439 * doc/extend.texi: Document "nonnull" attribute.
5440 * doc/invoke.texi: Docuemnt -Wnonnull option.
5441 * testsuite/gcc.dg/nonnull-1.c: New test.
5442 * testsuite/gcc.dg/nonnull-2.c: New test.
5444 2002-05-23 David S. Miller <davem@redhat.com>
5446 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
5447 * cfgcleanup.c (cleanup_cfg): If it is set do not
5448 attempt to delete trivially dead insns.
5449 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
5450 * toplev.c (rest_of_compilation): Document non-trivial aspect
5451 the RTL before optimize_save_area_alloca is run.
5453 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
5455 * c-lex.c (indent_level): Remove.
5456 (cb_file_change, c_lex): Remove indent level handling.
5457 * c-lex.h (indent_level): Remove.
5458 * input.h (struct file_stack): Remove indent_level.
5459 * toplev.c (push_srcloc): Remove indent_level handling.
5461 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5464 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
5465 of x in constraints for clarity.
5466 (sse_mov?fcc split): abort if op2 == op3.
5467 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
5468 sse_movsfcc_const0_4): Add earlyclobber.
5469 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
5470 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
5471 Use Y instead of x in constraints.
5473 2002-05-23 Richard Henderson <rth@redhat.com>
5475 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
5476 (C++98 Thread-Local Edits): New subsection.
5478 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
5479 (ix86_arch): Set type to enum processor_type.
5481 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
5482 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
5484 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5486 * configure.in: Fix as version test for binutils 2.12.1 releases
5488 * configure: Rebuilt.
5490 2002-05-23 Richard Henderson <rth@redhat.com>
5492 * config/i386/i386.c (get_pic_label_name): New.
5493 (load_pic_register): Remove.
5494 (output_set_got): New.
5495 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
5496 * config/i386/i386.md (UNSPEC_SET_GOT): New.
5497 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
5498 (prologue_set_got, prologue_get_pc): Remove.
5499 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
5500 (builtin_setjmp_receiver): Use gen_set_got.
5501 * config/i386/i386-protos.h: Update.
5503 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
5505 * gcse.c (hash_expr): Do not use alias set for hashing.
5507 2002-05-22 Kevin Buettner <kevinb@redhat.com>
5509 * dbxout.c (dbxout_class_name_qualifiers): New function.
5510 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
5512 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
5514 * cpperror.c (_cpp_begin_message): No special casing
5516 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
5517 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
5518 * cpplib.c (do_include_common): Use DL_ERROR.
5519 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
5521 * fix-header.c (read_scan_file): Update.
5523 2002-05-22 Richard Henderson <rth@redhat.com>
5525 * config/i386/i386.c (ix86_expand_call): New function, extracted
5526 from md call patterns. Add pic_offset_table_rtx to
5527 CALL_INSN_FUNCTION_USAGE when needed.
5528 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
5529 (call_value_pop, call_value, untyped_call): Likewise.
5530 (call_exp, call_value_exp): Remove.
5531 * config/i386/i386-protos.h: Update.
5533 2002-05-22 Richard Henderson <rth@redhat.com>
5535 * varasm.c (default_section_type_flags): Check for VAR_DECL
5536 before using DECL_THREAD_LOCAL.
5538 2002-05-22 David Edelsohn <edelsohn@gnu.org>
5540 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
5541 (STARTFILE_SPEC): Delete PE crt0.o.
5542 * config/rs6000/aix51.h: Same.
5543 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
5544 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
5545 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
5546 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
5547 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
5549 2002-05-22 Richard Henderson <rth@redhat.com>
5551 * varasm.c (default_section_type_flags): Handle tls data and
5553 (default_unique_section): Handle tls sections.
5555 2002-05-23 Alan Modra <amodra@bigpond.net.au>
5557 * configure.in (CROSS): Define NATIVE_CROSS.
5558 * configure: Regenerate.
5559 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
5560 (startfile_prefix_spec): New var.
5561 (static_specs): Add startfile_prefix_spec.
5562 (do_spec_2): Split out from..
5564 (main): Process startfile_prefix_spec.
5565 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
5567 (STARTFILE_PREFIX_SPEC): Define.
5568 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
5571 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
5573 * cpperror.c: Fix formatting.
5574 * cppexp.c: Likewise.
5575 * cppfiles.c: Likewise.
5576 * cpphash.c: Likewise.
5577 * cpphash.h: Likewise.
5578 * cppinit.c: Likewise.
5579 * cpplex.c: Likewise.
5580 * cpplib.c: Likewise.
5581 * cppmacro.c: Likewise.
5582 * cppmain.c: Likewise.
5583 * cppspec.c: Likewise.
5585 2002-05-22 Jakub Jelinek <jakub@redhat.com>
5587 * combine.c (force_to_mode): Use gen_int_mode.
5588 Don't clear CONST_INT bits outside of mode.
5590 2002-05-22 Richard Henderson <rth@redhat.com>
5592 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
5593 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
5595 2002-05-22 Jakub Jelinek <jakub@redhat.com>
5598 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
5599 if DECL_SIZE_UNIT is INTEGER_CST.
5601 2002-05-22 Richard Henderson <rth@redhat.com>
5603 * flow.c (life_analysis): Delete broken reg_label check.
5605 2002-05-22 Richard Henderson <rth@redhat.com>
5607 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
5608 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
5610 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
5612 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
5613 (embed-bb.c): New rule.
5614 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
5615 * config/sh/embed_bb.c: Delete.
5617 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
5619 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
5621 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
5623 * config/h8300/h8300.md (*andorqi3): New.
5625 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
5627 PR preprocessor/6517
5628 * Makefile.in: Update.
5629 * c-common.c (c_common_post_options): Add preprocessor
5630 errors to the error count.
5631 * c-lang.c (c_post_options): Kill.
5632 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
5633 * hooks.h: Add header guards.
5634 * langhooks-def.h: Include hooks.h.
5635 (LANG_HOOKS_POST_OPTIONS): Update.
5636 * langhooks.h (struct lang_hooks): Update post_options.
5637 * toplev.c (parse_options_and_default_flags): Update.
5639 * objc-lang.c (objc_post_options): Kill.
5640 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
5642 2002-05-21 Bruce Korb <bkorb@gnu.org>
5644 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
5645 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
5646 * fixinc/fixincl.x: regen.
5648 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
5650 * cfgbuild.c: Fix formatting.
5652 * cfgcleanup.c: Likewise.
5653 * cfglayout.c: Likewise.
5654 * cfgloop.c: Likewise.
5655 * cfgrtl.c: Likewise.
5657 2002-05-21 Richard Henderson <rth@redhat.com>
5659 * c-common.h (enum rid): Add RID_THREAD.
5660 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
5661 (grokdeclarator): Grok __thread.
5662 * c-parse.in (reswords): Add __thread.
5663 (rid_to_yy): Add RID_THREAD.
5665 * tree.h (DECL_THREAD_LOCAL): New.
5666 (struct tree_decl): Add thread_local_flag.
5667 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
5668 * tree.c (staticp): TLS variables are not static.
5670 * target-def.h (TARGET_HAVE_TLS): New.
5671 * target.h (have_tls): New.
5672 * output.h (SECTION_TLS): New.
5673 * varasm.c (assemble_variable): TLS variables can't be common for now.
5674 (default_section_type_flags): Handle .tdata and .tbss.
5675 (default_elf_asm_named_section): Handle SECTION_TLS.
5676 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
5678 * flags.h (flag_tls_default): Declare.
5679 * toplev.c (flag_tls_default): Define.
5680 (display_help): Display help for it.
5681 (decode_f_option): Set it.
5683 * doc/extend.texi (Thread-Local): New node describing language-level
5684 thread-local storage.
5685 * doc/invoke.texi (-ftls-model): Document.
5687 * fixinc/inclhack.def (thread_keyword): New.
5688 * fixinc/fixincl.x: Rebuild.
5690 2002-05-21 Jeffrey A Law <law@redhat.com>
5692 * optabs.c (expand_binop): For double-word integer multiplies,
5693 do not compute intermediate results into something that is
5694 not a register (such as a SUBREG or MEM).
5696 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
5697 (ix86_sched_reorder): Make sure to initialize scheduling
5698 data even when there's only one insn in the ready queue.
5700 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
5702 * genautomata.c (reserv_sets_hash_value): Fix a typo.
5704 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
5706 * genautomata.c (reserv_sets_hash_value): Define hash_value as
5707 set_el_t. Transform the hash value into unsigned.
5708 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
5709 (transform_3): Add code to process `(A,B)+(D,E)'.
5711 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
5713 * reload1.c (do_output_reload): Run delete_output_reload
5716 2002-05-21 Roger Sayle <roger@eyesopen.com>
5719 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
5720 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
5721 (can_store_by_pieces): ... and here to limit the largest mode used.
5722 Add a comment to document this function.
5724 2002-05-21 Richard Henderson <rth@redhat.com>
5726 * flow.c (life_analysis): Fix test for deleted label.
5728 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
5730 * doc/tm.texi: Fix typo.
5732 2002-05-21 Zack Weinberg <zack@codesourcery.com>
5734 * c-common.c (c_common_init): Set options->unsigned_char from
5736 (cb_register_builtins): Define __STRICT_ANSI__ and
5737 __CHAR_UNSIGNED__ here...
5738 * cppinit.c (init_builtins): Not here.
5739 (cpp_create_reader): unsigned_char option defaults to 0, not
5740 !DEFAULT_SIGNED_CHAR.
5741 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
5742 and -funsigned-char.
5744 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
5745 * cpphash.c (_cpp_init_hashtable): Don't set it.
5746 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
5747 directly. Clarify comment.
5749 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5751 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
5752 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
5753 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
5754 BASIC_BLOCK (n_basic_blocks - 1).
5755 * cfganal.c (can_fallthru, flow_call_edges_add,
5756 flow_preorder_transversal_compute): Too.
5757 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
5758 find_sub_basic_blocks): Too.
5759 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
5760 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
5761 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
5762 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
5763 * combine.c (this_basic_block): Type changed to basic_block.
5764 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
5765 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
5766 get_last_value, distribute_notes, distribute_links): Too.
5767 * final.c (compute_alignments): Too.
5768 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
5769 * function.c (thread_prologue_and_epilogue_insns): Too.
5770 * gcse.c (compute_code_hoist_vbeinout): Too.
5771 * global.c (build_insn_chain): Too.
5772 * ifcvt.c (find_if_block, find_cond_trap): Too.
5773 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
5774 * regmove.c (regmove_optimize): Too.
5775 * resource.c (find_basic_block): Too.
5776 * sched-ebb.c (schedule_ebbs): Too.
5777 * ssa-dce.c (find_control_dependence, find_pdom): Too.
5779 2002-05-21 Andreas Jaeger <aj@suse.de>
5781 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
5783 2002-05-21 Richard Henderson <rth@redhat.com>
5785 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
5786 unspec names, not numbers.
5788 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
5790 * doc/sourcebuild.texi: Mention snapshot-README and
5791 snapshot-index.html as needing updating for new front ends.
5793 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5795 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
5796 disabling checking, and avoid multiple evaluation of RTX.
5798 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
5800 * bitmap.c (bitmap_find_bit): Return early if we have the correct
5803 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
5805 * profile.c (gen_edge_profiler): Set alias set before the memory is
5808 2002-05-20 David S. Miller <davem@redhat.com>
5810 * cselib.c (max_value_regs): New.
5811 (cselib_lookup, cselib_invalidate_regno): Initialize it when
5812 adding new entries to the REG_VALUES table and we are dealing with
5814 (clear_table): Initialize it.
5815 (cselib_invalidate_regno): Use it to determine which hard
5816 registers to scan when mode is not VOIDmode.
5818 2002-05-20 Duraid Madina <duraid@fl.net.au>
5820 * tradcpp.c (fixup_newlines): Use old-style function header.
5822 2002-05-20 Krister Walfridsson <cato@df.lth.se>
5824 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
5826 2002-05-20 H.J. Lu (hjl@gnu.org)
5828 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
5830 * config/mips/mips.h (DFMODE_NAN): Defined.
5831 (SFMODE_NAN): Likewise.
5833 2002-05-20 Dale Johannesen <dalej@apple.com>
5835 * combine.c (cant_combine_insn_p): Back out my
5838 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5840 * params.c: Fix formatting.
5841 * params.h: Likewise.
5842 * predict.c: Likewise.
5843 * prefix.c: Likewise.
5844 * print-rtl.c: Likewise.
5845 * print-tree.c: Likewise.
5846 * profile.c: Likewise.
5848 2002-05-20 H.J. Lu (hjl@gnu.org)
5850 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
5852 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
5854 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
5855 switches straight on to the assembler, do not abbreviate them.
5856 * config/arm/elf.h (ASM_SPEC): As above.
5857 * config/arm/semi.h (ASM_SPEC): As above.
5858 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
5859 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
5860 -mcpu=xscale on to the assembler by default.
5861 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
5863 2002-05-20 Richard Henderson <rth@redhat.com>
5865 * cse.c (canon_hash): Reorder do_not_record test. Always
5866 allow pic_offset_table_rtx.
5868 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
5870 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
5871 (expand_binop): Ditto (3 times).
5873 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
5875 * Makefile.in (distclean): Remove QMTest stuff.
5876 (QMTEST_PATH): New variable.
5877 (QMTESTFLAGS): Likewise.
5878 (QMTESTRUNFLAGS): Likewise.
5880 (QMTEST_GPP_TESTS): Likewise.
5881 (QMTEST_DIR): Likewise.
5882 (QMTEST_DIR/context): New target.
5883 (qmtest-g++): Likeise.
5884 (qmtest-gui): Likewise.
5885 (QMTEST_DIR/gpp-expected.qmr): Likewise.
5887 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
5889 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
5890 an altivec register if TARGET_ALTIVEC.
5892 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
5893 to ALTIVEC_VECTOR_MODE.
5894 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
5895 (rs6000_va_arg): Vectors may go in registers if they are not
5898 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
5900 * protoize.c: Fix formatting.
5902 2002-05-19 Richard Henderson <rth@redhat.com>
5904 * gensupport.c (init_include_reader): Merge into ...
5905 (process_include): ... here. Simplify composite path creation.
5906 Plug memory leaks. Fix file/line number tracking. Do not
5907 process_define_cond_exec. Return void.
5908 (process_rtx): Don't check process_include return value.
5910 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5912 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
5914 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
5915 traversing basic block chain.
5916 (create_basic_block_structure, create_basic_block): Declaration changed.
5917 (link_block, unlink_block): Declare.
5918 * cfg.c (entry_exit_blocks): Initialize new fields.
5919 (link_block, unlink_block): New.
5920 (expunge_block_nocompact): Unlink basic block.
5921 (dump_flow_info): Print prev_bb/next_bb fields.
5922 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
5923 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
5924 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
5925 * cfgrtl.c (create_basic_block_structure, create_basic_block,
5926 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
5927 (verify_flow_info): Check that list agrees with numbering.
5929 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
5931 * c-common.c (preprocessing_asm): New macro.
5932 * c-lex.h (builtin_define, builtin_assert): Use pfile.
5936 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
5937 (CPP_SPEC): Simplify.
5938 (TARGET_CPU_CPP_BUILTINS): Update.
5939 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
5940 (CPP_SPEC): Simplify.
5941 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
5942 (TARGET_OS_CPP_BUILTINS): Update.
5943 * osf.h (CPP_XFLOAT_SPEC): Kill.
5944 (TARGET_OS_CPP_BUILTINS): Update.
5945 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
5946 * osf5.h (CPP_XFLOAT_SPEC): Kill.
5947 * vms.h (CPP_SUBTARGET_SPEC): Kill.
5948 (TARGET_OS_CPP_BUILTINS): Update.
5950 2002-05-19 Richard Henderson <rth@redhat.com>
5952 * varasm.c (default_binds_local_p): Fix typo.
5954 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
5956 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
5957 CONST_INT operand to the correct mode after adding 1 to it.
5959 2002-05-19 Mark Mitchell <mark@codesourcery.com>
5961 * config.gcc (powerpc-wrs-windiss*): New target.
5963 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5965 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
5968 2002-05-18 Mark Mitchell <mark@codesourcery.com>
5970 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
5972 * config.in: Regenerated.
5973 * configure: Regenerated.
5975 2002-05-19 Richard Henderson <rth@redhat.com>
5977 * target-def.h (TARGET_BINDS_LOCAL_P): New.
5978 * target.h (struct gcc_target): Move boolean fields to the end.
5980 * varasm.c (default_binds_local_p): New.
5981 * output.h: Declare it.
5983 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
5984 * config/cris/cris.c (cris_encode_section_info): Likewise.
5985 * config/i386/i386.c (i386_encode_section_info): Likewise.
5986 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
5987 * config/sh/sh.c (sh_encode_section_info): Likewise.
5989 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
5990 (TARGET_BINDS_LOCAL_P): New.
5992 2002-05-19 Richard Henderson <rth@redhat.com>
5994 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
5995 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
5996 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
5998 * toplev.c (display_help): Kill -a -ax help.
6000 * config/1750a/1750a.h, config/alpha/alpha.h,
6001 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
6002 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
6003 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
6004 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
6006 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
6007 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
6009 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
6010 (ix86_output_function_block_profiler): Kill.
6011 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
6012 (m68hc11_function_block_profiler): Kill.
6013 * config/m68hc11/m68hc11-protos.h: Update.
6014 * config/m88k/m88k.c (output_block_profiler): Kill.
6015 (output_function_block_profiler): Kill.
6016 * config/m88k/m88k-protos.h: Update.
6018 2002-05-19 Richard Henderson <rth@redhat.com>
6020 * system.h (STRIP_NAME_ENCODING): Poison it.
6021 * output.h (STRIP_NAME_ENCODING): Remove.
6022 (default_strip_name_encoding): Declare.
6023 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
6024 * target.h (strip_name_encoding): New.
6025 * varasm.c (default_strip_name_encoding): New.
6027 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
6028 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
6029 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
6030 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
6031 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
6032 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
6033 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
6034 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
6035 config/v850/v850.h: Use the hook, not the macro.
6037 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6038 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
6039 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
6040 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
6041 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
6042 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
6043 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
6044 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
6045 config/v850/v850.c, config/v850/v850.h:
6046 Move STRIP_NAME_ENCODING to out-of-line function and add
6047 TARGET_STRIP_NAME_ENCODING.
6049 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
6050 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
6051 with TARGET_STRIP_NAME_ENCODING referencing existing function;
6052 make function static.
6054 * xcoffout.c: Include target.h
6055 * Makefile.in (xcoffout.o): Update.
6057 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
6058 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
6059 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
6060 reloc argument unused.
6061 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
6063 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
6064 STRIP_NAME_ENCODING docs.
6066 2002-05-19 Andreas Jaeger <aj@suse.de>
6068 * gengenrtl.c: Add prototype for excluded_rtx.
6070 * real.h: Add prototype for exact_real_truncate.
6072 2002-05-18 Richard Henderson <rth@redhat.com>
6074 * system.h (ENCODE_SECTION_INFO): Poison it.
6075 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
6076 * target.h (encode_section_info): New.
6077 * varasm.c (make_decl_rtl, output_constant_def): Use it.
6078 * hooks.c (hook_tree_int_void): New.
6079 * hooks.h: Declare it.
6081 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6082 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
6083 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
6084 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
6085 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
6086 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
6087 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6088 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
6089 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
6090 config/mcore/mcore-protos.h, config/mcore/mcore.c,
6091 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
6092 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
6093 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
6094 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
6095 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
6096 referencing existing function. Make function static.
6098 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
6099 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
6100 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
6101 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
6102 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
6103 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
6104 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
6105 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
6106 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
6107 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
6108 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
6109 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
6110 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
6111 Move ENCODE_SECTION_INFO to out-of-line function and add
6112 TARGET_ENCODE_SECTION_INFO.
6114 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
6115 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
6117 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
6119 (switch_to_section): Replace in_rdata case with in_readonly_data.
6121 * config/h8300/h8300.c (h8300_encode_label): Make static.
6122 * config/h8300/h8300-protos.h: Update.
6124 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
6125 from rs6000_encode_section_info; make static.
6126 (rs6000_xcoff_encode_section_info): New.
6128 * config/v850/v850.c (v850_encode_data_area): Make static.
6129 * config/v850/v850-protos.h: Update.
6131 * config/vax/vax.c: Include flags.h.
6132 (vms_select_section): Fix typo.
6134 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
6135 ENCODE_SECTION_INFO docs.
6137 2002-05-18 Richard Henderson <rth@redhat.com>
6139 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
6140 REGISTER_TARGET_PRAGMAS.
6141 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
6143 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
6145 2002-05-18 Richard Henderson <rth@redhat.com>
6147 * system.h (SELECT_RTX_SECTION): Poison.
6148 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
6149 * target.h (select_rtx_section): New.
6150 * varasm.c (output_constant_pool): Use it.
6151 (default_select_rtx_section, default_elf_select_rtx_section): New.
6152 * output.h: Declare them.
6154 * config/darwin.h (SELECT_RTX_SECTION): Move ...
6155 * config/darwin.c (machopic_select_rtx_section): ... here.
6156 * config/darwin-protos.h: Update.
6158 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
6159 * config/nextstep.c (machopic_select_rtx_section): ... here.
6160 (nextstep_select_section): Rename variable to avoid macro clash.
6161 * config/nextstep-protos.h: Update.
6163 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
6164 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
6165 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
6166 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
6167 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
6168 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
6169 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
6170 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
6171 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
6172 (SELECT_RTX_SECTION): Remove.
6174 * config/darwin.h, config/elfos.h, config/nextstep.h,
6175 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
6176 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
6177 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
6178 config/sparc/lynx.h, config/xtensa/xtensa.c
6179 (TARGET_ASM_SELECT_RTX_SECTION): New.
6181 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
6182 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
6183 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
6184 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
6185 (ia64_aix_select_rtx_section): New.
6186 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
6188 * config/mips/mips.c (mips_select_rtx_section): Make static.
6189 Support ELF SHF_MERGE features.
6190 * config/mips/mips-protos.h: Update.
6191 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
6192 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
6193 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
6194 make static, fall back to default_elf_select_rtx_section.
6195 * config/rs6000/rs6000-protos.h: Update.
6196 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
6197 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
6198 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
6199 * config/romp/romp.c (romp_select_rtx_section): New.
6200 * config/s390/s390.c (s390_select_rtx_section): New.
6201 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
6202 declarations before target macro definition.
6203 (xtensa_emit_call): Use static buffer.
6204 (xtensa_select_rtx_section): New.
6205 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
6206 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
6207 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
6209 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
6210 SELECT_RTX_SECTION docs.
6212 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
6214 * i386.md (movsi/movdi): Fix template.
6215 (sse2 patterns): Set attributes consistently.
6217 * i386.md (pushqi2, ashrqi_*): Fix constraint.
6219 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
6221 * optabs.c (complex_part_zero_p): New.
6222 * (expand_cmplxdiv_straight): Use it.
6223 * (expand_cmplxdiv_wide): Ditto.
6224 * (expand_binop): Ditto.
6226 2002-05-18 Richard Henderson <rth@redhat.com>
6228 * final.c (HAVE_READONLY_DATA_SECTION): New.
6229 (shorten_branches): Use it instead of ifdefs.
6230 * varasm.c (enum in_section): Add in_readonly_data.
6231 (text_section, data_section): Tidy.
6232 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
6234 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
6235 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
6236 (READONLY_DATA_SECTION): Don't undef.
6238 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
6239 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
6240 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
6242 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
6243 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
6244 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
6245 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
6247 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
6248 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
6249 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6250 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
6251 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
6252 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
6253 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
6254 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
6255 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
6257 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
6258 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
6259 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
6260 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
6261 config/pa/pa64-hpux.h, config/sparc/litecoff.h
6262 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
6264 * config/elfos.h, config/netware.h, config/svr3.h,
6265 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6266 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6267 config/h8300/h8300.h, config/i386/i386-interix.h,
6268 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6269 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
6271 * config/elfos.h, config/netware.h, config/svr3.h,
6272 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6273 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
6274 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6275 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
6277 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
6278 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
6279 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
6280 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
6281 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
6282 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
6283 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
6284 config/rs6000/sysv4.h, config/v850/v850.h
6285 (EXTRA_SECTIONS): Remove in_const/in_rdata.
6286 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
6288 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
6289 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
6290 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
6291 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
6292 * config/alpha/alpha.c (alpha_start_function): Likewise.
6293 (alpha_write_linkage): Likewise.
6294 * config/m32r/m32r.c (m32r_select_section): Likewise.
6295 * config/m88k/m88k.c (m88k_select_section): Likewise.
6296 * config/mips/mips.c (mips_select_rtx_section): Likewise.
6297 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
6298 (rs6000_elf_select_section): Likewise.
6299 * config/v850/v850.c (v850_select_section): Likewise.
6301 * config/1750a/1750a.h, config/i860/sysv3.h
6302 (READONLY_DATA_SECTION_ASM_OP): New.
6303 READONLY_DATA_SECTION_ASM_OP.
6304 * config/i386/interix.c, config/i386/winnt.c
6305 (i386_pe_unique_section): Always use .rdata prefix.
6306 * config/pa/som.h (readonly_data): Always switch to read-only section.
6307 (READONLY_DATA_SECTION): Predicate on flag_pic.
6308 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
6309 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
6310 (READONLY_DATA_SECTION): Update.
6312 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
6314 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
6315 is used without -Wformat.
6316 * c-common.h (warn_format_zero_length): Declare extern.
6317 * c-decl.c (warn_options): Add "format-zero-length".
6318 * c-format.c (warn_format_zero_length): Declare.
6319 (set_Wformat): Set warn_format_zero_length for -Wformat.
6320 (check_format_info): Only warn about zero-length formats if
6321 warn_format_zero_length is true. Include the format type
6322 name in the warning message.
6323 * doc/invoke.texi: Document -Wformat-zero-length.
6324 * testsuite/gcc.dg/format/zero-length-1.c: New test.
6326 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
6328 * timevar.c: Fix formatting.
6329 * tlink.c: Likewise.
6330 * toplev.c: Likewise.
6331 * tree-dump.c: Likewise.
6332 * tree-inline.c: Likewise.
6334 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
6336 * cppinit.c (cpp_post_options): If preprocessed, turn off
6337 traditional. If traditional, turn off column numbers.
6338 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
6339 * cpptrad.c (handle_newline): Update line_base.
6340 (skip_comment): Handle -Wcomment.
6342 2002-05-17 Zack Weinberg <zack@codesourcery.com>
6344 * cppinit.c (struct builtin): Remove unused fields.
6345 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
6346 (operator_array): New - was second half of builtin_array.
6347 (init_builtins): Simplify loop over builtin_array/operator_array.
6349 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
6351 * defaults.h (UNIQUE_SECTION): Remove.
6352 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
6354 2002-05-17 Richard Henderson <rth@redhat.com>
6356 * expr.c (init_expr_once): Don't use start/end_sequence.
6357 Use rtx_alloc instead of emit_insn.
6358 * toplev.c (lang_dependent_init): Run init_expr_once here ...
6359 (lang_independent_init): ... not here.
6361 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6363 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
6365 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
6367 * config/avr/avr.c (avr_regs_to_save): New function. Also check
6368 for fixed registers, possibly used for global register variables.
6369 (initial_elimination_offset, avr_output_function_prologue,
6370 avr_output_function_epilogue): Move common code to avr_regs_to_save.
6372 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
6374 * Makefile.in: Update for cpptrad.c.
6375 * cpphash.h (struct cpp_buffer): New members for buffer
6377 (struct cpp_reader): New members for traditional output.
6378 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
6379 * cppinit.c (cpp_create_reader): Set trad_line.
6380 (cpp_destroy): Free trad_out_base if used.
6381 (cpp_read_main_file): Overlay an empty buffer if traditional.
6382 (cpp_finish_options): Don't do builtins.
6383 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
6384 (cpp_handle_option): Handle it.
6385 * cpplex.c (continue_after_nul): New.
6386 (_cpp_lex_direct): Use handle_nul.
6387 * cpplib.h (struct cpp_options): New traditional option.
6388 * cpptrad.c: New file.
6390 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
6392 * c-common.c (c_common_init_options): Use C89 for Objective-C,
6393 and set the options flag.
6394 * cppinit.c (lang_flags): Remove objc.
6395 (lang_defaults): Remove OBJC and OBJCXX.
6397 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
6398 (cpp_handle_option): Remove -+ and -lang-objc++.
6399 For ObjC, just set a flag.
6400 (print_help): Update.
6401 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
6403 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6405 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
6406 bootstrap with -mips3.
6408 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
6410 * final.c: Fix formatting.
6411 * fix-header.c: Likewise.
6413 * fold-const.c: Likewise.
6414 * function.c: Likewise.
6416 2002-05-17 David S. Miller <davem@redhat.com>
6418 PR c/6689, PR optimization/6615
6419 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
6420 and make it a pointer to rtx. Update comments.
6421 (update_equiv_regs): When scanning for equivalences, record
6422 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
6423 it while making the equiv replacements.
6425 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6427 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
6429 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
6431 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
6432 when encoding visibility into SYMBOL_REF_FLAG.
6434 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
6436 * expr.c (force_operand): Fix reversed move.
6438 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
6440 * doc/install.texi (Testing): Mention two common DejaGnu warnings
6441 that can be ignored.
6443 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6445 * doc/install.texi (Final install): Recommend to install into a
6446 "clean" target directory.
6448 2002-05-17 Richard Henderson <rth@redhat.com>
6450 * config/ia64/ia64.md: Use braced strings instead of quoted strings
6451 for code blocks. Tidy whitespace.
6453 2002-05-17 Richard Henderson <rth@redhat.com>
6455 * hooks.c (hook_tree_bool_false): New.
6456 * hooks.h: Declare it.
6457 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
6458 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
6459 * target.h (select_section, unique_section): New.
6460 (in_small_data_p): New.
6461 * varasm.c (resolve_unique_section): Use hooks instead of macros.
6462 (variable_section, output_constant_def_contents): Likewise.
6463 (default_select_section, default_unique_section): New.
6464 (categorize_decl_for_section, default_elf_select_section): New.
6465 * output.h: Declare them.
6467 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
6468 (TARGET_ASM_SELECT_SECTION): New.
6469 (SELECT_SECTION): Move ...
6470 * config/darwin.c (machopic_select_section): ... here.
6471 * config/darwin-protos.h: Update.
6473 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
6474 (SELECT_SECTION): Move ...
6475 * config/nextstep.c (nextstep_select_section): ... here.
6476 * config/nextstep-protos.h: Update.
6478 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
6479 (TARGET_ASM_SELECT_SECTION): New.
6480 * config/svr3.h (SELECT_SECTION): Remove.
6482 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
6483 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
6484 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
6485 (alpha_encode_section_info): Use it.
6486 * config/alpha/alpha-protos.h: Update.
6487 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
6488 (SELECT_SECTION, UNIQUE_SECTION): Remove.
6489 (TARGET_ASM_SELECT_SECTION): New.
6490 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
6492 * config/arm/pe.h (UNIQUE_SECTION): Remove.
6493 (TARGET_ASM_UNIQUE_SECTION): New.
6495 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
6496 (avr_unique_section): Rename from unique_section; make static.
6497 * config/avr/avr-protos.h: Update.
6498 * config/avr/avr.h (UNIQUE_SECTION): Remove.
6500 * config/c4x/c4x.h (SELECT_SECTION): Remove.
6502 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
6503 (TARGET_ASM_UNIQUE_SECTION): New.
6504 * config/i386/i386-interix.h: Likewise.
6505 * config/i386/win32.h: Likewise.
6506 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
6507 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
6508 * config/i386/sco5.h (SELECT_SECTION): Remove.
6509 (TARGET_ASM_SELECT_SECTION): New.
6510 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
6512 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
6513 instead of SELECT_SECTION.
6514 * config/m68k/dpx2.h: Likewise.
6515 * config/rs6000/lynx.h: Likewise.
6517 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6518 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
6519 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
6520 (ia64_in_small_data_p): New.
6521 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
6522 (ia64_aix_select_section, ia64_aix_unique_section): New.
6523 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
6524 (SELECT_SECTION, UNIQUE_SECTION): Remove.
6526 * config/m32r/m32r.h (SELECT_SECTION): Remove.
6527 (TARGET_ASM_SELECT_SECTION): New.
6528 * config/m32r/m32r.c (m32r_select_section): Take align argument.
6529 * config/m32r/m32r-protos.h: Update.
6531 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
6532 (SELECT_SECTION): Move ...
6533 * config/m88k/m88k.c (m88k_select_section): ... here.
6535 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
6536 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
6537 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
6538 (mcore_unique_section): Make static.
6539 * config/mcore/mcore-protos.h: Update.
6541 * config/mips/elf.h (UNIQUE_SECTION): Remove.
6542 (TARGET_ASM_UNIQUE_SECTION): New.
6543 * config/mips/elf64.h: Likewise.
6544 * config/mips/iris6gld.h: Likewise.
6545 * config/mips/linux.h: Likewise.
6546 * config/mips/mips-protos.h: Update.
6547 * config/mips/mips.c (mips_select_section): Add align argument.
6548 * config/mips/mips.h (SELECT_SECTION): Remove.
6549 (TARGET_ASM_SELECT_SECTION): New.
6551 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6552 * config/mmix/mmix.c (mmix_select_section): Remove.
6553 (mmix_unique_section): Remove.
6554 * config/mmix/mmix-protos.h: Update.
6556 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
6557 (SELECT_SECTION): Move ...
6558 * config/pa/pa.c (pa_select_section): ... here.
6559 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
6561 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
6562 from rs6000_select_section and make static.
6563 (rs6000_elf_unique_section): Similarly.
6564 (rs6000_xcoff_select_section): From xcoff.h.
6565 (rs6000_xcoff_unique_section): Likewise.
6566 * config/rs6000/rs6000-protos.h: Update.
6567 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6568 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
6569 * config/rs6000/xcoff.h: Likewise.
6571 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
6572 (SELECT_SECTION): Move ...
6573 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
6575 * config/v850/v850.h (SELECT_SECTION): Move ...
6576 * config/v850/v850.c (v850_select_section): ... here.
6577 (TARGET_ASM_SELECT_SECTION): New.
6579 * config/vax/vms.h (SELECT_SECTION): Move ...
6580 * config/vax/vax.c (vms_select_section): ... here.
6581 (TARGET_ASM_SELECT_SECTION): New.
6583 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
6584 for the target hooks.
6586 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
6588 * config/arm/arm.c (emit_multi_reg_push): Do not set
6589 RTX_FRAME_RELATED_P on the SEQUENCE.
6591 2002-05-16 Richard Henderson <rth@redhat.com>
6593 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
6594 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
6596 2002-05-16 Richard Henderson <rth@redhat.com>
6598 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
6600 * config/ia64/ia64.c (saveable_obstack): Do not declare.
6602 2002-05-16 Richard Henderson <rth@redhat.com>
6604 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
6605 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
6606 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
6607 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
6608 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
6609 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
6610 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
6611 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
6612 Revert "Basic block renumbering removal", and two followup patches.
6614 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
6616 * lcm.c (optimize_mode_switching): Revert previous change.
6618 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6620 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
6621 with only extant block numbers.
6623 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
6625 * lcm.c (optimize_mode_switching): Fix typo.
6627 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6629 * flow.c (calculate_global_regs_live): Queue blocks in program order.
6631 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6633 * doc/install.texi (Configuration): Document PWDCMD.
6635 2002-05-16 Dale Johannesen <dalej@apple.com>
6637 * combine.c (cant_combine_insn_p): Reenable combinations
6638 involving hard regs unless CLASS_LIKELY_SPILLED_P.
6640 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
6642 * c-common.c (cb_register_builtins): Handle more built-ins
6643 here rather than in gcc.c specs.
6644 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
6645 (cpp_options): Pass -O flags even when only preprocessing.
6646 * toplev.c (set_fast_math_flags): New prototype.
6647 (fast_math_flags_set_p): New.
6648 (set_no_fast_math_flags): Remove.
6649 (decode_f_option): Update.
6650 * toplev.h (set_fast_math_flags): Update.
6651 (fast_math_flags_set_p): New.
6652 (set_no_fast_math_flags): Remove.
6654 * c4x/c4x.c (c4x_override_options): Update.
6656 2002-05-16 Zack Weinberg <zack@codesourcery.com>
6658 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
6659 Default-define here.
6660 (builtin_define_with_value): Can now wrap the expansion in
6661 quotation marks if such is wanted.
6662 (cb_register_builtins): Update calls to builtin_define_with_value.
6663 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
6665 (c_common_init): Set options->stdc_0_in_system_headers.
6666 * c-lex.h: Update prototype of builtin_define_with_value.
6667 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
6668 and REGISTER_PREFIX.
6670 * cppinit.c (VERS, ULP, C, X): Kill.
6671 (builtin_array): Remove entries for __VERSION__,
6672 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
6673 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
6675 (init_builtins): Kill off a bunch of now-dead code.
6676 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
6677 -fno-leading-underscore.
6678 (cpp_handle_option): Remove code to set user_label_prefix.
6679 (cpp_post_options): Likewise.
6681 * cpplib.h (struct cpp_options): Remove user_label_prefix.
6682 (stdc_0_in_system_headers): New.
6683 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
6684 stdc_0_in_system_headers) too to decide the value of __STDC__.
6686 * tradcpp.c (user_label_prefix): Kill.
6687 (main): Remove code handling -f(no-)leading-underscore.
6688 (initialize_builtins): Don't define __REGISTER_PREFIX__
6689 or __USER_LABEL_PREFIX__.
6690 (install_value): Wrap compound statement in dummy loop so the
6691 macro works properly in an if statement.
6694 2002-05-16 Janis Johnson <janis187@us.ibm.com>
6696 * loop.h (struct loop_info): Add member has_prefetch.
6697 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
6698 (prescan_loop): Initialize has_prefetch.
6699 (struct prefetch_info): Change prefetch_in_loop and
6700 prefetch_before_loop from bit fields to ints.
6701 (emit_prefetch_instructions): Several small fixes.
6702 (check_dbra_loop): Don't reverse loop that uses prefetch.
6704 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6706 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
6707 * configure.in: Likewise.
6708 * fixinc/check.tpl: Likewise.
6709 * fixinc/fixinc.dgux: Likewise.
6710 * fixinc/fixinc.svr4: Likewise.
6711 * fixinc/fixinc.winnt: Likewise.
6712 * fixinc/fixincl.sh: Likewise.
6713 * fixproto: Likewise.
6714 * configure: Regenerate.
6716 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6718 Basic block renumbering removal:
6719 * basic_block.h (struct basic_block_def): Renamed index to sindex,
6720 added prev_bb and next_bb fields.
6721 (n_basic_blocks): Renamed to num_basic_blocks.
6722 (last_basic_block): New, index of last basic block.
6723 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
6724 traversing basic block chain.
6725 (BLOCK_NUM): index -> sindex.
6726 (create_basic_block_structure, create_basic_block): Declaration changed.
6727 (debug_num2bb): Declare.
6728 (expunge_block_nocompact): Declaration removed.
6729 (link_block, unlink_block, compact_blocks): Declare.
6730 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
6731 * cfg.c (entry_exit_blocks): Initialize new fields.
6732 (clear_edges, alloc_block, expunge_block, cached_make_edge,
6733 redirect_edge_pred, dump_flow_info, dump_edge_info,
6734 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
6735 free_aux_for_edges): Modified.
6736 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
6737 (expunge_block_nocompact): Removed.
6738 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
6739 find_unreachable_blocks, create_edge_list, print_edge_list,
6740 verify_edge_list, flow_edge_list_print, remove_fake_successors,
6741 remove_fake_edges, flow_reverse_top_sort_order_compute,
6742 flow_depth_first_order_compute, flow_preorder_transversal_compute,
6743 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
6744 flow_dfs_compute_reverse_execute): Modified.
6745 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
6746 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
6748 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
6749 merge_blocks_move_predecessor_nojumps,
6750 merge_blocks_move_successor_nojumps, merge_blocks,
6751 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
6752 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
6753 * cfglayout.c (skip_insns_after_block, label_for_bb,
6754 record_effective_endpoints, scope_to_insns_finalize,
6755 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
6756 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
6757 cfg_layout_duplicate_bb): Modified.
6758 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
6759 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
6760 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
6761 flow_loops_find, flow_loop_outside_edge_p): Modified.
6762 * cfgrtl.c (create_basic_block_structure, create_basic_block,
6763 flow_delete_block, compute_bb_for_insn, split_block,
6764 try_redirect_by_replacing_jump, redirect_edge_and_branch,
6765 force_nonfallthru_and_redirect, tidy_fallthru_edge,
6766 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
6767 commit_edge_insertions, commit_edge_insertions_watch_calls,
6768 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
6769 purge_all_dead_edges): Modified.
6770 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
6771 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
6772 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
6774 * conflict.c (conflict_graph_compute): Modified.
6775 * df.c (FOR_ALL_BBS): Removed.
6776 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
6777 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
6778 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
6779 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
6780 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
6781 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
6782 * final.c (compute_alignments, final_scan_insn): Modified.
6783 * flow.c (verify_local_live_at_start, update_life_info,
6784 update_life_info_in_dirty_blocks, free_basic_block_vars,
6785 delete_noop_moves, calculate_global_regs_live,
6786 initialize_uninitialized_subregs, allocate_bb_life_data,
6787 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
6788 mark_used_reg, count_or_remove_death_notes): Modified.
6789 * function.c (thread_prologue_and_epilogue_insns): Modified.
6790 * gcse.c (struct null_pointer_info): Change typo of current_block
6792 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
6793 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
6794 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
6795 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
6796 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
6797 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
6798 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
6799 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
6800 pre_delete, one_pre_gcse_pass, compute_transpout,
6801 invalidate_nonnull_info, delete_null_pointer_checks_1,
6802 free_code_hoist_mem, compute_code_hoist_vbeinout,
6803 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
6804 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
6805 compute_store_table, build_store_vectors, insert_insn_start_bb,
6806 insert_store, replace_store_insn, free_store_memory, store_motion):
6808 * global.c (global_alloc, global_conflicts, mark_elimination,
6809 build_insn_chain): Modified.
6810 * graph.c (print_rtl_graph_with_bb): Modified.
6811 * haifa-sched.c (sched_init): Modified.
6812 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
6813 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
6814 if_convert): Modified.
6815 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
6816 compute_insert_delete, pre_edge_lcm, compute_available,
6817 compute_farthest, compute_nearerout, compute_rev_insert_delete,
6818 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
6820 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
6821 * loop.c (loop_dump_aux): Modified.
6822 * predict.c (combine_predictions_for_insn, estimate_probability,
6823 last_basic_block_p, process_note_prediction, process_note_predictions,
6824 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
6825 expensive_function_p, estimate_bb_frequencies,
6826 compute_function_frequency): Modified.
6827 * print-rtl.c (print_rtx): Modified.
6828 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
6829 get_exec_counts, compute_branch_probabilities, compute_checksum,
6830 branch_prob, find_spanning_tree): Modified.
6831 * recog.c (split_all_insns, peephole2_optimize): Modified.
6832 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
6833 convert_regs_1, convert_regs_2, convert_regs): Modified.
6834 * regclass.c (scan_one_insn, regclass): Modified.
6835 * regmove.c (mark_flags_life_zones, regmove_optimize,
6836 combine_stack_adjustments): Modified.
6837 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
6838 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
6839 * reorg.c (dbr_schedule): Modified.
6840 * resource.c (find_basic_block, init_resource_info): Modified.
6841 * sbitmap.c (sbitmap_intersection_of_succs,
6842 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
6843 sbitmap_union_of_preds): Modified.
6844 * sched-deps.c (init_dependency_caches): Modified.
6845 * sched-ebb.c (schedule_ebbs): Modified.
6846 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
6847 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
6848 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
6849 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
6850 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
6851 ssa_const_prop): Modified.
6852 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
6853 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
6854 * ssa.c (remove_phi_alternative, find_evaluations,
6855 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
6856 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
6857 make_regs_equivalent_over_bad_edges,
6858 make_equivalent_phi_alternatives_equival,
6859 compute_conservative_reg_partition,
6860 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
6861 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
6864 2002-05-16 Mark Mitchell <mark@codesourcery.com>
6866 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
6868 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
6870 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
6871 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
6872 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
6873 calling CONSTANT_POOL_ADDRESS_P.
6874 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
6875 to decide whether to define __arm__ or __thumb.
6876 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
6877 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
6879 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
6881 * config/arc/arc.h (CPP_PREDEFINES): Remove.
6883 (TARGET_CPU_CPP_BUILTINS): New.
6885 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
6887 * cpphash.h (cpp_macro): Move here, and make expansion a union.
6888 * cppmacro.c (cpp_macro): Remove.
6889 (enter_macro_context, replace_args, warn_of_redefinition,
6890 _cpp_create_definition, cpp_macro_definition): Update.
6892 2002-05-16 Jason Merrill <jason@redhat.com>
6894 * config/mips/mips.c (mips_output_external): Don't do sdata
6895 optimization for a variable with DECL_COMDAT set.
6897 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
6899 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
6900 Cleanups for accepting modifiers on pointers.
6901 Fix predicate typos.
6902 Allow long pointers as well as int pointers.
6904 2002-05-15 Richard Henderson <rth@redhat.com>
6906 * varasm.c (merge_weak): Remove special case for extern and common.
6908 2002-05-15 Matt Hiller <hiller@redhat.com>
6910 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
6912 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
6913 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
6914 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
6915 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
6916 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
6917 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
6919 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
6921 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
6923 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
6925 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
6926 ("altivec_mfvscr"): Read from VSCR.
6928 Add vscr sets for the following insns: altivec_vctuxs,
6929 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
6930 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
6931 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
6932 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
6933 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
6934 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
6935 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
6936 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
6937 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
6938 altivec_vsum2sws, altivec_vsumsws.
6940 * config/rs6000/rs6000.h: Add VSCR fixed register.
6941 (CALL_REALLY_USED_REGISTERS): Add vscr.
6942 (CALL_USED_REGISTERS): Same.
6943 (FIXED_REGISTERS): Same.
6944 (REG_ALLOC_ORDER): Same.
6945 (reg_class): Add VSCR_REGS.
6946 (REG_CLASS_NAMES): Same.
6947 (REG_CLASS_CONTENTS): Same.
6949 (REGISTER_NAMES): Add vscr.
6950 (DEBUG_REGISTER_NAMES): Same.
6951 (ADDITIONAL_REGISTER_NAMES): Same.
6952 (FIRST_PSEUDO_REGISTER): Increment.
6953 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
6955 2002-05-15 Jakub Jelinek <jakub@redhat.com>
6957 * fold-const.c (fold): Fix a typo.
6959 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
6961 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
6962 comparison against the highest or lowest integer value before
6963 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
6964 transformation and that of an unsigned comparison against 0
6967 2002-05-15 Richard Henderson <rth@redhat.com>
6969 * varasm.c (merge_weak): Error for any weakening after definition.
6970 Adjust weakening after use warning to catch more cases.
6971 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
6972 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
6974 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
6976 * invoke.texi (-malign-double): Re-add lost warning.
6978 * i386-protos.h (x86_output_mi_thunk): Declare.
6979 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
6980 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
6982 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
6983 when flag_asynchronous_unwind_tables is set.
6985 * flags.h (flag_reorder_functions): Declare.
6986 * function.c (prepare_function_start): Initialize frequnecy.
6987 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
6988 * Makefile.in (predict.o): Add dependency on target.h and params.h
6989 * defaults.h (HOT_TEXT_SECTION_NAME,
6990 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
6991 * predict.c (choose_function_section): New function.
6992 (estimate_bb_frequencies): Use it.
6993 * toplev.c (flag_reorder_functions): New global variable.
6994 (lang_independent_options): New.
6995 (parse_options_and_default_flags): Set.
6996 * varasm.c (assemble_start_function): Bypass functdion alignment
6997 for never executed functions.
6998 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
6999 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
7000 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
7003 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
7005 * predict.c: Inlude profile.h
7006 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
7007 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
7008 Use the information about maximal counter in the program.
7010 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
7012 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
7013 probably_never_executed_bb_p): New functions.
7014 * cfgcleanup.c (outgoing_edges_match): Use them.
7015 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
7016 (maybe_hot_bb_p, probably_cold_bb_p,
7017 probably_never_executed_bb_p): New functions.
7019 * function.h (function): Add new field function_frequency.
7020 * predict.c (compute_function_frequency): New function.
7021 (estimate_probability): Call it.
7023 2002-03-09 Jakub Jelinek <jakub@redhat.com>
7025 PR optimization/5172, optimization/5200
7026 * gcse.c (gcse_main): Disable store_motion.
7028 2002-05-14 Zack Weinberg <zack@codesourcery.com>
7030 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
7031 (c_common_nodes_and_builtins): Use it.
7032 (builtin_define_with_value): New function.
7033 (cb_register_builtins): Define __SIZE_TYPE__,
7034 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
7035 using builtin_define_with_value. Use consistent notation when
7036 defining __GXX_WEAK__.
7037 (WCHAR_TYPE_SIZE): Don't redefine.
7038 (combine_strings): Don't use WCHAR_TYPE_SIZE.
7040 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
7041 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
7042 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
7043 * tradcpp.c (initialize_builtins): Likewise.
7044 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
7046 * c-lex.h (builtin_define_with_value): Prototype.
7047 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
7048 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
7049 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
7051 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
7052 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
7053 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
7054 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
7055 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
7056 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
7057 config/sparc/sol2-bi.h, config/sparc/sparc.h:
7058 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
7059 to __SIZE_TYPE__ etc from all spec strings. When this makes
7060 extra specs empty, delete them.
7062 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
7064 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
7065 for PA8000 or generating dwarf2 call frame information.
7066 (output_call): Remove DO_FRAME_NOTES check from return pointer
7068 (following_call): Return 0 when scheduling for PA8000 or generating
7069 dwarf2 call frame information. Revise comment.
7071 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
7074 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
7075 and __IEEE_FP_INEXACT as appropriate.
7076 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
7077 (CPP_SPEC): Remove ieee defines.
7078 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
7080 2002-05-14 Richard Henderson <rth@redhat.com>
7082 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
7083 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
7085 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
7087 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
7089 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
7090 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
7091 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
7092 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
7093 (EXTRA_SPECS): Update.
7094 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
7095 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
7096 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
7097 define TARGET_OS_CPP_BUILTINS if necessary.
7099 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
7101 * gcc.c (cpp_options): Must pass -m* and -f* options
7102 to the front end even when only preprocessing.
7103 (cc1_options): Remove redundant -lang-c.
7104 * tradcpp.c (main): Ignore -m options.
7106 * lang-specs.h: Similarly.
7108 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
7110 * genautomata.c (transform_3): Add code for transformation
7111 `(A,B,...)+C -> A+C,B,...'.
7113 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
7115 * final.c (end_final): Do not output profile_arcs constructor, when
7116 no functions are instrumented.
7118 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
7120 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
7122 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7124 * doc/install.texi: Remove special markup originally required for
7125 HTML generation with texi2html.
7127 2002-05-14 Andreas Schwab <schwab@suse.de>
7129 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
7131 (UNIQUE_SECTION): Define to get small data correctly.
7133 * varasm.c (resolve_unique_section): Add third parameter
7134 flag_function_or_data_sections and use it instead of
7135 flag_function_sections.
7136 (assemble_start_function): Pass flag_function_sections.
7137 (asm_emit_uninitialised): Pass flag_data_sections.
7138 (assemble_variable): Likewise.
7140 2002-05-14 Richard Henderson <rth@redhat.com>
7142 * config/i386/i386.md: Use define_constants for unspec numbers.
7143 * config/i386/i386.c: Likewise.
7145 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
7147 * doc/contrib.texi: Update my entry.
7149 2002-05-13 Mark Mitchell <mark@codesourcery.com>
7151 * fixinc/inclhack.def (winidss_valist): Limit applicability.
7152 * fixinc/fixincl.x: Regenerated.
7153 * fixinc/tests/base/math.h: Update.
7154 * fixinc/tests/base/testing.h: Likewise.
7156 2002-05-13 Zack Weinberg <zack@codesourcery.com>
7158 * genattr.c (gen_attr): Don't emit a comma after the last
7161 2002-05-13 Richard Henderson <rth@redhat.com>
7163 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
7165 * recog.c (peephole2_optimize): Likewise.
7167 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
7169 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
7172 2002-05-13 Jeffrey A Law (law@redhat.com)
7174 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
7175 Update prototype and callers.
7176 (propagate_one_insn): Stack pointer adjustments kill MEMs on
7177 the mem_set_list which reference the stack pointer, as do
7178 calls to constant functions as they may clobber outgoing
7181 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
7183 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7184 (ia32_multipass_dfa_lookahead): New function.
7186 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
7188 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
7189 (translate_options): Remove 'V'.
7190 (process_command): Similarly.
7192 * invoke.texi: Remove documentation of 'V'.
7194 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7196 * config/s390/linux.h: Revert 2002-04-22 changes.
7198 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
7200 * config/fr30/fr30.md: Only allow splits of immediate loads
7201 if the destination is a register.
7203 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
7205 * Makefile.in (c-common.o, cppinit.o): Update.
7206 * c-common.c: Include except.h.
7207 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
7208 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
7209 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
7210 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
7211 CPP_PREDEFINES): Handle here.
7213 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
7214 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
7215 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
7216 TARGET_OS_CPP_BUILTINS.
7217 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
7218 (CPP_SPEC, EXTRA_SPECS): Update.
7219 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
7220 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
7221 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
7222 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
7223 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
7225 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
7226 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
7228 2002-05-12 Zack Weinberg <zack@codesourcery.com>
7230 * emit-rtl.c (global_rtl): Update comment.
7231 (const_double_htab, const_double_htab_hash,
7232 const_double_htab_hash, lookup_const_double): New.
7233 (const_int_htab_hash, const_int_htab_eq): Remove const
7234 qualifiers, which cause tons of warnings with RTL checking on.
7235 (gen_rtx_CONST_DOUBLE): Deleted.
7236 (const_double_from_real_value): New function - bears some
7237 resemblance to the former immed_real_const_1.
7238 (immed_double_const): Moved here from varasm.c and
7240 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
7241 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
7242 (gen_rtx): Use immed_double_const.
7243 (init_emit_once): Initialize the const_double_htab. Use
7244 REAL_VALUE_FROM_INT where possible. Can now use
7245 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
7246 * varasm.c (struct varasm_status): Remove x_const_double_chain.
7247 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
7248 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
7249 (init_varasm_status, mark_varasm_status): Don't touch
7250 x_const_double_chain.
7252 * output.h: Delete prototype for clear_const_double_mem.
7253 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
7254 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
7255 const_double_from_real_value, not immed_real_const_1, and use
7256 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
7258 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
7259 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
7260 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
7261 (gen_rtx_REG): Second arg is unsigned.
7263 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
7264 (excluded_rtx): New, return true for CONST_DOUBLE.
7265 (genmacro): Write nothing for excluded codes.
7266 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
7267 * expr.c (expand_expr): Likewise.
7268 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
7270 * toplev.c (rest_of_compilation): Don't call
7271 clear_const_double_mem.
7273 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
7274 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
7275 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
7276 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
7277 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
7278 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
7279 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
7280 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
7282 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7284 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
7286 2002-05-12 Tom Tromey <tromey@redhat.com>
7288 * tree.h (copy_node): Don't mention TREE_PERMANENT.
7290 2002-05-12 Zack Weinberg <zack@codesourcery.com>
7292 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
7293 (scan_comma_elt): New function. Accepts whitespace in comma lists.
7294 * gensupport.h: Prototype new routines.
7295 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
7297 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
7298 (next_comma_elt): Use scan_comma_elt.
7300 * config/i386/i386.md: Use new attribute notation to break up
7301 long lines in define_attr forms.
7303 2002-05-12 Richard Henderson <rth@redhat.com>
7305 * expr.c (compress_float_constant): New.
7306 (emit_move_insn): Use it.
7307 (float_extend_from_mem): New.
7308 (init_expr_once): Initialize it.
7309 * real.c (exact_real_truncate): New.
7311 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
7312 dropped into memory; penalize for size.
7313 (RTX_COSTS): FLOAT_EXTEND is free.
7314 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
7315 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
7317 2002-05-12 Richard Henderson <rth@redhat.com>
7319 * profile.h (profile_info): Add missing extern to declaration.
7320 * profile.c (profile_info): Define it.
7322 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7324 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
7325 used for DImode and TImode.
7327 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
7329 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
7332 2002-05-11 Zack Weinberg <zack@codesourcery.com>
7334 * config/rs6000/rs6000.c (rs6000_default_long_calls,
7335 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
7336 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
7337 (rs6000_override_options): Handle -m(no-)longcall.
7338 (init_cumulative_args, output_mi_thunk): Check for both
7339 longcall and shortcall attributes on the function.
7340 (rs6000_attribute_table): Add "shortcall".
7341 (rs6000_handle_longcall_attribute): Update comment.
7342 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
7343 altivec_expand_ternop_builtin): Add default clauses to switches
7344 to silence warnings.
7346 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
7347 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
7348 (TARGET_OPTIONS): Add longcall and no-longcall.
7350 * config/rs6000/rs6000.md (call_nonlocal_sysv,
7351 call_value_nonlocal_sysv): Split by alternatives. One pair
7352 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
7353 the call cookie. The other pair accepts only LR/CTR and has
7356 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
7357 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
7359 * config/rs6000/rs6000-c.c: New file.
7360 * config/rs6000/t-rs6000-c-rule: New file.
7361 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
7362 Prototype rs6000_pragma_longcall.
7364 * doc/extend.texi: Document shortcall attribute.
7365 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
7367 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7369 * reorg.c (dbr_schedule): Remove unnecessary test.
7371 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
7373 * i386.md (testsi to testqi spliters): New.
7375 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
7377 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
7379 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
7381 * basic-block.h: New flag EDGE_CAN_FALLTHRU
7382 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
7383 that can be made fallthru.
7385 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
7387 * cfglayout.c (cleanup_unconditional_jumps): New static function.
7388 (cfg_layout_initialize): Use it.
7390 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
7392 * config/avr/avr.c (avr_mcu_types): Update supported devices.
7393 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7394 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7396 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
7398 * dbxout.c: Fix formatting.
7399 * dependence.c: Likewise.
7401 * diagnostic.c: Likewise.
7402 * doloop.c: Likewise.
7403 * dominance.c: Likewise.
7404 * doschk.c: Likewise.
7405 * dwarf2asm.c: Likewise.
7406 * dwarf2out.c: Likewise.
7407 * dwarfout.c: Likewise.
7409 2002-05-10 Richard Henderson <rth@redhat.com>
7411 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
7412 Convert integers constants as needed. Replace "nwords" field with
7414 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
7415 * function.h: Fix typo in comment.
7416 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
7418 2002-05-10 Roger Sayle <roger@eyesopen.com>
7420 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
7421 into the equivalent (signed char)c > 0.
7423 2002-05-10 Janis Johnson <janis187@us.ibm.com>
7425 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
7426 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
7427 (struct prefetch_info): Fix spelling of member bytes_accessed.
7428 (emit_prefetch_instructions): Make dump messages more regular;
7429 restructure code to add more dump messages; use new macros for
7430 heuristics. (There are no code generation changes in any of this).
7432 2002-05-10 David S. Miller <davem@redhat.com>
7434 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
7435 (struct rtx_def): Update unchanging flag comment.
7436 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
7437 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
7438 to be handled to INSN too.
7439 (dbr_schedule): Likewise.
7440 * resource.c (next_insn_no_annul): Likewise.
7442 * cse.c (rtx_cost): Remove multiplication by power of 2 special
7445 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7447 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
7448 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
7449 (possibly) work around broken /bin/sh.
7451 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7453 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
7454 . as N64/N32 libgcc_s.so subdirs.
7456 2002-05-10 David S. Miller <davem@redhat.com>
7458 * config/sparc/sparc.md: Use define_constants for unspec numbers.
7460 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
7462 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
7464 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
7465 * doc/rtl.texi: Document these macros more accurately.
7466 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
7467 JUMP_INSNs and CALL_INSNs.
7468 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
7469 or INSN_FROM_TARGET_P if the code is appropriate.
7471 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
7473 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
7474 before using SYMBOL_REF_FLAG (addr).
7476 * config/avr/avr-protos.h (avr_io_address_p): Declare.
7477 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
7478 Make non-static. Update all callers.
7479 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
7480 New insns to clear/set/test a single bit in I/O address space.
7482 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7484 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
7486 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7488 * Makefile.in: Update.
7489 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
7490 builtin_define_std): New.
7491 (c_common_init): Register CPP builtins callback.
7492 * c-common.h (flag_iso, flag_undef): New.
7493 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
7494 * c-lex.c: Don't include target.h.
7495 (cb_register_builtins): Move to c-common.c.
7496 (init_c_lex): Don't register hook here.
7497 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
7498 (cpp_define, cpp_assert): Remove.
7499 * gcc.c (cc1_options): Pass -undef to front end.
7500 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
7501 (TARGET_INITIALIZER): Update.
7502 * target.h (struct cpp_reader): Don't predeclare.
7503 (struct gcc_target): Remove cpp builtin hook.
7504 * tree.c (default_register_cpp_builtins): Remove.
7508 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7510 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
7512 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7514 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
7515 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
7517 2002-05-09 Jakub Jelinek <jakub@redhat.com>
7519 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
7520 * config/sparc/libgcc-sparc-glibc.ver: New file.
7521 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
7522 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
7524 2002-05-09 Jakub Jelinek <jakub@redhat.com>
7527 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
7528 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
7529 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
7531 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
7532 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
7533 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
7534 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
7536 2002-05-09 Richard Henderson <rth@redhat.com>
7538 * config/ia64/ia64.md: Use define_constants for unspec numbers.
7539 * config/ia64/ia64.c: Likewise.
7541 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
7543 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
7544 (save_restore_insns): Likewise.
7545 (mips_expand_prologue, mips_expand_epilogue): Update callers.
7546 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
7548 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
7550 * athlon.md, k6.md, pentium.md, ppro.md): New files.
7551 * i386.md: Move scheduling information into new files.
7553 * i386.md (type attribute): Add "rotate" for rotate insns.
7554 (rotate insns): Set type to "rotate".
7555 (various attributes and function units): Treat rotate like shift.
7556 (pent_pair attribute): Only rotates by one bit position are
7558 (sbb insns): Explicitly set pent_pair attribute on a couple
7559 that were missing it.
7561 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
7563 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
7564 make sure that buffer starts on odd word address.
7565 (sh_va_arg): Skip odd fp registers when reading a double precision
7568 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7570 * tree.h (preserve_data, object_permanent_p, type_precision):
7573 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7575 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
7576 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
7578 * cpp.texi: Update for removal of obsolete features.
7580 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
7581 Jeffrey A Law (law@redhat.com)
7583 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
7584 the DFA interface for Pentium processors.
7585 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
7586 (attr_pent_pair, ix86_pent_find_pair): Remove.
7587 (ix86_sched_reorder_pentium): Remove.
7588 (ix86_sched_reorder): Remove reordering for Pentium.
7589 * i386.md (Pentium scheduling): Rewrite using DFA description.
7591 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
7593 * cfganal.c (can_fallthru): Fix fast path.
7594 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
7595 with edges to the next block.
7597 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
7598 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
7600 * final.c (end_final): Use C trees to output data structures for profiling.
7602 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
7603 (profile.o): New dependency profile.h
7604 (final.o): New dependency profile.h
7605 * profile.h: New file. New global structure profile_info.
7606 * final.h (count_edges_instrumented_now): Declare.
7607 (current_function_cfg_checksum): Declare.
7608 (function_list): New structure.
7609 (functions_head, functions_tail): New static variables.
7610 (end_final): Emits more data, removed some -ax stuff.
7611 (final): Stores function names and chcksums.
7612 * gcov-io.h (__write_gcov_string): New function.
7613 (__read_gcov_string): New function.
7614 * gcov.c (read_profile): New function.
7615 (create_program_flow_graph): Uses read_profile instead of reading
7617 (read_files): Removed da_file checking, it's done by read_profile now.
7618 * libgcc2.c (bb_function_info): New structure.
7619 (bb): New field in structure, removed some -ax stuff.
7620 (__bb_exit_func): Changed structure of da_file.
7621 * profile.c (count_edges_instrumented_now): New global variable.
7622 (current_function_cfg_checksum): New global variable.
7623 (max_counter_in_program): New global variable.
7624 (get_exec_counts): New function.
7625 (compute_checksum): New function.
7626 (instrument_edges): Sets count_edges_instrumented_now.
7627 (compute_branch_probabilities): Uses get_exec_counts instead of
7629 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
7630 (init_branch_prob): Removed da_file checking, done in get_exec_counts
7632 (end_branch_prob): Removed da_file checking, done in get_exec_counts
7634 * gcov.texi: Updated information about gcov file format.
7636 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
7638 * sbitmap.c: Fix formatting.
7640 * scan-decls.c: Likewise.
7641 * sched-deps.c: Likewise.
7642 * sched-ebb.c: Likewise.
7643 * sched-rgn.c: Likewise.
7644 * sched-vis.c: Likewise.
7645 * sdbout.c: Likewise.
7646 * sibcall.c: Likewise.
7647 * simplify-rtx.c: Likewise.
7649 * ssa-ccp.c: Likewise.
7650 * ssa-dce.c: Likewise.
7652 * stor-layout.c: Likewise.
7653 * stringpool.c: Likewise.
7655 2002-05-09 David S. Miller <davem@redhat.com>
7657 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
7659 2002-05-07 David S. Miller <davem@redhat.com>
7661 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
7662 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
7663 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
7664 library implementation clobbers the output before the inputs
7665 are fully consumed, use stack temporary for the output.
7667 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
7669 * config/netbsd.h (CPP_SPEC): Remove.
7670 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
7671 * config/i386/netbsd.h (CPP_SPEC): Define.
7672 * config/ns32k/netbsd.h (CPP_SPEC): Define.
7673 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
7674 * config/sparc/netbsd.h (CPP_SPEC): Define.
7675 * config/vax/netbsd.h (CPP_SPEC): Define.
7677 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
7679 * read-rtl.c: Fix formatting.
7681 * recog.c: Likewise.
7682 * regclass.c: Likewise.
7683 * regmove.c: Likewise.
7684 * reg-stack.c: Likewise.
7685 * reload1.c: Likewise.
7686 * reload.c: Likewise.
7687 * resource.c: Likewise.
7688 * rtlanal.c: Likewise.
7690 * rtl-error.c: Likewise.
7692 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
7694 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
7695 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
7697 2002-05-08 Bernd Schmidt <bernds@redhat.com>
7699 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
7700 use __SSE2__ macro instead.
7701 * config/i386/xmmintrin.h: Likewise.
7703 2002-05-08 Janis Johnson <janis187@us.ibm.com>
7705 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
7706 and use it in all invocations of these macros. Clean up comments.
7707 * rtl.c (rtl_check_failed_flag): Add an argument for the name
7708 of the flag access macro whose check failed.
7709 * doc/rtl.texi (Flags): Document additional flag uses.
7711 2002-05-08 Robert Spier <rspier@pobox.com>
7712 Neil Booth <neil@daikokuya.demon.co.uk>
7714 PR preprocessor/6521
7715 * cppfiles.c (handle_missing_header): Don't do anything
7716 different for <> includes.
7718 * cppopts.texi: Update documentation for -MG.
7720 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
7722 * cpplex.c (cpp_interpret_charconst): Truncate as well as
7725 * cpp.texi: Clarify multichar charconst valuation.
7727 2002-05-08 Mark Mitchell <mark@codesourcery.com>
7729 * doc/invoke.texi: Document -mwindiss option.
7731 2002-05-08 Jason Merrill <jason@redhat.com>
7733 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
7735 * dwarf2out.c (gen_type_die): Abort on broken recursion.
7738 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
7741 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
7743 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
7744 little-endian multilibs to override arm/thumb multilibs.
7745 Do not build hardware floating point multilibs, nor apcs-26
7746 multilibs for the Thumb.
7748 2002-05-08 Mark Mitchell <mark@codesourcery.com>
7751 * varasm.c (mark_weak): New function.
7752 (merge_weak): Use it. Do not call declare_weak.
7753 (declare_weak): Use merge_weak.
7755 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
7757 * cse.c (dead_libcall_p): Update counts.
7758 (delete_trivially_dead_insns): Update call of dead_libcall_p.
7760 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
7762 * cfglayout.c (function_tail_eff_head): Rename to ...
7763 (function_footer): ... this one.
7764 (unlink_insn_chain): New functions.
7765 (label_for_bb): Only call block_label and emit debug message.
7766 (record_effective_endpoints): Actually unlink the headers and footers.
7767 (fixup_reorder_cahin): Re-insert the unlinked sequences.
7768 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
7769 * cfglayout.h (struct reorder_block_def): New fields footer/header;
7770 remove eff_head/eff_end.
7771 * rtl.h (set_first_insn): Declare.
7772 * emit-rtl.c (set_first_insn): New function.
7774 * cfglayout.c (fixup_reorder_chain): Dump duplicated
7775 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
7776 cfg_layout_duplicate_bb): New global function.
7777 (duplicate_insn_chain): New static function.
7778 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
7779 cfg_layout_duplicate_bb): Declare.
7780 (struct reorder_block_def): Add "original" field.
7781 * emit-rtl.c (emit_copy_of_insn_after): New function.
7782 * rtl.h (emit_copy_of_insn_after): Declare.
7784 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
7785 (fixup_reorder_chain): properly handle edges to exit block.
7787 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7788 Jan Hubicka <jh@suse.cz>
7790 * basic-block.h (note_prediction_to_br_prob): declare.
7791 * c-semantics.c: Inlucde predit.h
7792 (expand_stmt): predict GOTO_STMT as not taken.
7793 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
7794 (cleanup_cfg): Do not free tail_recursion_list.
7795 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
7796 (flow_delete_block): Kill predictions past end of basic block.
7797 * output.h (delete_unreachable_blocks): Declare.
7798 * predict.c (predicted_by_p, process_note_predictions,
7799 process_note_prediction, last_block_p): New function.
7800 (estimate_probability): Bypass loop on PRED_CONTINUE;
7801 do not handle noreturn heuristics; kill PRED_RETURN; add
7803 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
7804 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
7805 * predict.h (IS_TAKEN): New constant.
7806 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
7807 * rtl.c (NOTE_INSN_PREDICTION): New.
7808 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
7810 (insn_note): add NOTE_INSN_PREDICTION.
7811 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
7812 CFG; free tail_recursion_label_list.
7813 * stmt.c: Include predict.h;
7814 (return_prediction): New.
7815 (expand_value_return): Use it.
7816 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
7818 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
7820 * config/mips/mips.md: Name the unspecs with define_constant.
7821 (*HILO_delay): Rename to 'hilo_delay' (no star).
7822 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
7823 (reload_outdi, reload_outsi): Likewise.
7825 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
7827 * toplev.c: Fix formatting.
7829 2002-05-07 Janis Johnson <janis187@us.ibm.com>
7831 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
7832 * configure.in (ac_rtlflag_checking): New.
7833 * doc/install.texi (--enable-checking): Document RTL flag checking.
7835 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
7837 * c-common.c (c_common_init): Set options->unsigned_wchar.
7838 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
7839 group target dependencies.
7840 (init_builtins, cpp_handle_option): Update.
7841 * cpplex.c (cpp_interpret_charconst): Update.
7842 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
7843 signed_char to unsigned_char, group target dependencies.
7844 * defaults.h (WCHAR_UNSIGNED): Remove.
7845 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
7847 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
7848 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
7849 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
7850 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
7851 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
7853 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
7855 2002-05-07 Mark Mitchell <mark@codesourcery.com>
7857 * fixinc/inclhack.def (windiss_math1): New fix.
7858 (windiss_math2): Likewise.
7859 (windiss_valist): Likewise.
7860 * fixinc/fixincl.x: Regenerated.
7862 2002-05-07 Andreas Jaeger <aj@suse.de>
7864 * genautomata.c (output_internal_min_issue_delay_func): Add
7865 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
7866 (output_internal_trans_func): Likewise.
7868 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
7870 * pa.c (hppa_profile_hook): Use force_reg to get the address
7871 of the profile hook into an appropriate pseudo register.
7873 2002-05-07 Mark Mitchell <mark@codesourcery.com>
7875 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
7876 (LINK_START_SPEC): Handle it.
7877 (LINK_OS_SPEC): Likewise.
7878 (CPP_SPEC): Likewise.
7879 (STARTFILE_SPEC): Likewise.
7880 (LIB_SPEC): Likewise.
7881 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
7883 (CRTSAVRES_DEFAULT_SPEC): New macro.
7884 (LIB_WINDISS_SPEC): New macro.
7885 (CPP_OS_WINDISS_SPEC): Likewise.
7886 (STARTFILE_WINDISS_SPEC): Likewise.
7887 (ENDFILE_WINDISS_SPEC): Likewise.
7888 (LINK_START_WINDISS_SPEC): Likewise.
7889 (LINK_OS_WINDISS_SPEC): Likewise.
7890 * config/rs6000/windiss.h: New file.
7892 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
7894 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
7896 2002-05-06 David S. Miller <davem@redhat.com>
7898 * config/sparc/sparc.md (shift insns): Do not mask off
7899 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
7902 2002-05-06 Richard Henderson <rth@redhat.com>
7905 * expr.c (highest_pow2_factor_for_type): New.
7906 (expand_assignment): Use it.
7908 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
7910 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
7912 ("altivec_mfvscr"): Same.
7914 2002-05-06 Janis Johnson <janis187@us.ibm.com>
7916 * rtl.h (struct rtx_def): Update comments.
7917 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
7918 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
7919 RTL_FLAG_CHECK macros with list of expected RTL codes.
7920 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
7921 (rtl_check_failed_flag): New.
7922 * reload1.c (reload): Use REG macro before changing rtx to MEM.
7923 (reload_cse_noop_set_p): Check rtx code before using access macro.
7924 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
7925 before using access macro.
7927 2002-05-06 Janis Johnson <janis187@us.ibm.com>
7929 * doc/rtl.texi (Flags): Update to reflect current usage.
7931 2002-05-06 Roger Sayle <roger@eyesopen.com>
7934 * fold-const.c (sign_bit_p): New function.
7935 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
7936 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
7937 Reapply fold when converting (A & C) == C into (A & C) != 0.
7938 (fold_binary_op_with_conditional_arg): Fix typo in comment.
7940 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
7942 * c-common.c (warn_multichar): New.
7943 (c_common_init): Set CPP's warn_multichar.
7944 * c-common.h (warn_multichar): New.
7945 * c-decl.c (warn_multichar): Remove.
7946 * c-lex.c (lex_charconst): Update.
7947 * c-tree.h (warn_multichar): Remove.
7948 * cppexp.c (eval_token): Sign-extend charconst value.
7949 * cppinit.c (cpp_create_reader): Set warn_multichar.
7950 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
7951 each character. Update prototype. Sign-extend the result.
7952 * cpplib.h: Fix conditions.
7953 (struct cpp_options): Add new warning flag.
7954 (cpp_interpret_charconst): Update prototype.
7956 * cpp.texi: Update documentation.
7958 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
7960 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
7961 Fix typo in usage of allof instead of unit.
7963 2002-05-06 Richard Henderson <rth@redhat.com>
7965 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
7966 and any jump or call for IN.
7968 2002-05-06 Bernd Schmidt <bernds@redhat.com>
7970 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
7972 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
7974 2002-05-06 Roger Sayle <roger@eyesopen.com>
7976 * fold-const.c (lshift-double): Cast the high word to an unsigned
7977 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
7978 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
7979 avoid compiler warning. (fold): Remove redundant code from
7980 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
7982 2002-05-06 Jeff Law <law@redhat.com>
7984 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
7985 * pa.c (pa_adjust_cost): Remove all true dependency cost
7986 adjustments. Also remove support for non-DFA scheduling.
7987 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
7988 to adjust true dependency costs. Update various comments.
7989 (7100lc, 7200, 7300 scheduling): Simplify by combining the
7990 FP ALU & MPY units into a single unit.
7992 2002-05-06 Catherine Moore <clm@redhat.com>
7994 * config/v850/v850.c (compute_register_save_size): Make sure
7995 to count all of the registers that will be saved.
7997 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
7999 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
8001 2002-05-06 David S. Miller <davem@redhat.com>
8003 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
8004 allow result to overlap input operands in memory.
8006 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
8009 * cpp.texi: Update multichar charconst docs.
8011 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
8013 * cpplex.c (cpp_interpret_charconst): Sign-extend each
8014 character. Don't ignore excess characters. Treat
8015 multicharacter character constants as signed.
8016 (cpp_parse_escape): Clarify diagnostic.
8018 2002-05-05 Jakub Jelinek <jakub@redhat.com>
8020 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
8021 use add instead of shift.
8022 (ashldi3_sp64): Likewise.
8023 (ashlsi3_const1, ashldi3_const1): Remove.
8024 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
8025 * config/sparc/sparc.c (const1_operand): New.
8027 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
8029 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
8031 2002-05-05 Jakub Jelinek <jakub@redhat.com>
8034 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
8036 2002-05-05 Richard Henderson <rth@redhat.com>
8038 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
8039 memory latency adjustments.
8040 (alpha_variable_issue): Remove.
8041 (alpha_use_dfa_pipeline_interface): New.
8042 (alpha_multipass_dfa_lookahead): New.
8043 * config/alpha/alpha.md: Remove define_function_unit scheduling;
8044 include new dfa scheduling.
8045 (attr type): Add none.
8047 * config/alpha/ev4.md: New.
8048 * config/alpha/ev5.md: New.
8049 * config/alpha/ev6.md: New.
8051 2002-05-05 David S. Miller <davem@redhat.com>
8053 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
8055 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
8057 * cse.c: Fix formatting.
8058 * emit-rtl.c: Likewise.
8060 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
8062 * genautomata.c (initiate_states): Add additional guard to
8063 initialize `units_array'.
8065 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
8067 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
8068 process_unit_to_form_the_same_automaton_unit_lists,
8069 form_the_same_automaton_unit_lists
8070 check_unit_distributions_to_automata): New prototypes and
8072 (check_automata): Rename it into `check_automata_insn_issues'.
8073 (unit_decl): New fields `the_same_automaton_unit' and
8074 `the_same_automaton_message_reported_p'.
8075 (unit_decl_t): New typedef.
8076 (the_same_automaton_lists): New gloval variable.
8077 (unit_regexp, unit_set_el, units_array, units_cmp,
8078 output_get_cpu_unit_code_func): Use the typedef.
8079 (evaluate_max_reserv_cycles): Increment
8080 `description->max_insn_reserv_cycles'.
8081 (initiate_states): Don't increment `max_cycles_num'.
8082 (transform_insn_regexps): Move code around transformation of
8083 regexps from `generate'.
8084 (generate): Remove call of `transform_insn_regexps'.
8085 (expand_automata): Call `transform_insn_regexps' and
8086 `check_unit_distributions_to_automata'. Check errors before
8089 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
8090 automaton `ultrasparc3_1'.
8092 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
8094 * c-common.c (c_common_init): Set up CPP arithmetic.
8095 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
8096 something reasonable for the host.
8097 (sanity_checks): Add checks.
8098 (cpp_read_main_file): Call sanity_checks() from here...
8099 (cpp_post_options): ... not here.
8100 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
8101 * cpplib.h (struct cpp_options): New member int_precision.
8103 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8105 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
8107 2002-05-04 David S. Miller <davem@redhat.com>
8109 * config/sparc/linux.h, config/sparc/linux64.h
8110 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
8112 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
8114 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
8116 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
8119 2002-05-05 Tim Josling <tej@melbpc.org.au>
8121 * treelang; New directory for new sample language treelang.
8123 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
8125 * Makefile.in (c-lex.o): Update.
8126 * c-lex.c: Include target.h.
8127 (cb_register_builtins): New.
8128 (init_c_lex): Set builtins callback.
8129 * c-lex.h (cpp_define, cpp_assert): New prototypes.
8130 * cppinit.c (init_builtins): Use callback, including for
8132 * cpplib.h (struct cpp_callbacks): New member.
8133 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
8134 (TARGET_INITIALIZER): Update.
8135 * target.h (struct gcc_target): New hook.
8136 * tree.c (default_register_cpp_builtins): New.
8137 * tree.h (default_register_cpp_builtins): New.
8139 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
8141 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
8143 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
8144 (cpp_post_options): Move sanity checks to...
8145 (sanity_checks): New.
8146 * cpplex.c (maybe_read_ucs): Fix prototype.
8147 (parse_string, cpp_parse_escape): Cast for %c format specifier.
8148 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
8151 2002-05-04 Bernd Schmidt <bernds@redhat.com>
8153 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
8154 builtins. Use V2DI patterns instead of TI for logical operations.
8155 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
8156 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
8157 (ix86_expand_builtins): Change the pattern used for movntdq.
8158 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
8159 sse2_nandv2di3): New patterns.
8160 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
8162 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
8163 (cvtdq2pd): Correct mode on operand 1.
8164 (sse2_umulsidi3): Describe without unspec.
8165 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
8167 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
8168 (ashlv2di3): Likewise, from sse2_ashlv2di3.
8169 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
8170 ashlv4si3, ashlv2di3): Use SImode for shift count.
8171 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
8172 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
8174 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
8176 (__m128i, __m128d): New macros.
8177 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
8178 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
8179 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
8180 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
8181 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
8182 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
8183 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
8184 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
8185 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
8186 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
8187 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
8188 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
8189 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
8190 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
8191 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
8192 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
8193 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
8194 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
8195 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
8196 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
8197 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
8198 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
8199 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
8200 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
8201 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
8202 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
8203 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
8204 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
8205 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
8206 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
8207 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
8208 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
8209 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
8210 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
8211 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
8212 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
8213 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
8215 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
8216 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
8218 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
8220 * dwarf2out.c: Fix formatting.
8221 * varasm.c: Likewise.
8223 2002-05-04 David Edelsohn <edelsohn@gnu.org>
8226 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
8227 clobber and use result as temporary value.
8229 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
8231 * expr.c (force_operand): Use expand_simple_* to handle more
8234 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
8236 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
8238 (lex_charconst): Update for change in prototype of
8239 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
8241 * cpphash.h (BITS_PER_CPPCHAR_T): New.
8242 * cppinit.c (cpp_create_reader): Initialize them for no
8243 change in semantics.
8244 (cpp_post_options): Add sanity checks.
8245 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
8246 and truncation issues. Calculate in type cppchar_t.
8247 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
8248 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
8249 run-time dependent precision correctly. Return whether the
8250 result is signed or not.
8251 * cpplib.c (dequote_string): Use cppchar_t; update.
8252 * cpplib.h (cppchar_signed_t): New.
8253 struct cpp_options): New precision members.
8254 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
8255 * cppexp.c (eval_token): Update.
8257 2002-05-03 David S. Miller <davem@redhat.com>
8259 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
8260 * config/sparc/sparc.c (sparc_rtx_costs): New function
8261 implementing RTX_COSTS and CONST_COSTS.
8262 * config/sparc/sparc.h (CONST_COSTS): Delete.
8263 (RTX_COSTS_CASES): Define.
8264 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
8267 * config/sparc/sparc.md (DFA schedulers): Split out...
8268 * config/sparc/cypress.md, config/sparc/hypersparc.md,
8269 config/sparc/sparclet.md, config/sparc/supersparc.md,
8270 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
8272 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
8273 checks on it, always defined for Sparc.
8275 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
8276 Tweak, and add more detailed comments.
8278 2002-05-03 Zack Weinberg <zack@codesourcery.com>
8280 * Re-apply patch accidentally reverted with
8281 DFA scheduler merge: remove all rules and variables to slurp
8282 source files out of libiberty and rebuild them with HOST_CC.
8283 ($(HOST_PREFIX_1)varray.o): New rule.
8284 (genattrtab rule): Word wrap.
8286 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
8288 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
8289 (CPP_SUBTARGET_SPEC): Define.
8290 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
8291 cpp_subtarget specs.
8292 (CPP_SPEC): Redefine to include %(cpp_subtarget).
8294 2002-05-03 David S. Miller <davem@redhat.com>
8296 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
8297 * target.h (struct gcc_target): Delete cycle_display member.
8299 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
8300 (rtx_needs_barrier): Delete reference to cycle_display unspec.
8301 (ia64_sched_reorder2): Mention need for cycle display handling
8302 once such notes exist.
8304 2002-05-03 Richard Henderson <rth@redhat.com>
8306 * real.c (etoasc): Strip most trailing zeros for clarity.
8307 * sched-vis.c: Include real.h.
8308 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
8309 * Makefile.in (sched-vis.o): Add real.h.
8311 2002-05-03 David S. Miller <davem@redhat.com>
8313 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
8316 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
8318 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
8319 when we get an out of range literal.
8320 (altivec_expand_ternop_builtin): Same.
8321 (altivec_expand_unop_builtin): Same.
8322 (altivec_expand_builtin): Same, for dss.
8323 (altivec_expand_builtin): Use trees instead of rtl when
8324 determining literal argument validity.
8326 2002-05-03 David S. Miller <davem@redhat.com>
8328 Delete cycle display scheduling hook.
8329 * config/ia64/ia64.c (ia64_cycle_display,
8330 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
8331 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
8332 and use emit_insn_before instead of ia64_emit_insn_before.
8333 * config/ia64/ia64.md (unspec usage): Delete cycle display.
8334 (cycle_display): Delete insn pattern.
8335 * config/sparc/sparc.md (unspec usage): Delete cycle display.
8336 (cycle_display): Delete insn pattern.
8337 * config/sparc/sparc.c (sparc_cycle_display,
8338 TARGET_SCHED_CYCLE_DISPLAY): Delete.
8339 * doc/md.texi (cycle_display): Don't mention.
8340 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
8342 2002-05-03 Richard Henderson <rth@redhat.com>
8344 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
8345 * recog.h: Declare them.
8347 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
8348 * config/sparc/sparc.md: Use store_data_bypass_p instead.
8349 * config/sparc/sparc-protos.h: Update.
8351 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
8353 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
8354 -D__arch64__. Add -D_LP64.
8355 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
8357 (CPP_ARCH64_SPEC): Likewise.
8358 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
8359 (NO_BUILTIN_SIZE_TYPE): Undef.
8361 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
8363 * genautomata.c (min_issue_delay_pass_states): Change return type
8365 (min_issue_delay_pass_states): Change the algorithm.
8366 (min_issue_delay): Set up min_insn_issue_delay for the state.
8367 (output_min_issue_delay_table): Interchange the nested loops and
8368 and initiate min_insn_issue_delay for states.
8370 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
8372 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
8375 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
8377 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
8380 2002-05-03 Richard Henderson <rth@redhat.com>
8383 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
8384 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
8385 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
8386 code before JUMP, not EARLIEST.
8388 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
8390 * c-format.c (check_format_info_main): Don't check for presence of
8391 parameter for * width until after operand number has been read,
8392 and only check for it if format parameters are available.
8395 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
8397 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
8398 (LINK_SPEC): Undef before defining.
8400 2002-05-03 Jakub Jelinek <jakub@redhat.com>
8402 PR preprocessor/6489
8403 * tradcpp.c (fixup_newlines): New.
8404 (main, finclude): Use it.
8406 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
8408 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
8409 * config/mips/mips.c (mips_unique_section): Strip encoding from
8412 2002-05-03 Jakub Jelinek <jakub@redhat.com>
8414 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
8417 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8419 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
8420 (Specific): Removed buildstats references.
8421 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
8422 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
8423 Accomodate Solaris versions beyond 8.
8424 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
8425 (Specific, *-*-solaris2.8): Removed, obsolete.
8427 2002-05-03 Jakub Jelinek <jakub@redhat.com>
8430 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
8431 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
8432 fill leaf_reg_remap with identity.
8433 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
8435 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
8437 * config/h8300/crti.asm: Remove trailing spaces.
8438 * config/h8300/h8300.c: Likewise.
8439 * config/h8300/lib1funcs.asm: Likewise.
8441 2002-05-02 Jason Merrill <jason@redhat.com>
8443 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
8444 * c-decl.c (c_init_decl_processing): Use it.
8445 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
8446 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
8447 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
8449 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
8451 * regrename.c: Fix formatting.
8454 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
8456 * i386.md (attribute memory): Handle compares properly.
8458 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
8460 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
8463 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
8465 * function.c: Fix formatting.
8467 2002-05-02 Jan Hubicka <jh@suse.cz>
8469 * haifa-sched.c (schedule_insn): Print table of instructions and
8471 (sched_block): Do not print ready list at verbosity level 1.
8472 * sched-vis.c (print_insn): Make global.
8473 * sched-ebb.c (ebb_print_insn): Rename from...
8474 (print_insn): ... this one.
8475 * sched-int.h (print_insn): Declare
8477 2002-05-02 Richard Henderson <rth@redhat.com>
8479 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
8480 emitted by cycle_display.
8482 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
8484 * doc/install.texi (*-*-freebsd*): Update to latest status.
8486 2002-05-02 Jakub Jelinek <jakub@redhat.com>
8489 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
8490 * config/float-sparc.h: Assume 128-bit long double if
8491 __LONG_DOUBLE_128__ is defined.
8493 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
8495 * genattrtab.c (write_function_unit_info): Add a dummy element
8496 when num_units == 0.
8498 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8500 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
8501 TYPE_MODE (double_type_node) instead of DFmode.
8503 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
8505 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
8507 * toplev.c (rest_of_compilation): Revert Richard's patch.
8509 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
8511 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
8513 2002-05-02 Catherine Moore <clm@redhat.com>
8515 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
8517 2002-05-02 Kazu Hirata <kazu@hxi.com>
8519 * combine.c: Fix comment typos.
8521 * genautomata.c: Likewise.
8525 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
8527 * doc/install.texi: State GNAT version requirements.
8529 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
8531 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
8532 of the frame pointer or arg pointer register which strict register
8533 checking is not enabled.
8535 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
8537 * gcc.dg/altivec-8.c: New.
8539 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
8540 PRE_INC and PRE_DEC for altivec modes.
8542 2002-05-01 Bruce Korb <bkorb@gnu.org>
8544 * fixinc/check.tpl(set-writable): make sure the function exists first
8545 * fixinc/inclhack.def(alpha_assert): fix test_text
8546 * fixinc/tests/base/assert.h: add in missing result
8548 2002-05-01 Jeff Law <law@redhat.com>
8550 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
8553 2002-05-01 Joel Brobecker <brobecker@gnat.com>
8555 * dbxout.c (dbxout_type): Emit size information for range types,
8556 as well, but only when using GDB extensions.
8558 2002-05-01 Richard Henderson <rth@redhat.com>
8560 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
8561 target-independent gnu binutils date test.
8563 2002-05-01 Richard Henderson <rth@redhat.com>
8565 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
8566 info before expunging the block.
8568 2002-05-01 Jakub Jelinek <jakub@redhat.com>
8570 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
8571 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
8572 -M -or -MM is in effect.
8574 2002-05-01 Zack Weinberg <zack@codesourcery.com>
8576 * config.gcc: Correct test of --enable-obsolete. Obsolete all
8577 A29k configurations.
8578 * doc/install.texi: Update to match.
8580 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8583 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
8584 for duplicates. Always loop over whole list.
8586 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8588 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
8590 2002-05-01 Joel Sherrill <joel@OARcorp.com>
8592 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
8595 2002-05-01 Joel Sherrill <joel@OARcorp.com>
8597 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
8599 2002-05-01 David Edelsohn <edelsohn@gnu.org>
8601 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
8602 (nabs_nopower): Same.
8603 (floatdisf2): New pattern.
8604 (absdi2): Convert to define_insn_and_split.
8609 (fix_trunctfdi2): Same.
8610 (fix_trunctfsi2): Same.
8612 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
8614 * doc/install.texi: Update Texinfo version requirement
8617 2002-05-01 Jakub Jelinek <jakub@redhat.com>
8619 PR target/6512, PR target/5628
8620 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
8621 when memory is not aligned.
8622 (movdf_insn_v9only_vis): Likewise.
8623 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
8624 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
8625 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
8627 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
8629 * gcc.dg/altivec-7.c: New.
8631 * config/rs6000/altivec.h: Cleanup.
8633 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
8635 * doc/invoke.texi (Option Summary): Add -mvrsave=.
8636 (RS/6000 and PowerPC Options): Document -mvrsave=.
8638 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
8639 (rs6000_altivec_vrsave_string): Same.
8640 (rs6000_override_options): Call rs6000_parse_vrsave_option.
8641 (rs6000_parse_vrsave_option): New.
8642 (rs6000_stack_info): Only generate vrsave instructions when
8643 TARGET_ALTIVEC_VRSAVE.
8645 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
8646 (rs6000_altivec_vrsave_string): Define extern.
8647 (rs6000_altivec_vrsave): Same.
8648 (TARGET_ALTIVEC_VRSAVE): New.
8650 2002-04-30 Richard Henderson <rth@redhat.com>
8653 * toplev.c (rest_of_compilation): Don't run cross-jump before
8656 2002-04-30 Tom Rix <trix@redhat.com>
8658 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
8659 check which_alternative.
8661 2002-04-30 Kazu Hirata <kazu@hxi.com>
8663 * cpplex.c: Fix comment formatting.
8664 * function.c: Likewise.
8665 * integrate.c: Likewise.
8666 * regrename.c: Likewise.
8667 * sibcall.c: Likewise.
8668 * simplify-rtx.c: Likewise.
8669 * tree-inline.c: Likewise.
8671 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
8673 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
8674 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
8675 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
8676 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
8677 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
8678 * pa/x-ada: New file. Define ADA_CFLAGS.
8680 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
8682 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
8683 from MMIX_LAST_REGISTER_FILE_REGNUM.
8684 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
8685 (struct machine_function): New member highest_saved_stack_register
8686 previously static variable in mmix.c.
8687 (MACHINE_DEPENDENT_REORG): Define.
8688 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
8689 (MMIX_OUTPUT_REGNO): New.
8690 (mmix_target_asm_function_prologue): Move calculation of last used
8691 saved-stack-register into...
8692 (mmix_machine_dependent_reorg): New function. Update to also handle
8694 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
8695 register names, simplify somewhat by new variable regno.
8696 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
8698 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
8699 emitting register names.
8700 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
8701 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
8703 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
8706 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
8708 2002-04-30 Richard Henderson <rth@redhat.com>
8710 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
8711 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
8712 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
8713 emit_tfmode_cvt): New.
8714 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
8715 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
8716 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
8717 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
8718 * config/sparc/sparc-protos.h: Update.
8720 2002-04-30 Janis Johnson <janis187@us.ibm.com>
8722 * install.texi (Final install): Add to the list of info to include
8723 in a report of a successful bootstrap, and add link to 3.1 list.
8725 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
8727 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
8728 (mode): Add vector modes
8729 (i387): Kill attribute.
8730 (unit): New attribute.
8731 (length_immediate): Grok new types.
8732 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
8733 (modrm): Use "unit".
8734 (memory): Handle MMX/SSE properly.
8735 (scheduling descriptions): Kill uses of fop1.
8736 (sse, mmx, fp patterns): Set type and mode properly.
8738 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
8740 * pa.c (override_options): Default to PA8000 scheduling.
8741 * doc/invoke.texi (HP-PA options): Mention newly added 7300
8742 scheduling parameter.
8744 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
8745 handling of double precision multiplies.
8747 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
8748 fpdiv and fpsqrt instructions.
8749 (7200 & 7300 scheduling): Fix typo in handling of
8750 store-load and store-store penalties.
8752 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8754 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
8755 mips. Add two missing commas.
8757 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
8759 * doc/contrib.texi (Contributors): Update Paolo Carlini's
8760 and Benjamin Kosnik's entries.
8762 2002-04-29 David S. Miller <davem@redhat.com>
8764 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
8765 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
8766 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
8767 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
8769 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8771 * combine.c (find_split_point): Use gen_int_mode.
8773 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
8775 Merging code from dfa-branch:
8777 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
8779 * genautomata.c (output_reserv_sets): Fix typo.
8781 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
8783 * genautomata.c (output_reserv_sets): Remove
8784 next_cycle_output_flag.
8786 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
8788 * sched-rgn.c (init_ready_list): Make the DFA code handle
8789 USE/CLOBBER insns in the same way as the traditional
8791 (new_ready): Similarly..
8793 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
8795 * haifa-sched.c (schedule_block): Change the DFA state only after
8798 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
8800 * pa.c (hppa_use_dfa_pipeline_interface): New function.
8801 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
8802 (override_options): Add PA7300 scheduling support.
8803 (pa_adjust_cost): Update various comments. Properly
8804 handle anti and output dependencies when using the
8806 (pa_issue_rate): Add PA7300 scheduling support.
8807 (pa_can_combine_p): Call extract_insn before calling
8808 constrain_operands (taken from mainline tree).
8809 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
8810 * pa.md (cpu attr): Add 7300. Rewrite pipeline
8811 descriptions using DFA descriptions. Add PA7300
8814 2002-03-30 David S. Miller <davem@redhat.com>
8816 Add UltraSPARC-III DFA scheduling support.
8817 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
8818 Update FP conditional move on register insn patterns to use it, as
8820 (define_attr cpu): Add ultrasparc3.
8821 (define_attr us3load_type): New, update integer load patterns to
8822 set it, as appropriate.
8823 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
8824 (rest): Add UltraSPARC3 scheduling description.
8825 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
8826 (PROCESSOR_ULTRASPARC3): New.
8827 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
8828 ({ASM,CPP}_CPU_SPEC): Likewise.
8829 (REGISTER_MOVE_COST): Likewise.
8830 (RTX_COSTS): Likewise.
8831 * config/sparc/sparc.c (sparc_override_options,
8832 sparc_initialize_trampoline, sparc64_initialize_trampoline,
8833 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
8834 sparc_issue_rate): Likewise.
8835 * config/sparc/sol2.h: Likewise.
8836 * config/sparc/sol2-sld-64.h: Likewise.
8837 * config/sparc/linux64.h: Likewise.
8839 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
8841 * doc/md.texi: Add comments about usage the latency time for the
8842 different dependencies and about case when two or more conditions
8843 in different define_insn_reservations returns TRUE for an insn.
8845 * doc/md.texi: Add reference for automaton based pipeline
8848 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
8850 * doc/passes.texi: Add missed information about genattrtab.
8852 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
8854 * genautomata.c (output_automata_list_transition_code): Check
8855 automata_list on NULL.
8857 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
8859 * genautomata.c (output_insn_code_cases,
8860 output_automata_list_min_issue_delay_code,
8861 output_automata_list_transition_code,
8862 output_automata_list_state_alts_code): Comment the functions.
8864 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
8866 * genautomata.c (automata_list_el_t): New typedef.
8867 (get_free_automata_list_el,free_automata_list_el,
8868 free_automata_list, automata_list_hash, automata_list_eq_p,
8869 initiate_automata_lists, automata_list_start, automata_list_add,
8870 automata_list_finish, finish_automata_lists,
8871 output_insn_code_cases, output_automata_list_min_issue_delay_code,
8872 output_automata_list_transition_code,
8873 output_automata_list_state_alts_code, add_automaton_state,
8874 form_important_insn_automata_lists): New functions and prototypes.
8875 (insn_reserv_decl): Add members important_automata_list and
8877 (ainsn): Add members important_p.
8878 (automata_list_el): New structure.
8879 (first_free_automata_list_el, current_automata_list,
8880 automata_list_table): New global variables.
8881 (create_ainsns): Initiate member important_p.
8882 (output_internal_min_issue_delay_func): Generate the switch and
8883 call output_insn_code_cases.
8884 (output_internal_trans_func, output_internal_state_alts_func):
8886 (generate): Call initiate_automata_lists.
8887 (automaton_states): New global variable.
8888 (expand_automata): Call form_important_insn_automata_lists.
8889 (write_automata): Call finish_automata_lists.
8891 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
8893 * genautomata.c (add_excls, add_presence_absence): Check that
8894 cpu units in the sets belong the same automaton.
8896 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
8897 about that cpu units in the sets belong the same automaton.
8899 * doc/md.texi: Ditto.
8901 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
8902 Nitin Gupta <niting@noida.hcltech.com>
8904 * config/sh/sh.c (sh_use_dfa_interface): New function.
8906 (sh_issue_rate): New Function.
8907 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
8908 TARGET_SCHED_ISSUE_RATE: define.
8910 * config/sh/sh.md: Add DFA based pipeline description for SH4.
8912 (define_attr insn_class): New attribute used for DFA
8914 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
8915 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
8916 cmpeqdi_t): Likewise.
8918 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
8919 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
8921 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
8923 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
8925 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
8928 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
8930 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
8931 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
8933 (output_dfa_start_func): Initiate new variable insn_codes_length,
8934 (write_automata): Output definition of the new variable.
8936 2001-10-02 David S. Miller <davem@redhat.com>
8938 * haifa-sched.c (advance_one_cycle): New function.
8939 (schedule_block): Use it.
8940 (queue_to_ready): Use it, and also make sure to advance the DFA
8941 state on all stall cycles, not just those where insn_queue links
8944 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
8946 * haifa-sched.c (max_issue): Remove last_p argument. Only return
8947 non-zero if the highest-priority instruction could be scheduled.
8948 (choose_ready): Remove last argument from max_issue call.
8950 2001-09-28 David S. Miller <davem@redhat.com>
8952 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
8953 ultrasparc and 3 for other multi-issue sparcs.
8955 2001-09-27 David S. Miller <davem@redhat.com>
8957 * config/sparc/sparc.md (cycle_display): New pattern.
8958 * config/sparc/sparc.c (sparc_cycle_display): New.
8959 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
8961 2001-09-25 David S. Miller <davem@redhat.com>
8963 Convert all of Sparc scheduling to DFA
8964 * config/sparc/sparc.md: Kill all define_function_unit
8965 directives and replace with DFA equivalent.
8966 * config/sparc/sparc.c (ultrasparc_adjust_cost,
8967 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
8968 ultra_fpmode_conflict_exists, ultra_find_type,
8969 ultra_build_types_avail, ultra_flush_pipeline,
8970 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
8971 ultrasparc_variable_issue, ultrasparc_sched_init,
8972 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
8973 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
8974 ultra_cur_hist, ultra_cycles_elapsed): Kill.
8975 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
8976 ultrasparc_store_bypass_p): New.
8977 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
8980 2001-09-24 David S. Miller <davem@redhat.com>
8982 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
8983 ready->vec[foo] not ready[foo].
8985 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
8987 * doc/md.texi: Correct examples for define_insn_reservations
8990 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
8992 * genautomata.c (create_automata): Print message about creation of
8994 (generate): Remove printing meease about creation of
8997 2001-09-05 David S. Miller <davem@redhat.com>
8999 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
9000 * config/sparc/linux64.h: Likewise.
9002 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
9004 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
9005 schedule_block, sched_init, sched_finish): Add missed calls of
9006 use_dfa_pipeline_interface.
9008 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
9011 * sched-vis.c (get_visual_tbl_length): Ditto.
9013 2001-08-27 Richard Henderson <rth@redhat.com>
9015 * genattr.c (main): Emit state_t even when not doing scheduling.
9017 2001-08-27 Richard Henderson <rth@redhat.com>
9019 * genautomata.c (expand_automata): Always create a description.
9021 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
9023 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
9024 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
9025 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
9028 * genattr.c (main): New variable num_insn_reservations. Increase
9029 it if there is DEFINE_INSN_RESERVATION. Output automaton based
9030 pipeline hazard recognizer interface.
9032 * genattrtab.h: New file.
9034 * genattrtab.c: Include genattrtab.h.
9035 (attr_printf, check_attr_test, make_internal_attr,
9036 make_numeric_value): Move protypes into genattrtab.h. Define them
9038 (num_dfa_decls): New global variable.
9039 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
9040 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
9041 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
9042 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
9044 * genautomata.c: New file.
9046 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
9048 * sched-int.h: (curr_state): Add the external definition for
9049 automaton pipeline interface.
9050 (haifa_insn_data): Add comments for members blockage and units.
9052 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9053 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9054 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9055 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9056 TARGET_SCHED_DFA_POST_CYCLE_INSN,
9057 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9058 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
9060 (TARGET_SCHED): Use the new macros.
9062 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
9063 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
9064 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
9065 dfa_bubble): New members in gcc_target.sched.
9067 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
9068 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
9069 (insn_queue): Redefine it as pointer to array.
9070 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
9072 (max_insn_queue_index_macro_value): New variable.
9073 (curr_state, dfa_state_size, ready_try): New varaibles for
9074 automaton interface.
9075 (ready_element, ready_remove, max_issue): New function prototypes
9076 for automaton interface.
9077 (choose_ready): New function prototype.
9078 (insn_unit, blockage_range): Add comments.
9079 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
9080 FUNCTION_UNITS_SIZE == 0.
9081 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
9082 actual_hazard, potential_hazard): Add comments.
9083 (insn_cost): Use cost -1 as undefined value. Remove
9084 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
9086 (ready_element, ready_remove): New functions for automaton
9088 (schedule_insn): Add new code for automaton pipeline interface.
9089 (queue_to_ready): Add new code for automaton pipeline interface.
9090 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
9091 (debug_ready_list): Print newline when the queue is empty.
9092 (max_issue): New function for automaton pipeline interface.
9093 (choose_ready): New function.
9094 (schedule_block): Add new code for automaton pipeline interface.
9095 Print ready list before scheduling each insn.
9096 (sched_init): Add new code for automaton pipeline interface.
9097 Initiate insn cost by -1.
9098 (sched_finish): Free the current automaton state and finalize
9099 automaton pipeline interface.
9101 * sched-rgn.c: Include target.h.
9102 (init_ready_list, new_ready, debug_dependencies): Add new code for
9103 automaton pipeline interface.
9105 * sched-vis.c: Include target.h.
9106 (get_visual_tbl_length): Add code for automaton interface.
9107 (target_units, print_block_visualization): Add comments.
9109 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
9110 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
9111 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
9112 (getruntime.o, genautomata.o): New entries.
9113 (genattrtab.o): Add new dependency file genattrtab.h.
9114 (genattrtab): Add new dependencies. Link it with `libm.a'.
9115 (getruntime.o, hashtab.o): New entries for canadian cross.
9117 * doc/md.texi: Description of automaton based model.
9119 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
9121 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9122 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9123 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9124 TARGET_SCHED_DFA_POST_CYCLE_INSN,
9125 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9126 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9127 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
9129 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
9130 MAX_DFA_ISSUE_RATE): New macro descriptions.
9132 * doc/contrib.texi: Add dfa based scheduler contribution.
9134 * doc/gcc.texi: Add more information about genattrtab.
9136 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9138 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
9139 adjust_address_nv call.
9141 2002-04-29 Janis Johnson <janis187@us.ibm.com>
9143 * doc/install.texi (Testing): Provide additional information, and
9144 a stronger encouragement, for running the testsuites.
9146 2002-04-29 DJ Delorie <dj@redhat.com>
9148 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
9149 given in upper case.
9151 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9153 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
9154 Solaris 2 <widec.h> if missing.
9155 * fixinc/fixincl.x: Regenerate.
9156 * fixinc/tests/base/widec.h: New file.
9158 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
9160 * toplev.c (f_options): Add "profile" switch so that
9161 -fno-profile can be used to disable -p.
9163 2002-04-29 Bernd Schmidt <bernds@redhat.com>
9165 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
9167 * tree.c (build_common_tree_nodes_2): Likewise.
9168 * tree.h (enum tree_index): Likewise.
9169 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
9171 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
9173 (init_mmx_sse_builtins): Initialize SSE2 builtins.
9174 (ix86_expand_builtin): Add support for SSE2 builtins.
9175 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
9176 (VALID_SSE_REG_MODE): Use it.
9177 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
9178 (enum ix86_builtins): Add SSE2 builtins.
9179 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
9180 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
9181 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
9182 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
9183 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
9184 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
9185 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
9186 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
9187 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
9188 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
9189 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
9190 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
9191 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
9192 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
9193 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
9194 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
9195 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
9196 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
9197 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
9198 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
9199 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
9200 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
9201 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
9202 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
9203 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
9204 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
9205 lfence_insn): New patterns.
9206 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
9207 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
9209 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
9211 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
9213 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9215 * doc/contrib.texi (Contributors): Add Paolo Carlini and
9217 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
9218 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
9219 and CPU instead of cpu.
9221 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
9223 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
9225 (lang_independent_options): Add -fif-conversion, -fif-conversion2
9226 (rest_of_compilation): Do if conversion only when asked for.
9227 (parse_options_and_default_flags): Set new variables to 1 for -O1
9228 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
9230 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
9232 * i386.c (dbx64_register_map): Fix typo.
9234 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
9236 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
9237 real_one_half, real_bb_freq_max): New static variables.
9238 (debug_profile_bbauxs): Kill.
9239 (process_note_predictions): Kill unused variable.
9240 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
9242 (propagate_freq): Use REAL_ARITHMETICS.
9243 (estimate_bb_frequencies): Likevise; init new static variables.
9244 * Makefile.in (predict.o): Add dependency on real.h
9246 2002-04-28 David S. Miller <davem@redhat.com>
9249 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
9250 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
9251 several {reads,writes} instead.
9252 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
9255 2002-04-27 David S. Miller <davem@redhat.com>
9258 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
9261 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
9262 including signal.h and sys/ucontext.h, not needed.
9264 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
9266 * varasm.c (output_constant_def): Correct test for not calling
9267 ENCODE_SECTION_INFO for INTEGER_CST.
9269 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
9271 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
9272 keep most cases as function eval_token.
9273 (eval_token): New function.
9274 (_cpp_parse_expr): Read token here for improved diagnostics.
9275 Don't use op_as_text. Detect bad ':' here.
9276 (reduce): Don't detect bad ':' here.
9277 (op_as_text): Remove.
9278 * cpphash.h (_cpp_test_assertion): Change prototype.
9279 * cpplib.c (_cpp_test_assertion): Change prototype.
9281 2002-04-28 Richard Henderson <rth@redhat.com>
9284 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
9285 (ggc_mark_rtx_children): New.
9287 2002-04-28 Jakub Jelinek <jakub@redhat.com>
9290 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
9291 after call peepholes for UltraSPARC.
9292 (call + jump 64-bit peepholes): Remove.
9294 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9297 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
9298 result as temporary value.
9300 2002-04-28 Jakub Jelinek <jakub@redhat.com>
9303 * toplev.c (rest_of_compilation): Only run regrename and copy
9304 propagation if optimizing.
9306 2002-04-28 Jakub Jelinek <jakub@redhat.com>
9308 PR optimization/6475
9309 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
9310 register of REGNO_DECL (i).
9311 * Makefile.in (reload1.o): Add $(TREE_H).
9313 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
9315 * cppexp.c (lex): Update to use state.skip_eval.
9316 (struct op): Remove prio and flags members.
9317 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
9318 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
9319 (LEFT_ASSOC): New macro.
9320 (optab): New table of operator priorities and flags.
9322 (_cpp_parse_expr): Clean up logic. Return bool. Use a
9323 malloc-ed parser stack.
9324 (reduce): New; reduce the operator stack.
9325 (_cpp_expand_op_stack): Expand the operator stack as necessary.
9326 * cpphash.h (struct op): Predeclare.
9327 (struct cpp_reader): New members op_stack, op_limit.
9328 (struct lexer_state): New member skip_eval.
9329 (_cpp_parse_expr): Update.
9330 (_cpp_expand_op_stack): New.
9331 * cpplib.c (do_if): Update.
9332 * cppinit.c (cpp_create_reader): Create op stack.
9333 (cpp_destroy): And destroy it.
9334 * cpplib.h (CPP_LAST_CPP_OP): Correct.
9335 (TTYPE_TABLE): Correct.
9337 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9340 * c-decl.c (duplicate_decls): Call merge_weak.
9341 * c-pragma.c (apply_pragma_weak): Warn about misuse.
9342 * output.h (merge_weak): Prototype merge_weak.
9343 * varasm.c (merge_weak): New function.
9344 (declare_weak): Make sure we don't give an error on VAR_DECLs.
9345 Mark RTL with SYMBOL_REF_WEAK.
9347 2002-04-27 Kurt Garloff <garloff@suse.de>
9349 * tree-inline.c (inlinable_function_p): Improve heuristics
9350 by using a smoother function to cut down allowable inlinable size.
9351 * param.def: Add parameters max-inline-insns-single,
9352 max-inline-slope, min-inline-insns that determine the exact
9353 shape of the above function.
9354 * param.h: Likewise.
9356 2002-04-26 Richard Henderson <rth@redhat.com>
9358 * c-parse.in (malloced_yyss, malloced_yyvs): New.
9359 (yyoverflow): Re-add. Set them.
9360 (free_parser_stacks): New.
9361 * c-common.h: Declare it.
9362 * c-lex.c (c_common_parse_file): Call it.
9364 2002-04-26 Richard Henderson <rth@redhat.com>
9366 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
9367 for fallthru search.
9369 2002-04-26 Eric Christopher <echristo@redhat.com>
9371 PR optimization/3700
9372 * config/mips/mips.c (mips_issue_rate): Define. New function.
9373 (TARGET_SCHED_ISSUE_RATE): Use.
9375 2002-04-25 David S. Miller <davem@redhat.com>
9378 * reorg.c (optimize_skip): Do not allow exception causing
9379 instructions to be considered for delay slots.
9380 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
9381 (relax_delay_slots): Do not try to consider exception causing
9382 instructions as redundant.
9384 2002-04-26 Richard Henderson <rth@redhat.com>
9387 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
9389 2002-04-26 Mark Mitchell <mark@codesourcery.com>
9392 * config/i386/i386.md (untyped_call): Return the value in a float
9393 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
9396 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
9398 * tree.c (tree_int_cst_lt): Compare constants whose types differ
9399 in unsigned-ness correctly.
9401 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
9403 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
9404 portable runtime model.
9406 2002-04-26 Richard Henderson <rth@redhat.com>
9408 * c-parse.in (yyoverflow): Revert.
9410 2002-04-26 David Edelsohn <edelsohn@gnu.org>
9411 Richard Henderson <rth@redhat.com>
9413 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
9414 result as temporary value.
9416 2002-04-26 Richard Henderson <rth@redhat.com>
9419 * c-common.c (fix_string_type): Split out of ...
9420 (combine_strings): ... here. Take a varray, not a tree list.
9421 (c_expand_builtin_printf): Use fix_string_type.
9422 * c-common.h: Update decls.
9423 * c-parse.in (string): Remove. Update all uses to use STRING
9424 instead, and not call combine_strings.
9427 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
9428 (build_asm_stmt): Likewise.
9429 * objc/objc-act.c (my_build_string): Use fix_string_type.
9430 (build_objc_string_object): Build varray for combine_strings.
9432 2002-04-26 Bo Thorsen <bo@suse.co.uk>
9434 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
9437 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
9439 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
9440 (HAVE_NO_R_OPERAND): Remove.
9441 (HAVE_VALUE): Remove.
9442 (op_to_prio): Update.
9443 (UNARY): Don't alter flags.
9444 (_cpp_parse_expr): want_value used to indicate whether
9445 a number or unary operator is expected next. Distinguish
9446 unary and binary +/-.
9447 (op_as_text): Update for unary operators.
9449 2002-04-25 Richard Henderson <rth@redhat.com>
9452 * c-parse.in (yyoverflow): New.
9454 2002-04-25 Richard Henderson <rth@redhat.com>
9457 * c-common.c (shorten_compare): Simplfy conditions leading to
9458 the generation of a warning.
9460 2002-04-25 Richard Henderson <rth@redhat.com>
9463 * expmed.c (extract_bit_field): Fall through to generic code rather
9464 than aborting on subreg special case.
9466 2002-04-25 David S. Miller <davem@redhat.com>
9468 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
9469 for DECL being NULL.
9471 2002-04-25 Steve Christiansen <smc@us.ibm.com>
9473 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
9475 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
9477 * c-decl.c (grokdeclarator): Remove outdated ??? note
9478 on invalid declaration of flexible array members.
9480 2002-04-25 Richard Henderson <rth@redhat.com>
9482 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
9484 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
9486 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
9487 needed by the compiler, even if they are used as global regs.
9489 2002-04-25 Matt Hiller <hiller@redhat.com>
9491 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
9493 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
9494 of the corresponding functions.
9495 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
9498 2002-04-25 Matt Hiller <hiller@redhat.com>
9500 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
9502 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
9503 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
9504 registers, adjust comment accordingly.
9505 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
9506 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
9507 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
9508 for coprocessor registers.
9509 (ADDITIONAL_REGISTER_NAMES): Include
9510 ALL_COP_ADDITIONAL_REGISTER_NAMES.
9512 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
9513 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
9514 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
9515 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
9516 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
9518 (mips_char_to_class): Adjust comment to include coprocessor
9521 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
9523 (mips_reg_names, mips_regno_to_class): Include coprocessor
9525 (mips_sw_reg_names): Ditto, make non-static.
9526 (mips_move_1word): Handle moves to and from coprocessor registers.
9527 (mips_move_2words): Handle moves to and from coprocessor
9529 (mips_class_max_nregs, mips_register_move_cost): Handle
9530 coprocessor register classes.
9531 (override_options): Initialize mips_char_to_class and
9532 mips_hard_regno_mode_ok properly for coprocessor registers.
9534 * config/mips/mips.md (movdi_internal, movdi_internal2,
9535 movsi_internal1, movsi_internal2): Add constraint-sets for
9536 coprocessor registers.
9537 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
9538 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
9540 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
9541 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
9543 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
9544 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
9546 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
9547 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
9550 * doc/tm.texi: Document feature.
9552 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
9554 * integrate.c (function_attribute_inlinable_p): Simplify.
9555 Check the table pointer is not NULL.
9557 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
9559 * doc/c-tree.texi: Fix typo in introduction.
9561 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
9563 * c-common.h (c_common_parse_file): Update.
9564 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
9565 * c-lex.c (YYDEBUG): Get from c-lex.h.
9566 (c_common_parse_file): Update.
9567 * c-lex.h (YYDEBUG, yydebug): New.
9568 * c-parse.in (YYDEBUG): Get from c-lex.h.
9569 (c_set_yydebug): Remove.
9570 * c-tree.h (c_set_yydebug): Remove.
9571 * langhooks-def.h (lhd_do_nothing_i): New.
9572 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
9573 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
9574 * langhooks.c (lhd_do_nothing_i): New.
9575 (lhd_set_yydebug): Remove.
9576 * langhooks.h (struct lang_hooks): Update.
9577 * toplev.c (set_yydebug): New.
9578 (compile_file): Update call to parse_file hook.
9579 (decode_d_option): Update.
9581 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
9583 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
9585 * loop.c (load_mems): Don't change the interface of called functions.
9587 * calls.c (expand_call): Take current_function_pretend_args_size
9588 into account when setting argblock for sibcalls.
9590 2002-04-24 Matt Hiller <hiller@redhat.com>
9592 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
9595 * cpplex.c (skip_line_comment): Process comment one multibyte
9596 character at a time rather than one char at a time, if
9598 (parse_string): Process string one multibyte character at a time
9599 rather than one char at a time, if appropriate.
9600 * c-lex.c (lex_string): Lex and copy multibyte strings
9602 * cpplib.h (cppchar_t): Change to unsigned.
9604 2002-04-24 Richard Henderson <rth@redhat.com>
9607 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
9610 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
9612 * sh.c (sh_va_arg): If argument was passed by reference,
9613 dereference the pointer.
9615 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9617 * sh.md (divsi3_i4_media): Use match_operand for input values
9618 rather than hard registers.
9619 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
9620 unnecessarily through hard registers. Keep copies of pseudo
9621 registers outside of the libcall sequence.
9623 * sh.md (casesi_shift_media): Add modes.
9625 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
9628 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
9630 * attribs.c (c_common_attribute_table): Move table and handlers
9632 (format_attribute_table, lang_attribute_table,
9633 lang_attribute_common): Remove.
9634 (init_attributes): Replace NULL pointers with pointers to the
9636 (handle_packed_attribute, handle_nocommon_attribute,
9637 handle_common_attribute, handle_noreturn_attribute,
9638 handle_noinline_attribute, handle_always_inline_attribute,
9639 handle_used_attribute, handle_unused_attribute,
9640 handle_const_attribute, handle_transparent_union_attribute,
9641 handle_constructor_attribute, handle_destructor_attribute,
9642 handle_mode_attribute, handle_section_attribute,
9643 handle_aligned_attribute, handle_weak_attribute,
9644 handle_alias_attribute, handle_visibility_attribute,
9645 handle_no_instrument_function_attribute, handle_malloc_attribute,
9646 handle_no_limit_stack_attribute, handle_pure_attribute,
9647 handle_deprecated_attribute, handle_vector_size_attribute,
9648 vector_size_helper): Move to c-common.c.
9649 * c-common.c (c_common_attribute_table,
9650 handle_packed_attribute, handle_nocommon_attribute,
9651 handle_common_attribute, handle_noreturn_attribute,
9652 handle_noinline_attribute, handle_always_inline_attribute,
9653 handle_used_attribute, handle_unused_attribute,
9654 handle_const_attribute, handle_transparent_union_attribute,
9655 handle_constructor_attribute, handle_destructor_attribute,
9656 handle_mode_attribute, handle_section_attribute,
9657 handle_aligned_attribute, handle_weak_attribute,
9658 handle_alias_attribute, handle_visibility_attribute,
9659 handle_no_instrument_function_attribute, handle_malloc_attribute,
9660 handle_no_limit_stack_attribute, handle_pure_attribute,
9661 handle_deprecated_attribute, handle_vector_size_attribute,
9662 vector_size_helper): Move from attribs.c.
9663 * c-common.h (c_common_attribute_table,
9664 c_common_format_attribute_table): New.
9665 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
9666 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
9667 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
9668 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
9669 (LANG_HOOKS_INITIALIZER): Update.
9670 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
9671 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
9672 * target.h: Update comment.
9673 * tree.c (default_target_attribute_table): Remove.
9674 * tree.h (default_target_attribute_table, format_attribute_table,
9675 lang_attribute_table, lang_attribute_common): Remove.
9677 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
9678 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
9680 2002-04-24 Jason Merrill <jason@redhat.com>
9682 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
9683 * dwarf2out.c (dwarf_attr_name): Support it.
9684 (gen_array_type_die): Emit it.
9685 (lookup_type_die): No special handling for VECTOR_TYPE.
9686 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
9688 2002-04-24 Richard Henderson <rth@redhat.com>
9690 * config/mips/mips.md (movdi_usd): Renumber.
9692 2002-04-24 David S. Miller <davem@redhat.com>
9695 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
9696 32-bit Sparc and current_function_returns_struct is true.
9698 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
9700 * loop.c (canonicalize_condition): Use gen_int_mode.
9702 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
9704 * config/rs6000/altivec.h: Cleanup file. Add non individual
9726 (vec_vcmpequb): New.
9727 (vec_vcmpequh): New.
9728 (vec_vcmpequw): New.
9729 (vec_vcmpeqfp): New.
9730 (vec_vcmpgefp): New.
9731 (vec_vcmpgtub): New.
9732 (vec_vcmpgtsb): New.
9733 (vec_vcmpgtuh): New.
9734 (vec_vcmpgtsh): New.
9735 (vec_vcmpgtuw): New.
9736 (vec_vcmpgtsw): New.
9737 (vec_vcmpgtfp): New.
9738 (vec_vcmpgefp): New.
9743 (vec_vexptefp): New.
9748 (vec_lde): Add vector float variant.
9753 (vec_vmhaddshs): New.
9775 (vec_vmladduhm): New.
9776 (vec_vmhraddshs): New.
9778 (vec_vmsummbm): New.
9779 (vec_vmsumuhm): New.
9780 (vec_vmsumshm): New.
9781 (vec_vmsumuhs): New.
9782 (vec_vmsumshs): New.
9791 (vec_vnmsubfp): New.
9809 (vec_vrsqrtefp): New.
9820 (vec_vspltisb): New.
9821 (vec_vspltish): New.
9822 (vec_vspltisw): New.
9847 (vec_vsum4ubs): New.
9848 (vec_vsum4sbs): New.
9849 (vec_vsum4shs): New.
9850 (vec_vsum2sws): New.
9861 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
9864 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
9865 added literals from substracted literals.
9866 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
9867 (fold) [associate]: Preserve MINUS_EXPR if needed.
9869 2002-04-23 Zack Weinberg <zack@codesourcery.com>
9871 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
9874 2002-04-23 Tom Tromey <tromey@redhat.com>
9876 * gcc.c: Added --resource. For PR java/6314.
9878 2002-04-23 David O'Brien <obrien@FreeBSD.org>
9880 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
9881 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
9884 2002-04-23 David O'Brien <obrien@FreeBSD.org>
9886 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
9888 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
9890 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
9892 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
9893 (ix86_expand_clrstr): Fix typo.
9894 * loop.c (gen_load_of_final_value): New.
9895 (loop_givs_rescan, strength_reduce, check_dbra_loop):
9898 2002-04-23 Roger Sayle <roger@eyesopen.com>
9900 * builtins.c (builtin_memset_gen_str): New function.
9901 (expand_builtin_memset): Optimize the case of constant length, but
9904 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
9906 * config/rs6000/altivec.h (vec_step): Remove extraneous
9908 (vec_ctu): Cast return.
9910 2002-04-23 Alan Modra <amodra@bigpond.net.au>
9913 * function.h: (struct function): Add profile_label_no field.
9914 (current_function_profile_label_no): Define.
9915 * function.c: (profile_label_no): New static var.
9916 (expand_function_start): Increment it, and copy to
9917 current_function_profile_label_no.
9918 * output.h (profile_label_no): Delete.
9919 * final.c (profile_label_no): Delete.
9920 (profile_function): Use current_function_profile_label_no.
9921 (final_end_function): Don't increment profile_label_no here.
9922 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
9923 profile_label_no with current_function_profile_label_no.
9924 * config/pa/pa.c (current_function_number): Delete.
9925 (pa_output_function_prologue): Don't output profile label here.
9926 (hppa_profile_hook): Use label_no param rather than
9927 current_function_number.
9928 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
9929 * config/pa/pa.h: .. here.
9930 (FUNCTION_PROFILER): Output profile label here.
9932 2002-04-22 Eric Christopher <echristo@redhat.com>
9934 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
9935 patch of 2002-04-09 due to binutils issues.
9936 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
9938 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
9940 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
9941 constraint to 'o' for m=r and r=m alternatives.
9942 ("*movv8hi_internal1"): Same.
9943 ("*movv16qi_internal1"): Same.
9944 ("*movv4sf_internal1"): Same.
9946 2002-04-22 Janis Johnson <janis187@us.ibm.com>
9948 * rtl.h (RTX_FLAG): New macro.
9949 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
9950 * final.c (alter_subreg): Use macro to access rtx flag.
9951 * integrate.c (copy_rtx_and_substitute): Use new access macro.
9952 * print-rtl.c (print_rtx): Use new access macro.
9954 * cse.c (insert): Check rtx code before accessing flag.
9956 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
9957 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
9958 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
9959 convert_const_symbol_ref, make_canonical, make_alternative_compare,
9960 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
9961 simplify_test_exp, optimize_attrs, simplify_by_exploding,
9962 find_and_mark_used_attributes, unmark_used_attributes,
9963 add_values_to_cover, simplify_with_current_value,
9964 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
9965 copy_rtx_unchanging, main): Use new access macros.
9967 2002-04-22 Tom Rix <trix@redhat.com>
9969 * expmed.c (init_expmed): Generate shifted constant once.
9971 2002-04-22 Zack Weinberg <zack@codesourcery.com>
9973 * c-lex.c (lex_charconst): Call convert to get constant in
9974 proper type; don't just smash the type field.
9977 * config.gcc: Add list of obsolete configurations. Disallow
9978 building these without --enable-obsolete.
9979 * doc/install.texi: Document --enable-obsolete and obsoletion
9980 policy. Mention obsoletion of individual targets in
9983 2002-04-22 Richard Henderson <rth@redhat.com>
9985 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
9987 2002-04-22 Mark Mitchell <mark@codesourcery.com>
9990 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
9991 (walk_fixup_memory_subreg): Likewise.
9992 (fixup_var_refs_insn): Adjust accordingly.
9993 (fixup_var_refs_1): Likewise.
9995 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
9997 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
9998 LIBPATH_ARCH64_SPEC): Define.
9999 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
10000 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
10001 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
10002 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
10004 2002-04-22 Joel Sherrill <joel@OARcorp.com>
10006 * gthr-rtems.h: Correct prototypes to remove warnings.
10008 2002-04-22 Richard Henderson <rth@redhat.com>
10011 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
10013 * gcse.c (free_insn_expr_list_list): New.
10014 (clear_modify_mem_tables): Use it. Fix bit set usage.
10015 (canon_list_insert): Use EXPR_LISTs for expressions.
10016 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
10018 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
10020 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
10021 file change and include code to _cpp_pop_buffer.
10022 * cpphash.h (struct pending_option): Predeclare.
10023 (struct cpp_reader): New member next_include_file.
10024 (_cpp_pop_file_buffer): Update.
10025 (_cpp_push_next_buffer): Update, rename.
10026 * cppinit.c (cpp_destroy): Free include chain and pending here.
10027 (cpp_finish_options): Simplify.
10028 (_cpp_push_next_buffer): Rename and clean up.
10029 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
10031 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
10033 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
10035 * config/rs6000/altivec.h (vec_xor): Add variant for both args
10036 being vector signed int.
10038 (vec_xor): Add variant for both args being vector signed char.
10039 Remove redundant variant.
10042 2002-04-21 David S. Miller <davem@redhat.com>
10044 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
10045 compare mode in output RTL.
10047 2002-04-22 David Edelsohn <edelsohn@gnu.org>
10049 * config/rs6000/rs6000.c (rs6000_override_options): Correct
10050 style and formatting of previous patch.
10052 2002-04-22 Alan Modra <amodra@bigpond.net.au>
10054 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
10055 flag_pic for ABI_AIX.
10057 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
10059 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
10060 * cppfiles.c (read_include_file): Similarly.
10061 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
10062 uxstrdup ustrchr, ufputs): Similarly.
10063 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
10064 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
10065 cpp_ideq, parse_identifier, parse_number): Similarly.
10066 * cpplib.c (struct directive, dequote_string, D, run_directive,
10067 cpp_push_buffer): Similarly.
10068 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
10069 _cpp_create_definition, check_trad_stringification,
10070 cpp_macro_definition): Similarly.
10072 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
10074 * cppmacro.c (funlike_invocation_p): Don't step back
10077 2002-04-21 David Edelsohn <edelsohn@gnu.org>
10079 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
10082 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
10084 * doc/invoke.texi: Remove Chill references.
10085 * doc/gcc.texi: Update last modified date.
10087 2002-04-20 Kazu Hirata <kazu@hxi.com>
10089 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
10090 push and pop. Replace add.l with add.w.
10092 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
10094 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
10095 multiply instructions for H8/300H case.
10097 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
10099 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
10100 Bum three instructions from each routine.
10102 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
10104 * Makefile.in: Update.
10105 * decl.c (push_c_function_context, pop_c_function_context,
10106 mark_c_function_context): Rename for consistency.
10107 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
10108 * c-tree.h (push_c_function_context, pop_c_function_context,
10109 mark_c_function_context): Rename for consistency.
10110 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10111 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10112 * function.c (init_lang_status, save_lang_status,
10113 restore_lang_status, mark_lang_status, free_lang_status):
10114 Move to langhooks.h.
10115 (push_function_context_to, pop_function_context_from,
10116 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
10118 * function.h (init_lang_status, save_lang_status,
10119 restore_lang_status, mark_lang_status, free_lang_status):
10120 Move to langhooks.h.
10121 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
10122 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
10123 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
10124 LANG_HOOKS_FUNCTION_INITIALIZER): New.
10125 (LANG_HOOKS_INITIALIZER): Update.
10126 (lhd_do_nothing_f): New.
10127 * langhooks.h (struct lang_hooks_for_functions): New.
10128 (struct lang_hooks): New hooks.
10129 * langhooks.c (lhd_do_nothing_f): New.
10131 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10132 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10134 2002-04-19 David S. Miller <davem@redhat.com>
10136 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
10137 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
10139 2002-04-19 Jakub Jelinek <jakub@redhat.com>
10141 PR optimization/3756
10142 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
10143 x = ((int) y < 0) ? cst1 : cst2.
10145 2002-04-19 Jakub Jelinek <jakub@redhat.com>
10148 * function.c: Reapply patch for c/6358.
10149 (expand_function_end): Copy decl_rtl's mode, not
10150 current_function_return_rtx mode.
10152 2002-04-19 Joel Sherrill <joel@OARcorp.com>
10154 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
10157 2002-04-19 Tom Tromey <tromey@redhat.com>
10159 * doc/install.texi (Specific): Update status of Solaris 2.8.
10160 For PR libgcj/6158.
10162 2002-04-19 Andreas Schwab <schwab@suse.de>
10164 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
10165 (PUT_REAL): Restore old definition.
10167 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
10168 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10170 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
10171 binutils 2.11.2 and higher generate smaller binaries than Sun's
10174 2002-04-19 Mark Mitchell <mark@codesourcery.com>
10177 * toplev.c (rest_of_compilation): Do not defer functions for which
10178 TREE_SYMBOL_REFERENCED has already been set.
10180 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
10182 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
10185 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
10187 * builtins.c: Include langhooks.h.
10188 (lang_type_promotes_to): Remove.
10189 (expand_builtin_va_arg): Use new hook.
10190 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
10191 (simple_type_promotes_to): Move to c-typeck.c.
10192 * c-common.h (simple_type_promotes_to): Remove.
10193 * c-decl.c (duplicate_decls, grokdeclarator): Update.
10194 * c-format.c: Include langhooks.h.
10195 (check_format_types): Update.
10196 * c-tree.h (c_type_promotes_to): New.
10197 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
10198 (type_lists_compatible_p): Update.
10199 * langhooks-def.h (lhd_type_promotes_to): New.
10200 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
10201 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10202 * langhooks.c (lhd_type_promotes_to): New.
10203 * langhooks.h (struct lang_hooks_for_types): New hook.
10204 * tree.h (lang_type_promotes_to): Remove.
10206 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
10208 2002-04-18 Richard Henderson <rth@redhat.com>
10210 * function.c: Revert patch for c/6358.
10212 2002-04-18 Richard Henderson <rth@redhat.com>
10214 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
10215 blocks. Handle multiple references to the TRAP block. Handle
10216 non-adjacent THEN and OTHER blocks.
10218 2002-04-18 Richard Henderson <rth@redhat.com>
10220 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
10221 crash with no type for by-mode libcalls.
10223 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
10225 2002-04-18 Bob Wilson <bob.wilson@acm.org>
10227 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
10228 __xtensa_nonlocal_goto): Use a syscall instructions to flush
10229 the register windows.
10231 2002-04-18 Zack Weinberg <zack@codesourcery.com>
10233 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
10234 appropriate. Document need for extended precision even when
10235 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
10236 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
10237 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
10238 instead of relying on later syntax error when REAL_WIDTH > 5.
10239 * real.c: Define NE based only on whether or not we have a
10240 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
10241 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
10242 define GET_REAL and PUT_REAL as simple memcpy operations; no
10243 need to byteswap or round.
10244 Use #error instead of #ifdef-ing out the entire file, for
10245 prompt error detection.
10247 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
10249 2002-04-18 David S. Miller <davem@redhat.com>
10251 * config/sparc/sparc.h (BRANCH_COST): Define.
10253 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
10256 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
10258 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
10259 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
10260 propagate_block calls after relaxation loop using new variable
10261 stabilized_prop_flags.
10263 2002-04-18 Richard Henderson <rth@redhat.com>
10265 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
10266 (ia64_va_arg): Expect variable sized types by reference.
10267 * config/ia64/ia64-protos.h: Update.
10268 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
10269 ia64_function_arg_pass_by_reference.
10271 2002-04-18 Richard Henderson <rth@redhat.com>
10273 * ifcvt.c: Include except.h.
10274 (block_has_only_trap): Break out from find_cond_trap.
10275 (find_cond_trap): Use it. Always delete the trap block.
10276 (merge_if_block): Allow then block null. Be less simplistic about
10277 what insns can end a block.
10278 * Makefile.in (ifcvt.o): Depend on except.h.
10280 * config/ia64/ia64.md (trap, conditional_trap): New.
10282 2002-04-18 Jakub Jelinek <jakub@redhat.com>
10285 * function.c (assign_parms): Assign hard current_function_return_rtx
10287 (expand_function_end): ...not here.
10289 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
10291 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10292 * c-tree.h (c_incomplete_type_error): New.
10293 * c-typeck.c (require_complete_type, build_component_ref): Update.
10294 (incomplete_type_error): Rename.
10295 * langhooks-def.h (lhd_incomplete_type_error): New.
10296 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
10297 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10298 * langhooks.c (lhd_incomplete_type_error): New.
10299 * langhooks.h (struct lang_hooks_for_types): New hook.
10300 * tree.c (size_in_bytes): Use new hook.
10301 * tree.h (incomplete_type_error): Remove.
10303 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10305 2002-04-18 Zack Weinberg <zack@codesourcery.com>
10307 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
10308 TARGET_FLOAT_FORMAT blocks.
10310 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10312 * doc/install.texi (Downloading the source): Do not mention Chill
10313 any longer, but mention Ada.
10314 (Configuration): Do not mention Chill any longer.
10316 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
10318 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
10320 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
10322 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
10325 2002-04-18 Jakub Jelinek <jakub@redhat.com>
10327 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
10328 instead of unsigned_type.
10330 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
10332 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
10333 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
10336 2002-04-18 Bernd Schmidt <bernds@redhat.com>
10338 * attribs.c (vector_type_node_list): New static variable.
10339 (handle_vector_size_attribute): Use it to avoid generating a
10340 new type node each time we are called.
10342 * combine.c (subst): Avoid trying to make a vector mode subreg of
10343 an integer constant.
10344 (gen_lowpart_for_combine): Likewise.
10346 2002-04-18 Roger Sayle <roger@eyesopen.com>
10347 Jakub Jelinek <jakub@redhat.com>
10349 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
10350 for integer constant c (if x has unsigned type or sign bit is not
10351 set in c). This folds the zero/sign extension into the bit-wise and
10354 2002-04-18 Jakub Jelinek <jakub@redhat.com>
10357 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
10360 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
10362 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
10364 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
10366 * gcc.c (read_specs): Detect and fail if an attempt is made to
10367 rename a spec string to an already existing string.
10369 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
10371 * config/s390/s390.c (legitimize_pic_address): Do not generate
10372 illegal address constant without CONST.
10374 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10376 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
10377 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10379 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
10381 PR optimization/6305
10382 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
10383 to make sure previous reloads are taken into account. Generate
10384 better code if one operand is an in-range immediate constant.
10386 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
10388 * doc/install.texi (Building): libgcj requires GNU make.
10390 2002-04-17 Jakub Jelinek <jakub@redhat.com>
10393 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
10394 even if hard quad and register is not floating.
10395 (movtf reg<-mem split): Disallow splitting if hard quad and
10396 register is floating.
10397 (movtf mem<-reg split): Likewise.
10398 * config/sparc/sparc.c (fp_register_operand): New predicate.
10399 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
10401 2002-04-17 Zack Weinberg <zack@codesourcery.com>
10403 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
10404 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
10405 (unprotoize.o): Ditto. Build from protoize.c. Define
10406 UNPROTOIZE on command line.
10407 * protoize.c: Include cppdefault.h. Delete include_defaults.
10408 (in_system_include_dir): Use cpp_include_defaults (defined in
10410 * unprotoize.c: Delete file.
10412 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
10414 * config/rs6000/altivec.h (vec_ld): Add array variants.
10418 2002-04-17 Alan Matsuoka <alanm@redhat.com>
10419 Aldy Hernandez <aldyh@redhat.com>
10421 * config/rs6000/altivec.h: Define __ALTIVEC__.
10426 (vec_vmaddfp): New.
10428 Add parentheses to all macro arguments.
10430 2002-04-16 Richard Henderson <rth@redhat.com>
10433 * except.c (remove_eh_handler): Insert inner regions at beginning
10434 of sibling chain. Refactor expressions.
10436 2002-04-16 Richard Henderson <rth@redhat.com>
10438 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
10439 * config/sparc/sol2-gas-bi.h: New file.
10440 * config.gcc (sparc*-solaris): Add it as needed.
10441 * configure.in (AS_SPARC64_FLAG): Remove check.
10442 * config.in, configure: Regenerate.
10444 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
10446 2002-04-16 Richard Henderson <rth@redhat.com>
10448 * config/mips/mips.c (override_options): Don't override N32 for
10452 * config/mips/mips.md (can_delay): Split out of existing define_delays.
10453 (HILO_delay): Set can_delay false.
10455 2002-04-16 Dale Johannesen <dalej@apple.com>
10457 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
10458 instruction addresses.
10459 (rs6000_output_function_epilogue): Likewise.
10461 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
10463 * c-parse.in (poplevel, compstmt_start,
10464 compstmt_primary_start): Add ending ';', in accordance
10467 2002-04-16 Richard Henderson <rth@redhat.com>
10469 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
10470 Adjust tm_file order to get TARGET_DEFAULT set properly.
10471 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
10472 * doc/install.texi (sparc-solaris): Update.
10474 2002-04-16 Dale Johannesen <dalej@apple.com>
10476 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
10477 comparison operands do not match each other or if modes of
10478 conditions do not match result.
10480 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
10483 * config/s390/s390.md (mulsidi3): Set both subregs of the
10484 multiword register.
10486 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
10488 * config/rs6000/altivec.h (vec_addc): Type check.
10490 2002-04-16 Jakub Jelinek <jakub@redhat.com>
10493 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
10495 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
10497 2002-04-15 Richard Henderson <rth@redhat.com>
10499 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
10500 call_really_used_regs too.
10502 2002-04-15 Richard Henderson <rth@redhat.com>
10504 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
10506 2002-04-15 David S. Miller <davem@redhat.com>
10508 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
10509 as being CLOBBERed.
10511 2002-04-16 Jakub Jelinek <jakub@redhat.com>
10514 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
10515 CONST_VECTOR is { 0, ... 0 }.
10517 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
10519 * doc/install.texi (Installing GCC: Configuration): Clarify
10520 the only supported ways to configure gcc.
10522 2002-04-15 Roland McGrath <roland@frob.com>
10524 * config.gcc (alpha*-*-gnu*): New target configuration.
10525 * config/alpha/gnu.h: New file for it.
10526 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
10528 2002-04-16 Mark Mitchell <mark@codesourcery.com>
10530 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
10531 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
10532 * tree.h (expand_start_stmt_expr): Update prototype.
10533 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
10534 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
10535 on the STMT_EXPR created for the inline function.
10537 2002-04-15 Richard Henderson <rth@redhat.com>
10539 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
10540 config/i386/linux-aout.h, config/i386/linux-oldld.h,
10541 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
10542 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
10543 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
10544 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
10545 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
10546 Define __gnu_linux__, not gnu_linux.
10547 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
10549 2002-04-15 Mark Mitchell <mark@codesourcery.com>
10551 Remove Chill front end.
10552 * gcc.c (default_compilers): Remove Chill entries.
10553 * ch: Remove directory.
10554 * doc/frontends.texi: Remove information about Chill.
10555 * doc/sourcebuild.texi: Likewise.
10556 * doc/standards.texi: Likewise.
10558 2002-04-15 Douglas B Rupp <rupp@gnat.com>
10560 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
10561 (LONGLONG_STANDALONE): Define.
10563 2002-04-15 David S. Miller <davem@redhat.com>
10565 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
10566 Call emit_library_call with LCT_NORMAL.
10567 (sparc_initialize_trampoline): Use LCT_foo instead of
10568 magic constant in emit_library_call invocations.
10569 (sparc64_initialize_trampoline): Likewise.
10570 (sparc_profile_hook): Likewise.
10571 * config/sparc/sparc.md: Likewise.
10573 * config/sparc/sparc.c (sparc_extra_constraint_check):
10574 Fix type of argument 'c'.
10575 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
10578 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
10580 * diagnostic.h (output_buffer_state): Redefine.
10581 (output_format_decoder): New macro.
10582 (output_prefixing_rule): Likewise.
10583 (output_line_cutoff): Likewise.
10584 (diagnostic_format_decoder): Adjust.
10585 (diagnostic_prefixing_rule): Likewise.
10586 (diagnostic_line_cutoff): Likewise.
10587 (diagnostic_state): Likewise.
10588 (diagnostic_kind_count): Likewise.
10589 (diagnostic_buffer): Now a macro.
10591 * diagnostic.c (diagnostic_buffer): Remove definition.
10592 (output_is_line_wrapping): Adjust.
10593 (set_real_maximum_length): Likewise.
10594 (output_set_maximum_length): Likewise.
10595 (init_output_buffer): Likewise.
10596 (lhd_print_error_function): Likewise.
10597 (output_do_verbatim): Likewise.
10599 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
10601 * cpperror.c (print_location): Don't print include chain
10603 (cpp_begin_message): Update to use DL_ macros.
10604 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
10605 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
10606 cpp_notice, cpp_notice_from_errno): Remove.
10607 (cpp_error, cpp_error_with_line): Update to take a diagnostic
10610 * cppexp.c (CPP_ICE): Remove.
10611 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
10612 lex, integer_overflow, _cpp_parse_expr): Update.
10613 * cppfiles.c (read_include_file, find_include_file,
10614 handle_missing_header, _cpp_read_file, remap_filename): Update.
10615 * cpphash.h (enum error_type): Remove.
10616 (_cpp_begin_message): Update.
10617 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
10618 cpp_handle_option, cpp_post_options): Update.
10619 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
10620 skip_whitespace, parse_identifier, parse_slow, parse_string,
10621 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
10622 cpp_interpret_charconst): Update.
10623 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
10624 lex_macro_node, do_undef, glue_header_name, parse_include,
10625 do_include_common, read_flag, do_line, do_linemarker, do_ident,
10626 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
10627 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
10628 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
10629 _cpp_pop_buffer, do_diagnostic): Update.
10630 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
10631 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
10632 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
10633 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
10634 cpp_notice, cpp_notice_from_errno): Remove.
10635 (cpp_error, cpp_error_with_line): Update to take a diagnostic
10638 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
10639 collect_args, enter_macro_context, save_parameter, parse_params,
10640 _cpp_create_definition, check_trad_stringification,
10641 cpp_macro_definition): Update.
10642 * cppmain.c (cpp_preprocess_file): Update.
10643 * fix-header.c (read_scan_file): Update.
10645 2002-04-14 Andreas Schwab <schwab@suse.de>
10647 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
10649 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10651 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
10653 2002-04-13 Mark Mitchell <mark@codesourcery.com>
10655 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
10658 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
10660 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
10662 2002-04-13 Joel Sherrill <joel@OARcorp.com>
10664 * config/sparc/t-elf: Enable v8 multilibs. Impacts
10665 sparc-elf and sparc-rtems targets.
10667 2002-04-13 Mark Mitchell <mark@codesourcery.com>
10669 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
10670 defined, and __gnu_hurd__ wherever __GNU__ is defined.
10671 * arm/linux-elf.h: Likewise.
10672 * cris/aout.h: Likewise.
10673 * cris/linux.h: Likewise.
10674 * i370/linux.h: Likewise.
10675 * i386/gnu.h: Likewise.
10676 * i386/linux-aout.h: Likewise.
10677 * i386/linux-oldld.h: Likewise.
10678 * i386/linux.h: Likewise.
10679 * i386/linux64.h: Likewise.
10680 * ia64/linux.h: Likewise.
10681 * m68k/linux-aout.h: Likewise.
10682 * m68k/linux.h: Likewise.
10683 * mips/linux.h: Likewise.
10684 * pa/pa-linux.h: Likewise.
10685 * pj/linux.h: Likewise.
10686 * rs6000/sysv4.h: Likewise.
10687 * s390/linux.h: Likewise.
10688 * sh/linux.h: Likewise.
10689 * sparc/linux-aout.h: Likewise.
10690 * sparc/linux.h: Likewise.
10691 * sparc/linux64.h: Likewise.
10692 * xtensa/linux.h: Likewise.
10694 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
10696 * stmt.c (check_unique_operand_names): Expect operand names to
10697 be strings rather than identifiers. Use simple_cst_equal to
10699 (resolve_operand_name_1): Make same identifier to string change here.
10700 * c-parse.in (asm_operand): Convert a named operand into a string.
10701 * cp/parse.y (asm_operand): Likewise.
10703 2002-04-13 Andreas Schwab <schwab@suse.de>
10705 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
10707 2002-04-12 Mark Mitchell <mark@codesourcery.com>
10709 Revert these changes:
10711 2002-04-06 Mark Mitchell <mark@codesourcery.com>
10714 * stor-layout.c (layout_decl): Reset the RTL for the decl.
10716 2002-04-12 Richard Henderson <rth@redhat.com>
10718 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
10719 (sparc*-*-solaris): Clean up header files.
10720 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
10721 and plan on generating 64-bit code.
10722 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
10723 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
10724 * config/sparc/sol2-sld-64.h: Rename ...
10725 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
10726 for AS_SPARC64_FLAG not defined.
10727 * config/sparc/sol2-gld-bi.h: New.
10728 * config/sparc/sol2-sld.h: Remove.
10729 * config/sparc/sol26-sld.h: New.
10730 * config/sparc/sol2.h: Tidy comments.
10731 * doc/install.texi: Document sparc-solaris configury changes.
10733 2002-04-12 Richard Henderson <rth@redhat.com>
10735 * recog.c (offsettable_address_p): Match the logic in adjust_address.
10737 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
10738 in 64-bit mode only. Use only for 32-bit or MEDLOW.
10740 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10742 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
10744 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
10746 * pa.c (pa_can_combine_p): Call extract_insn before calling
10747 constrain_operands.
10749 2002-04-12 Douglas B Rupp <rupp@gnat.com>
10751 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
10752 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
10753 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
10754 (CPP_PREDEFINES): Handle __declspec.
10755 * config/i386/t-interix (USER_H): Remove.
10757 2002-04-12 DJ Delorie <dj@redhat.com>
10759 * integrate.c (compare_blocks): Make comparisons safe for when
10760 sizeof(int) < sizeof(char *).
10761 (find_block): Likewise.
10763 2002-04-12 Jan Hubicka <jh@suse.cz>
10764 David Edelsohn <edelsohn@gnu.org>
10766 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
10768 (symbol_ref_operand): New.
10769 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
10770 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
10772 2002-04-12 Andreas Schwab <schwab@suse.de>
10774 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
10775 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
10776 overrides the definition in config/svr4.h.
10778 2002-04-12 Eric Norum <eric.norum@usask.ca>
10780 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
10781 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
10782 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
10783 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
10784 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
10785 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
10786 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
10787 definitions to config/rtems.h and make the targets more similar.
10789 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10791 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
10792 POINTERS_EXTEND_UNSIGNED.
10793 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
10794 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
10796 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
10799 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
10801 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
10802 depends on TARGET_SHMEDIA, not TARGET_SH5.
10804 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
10806 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
10807 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
10809 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
10811 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
10814 2002-04-12 Andreas Schwab <schwab@suse.de>
10816 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
10818 2002-04-12 Richard Henderson <rth@redhat.com>
10821 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
10823 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
10824 modes spanning multiple hard regs.
10826 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
10828 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10830 * pa.c (pa_output_function_prologue): Don't accumulate the total
10831 number of code bytes when using TARGET_64BIT, or gas, SOM and not
10832 the portable runtime.
10833 (output_deferred_plabels): Handle 64bit plabels.
10834 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
10835 generating pic code using the GAS assembler for object formats that
10836 are not SOM (ie., ELF32 and ELF64).
10837 (output_millicode_call): Check attribute type if attribute length is 28.
10838 Likewise use $PIC_pcrel$0. Only call get_attr_length and
10839 dbr_sequence_length once.
10840 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
10841 dbr_sequence_length once.
10842 * pa.h (TARGET_SOM): Define if not defined.
10843 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
10844 with GAS and not SOM.
10845 (jump, call_internal_reg, call_value_internal_reg): Likewise.
10846 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
10848 2002-04-11 David O'Brien <obrien@FreeBSD.org>
10850 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
10851 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
10852 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
10853 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
10854 elfos.h and dbxelf.h values are fine now.
10855 * config/i386/freebsd.h, config/alpha/freebsd.h
10856 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
10858 2002-04-11 David O'Brien <obrien@FreeBSD.org>
10860 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
10861 or set Acpu or Amachine. Reformat.
10862 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
10864 (LINK_SPEC): Do not need to undef.
10865 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
10866 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
10867 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
10869 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
10870 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
10871 (LINK_SPEC): Do not need to undef.
10872 (DONT_USE_BUILTIN_SETJMP): Do not define.
10873 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
10874 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
10875 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
10876 Remove trailing spaces.
10877 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
10878 __ELF__, or set Acpu or Amachine. Reformat.
10879 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
10882 2002-04-11 David O'Brien <obrien@FreeBSD.org>
10884 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
10885 all other *-*-freebsd* targets.
10887 2002-04-11 Richard Henderson <rth@redhat.com>
10889 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
10891 2002-04-11 David O'Brien <obrien@FreeBSD.org>
10893 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
10894 Include {cpu}/{cpu}.h thru tm_file.
10895 (alpha*-*-linux*ecoff): Remove target.
10896 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
10897 (LINK_SPEC): Remove, is not OS independent.
10898 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
10899 (LINK_SPEC): Do not need to #undef any longer.
10900 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
10902 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
10904 (LINK_SPEC): Moved here from alpha/elf.h.
10905 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
10906 SUB_CPP_PREDEFINES.
10907 * config/alpha/linux-ecoff.h: Remove.
10908 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
10909 (CPP_SPEC): Define _POSIX_SOURCE as needed.
10910 (CPP_SUBTARGET_SPEC): Do not define.
10911 (LINK_SPEC): Do not need to #undef any longer.
10912 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
10913 * config/alpha/vms.h: Likewise.
10915 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
10917 * doc/extend.texi: Remove old claim that typedefs cannot have
10918 an alignment attribute.
10920 2002-04-11 Jakub Jelinek <jakub@redhat.com>
10922 PR optimization/6177
10923 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
10924 bitpos is 0 and bitsize CONCAT size.
10926 2002-04-11 Jakub Jelinek <jakub@redhat.com>
10929 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
10931 2002-04-10 David O'Brien <obrien@FreeBSD.org>
10933 * config/alpha/freebsd.h: Minor reformatting.
10934 (CPP_SPEC): Define ELF and add cpp_subtarget.
10935 (ASM_SPEC): No longer needed.
10937 2002-04-11 Richard Henderson <rth@redhat.com>
10939 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
10940 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
10941 (dimode mem/zero splitter): New.
10943 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
10945 * config/cris/cris.c (cris_override_options): Tweak error message
10946 for PIC not implemented.
10948 * config/cris/cris.h: Tweak comments related to parameter-passing.
10950 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
10952 2002-04-10 Richard Henderson <rth@redhat.com>
10954 * except.c (add_ehl_entry): Allow duplicates after landing pad
10957 2002-04-10 David Edelsohn <edelsohn@gnu.org>
10959 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
10961 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
10963 * c-decl.c (c_init_decl_processing): Move generation of
10964 decls for g77_integer_type_node and friends from here ...
10965 * c-common.c (c_common_nodes_and_builtins): ... to here.
10967 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
10969 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
10970 is only used as frame pointer when frame_pointer_needed is true.
10972 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
10975 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
10976 for the fact that the pool entry uses two words.
10977 (movdf_hard_insn): Similarly. Also, ADR instruction can span
10979 (movdf_soft_insn): Similarly.
10980 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
10981 for the fact that the pool entry uses three words.
10983 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
10985 * config/mips/mips.c (mips_va_arg): When using the struct version
10986 of the EABI va_list, allow arguments in the register save area to
10987 take up less room than a stack argument.
10989 2002-04-10 Richard Henderson <rth@redhat.com>
10991 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
10992 if EXPAND_INITIALIZER.
10994 2002-04-09 Richard Henderson <rth@redhat.com>
10996 * config/alpha/alpha.md (movdi_er_maybe_g): New.
10997 * config/alpha/alpha.c (alpha_expand_mov): Use it.
10999 2002-04-10 Alan Modra <amodra@bigpond.net.au>
11001 PR optimization/6233
11002 * rtlanal.c (pure_call_p): New function.
11003 * rtl.h (pure_call_p): Declare.
11004 * loop.c (prescan_loop): Use it to set has_nonconst_call.
11005 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
11007 2002-04-09 Eric Christopher <echristo@redhat.com>
11009 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
11010 information to .comm directive.
11012 2002-04-09 Richard Henderson <rth@redhat.com>
11015 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
11017 2002-04-09 Richard Henderson <rth@redhat.com>
11019 * basic-block.h (flow_delete_block_noexpunge): Declare.
11020 (expunge_block_nocompact): Declare.
11021 * cfg.c (expunge_block_nocompact): Split out from ...
11022 (expunge_block): ... here.
11023 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
11024 (flow_delete_block_noexpunge): Split out from ...
11025 (flow_delete_block): ... here.
11026 * cfgcleanup.c (delete_unreachable_blocks): Compact while
11027 removing dead blocks.
11028 * except.c (exception_handler_labels): Remove.
11029 (exception_handler_label_map): New.
11030 (struct eh_region): Add aka member.
11031 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
11032 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
11033 (for_each_eh_label, for_each_eh_label_1): New.
11034 (init_eh): Register exception_handler_label_map.
11035 (free_eh_status): Use free_region.
11036 (find_exception_handler_labels): Use the map, not the list.
11037 (remove_exception_handler_label): Likewise.
11038 (maybe_remove_eh_handler): Likewise.
11039 (remove_eh_handler): Use the region aka bitmap.
11040 * except.h (exception_handler_labels): Remove.
11041 (for_each_eh_label): Declare.
11042 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
11043 * loop.c (invalidate_loops_containing_label): New.
11044 (find_and_verify_loops): Use it. Use for_each_eh_label.
11045 * sched-rgn.c (is_cfg_nonregular): Use
11046 current_function_has_exception_handlers.
11048 2002-04-09 Richard Henderson <rth@redhat.com>
11050 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
11051 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
11052 Do not return changed status.
11053 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
11054 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
11055 New functions that do return changed status.
11056 * sbitmap.h: Update decls.
11057 * gcse.c, lcm.c: Use _cg functions as needed.
11059 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
11061 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
11062 (sh64-*-elf*, sh-*-rtemself*): Likewise.
11063 * config/sh/embed_bb.c: New file.
11064 * config/sh/embed-elf.h: New file.
11065 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
11066 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
11067 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11069 (SUBTARGET_CPP_PTR_SPEC): Don't define.
11070 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
11071 Add subtarget_asm_endian_spec.
11072 (ASM_SPEC): Use subtarget_asm_endian_spec.
11073 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
11074 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
11075 (WCHAR_UNSIGNED): Define.
11076 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
11077 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11078 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
11080 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
11081 (sh_adjust_cost): Likewise.
11082 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11084 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
11085 (WCHAR_TYPE_SIZE): Likewise.
11086 (ASM_SPEC): Use subtarget_asm_endian_spec.
11087 (SH_ELF_WCHAR_TYPE): #undef/ #define.
11088 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
11089 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
11090 (MAX_WCHAR_TYPE_SIZE): Don't #define .
11091 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
11092 (USER_LABEL_PREFIX): Don't #undef /#define .
11093 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11094 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
11095 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
11096 (ASM_SPEC): Likewise.
11097 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
11098 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
11099 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
11100 (LIB2FUNCS_EXTRA): Define.
11101 * t-sh64 (LIB2FUNCS_EXTRA): Define.
11102 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
11103 (LIB1ASMFUNCS_CACHE): Define.
11104 (LIB2FUNCS_EXTRA): Redefine empty.
11106 2002-04-08 Richard Henderson <rth@redhat.com>
11108 * reorg.c (get_branch_condition): Use reversed_comparison_code.
11110 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11112 * config/m68hc11/larith.asm (__map_data_section): Fix condition
11113 and optimize for size.
11114 (__do_global_ctors): Fix pointer comparison.
11115 (__do_global_dtors): Likewise.
11117 2002-04-09 David S. Miller <davem@redhat.com>
11119 * config/sparc/sparc.c (sparc_extra_constraint_check): New
11120 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
11121 allow reloading pseudos.
11122 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
11123 * config/sparc/sparc-protos.h: Declare it.
11125 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
11126 unsigned comparison warning.
11127 (output_restore_regs): Mark leaf_function as unused.
11129 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11131 * expr.c (is_aligning_offset): New function.
11132 (expand_expr, case COMPONENT_EXPR): Call it.
11134 2002-04-08 David S. Miller <davem@redhat.com>
11137 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
11139 Make init_priority work on Sparc when using GNU ld.
11140 * config/sparc/linux.h, config/sparc/linux64.h,
11141 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
11142 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
11143 * config/sparc/sol2-gld.h: New file to do the same.
11144 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
11145 sparc/sol2-gld.h to tm_file.
11147 PR optimization/4328
11148 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
11149 * doc/md.texi: Document it.
11150 * config/sparc/sparc.md (movdi_insn_sp64_novis,
11151 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
11152 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
11153 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
11154 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
11156 2002-04-08 Andreas Jaeger <aj@suse.de>
11158 * stmt.c (expand_asm_operands): Revert last patch from Richard
11161 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11163 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
11164 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
11166 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11168 * doc/contrib.texi (Contributors): Add David O'Brien.
11170 2002-04-08 Alan Modra <amodra@bigpond.net.au>
11172 * configure.in (auto-build.h): Use target_alias and build_alias
11173 when running configure.
11174 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
11175 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
11176 * configure: Regenerate.
11178 2002-04-07 David S. Miller <davem@redhat.com>
11180 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
11182 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
11185 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
11186 generating 32-bit pic code.
11188 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
11190 * cppinit.c (cpp_create_reader): Initialize
11191 discard_comments_in_macro_exp.
11192 (COMMAND_LINE_OPTIONS): Add "-CC" option.
11193 (cpp_handle_option): Handle "-CC" option.
11194 * cpplex.c (save_comment): If saving a C++ comment in
11195 a directive, convert it to a C comment.
11196 (_cpp_lex_direct): Pass second comment start character to
11197 save_comment to indicate comment type.
11198 * cpplib.c (_cpp_handle_directive): If processing
11199 a "#define" directive and discard_comments_in_macro_exp
11200 is false, re-enable saving of comments.
11201 (lex_macro_node): If discard_comments_in_macro_exp is false,
11202 discard any comments before the macro identifier.
11203 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
11205 * cppmacro.c (cpp_get_token): If expanding a macro while
11206 processing a directive, discard any comments we might encounter.
11207 (parse_params): If discard_comments_in_macro_exp is false,
11208 ignore comments in the macro parameter list.
11209 * gcc.c (cpp_unique_options): Add "-CC" option.
11210 (option_map): Map "--comments-in-macros" to "-CC".
11211 * doc/cppopts.texi: Document "-CC" option.
11212 * f/lang-specs.h: Add "-CC" option.
11213 * testsuite/gcc.dg/cpp/maccom1.c: New test.
11214 * testsuite/gcc.dg/cpp/maccom2.c: New test.
11215 * testsuite/gcc.dg/cpp/maccom3.c: New test.
11216 * testsuite/gcc.dg/cpp/maccom4.c: New test.
11217 * testsuite/gcc.dg/cpp/maccom5.c: New test.
11218 * testsuite/gcc.dg/cpp/maccom6.c: New test.
11220 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
11223 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
11225 2002-04-06 Mark Mitchell <mark@codesourcery.com>
11228 * stor-layout.c (layout_decl): Reset the RTL for the decl.
11231 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
11232 RTX_UNCHANGING_P for the functions arguments when a tail call
11235 2002-04-06 Jason Merrill <jason@redhat.com>
11237 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
11238 (parse_options_and_default_flags): Set them appropriately.
11239 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
11241 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
11243 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
11246 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
11249 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
11250 types come in by-reference. Fix typo in comment.
11252 2002-04-05 David S. Miller <davem@redhat.com>
11254 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
11255 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
11256 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
11257 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
11259 2002-04-05 David S. Miller <davem@redhat.com>
11261 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
11262 are not going to emit return instructions, emit at least a nop
11263 for the sake of sane backtraces.
11265 2002-04-05 Richard Henderson <rth@redhat.com>
11267 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
11269 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
11271 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
11273 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
11275 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
11276 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
11277 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
11279 2002-04-05 Andreas Schwab <schwab@suse.de>
11281 * c-convert.c: Include c-common.h.
11282 * Makefile.in (c-convert.o): Updated.
11284 2002-04-05 Jakub Jelinek <jakub@redhat.com>
11286 * mklibgcc.in: Use separate libgcc.map for each multilib.
11287 * Makefile.in (distclean): Don't remove libgcc.map here.
11289 2002-04-05 Jakub Jelinek <jakub@redhat.com>
11291 * Makefile.in (s-mlib): Handle --disable-multilib by separate
11292 genmultilib invocation.
11294 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
11296 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
11297 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
11298 to num_gprs for symmetry.
11299 * config/mips/mips.c: Adjust accordingly.
11301 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
11303 * c-common.c (truthvalue_conversion): Rename, update.
11304 * c-common.h (c_common_truthvalue_conversion): New.
11305 * c-convert.c (convert): Update.
11306 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11307 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
11308 * c-typeck.c (build_binary_op, build_unary_op,
11309 build_conditional_expr): Update.
11310 * fold-const.c (constant_boolean_node, fold): Use langhook.
11311 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
11312 * langhooks.h (struct lang_hooks): New hook.
11313 * stmt.c (expand_decl_cleanup): Use langhook.
11314 * tree.h (truthvalue_conversion): Remove.
11316 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11318 2002-04-05 Alan Modra <amodra@bigpond.net.au>
11320 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
11321 Add rules to make null object file.
11323 2002-04-04 Jim Blandy <jimb@redhat.com>
11325 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
11326 macro formal parameter names.
11328 2002-04-04 David S. Miller <davem@redhat.com>
11330 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
11332 2002-04-04 Richard Henderson <rth@redhat.com>
11335 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
11336 Support copies into and out of memory. Don't accept allows_reg
11337 and allows_mem as gospel.
11339 2002-04-04 Richard Henderson <rth@redhat.com>
11342 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
11343 (write_dependence_p): Likewise.
11345 2002-04-04 Richard Henderson <rth@redhat.com>
11347 * predict.c (estimate_bb_frequencies): Do frequency calculation
11348 with a volatile temporary.
11350 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
11352 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
11354 2002-04-04 Jakub Jelinek <jakub@redhat.com>
11357 * final.c (final_start_function): Don't bump profile_label_no here...
11358 (final_end_function): ...but here.
11360 2002-04-04 Jakub Jelinek <jakub@redhat.com>
11362 * config/sparc/sparc.md (pic): New attribute.
11363 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
11365 (split after do_builtin_setjmp_setup): New.
11367 2002-04-04 Jakub Jelinek <jakub@redhat.com>
11370 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
11373 2002-04-04 Jakub Jelinek <jakub@redhat.com>
11375 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
11376 UNITS_PER_WORD for zero sized aggregates.
11378 2002-04-03 David S. Miller <davem@redhat.com>
11380 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
11381 one-character spec for this, just use %(link_gcc_c_sequence).
11383 2002-04-03 David S. Miller <davem@redhat.com>
11385 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
11388 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
11390 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
11391 (DWARF_FRAME_RETURN_COLUMN): Move.
11392 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11393 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
11394 * pa.c (except.h, predict.h): Include.
11396 (store_reg_modify, set_reg_plus_d): Revise prototypes.
11397 (output_ascii): Add cast.
11398 (store_reg_modify): Revise to add frame notes.
11399 (set_reg_plus_d): Likewise.
11400 (compute_frame_size): Include space for eh data registers in frame if
11401 the current function calls eh_return.
11402 (hppa_expand_prologue): Ensure register %r2 is saved if the current
11403 function calls eh_return. Save eh data registers if the current
11404 function calls eh_return. Fix code to add frame notes. Emit
11405 blockage to prevent insns with frame notes being scheduled in the
11406 delay slot of calls.
11407 (hppa_expand_epilogue): Restore eh data registers and do final stack
11408 adjustment if the current function calls eh_return. Don't add frame
11410 (output_call): Revise for change in length of call insn. Don't do
11411 return pointer adjustment for an unconditional jump in the delay slot
11412 of a call when using frame notes.
11413 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
11414 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
11415 (ARG_POINTER_CFA_OFFSET): Define.
11416 * pa.md (return_external_pic): New pattern.
11417 (prologue): Correct formatting. Use return_external_pic if current
11418 function calls eh_return.
11419 (call_internal_symref, call_value_internal_symref,
11420 sibcall_internal_symref, sibcall_value_internal_symref): Change default
11421 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
11423 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
11425 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
11426 list of targets to check using "nop" insn.
11427 * configure: Rebuilt.
11429 2002-04-04 Alan Modra <amodra@bigpond.net.au>
11431 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
11433 2002-04-03 David S. Miller <davem@redhat.com>
11435 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
11436 library sequence passed to the linker.
11437 (LINK_COMMAND_SPEC): Use it.
11438 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
11439 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
11440 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11442 2002-04-03 Jason Merrill <jason@redhat.com>
11444 * except.c (struct eh_status): Remove protect_list.
11445 (begin_protect_partials, end_protect_partials): Remove.
11446 (add_partial_entry): Remove.
11447 * except.h: Remove prototypes.
11449 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
11450 expand_decl_cleanup_eh.
11453 * tree.h (CLEANUP_EH_ONLY): New macro.
11454 * stmt.c (expand_decl_cleanup_eh): New fn.
11455 (expand_cleanups): Check CLEANUP_EH_ONLY.
11456 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
11457 Use expand_decl_cleanup_eh.
11458 (expand_stmt): Adjust.
11459 * c-common.h: Adjust prototype.
11461 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
11463 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
11464 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
11465 (cris_target_asm_function_epilogue): Ditto.
11466 (cris_initial_frame_pointer_offset): Ditto.
11467 (cris_simple_epilogue): Ditto.
11468 (cris_expand_builtin_va_arg): Variable-size types come in
11471 2002-04-03 David S. Miller <davem@redhat.com>
11473 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
11475 (set_fast_math): Correct 'fsr' type.
11477 2002-04-03 Richard Henderson <rth@redhat.com>
11480 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
11481 * toplev.c (check_global_declarations): Use it.
11482 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
11483 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11484 (LANG_HOOKS_DECLS): Add it.
11485 * langhooks.c (lhd_warn_unused_global_decl): New.
11486 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11487 * c-objc-common.c (c_warn_unused_global_decl): New.
11488 * c-tree.h (c_warn_unused_global_decl): Declare.
11489 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11491 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
11493 * langhooks-def.h (lhd_set_decl_assembler_name,
11494 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
11495 (LANG_HOOKS_INITIALIZER): Update.
11496 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
11497 * langhooks.h (struct lang_hooks): New hook.
11498 * tree.c (set_decl_assembler_name): Move to langhooks.c.
11499 (lang_set_decl_assembler_name): Remove.
11500 (init_obstacks): Don't set hook.
11501 (decl_assembler_name): New function.
11502 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
11503 (decl_assembler_name): New.
11504 (lang_set_decl_assembler_name): Remove.
11506 2002-04-03 Jakub Jelinek <jakub@redhat.com>
11508 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
11509 works properly with .hidden symbols.
11510 * configure: Rebuilt.
11511 * config.in: Rebuilt.
11512 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
11513 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
11514 properly with .hidden symbols.
11516 2002-04-03 Jakub Jelinek <jakub@redhat.com>
11519 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
11522 2002-04-03 Richard Henderson <rth@redhat.com>
11525 * sched-rgn.c (sets_likely_spilled): New.
11526 (sets_likely_spilled_1): New.
11527 (add_branch_dependences): Use it.
11529 2002-04-02 Richard Henderson <rth@redhat.com>
11532 * loop.h (LOOP_FIRST_PASS): New.
11533 * loop.c (strength_reduce): Mind it when deciding to unroll.
11534 * toplev.c (rest_of_compilation): Set it.
11536 2002-04-02 David S. Miller <davem@redhat.com>
11538 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
11539 mems_ok_for_ldd_peep when the order of the loads being examined
11541 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
11542 existing comment to increase comprehension of this situation.
11544 2002-04-02 Zack Weinberg <zack@codesourcery.com>
11546 * config/sh/sh.md: Don't use union real_extract.
11548 2002-04-02 Richard Henderson <rth@redhat.com>
11550 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
11552 2002-04-02 David O'Brien <obrien@FreeBSD.org>
11554 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
11555 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
11556 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
11557 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
11558 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
11559 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
11560 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
11561 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
11562 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
11563 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
11564 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
11565 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
11566 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
11567 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
11568 Include as many configury headers via tm_file as possible. This
11569 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
11570 * config/openbsd-oldgas.h: New file.
11571 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
11572 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
11573 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
11574 config/i386/i386-coff.h, config/i386/i386-interix.h,
11575 config/i386/iscdbx.h, config/i386/linux-aout.h,
11576 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
11577 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
11578 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
11579 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
11580 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
11581 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
11582 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
11583 config/i386/vxi386.h: Do not directly include configury headers.
11584 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
11585 Directly include configury headers that are no longer automatically
11586 included by the above headers.
11587 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
11588 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
11589 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
11590 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
11591 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
11592 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
11593 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
11594 (TARGET_VERSION): Define.
11595 * config/i386/beos-elf.h, config/i386/freebsd.h,
11596 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
11597 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
11598 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
11599 config/i386/sco5.h, config/i386/sysv4.h
11600 (TARGET_VERSION): Do not need to protect.
11601 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
11602 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
11603 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
11604 config/i386/i386-interix.h, config/i386/linux-aout.h,
11605 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
11606 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
11607 (YES_UNDERSCORES): Do not define - not needed.
11608 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
11609 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
11610 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
11611 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
11612 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
11613 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
11614 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
11615 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
11617 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
11618 Richard Henderson <rth@redhat.com>
11621 * function.c (assign_temp): Accept either type or decl argument.
11622 Detect variables whose size is too large to fit into an integer.
11623 * stmt.c (expand_decl): Pass the decl, not the type.
11625 2002-04-02 David O'Brien <obrien@FreeBSD.org>
11627 * protoize.c: Match include directory usage with cppdefault.c.
11629 2002-04-03 Jeffrey A Law (law@redhat.com)
11630 Hans-Peter Nilsson <hp@bitrange.com>
11632 * combine.c (simplify_comparison): Avoid narrowing a comparison
11633 with a paradoxical subreg when doing so would drop signficant bits.
11635 2002-04-02 Steve Ellcey <sje@cup.hp.com>
11637 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
11638 if POINTERS_EXTEND_UNSIGNED is defined.
11640 2002-04-02 Richard Henderson <rth@redhat.com>
11643 * local-alloc.c (contains_replace_regs): LO_SUM may contain
11646 2002-04-02 Richard Henderson <rth@redhat.com>
11648 * doc/standards.texi: Document required freestanding libc entry points.
11650 2002-04-02 Alan Modra <amodra@bigpond.net.au>
11652 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
11653 associated splitter. Remove MQ constraint.
11654 (ctrdi_internal4): Correct CCmode clobber.
11656 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
11658 * milli64.S ($$dyncall): New function.
11659 * t-linux (LIB1ASMFUNCS): Revise module list.
11660 (LIB1ASMSRC): Use pa/milli64.S.
11662 2002-04-02 Richard Henderson <rth@redhat.com>
11664 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
11665 rename solaris_sys_varargs_h.
11667 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11669 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
11670 the same mode as its component.
11672 2002-04-02 Richard Henderson <rth@redhat.com>
11675 * final.c (this_is_asm_operands): Export.
11676 * output.h (this_is_asm_operands): Declare.
11677 * config/i386/i386.c (print_operand): Error odd asm operands.
11679 2002-04-02 Richard Henderson <rth@redhat.com>
11682 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
11684 2002-04-01 Richard Henderson <rth@redhat.com>
11687 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
11688 * fixinc/fixincl.x: Rebuild.
11690 2002-04-01 Richard Henderson <rth@redhat.com>
11692 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
11693 (atomic_alloc, atomic_free): New.
11694 (SIZE, MASK_FOR, PTR_IN): New.
11695 (emergency_reg_state, emergency_reg_state_free): New.
11696 (emergency_labeled_state, emergency_labeled_state_free): New.
11697 (reg_state_alloced, labeled_state_alloced): New.
11698 (alloc_reg_state, free_reg_state): New.
11699 (alloc_label_state, free_label_state, free_label_states): New.
11700 (push, pop, dup_state_stack, free_state_stack): Use them.
11701 (desc_label_state): Likewise.
11702 (uw_frame_state_for): Free label states and state stack.
11703 (uw_update_reg_address): Eliminate warnings.
11705 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
11707 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
11708 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
11710 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11712 * c-decl.c (grokdeclarator): Update.
11713 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
11714 * c-tree.h (c_mark_addressable): New.
11715 * c-typeck.c (default_function_array_conversion, build_unary_op,
11716 build_array_ref, convert_for_assignment): Update.
11717 (mark_addressable): Rename.
11718 * calls.c (try_to_integrate, expand_call): Use langhook.
11719 * expr.c (expand_expr): Use langhook.
11720 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
11721 * langhooks.h (struct lang_hooks): New hook.
11722 * stmt.c (expand_asm_operands): Use langhook.
11723 * tree.h (mark_addressable): Remove.
11725 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
11727 2002-04-01 Bob Wilson <bob.wilson@acm.org>
11729 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
11730 in previous change.
11732 2002-04-01 Bob Wilson <bob.wilson@acm.org>
11734 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
11735 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
11737 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11739 * c-common.c (unsigned_conversion_warning, convert_and_check,
11740 unsigned_type, signed_type, shorten_compare,
11741 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
11742 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
11743 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
11745 * c-decl.c (grokdeclarator): Update.
11746 * c-format.c (check_format_types): Update.
11747 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
11748 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
11749 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
11750 * convert.c (convert_to_integer): Use new hooks.
11751 * expmed.c (make_tree): Use new hooks.
11752 * expr.c (store_expr): Use new hooks.
11753 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
11754 all_ones_mask_p, unextend, fold): Use new hooks.
11755 * langhooks.h (struct lang_hooks_for_types): New hooks.
11756 * tree.h (signed_or_unsigned_type, signed_type,
11757 unsigned_type): Remove.
11759 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
11760 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
11762 2002-03-31 Richard Henderson <rth@redhat.com>
11764 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
11765 (desc_frgr_mem): Fix reference to f16-f31.
11767 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11769 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
11770 RTVEC_ELT): Const-ify.
11771 * varray.h (VARRAY_CHECK): Const-ify.
11772 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
11773 ggc_mark_rtvec, ggc_mark): Const-ify.
11775 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11777 * diagnostic.c: Include langhooks-def.h.
11778 * Makefile.in (diagnostic.o): Update.
11780 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
11782 * c-common.c (c_unsafe_for_reeval): Rename.
11783 * c-common.h (c_unsafe_for_reeval): Rename.
11784 * c-decl.c (finish_incomplete_decl): Rename.
11785 (c_init_decl_processing): Don't set langhook.
11786 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
11787 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
11788 * c-objc-common.c (c_objc_common_init): Don't set langhook.
11789 * c-tree.h (finish_incomplete_decl): Rename.
11790 * langhooks-def.h (lhd_unsafe_for_reeval): New.
11791 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
11792 (LANG_HOOKS_INITIALIZER): Update.
11793 * langhooks.c (lhd_unsafe_For_reeval): New.
11794 * langhooks.h (struct langhooks): New hooks.
11795 * toplev.c (incomplete_decl_finalize_hook): Remove.
11796 (wrapup_global_declarations): Update.
11797 * tree.c (lang_unsafe_for_reeval): Remove.
11798 (unsafe_for_reeval): Update.
11799 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
11802 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
11803 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
11805 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
11807 * diagnostic.c (print_error_function): Remove.
11808 (default_print_error_function): Rename.
11809 (report_error_function): Update.
11810 * diagnostic.h (print_error_function): Remove.
11811 (default_print_error_function): Remove.
11812 * langhooks-def.h (struct diagnostic_context): Predeclare.
11813 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
11814 (LANG_HOOKS_INITIALIZER): Update.
11815 * langhooks.h (struct diagnostic context): Predeclare.
11816 (struct lang_hooks): New hook.
11818 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11820 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
11821 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
11823 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
11824 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
11825 of PIC_OFFSET_TABLE_REGNUM thruout.
11826 * config/rs6000/rs6000.md: Likewise.
11827 * config/rs6000/darwin.h: Likewise.
11829 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11831 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
11832 unsigned HOST_WIDE_INT, not unsigned int.
11834 2002-03-31 Jakub Jelinek <jakub@redhat.com>
11836 PR middle-end/6096, middle-end/6098, middle-end/6099
11837 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
11839 (fill_slots_from_thread): Likewise.
11841 2002-03-31 Jakub Jelinek <jakub@redhat.com>
11843 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
11844 floating fields in float regs.
11845 (function_arg_record_value_2): Likewise.
11847 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
11849 * config/mmix/mmix.md (define_constants): Remove misleading
11850 FIXME. Add MMIX_fp_rO_OFFSET.
11851 ("nonlocal_goto_receiver"): Don't have stack-frame address of
11852 saved rO as part of the pattern. Remove FIXME.
11853 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
11854 here, at output-time.
11856 2002-03-31 Jakub Jelinek <jakub@redhat.com>
11859 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
11861 (output_v9branch): Likewise.
11863 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
11865 * gcc.c: Revert previous patch for now.
11866 * config/i386/djgpp.h: Likewise.
11868 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
11870 * config/mmix/crti.asm (_init): Register _fini with atexit.
11871 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
11873 2002-03-31 Richard Henderson <rth@redhat.com>
11876 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
11877 (ASM_OUTPUT_DEF_FROM_DECLS): New.
11879 2002-03-31 Richard Henderson <rth@redhat.com>
11881 * libgcc2.c (__bb_exit_func): Make static.
11883 * config/alpha/alpha.md (trap): New.
11885 2002-03-31 Richard Henderson <rth@redhat.com>
11887 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
11888 promoted argument types; build trap.
11889 (expand_builtin_trap): New.
11890 (expand_builtin): Use it.
11891 * stmt.c (expand_nl_goto_receivers): Likewise.
11892 * expr.h (expand_builtin_trap): Declare.
11893 * libfuncs.h (LTI_abort, abort_libfunc): New.
11894 * optabs.c (init_optabs): Init abort_libfunc.
11896 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
11898 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
11899 (LINK_COMMAND_SPEC): ... from here.
11900 (init_gcc_specs): Duplicate it here too, omitting
11901 shared_name in the second copy.
11902 (init_spec): Test for duplicate
11903 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
11905 2002-03-30 David S. Miller <davem@redhat.com>
11907 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11908 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
11910 2002-03-30 Roger Sayle <roger@eyesopen.com>
11911 Richard Henderson <rth@redhat.com>
11913 * regmove.c (combine_stack_adjustments_for_block): Avoid
11914 emitting a stack adjustment of zero bytes. Let delete_insn
11917 2002-03-30 Richard Henderson <rth@redhat.com>
11919 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
11920 (sparc_emitting_epilogue): New.
11921 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
11922 * config/sparc/sparc-protos.h: Update.
11923 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
11924 (TARGET_SWITCHES): Update.
11925 * config/sparc/sparc.md (return): Remove.
11926 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
11927 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
11928 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
11929 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11930 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
11931 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
11932 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
11933 Remove MASK_EPILOGUE.
11934 * doc/invoke.texi: Update.
11936 2002-03-30 Daniel Berlin <dan@dberlin.org>
11938 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
11939 CPP will start the file for us.
11941 2002-03-30 Richard Henderson <rth@redhat.com>
11944 * config/ia64/ia64.c (group_barrier_needed_p): Special case
11945 prologue_allocate_stack.
11946 (ia64_single_set): Use insn codes for recognition of special
11947 cases, not rtl matching.
11948 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
11950 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
11952 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
11954 2002-03-30 Richard Henderson <rth@redhat.com>
11957 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
11958 or -fomit-frame-pointer with profiling.
11959 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
11960 (FUNCTION_PROFILER): Do nothing.
11961 (PROFILE_HOOK): New.
11962 * config/sparc/sparc.c (sparc_override_options): Don't check
11963 code models for profiling.
11964 (sparc_function_profiler): Remove.
11965 (sparc_profile_hook): New.
11966 * config/sparc/sparc-protos.h: Update.
11968 2002-03-30 Jakub Jelinek <jakub@redhat.com>
11970 PR optimization/6086
11971 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
11972 of SUBREG of volatile MEM or because the MEM was mode dependent,
11973 return CLOBBER instead of unmodified SUBREG.
11975 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
11977 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
11978 when not optimizing.
11980 * toplev.c (rest_of_compilation): Cann mark_constant_function
11981 only when optimizing.
11983 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
11986 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
11987 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
11988 (try_optimize_cfg): clear all AUX fields.
11990 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
11991 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
11992 (ix86_address_cost): Be prepared for SUBREGed registers.
11993 (legitimate_address_p): Accept SUBREGed registers.
11995 2002-03-29 Richard Henderson <rth@redhat.com>
11998 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
12000 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12002 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
12003 for aggregate and TFmode types.
12005 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
12007 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
12009 2002-03-29 Richard Henderson <rth@redhat.com>
12012 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
12013 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
12015 2002-03-29 Richard Henderson <rth@redhat.com>
12018 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
12019 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
12020 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
12021 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
12023 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
12025 2002-03-29 Dale Johannesen <dalej@apple.com>
12027 * loop.c (combine_movables): Do allow combination of pseudos.
12029 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
12031 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
12032 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
12033 No functional change except ...
12034 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
12035 * doc/install.texi (*-*-freebsd*): Document port configuration.
12037 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
12039 * Makefile.in (convert.o, calls.o, expmed.o): Update.
12040 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
12042 * builtin-types.def (BT_PTRMODE): Update.
12043 * c-common.c (type_for_size): Rename c_common_type_for_size.
12044 (type_for_mode): Similarly.
12045 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
12047 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
12048 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
12049 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
12051 * c-typeck.c (common_type, comptypes, default_conversion):
12053 * calls.c: Include langhooks.h.
12054 (emit_library_call_value_1): Use new hooks. Avoid redundant
12056 * convert.c: Include langhooks.h
12057 (convert_to_pointer, convert_to_integer): Use new hooks.
12058 * except.c (init_eh): Similarly.
12059 * expmed.c: Include langhooks.h.
12060 (expand_mult_add): Use new hooks.
12061 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
12062 try_casesi): Similarly.
12063 * fold-const.c (optimize_bit_field_compare, make_range,
12064 decode_field_reference, fold_truthop, fold): Similarly.
12065 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
12066 put_var_into_stack): Similarly.
12067 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
12068 LANG_HOOKS_TYPE_FOR_SIZE): New.
12069 (LANG_HOOKS_TYPES_INITIALIZER): Update.
12070 * langhooks.h (lang_hooks_for_types): New hooks.
12071 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
12072 * tree.c (get_unwidened, get_narrower): Similarly.
12073 * tree.h (type_for_mode, type_for_size): Remove.
12074 * varasm.c (force_const_mem): Use new hooks.
12075 * utils2.c (nonbinary_modular_operation): Update.
12077 * objc-act.c (handle_impent): Update.
12078 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
12081 2002-03-29 Steve Ellcey <sje@cup.hp.com>
12083 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
12084 * config/ia64/ia64.c (basereg_operand): New.
12085 * config/ia64/ia64-protos.h (basereg_operand): Declare.
12086 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
12088 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
12090 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
12091 unwind information when frame_pointer_needed.
12092 (mmix_assemble_integer): Tweak wording in comment.
12094 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
12096 * Makefile.in (except.o): Update.
12097 * except.c: Include langhooks.h.
12098 (init_eh): Use langhook.
12099 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
12100 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
12101 (LANG_HOOKS_INITIALIZER): Update.
12102 * langhooks.h (lang_hooks_for_types): New.
12103 (struct lang_hooks): Add it.
12104 * tree.c (make_lang_type_fn, make_lang_type): Remove.
12105 * tree.h (make_lang_type_fn, make_lang_type): Remove.
12107 * alpha/alpha.c: Include langhooks.h.
12108 (alpha_build_va_list): Use langhook.
12109 * d30v/d30v.c: Include langhooks.h.
12110 (d30v_build_va_list): Use langhook.
12111 * i386/i386.c: Include langhooks.h.
12112 (ix86_build_va_list): Use langhook.
12113 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
12114 * s390/s390.c: Include langhooks.h.
12115 (s390_build_va_list): Use langhook.
12116 * stormy16/stormy16.c: Include langhooks.h.
12117 (stormy16_build_va_list): Use langhook.
12119 2002-03-29 Jakub Jelinek <jakub@redhat.com>
12122 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
12124 (length): Compute variable length for branches/calls/jumps here.
12125 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
12126 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
12127 define branch_type attribute.
12128 (divsi3_sp32): Maximum length is 6 not 7.
12129 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
12130 call_address_untyped_struct_value_sp32,
12131 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
12132 * config/sparc/sparc.c (empty_delay_slot): New function.
12133 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
12134 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
12136 2002-03-29 Jakub Jelinek <jakub@redhat.com>
12138 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
12139 nonzero_bits if not needed.
12140 (nonzero_bits) [XOR]: Likewise.
12141 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
12142 reg_last_set_mode and mode are both MODE_INT, but not equal.
12143 (record_value_for_reg): Compute reg_last_set_nonzero_bits
12144 in nonzero_bits_mode for MODE_INT modes.
12146 2002-03-28 Richard Henderson <rth@redhat.com>
12149 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
12150 to GAS. Correct drift between alternatives.
12152 2002-03-28 Richard Henderson <rth@redhat.com>
12155 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
12157 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
12159 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
12160 emulation to the linker.
12162 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
12164 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
12165 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
12167 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
12169 * combine.c (simplify_and_const_int): Make sure to apply mask
12170 when force_to_mode returns a constant integer. PR3311.
12172 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
12174 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
12176 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12178 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
12179 and Objective-C Dialect Options.
12181 2002-03-28 Richard Henderson <rth@redhat.com>
12183 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
12184 comparison should be done vs !=0 not >0 return code. Tidy cases.
12186 2002-03-28 Richard Henderson <rth@redhat.com>
12188 * c-decl.c (finish_function): New arg can_defer_p. Pass it
12189 on to c_expand_body.
12190 * c-tree.h (finish_function): Update decl.
12191 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
12193 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
12195 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
12197 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
12199 * rtlanal.c: Include flags.h
12200 (may_trap_p): Do not mark FP operations if trapping
12201 if !flag_trapping_math
12202 * Makefile.in (rtlanal.o): Add dependency on flag.h
12203 * ifcvt.c (noce_operand_ok): Avoid the lameness.
12205 2002-03-27 Zack Weinberg <zack@codesourcery.com>
12207 * mips.md: Use dconst1, not 1.0, as first argument of
12208 REAL_VALUE_LDEXP. Don't use union real_extract.
12210 2002-03-28 Alan Modra <amodra@bigpond.net.au>
12212 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
12213 rather than $target. Heed program_prefix and
12214 program_transform_name. Search for gas in cross-compiler case too.
12215 "test -x" rather than "test -f".
12216 (gcc_cv_ld): Likewise.
12217 (gcc_cv_nm): Heed program_prefix and program_transform_name.
12218 (gcc_cv_objdump): Likewise.
12219 * configure: Regenerate.
12221 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12223 * Makefile.in (attribs.o): Update.
12224 * attribs.c: Include langhooks.h.
12225 (decl_attributes): Use langhook.
12226 * c-decl.c (insert_default_attributes): Rename.
12227 * c-tree.h (c_insert_default_attributes): New.
12228 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
12229 (LANG_HOOKS_INITIALIZER): Update.
12230 * langhooks.h (struct lang_hooks): New hook.
12231 * tree.h (insert_default_attributes): Remove.
12233 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
12235 2002-03-27 Andreas Schwab <schwab@suse.de>
12237 * config/i386/i386.c (classify_argument): Also check for
12240 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12242 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
12245 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
12247 * i960.md (ret): Set PC.
12248 (nonlocal_goto): Fix expander.
12249 * builtins.c (epxand_builin_longjmp): Check that we've emitted
12252 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
12254 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
12255 of libcall regions.
12257 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12259 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
12260 assigning to BLOCK_FOR_INSN directly.
12262 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
12264 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
12266 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12268 * c-common.c (c_expand_expr): Fix prototype.
12269 * c-common.h (c_expand_expr): Always declare, update.
12270 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12271 * c-objc-common.c (c_objc_common_init): No global hook.
12272 * expr.c (expand_expr): Use langhook.
12273 * expr.h (enum expand_modifier): Conditionally declare.
12274 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
12275 (LANG_HOOKS_INITIALIZER): Update.
12276 * langhooks.c (lhd_expand_expr): New.
12277 * langhooks.h (struct lang_hooks): New hook.
12278 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
12279 (lang_independent_init): Don't default hook.
12281 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12283 2002-03-27 Richard Henderson <rth@redhat.com>
12286 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
12287 TARGET_CONST_GP. Simplify conditions.
12289 2002-03-27 Richard Henderson <rth@redhat.com>
12291 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12292 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
12293 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
12295 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
12297 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
12298 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
12299 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
12300 Remove unnecessary masks.
12301 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
12302 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
12303 -mwindows, -mdll switches and their negations.
12305 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12307 * gcc-common.c (lang_mark_false_label_stack): Remove.
12308 * ggc.h (lang_mark_false_label_stack): Similarly.
12310 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
12312 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
12314 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
12315 or __rtems_ is defined.
12317 2002-03-26 Richard Henderson <rth@redhat.com>
12319 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
12320 if a non-trivial load was emitted.
12321 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
12322 in high+extra+low case.
12324 2002-03-26 Richard Henderson <rth@redhat.com>
12326 * config.gcc (sparc*-solaris): Use float_format=sparc.
12328 2002-03-26 Richard Henderson <rth@redhat.com>
12330 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12331 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
12332 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
12333 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
12334 (WINT_TYPE_SIZE): Fix at 32.
12336 2002-03-26 Richard Henderson <rth@redhat.com>
12338 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
12339 until after eh landing pad generation.
12340 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
12341 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
12343 2002-03-26 Richard Henderson <rth@redhat.com>
12345 * expr.h (ADD_PARM_SIZE): One more convert for INC.
12347 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
12349 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
12350 and warning switches.
12351 (cc1_options): Likewise.
12353 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
12355 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
12356 Restore more of the signal context. Set no_reg_stack_frame.
12357 * config/ia64/unwind-ia64.c (unw_state_record):
12358 Add no_reg_stack_frame, comments.
12359 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
12360 (uw_update_context): Adjust bsp when unwinding from leaf,
12361 but not signal frame.
12363 2002-03-26 David Edelsohn <edelsohn@gnu.org>
12365 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
12367 2002-03-26 Bob Wilson <bob.wilson@acm.org>
12369 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
12371 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
12374 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
12375 "Add a pool_range attribute", which was lost during the ARM/Thumb
12378 2002-03-26 Bob Wilson <bob.wilson@acm.org>
12380 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
12381 a register into the MAC16 accumulator.
12383 2002-03-26 Andrew Cagney <ac131313@redhat.com>
12385 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
12386 (Warning Options): Document -Wswitch-enum.
12387 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
12389 (warn_switch_enum): Define variables.
12390 * flags.h (warn_switch_enum): Declare variables.
12391 * stmt.c (expand_end_case_type): When warn_switch_enum /
12392 -Wswitch-enum, perform switch checks.
12395 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
12397 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
12398 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
12399 (reload_muladdsi_compare0_scratch): Delete.
12401 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
12403 * doc/install.texi (*-*-freebsd*): Update.
12405 2002-03-26 Richard Henderson <rth@redhat.com>
12407 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
12408 (SUB_PARM_SIZE): Cast DEC to ssizetype.
12410 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
12411 types from the normal argument frame.
12413 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
12414 variable sized objects by reference.
12415 (sparc_va_arg): Receive them by reference too.
12417 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
12419 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
12420 code to not restoring global registers.
12422 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
12424 * Makefile.in (ggc-common.o): Update.
12425 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
12426 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12427 * c-tree.h (c_mark_tree): New.
12428 * ggc-common.c: Include langhooks.h.
12429 (gcc_mark_trees): Use new langhook.
12430 * ggc-callbacks.c: Delete file.
12431 * ggc.h (lang_mark_tree): Remove.
12432 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
12433 (LANG_HOOKS_INITIALIZER): Update.
12434 * langhooks.h (struct lang_hooks): New hook.
12436 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12438 2002-03-25 Zack Weinberg <zack@codesourcery.com>
12440 * doc/cpp.texi: Exclude entire Top node from printed manual.
12441 Move option index after directive index. Insert page breaks
12442 before GFDL and concept index. Index environment variables
12443 with command line options.
12444 * doc/cppenv.texi: Use @vtable for environment variable list.
12445 Add paragraph explaining semantics of empty elements in path
12446 variables. Exclude a cross-reference to Fishkill from the
12447 manpage. Remove an unnecessary cross-reference of the entry
12448 right above the referer. Don't use @anchor in text that goes
12450 * doc/cppopts.texi: Cross-reference the environment variables
12451 section, not the specific environment variable, for consistency.
12453 2002-03-25 Richard Henderson <rth@redhat.com>
12455 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
12456 anywhere in the block. Don't refer to insns that have been
12457 removed from the chain. Iterate backward through the new insns.
12458 Don't refer to edges that have been removed.
12460 2002-03-26 Alan Modra <amodra@bigpond.net.au>
12462 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
12463 test for overflow of constant.
12465 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
12468 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
12469 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
12470 these patterns on arm_archv4.
12472 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
12474 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
12477 2002-03-25 Zack Weinberg <zack@codesourcery.com>
12479 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
12480 float_handled, float_handler, float_signal, set_float_handler,
12481 and do_float_handler. Set handler for SIGFPE to crash_signal.
12482 * toplev.h: Don't prototype do_float_handler.
12484 * c-lex.c: Fold parse_float into lex_number. Make warning
12485 about portability of hex float constants more informative, and
12486 don't issue it on top of a syntax error.
12487 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
12489 * real.h: Define REAL_VALUE_ABS here...
12490 * simplify-rtx.c: ... not here. Fold check_fold_consts,
12491 simplify_unary_real, simplify_binary_real, and
12492 simplify_binary_is2orm1 into their callers.
12493 * tree.c: Fold build_real_from_int_cst_1 into caller.
12495 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
12497 * tsystem.h: Include float.h here...
12498 * libgcc2.c: ... not here.
12500 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
12502 Fixes for: PR bootstrap/3591, target/5676
12503 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
12504 defined. Do not disable exceptions or rtti.
12505 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
12506 mcore.h. Disable exceptions and rtti, since they are not
12509 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
12511 * c-decl.c (maybe_build_cleanup): Remove.
12512 * expr.c (expand_expr): Use langhook.
12513 * langhooks-def.h (lhd_return_null_tree,
12514 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
12515 (LANGHOOKS_INITIALIZER): Update.
12516 * langhooks.c (lhd_return_null_tree): New.
12517 * langhooks.h (struct lang_hooks): New hook.
12518 * tree-inline.c (initialize_inlined_parameters): Use langhook.
12519 * tree.h (maybe_build_cleanup): Remove.
12521 2002-03-25 Jakub Jelinek <jakub@redhat.com>
12523 * regrename.c (build_def_use): Move recog_memoized
12524 before extract_insn.
12526 2002-03-25 Jakub Jelinek <jakub@redhat.com>
12529 * expr.c (emit_group_store): Handle storing into CONCAT.
12531 2002-03-25 Jakub Jelinek <jakub@redhat.com>
12533 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
12534 corresponding MATCH_DUP.
12536 2002-03-24 Richard Henderson <rth@redhat.com>
12538 * unroll.c (unroll_loop): Zero label_map.
12540 * gcse.c: Include except.h.
12541 * Makefile.in (gcse.o): Update.
12543 2002-03-24 Richard Henderson <rth@redhat.com>
12545 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
12546 Do resolve_unique_section before shared data clause.
12548 2002-03-24 Richard Henderson <rth@redhat.com>
12550 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
12552 2002-03-24 Richard Henderson <rth@redhat.com>
12554 * recog.c (peephole2_optimize): Split blocks when EH insns are
12555 generated in the middle of a block. Do global life update if
12558 2002-03-24 Richard Henderson <rth@redhat.com>
12560 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
12562 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
12565 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
12566 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
12567 (init_dependency_output): Don't make no_output decision here.
12569 2002-03-24 Andrew Cagney <ac131313@redhat.com>
12571 * stmt.c (check_for_full_enumeration_handling): Remove tests of
12572 warn_switch. Update description.
12573 (expand_end_case_type): Call check_for_full_enumeration_handling
12576 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12578 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
12579 (m68hc11_split_move): Call it to see if the source and destination
12580 operands use the same direction auto inc/dec mode, otherwise make the
12581 source an offsetable memory operand and generate an add.
12583 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12585 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
12586 register for operand 2.
12587 ("*subsi3_zero_extendqi"): Likewise.
12588 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
12589 bits so that it is compatible with a pop.
12590 ("*andhi3_gen"): Likewise.
12591 ("xorhi3"): Likewise.
12593 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
12595 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
12597 (cpp_post_options): ... not here.
12599 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
12600 Aldy Hernandez <aldyh@redhat.com>
12602 Removal of separate preprocessor cpp0.
12604 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
12605 cpp0, install-common): Update.
12606 * c-common.c (flag_preprocess_only): New.
12607 (c_common_init): Preprocess for -E.
12608 * c-common.h (flag_preprocess_only): New.
12609 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
12610 * c-objc-common.c (c_init_decl_processing): Exit quickly
12611 for NULL return from c_common_init.
12612 * cpplib.h (cpp_preprocess_file): New.
12613 * cppmain.c (main, general_init, pfile, progname): Remove.
12614 (do_preprocessing): Rename cpp_preprocess_file, don't call
12615 cpp_finish. Don't close stdout here.
12616 (setup_callbacks): Update prototype.
12617 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
12619 * tradcpp.c (main): Ignore -quiet.
12621 * lang-specs.h (default_compilers): Preprocess with cc1obj.
12623 2002-03-24 Richard Henderson <rth@redhat.com>
12625 PR optimization/5742
12626 * machmode.def: Add inner mode field to complex modes.
12627 * config/mips/mips.c (mips_function_value): Always define. Add
12628 new argument to handle libcalls.
12629 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
12630 (FUNCTION_VALUE): Likewise.
12631 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
12632 * config/mips/mips-protos.h: Update.
12634 2002-03-23 Richard Henderson <rth@redhat.com>
12636 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
12637 * config/sparc/sparc-protos.h: Update.
12638 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
12640 2002-03-23 Richard Henderson <rth@redhat.com>
12642 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
12643 _start or _init begins the text segment.
12645 2002-03-23 David Edelsohn <edelsohn@gnu.org>
12647 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
12648 not HOST_WIDEST_INT.
12649 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
12651 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
12654 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
12655 operand argument to output_return_instruction.
12656 * arm.c (arm_print_operand, case 'd'): If the operand is
12657 const_true_rtx then just return.
12658 (arm_print_operand, case 'D'): If the operand is const_true_rtx
12661 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12663 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
12664 (Warning Options): Document -Wswitch-default.
12665 * toplev.c (W_options): Add -Wswitch-default. Update comment on
12667 (warn_switch_default): Define variable.
12668 (warn_switch): Update comment.
12669 * flags.h (warn_switch_default): Declare variable.
12670 (warn_switch): Update comment.
12671 * stmt.c (expand_end_case): Check for and, when
12672 warn_switch_no_default, warn of a missing default case.
12674 2002-03-23 Alan Modra <amodra@bigpond.net.au>
12676 * real.h (N): Special case 128 bit doubles.
12678 * combine.c (simplify_comparison): When widening modes, ignore
12679 sign extension on CONST_INTs.
12681 2002-03-22 Bob Wilson <bob.wilson@acm.org>
12683 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
12684 passed to adjust_address. Fix comment formatting.
12687 2002-03-22 Zack Weinberg <zack@codesourcery.com>
12689 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
12690 Always make REAL_VALUE_TYPE a struct containing an array of
12691 HOST_WIDE_INT, not a double. Tidy up the code deciding how
12692 big it is. Don't declare or use union real_extract.
12694 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
12695 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
12696 (print_operand), config/arm/arm.c (output_move_double),
12697 config/arm/arm.md (consttable_4, consttable_8),
12698 config/romp/romp.c (output_fpops), config/s390/s390.h
12699 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
12700 (xtensa_output_literal): Don't use union real_extract.
12702 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
12703 (sfmode_constant_to_ulong), config/ns32k/merlin.h
12704 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
12705 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
12706 (PRINT_OPERAND): Don't use local version of union
12709 * config/convex/convex.c (check_float_value), config/vax/vax.c
12710 (vax_float_literal), config/m88k/m88k.md (divdf3),
12711 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
12712 config/pdp11/pdp11.c (output_move_quad): Don't do host
12713 arithmetic on target floating point quantities.
12715 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
12716 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
12718 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
12719 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
12721 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
12722 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
12724 * print-rtl.c (print_rtx): Disable code which needs
12725 floating-point emulator.
12726 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
12727 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
12728 depending on HOST_FLOAT_FORMAT to be defined properly.
12730 * config/1750a/1750a.c (get_double, float_label): Delete.
12731 (print_operand): Delete huge commented-out chunk. Use
12732 REAL_VALUE_TO_DECIMAL.
12733 * config/1750a/1750a-protos.h: Delete prototypes of deleted
12735 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
12737 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
12738 Use REAL_VALUE_TO_DECIMAL as ELF version does.
12739 * config/m88k/m88k.c (real_power_of_2_operand,
12740 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
12741 real_extract out of the union; run the input through
12742 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
12743 from that into the union.
12744 * config/pdp11/pdp11.c (output_move_double): Rearrange
12745 parentheses to make automatic indenter happy.
12747 * doc/tm.texi (Cross-compilation): Rename node to "Floating
12748 Point" and rewrite to describe current situation. Also adjust
12749 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
12751 * doc/rtl.texi: Adjust cross reference.
12753 2002-03-22 Bob Wilson <bob.wilson@acm.org>
12755 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
12756 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
12757 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
12758 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
12759 prevent use of sp as a reload register.
12760 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
12761 non_acc_reg_operand.
12762 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
12763 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
12764 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
12765 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
12767 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
12769 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
12770 * cpplex.c (unterminated): Delete.
12771 (parse_string): No string literal may extend over multiple
12772 lines. Suppress the error when preprocessing assembly.
12773 * cppmain.c (scan_translation_unit): Strings are single-line.
12775 * doc/cpp.texi: Update to match.
12777 2002-03-22 Jakub Jelinek <jakub@redhat.com>
12779 PR optimization/5854
12780 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
12782 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
12783 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
12784 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
12785 const0 if scratch register was not allocated.
12786 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
12787 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
12788 with GEN_INT (...).
12789 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
12790 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
12791 with GEN_INT (...) everywhere. Remove constraints in define_split
12793 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
12794 require scratch register for setting 0 into regs/non-pushable memory.
12796 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
12798 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
12799 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
12801 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
12803 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
12804 * cppinit.c (cpp_create_reader): On by default.
12805 (cpp_handle_option): Handle -W[no-]endif-labels.
12806 (cpp_post_options): Also enable if -pedantic.
12807 * cpplib.c (do_else): Use it.
12808 (do_endif): Likewise.
12809 * doc/cppopts.texi: Document new option.
12810 * doc/invoke.texi: Document new option.
12812 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
12814 * config/i386/i386.c, config/i386/i386.md: Change all occurences
12815 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
12817 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
12819 * flow.c (calculate_global_regs_live): Clear aux fields of
12822 2002-03-22 Jakub Jelinek <jakub@redhat.com>
12824 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
12825 REG or MEM subregs, pass rtx * instead of rtx to it.
12826 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
12827 rtx * instead of rtx to alter_subreg.
12828 * config/m32r/m32r.c (gen_split_move_double): Likewise.
12829 * config/pj/pj.c (pj_output_rval): Likewise.
12831 2002-03-22 Richard Henderson <rth@redhat.com>
12834 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
12835 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
12836 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
12837 (ia64_expand_prologue): Look at int_regs, not words, for number
12838 of incomming int regs.
12840 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
12842 * expr.c (expand_expr): A RESULT_DECL is part of a call.
12844 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
12846 * toplev.c (flag_loop_optimize, flag_crossjumping):
12847 New static variables.
12848 (rest_of_compilation): Conditionalize crossjumping and
12850 (parse_options_and_default_flags): Default loop_optimize and
12852 (lang_independent_options): Add -fcrossjumping and -floop-optimize
12853 * invoke.texi (crossjumping, loop-optimize): Document.
12855 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
12857 * real.c (eiisneg): Move outside #ifdef NANS.
12859 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
12861 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
12862 frequencies match; avoid match on different loop depths.
12863 (try_crossjump_to_bb): Kill tests that no longer brings time
12865 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
12867 (split_edge): Likewise.
12869 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
12872 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
12873 * cfgrtl.c: Include insn-config.h
12874 (split_block) Dirtify block in presence of conditional execution
12876 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
12878 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
12879 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
12880 (function_arg): Constify CUMULATIVE_ARGS.
12881 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
12882 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
12883 (UNITS_PER_DOUBLE): New macro.
12884 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
12885 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
12886 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
12887 fp_regs and stack_words.
12888 (EABI_FLOAT_VARARGS_P): New macro.
12889 * config/mips/mips.c (struct mips_arg_info): New.
12890 (mips_arg_info): New function.
12891 (function_arg_advance): Use it. Add adjustment instructions here
12892 rather than in function_arg.
12893 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
12894 for VOIDmode at the beginning of the function.
12895 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
12896 (function_arg_pass_by_reference): Likewise.
12897 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
12898 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
12899 (mips_va_start): Likewise. Use the new stack_words field of
12900 CUMULATIVE_ARGS to set up overflow area. Reformat.
12901 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
12902 doubles and other types, aligning the overflow pointer for non-doubles
12903 too. Remove some code duplication. Replace hard-coded constants.
12905 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
12907 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
12908 (CLASS_UNITS): Undefine.
12909 (CLASS_MAX_NREGS): Use FP_INC.
12910 * config/mips/mips.c (compute_frame_size): Likewise.
12911 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
12913 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
12915 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
12916 prototype, and handle lexing numbers and identifiers.
12917 (parse_identifier): Update to new form of parse_slow.
12918 (parse_number): Fast path only, use parse_slow otherwise.
12919 (_cpp_lex_direct): Update calls to parse_number.
12921 2002-03-21 DJ Delorie <dj@redhat.com>
12923 * bb-reorder.c (make_reorder_chain_1): Protect against
12924 when redundant edges are omitted.
12925 * predict.c (dump_prediction): Likewise.
12927 2002-03-21 Richard Henderson <rth@redhat.com>
12930 * fixinc/inclhack.def (solaris_stdio_tag): New.
12931 * fixinc/fixincl.x: Regenerate.
12933 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
12936 * c-typeck.c (process_init_element): Flag non-static
12937 initialization of a flexible array member as illegal.
12939 2002-03-22 Alan Modra <amodra@bigpond.net.au>
12941 * config/rs6000/t-linux64: New.
12942 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
12943 t-ppccomm. Use t-rs6000 and t-linux64.
12944 (powerpc64-*-gnu* <tmake_file>): Likewise.
12945 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
12946 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
12947 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
12949 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
12951 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
12952 flag_really_no_inline instead of optimize == 0.
12954 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
12956 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
12958 * flags.h (flag_really_no_inline): New.
12960 * c-common.c (c_common_post_options): Initialize
12961 flag_really_no_inline.
12963 * toplev.c (flag_really_no_inline): New.
12965 2002-03-21 Jakub Jelinek <jakub@redhat.com>
12967 * config/avr/avr.md (length): Fix length computation for
12968 conditional branches.
12970 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
12972 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
12973 sdbout.o, profile.o): Update.
12974 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
12976 * c-common.h (gettags): Move here from tree.h.
12977 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
12978 insert_block, getdecls, kept_level_p, global_bindings_p): New.
12979 * dbxout.c (dbxout_init): Use getdecls langhook.
12980 * expr.c (expand_expr): Use insert_block langhook.
12981 * fold-const.c: Include langhooks.h.
12982 (fold_range_test, fold_binary_op_with_conditional_arg,
12983 fold): Use global_bindings_p langhook.
12984 * integrate.c (expand_inline_function): Use insert_block langhook.
12985 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
12986 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
12987 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
12988 LANG_HOOKS_GETDECLS): New.
12989 (LANG_HOOKS_INITIALIZER): Update.
12990 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
12992 * langhooks.h (struct lang_hooks_for_decls): New.
12993 (struct lang_hooks): Update.
12994 * profile.c: Include langhooks.h.
12995 (output_func_start_profiler): Use new langhooks.
12996 * sdbout.c: Include langhooks.h.
12997 (sdbout_init, sdbout_finish): Use getdecls langhook.
12998 * stmt.c: Include langhooks.h.
12999 (expand_fixup, fixup_gotos): Use new langhooks.
13000 * stor-layout.c: Include langhooks.h.
13001 (variable_size): Use global_bindings_p langhook.
13002 * toplev.c (compile_file): Use getdecls langhook.
13003 * tree-inline.c (remap_block): Use insert_block langhook.
13004 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
13005 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
13007 2002-03-21 Richard Henderson <rth@redhat.com>
13009 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
13010 constants in .data when -fpic.
13012 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13014 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
13017 2002-03-21 Tom Tromey <tromey@redhat.com>
13019 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
13021 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13023 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
13025 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
13027 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
13028 Richard Henderson <rth@redhat.com>
13031 * c-common.c (c_expand_expr): Preserve result of a statement
13032 expression if needed.
13034 2002-03-21 Jakub Jelinek <jakub@redhat.com>
13037 * genrecog.c (maybe_both_true_mode): Remove.
13038 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
13039 * machmode.def (Pmode): Likewise.
13041 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
13043 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
13044 (nonlocal_mentioned_p_1): New function.
13045 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
13046 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
13047 (mark_constant_function): Recognize pure functions.
13048 * rtl.h (global_reg_mentioned_p): New prototype.
13049 * rtlanal.c (global_reg_mentioned_p,
13050 global_reg_mentioned_p_1): New function.
13052 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13054 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
13056 * fixinc/fixincl.x: Regenerate.
13058 2002-03-20 Jason Merrill <jason@redhat.com>
13060 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
13062 2002-03-20 Michael Meissner <meissner@redhat.com>
13064 * doc/invoke.texi (Optimize Options): Document that -O2 sets
13067 2002-03-20 Bob Wilson <bob.wilson@acm.org>
13069 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
13070 ".literal_position" directive before the constant pool.
13072 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13074 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
13075 Add Craig Rodrigues.
13076 Add Brad Lucier to testers.
13078 2002-03-20 Jakub Jelinek <jakub@redhat.com>
13081 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
13083 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
13084 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
13085 instead of insn_extract.
13087 2002-03-20 Jakub Jelinek <jakub@redhat.com>
13090 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
13092 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
13093 stmt if some case has been output.
13095 2002-03-20 Jakub Jelinek <jakub@redhat.com>
13098 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
13099 movsfcc_1, movdfcc_1): Add %O2.
13100 * config/i386/i386.c (print_operand): Handle %ON.
13101 Print . before float condition codes in Sun as cmov syntax.
13102 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
13103 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
13106 2002-03-20 Philip Blundell <pb@nexus.co.uk>
13108 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
13109 return instruction if PC was popped.
13111 2002-03-20 Bob Wilson <bob.wilson@acm.org>
13113 * config/xtensa/xtensa.md: Remove unused type attributes.
13114 (adddi_carry, subddi_carry): Change type attribute to "multi".
13116 2002-03-19 Dale Johannesen <dalej@apple.com>
13118 PR optimization/5999, middle-end/5731
13119 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
13120 multiplications by reciprocals.
13122 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
13124 * Makefile.in: Update.
13125 * c-common.c: Include langhooks.h.
13126 (inline_forbidden_p): Use new hook.
13127 * diagnostic.c: Include langhooks.h.
13128 (format_with_decl, announce_function,
13129 default_print_error_function): Use new hook.
13130 * dwarf2out.c (dwarf2_name): Use new hook.
13131 * function.c: Include langhooks.h.
13132 (init_function_start): Use new hook.
13133 * langhooks-def.h (lhd_decl_printable_name): New.
13134 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
13135 (LANGHOOKS_INITIALIZER): Update.
13136 * langhooks.c (lhd_decl_printable_name): New.
13137 * langhooks.h (struct lang_hooks): New hook.
13138 * toplev.c (decl_name, decl_printable_name): Remove.
13139 (open_dump_file): Use new hook.
13140 (process_options): Remove old hook.
13141 * tree.h (decl_printable_name): Remove.
13143 * objc-act.c (objc_init): Remove old hook.
13144 (objc_printable_name): Export.
13145 * objc-act.h (objc_printable_name): New.
13146 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
13148 2002-03-19 Jim Blandy <jimb@redhat.com>
13150 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
13151 the start_source_file debug hook, not the current line number.
13153 2002-03-19 Richard Henderson <rth@redhat.com>
13155 * flow.c (EH_USES): Provide default.
13156 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
13157 * doc/tm.texi (EH_USES): New.
13159 * config/ia64/ia64.c (ia64_eh_uses): New.
13160 * config/ia64/ia64-protos.h: Update.
13161 * config/ia64/ia64.h (EH_USES): New.
13163 2002-03-19 Richard Henderson <rth@redhat.com>
13165 * varasm.c (output_constant_def): Fix stupid typo.
13167 2002-03-19 Richard Henderson <rth@redhat.com>
13170 * except.c (current_function_has_exception_handlers): New.
13171 * except.h: Declare it.
13172 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
13173 Combine tests that disable all sibcalls for the function.
13175 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
13177 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
13180 2002-03-19 Richard Henderson <rth@redhat.com>
13183 * config/ia64/ia64.c: Revert 2002-03-01 patch.
13184 * config/ia64/ia64.h (INIT_EXPANDERS): New.
13186 2002-03-19 Jim Blandy <jimb@redhat.com>
13188 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
13189 name, even if the replacement list contains no tokens, as required
13192 2002-03-19 Jason Merrill <jason@redhat.com>
13194 * varasm.c (globalize_decl): Get the name from the RTL, not
13195 DECL_ASSEMBLER_NAME.
13197 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
13199 2002-03-19 Bob Wilson <bob.wilson@acm.org>
13201 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
13202 subdi_carry): Define.
13204 2002-03-19 David Edelsohn <edelsohn@gnu.org>
13206 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
13207 about -fpic/-fPIC if extra_warnings set.
13209 2002-03-19 David Edelsohn <edelsohn@gnu.org>
13211 * expr.c (expand_expr): Sign-extend CONST_INT generated from
13212 TREE_STRING_POINTER.
13213 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
13215 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13217 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
13218 in favor of SP if FRAME_POINTER_REQUIRED is false.
13220 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
13222 * emit-rtl.c (gen_int_mode): New function.
13223 * rtl.h: Prototype for it.
13224 * combine.c (make_extraction, simplify_comparison), expmed.c
13225 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
13226 (convert_modes, store_field), optabs.c (expand_fix),
13227 simplify-rtx.c (neg_const_int, simplify_unary_real),
13229 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
13230 Use it instead of GEN_INT (trunc_int_for_mode (...)).
13232 2002-03-19 Jakub Jelinek <jakub@redhat.com>
13235 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
13236 convert_parm_for_inlining.
13237 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
13239 * langhooks-def.h: Likewise.
13240 * objc/objc-lang.c: Likewise.
13241 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
13243 * tree-inline.c (initialize_inlined_parameters):
13244 Call convert_parm_for_inlining lang hook if needed.
13245 * c-typeck.c (c_convert_parm_for_inlining): New function.
13246 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
13248 2002-03-18 Mark Mitchell <mark@codesourcery.com>
13250 * calls.c (precompute_arguments): Do not assume that temporaries
13251 can be destroyed after expanding the argument.
13252 (expand_call): Likewise.
13254 2002-03-15 Eric Christopher <echristo@redhat.com>
13256 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
13257 Fix register preference on last change.
13258 * config/mips/mips.c (mips_return_in_memory): New function.
13259 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
13260 * config/mips/mips-protos.h: Declare.
13261 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
13262 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
13264 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
13266 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
13268 (anddi3, iorsi3): Likewise.
13270 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
13271 use %gprel for symbols that are going to be placed in linkonce
13274 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
13275 RETURN_ADDRESS_POINTER_REGNUM to $ra.
13276 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
13277 not needed. Disregard leaf_function_p().
13278 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
13279 mips16 frame pointer.
13280 * config/mips/mips.md (store ra): Only to small SP offsets.
13281 2001-08-22 Graham Stott <grahams@redhat.com>
13282 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
13283 return a REG rtx for the return address register.
13285 2002-03-18 Bob Wilson <bob.wilson@acm.org>
13287 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
13288 constant-pool addresses as "mode-dependent".
13289 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
13291 2002-03-18 Jakub Jelinek <jakub@redhat.com>
13294 * expr.c (emit_group_load): Use extract_bit_field if
13295 needed for CONCAT arguments.
13297 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
13300 * arm.md (tablejump): Make this a define_expand. For PIC add the
13301 offset to the base of the table.
13302 (thumb_tablejump): Matcher for Thumb tablejump insn.
13303 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
13304 as the difference of two labels.
13305 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13306 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
13307 tables in the code.
13308 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
13309 * arm.c (get_jump_table_size): If the table is not in the text
13310 section, return zero.
13312 2002-03-18 Bernd Schmidt <bernds@redhat.com>
13314 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
13316 (arm_reload_out_hi): Use gen_lowpart instead of
13317 gen_rtx_SUBREG to access QImode components.
13318 * config/arm/arm.md: Disable zero_extend split for QImode
13319 subregs in BIG_ENDIAN mode.
13320 (storehi_bigend): Match use of least significant byte.
13321 (storeinthi): Remove extraneous SUBREG.
13322 Add missing construction of operands[2].
13323 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
13324 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
13325 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
13327 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
13329 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
13332 2002-03-17 Richard Henderson <rth@redhat.com>
13334 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
13337 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
13339 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
13340 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
13342 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13344 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
13346 * predict.c (estimate_bb_frequencies): Delete unused variables.
13348 2002-03-17 Richard Henderson <rth@redhat.com>
13350 * config/ia64/ia64.c (ia64_attribute_table): Move before
13351 targetm definition. Make static.
13353 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
13355 * c-common.h (yyparse, c_common_parse_file): New.
13356 * c-lang.c: Include c-common.h.
13357 (LANG_HOOKS_PARSE_FILE): Redefine.
13358 * c-lex.c: Include c-common.h.
13359 (yyparse): Rename c_common_parse_file. Call yyparse.
13360 * c-parse.in (yyparse): Remove macro.
13361 * c-tree.h (yyparse_1): Remove.
13362 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
13363 (LANG_HOOKS_INITIALIZER): Update.
13364 * langhooks.h (struct lang_hoooks): New hook parse_file.
13365 * toplev.c (compile_file): Use parse_file hook.
13366 * tree.h (yyparse): Remove.
13367 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
13369 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
13371 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
13372 float_truncate, not fix.
13373 ("*truncdfsf2_real"): Ditto.
13374 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
13376 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
13378 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
13380 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
13381 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
13382 where appropriate. Make the second reference to
13383 leaf_function_p a function call, as intended. Reindented.
13385 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
13386 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
13388 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
13389 add register to non-constant into sp.
13391 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
13392 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
13393 (mips16_gp_pseudo_rtx): Lose.
13394 (INIT_EXPANDERS): Deleted.
13395 * config/mips/mips.c (mips_init_machine_status): New.
13396 (mips_free_machine_status): New.
13397 (mips_mark_machine_status): New.
13398 (override_options): Set them.
13399 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
13400 (struct machine_function): ... new. Replaced all references.
13401 (mips_add_gc_roots): Don't mark them.
13402 (embedded_pic_fnaddr_reg): New, extracted from...
13403 (embedded_pic_offset): ... here.
13404 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
13407 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
13409 * cppinit.c: Revert -MD removal.
13411 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13413 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
13414 soft registers by default for 68HC12.
13415 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
13416 when compiling with -fomit-frame-pointer.
13417 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
13418 (expand_epilogue): Likewise.
13419 (m68hc11_gen_rotate): Use exg when rotating by 8.
13421 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13423 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
13424 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
13425 (splits): Remove unused add splits.
13426 ("*addhi3_68hc12"): Tune constraints.
13427 ("addhi_sp"): Try to use X instead of Y in all cases and if the
13428 constant fits in 8-bits and D is dead use abx/aby instructions.
13429 ("*addhi3"): Remove extern declaration of ix_reg.
13430 ("*subsi3"): Optimize and provide new split.
13431 ("subhi3"): Cleanup.
13432 ("*subhi3_sp"): Avoid saving X if we know it is dead.
13433 (arith splits): For 68hc12 save the address register on the stack
13434 and do the arithmetic operation with a pop.
13436 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13438 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
13439 allocating QImode in address registers.
13440 ("*movqi_m68hc11"): Likewise.
13442 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
13444 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
13446 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
13448 * cppinit.c (print_help): Display -MD and -MMD.
13449 Don't display usage string. Update assertion syntax and
13451 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
13452 (cpp_handle_option): Update.
13454 2002-03-15 Chris Demetriou <cgd@broadcom.com>
13456 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
13457 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
13458 and define it so that regardless of target CPU size,
13459 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
13460 of "int" rather than "long."
13462 2002-03-15 Richard Henderson <rth@redhat.com>
13464 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
13467 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13469 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
13470 ("tstqi" split): Avoid using memory for tstqi on address register.
13471 (splits): Remove constraints.
13472 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
13473 ("cmpdf", "cmpsf"): Remove since not used.
13474 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
13475 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
13477 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13479 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
13480 ("neghi2"): Tighten constraints.
13481 ("one_cmplsi2"): Optimize and simplify split.
13482 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
13484 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13486 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
13487 and split of AND operation to clear the upper bits.
13488 ("*logicalsi3_zextqi"): Likewise.
13489 ("*logicallhi3_zexthi_ashift8"): Likewise.
13490 ("*logicalsi3_silshr16"): Likewise.
13491 ("logicalsi3_silshl16"): Likewise.
13492 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
13494 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13496 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
13497 (m68hc11_indirect_p): New function.
13498 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
13499 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
13501 (asm_print_register): Likewise.
13502 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
13503 (m68hc11_indirect_p): Declare.
13504 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
13505 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
13506 (TARGET_SWITCHES): New option -mrelax.
13507 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
13509 ("iorsi3", "xorsi3"): Likewise.
13510 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
13511 ("*andhi3_mem"): New to handle destination in memory with bclr
13512 and a scratch register.
13513 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
13514 ("*andhi3_const"): New when operand2 is constant.
13515 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
13516 ("*andhi3_gen"): Cleanup of the old "andhi3".
13517 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
13518 ("xorqi3"): Update constraints.
13520 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13522 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
13523 for reg_equiv_memory_loc when the operand is a register that does
13524 not get a hard register (stack location).
13525 (tst_operand): After reload, accept all memory operand.
13526 (symbolic_memory_operand): Fix detection of symbolic references.
13527 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
13528 accept symbols and any constant.
13530 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13532 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
13533 note on the insn that sets the soft frame register.
13534 (must_parenthesize): ix and iy are also reserved names.
13535 (print_operand_address): One more place where parenthesis are required
13536 to avoid confusion with register names.
13537 (m68hc11_gen_movhi): Allow push of stack pointer.
13538 (m68hc11_check_z_replacement): Fix handling of parallel with a
13540 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
13541 the replacement register is.
13542 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
13543 and D8_REGS classes.
13544 (MODES_TIEABLE_P): All modes are tieable except QImode.
13546 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13548 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
13549 (___subdi3): Likewise.
13550 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
13551 (__map_data_section): Optimize 68hc11 case.
13553 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13555 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
13556 than a shift to avoid adding a register with itself.
13557 (m68hc11_memory_move_cost): Take into account NO_REGS.
13558 (m68hc11_register_move_cost): Update and use memory move cost
13559 for soft registers.
13560 (m68hc11_address_cost): Make cost of valid offset not 0 so that
13561 it gives more opportunities to cse to optimize.
13562 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
13563 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
13565 2002-03-15 Mark Mitchell <mark@codesourcery.com>
13567 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
13568 * c-common.def (CLEANUP_STMT): New tree node.
13569 * c-common.h (CLEANUP_DECL): New macro.
13570 (CLEANUP_EXPR): Likewise.
13571 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
13572 * expr.c (expand_expr): Tidy.
13573 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
13574 * tree-inline.c (initialize_inlined_parameters): Clean up
13575 new local variables.
13577 2002-03-15 Jakub Jelinek <jakub@redhat.com>
13580 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
13581 before movrXX only, use reg_overlap_mentioned_p.
13582 Only special case NE if just one insn can be generated.
13584 2002-03-15 Jason Merrill <jason@redhat.com>
13586 * varasm.c (assemble_variable): Call resolve_unique_section before
13587 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
13588 of error_mark_node.
13590 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
13593 * arm.md (split pattern for thumb shiftable immediates): Add comment
13594 explaining non-obvious test.
13596 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
13599 * arm.md (movaddr, movaddr_insn): Delete.
13601 2002-03-15 Jason Merrill <jason@redhat.com>
13603 * toplev.c (wrapup_global_declarations): Clarify variable handling.
13604 -fkeep-static-consts doesn't apply to comdats.
13606 2002-03-14 Richard Henderson <rth@redhat.com>
13608 * c-decl.c: Include c-pragma.h.
13609 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
13610 (finish_function): Tidy.
13611 * c-pragma.c: Include c-common.h.
13612 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
13613 (handle_pragma_weak): Use them.
13614 (init_pragma): Register pending_weaks.
13615 * c-pragma.h (maybe_apply_pragma_weak): Declare.
13616 * print-tree.c (print_node): Print DECL_WEAK.
13617 * varasm.c (mark_weak_decls): Remove.
13618 (remove_from_pending_weak_list): Remove.
13619 (add_weak): Remove.
13620 (asm_emit_uninitialised): Call globalize_decl for weak commons.
13621 (weak_decls): Make a tree_list.
13622 (declare_weak): Cons weak_decls directly.
13623 (globalize_decl): Remove weak_decls elements directly.
13624 (weak_finish): Simplify weak_decls walk. Don't weaken unused
13625 symbols. Don't pretend to handle aliases.
13626 (init_varasm_once): Update weak_decls registry.
13627 * Makefile.in: Update dependencies.
13629 2002-03-14 Richard Henderson <rth@redhat.com>
13632 * config/ia64/ia64.c: Include tm_p.h last.
13633 (gen_nop_type): Remove duplicate definition.
13634 (cycle_end_fill_slots): Set sched_data for second L slot.
13635 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
13636 (nop_cycles_until): Fix typos.
13638 2002-03-15 Jakub Jelinek <jakub@redhat.com>
13640 PR optimization/5891
13641 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
13643 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
13645 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
13646 descriptors correctly.
13648 2002-03-14 Michael Meissner <meissner@redhat.com>
13650 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
13651 100, allowing MAX_UNROLLED_INSNS to be overridden.
13653 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
13656 * unroll.c (params.h): Include.
13657 (MAX_UNROLLED_INSNS): Delete, now in params.h.
13659 * doc/invoke.texi (--param max-unroll-insns): Document.
13661 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
13663 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
13665 * arm.md: Fix warnings about constraints in peepholes and splits.
13667 2002-03-14 Zack Weinberg <zack@codesourcery.com>
13669 * cpphash.h (struct lexer_state): Remove line_extension member.
13670 * cpplib.c (dequote_string, do_linemarker): New functions.
13671 (linemarker_dir): New data object.
13672 (DIRECTIVE_TABLE): No longer need to interpret #line in
13673 preprocessed source. Delete obsolete comment about return
13674 values of handlers.
13675 (end_directive, directive_diagnostics, _cpp_handle_directive):
13676 Don't muck with line_extension.
13677 (directive_diagnostics): No need to issue warnings for
13679 (_cpp_handle_directive): Issue warnings for linemarkers here,
13680 when appropriate. Dispatch linemarkers to do_linemarker, not
13682 (do_line): Code to handle linemarkers split out to do_linemarker.
13683 Convert escape sequences in filename argument, both places.
13685 * cppmacro.c (quote_string): Rename cpp_quote_string and
13686 export. All callers changed.
13687 * cpplib.h (cpp_quote_string): Prototype.
13688 * cppmain.c (print_line): Call cpp_quote_string on to_file
13689 before printing it.
13691 * doc/cpp.texi: Document that escapes are now interpreted in
13692 #line and in linemarkers, and that non-printing characters are
13693 converted to octal escapes when linemarkers are generated.
13695 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
13697 * emit-rtl.c (try_split): Use delete_insns.
13698 * recog.c (split_all_insns): Fix terminating condition.
13700 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
13701 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
13704 * arm.c (arm_output_epilogue): Fix floating-point register save
13705 adjustment when using a frame pointer.
13707 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
13709 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
13710 * config/mips/mips.c (compute_frame_size): Retrofit them here.
13711 (save_restore_insns, mips_expand_epilogue): And here.
13712 (build_mips16_call_stub): And here.
13713 (mips_function_value): Use the new macros to decide whether a single
13714 or complex float can be returned in floating-point registers. Return
13715 a parallel rtx in the complex case.
13717 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
13719 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
13720 call after liveness analysis.
13722 * recog.c (split_insn): Use delete_insn_and_edges.
13724 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
13725 instructions to have branch prediction notes.
13726 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
13728 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
13730 * configure.in: Don't pass -Wno-long-long to a ADA compiler
13731 that doesn't support it.
13732 * configure: Regenerate.
13734 2002-03-13 Jakub Jelinek <jakub@redhat.com>
13737 * config/sparc/sparc.md (normal_branch, inverted_branch,
13738 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
13739 inverted_fp_branch): Adjust calls to output_cbranch.
13740 Set length attribute.
13741 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
13742 output_v9branch. Set length attribute.
13743 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
13745 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
13746 (output_cbranch): Likewise. Handle far branches.
13747 (output_v9branch): Handle far branches.
13748 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
13750 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
13751 noov_compare64_op predicates.
13753 2002-03-13 Jason Merrill <jason@redhat.com>
13755 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
13756 into the function and constify it.
13757 * gthr-dce.h, gthr-solaris.h: Likewise.
13759 2002-03-13 David Edelsohn <edelsohn@gnu.org>
13761 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
13762 * config/rs6000/rs6000.c (rs6000_va_arg): Use
13763 std_expand_builtin_va_arg if not ABI_V4.
13765 2002-03-13 Jason Merrill <jason@redhat.com>
13767 * varasm.c (globalize_decl): New fn.
13768 (assemble_start_function): Use it.
13769 (asm_emit_uninitialized): Use it.
13770 (assemble_alias): Use it.
13771 (assemble_variable): Use it.
13773 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
13775 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
13776 2002-03-12 internal visibility change.
13777 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
13778 visibility into SYMBOL_REF_FLAG.
13780 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
13782 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
13783 VOIDmode operand. Add compile-time optimization for constant results.
13785 2002-03-12 Jason Merrill <jason@redhat.com>
13787 * c-typeck.c (convert_for_assignment): Don't allow conversions
13788 between pointers and references. Only allow lvalues to convert to
13791 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
13793 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
13794 before prologue, to avoid scheduling problems.
13796 2002-03-13 Jakub Jelinek <jakub@redhat.com>
13798 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
13799 (ELIMINABLE_REGS): Add sfp->sp.
13800 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
13802 2002-03-13 Jakub Jelinek <jakub@redhat.com>
13804 PR optimization/5892
13805 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
13807 2002-03-13 Jakub Jelinek <jakub@redhat.com>
13809 * loop.c (basic_induction_var): Don't call convert_modes if mode
13810 classes are different.
13812 2002-03-12 Richard Henderson <rth@redhat.com>
13814 PR optimization/5901
13815 * function.c (reposition_prologue_and_epilogue_notes): Position
13816 the markers after/before the last/first insn not deleted.
13818 2002-03-12 Richard Henderson <rth@redhat.com>
13820 PR optimization/5878
13821 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
13822 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
13823 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
13825 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
13826 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
13827 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
13829 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
13830 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
13831 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
13832 also. Don't set it if not flag_pic.
13833 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
13834 to be INVALID_REGNUM when not used.
13836 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
13838 * expmed.c (store_bit_field): Reset alias set for memory.
13839 (extract_bit_field): Same.
13841 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13843 * c-common.c (c_tree_code_type, c_tree_code_length,
13844 c_tree_code_name, add_c_tree_codes): Delete.
13845 * c-common.h (add_c_tree_codes): Delete.
13846 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
13848 * c-objc-common.c (c_objc_common_init): Don't call
13849 add_c_tree_codes, instead set lang_unsafe_for_reeval.
13850 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
13851 objc_tree_code_name, add_objc_tree_codes): Delete.
13852 (objc_init): Don't call add_objc_tree_codes.
13853 * objc/objc-lang.c (tree_code_type, tree_code_length,
13854 tree_code_name): Define.
13855 * toplev.c (lang_independent_init): Don't set
13856 tree_code_length[IDENTIFIER_NODE].
13857 * tree.c (tree_code_type, tree_code_length, tree_code_name):
13858 Delete definitions, moved to language front-ends.
13859 * tree.def (IDENTIFIER_NODE): Hardwire the length.
13860 * tree.h (tree_code_type, tree_code_length, tree_code_name):
13862 (tree_code_length): Change type to unsigned char.
13864 2002-03-12 Richard Henderson <rth@redhat.com>
13866 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
13867 internal visibility change.
13869 2002-03-12 Bob Wilson <bob.wilson@acm.org>
13871 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
13872 validize_mem() instead of change_address to avoid clobbering
13875 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
13877 * c-lex.h (position_after_whitespace): Remove.
13879 2002-03-12 Jakub Jelinek <jakub@redhat.com>
13881 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
13882 (lex_string): Use unsigned char pointers.
13884 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
13886 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
13887 is not a valid memory_operand.
13889 2002-03-12 Bob Wilson <bob.wilson@acm.org>
13891 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
13892 * config/xtensa/lib1funcs.asm: Fix copyright to include
13893 special case for libgcc files.
13894 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
13895 (__divsi3): Likewise.
13896 (__umodsi3): Likewise.
13897 (__modsi3): Likewise.
13898 * config/xtensa/lib2funcs.S: Fix copyright to include
13899 special case for libgcc files.
13901 2002-03-12 Tom Rix <trix@redhat.com>
13903 * collect2.c (resolve_lib_name): Move outside of
13904 OBJECT_FORMAT_COFF ifdef.
13905 (ignore_library): Same.
13907 2002-03-12 Bob Wilson <bob.wilson@acm.org>
13909 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
13911 2002-03-12 Bob Wilson <bob.wilson@acm.org>
13913 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
13914 to function_section before writing out the constant pool.
13916 2002-03-12 David Edelsohn <edelsohn@gnu.org>
13918 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
13920 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
13922 2002-03-12 Alan Modra <amodra@bigpond.net.au>
13924 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
13925 (adddi3): Likewise.
13928 (cmpsi splitter): Likewise.
13929 (modsi3): Fail if <= 0.
13930 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
13931 redundant test when HOST_BITS_PER_WIDE_INT != 32.
13932 (reg_or_sub_cint64_operand): Likewise.
13933 (num_insns_constant_wide): Optimize sign extension.
13934 (rs6000_legitimize_address): Likewise.
13936 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
13938 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13939 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13941 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
13943 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
13944 address calculation.
13946 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
13948 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
13949 scratch register to DImode / TImode.
13950 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
13951 register used does not overlap the target.
13953 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13955 * Makefile.in (debug.o): Depend on debug.h.
13956 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
13957 * debug.c (do_nothing_debug_hooks): Likewise.
13958 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
13959 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
13960 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
13961 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
13962 * dwarfout.c (dwarf_debug_hooks): Likewise.
13963 * integrate.c (output_inline_function): Likewise.
13964 * objc/objc-act.c (synth_module_prologue): Likewise.
13965 * sdbout.c (sdb_debug_hooks): Likewise.
13966 * toplev.c (debug_hooks): Likewise.
13967 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13969 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13971 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
13972 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
13973 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
13974 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
13975 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
13976 * defaults.h (POINTER_SIZE): Define.
13977 * doc/tm.texi (POINTER_SIZE): Document default.
13979 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13981 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
13983 2002-03-11 Richard Henderson <rth@redhat.com>
13985 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
13986 if rebuild_label_notes_after_reload.
13988 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
13990 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
13991 emit pic register load if "internal" visibility.
13992 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
13993 (cris_expand_builtin_va_arg): Do all computations on trees.
13995 2002-03-11 Richard Henderson <rth@redhat.com>
13997 * rtlanal.c: Include recog.h.
13998 (keep_with_call_p): Fix thinko.
13999 * Makefile.in (rtlanal.o): Update dependencies.
14001 2002-03-11 Chris Meyer <cmeyer@gatan.com>
14003 * genflags.c (gen_insn): Use IS_VSPACE.
14004 * genoutput.c (output_insn_data): Likewise.
14005 (process_template): Likewise.
14007 2002-03-11 Richard Henderson <rth@redhat.com>
14009 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
14011 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
14013 * Makefile.in: Update.
14014 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
14015 Update documentation.
14016 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
14017 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
14019 2002-03-11 Zack Weinberg <zack@codesourcery.com>
14021 * Makefile.in: Give texi2pod its input file as a command line
14022 argument, not on stdin.
14024 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
14025 Daniel Berlin <dan@dberlin.org>
14027 C++ alias analysis improvement.
14028 * alias.c (record_component_aliases): Record aliases for base
14031 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
14033 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
14035 2002-03-11 Douglas B Rupp <rupp@gnat.com>
14037 * toplev.c (vms_fopen): Remove, not needed.
14039 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
14041 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
14043 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
14044 for FP, already done later.
14046 * toplev.c (debug_args): Add entry for VMS_DEBUG.
14047 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
14049 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
14051 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
14052 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
14053 LARGEST_EXPONENT_IS_NORMAL for the given mode.
14054 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
14055 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
14056 (ediv, emul, eldexp, esqrt): Likewise.
14057 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
14058 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
14059 (saturate): New function.
14060 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
14061 (make_nan): Use a saturation value instead of a NaN if
14062 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
14063 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
14064 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
14065 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
14066 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
14067 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
14068 !ROUND_TOWARDS_ZERO.
14069 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
14070 (ROUND_TOWARDS_ZERO): Document.
14072 2002-03-11 Andreas Jaeger <aj@suse.de>
14074 * cfg.c (dump_flow_info): Remove unused variable.
14076 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
14078 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
14079 computations on trees.
14081 2002-03-10 Richard Henderson <rth@redhat.com>
14084 * reload.c (copy_replacements_1): New.
14085 (copy_replacements): Use it to recurse through the rtx.
14087 2002-03-10 Richard Henderson <rth@redhat.com>
14089 * loop.c (strength_reduce): Compute number of iterations as
14090 unsigned HOST_WIDE_INT.
14092 2002-03-10 Richard Henderson <rth@redhat.com>
14094 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
14095 to move away from the end of the block.
14097 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
14099 PR preprocessor/5899
14100 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
14102 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14104 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
14106 * attribs.c (decl_attributes): Fix signed/unsigned warning.
14108 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
14110 * config/mmix/mmix.c: Improve comments.
14111 (mmix_target_asm_function_prologue): Drop variable
14112 empty_stack_frame. Don't allocate unused slot above fp.
14113 (mmix_target_asm_function_epilogue): Mirror prologue changes.
14114 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
14115 brace in first column.
14116 (enum reg_class): Ditto.
14117 (FIRST_PARM_OFFSET): Now 0.
14118 (USER_LABEL_PREFIX): Remove #if 0:d definition.
14120 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14122 * combine.c (make_extraction): Fix error in last change.
14124 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14126 * c4x.c (c4x_fp_reglist): Const-ify.
14127 * cris.c (cris_print_operand): Likewise.
14128 * i386.c (ix86_va_arg): Likewise.
14129 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
14130 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
14131 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
14132 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
14133 * mcore.h (regno_reg_class): Likewise.
14134 * mips.c (gen_int_relational): Likewise.
14135 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
14136 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
14137 * pdp11.c (move_costs): Likewise.
14138 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
14139 * s390.c (s390_branch_condition_mnemonic, regclass_map):
14141 * s390.h (regclass_map): Likewise.
14142 * sh.c (shift_amounts): Likewise.
14143 * sh.md (rotlsi3): Likewise.
14145 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
14147 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
14148 (ne0+5): Use new clobber to generate proper shift pattern.
14149 Patch by Michael Matz <matz@kde.org>.
14151 2002-03-09 Andreas Schwab <schwab@suse.de>
14153 * gcc.c (validate_all_switches): Also handle `%W{...}'.
14155 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
14157 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
14159 2002-03-09 Jakub Jelinek <jakub@redhat.com>
14162 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
14163 even for non-representable constants.
14165 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14167 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
14168 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
14169 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
14170 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
14171 (pop_function_context): Compute MAY_SHARE parameter for
14173 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
14174 (gen_mem_addressof): Call fixup_var_refs with new parm.
14176 * combine.c (make_extraction): Don't make extension of CONST_INT.
14178 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
14180 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
14181 in o32 and o64 ABIs.
14182 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
14183 but getting fixed-size structs passed in registers regardless of
14184 padding in o32 and o64 ABIs.
14186 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
14187 offset before loading address of argument passed by transparent
14190 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
14192 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
14194 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
14196 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
14197 marker such that registers after it are saved.
14199 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14201 * sparc.c (arith_4096_operand): Fix error in last change.
14203 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
14205 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
14206 defaults for MEABI.
14208 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
14210 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
14213 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
14215 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
14217 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
14219 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
14220 removed; fix return value.
14221 * combine.c (combine_instructions): Dirtify blocks where we failed to
14222 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
14223 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
14225 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14227 * gcse.c (insert_insn_end_bb): Fix typo in last change.
14229 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
14231 * recog.c (peephole2_optimize): Re-distribute EH edges.
14233 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
14235 * expr.c (expand_expr): Use unsave lang hook.
14236 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
14237 (LANG_HOOKS_INITIALIZER): Update.
14238 * langhooks.h (struct lang_hooks): New hook unsave.
14239 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
14240 (unsave_expr_1): Remove unused lang_unsave_expr_now.
14241 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
14242 (unsave_expr_now): Remove.
14243 * tree.h (unsave_expr_now, lang_unsave,
14244 lang_unsave_expr_now): Remove.
14247 2002-03-08 Andreas Jaeger <aj@suse.de>
14249 * flow.c (propagate_block_delete_insn): Remove unused variable.
14251 2002-03-08 Kazu Hirata <kazu@hxi.com>
14253 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
14254 insn length for memory load/store.
14256 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
14258 * doc/install.texi (--with-libiconv-prefix): Document.
14260 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
14262 * doc/sourcebuild.texi: Fix typo.
14264 2002-03-08 Jakub Jelinek <jakub@redhat.com>
14267 * builtins.c (std_expand_builtin_va_arg): Do all computations on
14270 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14272 * rtl.c (copy_most_rtx): Move from here ...
14273 * emit-rtl.c (copy_most_rtx): ... to here.
14275 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
14277 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
14278 SUBTARGET_CPP_SIZE_SPEC.
14279 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
14281 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
14283 2002-03-07 Matt Hiller <hiller@redhat.com>
14285 * gensupport.c (first_dir_md_include): Renamed from include;
14286 change all references.
14287 (last_dir_md_include): Renamed from last_include; change all
14289 (init_md_reader): Unconditionally initialize base_dir whether or
14290 not filename is a relative path.
14292 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
14294 * config/fp-bit.c (_unord_f2): Compile it in even if
14295 US_SOFTWARE_GOFAST is enabled.
14297 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
14298 NULL_RTX. Set all HFmode operations as NULL_RTX.
14299 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
14300 NULL_RTX, try reversing the comparison and the operands.
14302 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
14304 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
14305 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
14308 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
14310 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
14312 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
14314 * basic-block.h (fixup_abnormal_edges): Declare.
14315 * reload1.c (fixup_abnormal_edges): New function.
14316 * reg-stack.c (convert_regs): Use it.
14318 * gcse.c (insert_insn_end_bb): Handle trapping insns.
14320 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
14322 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
14324 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
14325 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
14326 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
14327 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
14328 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
14329 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
14330 unless x and y could be infinite.
14331 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
14332 Check that the common type of both arguments is a real, even for
14333 targets without unordered comparisons. Allow an integer argument
14334 to be compared against a real.
14335 (expand_tree_builtin): Use expand_unordered_cmp.
14336 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
14337 * cse.c (fold_rtx): Likewise. Fix indentation.
14338 * fold-const.c (fold_real_zero_addition_p): New.
14339 (fold): Use it, and the new HONOR_... macros.
14340 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
14341 * jump.c (reversed_comparison_code_parts): After searching for
14342 the true comparison mode, use HONOR_NANS to decide whether it
14343 can be safely reversed.
14344 (reverse_condition_maybe_unordered): Remove IEEE check.
14345 * simplify-rtx.c (simplify_binary_operation): Use the new macros
14346 to decide which simplifications are valid. Allow the following
14347 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
14348 and (a - -b) to (a + b).
14349 (simplify_relational_operation): Use HONOR_NANS.
14350 * doc/tm.texi: Document the MODE_HAS_... macros.
14352 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
14354 * combine.c (simplify_comparison): If simplifying a logical shift
14355 right and compare with constant, force the comparison to unsigned.
14357 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
14359 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
14361 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
14363 (alt_reg_names): Remove % for vrsave.
14365 2002-03-06 Richard Henderson <rth@redhat.com>
14367 PR optimization/5844
14368 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
14369 if used indicates we've already emitted one copy of an operand.
14370 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
14371 (gen_split): Supply a non-null used.
14373 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
14375 * reload1.c (reload): Unshare all rtl after reload is done.
14377 * simplify-rtx.c (simplify_plus_minus): Do not abort,
14378 but simply fail if the expression is too complex to simplify.
14379 (simplify_gen_binary): Handle simplify_plus_minus failures.
14381 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
14383 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
14384 consistently call delete_trivially_dead_insns after CSE and GCSE;
14385 fix DFI_life dumping; do jump threading after liveness; do crossjumping
14386 after liveness2; update comment in last crossjumping.
14387 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
14389 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
14391 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
14392 after completing fast dead code elimination.
14394 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
14397 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
14399 * version.c: Fix misplaced leading blanks on first line.
14401 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
14403 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
14405 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
14407 * cfgcleanup.c (mentions_nonequal_regs): New function.
14408 (thread_jump): Use it.
14409 * toplev.c (rest_of_compilation): Run jump threading after
14412 2002-03-06 Jakub Jelinek <jakub@redhat.com>
14414 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
14417 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
14419 * predict.c (estimate_bb_frequencies): Do not reload the
14420 frequencies from notes.
14422 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
14424 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
14425 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
14427 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
14428 delete_noop_moves): Return indeger.
14429 * flow.c (ndead): New variable.
14430 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
14431 BB argument; update callers.
14432 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
14433 (life_analysis): Do not call purge_all_dead_edges.
14434 (update_life_info): Return number of deleted insns; print statistics.
14435 (update_life_info_in_dirty_blocks): likewise.
14436 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
14437 return number of insns deleted.
14439 * cse.c: Include timevar.h
14440 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
14441 iterate until stabilizes; print statistics; return number of killed
14443 * Makefile.in: (cse.o): Add timevar.h dependency
14444 * rtl.h (delete_trivially_dead_insns): New.
14445 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
14446 * toplev.c (rest_of_compilation): Update callers.
14448 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
14449 (try_optimize_cfg): Do not update liveness.
14450 (cleanup-cfg): Loop until try_optimize_cfg and dead code
14451 removal stabilizes; use delete_trivially_dead_insns.
14453 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
14455 2002-03-05 Zack Weinberg <zack@codesourcery.com>
14457 * cppmain.c (setup_callbacks): Disable #pragma and #ident
14458 callbacks when processing assembly language.
14460 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
14462 * pa.h (ASM_FILE_END): Define.
14463 * som.h (ASM_FILE_END): Delete.
14465 * pa.c (function_arg): Don't pass floats in general registers in
14466 indirect calls if TARGET_ELF32.
14468 2002-03-05 Richard Henderson <rth@redhat.com>
14470 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
14472 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
14474 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
14476 2002-03-05 Jakub Jelinek <jakub@redhat.com>
14478 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
14479 -r command line. Don't hide any symbols if not building
14482 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
14484 * cfg.c (dump_flow_info): Warn about profile mismatches.
14485 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
14486 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
14488 2002-03-05 Jakub Jelinek <jakub@redhat.com>
14490 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
14491 wide volatile memory by parts.
14493 2002-03-05 Jakub Jelinek <jakub@redhat.com>
14495 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
14498 2002-03-05 Richard Henderson <rth@redhat.com>
14500 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
14502 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
14504 * toplev.c (documented_lang_options): Document more
14505 language-specific options.
14506 * doc/invoke.texi (Warning Options): Correct documentation for
14507 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
14508 * c-decl.c (c_decode_option): Use a table to handle warning options.
14510 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
14512 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
14513 parameter to mmix_encode_section_info.
14514 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
14515 relocatably. Always produce ELF, not mmo if linking relocatably.
14516 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
14517 first is non-zero, don't add symbol prefix.
14518 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
14519 prototype accordingly.
14521 2002-03-04 Krister Walfridsson <cato@df.lth.se>
14523 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
14525 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
14527 * configure.in: Increase required makeinfo version to 4.1.
14528 * configure: Regenerate.
14530 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
14532 * .cvsignore: Remove *.info* and genrtl*; these files are generated
14535 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
14537 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
14538 * doc/invoke.texi: Fix @math uses.
14540 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
14542 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
14545 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
14547 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
14548 (powerpc-*-eabisimaltivec*): Same.
14550 * config/rs6000/t-ppcendian: New.
14552 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14554 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
14555 nonimmediate_src_operand and nonimmediate_lsrc_operand to
14556 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
14558 2002-03-03 Richard Henderson <rth@redhat.com>
14560 * toplev.c (rest_of_decl_compilation): Revert last two changes.
14562 2002-03-03 Zack Weinberg <zack@codesourcery.com>
14564 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
14565 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
14566 tree.c, config/m68k/m68k.c:
14567 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
14568 REAL_ARITHMETIC blocks unconditional. Delete some further
14569 #ifdef blocks predicated on REAL_ARITHMETIC.
14570 * flags.h, toplev.c: Delete remaining references to
14571 flag_pretend_float.
14573 * doc/invoke.texi: Remove documentation of -fpretend-float.
14574 * doc/tm.texi: Describe the various REAL_* macros as provided by
14575 real.h, not by the target configuration files.
14577 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
14578 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
14579 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14580 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
14581 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
14582 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
14583 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
14584 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
14585 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
14586 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
14587 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
14588 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14589 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
14590 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
14591 config/xtensa/xtensa.h:
14592 Do not define, undefine, or mention in comments any of
14593 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
14594 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
14595 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
14596 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
14597 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
14598 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
14599 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
14600 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
14601 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
14603 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14605 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
14606 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
14607 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
14608 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
14609 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
14610 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
14612 * defaults.h (BITS_PER_WORD): Define.
14613 * doc/tm.texi (BITS_PER_WORD): Document default value.
14615 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
14616 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
14617 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
14619 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14621 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
14622 lieu of explicit sizeof/sizeof.
14623 * i386.c (override_options, ix86_init_mmx_sse_builtins,
14624 ix86_expand_builtin): Likewise.
14625 * mips.c (mips_add_gc_roots): Likewise.
14626 * mmix.c (mmix_output_condition): Likewise.
14627 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
14628 altivec_init_builtins): Likewise.
14629 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
14630 * cppexp.c (Nsuff, parse_number): Likewise.
14631 * cppinit.c (builtin_array_end): Likewise.
14632 * gcc.c (n_default_compilers, process_command): Likewise.
14633 * genpreds.c (output_predicate_decls): Likewise.
14634 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
14635 * lcm.c (N_ENTITIES): Likewise.
14636 * stor-layout.c (set_sizetype): Likewise.
14638 2002-03-03 Richard Henderson <rth@redhat.com>
14640 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
14641 for types or labels.
14643 2002-03-03 Richard Henderson <rth@redhat.com>
14645 * c-decl.c (start_decl): Initialized variables are not common.
14647 2002-03-02 Per Bothner <per@bothner.com>
14649 * gcc.c (option_map): Suport new --bootclasspath option.
14650 --CLASSPATH is now just an alias for --classpath.
14652 2002-03-02 Richard Henderson <rth@redhat.com>
14654 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
14655 load if "internal" visibility.
14656 * doc/extend.texi: Document visibility meanings.
14658 2002-03-02 Richard Henderson <rth@redhat.com>
14660 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
14661 to functions as well.
14663 2002-03-02 Richard Henderson <rth@redhat.com>
14665 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
14666 (handle_visibility_attribute): Don't call assemble_visibility.
14667 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
14668 without asmspec. Invoke assemble_alias when needed.
14669 * varasm.c (maybe_assemble_visibility): New.
14670 (assemble_start_function, assemble_variable, assemble_alias): Use it.
14672 2002-03-02 Richard Henderson <rth@redhat.com>
14674 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
14675 invoke ENCODE_SECTION_INFO with first call flag.
14677 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
14678 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
14679 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
14680 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
14681 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
14682 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
14683 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
14684 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
14685 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
14686 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
14687 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
14688 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
14689 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
14690 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
14691 config/mcore/mcore-protos.h, config/mcore/mcore.c,
14692 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
14693 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
14694 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
14695 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
14696 config/sh/sh.h, config/sparc/sparc.h,
14697 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
14698 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
14699 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
14700 FIRST argument. As needed, examine it and do nothing.
14702 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
14703 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14704 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
14706 * config/arm/t-pe (pe.o): Add dependencies.
14708 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14710 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
14711 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
14712 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
14713 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
14714 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
14715 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
14716 * defaults.h (BITS_PER_UNIT): Define.
14717 * doc/tm.texi (BITS_PER_UNIT): Document default value.
14719 2002-03-02 Kazu Hirata <kazu@hxi.com>
14721 * config/h8300/h8300-protos.h: Add a prototype for
14722 compute_a_shift_length.
14723 * config/h8300/h8300.c (h8300_asm_insn_count): New.
14724 (compute_a_shift_length): Likewise.
14725 (h8300_adjust_insn_length): Do not adjust insn length of shift
14727 * config/h8300/h8300.md (anonymous shift patterns): Use
14728 compute_a_shift_length.
14730 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14732 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
14733 trunc_int_for_mode.
14735 * emit-rtl.c (offset_address): Call update_temp_slot_address.
14737 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14739 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
14740 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
14741 * flags.h (flag_zero_initialized_in_bss): Declare.
14742 * toplev.c (flag_zero_initialized_in_bss): New flag.
14743 (lang_independent_options): Add flag_zero_initialized_in_bss.
14744 * tree.c (initializer_zerop): New function.
14745 * tree.h (initializer_zerop): Declare.
14746 * varasm.c (assemble_variable): If we can emit bss, put zero
14747 initializers in the bss section.
14749 2002-03-02 Alan Modra <amodra@bigpond.net.au>
14751 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
14752 like more than one symbol per .weak directive.
14754 2002-03-01 Richard Henderson <rth@redhat.com>
14756 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
14757 adjust argument_pointer by pretend_args_size.
14758 (ia64_va_start): Adjust va_start address by -pretend_args_size.
14760 2002-03-01 Kazu Hirata <kazu@hxi.com>
14762 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
14764 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
14766 * toplev.c (rest_of_compilation): Delete dead jumptables before
14768 * flow.c (delete_dead_jumptables): Make global.
14769 * rtl.h (delete_dead_jumptables): Declare.
14771 2002-03-01 David Edelsohn <edelsohn@gnu.org>
14773 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
14774 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
14775 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
14777 2002-03-01 Kazu Hirata <kazu@hxi.com>
14779 * config/h8300/h8300-protos.h: Fix formatting.
14780 * config/h8300/h8300.c: Likewise.
14781 * config/h8300/h8300.h: Likewise.
14783 2002-03-01 Kazu Hirata <kazu@hxi.com>
14785 * config/h8300/h8300.c (print_operand): Support 16-bit
14786 constant addresses.
14787 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
14789 2002-02-28 Richard Henderson <rth@redhat.com>
14791 * expmed.c (store_bit_field): Prevent generation of CONCATs;
14792 pun complex values as integers; use gen_lowpart instead of
14794 (extract_bit_field): Likewise.
14796 2002-03-01 Alan Modra <amodra@bigpond.net.au>
14797 David Edelsohn <edelsohn@gnu.org>
14799 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
14800 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
14801 (SUPPORTS_WEAK): Likewise.
14802 * output.h (add_weak): Add tree param.
14803 * varasm.c (add_weak): Likewise. Save decl.
14804 (struct weak_syms): Add decl field.
14805 (mark_weak_decls): New function.
14806 (init_varasm_once): ggc_add_root mark_weak_decls.
14807 (assemble_start_function): Use ASM_WEAKEN_DECL.
14808 (assemble_variable): Likewise.
14809 (assemble_alias): Likewise.
14810 (declare_weak): Pass decl to add_weak.
14811 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
14812 (remove_from_pending_weak_list): Declare and define for
14814 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
14815 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
14816 * defaults.h (SUPPORTS_WEAK): Likewise.
14817 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
14818 .weak for code sym. Do emit .size for descriptor sym.
14819 (ASM_DECLARE_FUNCTION_SIZE): Define.
14820 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
14821 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
14822 .lglobl unless TARGET_XCOFF. Formatting fixes.
14823 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
14824 .weak for code sym.
14825 (HANDLE_PRAGMA_WEAK): Remove.
14826 (ASM_WEAKEN_LABEL): Remove.
14827 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
14829 2002-03-01 Jason Merrill <jason@redhat.com>
14831 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
14832 (TARGET_EXPR_CLEANUP): New macro.
14834 2002-02-28 Steve Ellcey <sje@cup.hp.com>
14836 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
14837 to take ptr_extend into account as third type of extension.
14838 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
14839 fields used by SUBREG_PROMOTED_UNSIGNED_P.
14840 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
14841 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
14842 * calls.c (precompute_arguments): Use new macro.
14843 (expand_call): Ditto.
14844 * combine.c (nonzero_bits): Ditto.
14845 (record_promoted_value): Ditto.
14846 * expr.c (store_expr): Ditto.
14847 (expand_expr): Ditto.
14848 * function.c (assign_parms): Ditto.
14850 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
14852 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
14853 override -shared and -shared-libgcc.
14855 2002-02-28 David O'Brien <obrien@FreeBSD.org>
14857 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
14859 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
14862 2002-02-28 Richard Henderson <rth@redhat.com>
14864 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
14865 4 cycle latency from MM producers.
14866 (ia64_internal_sched_reorder): Likewise with pipeline flush.
14868 2002-02-28 Jakub Jelinek <jakub@redhat.com>
14870 * mklibgcc.in: Don't use GNU make extension.
14872 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
14874 * c-parse.in (STATIC): New terminal.
14875 (scspec): New non-terminal. Update productions accordingly.
14876 (program): Remove bogus ifc / end ifc.
14877 (array_declarator): Simplify production using STATIC.
14879 2002-02-28 Jim Meyering <meyering@lucent.com>
14881 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
14882 \a still means TARGET_BELL.
14884 2002-02-28 Richard Henderson <rth@redhat.com>
14886 * haifa-sched.c (sched_emit_insn): New.
14887 (schedule_block): Use last_scheduled_insn to track last insn.
14888 * sched-int.h (sched_emit_insn): Prototype.
14889 * config/ia64/ia64.c (last_issued): Remove.
14890 (ia64_variable_issue): Don't set it.
14891 (nop_cycles_until): Use sched_emit_insn.
14893 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
14895 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
14896 extended constants.
14898 2002-02-28 Kazu Hirata <kazu@hxi.com>
14900 * config/h8300/h8300.c: Fix formatting.
14901 * config/h8300/h8300.h: Likewise.
14903 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
14905 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
14906 which may overwrite the high byte of the frame pointer.
14908 2002-02-28 Bo Thorsen <bo@suse.de>
14910 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
14911 (STARTFILE_SPEC): Add 64 bit files.
14912 (ENDFILE_SPEC): Likewise.
14914 2002-02-28 Jason Merrill <jason@redhat.com>
14916 * c-decl.c (finish_function): Only warn about missing return
14917 statement with -Wreturn-type.
14919 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
14921 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
14923 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
14924 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
14926 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
14928 * basic-block.h (BB_REACHABLE): Renumber.
14929 (BB_DIRTY, BB_NEW): New flags.
14930 (clear_bb_flags): Declare.
14931 (update_life_info_in_dirty_blocks): Declare.
14932 * cfg.c (clear_bb_flags): New function.
14933 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
14934 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
14935 reorder_insns, emit_insn_after): Mark block as dirty.
14936 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
14937 (update_life_info_in_dirty_blocks): New function.
14938 * recog.c (apply_change_group): Dirtify block.
14940 * cse.c (cse_insn): Reorder emitting of jump insn to keep
14942 * gcse.c (delete_null_pointer_checks): Likewise.
14944 * toplev.c (dump_file_index): Move cse2 after bp,
14946 (dump_file_info): Similary.
14947 (rest_of_compilation): Avoid most of CFG rebuilds;
14948 do first if converision after null pointer checks, do cse2
14949 after branch prediction; avoid full liveness rebuild after
14950 initializing subregs.
14951 * invoke.texi (-d options): Document -du, renumber.
14953 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
14954 (notice_new_block): Do not set BB_UPDATE_LIFE.
14955 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
14956 merge_blocks_move_successor_nojumps, merge_blocks,
14957 try_crossjump_to_edge): Likewise.
14958 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
14959 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
14960 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
14961 (merge_of_block): Do not use life_data_ok.
14962 (find_if_case_1): Do not use SET_UPDATE_LIFE.
14963 (if_convert): Use BB_DIRTY mechanizm to update life.
14964 * lcm.c (optimize_mode_switching): Update
14965 update_life_info_in_dirty_blocks
14967 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
14969 * Makefile.in (integrate.o): Update.
14970 * c-decl.c (copy_lang_decl): Rename.
14971 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
14972 * integrate.c: Include langhooks.h.
14973 (copy_decl_for_inlining): Update to use langhook.
14974 * langhooks-def.h (lhd_do_nothing_t,
14975 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
14976 (LANG_HOOKS_INITIALIZER): Update.
14977 * langhooks.c (lhd_do_nothing_t): New.
14978 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
14979 * tree.h (copy_lang_decl): Remove.
14981 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
14983 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
14985 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
14986 POST_DEC, and POST_MODIFY.
14988 2002-02-27 Zack Weinberg <zack@codesourcery.com>
14990 * c-typeck.c (digest_init): Remove unused parameter; all
14993 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
14995 * expmed.c (expand_shift): Correctly test for low part of a
14998 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15000 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
15001 insn UIDs with insn addresses.
15003 2002-02-27 Zack Weinberg <zack@codesourcery.com>
15005 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
15006 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
15007 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
15008 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
15009 gcc.c, toplev.c: Delete code implementing -traditional mode.
15011 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
15012 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
15013 Document removal of -traditional mode for compilation, and
15014 remove documentation only relevant to that mode.
15016 * config/nextstep.h, config/ptx4.h, config/svr4.h,
15017 config/convex/convex.h, config/d30v/d30v.h,
15018 config/i386/dgux.h, config/i386/osf1elf.h,
15019 config/i386/osfelf.h, config/i386/osfrose.h,
15020 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
15021 config/m68k/hp310.h, config/m88k/dgux.h,
15022 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
15023 config/m88k/m88k.h, config/m88k/openbsd.h,
15024 config/mips/abi64.h, config/mips/osfrose.h,
15025 config/mips/svr4-5.h, config/mips/svr4-t.h,
15026 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
15027 config/stormy16/stormy16.h: Remove all references to
15028 -traditional from target specs. Delete all mention of the
15029 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
15030 delete a couple of commented-out definitions of
15031 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
15034 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
15035 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
15037 2002-02-27 Zack Weinberg <zack@codesourcery.com>
15039 * mklibgcc.in: Don't use \n in a line subject to
15040 interpretation by echo.
15042 2002-02-27 Graham Stott <grahams@redhat.com>
15044 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
15047 * loop.c (prescan_loop): Handle PARALLEL.
15049 * unroll.c (loop_iterations): Return 0 if the add_val for
15052 * final.c (output_operand_lossage): Constify PFX_STR.
15054 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
15056 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
15058 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
15059 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
15061 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
15063 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
15065 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
15067 * cpplex.c (_cpp_lex_token): Handle directives in macro
15069 * cpplib.c (_cpp_handle_directive): Save and restore state
15070 if parsing macro args when entering a directive.
15071 * cppmacro.c (collect_args): No need to handle directives
15072 in macro arguments.
15073 (enter_macro_context, replace_args): Use the original macro
15074 definition in case it was redefined whilst collecting arguments.
15076 * cpp.texi: Update.
15078 2002-02-26 David Edelsohn <edelsohn@gnu.org>
15080 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
15081 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
15082 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
15084 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
15085 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
15086 (load_toc_v4_PIC_2): Same.
15088 2002-02-26 Alan Modra <amodra@bigpond.net.au>
15090 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
15092 2002-02-26 Richard Henderson <rth@redhat.com>
15094 * config/alpha/alpha.md (ashldi_se): Re-enable.
15096 2002-02-26 Richard Henderson <rth@redhat.com>
15098 * config/alpha/alpha.c (alpha_encode_section_info): Examine
15099 MODULE_LOCAL_P; improve commentary.
15101 2002-02-26 Zack Weinberg <zack@codesourcery.com>
15103 * doc/cpp.texi: Clarify documentation of relationship between
15104 #line and #include.
15106 2002-02-26 Kazu Hirata <kazu@hxi.com>
15108 * config/h8300/h8300-protos.h: Update the prototype for
15109 compute_logical_op_length. Add the prototype for
15110 compute_logical_op_cc.
15111 * config/h8300/h8300.c (compute_logical_op_length): Figure out
15112 code from operands.
15113 (compute_logical_op_cc): New.
15114 * config/h8300/h8300.md: Combine all the logical op patterns
15115 in HImode and SImode. Use compute_logical_op_cc.
15117 2002-02-26 Kelley Cook <kelleycook@comcast.net>
15119 * config/i386/i386.c (print_operand): Don't append ATT-style
15120 length suffixs to x87 opcodes when in Intel mode.
15122 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
15124 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
15125 (init_emit_once): Update calls.
15126 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
15127 (init_syntax_once): Prototype.
15129 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
15131 * pa-linux.h (LIB_SPEC): Update definition.
15132 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15134 2002-02-26 Richard Henderson <rth@redhat.com>
15136 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
15137 if we emitted a stop bit.
15139 2002-02-26 Jakub Jelinek <jakub@redhat.com>
15141 * configure.in (libgcc_visibility): Substitute.
15142 * configure: Rebuilt.
15143 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
15144 defined symbols .hidden.
15146 2002-02-26 Jakub Jelinek <jakub@redhat.com>
15148 * attribs.c (c_common_attribute_table): Add visibility.
15149 (handle_visibility_attribute): New function.
15150 * varasm.c (assemble_visibility): New function.
15151 * output.h (assemble_visibility): Add prototype.
15152 * tree.h (MODULE_LOCAL_P): Define.
15153 * crtstuff.c (__dso_handle): Use visibility attribute.
15154 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
15155 for MODULE_LOCAL_P symbols too.
15156 * config/ia64/ia64.c (ia64_encode_section_info): Handle
15157 MODULE_LOCAL_P symbols the same way as local symbols.
15158 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
15159 into .sdata/.sbss by the user.
15160 * doc/extend.texi (Function Attributes): Document visibility
15163 2002-02-26 Jakub Jelinek <jakub@redhat.com>
15166 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
15167 STRING_CST initializer spanning the whole variable without
15169 If expand_expr returned MEM, don't use it.
15171 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
15173 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
15174 generate a die for the lexical block.
15176 2002-02-26 Kazu Hirata <kazu@hxi.com>
15178 * config/h8300/h8300-protos.h: Add a prototype for
15179 compute_logical_op_length.
15180 * config/h8300/h8300.c (compute_logical_op_length): New.
15181 * config/h8300/h8300.md (anonymous logical patterns): Use
15182 compute_logical_op_length for length.
15184 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
15186 * dwarf2out.c (modified_type_die): Do not call type_main_variant
15188 (gen_type_die): Same.
15190 * attribs.c (handle_vector_size_attribute): Set debug information.
15192 2002-02-26 Daniel Egger <degger@fhm.edu>
15194 * config/rs6000/rs6000.md: Swap define_insn attributes to
15195 fix incorrect generation of merge high instructions instead
15198 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
15200 * c-typeck.c (really_start_incremental_init): Use
15201 bitsize_zero_node for vectors.
15203 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
15205 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
15206 ("*set_vrsave_internal"): Same.
15208 2002-02-25 Richard Henderson <rth@redhat.com>
15210 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
15211 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
15213 2002-02-25 Jakub Jelinek <jakub@redhat.com>
15216 * config/i386/i386.c (ix86_return_pops_args): Only pop
15217 fake structure return argument if it was passed on the stack.
15219 2002-02-25 Jason Merrill <jason@redhat.com>
15221 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
15224 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
15226 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
15227 link with shared_name only.
15228 * doc/invoke.texi (Link Options): Document new behavior.
15230 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
15232 * c-typeck.c (push_init_level): Handle vectors.
15234 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
15236 * config/sparc/sparc.c (const64_high_operand): Zero-extend
15237 operands of SPARC_SETHI_P.
15238 (input_operand): Likewise.
15239 (sparc_emit_set_const32): Likewise.
15240 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
15241 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
15242 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
15243 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
15244 (movdi_insn_sp64_vis): Likewise.
15245 (movdi split, movdf split): Use SETHI32.
15246 * doc/md.texi: Document SPARC constraints L, M and N.
15248 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
15250 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
15251 ("*set_vrsave_internal"): use mfspr for Darwin.
15253 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
15254 gen_get_vrsave_internal.
15256 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15258 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
15260 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
15262 * cpplex.c (cpp_interpret_charconst): Get signedness or
15263 otherwise of wide character constants correct.
15264 * cppexp.c (lex): Get signedness of wide charconsts correct.
15266 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15268 * optabs.c (widen_operand): Only call convert_modes for
15269 promoted SUBREG if signedness matches.
15270 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
15272 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
15274 * cpplib.c (glue_header_name): Use local buffer to build up
15277 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
15279 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
15281 2002-02-23 Kazu Hirata <kazu@hxi.com>
15283 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
15284 H8/300[HS] separately.
15285 * config/h8300/h8300.md: Remove the early clobber constraint
15286 from bit field patterns.
15288 2002-02-23 Kazu Hirata <kazu@hxi.com>
15290 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
15292 (mulhisi3): Likewise.
15293 (umulqisi3): Likewise.
15294 (umulhisi3): Likewise.
15296 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
15298 * cppinit.c (output_deps): Correct test for stdout output.
15299 (init_dependency_output): Cure warning.
15301 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15303 * expr.c (store_expr): When converting expression to promoted
15304 equivalent type, allow using SUBREG_REG of TARGET as the target
15305 of the expansion of EXP.
15306 * loop.c (basic_induction_var, case SUBREG): Always look inside.
15307 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
15308 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
15309 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
15310 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
15312 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
15314 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
15315 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
15316 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
15318 2002-02-23 Jakub Jelinek <jakub@redhat.com>
15320 PR optimization/5747
15321 * loop.c (scan_loop): Update reg info if move_movables created new
15324 2002-02-23 David Edelsohn <edelsohn@gnu.org>
15326 * gcc.c (init_gcc_spec): Revert last change.
15328 2002-02-23 David Edelsohn <edelsohn@gnu.org>
15330 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
15331 gpc_reg_operand constraint.
15333 2002-02-23 Alan Modra <amodra@bigpond.net.au>
15335 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
15336 Simplify comparison of `low'.
15337 (add_operand): Fix formatting.
15338 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
15339 (mask_operand): Disallow mask to wrap in 64-bit mode.
15340 (rs6000_stack_info): Remove redundant test setting push_p.
15341 (output_toc): Fix formatting.
15342 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
15343 cc_reg_not_cr0_operand constraint.
15344 (booldi3, boolcdi3 splitters): Same.
15346 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
15348 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
15350 2002-02-22 David Edelsohn <edelsohn@gnu.org>
15352 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
15353 gcc invoked with -shared-libgcc.
15355 2002-02-22 Jakub Jelinek <jakub@redhat.com>
15358 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
15359 decl if any of elements was TREE_USED.
15361 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
15363 * config/sparc/sol2.h: Don't include sys/mman.h.
15364 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
15365 (arith_4096_operand): Don't throw high bits away.
15366 (const64_operand): Take sign extension of CONST_INTs into account.
15367 (const64_high_operand, sparc_emit_set_const32): Likewise.
15368 (GEN_HIGHINT64): Likewise.
15369 (sparc_emit_set_const64_quick1): Likewise.
15370 (const64_is_2insns): Likewise.
15371 (print_operand): Use trunc_int_for_mode for sign extension.
15372 * config/sparc/sparc.h (SMALL_INT32): Likewise.
15373 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
15374 chars. Assume CONST_INT is already properly sign-extended.
15375 (movdi split): Sign-extend each SImode part.
15376 (andsi3 split): Don't mask high bits off, so that result
15377 remains properly sign-extend.
15378 (iorsi3 split): Likewise.
15379 (xorsi3 split): Likewise.
15381 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
15383 * fold-const.c (fold): Fix typo in comments.
15385 2002-02-21 Diego Novillo <dnovillo@redhat.com>
15387 * Makefile.in (langhooks.o): Update dependencies.
15389 2002-02-21 Diego Novillo <dnovillo@redhat.com>
15391 * langhooks.c: Include flags.h.
15393 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
15395 * testsuite/gcc.dg/attr-alwaysinline.c: New.
15397 * c-common.c (c_common_post_options): Set inline trees by
15400 * doc/extend.texi (Function Attributes): Document always_inline
15402 Update documentation about inlining when not optimizing.
15404 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
15406 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
15407 unless DECL_ALWAYS_INLINE.
15409 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
15410 unless DECL_ALWAYS_INLINE.
15411 (c_disregard_inline_limits): Disregard if always_inline set.
15413 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
15414 Disregard if always_inline set.
15415 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
15416 unless DECL_ALWAYS_INLINE.
15418 * attribs.c (handle_always_inline_attribute): New.
15419 (c_common_attribute_table): Add always_inline.
15421 * config/rs6000/altivec.h: Add prototypes for builtins
15422 requiring the always_inline attribute.
15424 2002-02-21 Eric Christopher <echristo@redhat.com>
15426 * expmed.c (store_bit_field): Try to simplify the subreg
15427 before generating a new one when when the mode size of
15428 value is less than maxmode.
15430 2002-02-21 Richard Henderson <rth@redhat.com>
15432 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
15433 than gen_rtx_PLUS to form the sum.
15434 * explow.c (force_reg): Rearrange to not allocate new pseudo
15435 when force_operand returns a register.
15436 * expr.c (expand_assignment): Allow offset_rtx expansion to
15437 return a sum. Do not force addresses into registers.
15438 (expand_expr): Likewise.
15439 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
15440 to canonicalize arithmetic that didn't simpify.
15441 (simplify_plus_minus): New argument force; update
15442 all callers. Don't split CONST unless we can do something with it,
15443 and wouldn't lose the constness of the operands.
15445 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
15446 that we generated earlier.
15448 2002-02-21 Tom Tromey <tromey@redhat.com>
15450 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15451 (output_line_info): Use constant `1', with a long explanatory
15453 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
15455 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
15457 * jump.c (redirect_jump): If old label has no UID, don't try to
15460 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
15462 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
15463 If input is constant, do shifts at compile time.
15465 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
15467 * doc/extend.texi: Fix some more overfull hboxes.
15469 2002-02-21 Jakub Jelinek <jakub@redhat.com>
15471 PR optimization/4994
15472 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
15475 2002-02-21 Jakub Jelinek <jakub@redhat.com>
15478 * expr.h (expand_and): Add mode argument.
15479 * expmed.c (expand_and): Add mode argument.
15480 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
15481 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
15482 * except.c (expand_builtin_extract_return_addr): Likewise.
15483 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
15484 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
15485 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
15486 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
15487 * config/c4x/c4x.md: Use GEN_INT (x) instead of
15488 gen_rtx (CONST_INT, VOIDmode, x).
15490 2002-02-21 Jakub Jelinek <jakub@redhat.com>
15493 * stmt.c (warn_if_unused_value): Move side effects test once more.
15495 2002-02-20 Torbjorn Granlund <tege@swox.com>
15497 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
15498 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
15500 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
15502 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
15503 SUBREG or ZERO_EXTEND.
15505 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
15507 * sh.h (current_function_anonymous_args): Remove.
15508 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
15509 of current_function_varargs and current_function_stdarg is set.
15510 * sh.c (sh_expand_prologue): Check current_function_varargs /
15511 current_function_stdarg / TARGET_SH5 instead of
15512 current_function_anonymous_args.
15514 * sh64.h (TARGET_VERSION): Define.
15516 2002-02-20 David Edelsohn <edelsohn@gnu.org>
15518 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
15519 VRSAVE_REGNO on TARGET_ALTIVEC.
15521 2002-02-20 Alan Modra <amodra@bigpond.net.au>
15523 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
15524 bits of SImode const_int.
15525 (includes_rshift_p): Likewise.
15526 (print_operand): Call mask_operand and mask64_operand with correct
15528 (rs6000_output_function_epilogue): Pad traceback table to word.
15529 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
15530 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
15531 mask64_operand with correct mode.
15532 (FUNCTION_ARG_REGNO_P): Correct parentheses.
15534 2002-02-20 Jakub Jelinek <jakub@redhat.com>
15537 * varasm.c (get_pool_constant_mark): New.
15538 * rtl.h (get_pool_constant_mark): Add prototype.
15539 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
15540 be represented if it has not been output.
15542 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
15544 * combine.c (do_SUBST): Sanity check substitutions of
15545 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
15546 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
15547 CONST_INT into its operand.
15548 (known_cond): Likewise, for ZERO_EXTEND.
15549 * simplify-rtx.c (simplify_unary_operation): Fix condition to
15550 allow for simplification of wide modes. Reject CONST_INTs in
15551 ZERO_EXTEND when their actual mode is not given.
15553 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
15555 * c-decl.c (pushdecl): If no global declaration is found for an
15556 extern declaration in block scope, try a limbo one.
15558 2002-02-20 Jakub Jelinek <jakub@redhat.com>
15561 * c-common.c (pointer_int_sum): Moved from...
15562 * c-typeck.c (pointer_int_sum): ...here.
15563 * c-common.h (pointer_int_sum): Add prototype.
15565 2002-02-20 Jakub Jelinek <jakub@redhat.com>
15568 * c-decl.c (duplicate_decls): Return 0 if issued error about
15571 2002-02-20 Roger Sayle <roger@eyesopen.com>
15572 Jakub Jelinek <jakub@redhat.com>
15575 * tree.c (host_integerp): Ensure that the constant integer is
15576 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
15577 when pos is zero or non-zero respectively. Clarify comment.
15578 * c-format.c (check_format_info_recurse): Fix host_integerp
15579 usage; the pos argument should be zero when assigning to a
15580 signed HOST_WIDE_INT.
15582 2002-02-20 Richard Henderson <rth@redhat.com>
15584 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
15585 of the operand, rather than assuming TImode.
15586 (ix86_expand_binop_builtin): Cope with commutative patterns
15587 using nonimmediate_operand for both operands.
15588 (ix86_expand_timode_binop_builtin): Likewise.
15589 (ix86_expand_store_builtin): Validate operand 1.
15590 (ix86_expand_unop1_builtin): Likewise.
15592 2002-02-20 Philip Blundell <philb@gnu.org>
15595 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
15597 2002-02-20 Richard Henderson <rth@redhat.com>
15600 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
15602 2002-02-20 Tom Tromey <tromey@redhat.com>
15604 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15605 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15606 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15607 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15608 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
15611 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
15613 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
15614 for (const_int 0) in X not just INTVAL.
15616 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
15618 * doc/extend.texi: Avoid or reduce overfull hboxes.
15620 2002-02-20 Diego Novillo <dnovillo@redhat.com>
15622 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
15623 operations if the field does not start at a mode boundary.
15625 2001-02-20 Joel Sherrill <joel@OARcorp.com>
15627 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
15628 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
15629 Also done for -Acpu and -Amachine.
15631 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
15633 * cppinit.c (init_dependency_output): Take deps output file
15634 from -o if none given with -MF. Suppress normal output.
15635 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
15636 * doc/cpp.texi, doc/invoke.texi: Update.
15638 2002-02-19 Zack Weinberg <zack@codesourcery.com>
15640 * toplev.c (output_quoted_string): Write unprintable
15641 characters with octal escapes.
15643 2002-02-19 David Edelsohn <edelsohn@gnu.org>
15645 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
15646 really_call_used[VRSAVE_REGNO] if not Altivec.
15648 2002-02-19 Alan Modra <amodra@bigpond.net.au>
15650 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
15652 (constant_pool_expr_1): Fix formatting.
15653 (rs6000_legitimize_reload_address): Likewise.
15655 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15657 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
15658 now that we have one.
15660 2002-02-19 Zack Weinberg <zack@codesourcery.com>
15662 * tree.h (struct tree_common): Remove aux. Add unused_0 at
15663 end of first block of bitfields (which was only seven bits);
15664 rename dummy to unused_1; remove comment which is no longer true.
15666 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
15668 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
15670 2002-02-19 Philip Blundell <pb@nexus.co.uk>
15673 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
15677 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
15678 arm_is_longcall_p rather than inspecting call-type cookie
15680 (call_value_insn) [TARGET_THUMB]: Likewise.
15682 2002-02-19 Graham Stott <grahams@redhat.com>
15684 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
15686 2002-02-19 David Edelsohn <edelsohn@gnu.org>
15688 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
15689 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
15690 (FP_SAVE_INLINE): Delete.
15692 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
15693 * config/rs6000/eabi.asm: Remove ABI save restore routines.
15694 * config/rs6000/t-ppccomm: Build crtsavres.o.
15695 * config/rs6000/crtsavres.asm: New file.
15697 2002-02-19 Philip Blundell <philb@gnu.org>
15699 * config/arm/arm.c (use_return_insn): Don't reject interrupt
15701 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
15702 (output_return_instruction): Allow interrupt functions to return with
15703 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
15704 (arm_expand_prologue): Subtract 4 before stacking LR in an
15705 interrupt function.
15707 2002-02-19 Philip Blundell <pb@nexus.co.uk>
15709 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
15710 decl, not just FUNCTION_DECL.
15711 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
15712 (arm_assemble_integer): Likewise.
15713 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
15716 2002-02-19 matthew green <mrg@eterna.com.au>
15718 * config.gcc (sparc-*-netbsdelf*): Enable target.
15719 (sparc64-*-netbsd*): New target.
15720 * config/sparc/netbsd-elf.h: New file.
15721 * config/sparc/t-netbsd64: New file.
15723 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
15725 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
15727 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
15729 * doc/invoke.texi: explicitly list the style guidelines that
15730 -Weffc++ checks for.
15732 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
15734 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
15736 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
15739 * gcc.c (cpp_unique_options): Treat -o as indicating object file
15740 only if not -E. If -E, pass -o through to the preprocessor.
15742 2002-02-19 Kazu Hirata <kazu@hxi.com>
15744 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
15745 register number with an appropriate macro.
15747 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
15749 * doc/rtl.texi (Constants): Close @code tag.
15751 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
15753 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
15754 ("mmx_uavgv4hi3"): Same.
15755 ("pmulhrwv4hi3"): Same.
15757 * tree-inline.c (walk_tree): Handle vectors.
15759 * c-common.c (constant_expression_warning): Handle vectors.
15760 (overflow_warning): Same.
15762 * sched-deps.c (sched_analyze_2): Handle vectors.
15764 * rtlanal.c (rtx_unstable_p): Handle vectors.
15765 (rtx_varies_p): Same.
15766 (count_occurrences): Same.
15767 (regs_set_between_p): Same.
15768 (modified_between_p): Same.
15769 (modified_in_p): Same.
15770 (volatile_insn_p): Same.
15771 (volatile_refs_p): Same.
15772 (side_effects_p): Same.
15773 (may_trap_p): Same.
15774 (inequality_comparisons_p): Same.
15775 (replace_regs): Same.
15776 (computed_jump_p_1): Same.
15778 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
15780 (inner_mode_array): New.
15781 (copy_rtx): Handle vectors.
15782 (copy_most_rtx): Same.
15783 (rtx_equal_p): Same.
15784 (get_mode_alignment): Adjust for vectors.
15786 * resource.c (mark_referenced_resources): Handle vectors.
15787 (mark_set_resources): Same.
15789 * reload1.c (eliminate_regs): Handle vectors.
15790 (elimination_effects): Same.
15791 (scan_paradoxical_subregs): Same.
15793 * reload.c (subst_reg_equivs): Handle vectors.
15795 * regrename.c (scan_rtx): Handle vectors.
15797 * regclass.c (reg_scan_mark_refs): Handle vectors.
15799 * recog.c (find_single_use_1): Handle vectors.
15801 * local-alloc.c (equiv_init_varies_p): Handle vectors.
15802 (contains_replace_regs): Same.
15803 (memref_referenced_p): Same.
15805 * integrate.c (copy_rtx_and_substitute): Handle vectors.
15806 (subst_constants): Same.
15808 * genattrtab.c (attr_copy_rtx): Handle vectors.
15809 (encode_units_mask): Same.
15810 (clear_struct_flag): Same.
15811 (count_sub_rtxs): Same.
15813 * gcse.c (want_to_gcse_p): Handle vectors.
15814 (oprs_unchanged_p): Same.
15815 (hash_expr_1): Same.
15816 (oprs_not_set_p): Same.
15817 (expr_killed_p): Same.
15818 (compute_transp): Same.
15819 (store_ops_ok): Same.
15821 * function.c (purge_addressof_1): Do not allow paradoxical subregs
15823 (fixup_var_refs_1): Same.
15824 (instantiate_virtual_regs_1): Same.
15826 * fold-const.c (operand_equal_p): Handle vectors.
15828 (rtl_expr_nonnegative_p): Same.
15830 * flow.c (mark_used_regs): Handle vectors.
15832 * df.c (df_uses_record): Handle vectors.
15834 * cselib.c (cselib_subst_to_values): Handle vectors.
15835 (cselib_mem_conflict_p): Same.
15838 * cse.c (canon_reg): Handle vectors.
15840 (cse_process_notes): Same.
15841 (count_reg_usage): Same.
15842 (canon_hash): Same.
15844 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
15846 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
15848 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
15849 (gen_rtx): Handle CONST_VECTOR.
15850 (gen_const_vector_0): New.
15851 (copy_rtx_if_shared): CONST_VECTORs can be shared.
15852 (reset_used_flags): Same.
15853 (copy_insn_1): Same.
15854 (initializer_constant_valid_p): Handle VECTOR_CST.
15856 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
15858 * doc/rtl.texi (Constants): Document const_vector.
15859 (CONST0_RTX): Update for vectors.
15860 (RTL sharing): Same.
15862 * print-tree.c (print_node): Add case for VECTOR_CST.
15864 * tree.h (TREE_VECTOR_CST_ELTS): New.
15865 (struct tree_vector): New.
15866 (union tree_node): Add vector node.
15867 (build_vector): Add prototype.
15869 * tree.def (VECTOR_CST): New.
15871 * tree.c (build_vector): New.
15873 * expmed.c (make_tree): Handle CONST_VECTOR.
15875 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
15876 (CONST_VECTOR_ELT): New.
15877 (CONST_VECTOR_NUNITS): New.
15879 * machmode.h (GET_MODE_INNER): New.
15880 (DEF_MACHMODE): Accept 8th arg.
15882 * machmode.def: Add 8th argument for vector inner mode.
15883 Add inner vector modes for vectors.
15885 * rtl.def (VEC_CONST): Remove.
15886 (CONST_VECTOR): New.
15888 * expr.c (clear_storage): Allow vectors.
15889 (is_zeros_p): Handle VECTOR_CST.
15891 * varasm.c (output_constant_pool): Handle vectors.
15892 (rtx_const): Add veclo and vechi fields.
15893 (kind): Add RTX_VECTOR.
15894 (decode_rtx_const): Add case for vector.
15896 * config/rs6000/rs6000-protos.h: Add zero_constant.
15898 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
15899 constants. Force easy vector constants into memory.
15900 (easy_vector_constant): New.
15901 (emit_easy_vector_constant): New.
15902 (rs6000_legitimize_reload_address): Do not generate bad reloads on
15905 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
15907 ("altivec_lvxl"): Same.
15908 (altivec_lvebx): Same.
15909 (altivec_lvehx): Same.
15910 (altivec_lvewx): Same.
15911 ("*movv4si_const0"): New.
15912 ("*movv4sf_const0"): New.
15913 ("*movv8hi_const0"): New.
15914 ("*movv16qi_const0"): New.
15916 2002-02-18 Kazu Hirata <kazu@hxi.com>
15918 * config/h8300/h8300.c (notice_update_cc): Use
15921 2002-02-18 Kazu Hirata <kazu@hxi.com>
15923 * config/h8300/h8300.md (divmod patterns): Change the
15924 constraints for operands[1] to register_operand.
15926 2002-02-18 Kazu Hirata <kazu@hxi.com>
15928 * config/h8300/h8300-protos.h: Remove the prototype for
15930 * config/h8300/h8300.c (p_operand): Remove.
15931 * config/h8300/h8300.md: Replace p_operand with
15934 2002-02-18 Philip Blundell <pb@nexus.co.uk>
15936 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
15938 (output_return_instruction): Allow use of LDR to unstack
15939 return addresss even for interrupt handlers or when
15940 interworking. If compiling for ARMv5, use interworking-safe
15941 return instructions by default. Remove duplicated code and
15942 lengthy "strcat" sequences.
15944 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15946 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
15947 (LINK_EH_SPEC): Define.
15948 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
15950 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
15952 * config/s390/s390.c (s390_emit_prologue): Do not set the
15953 frame_related flag for call-clobbered registers.
15955 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
15957 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
15958 (construct_container): Fix handling of SSE operands.
15959 (ix86_expand_builtin): Fix handling of 64bit pointers.
15960 (mmx_maskmovq_rex): New pattern.
15962 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
15964 * regrename.c (kill_set_value): Handle subregs properly.
15966 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
15968 * objc/objc-act.c (handle_impent): Remove leading '*'
15969 from objc_class_name.
15971 2002-02-17 Richard Henderson <rth@redhat.com>
15973 * config/alpha/alpha.c (some_small_symbolic_operand,
15974 some_small_symbolic_operand_1, split_small_symbolic_operand,
15975 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
15976 Handle small SYMBOL_REFs anywhere, not just inside memories.
15977 * config/alpha/alpha-protos.h: Update.
15978 * config/alpha/alpha.h (PREDICATE_CODES): Update.
15979 * config/alpha/alpha.md (small symbolic operand splitter): Update.
15981 2002-02-17 Roland McGrath <roland@frob.com>
15983 * config.gcc (powerpc-*-gnu-gnualtivec*,
15984 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
15985 * config/rs6000/gnu.h: New file.
15986 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
15987 Grok "gnu" in rs6000_abi_name.
15988 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
15989 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
15990 Grok -mcall-gnu analogous to -mcall-linux et al.
15991 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
15992 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
15993 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
15995 2002-02-17 Jakub Jelinek <jakub@redhat.com>
15998 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
16001 2002-02-17 Philipp Thomas <pthomas@suse.de>
16003 * config/cris/cris.h: Undefine STARTFILE_SPEC and
16004 ENDFILE_SPEC before (re)defining them.
16006 2002-02-17 Kazu Hirata <kazu@hxi.com>
16008 * config/h8300/h8300.c: Fix formatting.
16009 * config/h8300/h8300.h: Likewise.
16011 2002-02-17 Philipp Thomas <pthomas@suse.de>
16013 * doc/tm.texi: Explain why empty strings should not be
16014 marked for translation.
16016 2002-02-17 Philipp Thomas <pthomas@suse.de>
16018 * final.c (output_operand_lossage): Changed to accept
16019 printf style arguments. Change calls where necessary.
16020 * output.h (output_operand_lossage): Change declaration
16021 accordingly. Update copyright.
16022 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
16023 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
16024 Update copyright date where necessary.
16026 * config/i386/i386.c (print_operand): Likewise. Remove use of
16029 * config/cris/cris.c (cris_operand_lossage): Likewise.
16030 Rename parameter so that exgettext recognizes it as
16031 translatable message.
16032 (LOSE_AND_RETURN): Rename parameter to msgid.
16034 2002-02-17 Kazu Hirata <kazu@hxi.com>
16036 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
16037 hard coded register number with an appropriate macro.
16038 (HARD_REGNO_MODE_OK): Likewise.
16039 (ARG_POINTER_REGNUM): Likewise.
16040 (STATIC_CHAIN_REGNUM): Likewise.
16041 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
16042 * config/h8300/h8300.md (define_constants): Define more
16045 2002-02-17 Philipp Thomas <pthomas@suse.de>
16047 * config/i386/i386.h: Don't mark empty strings for translation.
16049 2002-02-16 H.J. Lu <hjl@gnu.org>
16051 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
16053 2002-02-16 Zack Weinberg <zack@codesourcery.com>
16055 * cppinit.c (merge_include_chains): Check for brack being
16056 NULL before attempting to merge it with qtail.
16058 2002-02-16 Andrew Cagney <ac131313@redhat.com>
16060 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
16063 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
16065 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
16067 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
16069 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
16070 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
16071 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
16073 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16075 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
16076 now only if !TARGET_FIX.
16077 (*movsi_nt_vms_fix): New pattern.
16079 2002-02-16 Douglas B Rupp <rupp@gnat.com>
16081 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
16082 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
16083 (alpha_sa_mask, alpha_sa_size): Reflect above change.
16084 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
16085 (alpha_start_function, alpha_expand_epilogue): Likewise.
16086 (unicosmk_gen_dsib): Likewise.
16088 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16090 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
16092 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
16094 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
16095 check_and_change_labels, s390_final_chunkify): Delete.
16096 (s390_split_branches, s390_chunkify_pool): New functions.
16097 (s390_function_prologue): Call them.
16099 * config/s390/s390.h (S390_REL_MAX): Delete.
16100 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
16102 * config/s390/s390.md (cjump, icjump, jump): Fix length
16103 attribute calculation.
16106 2002-02-15 David Edelsohn <edelsohn@gnu.org>
16108 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
16109 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
16111 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
16113 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
16114 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
16115 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
16117 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
16119 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
16121 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
16123 * reload.c (find_dummy_reload): Check that an output register
16124 is valid for its mode.
16126 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
16128 * combine.c (known_cond): After replacing the REG of a SUBREG, try
16131 * function.c (assign_parms): Demote promoted argument passed by
16132 transparent reference.
16134 2001-02-14 Joel Sherrill <joel@OARcorp.com>
16136 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
16137 -Acpu() and -Amachine() to eliminate warnings.
16139 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
16141 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
16143 2002-02-14 Kazu Hirata <kazu@hxi.com>
16145 * config/h8300/h8300-protos.h: Update the prototype for
16147 * config/h8300/h8300.c (const_costs): Treat SET as a little
16148 more expensive operation.
16149 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
16150 reference to const_costs.
16152 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
16154 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
16156 2002-02-14 Jakub Jelinek <jakub@redhat.com>
16159 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
16160 use arguments from newtype.
16162 2002-02-13 Eric Christopher <echristo@redhat.com>
16164 * config/mips/mips.c (override_options): Add check for march/mipsX
16165 on the same command line. Fix error message in cpu processing.
16166 Remove architecture and ISA checks.
16168 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
16170 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
16172 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
16174 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
16176 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
16178 ("*movv8hi_internal1"): Same.
16179 ("*movv16qi_internal1"): Same.
16180 ("*movv4sf_internal1"): Same.
16182 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
16183 not push_reload for altivec modes.
16185 2002-02-13 Joel Sherrill <joel@OARcorp.com>
16187 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
16188 all RTEMS targets including removal of #includes from config/*/rtems*.h
16189 file and adding them to tm_file setting. Added xm_defines=POSIX to
16191 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
16192 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
16193 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
16194 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
16195 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
16196 config/m68k/rtemself.h: Ditto.
16197 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
16198 config/mips/rtems64.h: Ditto.
16199 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
16200 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
16202 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
16203 config/sparc/rtemself.h: Ditto.
16204 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
16205 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
16206 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
16208 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
16209 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
16210 target made more similar to i386-elf.
16211 * config/i386/t-rtems-i386: Added soft float support and multilibs.
16212 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
16213 be similar to config/m68k/t-m68kelf.
16214 * gthr-rtems.h: Encapsulate with extern "C" for C++.
16216 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
16218 * regmove.c (kill_value): Handle subregs.
16220 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
16222 * i386.md (mul patterns): Allow memory operand to be first;
16223 add expanders where needed; fix constraints.
16224 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
16225 Allow memory operand to be the first.
16227 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
16230 2002-02-13 Jakub Jelinek <jakub@redhat.com>
16233 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
16236 2002-02-13 Jakub Jelinek <jakub@redhat.com>
16238 PR optimization/5547:
16239 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
16240 all valid IA-32 address modes involving non-scaled %ebx and
16241 GOT/GOTOFF as displacement.
16243 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
16245 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
16246 after emitting ltorg insns.
16248 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
16249 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
16250 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
16251 *abssf2): Fix "op_type" attribute.
16253 2002-02-13 Douglas B Rupp <rupp@gnat.com>
16255 * mkconfig.sh: Avoid using a subshell redirect.
16256 ($output.T): Change to $(output)T.
16257 (ENABLE_NLS): Remove unneeded undef.
16259 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
16260 * config/alpha/x-vms (libsubdir): Define.
16262 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
16263 register frame procedures. Optimize retrieving context.
16265 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
16266 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
16267 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
16269 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16271 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
16272 Make same change as for find_base_value.
16274 2002-02-13 Kazu Hirata <kazu@hxi.com>
16276 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
16277 of QImode and SImode.
16279 2002-02-13 Kazu Hirata <kazu@hxi.com>
16281 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
16282 length computation of movsi.
16283 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
16285 2002-02-13 Kazu Hirata <kazu@hxi.com>
16287 * config/h8300/h8300.md (subqi3): Tighten the predicate for
16288 operands[2] to register_operand.
16290 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
16292 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
16294 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
16296 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
16297 for altivec_lvx* and altivec_stvx*.
16298 ("*movv4si_internal"): Add constraint for loading from GPRs.
16299 ("*movv8hi_internal1"): Same.
16300 ("*movv16qi_internal1"): Same.
16301 ("*movv4sf_internal1"): Same.
16303 * config/rs6000/rs6000.c (altivec_register_operand): New.
16305 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
16306 altivec_register_operand.
16308 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
16310 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
16313 2002-02-13 Stan Shebs <shebs@apple.com>
16315 * c-typeck.c (digest_init): Handle vectors.
16316 (really_start_incremental_init): Same.
16317 (pop_init_level): Same.
16318 (process_init_element): Same.
16320 * varasm.c (output_constant): Same.
16322 * expr.c (clear_storage): Same.
16323 (store_constructor): Same.
16325 2002-02-12 Eric Christopher <echristo@redhat.com>
16327 * explow.c (hard_function_value): Add comment explaining
16328 signed/unsigned comparison.
16330 2002-02-12 Jakub Jelinek <jakub@redhat.com>
16332 * jump.c (never_reached_warning): Add finish argument.
16333 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
16334 real insn after end.
16335 * rtl.h (never_reached_warning): Adjust prototype.
16336 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
16337 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
16338 never_reached_warning.
16340 2002-02-12 Graham Stott <grahams@redhat.com>
16342 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
16344 2002-02-12 Kazu Hirata <kazu@hxi.com>
16346 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
16347 logical shifts on H8/300.
16348 (shift_alg_si): Improve several shifts on H8/300.
16349 (get_shift_alg): Likewise.
16351 2002-02-12 Graham Stott <grahams@redhat.com>
16353 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
16355 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16357 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
16358 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
16360 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
16362 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
16363 non-CONST_INT through default_assemble_integer.
16364 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
16365 <case 8>: Abort for CONST_DOUBLE.
16367 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
16369 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
16371 * config/pa/pa-linux.h (LIB_SPEC): Delete.
16372 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
16374 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
16376 * config/stormy16/stormy16.md (zero_extendqihi2): New.
16378 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
16380 * regrename.c (regrename_optimize): Don't accept a
16381 part-clobbered register if the replaced register is not part
16384 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
16385 take padding into account when computing the argument value.
16387 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
16389 * combine.c (try_combine): Apply substitutions in
16390 CALL_INSN_FUNCTION_USAGE too.
16392 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
16394 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
16395 __builtin_altivec_abs*.
16398 * config/rs6000/rs6000.h (rs6000_builtins): Add
16399 ALTIVEC_BUILTIN_ABS*.
16401 * config/rs6000/altivec.h: Use const char for builtins expecting
16403 (vec_abs): New versions for C and C++.
16406 2002-02-10 Kazu Hirata <kazu@hxi.com>
16408 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
16411 2002-02-10 Kazu Hirata <kazu@hxi.com>
16413 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
16414 constant definition from h8300.md.
16415 (FRAME_POINTER_REGNUM): Likewise.
16416 * config/h8300/h8300.md (define_constants): Add FP_REG.
16418 2002-02-10 Kazu Hirata <kazu@hxi.com>
16420 * config/h8300/h8300.c (print_operand): Remove redundant code.
16422 2002-02-10 Kazu Hirata <kazu@hxi.com>
16424 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
16425 * config/h8300/h8300.c (byte_reg): Make it static.
16427 2002-02-10 Richard Henderson <rth@redhat.com>
16430 * c-typeck.c (incomplete_type_error): Handle flexible array members.
16432 2002-02-10 Richard Henderson <rth@redhat.com>
16435 * tree.c (append_random_chars): Don't abort if main_input_filename
16438 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
16440 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
16442 2002-02-10 Kazu Hirata <kazu@hxi.com>
16444 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
16445 (pushhi1): Likewise.
16447 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
16449 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
16450 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
16452 2002-02-09 David O'Brien <obrien@FreeBSD.org>
16454 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
16456 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
16458 2002-02-09 Kazu Hirata <kazu@hxi.com>
16460 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
16461 a half of an SImode register on H8/300.
16463 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
16465 * i386.md (movdi_2): Add missing '!'.
16467 2002-02-09 Kazu Hirata <kazu@hxi.com>
16469 * config/h8300/h8300.h: Fix formatting. Remove commented-out
16472 2002-02-09 Kazu Hirata <kazu@hxi.com>
16474 * config/h8300/h8300.md (length): Correct the distance valid
16475 for the short branch.
16477 2002-02-09 Kazu Hirata <kazu@hxi.com>
16479 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
16481 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
16483 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
16484 registers in SImode.
16485 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
16488 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
16491 Contribute sh64-elf.
16492 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
16493 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
16494 (sh_cannot_modify_jumps_p): New function.
16495 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
16496 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
16497 (sh_ms_bitfield_layout_p): New function.
16498 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
16499 Zack Weinberg <zack@codesourcery.com>
16500 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
16501 expand_simple_binop instead of expand_binop.
16502 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
16503 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
16504 use of .quad and .uaquad.
16505 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
16506 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
16507 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16508 * config/sh/sh.md (movdi_const, movdi_const_32bit,
16509 movdi_const_16bit): Make sure all CONSTs have modes.
16510 (sym2PIC): Ditto, but by adjusting all callers.
16511 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
16512 if the prologue calls the SHmedia argument decoder or register
16514 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16515 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
16516 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
16517 (sh_expand_epilogue): Don't emit USE of return target register.
16518 (prepare_move_operands): Legitimize DImode PIC addresses.
16519 (sh_media_register_for_return): Skip tr0, used to initialize the
16521 (sh_expand_prologue): Remove explicit USE of return register.
16522 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
16523 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
16524 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
16525 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
16526 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
16527 EXTRA_CONSTRAINT_T.
16528 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
16529 (MOVI_SHORI_BASE_OPERAND_P): New.
16530 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
16531 (EXTRA_CONSTRAINT_T): Define in terms of them.
16532 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
16533 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
16534 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
16535 alternatives supporting TARGET_REGS.
16536 (UNSPEC_GOTPLT): New constant.
16537 (movdi split): Move incrementing of LABEL_NUSES...
16538 (movdi_const, movdi_const_32bit): Here. Use
16539 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
16540 (movdi_const_16bit): New.
16541 (call, call_value) [flag_pic]: Use GOTPLT.
16542 (call_pop, call_value_pop): New expands.
16543 (call_pop_compact, call_pop_rettramp): New insns.
16544 (call_value_pop_compact, call_value_pop_rettramp): New insns.
16545 (sibcall) [flag_pic]: Use GOT.
16546 (builtint_setjmp_receiver): Remove bogus, unused expand.
16547 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
16548 (*pt, *ptb, ptrel): New insns.
16549 (sym2GOT): Handle DImode GOT.
16550 (sym2GOTPLT, symGOTPLT2reg): New expands.
16551 (sym2PIC): New expand.
16552 (shcompact_return_tramp): Use GOTPLT to return trampoline.
16553 (shcompact_return_tramp_i): Use return register explicitly.
16554 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
16555 disable flag_reorder_blocks.
16556 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
16557 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
16558 clobbers, for clarity.
16559 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
16560 restoring of r0 in macl as MAYBE_DEAD.
16561 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
16562 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
16563 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
16564 alter_subreg all over.
16565 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
16566 reload, instead of emitting instructions that would require
16568 (casesi_load_media): Add missing modes.
16569 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
16570 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
16571 as used if the argument decoder is called.
16572 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
16573 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
16574 Pmode, then extend it to DImode if necessary.
16575 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
16576 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
16577 constants in FPU-enabled SHmedia, let them be loaded from memory.
16578 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
16579 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
16580 Adjust whitespace in assembly output templates.
16581 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
16582 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
16583 mode of if_then_else.
16584 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
16585 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
16587 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
16588 Joern Rennecke <amylaar@redhat.com>
16589 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
16590 (SUBTARGET_CPP_PTR_SPEC): New.
16591 (SUBTARGET_CPP_SPEC): Remove.
16592 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
16593 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
16594 Fix typo in previous checkin.
16595 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
16596 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
16597 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
16598 Alexandre Oliva <aoliva@redhat.com>
16599 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
16600 what single FP register can hold for SHmedia target.
16601 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
16602 Alexandre Oliva <aoliva@redhat.com>
16603 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
16604 Do not split into SUBREG.
16605 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
16606 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
16607 and added new functions as specified in SH5 ABI r9.
16608 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
16609 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
16611 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
16612 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
16613 gen_consttable_4 and gen_consttable_8. Emit multiple labels
16614 and consttable_window_ends.
16615 2001-06-03 Graham Stott <grahams@redhat,com>
16616 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
16617 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
16618 * config/sh/sh.c (print_operand): Handle floating-point pair,
16619 vector and matrix registers.
16620 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
16621 vector modes into account.
16622 * config/sh/sh.md (movv2sf): Split move between registers into
16624 (movv4sf, movv16sf): Introduce insns that get split only after
16626 * config/sh/shmedia.h: Fix Copyright dates.
16627 * config/sh/ushmedia.h: Likewise. Move loop counter
16628 declarations into conditionals that uses them.
16629 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
16631 * config/sh/sshmedia.h: Fix Copyright dates.
16632 (sh_media_PUTCFG): Fix constraints.
16633 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
16634 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
16635 ptrmemfunc_vbit_in_delta for SH5.
16636 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
16637 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
16638 * invoke.texi: Likewise.
16639 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
16640 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
16641 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
16642 GCC_pop_shmedia_regs_nofpu): New global symbols.
16643 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
16644 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
16645 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
16646 compact function with nonlocal labels.
16647 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
16648 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
16649 (initial_elimination_offset): Account for their stack space.
16650 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
16651 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
16652 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
16653 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
16654 least one of the operands to be a register.
16655 (movv2sf): Likewise. Renamed to movv2sf_i.
16656 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
16657 prepare_move_operands() before emitting SHmedia insns.
16658 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
16659 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
16660 Don't save nor initialize r12. Don't mis-align the stack.
16661 Pad the code with a nop.
16662 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
16664 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
16665 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
16666 [__SHMEDIA__]: Implement.
16667 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
16668 * config/sh/sh.md: Set latency of `pt' closer to reality.
16669 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
16670 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
16671 Set move, load and store type attributes.
16672 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
16673 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
16675 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
16676 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
16677 * config/sh/sh.c (sh_media_register_for_return): New function.
16678 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
16679 branch-target register.
16680 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
16681 * config/sh/sh.md (return_media_i): Use any call-clobbered
16682 branch-target register.
16683 (return_media): If r18 wasn't copied in the prologue, copy it
16685 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
16686 Clear class FP0_REGS.
16687 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
16689 2001-03-08 DJ Delorie <dj@redhat.com>
16690 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
16691 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
16692 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
16693 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
16694 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
16695 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
16696 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
16697 return value correctly for call_cookie.
16698 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
16699 * config/sh/crt1.asm (start): Modified so as to call
16700 ___setup_argv_and_call_main.
16701 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
16702 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
16704 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
16705 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
16706 (STRIP_NAME_ENCODING): Use it.
16707 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
16708 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
16709 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
16710 prepare_scc_operands().
16711 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
16712 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
16713 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
16714 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
16715 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
16716 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
16717 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
16718 used in shcompact_incoming_args.
16719 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
16721 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
16723 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
16724 Adjust accordingly.
16725 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
16726 Simplify. Adjust. Add sanity check.
16727 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
16729 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
16731 (udivsi3, divsi3): Use them.
16732 (force_mode_for_call): New insn.
16733 (call, call_value, sibcall_value): Emit it before SHcompact
16735 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
16736 * config/sh/sh.md (call, call_value, sibcall): Make sure the
16737 call cookie is non-NULL before taking its value.
16738 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
16739 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
16740 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
16741 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
16743 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
16744 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
16745 temporary for stack adjusts. Use MACL and MACH to pass
16746 arguments to shcompact_incoming_args.
16747 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
16749 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
16750 (nested_trampoline): Load static chain address into r1.
16751 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
16752 2001-01-07 Alexandre Oliva <aoliva@redhat.com
16753 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
16754 fp_arith_reg_operand().
16755 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
16756 * config/sh/sh.md (casesi): Sign-extend the first two operands,
16757 and use signed compares for them.
16758 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
16759 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
16760 ones properly aligned.
16761 (find_barrier): Account for extra alignment needed for 8-byte wide
16763 (machine_dependent_reorg): Require a label for the second 4-byte
16764 constant after an 8-byte one.
16765 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
16767 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
16768 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
16769 last_float when switching float modes.
16770 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
16771 auto-increment for general-purpose registers.
16772 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
16774 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
16776 * config/sh/sh.c (sh_builtin_saveregs): Support using all
16777 registers for varargs.
16778 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
16779 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
16780 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
16781 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
16782 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
16783 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
16784 call_cookie accordingly.
16785 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
16786 (SHCOMPACT_BYREF): Likewise.
16787 (SHCOMPACT_FORCE_ON_STACK): New macro.
16788 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
16789 (sh_builtin_saveregs): Likewise.
16790 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
16791 shcompact_incoming_args): Use new shift values. Support
16792 sequences of consecutive and non-consecutive pushes/pops.
16793 * config/sh/sh.md (return): Don't explicitly use PR_REG.
16794 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
16795 * config/sh/sh.h (TEXT_SECTION): Define.
16796 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
16797 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
16798 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
16799 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
16800 return values on FPU-enabled SHmedia.
16801 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
16802 FPU-enabled SHmedia.
16803 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
16804 value is returned in a non-FP reg and is not returned by
16806 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
16808 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
16809 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
16810 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
16811 quad-aligned to be passed by callee-copy reference.
16812 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
16813 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
16814 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
16815 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
16816 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
16817 copying low-numbered FP regs to r7 and r8.
16818 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
16819 FP regs to general-purpose regs only if the copy was passed on the
16821 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
16822 copying FP reg to r9.
16823 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
16824 copy FP regs to general-purpose regs only in outgoing calls.
16825 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
16826 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
16828 * config/sh/sh.h (struct sh_args): Document all fields.
16829 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
16830 passed partially on the stack should not consider making
16832 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
16833 stack_regs only for incoming calls. When passing FP args,
16834 make sure there are FP regs available before modifying
16836 (SHCOMPACT_BYREF): Pass double args in general-purpose
16837 registers by reference.
16838 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
16839 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
16840 attempt to generate sibcalls if the caller got any arguments
16842 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
16843 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
16844 to 8-byte boundaries.
16845 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
16846 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
16847 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
16848 stored in the stack.
16849 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
16850 for the offsets to have the ISA bit set.
16851 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
16852 invocation. Use beq instead of bgt to mark end of sequence of
16854 (shcompact_incoming_args): Fix store of r2. Use beq instead of
16855 bgt to mark end of sequence of stores.
16856 * config/sh/sh.c (arith_operand): Don't check whether
16857 CONST_OK_FOR_J for now.
16858 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
16859 instead of long for conversion.
16860 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
16861 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
16862 before passing it to fprintf.
16863 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
16864 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
16865 Call set_fpscr before reading/writing SR.
16866 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
16868 * config/sh/lib1funcs.asm: Add `.align 2' directives before
16870 (FMOVD_WORKS): Define on SH5 with FPU.
16871 (set_fpscr): Define on SH5. Remove separate _fpscr_values
16873 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
16875 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
16876 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
16878 (ia_main_table): Ditto.
16879 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
16880 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
16881 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
16882 the definitions from sh.h.
16883 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
16885 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
16886 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
16887 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
16888 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
16889 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
16890 Increment LABEL_NUSES.
16892 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
16894 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
16896 * config/sh/elf.h (SIZE_TYPE): Likewise.
16897 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
16898 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
16899 shcompact_incoming_args): Load switch table addresses using
16901 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
16902 (NO_BUILTIN_SIZE_TYPE): Define.
16903 (SIZE_TYPE): Don't define.
16904 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
16905 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
16906 definition of __SH5__=32 for -m5-compact-nofpu.
16907 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
16909 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
16910 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
16911 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
16912 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
16913 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
16914 (INSN_LENGTH_ALIGNMENT): Likewise.
16915 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
16916 * config/sh/sh.md (call, call_value, sibcall): Simplify
16917 copying of non-branch-target register.
16918 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
16919 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
16920 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
16921 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
16922 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
16923 floating-point values as structs.
16924 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
16925 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
16926 general-purpose register.
16927 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
16928 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
16929 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
16930 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
16931 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
16932 (ENCODE_SECTION_INFO): Enclose variables and constants in
16934 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
16935 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
16936 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
16937 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
16938 only for LABEL_REFs. For SYMBOL_REFs, prepend
16939 SH_DATALABEL_ENCODING to the symbol name.
16940 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
16942 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
16943 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
16945 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
16946 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
16947 (DATALABEL_REF_P): Don't require CONST.
16948 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
16950 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
16951 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
16953 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
16954 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
16955 Use shallow_copy_rtx and PUT_MODE to change the mode of
16956 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
16957 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
16958 on SHmedia using GENERAL_REGs.
16959 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
16960 bltu_media_i): Fix reversion of conditions.
16961 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
16962 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
16963 * config/sh/sh.c (output_far_jump): Save r13 in macl.
16964 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
16965 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
16966 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
16967 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
16968 (GCC_nested_trampoline): Likewise.
16969 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
16970 * config/sh/sh.c (gen_datalabel_ref): Define.
16971 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
16972 (INITIALIZE_TRAMPOLINE): Likewise.
16973 (TRAMPOLINE_ADJUST_ADDRESS): Define.
16974 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
16975 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
16976 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
16977 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
16978 (ic_invalidate): Adjust for SH5.
16979 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
16980 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
16981 _nested_trampoline.
16982 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
16983 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
16984 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
16985 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
16986 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
16987 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
16988 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
16989 * config/sh/sh.c (target_reg_operand): Match only target-branch
16990 registers and pseudos that aren't virtual registers.
16991 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
16992 Copy operands that don't match target_reg_operand to pseudos.
16993 (call_media, call_value_media, sibcall_media): Use
16994 target_reg_operand instead of target_operand.
16995 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
16996 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
16997 * config/sh/sh.c (target_reg_operand): Match hardware registers
16998 other than branch-target registers.
16999 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
17000 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
17001 (fpscr_values) [SH5 == 32]: Define.
17002 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
17003 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17004 Handle function addresses coming in SUBREGs.
17005 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
17006 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17007 shcompact_return_trampoline): Use datalabel where appropriate.
17008 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
17009 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
17010 general-purpose register to copy one branch-target register to
17012 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
17013 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
17014 SYMBOL_REFs with VOIDmode.
17015 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17016 bltu_media_i): New insns.
17017 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
17018 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
17019 (INIT_CUMULATIVE_ARGS): Likewise.
17020 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
17021 * machmode.def (V16SFmode): New mode.
17022 * c-common.c (type_for_mode): Support V2SF and V16SF.
17023 * tree.c (build_common_tree_nodes_2): Likewise.
17024 * tree.h (tree_index): Likewise.
17025 * calls.c (emit_call_1): Take args_so_far. Adjust all
17026 callers. Introduce CALL_POPS_ARGS.
17027 * tm.texi (CALL_POPS_ARGS): Document.
17028 * config/sh/crt1.asm: Implement in SHmedia mode.
17029 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
17030 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
17031 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
17032 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
17033 Implement divsi and udivsi in SHmedia mode. Introduce
17034 SHcompact trampolines.
17035 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
17037 (regno_reg_class): Rewrite.
17038 (fp_reg_names): Remove.
17039 (sh_register_names, sh_additional_register_names): New.
17040 (print_operand): Added `u'. Support SUBREGs in addresses.
17041 Add parentheses around shifted CONSTs.
17042 (output_file_start): Output .mode and .abi directives.
17043 (shiftcosts, addsubcosts, multcosts): Adjust.
17044 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
17045 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
17046 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
17047 bytes, not registers. Take into account the need for the
17048 SHcompact incoming args trampoline. Adjust all callers.
17049 (sh_expand_prologue): Take stack_regs into account. Call
17050 incoming args trampoline. Keep stack aligned as per SH5 ABI.
17051 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
17052 stack aligned as per SH5 ABI.
17053 (sh_builtin_saveregs): Support SH5 ABI.
17054 (sh_build_va_list, sh_va_start): Likewise.
17055 (initial_elimination_offset): Take alignment into account.
17056 Compute location of PR according to the SH5 stack frame.
17057 (arith_reg_operand): Reject branch-target registers.
17058 (shmedia_6bit_operand): New.
17059 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
17060 (target_reg_operand): Match DImode only. Accept SUBREGs.
17061 (target_operand): New.
17062 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
17063 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
17064 SIBCALL_REGS for SHmedia.
17065 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
17066 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
17067 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
17068 (TARGET_SWITCHES): New SH5 flags.
17069 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
17070 VALID_REGISTER_P to disable unsupported registers.
17071 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
17072 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
17073 (FUNCTION_ARG_PADDING): Define.
17074 (FASTEST_ALIGNMENT): Adjust.
17075 (SH_REGISTER_NAMES_INITIALIZER): New.
17076 (sh_register_names): Declare.
17077 (DEBUG_REGISTER_NAMES): Define.
17078 (REGISTER_NAMES): Define based on sh_register_names.
17079 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
17080 (sh_additional_register_names): Declare.
17081 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
17082 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
17083 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
17084 (REGISTER_NATURAL_MODE): Define.
17085 (FIRST_PSEUDO_REGISTER): Adjust.
17086 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
17087 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
17088 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
17089 (VECTOR_MODE_SUPPORTED_P): Define.
17090 (REG_CLASS_CONTENTS): Adjust.
17091 (SMALL_REGISTER_CLASSES): Adjust.
17092 (REG_ALLOC_ORDER): Adjust.
17093 (INDEX_REG_CLASS): Adjust.
17094 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
17095 (CONST_OK_FOR_LETTER_P): Adjust.
17096 (PREFERRED_RELOAD_CLASS): Adjust.
17097 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
17098 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
17099 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
17100 (FIRST_FP_PARM_REG): Adjust.
17101 (CALL_POPS_ARGS): Define.
17102 (FUNCTION_ARG_REGNO_P): Adjust.
17103 (struct sh_args): New fields.
17104 (GET_SH_ARG_CLASS): Adjust.
17105 (INIT_CUMULATIVE_ARGS): Adjust.
17106 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
17107 (FUNCTION_ARG_ADVANCE): Adjust.
17108 (FUNCTION_ARG): Adjust.
17109 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
17110 (FUNCTION_ARG_CALLEE_COPIES): Define.
17111 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
17112 (STRICT_ARGUMENT_NAMING): Define.
17113 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
17114 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
17115 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
17116 (SETUP_INCOMING_VARARGS): Adjust.
17117 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
17118 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
17119 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
17120 (SUBREG_OK_FOR_INDEX_P): Adjust.
17121 (EXTRA_CONSTRAINT_S): Update.
17122 (EXTRA_CONSTRAINT_T): New.
17123 (EXTRA_CONSTRAINT): Adjust.
17124 (GO_IF_LEGITIMATE_INDEX): Adjust.
17125 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
17126 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
17127 (MOVE_MAX): Adjust.
17128 (MAX_MOVE_MAX): Define.
17130 (CONST_COSTS): Adjust.
17131 (REGISTER_MOVE_COST): Adjust.
17132 (BRANCH_COST): Adjust.
17133 (TEXT_SECTION_ASM_OP): Adjust.
17134 (DBX_REGISTER_NUMBER): Adjust.
17135 (ASM_OUTPUT_DOUBLE_INT): New.
17136 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
17137 (PREDICATE_CODES): Adjust.
17138 (PROMOTE_MODE): Adjust.
17139 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
17140 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
17141 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
17142 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
17143 (DR0_REG, DR2_REG, DR4_REG): Renumber.
17144 (TR0_REG, TR1_REG, TR2_REG): New.
17145 (XD0_REG): Renumber.
17146 (UNSPEC_COMPACT_ARGS): New.
17147 (type): Added pt and ptabs.
17148 (length): Default to 4 on SHmedia. Default pt length to 12
17149 and 20 on SHmedia32 and SHmedia64, respectively.
17150 (pt): New function unit.
17151 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
17152 Add whitespace between operands of SHmedia instructions.
17154 (adddi3_media, addsi3_media): Adjust constraints.
17155 (subsi3) [SHmedia]: Force operand 1 into a register.
17156 (udivsi3_i1_media, udivsi3_i4_media): New.
17157 (udivsi3): Support SHmedia.
17158 (divsi3_i1_media, divsi3_i4_media): New.
17159 (divsi3): Support SHmedia.
17160 (anddi3, iordi3, xordi3): Adjust constraints.
17161 (zero_extendhidi2, zero_extendqidi2): New.
17162 (extendsidi2, extendhidi2, extendqidi2): New.
17163 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
17164 (pop_e, pop_fpul, pop_4): Likewise.
17165 (movsi_media): Support FP and BT registers.
17166 (movsi_media_nofpu): New. Adjust splits to DImode.
17167 (lduw, ldub): Renamed to zero_extend* above.
17168 (movqi_media): Fix typo.
17169 (movdi_media): Support FP and BT registers.
17170 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
17171 (movdi_const_32bit): New.
17172 (shori_media): Require immediate operand. Use `u' for output.
17173 (movdf_media, movsf_media): Simplified.
17174 (movdf_media_nofpu, movsf_media_nofpu): New.
17175 (movdf, movsf): Adjust
17176 (movv2sf, movv2sf, movv16sf): New.
17177 (beq_media, beq_media_i): Adjust constraints. Don't use
17178 scratch BT register.
17179 (bne_media, bne_media_i): Likewise.
17180 (bgt_media, bgt_media_i): Likewise.
17181 (bge_media, bge_media_i): Likewise.
17182 (bgtu_media, bgtu_media_i): Likewise.
17183 (bgeu_media, bgeu_media_i): Likewise.
17184 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
17185 bunordered): Emit jump insn. Force operands to registers when
17187 (jump_media, jump): Simplify.
17188 (call_compact, call_compact_rettramp): New.
17189 (call_value_compact, call_value_compact_rettramp): New.
17190 (call_media, call_value_media): Simplify.
17191 (sibcall_compact, sibcall_media): New.
17192 (call, call_value): Adjust for SHmedia and SHcompact.
17193 (sibcall, sibcall_value, untyped_call): Likewise.
17194 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
17195 (indirect_jump): Adjust for SHmedia.
17196 (casesi_jump_media): New.
17197 (nop): Re-enable for SHmedia.
17198 (call_site): Restrict to SH1.
17199 (casesi): Adjust for SHmedia.
17200 (casesi_shift_media, casesi_load_media): New.
17201 (return): Explicitly use PR register. Call return trampoline
17203 (return_i): Explicitly use PR register.
17204 (shcompact_return_tramp, shcompact_return_tramp_i): New.
17205 (return_media): Adjust.
17206 (shcompact_incoming_args): New.
17207 (epilogue): Adjust.
17208 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17209 (movstrsi): Disable on SH5.
17210 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
17211 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
17212 (subsf3, subsf3_media): Likewise.
17213 (mulsf3, mulsf3_media, mac_media): Likewise.
17214 (divsf3, divsf3_media): Likewise.
17215 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
17216 (floatsisf2, fux_truncsfsi2): Likewise.
17217 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
17219 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
17220 (cmpunsf_media, cmpsf): Likewise.
17221 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
17222 (abssf2, abssf2_media): Likewise.
17223 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
17224 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
17225 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
17226 (floatsidf2, fix_truncdfsi2): Likewise.
17227 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
17229 (cmpeqdf_media, cmpgtdf_media): Likewise.
17230 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
17231 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
17232 (absdf2, absdf2_media): Likewise.
17233 (extendsfdf2, extendsfdf2_media): Likewise.
17234 (truncsfdf2, truncsfdf2_media): Likewise.
17235 * config/sh/sh64.h: New file.
17236 * config/sh/t-sh64: New file.
17237 * config/sh/shmedia.h: New file.
17238 * config/sh/ushmedia.h: New file.
17239 * config/sh/sshmedia.h: New file.
17240 * configure.in: Added sh64-*-elf.
17241 * configure: Rebuilt.
17242 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
17243 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
17244 (reg_class_from_letter): Use `b' for TARGET_REGS.
17245 (print_operand): Support `%M', `%m', `AND' and
17246 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
17247 (andcosts): Adjust for SHmedia.
17248 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
17250 (target_reg_operand): New function.
17251 * config/sh/sh-protos.h (target_reg_operand): Declare.
17252 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
17253 FP registers on SH5.
17254 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
17256 (TARGET_REGISTER_P): New macro.
17257 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
17258 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
17259 (EXTRA_CONSTRAINT_S): New macro.
17260 (EXTRA_CONSTRAINT): Adjust.
17261 (FLOAT_TYPE_SIZE): Define to 32.
17262 (Pmode): DImode on SHmedia.
17263 (CONST_COSTS): Adjust for SHmedia literals.
17264 (PREDICATE_CODES): Added target_reg_operand.
17265 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
17266 * config/sh/sh.md: Remove all attrs from SHmedia insns.
17267 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
17268 (cmpdi): Accept SHmedia.
17269 (movdicc_false, movdicc_true): New insns.
17270 (movdicc): New expand.
17271 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
17273 (addsi3_media): Match `S' constraint.
17274 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
17275 (negdi2): Expand for SHmedia.
17276 (one_cmpldi2): New expand.
17277 (zero_extendsidi2): Change from expand to insn.
17278 (extendsidi2): Add constraints.
17279 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
17280 LD/ST address. Fix SI immediate loading split.
17281 (movhi_media, movqi_media, lduw, ldub): New insns.
17282 (movhi, movqi): Accept SHmedia.
17283 (shori_media, movdi_media): Relax input constraints. Split
17284 symbolic constants.
17285 (movdf_media, movsf_media): New insn. New split to movdi.
17286 (movdf, movsf): Match on SHmedia.
17287 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
17288 bgeu_media): New insns and splits. New insns with `_i' suffix.
17289 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
17290 (bunordered): New expand.
17291 (jump_compact): Renamed from `jump'.
17292 (jump_media): New insn.
17293 (jump): New expand.
17294 (call_media, call_value_media): New insns.
17295 (call, call_value): Adjust.
17296 (indirect_jump_compact): Renamed from `indirect_jump'.
17297 (indirect_jump_media): New insn.
17298 (indirect_jump): New expand.
17299 (untyped_call, return): Accept SHmedia.
17300 (return_media): New insn.
17301 (prologue, epilogue, blockage): Accept SHmedia.
17302 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17303 (sunordered): New expand.
17304 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
17305 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
17306 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
17307 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
17308 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
17309 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
17310 abssf2_media): New insns.
17311 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
17312 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
17313 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
17314 floatdidf2, floatsidf2_media, fix_truncdfdi2,
17315 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
17316 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
17317 absdf2_media): New insns.
17318 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
17319 (extendsfdf2_media, truncdfsf2_media): New insns.
17320 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
17321 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
17322 * config/sh/sh.h (CONST_OK_FOR_J): Document.
17323 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
17324 * config/sh/sh.md (adddi3): New expand.
17325 (adddi3_media, adddi3z_media): New insns.
17326 (adddi3_compact): Renamed from adddi3.
17327 (addsi3_media): Use add.l r63 to add constant zero.
17328 (subdi3): New expand.
17329 (subdi3_media): New insn.
17330 (subdi3_compact): Renamed from subdi3.
17331 (mulsidi3): New expand.
17332 (mulsidi3_media): New insn.
17333 (mulsidi3_compact): Renamed from mulsidi3.
17334 (umulsidi3): New expand.
17335 (umulsidi3_media): New insn.
17336 (umulsidi3_compact): Renamed from umulsidi3.
17337 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
17338 (ashlsi3, ashrsi3, lshrsi3): Use them.
17339 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
17340 (ashldi3, ashrdi3, lshrdi3): Use them.
17341 (zero_extendsidi2): New expand.
17342 (extendsidi2): New insn.
17343 (movsi_media): New insn. Split to movdi to load constants.
17344 (movsi): Enable for shmedia.
17345 (movdi_media): New insn. Use shori_media to load wide constants.
17346 (short_media): New insn.
17347 (movdi): Enable for shmedia.
17348 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
17349 * config/sh/sh.h (CPP_SPEC): Added `m5'.
17350 (SUBTARGET_CPP_SPEC): Added `!m5'.
17351 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
17352 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
17353 to all other SH variants.
17354 (TARGET_DEFAULT): Set to SH1_BIT.
17355 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
17356 (BITS_PER_WORD): Raise to 64 on shmedia.
17357 (MAX_BITS_PER_WORD): Change to 64.
17358 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
17359 (INT_TYPE_SIZE): Keep as 32.
17360 (UNITS_PER_WORD): Raise to 8 on shmedia.
17361 (MIN_UNITS_PER_WORD): Keep as 4.
17362 (POINTER_SIZE): Raise to 64 on shmedia.
17363 (CONST_OK_FOR_J): New macro.
17364 (CONST_OK_FOR_LETTER_P): Use it.
17365 (processor_type): Add PROCESSOR_SH5.
17366 * config/sh/sh.md: Conditionalize all expands, insns and
17367 splits to TARGET_SH1.
17369 (addsi3_compact): Renamed from...
17370 (addsi3): Now an expand.
17371 (addsi3_media, subsi3_media): New insns.
17372 (subsi3): Don't negate constants with SHmedia.
17374 * hooks.c: New file.
17375 * hooks.h: New file.
17376 * Makefile.in (HOOKS_H): New.
17377 (TARGET_DEF_H): Added $(HOOKS_H).
17378 (OBJS): Added hooks.o.
17379 (cfgcleanup.o, bb-reorder.o): Added target.h.
17380 (hooks.o): Added dependencies.
17381 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
17382 (TARGET_INITIALIZER): this.
17383 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
17384 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
17385 * bb-reorder.c: Include target.h.
17386 (reorder_basic_blocks): Skip if cannot modify jumps.
17387 * cfgcleanup.c: Include target.h.
17388 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
17390 2002-02-08 Chris Demetriou <cgd@broadcom.com>
17392 * config/mips/mips.md (casesi_internal, casesi_internal_di):
17393 Protect jump delay slot instructions with .set noreorder and
17396 2002-02-08 Chris Demetriou <cgd@broadcom.com>
17398 * config/mips/mips.md (casesi_internal_di): Calculate
17399 the index into the target offset table correctly.
17401 2002-02-08 Richard Henderson <rth@redhat.com>
17403 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
17404 * final.c (output_addr_const): Accept and discard SUBREG.
17405 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
17406 mark them unknown instead.
17407 (simplify_subtraction): Handle RTX_UNKNOWN.
17408 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
17410 2002-02-08 David Edelsohn <edelsohn@gnu.org>
17412 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
17414 2002-02-08 Richard Henderson <rth@redhat.com>
17416 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
17418 2002-02-08 Andreas Jaeger <aj@suse.de>
17420 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
17421 * config/i386/t-linux64: New file.
17423 2002-02-08 Jakub Jelinek <jakub@redhat.com>
17425 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
17426 * c-parse.in (compstmt): Clear last_expr_type.
17428 2002-02-07 Richard Henderson <rth@redhat.com>
17430 * loop.c (strength_reduce): Sink final_value when not
17433 2002-02-07 David O'Brien <obrien@FreeBSD.org>
17435 * config/sparc/freebsd.h: Fix mismatched spec {.
17437 2002-02-07 Richard Henderson <rth@redhat.com>
17439 * cfgrtl.c: Include recog.h and insn-config.h.
17440 (keep_with_call_p): Fix general_operand invocation.
17441 * Makefile.in (cfgrtl.o): Update dependencies.
17443 2002-02-07 Kazu Hirata <kazu@hxi.com>
17445 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
17446 comment. Accept HImode only if TARGET_H8300.
17448 2002-02-07 Eric Christopher <echristo@redhat.com>
17450 * config/mips/crtn.asm: Cleanup #ifdefs.
17452 2002-02-07 Eric Christopher <echristo@redhat.com>
17454 * config/mips/crti.asm: Add changes for mips16. mips16 uses
17455 register 7 as RA instead of $31.
17456 * config/mips/crtn.asm: Ditto.
17457 * config/mips/mips.c (mips_move_2words): Add case for
17458 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
17459 (compute_frame_size): Fix typo.
17460 (save_restore_insns): Ditto. Make documentation about using
17461 register $7 as return register more precise.
17462 (mips_expand_epilogue): Fix comment. Add code to work around not
17463 being able to add to the stack pointer directly.
17464 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
17465 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
17468 2002-02-07 Tom Rix <trix@redhat.com>
17470 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
17471 immediates in ldu and stdu DS opcode field.
17472 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
17473 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
17474 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
17476 2002-02-07 Jeff Sturm <jsturm@one-point.com>
17478 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
17479 offset for stack bias.
17481 2002-02-07 H.J. Lu <hjl@gnu.org>
17483 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
17485 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
17487 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
17489 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
17491 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
17492 * i386.c (x86_order_regs_for_local_alloc): New global function.
17493 * i386.h (REG_ALLOC_ORDER): CLeanup.
17494 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
17496 2002-02-07 Richard Henderson <rth@redhat.com>
17498 PR optimization/2463
17499 * alias.c (find_base_value): Recall base values for fixed hard regs.
17500 * loop.c (loop_regs_update): Don't use single_set on non-insns.
17502 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
17504 * config/mips/mips.md (define_delay) [mips16]: Adjust required
17507 2002-02-06 Richard Henderson <rth@redhat.com>
17510 * stmt.c (resolve_operand_name_1): Take more care with mixed
17511 named and unnamed operands.
17513 2002-02-06 Janis Johnson <janis187@us.ibm.com>
17514 Jan Hubicka <jh@suse.cz>
17516 * loop.c (remove_constant_addition): Avoid clobbering a shared
17519 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
17521 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
17522 * config/s390/t-linux64: New file.
17523 * config/s390/libgcc-glibc.ver: New file.
17525 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
17527 * config/s390/linux64.h: Delete file.
17528 * config/s390/s390x.h: New file.
17529 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
17530 as target header file.
17531 * config/s390/linux.h (TARGET_VERSION): Define depending on
17532 DEFAULT_TARGET_64BIT.
17533 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
17534 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
17535 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
17536 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
17537 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
17538 (EXTRA_SPEC): New define.
17539 * config/s390/s390.h (TARGET_VERSION): Define depending on
17540 DEFAULT_TARGET_64BIT.
17541 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
17543 2002-02-06 Jason Merrill <jason@redhat.com>
17545 * c-decl.c (finish_function): Warn about a non-void function with
17546 no return statement and no abnormal exit.
17547 (current_function_returns_abnormally): New variable.
17548 (start_function): Clear it.
17549 (struct c_language_function): Add returns_abnormally.
17550 (push_c_function_context): Save it.
17551 (pop_c_function_context): Restore it.
17552 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
17553 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
17554 an explicit return type.
17555 * c-tree.h: Declare current_function_returns_abnormally.
17556 (C_FUNCTION_IMPLICIT_INT): New macro.
17557 * c-typeck.c (build_function_call): Set it.
17558 (c_expand_return): Set current_function_returns_value even if the
17559 value is erroneous.
17561 2002-02-06 Jakub Jelinek <jakub@redhat.com>
17564 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
17565 unsafe for reevaluation.
17567 2002-02-06 Jakub Jelinek <jakub@redhat.com>
17570 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
17571 EXPR_STMT, but COMPOUND_STMT, recurse into it.
17573 2002-02-06 Richard Henderson <rth@redhat.com>
17575 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
17576 be a general_operand. Dest for function value must be a pseudo.
17578 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
17580 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
17581 as SYMBOL_REFs from the constant pool.
17583 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
17585 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
17586 passed by invisible reference.
17588 2002-02-05 Richard Henderson <rth@redhat.com>
17590 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
17592 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
17594 Implement using "base addresses" in insn operands as default.
17595 * config/mmix/mmix.c (mmix_conditional_register_usage): if
17596 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
17597 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
17598 used to read the rtx value.
17599 (mmix_target_asm_function_epilogue): Fix spacing.
17600 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
17601 (mmix_legitimate_address): Ditto.
17602 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
17603 should be loaded with a GETA insn. Don't allocate needless extra
17604 char for nul termination and fix misleading comment.
17605 (mmix_print_operand_address): Handle constants if
17606 TARGET_BASE_ADDRESSES.
17607 (mmix_output_register_setting): Use base addressing if
17608 TARGET_BASE_ADDRESSES and the number of insns is 3.
17609 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
17610 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
17611 to use R as constraint, add LDA to match s.
17612 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
17613 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
17614 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
17615 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
17616 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
17617 order with other fixed registers.
17618 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
17619 other parameter/call-clobbered registers.
17620 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
17621 -mbase-addresses, -mno-base-addresses.
17622 (MMIX Options): Ditto.
17624 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
17626 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
17628 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
17630 * config/rs6000/altivec.h: Change elem to _S_elem.
17632 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
17634 * config/netbsd.h (WCHAR_TYPE): Define.
17635 (WCHAR_TYPE_SIZE): Ditto.
17636 (WINT_TYPE): Ditto.
17637 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
17638 (WCHAR_UNSIGNED): Ditto.
17639 (WCHAR_TYPE_SIZE): Ditto.
17640 (WINT_TYPE): Ditto.
17641 * config/arm/netbsd.h: Likewise.
17642 * config/i386/netbsd-elf.h: Likewise.
17643 * config/i386/netbsd.h: Likewise.
17644 * config/m68k/netbsd-elf.h: Likewise.
17645 * config/m68k/netbsd.h: Likewise.
17646 * config/ns32k/netbsd.h: Likewise.
17647 * config/sparc/netbsd.h: Likewise.
17648 * config/vax/netbsd.: Likewise.
17650 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
17652 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
17653 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
17654 (TARGET_INITIALIZER): this.
17655 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
17656 (BITFIELD_NBYTES_LIMITED): Markup fix.
17657 * tree.h (default_ms_bitfield_layout_p): Declare.
17658 (record_layout_info): Added prev_field.
17659 * tree.c (default_ms_bitfield_layout_p): New fn.
17660 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
17661 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
17662 * stor-layout.c: Include target.h.
17663 (start_record_layout): Initialize prev_field.
17664 (place_field): Handle MS bit-field layout, and disregard
17665 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
17666 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
17667 * Makefile.in (stor-layout.o): Adjust dependencies.
17669 2002-02-05 Jason Merrill <jason@redhat.com>
17671 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
17673 2002-02-05 Andreas Jaeger <aj@suse.de>
17675 * crtstuff.c: Fix comments.
17677 2002-02-05 Richard Henderson <rth@redhat.com>
17680 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
17681 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
17684 * config/mips/mips.c (function_arg): Handle TImode.
17685 (function_arg_advance): Likewise.
17687 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
17689 * config/rs6000/altivec.h (vec_step_help): Rename to
17692 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
17694 * config/rs6000/altivec.h: Fix typos.
17696 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
17698 * config/arm/netbsd.h: Correct a comment.
17700 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
17702 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
17703 building void typed builtins.
17705 * config/rs6000/altivec.h (vec_ld*): Fix typos.
17706 (vec_step): Implement for C++.
17708 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17710 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
17712 2002-02-04 Richard Henderson <rth@redhat.com>
17714 * combine.c (nonzero_bits): Re-introduce special case for
17715 sp/fp/ap wrt REGNO_POINTER_ALIGN.
17717 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
17719 * doc/extend.texi: Warn about unsupported usage of altivec
17722 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
17723 (altivec_predicate_*): New.
17725 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
17726 Add C++ version of vec_*() functions.
17728 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
17729 (bdesc_2arg): Remove altivec predicates.
17730 (altivec_expand_builtin): Handle predicates.
17731 (altivec_init_builtins): Handle predicates.
17732 (altivec_expand_predicate_builtin): New.
17734 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17736 * pa.c (DO_FRAME_NOTES): Move forward.
17737 (store_reg): Revise handling of frame notes.
17738 (load_reg): Likewise.
17739 (set_reg_plus_d): Likewise.
17740 (hppa_expand_prologue): Likewise.
17741 (hppa_expand_epilogue): Likewise.
17743 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17745 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
17747 2002-02-04 Jakub Jelinek <jakub@redhat.com>
17749 PR c/4475, c++/3780:
17750 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
17751 * c-common.h (SWITCH_TYPE): Define.
17752 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
17753 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
17754 Rename spareness variable to sparseness.
17755 (expand_end_case_type): Renamed from expand_end_case, use orig_type
17756 if non-NULL instead of TREE_TYPE (orig_index).
17757 * tree.h (expand_end_case_type): Renamed from expand_end_case.
17758 (expand_end_case): Define using expand_end_case_type.
17759 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
17760 to expand_end_case_type.
17761 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
17763 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17765 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
17766 (BIGGEST_ALIGNMENT): Change to 128.
17768 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17770 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
17772 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17774 * pa.md (call_internal_reg_64bit): Remove unused variable.
17776 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
17778 * config/arm/arm.h (machine_function): Add uses_anonymous_args
17780 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
17781 * config/arm/arm.c (current_function_anonymous_args): Delete,
17782 replace uses with cfun->machine->uses_anonymous_args.
17783 (arm_reorg): Do not reset uses_anonymous_args.
17785 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
17786 any geenral register.
17788 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
17790 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
17793 2002-02-04 Richard Henderson <rth@redhat.com>
17795 * combine.c (force_to_mode): Remove STACK_BIAS code.
17796 (nonzero_bits): Likewise. Replace sp/fp special case with
17797 REGNO_POINTER_ALIGN.
17799 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
17800 (HARD_FRAME_POINTER_REGNUM): New.
17801 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
17802 (FIXED_REGS, CALL_USED_REGS): Update.
17803 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
17804 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
17805 (HARD_REGNO_NREGS): Update for SFP.
17806 (STACK_POINTER_OFFSET): Include bias here ...
17807 (FIRST_PARM_OFFSET): ... not here.
17808 (STACK_BIAS): Remove.
17809 (INIT_EXPANDERS): New.
17810 (STARTING_FRAME_OFFSET): Do not include bias.
17811 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
17812 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
17813 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
17814 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
17815 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
17816 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
17817 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
17818 (MUST_SAVE_REGISTER): Likewise.
17819 (sparc_flat_function_prologue): Likewise.
17820 (sparc_flat_function_epilogue): Likewise.
17821 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
17822 (sparc_init_modes): SFP is GENERAL_REGS.
17823 (sparc_builtin_saveregs): SFP does not have bias applied.
17825 2002-02-04 Richard Henderson <rth@redhat.com>
17827 * config/alpha/alpha.c (current_function_is_thunk): Don't check
17828 current_function_is_thunk.
17829 (alpha_sa_mask): Distinguish between current_function_is_thunk
17830 called from ASM_OUTPUT_MI_THUNK and not.
17831 (alpha_does_function_need_gp): Thunks always need gp.
17832 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
17833 (alpha_output_mi_thunk_osf): New.
17834 * config/alpha/alpha-protos.h: Update.
17835 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
17837 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
17839 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
17840 function types, not when they're taken away.
17842 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
17844 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
17845 CODE_LABEL and jump table when replacing a table jump with a
17848 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
17850 * config/s390/s390-protos.h (legitimize_la_operand,
17851 s390_secondary_input_reload_class, s390_plus_operand,
17852 s390_expand_plus_operand): Add prototypes.
17854 config/s390/s390.c (s390_secondary_input_reload_class,
17855 s390_plus_operand, s390_expand_plus_operand): New functions.
17857 (struct s390_address): New member 'pointer'.
17858 (s390_decompose_address): Compute it.
17859 (legitimate_la_operand_p): Use it.
17860 (legitimize_la_operand): New function.
17861 (movti, movdi, movdf splitters): Call it.
17863 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
17864 (PREDICATE_CODES): Add s390_plus_operand.
17866 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
17867 (la_ccclobber): Allow GENERAL_REGS as output operand.
17869 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
17870 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
17871 (*la_64, *la_31, reload_indi, reload_insi): ... these.
17873 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
17875 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
17876 register names for regular asm () construct.
17878 2002-02-04 Jakub Jelinek <jakub@redhat.com>
17880 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
17883 2002-02-04 Jakub Jelinek <jakub@redhat.com>
17885 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
17888 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
17890 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
17891 constant pool to be identical by string address and index.
17893 2002-02-04 Anthony Green <green@redhat.com>
17895 * output.h (SECTION_OVERRIDE): Define.
17896 * varasm.c (named_section): Obey SECTION_OVERRIDE.
17898 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
17900 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
17901 by existing arm*-*-netbsd* (a.out) target.
17902 (ns32k-*-netbsdelf*): Likewise.
17903 (sparc-*-netbsdelf*): Likewise.
17904 (vax-*-netbsdelf*): Likewise.
17906 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
17908 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
17909 headers and libobjc headers.
17911 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
17913 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
17914 (_mingw.h): Remove duplicate include.
17916 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
17918 * config.gcc: Set cpu_type to m68k for 68010, as well.
17919 (m68010-*-netbsdelf*): New...
17920 (m68k*-*-netbsdelf*): ...targets.
17921 * config/m68k/netbsd-elf.h: New file.
17923 2002-02-02 Kazu Hirata <kazu@hxi.com>
17925 * config/h8300/h8300.c (hand_list): Move inside function_arg.
17927 2002-02-02 Kazu Hirata <kazu@hxi.com>
17929 * config/h8300/h8300.c (h8_push_ops): Move inside
17931 (h8_pop_ops): Likewise.
17932 (h8_move_ops): Likewise.
17934 2002-02-02 Kazu Hirata <kazu@hxi.com>
17936 * config/h8300/h8300.c (os_task): Make it static.
17937 (monitor): Likewise.
17938 (pragma_saveall): Likewise.
17940 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
17942 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
17943 constant is a valid sign-extension for Pmode.
17945 2002-02-02 Kazu Hirata <kazu@hxi.com>
17947 * config/h8300/h8300.c: Fix formatting.
17949 2002-02-02 Kazu Hirata <kazu@hxi.com>
17951 * config/h8300/h8300.md: Fix formatting.
17953 2002-02-02 Kazu Hirata <kazu@hxi.com>
17955 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
17956 predicates of operands[1]. Split the patterns for each
17959 2002-02-02 Kazu Hirata <kazu@hxi.com>
17961 * config/h8300/h8300.md (xor patterns): Tighten the predicates
17962 of operands[1] to register_operand.
17964 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
17966 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
17967 * cpphash.c (_cpp_init_hashtable): Similarly.
17968 * cppinit.c (cpp_create_reader): Default the signed_char flag.
17969 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
17970 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
17971 (cpp_handle_option): Handle the new options.
17972 * cpplex.c (cpp_interpret_charconst): Use new flag.
17973 * cpplib.h (struct cpp_options): New member signed_char.
17974 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
17975 (cpp_options): Handle -fsigned-char and -funsigned-char.
17976 (static_specs): Remove signed_char_spec.
17977 (do_spec1): Don't handle %c.
17978 * system.h: Poison SIGNED_CHAR_SPEC.
17979 * tradcif.y (yylex): Use flag_signed_char.
17980 * tradcpp.h (flag_signed_char): New.
17981 * tradcpp.c (flag_signed_char): New.
17982 (main): Handle new command-line options.
17983 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
17985 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
17986 * avr/avr.h: Remove old comments.
17987 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
17988 (CC1_SPEC): Pass -fsigned-char if -mic*.
17989 (SIGNED_CHAR_SPEC): Remove.
17991 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
17993 2002-02-01 Eric Christopher <echristo@redhat.com>
17995 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
17996 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
17997 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
17998 (ASM_OUTPUT_REG_POP): Ditto.
18000 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
18002 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
18005 2002-02-02 Jakub Jelinek <jakub@redhat.com>
18007 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
18009 2002-02-02 Jakub Jelinek <jakub@redhat.com>
18012 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
18015 2002-02-01 Janis Johnson <janis187@us.ibm.com>
18017 * cfganal.c: Include tm_p.h.
18018 (keep_with_call_p): Fix the test that determines if a register holds
18019 the return value of a call.
18021 2002-02-01 DJ Delorie <dj@redhat.com>
18023 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
18024 we are given conflicting registers, switch to the other one we
18025 had allocated for us.
18026 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
18027 as TImode so we know when the "other" register is available.
18029 2002-02-01 David O'Brien <obrien@FreeBSD.org>
18031 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
18034 2002-02-01 Janis Johnson <janis187@us.ibm.com>
18036 * cfganal.c (keep_with_call_p): New function.
18037 (flow_call_edges_add): Prevent splitting a block between a call and
18038 a single-set instruction that should be kept in the same block.
18040 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
18042 * doc/install.texi (avr): Update outdated URL.
18044 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
18046 * config/stormy16/stormy16.md (pushqi): New.
18050 (movhi): Remove stack operands.
18052 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
18053 nonimmediate_nonstack_operand.
18054 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
18056 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
18059 2002-01-31 Jason Merrill <jason@redhat.com>
18061 * Makefile.in (c-parse.c): Handle .output file.
18062 * objc/Make-lang.in (objc-parse.c): Likewise.
18064 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
18066 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
18067 the -me[lb] option is given. Don't output the default flag
18070 2002-01-31 Zack Weinberg <zack@codesourcery.com>
18072 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
18073 the primary source file; this has not been done yet.
18074 * c-decl.c (c_expand_body): Reset input_filename from
18075 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
18077 2002-01-31 Kazu Hirata <kazu@hxi.com>
18079 * rtlanal.c (subreg_regno_offset): Do not use
18080 SUBREG_REGNO_OFFSET.
18081 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
18082 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
18084 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
18086 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
18087 version rather than GNATS version in --version output.
18089 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
18091 * ifcvt.c (noce_process_if_block): Make a copy of the destination
18092 when copying back from a temporary.
18094 2002-01-30 Richard Henderson <rth@redhat.com>
18096 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
18097 and new_dest are the same.
18099 2002-01-30 Richard Henderson <rth@redhat.com>
18102 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
18103 * rtl.c (note_insn_name): Update.
18104 * emit-rtl.c (remove_unnecessary_notes): Kill it.
18105 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
18106 to perform loop rotation.
18107 (expand_exit_loop_top_cond): New.
18108 * tree.h (expand_exit_loop_top_cond): Declare it.
18109 * c-semantics.c (genrtl_while_stmt): Use it.
18110 (genrtl_for_stmt): Likewise.
18112 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
18114 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
18115 arguments to 64-bit boundaries on 64-bit ABIs.
18117 2002-01-30 Steve Ellcey <sje@cup.hp.com>
18119 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
18121 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
18123 * c-decl.c (grokdeclarator): Handle type being a typedef for an
18126 2002-01-30 David O'Brien <obrien@FreeBSD.org>
18128 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
18129 * config/sparc/sparc_bi.h: Remove file.
18130 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
18132 2002-01-30 Richard Henderson <rth@redhat.com>
18134 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
18136 2002-01-30 Zack Weinberg <zack@codesourcery.com>
18138 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
18140 2002-01-30 Jason Merrill <jason@redhat.com>
18142 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
18143 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
18144 (reg_save): Use DW_CFA_offset_extended_sf instead.
18146 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
18148 2002-01-29 Jakub Jelinek <jakub@redhat.com>
18150 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
18153 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
18155 * rs6000.md ("*call_value_local32"): Remove constraints.
18156 ("*call_value_local64"): Same.
18157 ("*call_value_indirect_nonlocal_aix32"): Same.
18158 ("*call_value_nonlocal_aix32"): Same.
18159 ("*call_value_indirect_nonlocal_aix64"): Same.
18160 ("*call_value_nonlocal_aix64"): Same.
18161 ("*call_value_nonlocal_sysv"): Same.
18163 2002-01-29 Richard Henderson <rth@redhat.com>
18165 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
18167 2002-01-29 Richard Henderson <rth@redhat.com>
18169 * expr.c (force_operand): Ignore flag_pic for detecting pic
18171 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
18172 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
18173 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
18174 instead of open-coded loop.
18175 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
18176 be fixed when in use.
18178 2002-01-29 Richard Henderson <rth@redhat.com>
18180 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
18181 * sched-rgn.c (propagate_deps): Update them.
18182 * sched-deps.c (sched_analyze_insn): Update them. Flush the
18183 clobbers list when either gets too long.
18185 2002-01-29 Jakub Jelinek <jakub@redhat.com>
18187 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
18188 and INDEX_REGS the same as GENERAL_REGS.
18189 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
18191 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
18193 * tree.c (build_nonstandard_integer_type): Correct prototype.
18195 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
18197 * config/s390/s390.md (movstrsico, movstrdix_64,
18198 movstrsix_31): Remove, replace by ...
18199 (movstrdi_short, movstrsi_short, movstrdi_long,
18200 movstrsi_long): ... these. New.
18201 (movstrdi, movstrsi): Adapt.
18203 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
18204 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
18205 Remove unnecessary CC clobber.
18206 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
18207 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
18209 (divmoddi4): Don't partially initialize TImode register.
18211 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
18213 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
18215 2002-01-29 Richard Henderson <rth@redhat.com>
18217 * flow.c (print_rtl_and_abort): Remove.
18218 (print_rtl_and_abort_fcn): Remove.
18219 (verify_local_live_at_start): Use dump_bb instead.
18220 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
18221 (verify_wide_reg_1): Return 2 on mode test failure.
18223 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
18225 PR c/3325, c/3326, c/2511, c/3347
18226 * c-decl.c (enum_decl_context): Remove BITFIELD.
18227 (grokdeclarator): Take bitfield width as an input.
18228 Ensure bitfields are given the correct type. Perform
18229 bitfield width validation with build_bitfield_integer_type
18230 rather than waiting for finish_struct.
18231 (grok_typename, grok_typename_in_parm_context, start_decl,
18232 push_parmdecl, grokfield, start_function): Update calls to
18234 (build_bitfield_integer_type): New function.
18235 (finish_struct): Move bitfield validation to grokdeclarator
18236 and build_bitfield_integer_type.
18237 * tree.c (build_nonstandard_integer_type): New function.
18238 * tree.h (build_nonstandard_integer_type): New prototype.
18240 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
18242 2002-01-29 Jakub Jelinek <jakub@redhat.com>
18245 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
18246 don't ignore unrecognized -W* options.
18247 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
18248 * cpplib.h (cpp_handle_option): Adjust prototype.
18249 * c-decl.c (c_decode_options): Pass 0 as last argument to
18253 * gcc.c (cpp_unique_options): Split from cpp_options.
18254 (cpp_options): Source cpp_unique_options.
18255 (default_compilers): Use cpp_unique_options instead of cpp_options
18256 when used together with cc1_options.
18257 (static_specs): Add cpp_unique_options.
18258 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
18259 when used together with cc1_options.
18261 2002-01-29 Kazu Hirata <kazu@hxi.com>
18263 * config/h8300/h8300-protos.h: Update the prototype of
18265 * config/h8300/h8300.c (output_a_shift): Remove an unused
18266 argument 'insn'. Remove redundant code.
18267 * config/h8300/h8300.md: Adust to the new prototype of
18270 2002-01-29 Kazu Hirata <kazu@hxi.com>
18272 * config/h8300/h8300-protos.h: Update the prototypes of
18273 emit_a_rotate and expand_a_rotate.
18274 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
18275 first argument to 'enum rtx_code'.
18276 (expand_a_rotate): Likewise.
18278 2002-01-28 Kazu Hirata <kazu@hxi.com>
18280 * config/h8300/h8300-protos.h: Update the prototype of
18282 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
18284 * config/h8300/h8300.md: Adjust to the new prototype.
18286 2002-01-28 Kazu Hirata <kazu@hxi.com>
18288 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
18291 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
18293 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
18294 is a fixed register before returning pic_offset_table_rtx.
18295 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
18296 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
18298 2002-01-28 Jason Merrill <jason@redhat.com>
18300 * dwarf2.h: Sync with src version.
18302 2002-01-28 Paul Koning <pkoning@equallogic.com>
18304 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
18305 BT_FN_VOID_PTR_VAR.
18306 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
18307 * doc/extend.texi (__builtin_prefetch): Update documentation:
18308 first argument is now const void ptr.
18310 2002-01-28 Kazu Hirata <kazu@hxi.com>
18312 * config/h8300/h8300-protos.h: Remove an unused prototype.
18314 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
18316 * toplev.c (lang_independent_init): Round up identifier size.
18318 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
18320 * config.gcc: Revert previous change.
18322 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
18324 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
18326 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
18328 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
18329 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
18330 other non-elf netbsd config frags.
18331 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
18332 collect2 will does that.
18333 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
18334 shared-lib frobbing will work.
18336 2002-01-28 Kazu Hirata <kazu@hxi.com>
18338 * config/h8300/h8300.h: Fix formatting.
18339 * config/h8300/h8300.md: Likewise.
18341 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
18343 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
18344 the old, removed AAA_standards fix.
18345 * fixinc/fixincl.x: Rebuilt.
18347 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
18349 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
18350 atexit call in crtbegin, hooked in after call to frame_dummy;
18351 register EH before registering __fini__start.
18353 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
18355 * config/rs6000/altivec.h: Remove spurious semicolons.
18357 2002-01-27 Kazu Hirata <kazu@hxi.com>
18359 * config/h8300/h8300.md: Replace dead bit extraction patterns
18360 with ones that work.
18362 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18364 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
18365 if not STRICT_ALIGNMENT.
18366 * rtl.h (MEM_ALIGN): Likewise.
18368 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
18370 * doc/invoke.texi (-fdump-translation-unit): Revert this
18371 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
18373 2002-01-27 Kazu Hirata <kazu@hxi.com>
18375 * config/h8300/h8300.md (define_constants): New.
18376 (anonymous patterns) Use defined constants appropriately.
18378 2002-01-27 Kazu Hirata <kazu@hxi.com>
18380 * config/h8300/h8300.c (function_arg): Remove redundant code.
18382 2002-01-26 Richard Henderson <rth@redhat.com>
18384 * sched-deps.c (reg_pending_uses_head): New.
18385 (reg_pending_barrier): Rename from reg_pending_sets_all.
18386 (find_insn_list): Don't mark inline.
18387 (find_insn_mem_list): Remove.
18388 (add_dependence_list, add_dependence_list_and_free): New.
18389 (flush_pending_lists): Replace only_write param with separate
18390 for_read and for_write parameters. Update all callers. Use
18391 add_dependence_list_and_free.
18392 (sched_analyze_1): Do not add reg dependencies here; just set
18393 the pending bits. Use add_dependence_list.
18394 (sched_analyze_2): Likewise.
18395 (sched_analyze_insn): Replace schedule_barrier_found with
18396 reg_pending_barrier. Add all dependencies for pending reg
18397 uses, sets, and clobbers.
18398 (sched_analyze): Don't add reg dependencies for calls, just
18399 set pending bits. Use regs_invalidated_by_call. Treat
18400 sched_before_next_call as a normal list, not a fake insn.
18401 (init_deps): No funny init for sched_before_next_call.
18402 (free_deps): Free pending mems lists. Don't zero reg_last.
18403 (init_deps_global): Init reg_pending_uses.
18404 (finish_deps_global): Free it.
18405 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
18406 (find_insn_mem_list): Remove.
18407 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
18408 (propagate_deps): Use them. Zero temp mem lists.
18410 2002-01-26 Richard Henderson <rth@redhat.com>
18412 * Makefile.in (CRTSTUFF_CFLAGS): New.
18413 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
18414 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
18415 crtstuff.c instead of alpha assembly version.
18416 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
18417 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
18418 not FORCE_{INIT,FINI}_SECTION_ALIGN.
18419 (__do_global_dtors_aux): Mark used.
18420 (frame_dummy, __do_global_ctors_aux): Mark used.
18421 (fini_dummy, init_dummy): Remove.
18423 * config/alpha/crtbegin.asm: Remove file.
18424 * config/alpha/crtend.asm: Remove file.
18425 * config/alpha/t-crtbe: Remove file.
18426 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
18427 (LINK_EH_SPEC): New.
18429 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
18430 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
18431 calling constructors.
18432 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
18434 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
18435 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
18436 CRT_END_INIT_DUMMY hack.
18437 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
18438 FORCE_{INIT,FINI}_SECTION_ALIGN.
18440 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
18441 FORCE_{INIT,FINI}_SECTION_ALIGN.
18443 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
18444 invocation sequence.
18445 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
18447 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
18448 (FORCE_CODE_SECTION_ALIGN): New.
18450 2002-01-26 Richard Henderson <rth@redhat.com>
18452 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
18454 2002-01-26 Richard Henderson <rth@redhat.com>
18456 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
18457 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
18459 2002-01-26 Kazu Hirata <kazu@hxi.com>
18461 * config/h8300/h8300.md: Remove bit extraction patterns that
18462 cannot be triggered.
18463 Restrict each bit extraction pattern to a variant on which the
18466 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
18468 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
18470 2002-01-26 Kazu Hirata <kazu@hxi.com>
18472 * config/h8300/h8300.md: Remove bit test patterns that cannot
18474 Restrict each bit test pattern to a variant on which the
18477 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18479 * builtins.c (expand_builtin_strncat): Remove redundant check for
18482 2002-01-25 David O'Brien <obrien@FreeBSD.org>
18484 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
18486 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
18489 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
18491 * dbxout.c (dbxout_init): Use assemble_name rather than just
18492 stripping off the first character.
18493 (dbxout_source_file): Likewise.
18495 2002-01-25 DJ Delorie <dj@redhat.com>
18497 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
18498 using rtx_equal_p, not by comparing pointers.
18500 2002-01-25 Steve Ellcey <sje@cup.hp.com>
18502 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
18503 for PIC_OFFSET_TABLE_REGNUM.
18504 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
18506 2002-01-25 David O'Brien <obrien@FreeBSD.org>
18508 * config.gcc (x86_64-*-freebsd*): New target.
18509 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
18511 (i[34567]86-*-freebsd*): Don't include svr4.h.
18512 * config/i386/freebsd64.h: New file.
18514 2002-01-25 Douglas B Rupp <rupp@gnat.com>
18516 * config/alpha/x-vms (version): Make static.
18518 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
18519 in previous checkin.
18521 * Makefile.in (install-headers-cp): New target.
18522 * config.gcc (alpha-dec-*vms*): Install headers with
18525 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
18527 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
18530 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18532 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
18533 of compare_tree_int.
18534 (expand_builtin_strncat): Likewise.
18535 * c-decl.c (finish_struct): Use tree_low_cst.
18536 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
18537 * tree.c (compare_tree_int): Likewise.
18539 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
18541 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
18542 adjustments even if they are implemented by more than two insns.
18544 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
18546 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
18547 * df.h (struct ref): Kill B.
18548 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
18550 * basic-block.h (PROP_EQUAL_NOTES): New flag.
18551 * flow.c (propagate_one_insn): Use it.
18552 (mark_used_regs): Handle NIL.
18554 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
18556 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
18559 2002-01-25 David Edelsohn <edelsohn@gnu.org>
18561 * rs6000.md (prefetch): Make address V4SI mode so that the address
18562 is restricted to legitimate form for instruction.
18564 2002-01-25 Bob Wilson <bob.wilson@acm.org>
18566 * doc/install.texi (xtensa-*-elf): New target.
18567 (xtensa-*-linux*): New target.
18568 * doc/contrib.texi: Add myself.
18570 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
18572 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
18573 purpose register to hold an SImode (or smaller) value.
18575 2002-01-25 Jakub Jelinek <jakub@redhat.com>
18577 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
18579 * crtstuff.c: Likewise.
18581 2002-01-25 Kazu Hirata <kazu@hxi.com>
18583 * config/h8300/h8300.md (negation patterns): Tighten
18584 predicates to register_operand.
18586 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
18588 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
18591 * builtins.c (expand_builtin_prefetch): Same.
18593 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18595 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
18598 2002-01-24 Kazu Hirata <kazu@hxi.com>
18600 * config/h8300/h8300.c (print_operand): Remove support for
18601 operand character 'A'.
18602 * config/h8300/h8300.md (three anonymous patterns): Replace
18603 operand character 'A' with either 'T' or 'S'.
18605 2002-01-24 Kazu Hirata <kazu@hxi.com>
18607 * config/h8300/h8300.c (print_operand): Remove support for
18608 operand character 'U'.
18610 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
18612 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
18614 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
18616 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
18617 values to be assigned to the stack pointer.
18619 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
18621 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
18622 to const_double needs to be done right for big-endian systems.
18624 2002-01-24 Jason Merrill <jason@redhat.com>
18627 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
18628 to can_throw_internal.
18630 2002-01-23 Richard Henderson <rth@redhat.com>
18632 * fold-const.c (fold): Change UINT_MAX test to check vs precision
18633 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
18635 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18637 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
18638 (symGOT2reg): Use them, then set as GOT value as unchanging.
18639 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
18640 as a temporary, if possible.
18641 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
18642 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
18644 2002-01-23 Kazu Hirata <kazu@hxi.com>
18646 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
18647 accept to accept 0x80 as operands[2].
18649 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18651 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
18653 2002-01-23 Richard Henderson <rth@redhat.com>
18655 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
18657 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
18659 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
18660 (parmlist_or_identifiers_1): Verify that only a parmlist follows
18663 2002-01-23 Richard Henderson <rth@redhat.com>
18665 * expr.c (move_by_pieces_1): Extend size before negation.
18667 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
18668 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
18669 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
18670 * config/m68k/t-m68kelf: Likewise.
18672 2002-01-23 Bob Wilson <bob.wilson@acm.org>
18674 * config/xtensa/elf.h: New file.
18675 * config/xtensa/lib1funcs.asm: New file.
18676 * config/xtensa/lib2funcs.S: New file.
18677 * config/xtensa/linux.h: New file.
18678 * config/xtensa/t-xtensa: New file.
18679 * config/xtensa/xtensa-config.h: New file.
18680 * config/xtensa/xtensa-protos.h: New file.
18681 * config/xtensa/xtensa.c: New file.
18682 * config/xtensa/xtensa.h: New file.
18683 * config/xtensa/xtensa.md: New file.
18684 * config.gcc (xtensa-*-elf*): New target.
18685 (xtensa-*-linux*): New target.
18686 * cse.c (canon_hash): Compare rtx pointers instead of register
18687 numbers. This is required for the Xtensa port.
18688 * integrate.c (copy_insn_list): Handle case where the static
18689 chain is in memory and the memory address has to be copied to
18691 * doc/invoke.texi (Option Summary): Add Xtensa options.
18692 (Xtensa Options): New node.
18693 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
18695 2002-01-23 Zack Weinberg <zack@codesourcery.com>
18697 * diagnostic.c (internal_error): Do ICE suppression only
18698 when ENABLE_CHECKING is not defined.
18700 * c-typeck.c (require_complete_type): Return error_mark_node
18701 if type is error_mark_node.
18703 2002-01-23 Janis Johnson <janis187@us.ibm.com>
18705 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
18706 -Os and issue a warning.
18708 2002-01-23 Zack Weinberg <zack@codesourcery.com>
18710 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
18711 current (lack of) need for host configuration by hand.
18713 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
18714 references. Documentation of some target macros moved from
18715 hostconfig.texi to tm.texi.
18717 2002-01-23 Will Cohen <wcohen@redhat.com>
18719 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
18722 2002-01-23 Kazu Hirata <kazu@hxi.com>
18724 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
18727 2002-01-23 Jason Merrill <jason@redhat.com>
18729 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
18731 * function.c (assign_parms): Don't put args of inline functions
18732 into registers when not optimizing.
18734 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
18736 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
18737 (prologue_use): New pattern.
18738 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
18739 preference to gen_rtx_USE.
18740 (thumb_expand_prologue): Use gen_prologue_use in preference to
18742 (thumb_expand_epilogue): Use gen_prologue_use in preference to
18745 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
18747 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
18749 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
18752 * doc/extend.texi: Correct documentation of __alignof__.
18754 2002-01-22 Zack Weinberg <zack@codesourcery.com>
18756 * params.h: Rename arguments of DEFPARAM so that it will be
18757 recognized as a translation keyword.
18759 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
18761 * extend.texi: Document altivec functions.
18762 Fix N-bit adjectives in X86 builtin documentation.
18764 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
18766 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
18767 auto_inc_dec values.
18769 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
18771 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
18773 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
18775 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
18777 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
18779 2002-01-22 Richard Henderson <rth@redhat.com>
18781 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
18782 copy_insn not copy_rtx.
18784 2002-01-23 Alan Modra <amodra@bigpond.net.au>
18786 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
18787 "nonzero" as that might add "1" bits. Ensure "constop" is
18788 properly sign extened.
18789 (force_to_mode): Tweak for sign extended constop.
18791 2002-01-22 Richard Henderson <rth@redhat.com>
18793 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
18794 for_each_rtx instead of assuming we're already looking at the MEM.
18795 (split_small_symbolic_mem_operand): Likewise.
18796 * config/alpha/alpha.h (PREDICATE_CODES): Update.
18797 * config/alpha/alpha.md (small symbolic memory splitters): Update.
18799 2002-01-22 Richard Henderson <rth@redhat.com>
18801 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
18802 sequence number for the literal.
18803 (divmoddi_internal_er): Likewise.
18805 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
18808 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
18809 in LIBICONV variable.
18810 * configure: Regenerated.
18812 2002-01-22 Krister Walfridsson <cato@df.lth.se>
18814 * dependence.c (build_def_use): Remove array_idx.
18816 * dwarfout.c (last_filename): Remove.
18817 (output_compile_unit_die): Remove last_filename.
18819 2002-01-22 Roger Sayle <roger@eyesopen.com>
18820 Richard Henderson <rth@redhat.com>
18823 * fold-const.c (fold): Optimize unsigned comparisons against
18824 UINT_MAX (and similar unsigned constants).
18826 2002-01-22 Janis Johnson <janis187@us.ibm.com>
18828 * Makefile.in (loop.o): Depend on OPTABS_H.
18829 * loop.c (emit_prefetch_instructions): Check the prefetch operand
18830 against the predicate.
18833 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
18834 for the address operand.
18836 2002-01-22 Richard Henderson <rth@redhat.com>
18838 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
18840 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
18843 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
18844 preprocessor flags.
18846 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
18848 * config.gcc (x86_64-*-netbsd*): New target.
18849 * config/i386/netbsd64.h: New file.
18851 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
18853 * regrename.c (kill_value): Fix typo.
18855 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
18857 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
18859 * config/rs6000/rs6000.h: Same.
18861 * function.c (instantiate_virtual_regs): Remove
18862 STARTING_FRAME_PHASE.
18863 (assign_stack_local_1): Same.
18864 Calculate frame phase.
18866 2002-01-22 Nick Clifton <nickc@redhat.com>
18868 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
18869 variable declaration to outer scope in order to simplify
18871 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
18872 arm_hard_regno_mode_ok.
18873 * config/arm/arm-protos.h: Add a prototype for
18874 arm_hard_regno_mode_ok.
18875 * config/arm/arm.c (soft_df_operand): Remove now redundant
18876 check for DImode values using IP_REGNUM.
18877 (nonimmediate_soft_df_operand): Remove now redundant check for
18878 DImode values using IP_REGNUM.
18879 (arm_hard_regno_mode_ok): New function. New check: make sure
18880 that DImode values are not stored in IP_REGNUM.
18882 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
18884 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
18886 2002-01-22 Jason Merrill <jason@redhat.com>
18888 * c-semantics.c (genrtl_compound_stmt): Only check nesting
18889 consistency if this COMPOUND_STMT is scoped.
18891 2002-01-22 Kazu Hirata <kazu@hxi.com>
18893 * predict.c: Fix formatting.
18894 * print-tree.c: Likewise.
18895 * protoize.c: Likewise.
18896 * real.h: Likewise.
18898 * sbitmap.h: Likewise.
18899 * scan.c: Likewise.
18900 * sched-deps.c: Likewise.
18901 * sched-vis.c: Likewise.
18902 * sdbout.c: Likewise.
18903 * sibcall.c: Likewise.
18905 * ssa-ccp.c: Likewise.
18906 * ssa-dce.c: Likewise.
18907 * stmt.c: Likewise.
18908 * stor-layout.c: Likewise.
18909 * system.h: Likewise.
18911 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18913 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
18914 if fits in bounds of base type.
18916 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
18917 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
18918 (add_bound_info, default): If can't find a context, make a
18920 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
18922 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
18924 * c-typeck.c (parser_build_binary_op): If result from
18925 build_binary_op is ERROR_MARK just return error_mark_node without
18926 further processing.
18928 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
18930 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
18931 Split a.out-specific bits into...
18932 * config/netbsd-aout.h: ...this.
18933 * config/netbsd-elf.h: New file.
18934 * config/alpha/netbsd-elf.h: Remove.
18935 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
18936 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
18937 (STARTFILE_SPEC): Remove redundant definition.
18938 (ENDFILE_SPEC): Likewise.
18939 (LINK_SPEC): Likewise.
18940 (CPP_SPEC): Likewise.
18941 (ASM_SPEC): Likewise.
18942 (LIB_SPEC): Likewise.
18943 (SWITCH_TAKES_ARG): Likewise.
18944 (TARGET_MEM_FUNCTIONS): Likewise.
18945 (CPP_PREDEFINES): Redefine.
18946 (ASM_FINAL_SPEC): Remove redefinition.
18947 (ASM_COMMENT_START): Redefine.
18948 (FUNCTION_PROFILER): Define.
18949 (TARGET_VERSION): Redefine.
18950 Comment and formatting cleanup.
18951 * config/i386/netbsd.h: Include <netbsd-aout.h>.
18952 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
18953 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
18954 big- or little-endian.
18955 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
18956 * config.gcc (*-*-netbsd*): Add definitions common to all
18958 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
18959 gnu_ld definitions. Add netbsd-elf.h to and remove
18960 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
18961 tmake_file, and don't lose previous tmake_file contents.
18962 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
18963 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
18964 gnu_ld definitions. Add netbsd-elf.h to tm_file.
18965 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
18966 (mipsel-*-netbsd*): Rename this to...
18967 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
18968 mips/little.h to tm_file for mips*el-*.
18969 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
18970 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
18971 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
18973 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
18975 * pa-protos.h (reg_before_reload_operand): New function prototype.
18976 * pa.c (reg_before_reload_operand): New function implementation.
18977 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
18978 contraints to "*m".
18980 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18982 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
18984 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
18986 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
18987 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
18988 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
18989 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
18990 (ENDFILE_SPEC): Undefine.
18991 (STARTFILE_SPEC): Redefine for PA.
18993 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
18995 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
18997 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
18999 * config.gcc: Add entries to supported PowerPC --with-cpu
19002 2002-01-21 Jakub Jelinek <jakub@redhat.com>
19004 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
19005 true for 64-bit mode only SSE registers in 32-bit mode.
19007 2002-01-21 Kazu Hirata <kazu@hxi.com>
19009 * unwind-dw2.c: Fix formatting.
19010 * unwind-dw2-fde.c: Likewise.
19011 * unwind-dw2-fde.h: Likewise.
19012 * unwind-pe.h: Likewise.
19013 * varasm.c: Likewise.
19014 * varray.h: Likewise.
19016 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
19018 Remove workaround for register stack overwrite bug in mmix.
19019 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
19020 support for TARGET_REG_STACK_FILL_BUG.
19021 * config/mmix/mmix.h: Remove member has_call_without_parameters.
19022 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
19024 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
19025 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
19026 -mno-reg-stack-fill-bug-workaround.
19027 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
19028 machine member has_call_without_parameters.
19029 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
19030 -mreg-stack-fill-bug-workaround and
19031 -mno-reg-stack-fill-bug-workaround.
19032 (MMIX Options): Ditto.
19034 2002-01-21 Kazu Hirata <kazu@hxi.com>
19036 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
19038 Remove redundant code.
19040 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
19042 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
19043 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
19044 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
19045 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
19046 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
19047 out target macro definitions and non-target-specific comments
19048 mostly taken from old versions of the manual.
19050 2002-01-20 Kazu Hirata <kazu@hxi.com>
19052 * config/h8300/h8300.h: Fix comment formatting.
19053 * config/ia64/aix.h: Likewise.
19054 * config/ia64/ia64-protos.h: Likewise.
19055 * config/ia64/ia64.c: Likewise.
19056 * config/ia64/ia64.h: Likewise.
19057 * config/ia64/ia64intrin.h: Likewise.
19058 * config/ia64/linux.h: Likewise.
19059 * config/ia64/unwind-aix.c: Likewise.
19060 * config/ia64/unwind-ia64.c: Likewise.
19062 2002-01-20 Kazu Hirata <kazu@hxi.com>
19064 * config/h8300/h8300.c: Revise comments about shift code.
19066 2002-01-20 Kazu Hirata <kazu@hxi.com>
19068 * config/h8300/h8300.c (function_arg): Update a comment.
19070 2002-01-20 Kazu Hirata <kazu@hxi.com>
19072 * config/h8300/h8300.md: Update the comments at the beginning
19075 2002-01-20 Kazu Hirata <kazu@hxi.com>
19077 * config/i370/i370.c: Fix comment formatting.
19078 * config/i370/i370.h: Likewise.
19079 * config/i370/i370.md: Likewise.
19080 * config/i370/linux.h: Likewise.
19082 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19084 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
19086 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
19087 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
19088 in incomplete case.
19090 2002-01-20 Graham Stott <grahams@redhat.com>
19092 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
19094 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
19096 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
19098 2002-01-19 Tom Rix <trix@redhat.com>
19100 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
19102 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
19104 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
19106 * function.c (assign_stack_local_1): Adjust x_frame_offset with
19107 STARTING_FRAME_PHASE.
19108 (STARTING_FRAME_PHASE): New.
19109 (instantiate_virtual_regs): Check saneness of
19110 STARTING_FRAME_PHASE.
19112 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
19114 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
19116 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
19118 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
19120 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
19121 be used for bootstrapping GCC 3.0.
19123 2002-01-18 Kazu Hirata <kazu@hxi.com>
19125 * config/h8300/h8300.md: Fix an insn length.
19127 2002-01-18 Kazu Hirata <kazu@hxi.com>
19129 * bitmap.h: Fix comment formatting.
19130 * combine.c: Likewise.
19131 * cppfiles.c: Likewise.
19132 * c-pragma.h: Likewise.
19133 * c-typeck.c: Likewise.
19135 * dwarf2out.c: Likewise.
19136 * function.c: Likewise.
19138 * genattrtab.c: Likewise.
19139 * gthr-win32.h: Likewise.
19140 * haifa-sched.c: Likewise.
19141 * predict.c: Likewise.
19142 * rtlanal.c: Likewise.
19144 * unwind-dw2-fde.h: Likewise.
19145 * unwind-pe.h: Likewise.
19146 * vmsdbgout.c: Likewise.
19148 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19150 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
19151 if type_required and passed decl.
19153 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
19155 * config.gcc (cpu_type): Include altivec.h in powerpc
19159 * config/rs6000/altivec.h: New.
19161 2002-01-17 David Edelsohn <edelsohn@gnu.org>
19163 * doc/install.texi (*-ibm-aix*): Update assembler and exception
19164 handling information.
19165 * doc/trouble.texi (Interoperation): Add libstdc++ information
19167 (Misunderstandings): Add template instantiation and static template
19168 member information for AIX.
19170 2002-01-17 Jason Merrill <jason@redhat.com>
19172 * dbxout.c (dbxout_type): Support const and volatile.
19174 * except.c (add_partial_entry): Remove backwards compatibility code.
19175 (end_protect_partials): Likewise.
19177 2002-01-17 Jakub Jelinek <jakub@redhat.com>
19179 * config/ia64/ia64.md (prologue_use): New.
19180 * config/ia64/ia64.c (ia64_expand_prologue): Use
19181 gen_prologue_use instead of gen_rtx_USE.
19182 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
19183 as CODE_FOR_pred_rel_mutex.
19184 (ia64_sched_reorder2): Likewise.
19186 2002-01-16 Eric Christopher <echristo@redhat.com>
19188 * config/mips/r3900.h: Reformat.
19189 (SUBTARGET_CPP_SIZE_SPEC): Remove.
19190 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
19191 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
19192 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
19193 * config/mips/t-elf: Remove mips3 multilib.
19195 2002-01-16 H.J. Lu <hjl@gnu.org>
19197 * config/mips/linux.h: Include "mips/abi64.h".
19199 2002-01-16 H.J. Lu <hjl@gnu.org>
19201 * config/mips/t-linux: New.
19203 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
19205 * config/mips/linux.h: Don't include "gofast.h".
19206 (INIT_SUBTARGET_OPTABS): Removed.
19208 2002-01-16 Kazu Hirata <kazu@hxi.com>
19210 * config/h8300/h8300-protos.h: Replace emit_a_shift with
19212 * config/h8300/h8300.c: Likewise.
19213 * config/h8300/h8300.md: Likewise.
19215 2002-01-16 Kazu Hirata <kazu@hxi.com>
19217 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
19218 spaces after an opcode name.
19219 (pushqi1_h8300hs): Likewise.
19220 (pushhi1_h8300hs): Likewise.
19222 2002-01-16 Kazu Hirata <kazu@hxi.com>
19224 * doc/extend.texi: Replace "option" with "attribute"
19227 2002-01-16 Jakub Jelinek <jakub@redhat.com>
19229 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
19230 (and:DI () (const_int -8)).
19231 (split_small_symbolic_mem_operand): Split
19232 (mem (and:DI () (const_int -8)).
19234 2002-01-16 Jakub Jelinek <jakub@redhat.com>
19237 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
19238 same way as TYPE_IMUL.
19239 (ultrasparc_sched_reorder): Likewise.
19240 * config/sparc/sparc.md (type): Add comment to update
19241 ultrasparc_sched_reorder when making changes.
19243 2002-01-16 Kazu Hirata <kazu@hxi.com>
19245 * doc/invoke.texi: Change the dump file name of block
19246 reordering pass from 28.bbro to 29.bbro.
19247 Mention -dk option.
19249 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
19251 * i386.md (minsf splitter): Fix pasto.
19253 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
19255 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
19256 to frame pointer initialisation instruction.
19257 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
19258 initialisation instruction.
19259 (soft_df_operand): Do not accept the IP register.
19260 (nonimmediate_soft_df_operand): Do not accept the IP register.
19262 2002-01-16 Jakub Jelinek <jakub@redhat.com>
19265 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
19266 MASK_V8 being both set.
19268 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
19270 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
19271 insn for GOT register; add REG_MAYBE_DEAD notes instead.
19272 config/s390/s390.md (call, call_value): Add GOT register to
19273 CALL_INSN_FUNCTION_USAGE where needed.
19274 (call_exp, call_value_exp): New.
19276 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
19278 * config/arm/arm.c: General formatting tidy up.
19280 2002-01-16 Graham Stott <grahams@redhat.com>
19282 * calls.c (try_to_integrate): Use "(size_t)" intermediate
19283 cast and when casting an integer literal to "rtx" pointer.
19284 (expand_call): Likewise.
19285 * flow.c (try_pre_increment): Likewise.
19286 (find_use_as_address): Likewise.
19287 * integrate.c (expand_iline_function): Likewise.
19288 * regmove.c (try_auto_increment): Likewise.
19290 2002-01-16 Graham Stott <grahams@redhat.com>
19292 * sched-rgn.c (passed): Use sbitmap_free.
19293 (header): Likewise.
19295 (in_queue): Likewise.
19296 (in_stack): Likewise.
19298 2002-01-15 Eric Christopher <echristo@redhat.com>
19300 * flow.c (propagate_one_insn): Change to use fatal_insn.
19302 2002-01-15 Kazu Hirata <kazu@hxi.com>
19304 * expmed.c (extract_fixed_bit_field): Remove unused code.
19305 * system.h: Poison SLOW_ZERO_EXTEND.
19306 * doc/tm.texi: Remove.
19307 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
19308 * config/arm/arm.h: Likewise.
19309 * config/avr/avr.h: Likewise.
19310 * config/clipper/clipper.h: Likewise.
19311 * config/convex/convex.h: Likewise.
19312 * config/d30v/d30v.h: Likewise.
19313 * config/dsp16xx/dsp16xx.h: Likewise.
19314 * config/elxsi/elxsi.h: Likewise.
19315 * config/fr30/fr30.h: Likewise.
19316 * config/h8300/h8300.h: Likewise.
19317 * config/i370/i370.h: Likewise.
19318 * config/i386/i386.h: Likewise.
19319 * config/m68k/m68k.h: Likewise.
19320 * config/mips/mips.h: Likewise.
19321 * config/ns32k/ns32k.h: Likewise.
19322 * config/pdp11/pdp11.h: Likewise.
19323 * config/pj/pj.h: Likewise.
19324 * config/s390/s390.h: Likewise.
19325 * config/sh/sh.h: Likewise.
19326 * config/stormy16/stormy16.h: Likewise.
19327 * config/v850/v850.h: Likewise.
19328 * config/vax/vax.h: Likewise.
19329 * config/we32k/we32k.h: Likewise.
19331 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
19333 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
19334 (altivec_lvsl): Change constraint to b.
19335 (altivec_lvsr): Same.
19336 (altivec_lvebx): Same.
19337 (altivec_lvehx): Same.
19338 (altivec_lvewx): Same.
19339 (altivec_lvxl): Same.
19340 (altivec_lvx): Same.
19341 (altivec_stvx): Add parallel.
19342 (altivec_stvxl): Same.
19343 (altivec_stvehx): Same.
19344 (altivec_stvebx): Same.
19345 (altivec_stvebx): Same.
19347 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
19349 * config.gcc: Change altivec.h to altivec-defs.h.
19351 * config/rs6000/altivec.h: Delete.
19353 * config/rs6000/altivec-defs.h: Add.
19355 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
19357 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
19360 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
19361 less than or equal to eight bytes.
19363 * vax.md (andsi3): Remove constraints and change SET destination
19364 operand type to nonimmediate_operand.
19365 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
19366 when it is a CONST_INT.
19368 2002-01-15 Jason Merrill <jason@redhat.com>
19370 * c-common.def (FILE_STMT): New code.
19371 * c-common.c (statement_code_p): It's a statement.
19372 * c-common.h (stmt_tree_s): Add x_last_filename.
19373 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
19374 (last_expr_filename): New macro.
19375 * c-semantics.c (begin_stmt_tree): Initialize it.
19376 (add_stmt): If the filename changed, also insert a
19378 (expand_stmt): Handle seeing one.
19380 2002-01-15 Eric Christopher <echristo@redhat.com>
19382 * flow.c (propagate_one_insn): Add error message and print out
19383 insn for debugging.
19385 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
19387 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
19388 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
19389 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
19390 TRAMPOLINE_ALIGNMENT.
19391 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
19393 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
19394 PCC_BITFIELD_TYPE_MATTERS.
19395 * config/interix.h (STDC_VALUE): Remove. Use
19396 STDC_0_IN_SYSTEM_HEADERS.
19397 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
19398 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
19399 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
19401 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
19403 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
19404 not work on this platform currently.
19406 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
19408 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
19409 readonly_warning in _().
19411 2002-01-15 Douglas B Rupp <rupp@gnat.com>
19413 * gcc.c (delete_if_ordinary): Backout previous change.
19415 2002-01-15 Kazu Hirata <kazu@hxi.com>
19417 * config/h8300/h8300.c (print_operand): Remove support for
19418 unused operand characters.
19420 * read-rtl.c: Fix formatting.
19421 * real.c: Likewise.
19422 * recog.c: Likewise.
19423 * regclass.c: Likewise.
19424 * regmove.c: Likewise.
19425 * reg-stack.c: Likewise.
19426 * reload1.c: Likewise.
19427 * rtlanal.c: Likewise.
19429 2002-01-15 Kazu Hirata <kazu@hxi.com>
19431 * config/i386/i386.c: Fix formatting.
19433 2002-01-15 Jakub Jelinek <jakub@redhat.com>
19435 * c-typeck.c (process_init_element): Don't save_expr
19436 COMPOUND_LITERAL_EXPR if just its initializer will be used.
19438 2002-01-15 David Edelsohn <edelsohn@gnu.org>
19440 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
19441 emit optional traceback table if optimize_size or TARGET_ELF.
19442 * config/rs6000/rs6000.md (prefetch): New.
19444 2002-01-15 Andreas Jaeger <aj@suse.de>
19446 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
19448 2002-01-15 Kazu Hirata <kazu@hxi.com>
19450 * mips-tfile.c: Fix formatting.
19452 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
19454 * unroll.c (final_reg_note_copy): Fix previous commit.
19456 2002-01-14 Kazu Hirata <kazu@hxi.com>
19458 * config/h8300/h8300-protos.h: Remove the prototype for
19460 * config/h8300/h8300.c (eq_operator): Remove.
19462 2002-01-14 Richard Henderson <rth@redhat.com>
19464 * config/i386/i386.md (prefetch): Tidy.
19465 (prefetch_3dnow): Fix locality operand.
19467 2002-01-14 Richard Henderson <rth@redhat.com>
19469 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
19470 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
19472 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
19474 * reload1.c (reload_combine): Pass reg_sum replacement through
19475 copy_rtx in loop performing multiple changes.
19477 2002-01-14 Jakub Jelinek <jakub@redhat.com>
19479 * except.c (remove_unreachable_regions): New.
19480 (free_eh_status): Clear exception_handler_labels.
19481 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
19482 (find_exception_handler_labels): Don't add the same label more than
19484 (remove_exception_handler_label): Don't die if
19485 find_exception_handler_labels hasn't been called for the current
19488 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
19490 * toplev.c (rest_of_compilation): Rebuild jump labels after
19493 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
19495 * doc/extend.texi: Move documentation of X86 built-in functions
19497 * doc/invoke.texi: From here.
19498 * doc/sourcebuild.texi: Document location of documentation for
19499 machine built-in functions.
19501 2002-01-13 Christopher Faylor <cgf@redhat.com>
19503 * cppfiles.c (TEST_THRESHOLD): New macro.
19504 (SHOULD_MMAP): Ditto.
19505 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
19508 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
19510 * unroll.c (final_reg_note_copy): Properly handle
19512 (unroll_loops): Fix LOOP_CONDITION heuristics.
19514 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
19516 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
19517 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
19519 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
19521 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
19524 2002-01-14 Tom Rix <trix@redhat.com>
19526 * config/rs6000/rs6000.md: Fix typo with sradi.
19528 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
19530 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
19531 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
19532 (clrstrdi, clrstrsi): Adapt callers.
19534 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
19536 (movti splitter): Never use register 0 as base register.
19538 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
19540 * combine.c (simplify_shift_const): Always generate new rtx
19541 for shift expression instead of reusing given expression.
19543 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19545 * config/alpha/alpha.c (alpha_expand_mov): Don't call
19546 alpha_legitimize_address unless mode is Pmode.
19548 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
19550 * doc/md.texi (Modifiers): Document the '*' constraint for the
19553 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
19554 * doc/extend.texi (Function Attributes): 'interrupt' is valid
19557 2002-01-13 Richard Henderson <rth@redhat.com>
19559 * reload.c (find_reloads): Use a hard reg destination as reload reg
19560 for an input reload of the source.
19562 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
19564 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
19567 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
19569 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
19570 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
19572 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
19574 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19576 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
19578 2002-01-12 Tom Rix <trix@redhat.com>
19580 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
19583 2002-01-12 Richard Henderson <rth@redhat.com>
19585 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
19587 * doc/invoke.texi: Update Alpha options.
19589 * doc/invoke.texi: Update i386 built-in function lists.
19591 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
19593 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
19594 referencing outside.
19596 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19598 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
19599 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
19600 offsets, and change line folding.
19601 * optabs.c (expand_binop): Remove warnings.
19602 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
19604 2002-01-12 Graham Stott <grahams@redhat.com>
19606 * attribs.c (handle_deprecated_attribute): constify WHAT.
19607 * diagnostic.c (warn_deprecated_use): Add braces, fixes
19608 dangling else warning and constify WHAT.
19609 * except.h (struct function, struct inline_remap): Move
19610 struct tag forward defs before all prototypes.
19611 (duplicate_eh_regions): Whitespace.
19613 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
19615 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
19616 MODE_BASE_REG_CLASS.
19617 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
19619 2002-01-12 Richard Henderson <rth@redhat.com>
19621 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
19622 (ix86_expand_vector_move): New.
19623 (bdesc_2arg): Remove andps, andnps, orps, xorps.
19624 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
19625 Remove old prefetch builtins. Special case the logicals removed above.
19626 (ix86_expand_builtin): Likewise.
19627 (safe_vector_operand): Use V4SFmode, not TImode.
19628 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
19629 (ix86_expand_timode_binop_builtin): New.
19630 * config/i386/i386-protos.h: Update.
19631 * config/i386/i386.h (enum ix86_builtins): Update.
19632 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
19633 Use ix86_expand_vector_move in vector move expanders.
19634 (movti_internal, movti_rex64): Add xorps alternative.
19635 (sse_clrv4sf): Rename and adjust from sse_clrti.
19636 (prefetch): Don't work so hard.
19637 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
19638 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
19639 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
19641 2002-01-11 Richard Henderson <rth@redhat.com>
19643 * config/i386/mmintrin.h: New file.
19644 * config/i386/xmmintrin.h: New file.
19645 * config.gcc (i?86-*-*): Add extra_headers.
19646 * simplify-rtx.c (simplify_unary_operation): Handle saturating
19648 (simplify_binary_operation): Handle saturating arithmetic codes.
19649 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
19650 not the lowpart subreg.
19651 (ix86_expand_builtin): Return a TImode dummy register instead of 0
19653 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
19655 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19657 * conflict.c (conflict_graph_compute): Free regsets when finished.
19658 * ssa.c (compute_coalesced_reg_partition): Likewise.
19660 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19662 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
19663 every where we allocate a register.
19665 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19667 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
19668 * lcm.c (compute_earliest, compute_farthest): Likewise.
19670 2002-01-11 Janis Johnson <janis187@us.ibm.com>
19672 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
19674 2002-01-11 Janis Johnson <janis187@us.ibm.com>
19676 * doc/rtl.texi (Insns): Fix 2 typos.
19678 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
19680 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
19681 options. Use @table @gcctabopt for MMIX options. Add index
19682 entries for MMIX options. Start new paragraph with first
19683 heading of the machine-dependent options.
19685 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
19688 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
19689 * combine.c (force_to_mode): Same.
19690 * reload1.c (clear_reload_reg_in_use): Same.
19692 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
19694 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
19697 2002-01-11 Andreas Jaeger <aj@suse.de>,
19698 Brad Lucier <lucier@math.purdue.edu>
19700 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
19703 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
19705 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
19706 Protect with IN_LIBGCC.
19707 (LINK_EH_SPEC): Add required trailing space.
19709 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
19711 * c-tree.h: Move function declarations so that they are listed
19712 under the filename which contains them.
19713 (check_identifier, finish_decl_top_level,
19714 lookup_name_current_level_global, shadow_record_fields): Remove.
19716 2002-01-11 Andreas Jaeger <aj@suse.de>
19718 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
19721 2002-01-10 Richard Henderson <rth@redhat.com>
19723 * config/alpha/alpha.c (print_operand): Add 'J'.
19724 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
19725 new operand with the sequence number for the lituse. When splitting
19726 the insns, use gen_movdi_er_high_g and generate a sequence number.
19727 (gen_movdi_er_high_g): Print the sequence number if non-zero.
19729 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
19731 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
19732 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
19734 (altivec_expand_builtin): Same.
19735 (altivec_expand_stv_builtin): New.
19737 * config/rs6000/rs6000.h (rs6000_builtins): Same.
19739 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
19740 ("altivec_lvehx"): New.
19741 ("altivec_lvewx"): New.
19742 ("altivec_lvxl"): New.
19743 ("altivec_lvx"): New.
19744 ("altivec_stvx"): New.
19745 ("altivec_stvebx"): New.
19746 ("altivec_stvehx"): New.
19747 ("altivec_stvewx"): New.
19748 ("altivec_stvxl"): New.
19750 2002-01-10 Richard Henderson <rth@redhat.com>
19752 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
19753 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
19754 care not to delete instructions twice.
19756 2002-01-10 Zack Weinberg <zack@codesourcery.com>
19758 * toplev.c: Don't declare environ (it's not used anywhere).
19759 * configure.in: Don't check for declaration of environ.
19760 * config/i386/xm-mingw32.h: Don't #define environ.
19761 * config.in, configure: Regenerate.
19763 2002-01-10 Zack Weinberg <zack@codesourcery.com>
19765 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
19766 * configure: Regenerate.
19768 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
19769 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
19770 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
19772 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
19773 LIMITS_H_TEST here, not in m68k/x-next.
19774 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
19775 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
19777 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
19778 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
19779 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
19781 * config/i386/x-djgpp: Renamed i386/t-djgpp.
19782 * config/m88k/x-dolph: Renamed m88k/t-dolph.
19783 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
19784 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
19785 replacement of quadlib.asm with quadlib.c.
19787 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
19788 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
19789 config/rs6000/xm-beos.h: Delete file.
19791 * config.gcc: Update to match above changes.
19793 2002-01-10 Kazu Hirata <kazu@hxi.com>
19795 * config/h8300/h8300.h: Fix comment typos.
19796 * config/h8300/h8300.md: Likewise.
19797 * config/h8300/lib1funcs.asm: Likewise.
19799 2002-01-10 Dale Johannesen <dalej@apple.com>
19801 PR optimization/5269
19802 * unroll.c (precondition_loop_p): Make *increment be the correct
19803 sign when n_iterations known, to avoid confusing caller.
19805 2002-01-10 Kazu Hirata <kazu@hxi.com>
19807 * doc/extend.texi (deprecated): Fix a typo.
19809 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
19811 * basic-block.h (update_br_prob_note): Declare.
19812 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
19813 (try_forward_edges): Care negative frequencies and update note.
19814 (outgoing_edges_match): Tweek conditional merging heuristics.
19815 (try_crossjump_to_edge): use update_br_prob_note.
19816 * cfglayout.c (fixup_reorder_chain): Likewise.
19817 * cfrtl.c (update_br_prob_note): New.
19818 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
19820 * i386.c (ix86_decompose_address): Return -1 if address contains
19822 (legitimate_address_p): Require ix86_decompose_address to return 1.
19824 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
19825 (cprop_insn): Likewise.
19827 2002-01-10 Kazu Hirata <kazu@hxi.com>
19829 * toplev.c: Fix formatting.
19830 * tree.c: Likewise.
19831 * tree-dump.c: Likewise.
19832 * unroll.c: Likewise.
19833 * unwind-dw2.c: Likewise.
19834 * unwind-dw2-fde.c: Likewise.
19835 * unwind-dw2-fde-glibc.c: Likewise.
19836 * unwind-sjlj.c: Likewise.
19838 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
19840 * doc/invoke.texi: Document PDP-11 options.
19842 2002-01-10 Kazu Hirata <kazu@hxi.com>
19844 * config/h8300/h8300.h: Fix formatting.
19846 2002-01-10 Ira Ruben <ira@apple.com>
19848 Add __attribute__ ((deprecated)).
19849 * extend.texi: Document __attribute__ ((deprecated)).
19850 * invoke.texi: Document -Wno-deprecated-declarations.
19851 * testsuite/g++.dg/other/deprecated.C: New C++ test.
19852 * testsuite/gcc.dg/deprecated.c: New C test.
19853 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
19854 (c_common_attribute_table): Add "deprecated" entry.
19855 (handle_deprecated_attribute): New function.
19856 * c-decl.c (deprecated_states): New enum.
19857 deprecated_state: State of "deprecated" handling.
19858 (start_decl): Set deprecated_state based on attributes.
19859 (grokdeclarator): Test for deprecated uses, propagate attribute.
19860 * c-typeck.c (build_component_ref): Test for deprecated fields.
19861 (build_external_ref): Test for deprecated primaries.
19862 * diagnostic.c (warn_deprecated_use) New function to issue
19863 warnings about __attribute__ ((depricated)) references.
19864 * flags.h (warn_deprecated_decl): Extern declared for
19865 -W[no-]deprecated-declarations option.
19866 * print-tree.c (print_node): Show deprecated flag status.
19867 * toplev.c (warn_deprecated_decl): Defined.
19868 (W_options): Added "deprecated-declaration".
19869 * toplev.h (warn_deprecated_use): Extern declared.
19870 * tree.h (struct tree_common): Define deprecated_flag.
19871 (TREE_DEPRECATED): New macro to access flag.
19872 * cp/call.c (build_call): Test for deprecated calls.
19873 * cp/class.c (add_implicitly_declared_members): Set global
19874 flag to tell grokdeclarator to not issue deprecated warnings.
19875 * cp/cp-tree.h: Add extern for adding_implicit_members.
19876 * cp/decl.c (deprecated_states): New enum.
19877 (start_decl): Set deprecated_state based on attributes.
19878 (grokdeclarator): Test for deprecated uses, propagate attribute.
19879 * cp/lex.c (do_identifier): Test for deprecated primaries.
19880 * cp/typeck.c (build_component_ref): Test for deprecated fields.
19882 2002-01-10 Ira Ruben <ira@apple.com>
19884 Fix to assign attributes to inline member functions.
19885 * cp/decl.c (start_method): Handle attrlist.
19887 2002-01-10 Kazu Hirata <kazu@hxi.com>
19889 * combine.c (expand_field_assignment): Use subreg_lsb().
19891 2002-01-10 David Edelsohn <edelsohn@gnu.org>
19893 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
19894 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
19895 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
19896 Recurse for any operand of AND as long as constant is non-zero.
19898 2002-01-10 Kazu Hirata <kazu@hxi.com>
19900 * config/h8300/h8300.md: Remove constraints from expanders.
19902 2002-01-10 Kazu Hirata <kazu@hxi.com>
19904 * varasm.c: Fix formatting.
19905 * varray.c: Likewise.
19906 * vmsdbgout.c: Likewise.
19907 * xcoffout.c: Likewise.
19909 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
19911 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
19912 update edge probabilities to match.
19914 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
19916 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
19918 * doc/languages.texi, doc/sourcebuild.texi: New files.
19919 * doc/configfiles.texi: Make a subsubsection. Update.
19920 * doc/configterms.texi: Add @node. Remove warning that this isn't
19921 instructions for building GCC.
19922 * doc/makefile.texi: Make a subsection.
19923 * doc/gccint.texi: Update.
19925 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
19927 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
19929 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
19931 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
19933 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
19935 * optabs.c (expand_fix): Look for wider integer modes first.
19937 * i386.md (mov?f): Avoid the fake const double trick for medium
19939 (min?f*/max?f*): Prohibit memory operands for i387 variant.
19940 (fop_df_4): Disable for SSE compilation.
19942 2002-01-10 Graham Stott <grahams@redhat.com>
19944 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
19945 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
19947 2002-01-10 Richard Henderson <rth@redhat.com>
19949 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
19951 2002-01-10 Richard Henderson <rth@redhat.com>
19953 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
19954 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
19956 2002-01-10 Kazu Hirata <kazu@hxi.com>
19958 * combine.c (can_combine_p): Fix a comment typo.
19960 2002-01-09 Zack Weinberg <zack@codesourcery.com>
19962 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
19963 empty list correctly. Change loop index $t to $f for
19964 consistency with rest of Makefile.
19966 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
19968 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
19969 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
19971 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
19972 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
19973 (altivec_init_builtins): Same.
19974 (altivec_expand_unop_builtin): Return NULL_RTX on error.
19975 (altivec_expand_binop_builtin): Same.
19976 (altivec_expand_ternop_builtin): Same.
19979 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
19980 ("altivec_vctuxs"): Fix typo.
19981 ("altivec_vnmsubfp"): Same.
19982 ("altivec_dssall"): New.
19983 ("altivec_mfvscr"): New.
19984 ("altivec_dss"): New.
19985 ("altivec_lvsl"): New.
19986 ("altivec_lvsr"): New.
19987 ("altivec_dstt"): New.
19988 ("altivec_dstst"): New.
19989 ("altivec_dststt"): New.
19990 ("altivec_dst"): New.
19992 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
19993 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
19995 2002-01-09 Richard Henderson <rth@redhat.com>
19997 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
19999 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
20001 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
20003 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
20005 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
20007 2002-01-09 Kazu Hirata <kazu@hxi.com>
20009 * read-rtl.c: Fix formatting.
20010 * real.c: Likewise.
20011 * regclass.c: Likewise.
20012 * regrename.c: Likewise.
20013 * reg-stack.c: Likewise.
20014 * reload1.c: Likewise.
20015 * reload.c: Likewise.
20018 2002-01-09 Kazu Hirata <kazu@hxi.com>
20020 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
20021 to extract items in the expr_list chain.
20023 2002-01-09 Richard Henderson <rth@redhat.com>
20025 * config/vax/vax.c (vax_rtx_cost): Never abort.
20027 * config/vax/vax.h (REAL_ARITHMETIC): Define.
20029 2002-01-09 Jan Hubicka <jh@suse.cz>
20031 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
20033 2002-01-09 Richard Henderson <rth@redhat.com>
20035 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
20036 Unify code from various alternatives.
20038 2002-01-09 Richard Henderson <rth@redhat.com>
20040 * regrename.c (copy_value): Ignore the copy if the source register
20041 is present in the value chain with a narrower mode.
20043 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20045 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
20046 for the c4x target. Also improve layout.
20048 2002-01-09 Richard Henderson <rth@redhat.com>
20050 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
20051 * config/m32r/m32r.md (and ior xor splitters): Swap operands
20052 to match insn patterns.
20054 2002-01-09 Richard Henderson <rth@redhat.com>
20056 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
20057 (copyprop_hardreg_forward_1): Likewise.
20059 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
20061 * pa.md (decrement_and_branch_until_zero): Change predicate for
20062 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
20064 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
20066 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
20067 gets undefined. For Darwin.
20069 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20071 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
20073 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20075 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
20077 2002-01-08 Richard Henderson <rth@redhat.com>
20079 * regrename.c (copy_value): Ignore overlapping copies.
20081 2002-01-08 Richard Henderson <rth@redhat.com>
20083 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
20084 as needed to avoid shared structure.
20086 2002-01-08 Kazu Hirata <kazu@hxi.com>
20088 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
20091 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
20093 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
20094 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
20095 documentation of obsolete macros.
20096 * system.h: Poison these macros.
20097 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
20098 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
20099 config/c4x/c4x.h, config/clipper/clipper.h,
20100 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
20101 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
20102 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
20103 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
20104 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
20105 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
20106 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
20107 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
20108 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
20109 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
20110 config/sparc/sparc.h, config/stormy16/stormy16.h,
20111 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
20112 definitions and commented out definitions of obsolete macros.
20113 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
20114 of MAX_INT_TYPE_SIZE.
20116 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
20118 * config/s390/s390.c (s390_preferred_reload_class): Never
20119 return ADDR_REGS if it isn't a subset of the given class.
20120 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
20121 FP_REGS, but all superclasses as well.
20123 * config/s390/s390.c (s390_function_profiler): Fix thinko.
20125 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
20126 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
20127 must not be a const_int.
20129 2002-01-08 Richard Henderson <rth@redhat.com>
20131 * Makefile.in (toplev.o): Depend on options.h.
20132 (gcc.o): Depend on specs.h.
20134 2002-01-08 Jakub Jelinek <jakub@redhat.com>
20136 * expr.c (store_expr): Convert VOIDmode constants back to target's
20139 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
20141 * doc/invoke.texi: Markup gcc as @command. Refer to
20142 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
20143 of http://gcc.gnu.org/thanks.html.
20145 2002-01-08 Dale Johannesen <dalej@apple.com>
20147 * config/rs6000/rs6000.md: Add missing int register
20148 target case to movdf_low.
20150 2002-01-08 Zack Weinberg <zack@codesourcery.com>
20152 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
20153 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
20154 (cppinit.o): Depend on except.h.
20155 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
20156 s-specs): New rules.
20158 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
20159 Don't create specs.h/options.h/gencheck.h here. Remove
20160 unnecessary variable settings from last argument of AC_OUTPUT.
20161 * config.in, configure: Regenerate.
20162 * intl.c: Hardcode package name as "gcc".
20164 * cppinit.c: Include except.h.
20165 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
20167 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
20168 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
20169 (!)USING_SJLJ_EXCEPTIONS.
20170 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
20172 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
20174 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
20175 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
20176 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
20177 documentation of obsolete macros.
20178 * system.h: Poison these macros.
20179 * config/d30v/d30v.h, config/ns32k/encore.h,
20180 config/stormy16/stormy16.h: Remove definitions and commented out
20181 definitions of obsolete macros.
20183 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
20185 * objc/objc-act.c (handle_class_ref): Mark the declaration of
20186 %sobjc_class_ref_%s as used - to prevent unwanted compiler
20189 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
20191 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
20192 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
20193 to insn adjusting stack/frame pointer.
20194 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
20195 accept operands that cause the insn to be non-splittable.
20197 2002-01-08 Graham Stott <grahams@redhat.com>
20199 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
20200 (C_TYPE_FIELDS_VOLATILE): Likewise.
20201 (C_TYPE_BEING_DEFINED): Likewise.
20202 (C_IS_RESERVED_WORD): Likewise.
20203 (C_TYPE_VARIABLE_SIZE): Likewise.
20204 (C_DECL_VARIABLE_SIZE): Likewise.
20205 (C_MISSING_PROTOTYPE_WARNED): Likewise.
20206 (C_SET_EXP_ORIGINAL_CODE): Likewise.
20207 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
20209 (C_DECL_ANTICIPATED): Likewise.
20210 (c_build_type_variant): Add parenthesis.
20212 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
20214 * gcc.c (option_map): Remove --version.
20215 (process_command): Handle -fversion following the GNU Coding
20216 Standards. Partially addresses PR other/704.
20218 2002-01-08 Graham Stott <grahams@redhat.com>
20220 * combine.c (combine_instructions): Fix typo.
20222 2002-01-08 Graham Stott <grahams@redhat.com>
20224 * debug.h: Use "tree" and "rtx" throughout.
20226 * debug.c: Likewise.
20228 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
20230 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
20231 constant pool, use the pool's version of the symbol instead.
20233 2002-01-07 Richard Henderson <rth@redhat.com>
20235 * regrename.c (find_oldest_value_reg): Ignore the value chain if
20236 the original register was copied in a mode with a fewer number of
20237 hard registers than the desired mode.
20238 (copyprop_hardreg_forward_1): Likewise.
20239 (debug_value_data): Fix loop test.
20240 * toplev.c (parse_options_and_default_flags): Reenable
20241 -fcprop-registers at -O1.
20243 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
20245 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
20246 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
20248 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
20251 * config/rs6000/rs6000.md: Add altivec predicate patterns.
20253 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
20255 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
20256 (pa_output_function_prologue): Output local label at the beginning of
20257 the prologue when profiling.
20258 (hppa_profile_hook): Use the local label rather than the function label.
20259 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
20261 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
20263 * config/rs6000/rs6000.c (print_operand): Remove extra space.
20264 (altivec_expand_unop_builtin): Fix thinko.
20265 (altivec_expand_binop_builtin): Same.
20266 (altivec_expand_ternop_builtin): Same.
20267 (altivec_expand_builtin): Same.
20269 2002-01-07 Richard Henderson <rth@redhat.com>
20271 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
20273 2002-01-07 Jason Merrill <jason@redhat.com>
20275 * unwind-dw2.c (execute_cfa_program): Use < again.
20277 2002-01-07 Jakub Jelinek <jakub@redhat.com>
20279 * predict.c (combine_predictions_for_insn): Avoid division by zero.
20281 2002-01-07 Jakub Jelinek <jakub@redhat.com>
20283 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
20284 Don't allow -1 - x -> ~x simplifications in the first pass.
20286 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
20288 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
20290 (altivec_expand_binop_builtin): Same.
20291 (altivec_expand_unop_builtin): Same.
20292 (print_operand): Fix typo.
20293 (bdesc_1arg): Add vupk* variants.
20295 * rs6000.h (rs6000_builtins): Add vupk* enums.
20297 * rs6000.md: Add altivec_vupk* variants.
20299 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
20301 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
20302 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
20303 and last update dates.
20305 2002-01-07 Janis Johnson <janis187@us.ibm.com>
20307 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
20309 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
20311 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
20312 * config/avr/avr.h (CPP_SPEC): Likewise.
20313 (LINK_SPEC): Likewise.
20314 (CRT_BINUTILS_SPECS): Likewise.
20315 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
20316 * doc/invoke.texi (AVR Options): Document them.
20318 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
20320 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
20323 2002-01-07 Graham Stott <grahams@redhat.com>
20325 * config/i386/i386.h: Update copyright date.
20326 (HALF_PIC_PTR): Add parenthesis.
20327 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
20328 (CONSTANT_ALIGNMENT): Add parenthesis.
20329 (DATA_ALIGNMENT): Likewise.
20330 (LOCAL_ALIGNMENT): Likewise.
20331 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
20332 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
20333 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
20334 (HARD_REGNO_NREGS): Add paranethesis.
20335 (VALID_SSE_REG_MODE): Whitespace.
20336 (VALID_MMX_REG_MODE): Whitespace.
20337 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
20338 (ix86_hard_regno_mode_ok): Add parenthesis.
20339 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
20340 (RETURN_IN_MEMORY): Whitespace.
20341 (N_REG_CLASSES): Add parenthesis.
20342 (INTEGER_CLASS_P): Add parenthesis and wrap.
20343 (FLOAT_CLASS_P): Likewise.
20344 (SSE_CLASS_P): Likewise.
20345 (MMX_CLASS_P): Likewise.
20346 (MAYBE_INTEGER_CLASS_P): Likewise.
20347 (MAYBE_FLOAT_CLASS_P): Likewise.
20348 (MAYBE_SSE_CLASS_P): Likewise.
20349 (MAYBE_MMX_CLASS_P): Likewise.
20350 (Q_CLASS_P): Likewise.
20351 (GENERAL_REGNO_P): Uppercase macro parameter.
20352 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
20353 (FP_REGNO_P): Likewise.
20354 (ANY_FP_REGNO_P): Uppercase macro parameter.
20355 (SSE_REGNO_P): Likewise.
20356 (SSE_REGNO): Likewise.
20357 (SSE_REG_P): Likewise.
20358 (SSE_FLOAT_MODE_P): Likewise.
20359 (MMX_REGNO_P): Likewise.
20360 (MMX_REG_P):Likewise.
20361 (STACK_REG_P): Likewise.
20362 (NON_STACK_REG_P): Likewise.
20363 (STACK_TOP_P): Likewise.
20364 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
20365 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
20366 (SECONDARY_MEMORY_NEEDED): Likewise.
20367 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
20368 (MD_ASM_CLOBBERS): Whitespace and wrap.
20369 (MUST_PASS_IN_STACK): Whitespace and wrap.
20370 (RETURN_POPS_ARGS): Add parenthesis.
20371 (INIT_CUMULATIVE_ARGS): Likewise.
20372 (FUNCTION_ARG): Likewise.
20373 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
20374 (SETUP_INCOMING_VARARGS): Likewise.
20375 (BUILD_VA_LIST_TYPE): Add parenthesis.
20376 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
20378 (EXPAND_BUILTIN_VA_ARG): Likewise.
20379 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
20380 (INITIALIZE_TRAMPOLINE): Add parenthesis.
20381 (INITIAL_ELIMINATION_OFFSET): Likewise.
20382 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
20383 (REGNO_OK_FOR_BASE_P): Likewise.
20384 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
20385 (REGNO_OK_FOR_DIREG_P): Likewise.
20386 (REG_OK_FOR_INDEX_P): Whitespace.
20387 (REG_OK_FOR_BASE_P): Whitespace.
20388 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
20390 (FIND_BASE_TERM): Fix typo.
20391 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
20392 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
20393 (SYMBOLIC_CONST; Whitespace.
20394 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
20395 (ENCODE_SECTION_INFO): Whitespace.
20396 (FINALIZE_PIC): Remove do { ... } while (0).
20397 (PROMOTE_MODE): Wrap in do { ... } while (0).
20398 (CONST_COSTS): Whitespace.
20399 (RTX_COSTS): Add paramethesis, whitespace and wrap.
20400 (REGISTER_MOVE_COST): Add parenthesis.
20401 (MEMORY_MOVE_COST): Likewise.
20402 (EXTRA_CC_MODES): Whitespace.
20403 (SELECT_CC_MODE): Add parenthesis and whitespace.
20404 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
20405 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
20406 (ASM_OUTPUT_LABEL): Add paramethesis.
20407 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
20408 (ASM_OUTPUT_REG_POP): Likewise.
20409 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
20410 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20412 * config/i386/i386.c: Update copyright.
20413 (CHECK_STACK_LIMIT): Add parenthesis.
20414 (AT_BP): Uppercase macro parameter.
20415 (x86_64_int_parameter_registers): Constify.
20416 (x86_64_int_return_registers): Likewise.
20417 (ix86_compare_op0): Use rtx.
20418 (construct_container): Constify INTREG parameter.
20419 (function_arg): Use rtx.
20421 * diagnostic.h: Update copyright date.
20422 (output_buffer_state): Add parenthesis.
20423 (output_buffer_format_args): Likewise.
20425 * combine.c (combine_instructions): Replace XEXP (links, 0)
20428 2002-01-06 H.J. Lu <hjl@gnu.org>
20430 * cfgcleanup.c (thread_jump): Fix 2 typos.
20432 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
20434 * config.gcc: Add support for --enable-altivec.
20436 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
20438 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
20440 2002-01-06 Jakub Jelinek <jakub@redhat.com>
20442 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
20443 __objc_class_name_*.
20445 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
20447 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
20449 2002-01-06 Richard Henderson <rth@redhat.com>
20451 * reorg.c (emit_delay_sequence): Remove death notes, not merely
20452 nop them out. Increment label reference count for REG_LABEL.
20453 (fill_slots_from_thread): Frob label reference count around
20454 delete_related_insns.
20456 2002-01-05 Richard Henderson <rth@redhat.com>
20458 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
20461 2002-01-05 Richard Henderson <rth@redhat.com>
20463 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
20464 * integrate.c (output_inline_function): Likewise.
20465 * toplev.c (rest_of_compilation): Do it here instead. Move call
20466 to remove_unnecessary_notes after emitting abstract instance.
20467 Force an emitted nested function to have its parent emited as well.
20468 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
20470 (rtl_for_decl_location): Do not look at reload data structures
20471 before reload has run.
20473 2002-01-05 Kazu Hirata <kazu@hxi.com>
20475 * cse.c: Fix formatting.
20476 * dwarf2asm.c: Likewise.
20477 * dwarf2out.c: Likewise.
20478 * explow.c: Likewise.
20479 * expmed.c: Likewise.
20480 * function.c: Likewise.
20481 * gcov.c: Likewise.
20482 * gencheck.c: Likewise.
20483 * genrecog.c: Likewise.
20484 * ggc-common.c: Likewise.
20485 * ggc-page.c: Likewise.
20486 * global.c: Likewise.
20488 2002-01-05 Kazu Hirata <kazu@hxi.com>
20490 * combine.c: Fix formatting.
20492 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
20495 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
20497 2002-01-05 David Edelsohn <edelsohn@gnu.org>
20499 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
20500 as 1 for __powerpc64__ as well.
20502 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
20504 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
20507 2002-01-05 Daniel Berlin <dan@dberlin.org>
20509 * lcm.c: Revert change, due to performance regression it causes on
20510 SPEC because it's slightly more conservative (sigh, I hate
20513 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
20515 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
20517 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
20519 * doc/cppinternals.texi: Update.
20521 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
20523 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
20524 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
20526 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
20527 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
20528 kludge for pre-october-14th mmix versions to handle new-found bug
20529 with PUSHJ/PUSHGO and the register stack.
20530 * config/mmix/mmix.h (struct machine_function): Rename member
20531 has_call_value_without_parameters to has_call_without_parameters.
20532 All referers changed.
20533 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
20534 TARGET_MASK_BRANCH_PREDICT): New macros.
20535 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
20536 -mno-reg-stack-fill-bug-workaround.
20537 * config/mmix/mmix.md ("call"): Set struct machine member
20538 has_call_without_parameters.
20540 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
20542 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
20544 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
20546 * cfgcleanup.c: Include tm_p.h
20547 (mark_effect): Fix handling of hard register; fix handling of SET
20549 2002-01-04 Kazu Hirata <kazu@hxi.com>
20551 * config/h8300/h8300.md (anonymous patterns): Check that
20552 operands are registers before using REGNO on them.
20554 2002-01-03 Roland McGrath <roland@frob.com>
20556 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
20558 2002-01-04 Jakub Jelinek <jakub@redhat.com>
20560 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
20561 * c-common.h (genrtl_expr_stmt_value): Likewise.
20562 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
20563 (expand_expr_stmt_value): Add maybe_last argument.
20564 Don't warn about statement with no effect if it is the last statement
20565 in expression statement.
20566 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
20567 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
20568 expand_expr_stmt_value.
20569 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
20570 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
20571 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
20572 as maybe_last to expand_expr_stmt_value.
20574 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
20576 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
20577 be passed in, do not build it.
20578 (c_begin_if_stmt): New function.
20579 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
20580 * c-common.h (c_expand_start_cond): Update prototype.
20581 (c_begin_if_stmt): Prototype new function.
20582 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
20583 * c-parse.in (if_prefix): Use c_begin_if_stmt,
20584 c_begin_while_stmt and c_finish_while_stmt_cond.
20586 2002-01-04 William Cohen <wcohen@redhat.com>
20588 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
20589 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
20590 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
20591 * config/pa/som.h (ASM_FILE_START): Likewise.
20593 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
20595 * lcm.c: Include df.h.
20596 Add available_transfer_function prototype.
20597 (compute_available): Rework to use iterative dataflow framework.
20598 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
20599 with bb_info in df.h
20600 (available_transfer_function): New function.
20602 * Makefile.in (lcm.o): add df.h to dependencies.
20604 2002-01-04 Richard Henderson <rth@redhat.com>
20606 * config/alpha/alpha.c (some_operand): Accept HIGH.
20607 (input_operand): Likewise; accept simple references to globals.
20608 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
20609 (alpha_const_double_ok_for_letter_p): Likewise.
20610 (alpha_extra_constraint): Likewise.
20611 (alpha_preferred_reload_class): Likewise. Do not force
20612 symbolic constants to memory.
20613 (alpha_legitimate_address_p): Accept simple references
20614 to small_symbolic_operand.
20615 (alpha_legitimize_address): New arg scratch. Be prepared to be
20616 called when no_new_pseudos. Emit simple symbolic references.
20617 Split integers into low, high, and rest.
20618 (alpha_expand_mov): Use alpha_legitimize_address.
20619 (some_small_symbolic_mem_operand): New.
20620 (split_small_symbolic_mem_operand): New.
20621 * config/alpha/alpha-protos.h: Update.
20622 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
20623 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
20624 (EXTRA_CONSTRAINT): Likewise.
20625 (PREFERRED_RELOAD_CLASS): Likewise.
20626 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
20627 (PREDICATE_CODES): Update.
20628 * config/alpha/alpha.md: New post-reload splitters to convert
20629 simplfied symbolic operands to the form that references $29.
20630 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
20631 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
20633 2002-01-03 Richard Henderson <rth@redhat.com>
20635 * local-alloc.c (function_invariant_p): Update commentary.
20637 2002-01-04 H.J. Lu <hjl@gnu.org>
20639 * toplev.c (rest_of_compilation): Fix a typo when calling
20642 2002-01-03 Kazu Hirata <kazu@hxi.com>
20644 * c-common.c: Fix formatting.
20645 * diagnostic.c: Likewise.
20646 * doloop.c: Likewise.
20647 * dwarf2out.c: Likewise.
20649 2002-01-03 Kazu Hirata <kazu@hxi.com>
20651 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
20652 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
20654 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
20656 * cpperror.c: Update comments and copyright.
20657 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
20658 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
20660 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
20662 * collect2.c (main): Use strcmp when testing for "-shared".
20664 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
20666 * cppmacro.c: Don't include intl.h. Update comments.
20667 (new_number_token): Allocate enough buffer for 64-bit unsigned
20668 integers; update prototype.
20669 * cppmain.c: Update comments.
20671 2002-01-03 William Cohen <wcohen@redhat.com>
20673 * function.h (struct function): Add profile.
20674 (current_function_profile): New.
20675 doc/extend.texi: Update documentation.
20676 * final.c (final_start_function): Use current_function_profile
20677 instead of profile_flag.
20678 (profile_after_prologue): Likewise.
20679 * function.c (expand_function_start): Likewise.
20680 (expand_function_start): Likewise.
20681 * config/alpha/alpha.c (direct_call_operand):
20682 (alpha_does_function_need_gp): Likewise.
20683 (alpha_expand_prologue): Likewise.
20684 * config/arm/arm.c (arm_expand_prologue): Likewise.
20685 thumb_expand_prologue: Likewise.
20686 * config/d30v/d30v.c (d30v_stack_info): Likewise.
20687 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
20688 (fr30_expand_prologue): Likewise.
20689 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
20690 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
20691 * config/i386/i386.h (FINALIZE_PIC): Likewise.
20692 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
20693 * config/i960/i960.c (i960_output_function_prologue): Likewise.
20694 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
20695 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
20696 (m32r_expand_prologue): Likewise.
20697 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
20698 (m88k_expand_prologue): Likewise.
20699 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
20700 * config/mips/mips.c (compute_frame_size): Likewise.
20701 (mips_expand_prologue): Likewise.
20702 (mips_can_use_return_insn): Likewise.
20703 * config/pa/elf.h (ASM_FILE_START): Likewise.
20704 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
20705 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
20706 * config/pa/som.h (ASM_FILE_START): Likewise.
20707 * config/romp/romp.c (romp_using_r14): Likewise.
20708 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
20709 (rs6000_stack_info): Likewise.
20710 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
20711 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
20712 * config/v850/v850.c (compute_register_save_size): Likewise.
20714 2002-01-03 Jakub Jelinek <jakub@redhat.com>
20716 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
20717 gen_lowpart_common fails, use gen_lowpart_SUBREG.
20719 2002-01-03 Turly O'Connor <turly@apple.com>
20721 * darwin.c (machopic_output_possible_stub_label): Don't generate
20722 stub routines for pseudo-stubs which we've just defined.
20724 2002-01-03 Kazu Hirata <kazu@hxi.com>
20726 * builtins.c: Fix formatting.
20727 * c-typeck.c: Likewise.
20728 * combine.c: Likewise.
20729 * expr.c: Likewise.
20730 * loop.c: Likewise.
20732 2002-01-03 Andreas Schwab <schwab@suse.de>
20734 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
20735 and return true if _cpp_push_next_buffer pushed a new include
20737 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
20738 _cpp_pop_file_buffer did not push a new file.
20739 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
20741 2002-01-02 Eric Christopher <echristo@redhat.com>
20743 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
20744 FIND_REG_INC_NOTE call. Update copyright.
20745 * loop.c (canonicalize_condition): Ditto.
20746 * reorg.c (delete_scheduled_jump): Ditto.
20748 2002-01-03 Kazu Hirata <kazu@hxi.com>
20750 * gcse.c: Fix formatting.
20752 2002-01-03 Graham Stott <grahams@redhat.com>
20754 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
20755 forward defs for struct tags rtx_def, union_tree, rtvec_def
20756 also output corresponding typedefs for rtx, tree, and rtvec.
20758 * system.h: Move forward defs for struct tags rtx_def, union_tree,
20759 rtvec_def along with corresponding typedefs for rtx, tree, and
20760 rtvec to config.h, hconfig.h, tconfig.h.
20762 2002-01-03 Graham Stott <grahams@redhat.com>
20764 * tree.h: Update copyright date.
20765 (IS_EXPR_CODE_CLASS): Add parenthesis.
20766 (TREE_SET_CODE): Add whitespace.
20767 (TREE_CHECK): Add parenthesis.
20768 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
20769 (CST_OR_CONSTRUCTOR_CHECK):
20770 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
20771 (TREE_SYMBOL_REFERENCED): Whitespace.
20772 (INT_CST_LT): Likewise.
20773 (INT_CST_LT_UNSIGNED): Likewise.
20774 (tree_real_cst): Unwrap comment.
20775 (tree_string): Likewise.
20776 (tree_complex): Likewise.
20777 (IDENTIFIER_POINTER): correct cast.
20778 (SAVE_EXPR_CONTEXT): Whitespace.
20779 (EXPR_WFL_FILENAME_NODE): Likewise.
20780 (EXPR_WFL_FILENAME): Remove parenthesis.
20781 (DECL_ORIGIN): Add parenthesis.
20782 (DECL_FROM_INLINE): Use NULL_TREE.
20783 (build_int_2): Whitespace.
20784 (build_type_variant): Add parenthesis.
20786 * gcc/jcf-parse.c: Update copyright date.
20787 (yyparse): Constify resource_filename.
20789 2002-01-03 Graham Stott <grahams@redhat.com>
20791 * rtl.h: Update copyright date.
20792 (RTL_CHECK1): Wrap long line.
20793 (RTL_CHECK2): Likewise.
20794 (RTL_CHECKC1): Wrap long line and whitespace.
20795 (RTL_CHECKC2): Likewise.
20796 (XWINT): Whitespace.
20802 (XBITMAP): Likewise.
20804 (XBBDEF): Likewise.
20806 (X0WINT): Likewise.
20808 (X0UINT): Likewise.
20812 (X0MODE): Likewise.
20813 (X0BITMAP): Likewise.
20814 (X0TREE): Likewise.
20815 (X0BBDEF): Likewise.
20816 (X0ADVFLAGS): Likewise.
20817 (X0CSELIB): Likewise.
20818 (X0MEMATTR): Likewise.
20819 (XCWINT): Likewise.
20821 (XCUINT): Likewise.
20825 (XCMODE): Likewise.
20826 (XCBITMAP): Likewise.
20827 (XCTREE): Likewise.
20828 (XCBBDEF): Likewise.
20829 (XCADVFLAGS): Likewise.
20830 (XCCSELIB): Likewise.
20831 (XC2EXP): Likewise.
20832 (INSN_UID): Likewise.
20833 (PREV_INSN): Likewise.
20834 (PATTERN): Likewise.
20835 (INSN_CODE): Likewise.
20836 (PUT_REG_NOTE_KIND): Likewise.
20837 (CODE_LABEL_NUMBER): Likewise.
20838 (NOTE_SOURCE_FILE): Likewise.
20839 (NOTE_BLOCK): Likewise.
20840 (NOTE_EH_HANDLER): Likewise.
20841 (NOTE_RANGE_INFO): Likewise.
20842 (NOTE_LIVE_INFO): Likewise.
20843 (NOTE_BASIC_BLOCK): Likewise.
20844 (NOTE_EXPECTED_VALUE): Likewise.
20845 (NOTE_LINE_NUMBER): Likewise.
20846 (LABEL_NAME): Likewise.
20847 (LABEL_NUSES): Likewise.
20848 (LABEL_ALTERNATE_NAME): Likewise.
20849 (ADDRESSOF_DECL): Likewise.
20850 (JUMP_LABEL): Likewise.
20851 (LABEL_NEXTREF): Likewise.
20853 (ORIGINAL_REGNO: Likewise.
20854 (HARD_REGISTER_NUM_P): Add parenthesis.
20855 (SUBREG_REG): Whitespace.
20856 (SUBREG_BYTE): Likewise.
20857 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
20858 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
20859 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
20860 (ASM_OPERANDS_INPUT_VEC): Likewise.
20861 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
20862 (ASM_OPERANDS_INPUT): Likewise.
20863 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
20864 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
20865 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
20866 (ASM_OPERANDS_INPUT_MODE): Likewise.
20867 (ASM_OPERANDS_SOURCE_FILE): Likewise.
20868 (ASM_OPERANDS_SOURCE_LINE): Likewise.
20869 (MEM_SET_IN_STRUCT_P): Minor reformat.
20870 (TRAP_CONDITION): Whitespace.
20871 (TRAP_CODE): Likewise.
20872 (COND_EXEC_TEST): Likewise.
20873 (COND_EXEC_CODE): Likewise.
20874 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
20875 (PHI_NODE_P): Add parenthesis.
20876 (plus_constant): Whitespace and add parenthesis.
20878 2002-01-03 Kazu Hirata <kazu@hxi.com>
20880 * config/avr/avr.c: Fix comment typos.
20881 * config/c4x/c4x.md: Likewise.
20882 * config/dsp16xx/dsp16xx.h: Likewise.
20883 * config/dsp16xx/dsp16xx.md: Likewise.
20884 * config/i386/i386.md: Likewise.
20885 * config/ia64/ia64.c: Likewise.
20886 * config/m32r/m32r.h: Likewise.
20887 * config/m68hc11/m68hc11.md: Likewise.
20888 * config/mmix/mmix.c: Likewise.
20889 * config/mn10200/mn10200.c: Likewise.
20890 * config/romp/romp.c: Likewise.
20891 * config/sh/sh.c: Likewise.
20892 * config/stormy16/stormy16.c: Likewise.
20893 * config/stormy16/stormy16.h: Likewise.
20894 * config/stormy16/stormy16.md: Likewise.
20896 2002-01-03 Graham Stott <grahams@redhat.com>
20898 * loop.h: Update copyright date.
20899 (LOOP_MOVABLES): Fix typo.
20900 (LOOP_REGS): Likewise.
20901 (LOOP_IVS): Likewise.
20903 2002-01-03 Graham Stott <grahams@redhat.com>
20905 * cppinit.c: Update copyright date.
20906 Don't include output.h
20907 * Makefile.in: Update copyright date.
20910 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
20913 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
20914 (-pthread) Add to RS/6000 options.
20916 2002-01-02 Kazu Hirata <kazu@hxi.com>
20918 * except.c: Fix comment typos.
20919 * loop.c: Likewise.
20920 * varasm.c: Likewise.
20921 * doc/tm.texi: Fix a typo.
20923 2002-01-02 Jakub Jelinek <jakub@redhat.com>
20925 * c-typeck.c (output_init_element): Allow initializing static storage
20926 duration objects with compound literals.
20928 2002-01-02 Richard Henderson <rth@redhat.com>
20930 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
20933 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20935 * gcc.c (default_compilers): Const-ify.
20936 * mips-tdump.c (stab_names): Likewise.
20937 * mips-tfile.c (map_coff_types, map_coff_storage,
20938 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
20939 pseudo_ops_t, pseudo_ops): Likewise.
20940 * protoize.c (default_include): Likewise
20942 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
20943 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
20944 Add array size in declaration.
20945 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
20946 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
20947 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
20948 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
20949 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
20950 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
20951 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
20952 emtens, make_nan): Const-ify.
20953 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
20954 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
20956 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
20958 * config.gcc (ia64-*-*): Set extra_headers.
20959 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
20960 * config/alpha/t-osf: Remove.
20961 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
20963 2002-01-02 David Edelsohn <edelsohn@gnu.org>
20965 * config/rs6000/t-aix43: Revert previous change.
20967 2002-01-02 Jason Merrill <jason@redhat.com>
20969 * c-decl.c (c_expand_body): Call outlining_inline_function when
20970 emitting an inline function out of line.
20972 2002-01-02 Richard Henderson <rth@redhat.com>
20974 * dwarf2out.c (limbo_die_node): Add created_for member.
20975 (new_die): New argument created_for. Update all callers.
20976 (mark_limbo_die_list): New.
20977 (dwarf2out_init): Register limbo_die_list as a root.
20978 (dwarf2out_finish): Force insert limbo dies into their function
20981 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
20984 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
20986 2002-01-02 Kazu Hirata <kazu@hxi.com>
20988 * config/h8300/fixunssfsi.c: Update copyright.
20991 * config/h8300/h8300.c: Update copyright.
20992 Eliminate warnings.
20994 2002-01-02 Kazu Hirata <kazu@hxi.com>
20996 * config/romp/romp.c: Fix comment formatting.
20997 * config/romp/romp.h: Likewise.
20998 * config/romp/romp.md: Likewise.
20999 * config/s390/s390.c: Likewise.
21000 * config/stormy16/stormy16.c: Likewise.
21001 * config/stormy16/stormy16.h: Likewise.
21003 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
21005 * c-common.h (genrtl_expr_stmt_value): Declare.
21006 * c-semantics.c (genrtl_goto_stmt): Redirect to...
21007 (genrtl_goto_stmt_value): ... this new function. Pass new
21008 argument down to expand_expr_stmt_value, taking
21009 TREE_ADDRESSABLE into account.
21010 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
21011 STMT_EXPR as addressable, i.e., one whose result we want.
21012 * expr.c (expand_expr): Don't save expression statement value
21013 of labeled_blocks or loop_exprs.
21014 * stmt.c (expand_expr_stmt): Redirect to...
21015 (expand_expr_stmt_value): ... this new function. Use new
21016 argument to tell whether to save expression value.
21017 (expand_end_stmt_expr): Reset last_expr_type and
21018 last_expr_value if we don't have either.
21019 * tree-inline.c (declare_return_variable): Mark its use
21020 statement as addressable.
21021 * tree.h: Document new use of TREE_ADDRESSABLE.
21022 (expand_expr_stmt_value): Declare.
21024 2002-01-01 Tom Rix <trix@redhat.com>
21026 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
21027 rs6000_emit_allocate_stack.
21029 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
21031 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
21032 ${srcdir}/ginclude/ to every entry in extra_headers.
21033 * configure: Regenerate.
21034 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
21035 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
21036 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
21037 * ginclude/proto.h: Rename to config/convex/proto.h.
21039 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21041 * attribs.c (handle_vector_size_attribute): Use host_integerp
21042 and tree_int_cst; remove warnings.
21043 * caller-save.c (insert_restore): Add cast to get rid of warning.
21044 (insert_save): Likewise.
21045 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
21046 * regmove.c (find_matches): Add temporary var to kill a warning.
21048 2002-01-01 Douglas B Rupp <rupp@gnat.com>
21050 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
21051 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
21052 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
21053 (vms-dwarf2eh.o): Add Makefile rule.
21054 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
21055 * config/alpha/vms-dwarf2eh.asm: New file.
21057 * gcc.c (delete_if_ordinary): Delete all versions.
21059 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
21061 * config/mmix/mmix.md: Update FIXME to not mention
21063 (MMIX_rJ_REGNUM): New define_constants constant.
21064 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
21065 "*movdicc_real"): Adjust contraints formatting.
21066 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
21067 for branch prediction.
21068 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
21070 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
21071 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
21072 number. Delete related FIXMEs.
21073 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
21074 from number to MMIX_rJ_REGNUM.
21075 (TARGET_MASK_BRANCH_PREDICT): New.
21076 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
21077 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
21078 value. Add -mbranch-predict and -mno-branch-predict.
21079 (TARGET_VERSION): Drop date.
21080 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
21081 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
21082 for finding out global symbols.
21083 (mmix_asm_output_labelref): Revert condition for global symbol.
21084 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
21085 (mmix_print_operand_punct_valid_p): A '+' is valid.
21087 See ChangeLog.6 for earlier changes.