sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the 32-bit ABI libfuncs to NULL.
[gcc.git] / gcc / ChangeLog
1 2002-06-24 David S. Miller <davem@redhat.com>
2
3 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
4 32-bit ABI libfuncs to NULL.
5
6 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
7 strings instead of quoted strings for code blocks.
8
9 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
10 optabs if op1 is const0_rtx.
11
12 2002-06-24 Neil Booth <neil@daikokuya.co.uk>
13
14 * cpptrad.c (scan_out_logical_line): Check recursing only when
15 we know we have a macro invocation in the function-like case.
16 Only call _cpp_handle_directive if we know we have a good
17 directive, or we want to reject a bad directive.
18
19 2002-06-24 Alan Modra <amodra@bigpond.net.au>
20
21 * doloop.c (doloop_valid_p): Correct comment.
22 (doloop_modify_runtime <abs_inc != 1>): Simplify.
23 (doloop_modify_runtime <do-while>): Don't emit code when NE.
24
25 Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
26
27 * config.gcc: Add support for ip2k.
28
29 2002-06-23 Jan Hubicka <jh@suse.cz>
30 Jeff Law <law@redhat.com>
31
32 * function.h (struct emit_status): Clarify potential contents
33 of regno_reg_rtx array.
34 * integrate.c (copy_rtx_and_substitute): Update comments. Make
35 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
36
37 * reg-stack.c (convert_regs_exit): Push the registers to stack in
38 proper order.
39
40 2002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
41
42 PR middle-end/6963
43 * function.c (assign_stack_temp_for_type): Do not return
44 the same MEM rtx for multiple uses of a stack slot.
45
46 2002-06-22 David S. Miller <davem@redhat.com>
47
48 PR target/6841 target/6770 target/6719
49 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
50 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
51 GENERAL_OR_EXTRA_FP_REGS.
52
53 2002-06-22 Neil Booth <neil@daikokuya.co.uk>
54
55 * cpptrad.c (struct fun_macro): Add line number.
56 (scan_out_logical_line): Set it, and use it to report unterminated
57 macro invocations.
58
59 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
60
61 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
62 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
63 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
64 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
65 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
66 REGEXP_ONEOF, check_name): Const-ify.
67
68 2002-06-21 Matt Thomas <matt@3am-software.com>
69
70 * config/vax/vax.c (vax_output_function_prologue): Use
71 REGISTER_PREFIX. Fix some indentation.
72 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
73 (VAX_ISTREAM_SYNC): Define.
74 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
75 i-stream sync to the end.
76 (REGISTER_PREFIX): Define as "".
77 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
78
79 2002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
80
81 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
82 configurations.
83
84 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
85
86 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
87 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
88
89 2002-06-21 Matt Thomas <matt@3am-software.com>
90
91 * config/vax/netbsd.h: Adjust a comment.
92 (TARGET_DEFAULT): Redefine as 0.
93
94 2002-06-21 Richard Henderson <rth@redhat.com>
95
96 * bb-reorder.c (make_reorder_chain_1): Search harder for the
97 vax casesi fallthru edge.
98 * cfglayout.c (cleanup_unconditional_jumps): Use
99 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
100 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
101 block after ADDR_VEC.
102
103 2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
104
105 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
106
107 2002-06-21 Neil Booth <neil@daikokuya.co.uk>
108
109 * cpperror.c (cpp_error): For traditional CPP, default to
110 diagnostics on pfile->line.
111 * cpplib.c (prepare_directive_trad): Set line number for
112 diagnostics for #define too.
113 * cpptrad.c (skip_whitespace): Skip comments properly.
114 (_cpp_expansions_different_trad): Initialize quote2.
115
116 2002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
117
118 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
119 * config/mmix/mmix.h: Ditto.
120 * config/mmix/mmix-protos.h: Ditto.
121 * config/mmix/mmix.c: Ditto. Fix typo in comment.
122 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
123 comment. Comment extra CC modes.
124
125 2002-06-20 Jan Hubicka <jh@suse.cz>
126
127 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
128 (scope_to_insns_finalize): Do not call set_block_levels; handle
129 sequences.
130 (choose_inner_scope): New.
131 * rtl.h (choose_inner_scope): Declare.
132
133 2002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
134
135 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
136 HOST_WIDE_INT.
137 * pa.c (pa_asm_output_mi_thunk): Likewise.
138 (n_deferred_plabels): Change type to size_t.
139 (output_deferred_plabels, output_call): Use size_t instead of int.
140
141 2002-06-20 Richard Henderson <rth@redhat.com>
142
143 PR target/4041
144 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
145 pattern and adjust constraints for coldfire.
146
147 2002-06-20 Richard Henderson <rth@redhat.com>
148
149 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
150
151 2002-06-20 Chris Demetriou <cgd@broadcom.com>
152
153 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
154
155 2002-06-20 Chris Demetriou <cgd@broadcom.com>
156
157 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
158
159 2002-06-20 Stan Shebs <shebs@apple.com>
160
161 * dominance.c: Include errors.h instead of error.h.
162
163 2002-06-20 Neil Booth <neil@daikokuya.co.uk>
164
165 * cppexp.c (cpp_interpret_integer): Don't force traditional
166 numbers to be unsigned.
167 * cpplib.c (prepare_directive_trad): Set line number for
168 diagnostics.
169 * cpptrad.c (scan_out_logical_line): Continue scanning out
170 at start of buffer.
171 * gcc.c (trad_capable_cpp): Use cc1 always.
172
173 2002-06-20 Jeffrey Law <law@redhat.com>
174
175 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
176 elimination in leaf functions by default yet.
177
178 2002-06-20 Richard Sandiford <rsandifo@redhat.com>
179
180 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
181
182 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
183
184 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
185 multilibs.
186 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
187 Fixes PR other/6836.
188
189 Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
190 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
191
192 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
193
194 * basic-block.h: Do not include et-forest.h
195 (dominance_info): Declare as struct dominance-info.
196 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
197 deleting block.
198 * dominance.c (struct dominance_info): Define.
199 (BB_NODE, SET_BB_NODE): New macros.
200 (bb_hash_func, bb_eq_func): Kill.
201 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
202 nearest_common_dominator, dominated_by_p, recount_dominator,
203 add_to_dominance_info, delete_from_dominance_info): update for new
204 representation.
205 (get_dominated_by, redirect_immediate_dominators): Rewrite using
206 enumerate_sons.
207 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
208 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
209 structure.
210
211 * et-forest.h: Update copyright; revamp all function to operate on
212 nodes
213 (et_forest_value): Kill.
214 (et_forest_enumerate_sons, et_forest_node_value): New.
215 * et-forest.c: Update copyright.
216 * et-forest.h: Update copyright; revamp all function to operate on
217 nodes
218 (et_forest_value): Kill.
219 (et_forest_enumerate_sons, et_forest_node_value): New.
220
221 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
222
223 * basic-block.h: Inlude et-forest.h
224 (basic_block_def): Kill dominator.
225 (dominance_info): New type.
226 (loops): Use dominace_info.
227 (dominace handling functions): Take dominace_info as argument
228 instead of bitmaps.
229 (create_preheader): Likewise.
230 * cfg.c (entry_exit_blocks): Kill dominator.
231 (dump_flow_info): Do not dump dominators.
232 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
233 dominators.
234 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
235 (flow_loops_pre_header_scan, make_forwarder_block,
236 canonicale_loop_headers, flow_loops_find): Likewise.
237 * dominance.c: Include error.h
238 (idoms_to_doms): Kill.
239 (bb_hash_func, bb_eq_func): New static functions.
240 (debug_dominace_info): New global function.
241 (calculate_dominance_info): Use new et forest structure.
242 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
243 get_dominated_by, redirect_immediate_dominators,
244 nearest_common_dominator, dominated_by_p, verify_dominators,
245 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
246 delete_from_dominance_info): New global functions.
247 * gcse.c (domnators): CHange to dominance_info.
248 (alloc_hoist_mem): Do not alloc dominators
249 (free_code_hoist_mem): Use free_dominance_info.
250 (compute_code_hoist_data): Use dominance_info.
251 (hoist_code): Likewise.
252 * ifcvt.c (post_dominators): Likewise.
253 (find_if_case_2, if_convert): Likewise.
254 * predict.c (process_note_predictions, process_note_prediction,
255 estimate-probability): Likewise.
256 * sched-rgn.c (find_rgns, init_regions): Likewise.
257 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
258 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
259 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
260 find_evaluations, convert_to_ssa): Likewise.
261 * ssa.h (compute_dominance_frontiers): Likewise.
262
263 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
264
265 * Makefile.in (et-forest.c): Add.
266 * et-forest.c: New file.
267 * at-forest.h: New file.
268
269 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
270
271 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
272 array size calculation.
273 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
274 Likewise.
275
276 * diagnostic.c (diagnostic_kind_text): Const-ify.
277 * gengtype.c (lang_names): Likewise.
278
279 Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
280
281 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
282
283 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
284
285 * config/sol2.h: New file.
286 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
287 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
288 (sparc-*-chorusos*): Likewise.
289 (sparc-*-elf*): Likewise.
290 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
291 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
292 (sparc-hal-solaris2*): Likewise.
293 (sparc-*-solaris2*): Likewise.
294 (sparclite-*-elf*): Likewise.
295 (sparc86x-*-elf*): Likewise.
296 (sparc64-*-elf*): Likewise.
297
298 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
299 config/sol2.h.
300 (ASM_SPEC): Override config/sol2.h version for now.
301 Removed obsolete GAS_REJECTS_MINUS_S variant.
302 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
303 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
304 (TARGET_OS_CPP_BUILTINS): Likewise.
305 Assert system=unix.
306 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
307 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
308 config/sol2.h.
309 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
310 (ASM_CPU_SPEC): Define.
311 (SUBTARGET_EXTRA_SPECS): Define.
312
313 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
314 in config/sparc/sol2.h.
315 (ASM_SPEC): Moved to config/sol2.h.
316 (CPP_CPU_SPEC): Simplified.
317 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
318 consistency.
319 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
320 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
321 STARTFILE_ARCH64_SPEC.
322 (STARTFILE_SPEC): Moved to config/sol2.h
323 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
324 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
325 (LINK_ARCH64_SPEC): Simplified.
326 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
327 (LINK_SPEC): Moved to config/sol2.h
328
329 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
330 config/sol2.h.
331 Use BITS_PER_WORD for size.
332 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
333 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
334 (CPP_PREDEFINES): Removed OS-specific part handled by
335 TARGET_OS_CPP_BUILTINS.
336 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
337 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
338 (ASM_SPEC): Moved to config/sol2.h.
339 (PREFERRED_DEBUGGING_TYPE): Likewise.
340 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
341 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
342 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
343 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
344
345 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
346 * config/i386/sol2gas.h: Removed.
347
348 Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
349
350 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
351
352 2002-05-20 Richard Henderson <rth@redhat.com>
353
354 * c-common.c (c_common_get_alias_set): Correctly handle characters.
355 Rearrange order of expressions; don't handle vectors here.
356 * alias.c (get_alias_set): Let vectors match their components.
357
358 2002-06-19 Chris Demetriou <cgd@broadcom.com>
359
360 * config/mips/mips.c (mips_emit_prefetch): Use hints which
361 match desired locality.
362
363 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
364
365 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
366 (h8300_insert_attributes): New.
367
368 2002-06-19 Akim Demaille <akim@epita.fr>
369
370 * c-parse.in (initelt: identifier ':' initval): Add an empty
371 action to fix a type clash.
372 (aliasdecl, classdef): Add the missing closing `;'.
373 Whitespace changes.
374 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
375 $$ = $1 type clashes.
376
377 2002-06-19 Eric Christopher <echristo@redhat.com>
378
379 * config/mips/mips.c (symbol_operand): New function.
380 (mips_emit_prefetch): Ditto.
381 * config/mips/mips-protos.h: Define.
382 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
383 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
384 (LEGITIMIZE_ADDRESS): Ditto.
385 * config/mips/mips.md (prefetch, prefetch_si_address,
386 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
387
388 2002-06-19 Eric Christopher <echristo@redhat.com>
389
390 * config/fp-bit.h: Add unordered defines for gofast.
391
392 2002-06-19 Vladimir Makarov <vmakarov@redhat.com>
393
394 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
395 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
396 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
397 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
398 checking and without it.
399 (decl_name, decl_mode_check_failed, regexp_name,
400 regexp_mode_check_failed): New functions.
401 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
402 gen_presence_set, gen_absence_set, gen_automaton,
403 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
404 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
405 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
406 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
407 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
408 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
409 (decl_hash, decl_eq_p): Use the macros.
410 (find_decl): Ditto. Set up mode of work_decl.
411 (process_excls, process_presence_absence, process_decls,
412 check_automaton_usage, process_regexp, process_regexp_decls,
413 check_usage, loop_in_regexp, check_loops_in_regexps,
414 process_regexp_cycles, add_advance_cycle_insn_decl,
415 initiate_states, initiate_excl_sets,
416 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
417 transform_2): Use the macros.
418 (transform_3): Ditto. Check mode before making transformations of
419 ALLOF.
420 (regexp_transform_func, transform_insn_regexps,
421 process_unit_to_form_the_same_automaton_unit_lists,
422 form_the_same_automaton_unit_lists_from_regexp,
423 form_the_same_automaton_unit_lists,
424 process_seq_for_forming_states, process_alts_for_forming_states,
425 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
426 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
427 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
428 units_to_automata_heuristic_distr, create_ainsns,
429 units_to_automata_distr, create_automata): Use the macros.
430 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
431 (longest_path_length, min_issue_delay_pass_states,
432 output_dead_lock_vect, output_tables, output_insn_code_cases,
433 output_internal_insn_latency_func, output_print_reservation_func,
434 output_description, output_automaton_units, generate): Use the
435 macros.
436 (make_insn_alts_attr): Ditto. Check case when there are not
437 alternatives in the reservation.
438 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
439 make_bypass_attr, form_important_insn_automata_lists,
440 expand_automata): Use the macros.
441
442 2002-06-20 Tim Josling <tej@melbpc.org.au>
443
444 * Makefile.in: Clean up code to check for misspecified languages
445 in enable-languages.
446
447 2002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
448
449 * cpptrad.c (_cpp_replacement_text_len): initialize len.
450
451 2002-06-19 Jason Merrill <jason@redhat.com>
452
453 * Makefile.in (unstrap, restrap): New targets.
454 (bootstrap): Mention restrap.
455
456 2002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
457
458 * except.c (ehl_free): Remove.
459
460 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
461 builtin_define and builtin_define_std.
462
463 2002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
464
465 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
466 (sCOND): Restrict operand class so that gcc knows how to reload them.
467 (bitfield_set): Merge two unnamed insn's using alternatives.
468 (call_value): Remove constraint on unused uperand.
469 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
470 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
471
472 * longlong.h (count_trailing_zeros): Escape newline and beautify.
473
474 2002-06-19 Mark Mitchell <mark@codesourcery.com>
475
476 * Makefile.in (QMTEST_DIR): Simplify definition.
477
478 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
479
480 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
481 #define.
482
483 2002-06-19 Neil Booth <neil@daikokuya.co.uk>
484
485 * cpphash.h (struct cpp_reader): Make date and time strings.
486 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
487 _cpp_replacement_text_len): New.
488 * cppinit.c (cpp_create_reader): Update.
489 (init_builtins): Register appropriate builtins for -traditional-cpp.
490 * cppmacro.c (new_number_token): Remove.
491 (_cpp_builtin_macro_text): New.
492 (builtin_macro): Use it.
493 (cpp_macro_definition): Update to handle traditional macros.
494 * cppmain.c (cb_line_change): Don't do column positioning for
495 traditional output.
496 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
497 state ls_fun_close.
498 (skip_whitespace): Fix.
499 (maybe_start_funlike): Don't set state.parsing_args.
500 (scan_out_logical_line): Remove duplicate error. Use lex_state
501 rather than state.parsing_args.
502 (push_replacement_text): Handle builtins.
503 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
504
505 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
506 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
507
508 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
509 attribute __always_inline__.
510
511 2002-06-18 Bob Wilson <bob.wilson@acm.org>
512
513 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
514 when generating the call to _mcount.
515 (NO_PROFILE_COUNTERS): Define.
516
517 2002-06-18 Richard Henderson <rth@redhat.com>
518
519 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
520 2002-06-02 change.
521
522 Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
523
524 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
525 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
526 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
527 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
528
529 * sh-protos.h (sh_pr_interrupt): Declare.
530 * sh.c (sh_pr_interrupt): New function.
531 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
532 (sh_hard_regno_rename_ok): Likewise.
533 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
534
535 2002-06-18 Vladimir Makarov <vmakarov@redhat.com>
536
537 * rtl.def (DEFINE_AUTOMATON): Add description of new options
538 `time' and `v'. Fix incorrect description of option `w'.
539
540 * doc/md.texi: Ditto.
541
542 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
543 (gen_automata_option): Process the new options.
544 (transform_2, transform_3): Initialize some variables.
545 (initiate_automaton_gen): Use the new macros.
546
547 2002-06-18 Richard Sandiford <rsandifo@redhat.com>
548
549 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
550 (mips_set_return_address, mips_restore_gp): Declare.
551 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
552 (current_frame_info): Remove.
553 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
554 * config/mips/mips.c: Remove uses of current_frame_info.
555 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
556 (struct machine_function): Add 'frame' and 'insns_len'.
557 (current_frame_info, zero_frame_info): Remove.
558 (mips_restore_gp, mips_set_return_address): New.
559 (mips_initial_elimination_offset): New.
560 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
561 (eh_return define_split): Use mips_set_return_address.
562
563 2002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
564
565 * cpplib.c (dtable): Update.
566 (end_directive): Decrement expansion prevention count.
567 Clear state.in_expression.
568 (prepare_directive_trad): Set state.in_expression.
569 Increment expansion prevention count.
570 * cpptrad.c (enum ls): New.
571 (_cpp_overlay_buffer): Set overlaid_buffer.
572 (_cpp_remove_overlay): Use overlaid_buffer.
573 (_cpp_read_logcial_line_trad): Update buffer when it might
574 have changed.
575 (scan_out_logical_line): Handle state transitions for assertions
576 and defined() in #if, and for funlike invocations including the
577 directive case. Handle '<' and '>' as a quote mechanism in
578 #include. Warn about unterminated macro invocations.
579 * cpphash.h (struct lexer_state): New member in_expression.
580 (struct cpp_reader): New member overlaid buffer.
581
582 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
583
584 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
585 __always_inline__.
586
587 2002-06-18 Alan Modra <amodra@bigpond.net.au>
588
589 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
590
591 * doloop.c (doloop_optimize): Extract pattern from insn.
592
593 2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
594
595 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
596
597 2002-06-17 Jeff Law <law@redhat.com>
598
599 * libgcc2.c: Do not include symcat.h or machmode.h.
600
601 2002-06-17 Richard Henderson <rth@redhat.com>
602
603 PR target/6922
604 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
605
606 2002-06-17 Tom Tromey <tromey@redhat.com>
607
608 * dwarfout.c: Include function.h.
609
610 2002-06-17 Andreas Schwab <schwab@suse.de>
611
612 * print-rtl.c (print_rtx): Print space before vector, not after.
613 (debug_rtx): Clear sawclose before printing.
614 (debug_rtx_list): Print newline after each list element.
615 (debug_rtx_range): Likewise.
616
617 2002-06-17 Richard Henderson <rth@redhat.com>
618
619 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
620 (current_function_funcdef_no): Similarly.
621 * function.c (funcdef_no): Similarly.
622 (prepare_function_start): Set current_function_funcdef_no.
623 (expand_function_start): Don't set current_function_profile_label_no.
624 * dwarf2out.h (current_funcdef_number): Remove.
625 * dwarf2out.c (current_funcdef_number): Remove. Replace with
626 current_function_funcdef_no throughout.
627 * dwarfout.c, vmsdbgout.c: Similarly.
628 * except.c (sjlj_funcdef_number): Remove.
629 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
630 (output_function_exception_table): Likewise.
631 * final.c (profile_function): Use current_function_funcdef_no
632 instead of current_function_profile_label_no.
633
634 2002-06-17 Vladimir Makarov <vmakarov@redhat.com>
635
636 * sched-ebb.c (init_ready_list): Check INSN_P first.
637
638 Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
639
640 * sh.md (divsi3): Update way how to find insns in a sequence.
641
642 * reload1.c (merge_assigned_reloads): Don't change reloads
643 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
644 to RELOAD_OTHER when there are conflicting input reloads.
645
646 2002-06-17 Richard Earnshaw (rearnsha@arm.com)
647
648 * function.c (epilogue_done): Correctly build a sequence of insns for
649 a sibcall epilogue.
650
651 2002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
652
653 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
654 #define.
655
656 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
657
658 2002-06-16 Richard Henderson <rth@redhat.com>
659
660 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
661 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
662
663 2002-06-16 Richard Henderson <rth@redhat.com>
664
665 PR opt/6722
666 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
667
668 2002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
669
670 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
671 * config/i386/i386-aout.h, config/i386/i386elf.h,
672 config/i386/sysv4.h: Remove CPP_PREDEFINES.
673 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
674 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
675 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
676 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
677 CPP_PREDEFINES and part of CPP_SPEC.
678 * config/i386/sysv4-cpp.h: New.
679
680 2002-06-16 Richard Henderson <rth@redhat.com>
681
682 PR c/7030
683 * dwarf2out.c (modified_type_die): Don't assign the qualified die
684 to the unqualified type.
685
686 Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
687
688 * i386-protos.h (x86_field_alignment): Declare.
689 * i386.c (x86_field_alignment): Define.
690 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
691 (BIGGEST_FIELD_ALIGNMENT): Kill.
692
693 2002-06-16 Richard Henderson <rth@redhat.com>
694
695 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
696
697 2002-06-16 Richard Henderson <rth@redhat.com>
698
699 * c-common.c (flag_ms_extensions): Move from c++ front end.
700 * c-common.h (flag_ms_extensions): Declare.
701 * c-decl.c (c_decode_option): Add -fms-extensions.
702 (grokfield): Don't accept anonymous structures in ISO C mode;
703 accept only unnamed anonymous structures in GNU C mode; accept
704 Plan 9 extensions in MS mode.
705 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
706 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
707 (extension): Clear flag_iso.
708 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
709
710 2002-06-16 Hans-Peter Nilsson <hp@axis.com>
711
712 PR target/7042
713 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
714 early if current_function_epilogue_delay_list is non-empty.
715 * config/cris/cris.md ("return"): Add sanity check asserting that
716 current_function_epilogue_delay_list is empty.
717
718 2002-06-16 Jeff Law <law@redhat.com>
719
720 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
721 sharing of hard registers.
722
723 * toplev.c (rest_of_compilation): Remove redundant conditional.
724
725 * toplev.c (rest_of_compilation): Perform a simpler, less costly
726 cleanup of the CFG when not optimizing.
727
728 2002-06-16 Alan Modra <amodra@bigpond.net.au>
729
730 * gcc.c (main): Correct startfile_prefix_spec check.
731
732 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
733
734 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
735 include both darwin.o and rs6000-c.o.
736
737 2002-06-15 Roger Sayle <roger@eyesopen.com>
738
739 * expr.c (compare_from_rtx): Call simplify_relational_operation
740 on all comparisons, not just those between integer constants,
741 with the correct (possibly unsigned) comparison code.
742 (do_compare_rtx_and_jump): Likewise.
743
744 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
745
746 * Makefile.in (tm_defines): New configuration variable.
747 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
748 Pass tm_defines in TM_DEFINES.
749 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
750 * config.gcc (tm_defines): New configuration variable.
751 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
752 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
753 * configure.in: Substitute tm_defines.
754 * configure: Rebuilt.
755 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
756 * doc/install.texi: Update.
757 * pa/pa-700.h: Delete file.
758 * pa/pa-7100.h: Delete file.
759
760 2002-06-15 Roger Sayle <roger@eyesopen.com>
761
762 * fold-const.c (comparison_to_compcode): New function to convert
763 an comparison TREE CODE into a bit-based representation.
764 (compcode_to_comparison): New function to convert from this bit
765 based representation back to a comparison TREE CODE.
766 (fold_truthop): Simplify (x<y) && (x==y) and related composite
767 comparisons.
768
769 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
770
771 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
772
773 * stor-layout.c (compute_record_mode): Remove check for
774 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
775 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
776 MEMBER_TYPE_FORCES_BLK.
777
778 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
779
780 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
781
782 2002-06-14 Jeff Sturm <jsturm@one-point.com>
783
784 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
785
786 2002-06-14 Steve Ellcey <sje@cup.hp.com>
787
788 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
789 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
790 * configure, config.in: Regenerate.
791
792 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
793
794 * loop.c (check_final_value): Use v->always_executed
795 instead of v->always_computable.
796 * unroll.c (final_giv_value): Don't calculate the final
797 value as a function of the biv if the giv is not computed
798 for every loop iteration.
799
800 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
801
802 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
803
804 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
805
806 PR c/6677
807 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
808 the truncation down when the target type is signed.
809 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
810 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
811 the conversion if the target type is a smaller type.
812
813 2002-06-14 Richard Henderson <rth@redhat.com>
814
815 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
816 earlier. Re-factor comparisons vs extrema.
817
818 2002-06-14 Richard Henderson <rth@redhat.com>
819
820 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
821
822 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
823
824 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
825 * sched-deps.c (add_dependence): Likewise.
826 (group_leader): Likewise.
827 * sched-rgn.c (init_ready_list): Likewise.
828 * doc/rtl.texi: Adjust accordingly.
829
830 2002-06-13 Jeffrey Law <law@redhat.com>
831
832 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
833 null pointer checks were eliminated. Update prototype.
834 (delete_null_pointer_checks): Similarly.
835 * rtl.h (delete_null_pointer_checks): Update prototype.
836 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
837 delete_null_pointer_checks deletes one or more null
838 pointer checks. Do not run cleanup_cfg before gcse, the
839 CFG is accurate and optimized at that point..
840
841 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
842 of hard registers.
843
844 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
845
846 * Makefile.in (libgcc.mk): Depend on specs.
847
848 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
849
850 * sh.md (mulsi3): Update way how to find insns in a sequence.
851
852 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
853
854 * sh.h: Define HARD_REGNO_RENAME_OK
855 * sh.c: sh_hard_regno_rename_ok: New. If current function has
856 interrupt_handler attribute, only registers saved on stack are OK.
857 * sh-protos.h: Declare sh_hard_regno_rename_ok.
858
859 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
860
861 * config/sh/sh.md (jump): Emit jump insn.
862 (call_pcrel): Get pattern of the result of gen_call_site.
863 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
864
865 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
866
867 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
868 * cpptrad.c: Update comments.
869 (skip_whitespace, copy_comment): Take a new parameter.
870 (skip_escaped_newlines): Don't duplicate escaped newline test.
871 (copy_comment): Different location for CUR, decide here how
872 to copy / replace the comment.
873 (skip_whitespace): Copy whitespace.
874 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
875 (scan_out_logical_line): Let copy comment handle keeping or
876 replacing comments.
877 (scan_parameters, _cpp_create_trad_definition): Update.
878
879 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
880
881 * reload.c (get_secondary_mem,find_reloads_address,
882 find_reloads_address_1): Pass reference to MEM to find_reloads_address
883 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
884
885 2002-06-13 Jessica Han <jessica@cup.hp.com>
886
887 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
888 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
889 * doc/tm.texi: Document them.
890 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
891 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
892 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
893 (ASM_OUTPUT_FDESC): Likewise.
894
895 2002-06-13 Eric Christopher <echristo@redhat.com>
896
897 * diagnostic.c (output_format): Fix thinko.
898
899 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
900
901 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
902 (DWARF2_UNWIND_INFO): Define to 0.
903
904 * config/sh/sh.c (calc_live_regs): Don't use initial_value
905 optimization for PR_MEDIA_REG.
906
907 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
908
909 * cpphash.h (_cpp_lex_identifier_trad): Remove.
910 * cpplib.c (end_directive): Don't skip, always remove overlay
911 apart from #define.
912 (prepare_directive_trad): Handle NULL pfile->directive.
913 (_cpp_handle_directive): Always call prepare_directive_trad
914 if traditional.
915 * cppmain.c (check_multiline_token): Rename account_for_newlines,
916 generalize inputs.
917 (scan_translation_unit_trad): Use it.
918 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
919 output, get escaped newline in comment close correct.
920 (check_output_buffer, skip_whitespace): Update.
921 (_cpp_lex_identifier_trad): Remove.
922 (scan_out_logical_line): Handle -C and comments in directives
923 properly.
924
925 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
926
927 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
928 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
929 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
930 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
931 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
932 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
933 (SELECT_SH5_COMPACT_NOFPU): Likewise.
934 (TARGET_SWITCHES): Use them.
935 (TARGET_CPU_DEFAULT): Define if not already defined.
936 (TARGET_DEFAULT): Use it.
937 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
938 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
939 * config/sh/t-monolib: New file.
940
941 2002-06-13 Roger Sayle <roger@eyesopen.com>
942
943 * toplev.c (rest_of_compilation): Simplify (and correct) the
944 logic of the first delete-null-pointer-checks pass.
945
946 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
947
948 * i386.c (ix86_expand_movstr): Fix pasto.
949
950 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
951
952 * reload.c (find_valid_class): Fix thinko in my previous patch.
953
954 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
955
956 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
957 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
958 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
959 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
960
961 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
962
963 * tree-inline.c (expand_call_inline): Don' mess with _DECL
964 fields.
965
966 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
967
968 * diagnostic.c (output_format): Recognize "%H" as a format
969 specifier for a location_t.
970 (text_specifies_location): New function.
971 (diagnostic_set_info): Use it.
972
973 2002-06-13 Jeffrey Law <law@redhat.com>
974
975 * emit-rtl.c (static_regno_reg_rtx): Define.
976 (init_emit_once): Initialize static_regno_reg_rtx.
977 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
978 of building new hard reg objects once per function.
979 (gen_rtx_REG): Try to share hard regs.
980 * regclass.c (init_fake_stack_mems): New function broken out from
981 init_regs.
982 * rtl.h (init_fake_stack_mems): Declare.
983 * toplev.c (lang_independent_init): Call init_regs before
984 init_emit_once. Call init_fake_stack_mems after init_emit_once.
985
986 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
987
988 * alias.c (argument_registers): Remove.
989 (init_alias_once): Initialize static_reg_base_value here. Remove
990 initialization of argument_registers.
991 (init_alias_once_per_function): Remove.
992 (init_alias_analysis): Copy all the entries from static_reg_base_value
993 into new_reg_base_value all at once.
994 * rtl.h (init_alias_once_per_function): Remove declaration.
995 * function.c (prepare_function_start): Do not call
996 init_alias_once_per_function.
997
998 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
999 starting a sequence and emitting an INSN.
1000
1001 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
1002
1003 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
1004
1005 2002-06-13 David S. Miller <davem@redhat.com>
1006
1007 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
1008
1009 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
1010
1011 * cpplib.c (end_directive): Handle line skipping. Only remove
1012 the rest of the line if the directive was valid.
1013 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
1014 expanding a traditional macro.
1015 * cpptrad.c (recursive_macro): New.
1016 (read_logical_line_trad): Handle skipping.
1017 (scan_out_logical_line): Continue after a successful directive.
1018 Don't expand macros whilst skipping, or if recursing.
1019 (_cpp_create_trad_definition): scan_out_logical_line now sets
1020 the output current position.
1021
1022 2002-06-12 Eric Christopher <echristo@redhat.com>
1023
1024 From Chris Demetriou <cgd@broadcom.com>
1025 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
1026 comment.
1027 (ISA_HAS_MADD_MSUB): Ditto.
1028 (ISA_HAS_NMADD_NMSUB): Ditto.
1029
1030 2002-06-12 Eric Christopher <echristo@redhat.com>
1031
1032 * config.gcc: Consolidate little endian handling and
1033 little/big endian targets.
1034 * config/mips/elfl.h: Remove file.
1035 * config/mips/elfl64.h: Ditto.
1036 * config/mips/ecoffl.h: Ditto.
1037 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
1038
1039 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
1040
1041 * gengtype.h (xvasprintf): New prototype.
1042 (xasprintf): New prototype.
1043 (struct outf): New.
1044 (get_output_file): Return an outf_p.
1045 (header_file): Is now an outf_p.
1046 (base_files): Now are outf_p.
1047 (oprintf): New.
1048 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
1049 rather than stdio operations. Use xasprintf in a few places,
1050 when appropriate.
1051 (xvasprintf): New.
1052 (xasprintf): New.
1053 (struct filemap): Delete.
1054 (files): Delete.
1055 (output_files): New.
1056 (oprintf): New.
1057 (create_file): Create an outf_p. Add parameter to indicate output
1058 file name, change all callers.
1059 (open_base_files): Create gtype-desc.c here.
1060 (get_output_file_with_visibility): Rewrite.
1061 (get_output_file_name): Just look at 'name' field in struct outf.
1062 (close_output_files): Rewrite.
1063
1064 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
1065
1066 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
1067 (MASK_G_FLOAT): Define.
1068 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
1069 (TARGET_SWITCHES): Likewise.
1070 (TARGET_DEFAULT): Likewise.
1071
1072 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
1073
1074 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
1075 * config/mips/mips.c (mips_output_filename): Don't print a
1076 ".file" directive if we are using DWARF-2.
1077 (mips_output_function_prologue): Do not emit source file
1078 name for TARGET_GAS.
1079
1080 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
1081
1082 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
1083 decide whether emit the short opcode.
1084 * i386.h (x86_shift1): Declare.
1085 (TARGET_SHIFT1): New macro.
1086 * i386.c (x86_shift1): New global variable.
1087
1088 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
1089 unconditionally; make loop to rebuild CFG; kill unnecesary
1090 find_basic_block calls; kill compute_bb_for_insn call.
1091 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
1092 * haifa-sched.c (sched_init): Likewise.
1093 * ssa-ccp.c (ssa_const_prop): Likewise.
1094 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1095
1096 2002-06-11 David S. Miller <davem@redhat.com>
1097
1098 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
1099 active_insn_p.
1100
1101 2002-06-11 Richard Henderson <rth@redhat.com>
1102
1103 * c-common.c (builtin_define_type_max): New.
1104 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
1105 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
1106
1107 From Joseph S. Myers:
1108 * glimits.h: Rewrite to expect the double underscore definitions
1109 from the compiler.
1110
1111 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
1112 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
1113 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
1114 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
1115 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
1116 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
1117 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
1118 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
1119
1120 2002-06-11 Richard Henderson <rth@redhat.com>
1121
1122 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
1123 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
1124 (code_for_builtns): Update.
1125 (alpha_init_builtins): Add __builtin_thread_pointer and
1126 __builtin_set_thread_pointer.
1127 (alpha_expand_builtin): Handle void builtins.
1128 * doc/extend.texi (Alpha Built-in Functions): Update.
1129
1130 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
1131
1132 PR target/6997
1133 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
1134
1135 2002-06-11 Zack Weinberg <zack@codesourcery.com>
1136
1137 * config.gcc: Make the name of the extra-modes file adjustable
1138 by target stanzas.
1139 (s390x, strongarm, xscale stanzas): Use this facility.
1140 * configure.in: Update to match.
1141 * configure: Regenerate.
1142
1143 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
1144
1145 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
1146 max/mins as unsigned GE compares.
1147
1148 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
1149
1150 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
1151 * config/vax/bsd.h: New file.
1152 * config/vax/netbsd.h: Add missing notice.
1153 (CPP_PREDEFINES): Remove.
1154 (TARGET_OS_CPP_BUILTINS): Define.
1155 (CPP_SPEC): Use NETBSD_CPP_SPEC.
1156 * config/vax/openbsd.h: Update copyright years.
1157 (CPP_PREDEFINES): Remove.
1158 (TARGET_OS_CPP_BUILTINS): Define.
1159 * config/vax/ultrix.h: Likewise.
1160 * config/vax/vaxv.h: Likewise.
1161 * config/vax/vms.h: Likewise.
1162 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
1163 (CPP_PREDEFINES, CPP_SPEC): Remove.
1164
1165 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
1166
1167 * i386.md (addqi_1_slp, subqi_1_slp
1168 (andqi_ext0, testqi_ext0): Remove unnecesary check.
1169 (addhi*, addqi*): Simplify "dec" condition.
1170 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
1171 (and, or, xor to QImode splitters): New.
1172 (iorqi_ext*): New.
1173 (xorqi_ext_0): New.
1174 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
1175 (andqi_ext_1_rex64): New.
1176 (ashrqi*_slp): New.
1177 (ashlqi*_slp): New.
1178 (lshlqi*_slp): New.
1179 (rotrqi3*_slp): New.
1180 (rotlqi3*_slp): New.
1181
1182 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
1183
1184 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
1185 softfloat.h.
1186 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
1187 (CPP_ENDIAN_LITTLE_SPEC): Delete.
1188 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
1189 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
1190 __LONG_DOUBLE_128__ setting, _CALL_* setting.
1191 (CPP_DEFAULT_SPEC): Delete.
1192 (CPP_FLOAT_DEFAULT_SPEC): Delete.
1193 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
1194 (CPP_SYSV_DEFAULT_SPEC): Delete.
1195 (CPP_ENDIAN_BIG_SPEC): Delete.
1196 (CPP_ENDIAN_LITTLE_SPEC): Delete.
1197 (CPP_ENDIAN_SPEC): Delete.
1198 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
1199 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
1200 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
1201 cpp_longdouble_default.
1202 * config/rs6000/softfloat.h: Delete.
1203 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
1204 (EXTRA_SPECS): Delete cpp_cpu.
1205 (TARGET_CPU_CPP_BUILTINS): New.
1206 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
1207 prototype.
1208 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
1209 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
1210 (CPP_DEFAULT_SPEC): Delete.
1211 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
1212 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
1213 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
1214 (CPP_DEFAULT_SPEC): Delete.
1215 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1216 (CPLUSPLUS_CPP_SPEC): Likewise.
1217 (CPP_CPU_SPEC): Delete.
1218 (CPP_DEFAULT_SPEC): Delete.
1219 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1220 (CPLUSPLUS_CPP_SPEC): Likewise.
1221 (CPP_CPU_SPEC): Delete.
1222 (CPP_DEFAULT_SPEC): Delete.
1223 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
1224 (CPP_DEFAULT_SPEC): Delete.
1225 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
1226 (CPP_DEFAULT_SPEC): Delete.
1227
1228 * doc/gty.texi: Small updates.
1229
1230 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
1231
1232 * objc/objc-act.c (warn_with_ivar): Adjust calls to
1233 diagnostic_count_error.
1234 (warn_with_method): Likewise.
1235
1236 * diagnostic.h (warnings_are_errors_message): New field of
1237 diagnostic_context.
1238 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
1239 match semantics.
1240 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
1241 (diagnostic_count_diagnostic): Make aware of other kinds of
1242 diagnostics.
1243 (diagnostic_initialize): Initialize warnings_are_errors_message field.
1244
1245 2002-06-11 Tom Tromey <tromey@redhat.com>
1246
1247 For PR java/6520:
1248 * fold-const.c (fold_convert): Don't modify existing tree's type.
1249
1250 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
1251
1252 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
1253
1254 2002-06-11 Richard Henderson <rth@redhat.com>
1255
1256 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
1257
1258 2002-06-11 Richard Henderson <rth@redhat.com>
1259
1260 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
1261 DWARF2_UNWIND_INFO is false.
1262
1263 2002-06-11 Bob Wilson <bob.wilson@acm.org>
1264
1265 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
1266
1267 * config/s390/s390.c (emit_prologue): gen_store_multiple
1268 returns an insn now, not a pattern.
1269
1270 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1271
1272 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
1273 $(TEXI2DVI) -o.
1274
1275 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
1276
1277 * i386.c (x86_promote_QImode): Set for Athlon
1278 (x86_fast_prefix): New global variable.
1279 (x86_arch_always_fancy_math_387): Fix formating.
1280 * i386.h (x86_fast_prefix): Declare
1281 (TARGET_FAST_PREFIX): define.
1282 * i386.md (and to strict_low_part, HI to SI
1283 promoting splitter): Use new macro.
1284
1285 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
1286
1287 2002-06-11 Zack Weinberg <zack@codesourcery.com>
1288
1289 * Makefile.in (distclean): Delete junk left in testsuite
1290 directory, too.
1291
1292 2002-06-11 Jeffrey Law <law@redhat.com>
1293
1294 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
1295 last insn created by the splitter.
1296
1297 * caller-save.c (init_caller_save): Move creation of SAVEINSN
1298 and RESTINSN into into the scope of the sequence.
1299
1300 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
1301 RETURN insns.
1302
1303 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
1304
1305 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
1306 not the pattern. So extract the pattern from the insn.
1307
1308 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
1309
1310 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
1311
1312 * config/s390/s390.md (movsi): Only use floating point
1313 register alternatives when operands are already fprs.
1314 (movdi_31, movdi_64): Likewise.
1315
1316 2002-06-11 David S. Miller <davem@redhat.com>
1317
1318 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
1319 Only run RTX equality checks on INSN_P rtl.
1320
1321 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
1322
1323 * config/s390/s390.md (reload_base, ltorg): Remove.
1324 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
1325 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
1326 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
1327 s390_asm_output_pool_prologue): Likewise.
1328 * s390.h (s390_pool_start_insn): Likewise.
1329
1330 * s390.c (s390_output_symbolic_const): Remove support for
1331 old-style pool chunks.
1332 (s390_function_epilogue): Likewise.
1333 (s390_output_constant_pool): Likewise. Also, fix incorrect
1334 alignment for 64-bit literal pools.
1335 (print_operand_address): Remove 'y' and 'Y' format flags.
1336 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
1337 old-style pool chunks.
1338 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
1339 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
1340 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
1341
1342 * s390.c (consttable_operand): New function.
1343 * s390-protos.h (consttable_operand): Declare it.
1344 * s390.h (PREDICATE_CODES): Add consttable_operand.
1345 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
1346 consttable_sf, consttable_df, pool_start_31, pool_end_31,
1347 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
1348 * s390.c (struct constant, struct constant_pool): New data types.
1349 (constant_modes, gen_consttable): New variables.
1350 (s390_start_pool, s390_end_pool, s390_add_pool,
1351 s390_dump_pool, s390_free_pool): New functions.
1352 (s390_chunkify_pool): Completely reimplement literal pool
1353 overflow handling.
1354
1355 * s390.c (s390_pool_overflow): New variable.
1356 * s390.h (s390_pool_overflow): Declare it.
1357 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
1358 jumps in literal pool overflow situations.
1359
1360 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
1361 (s390_frame_info): Account for possible use of RETURN_REGNUM
1362 by new literal pool overflow code.
1363 (s390_emit_prologue): Likewise.
1364
1365 2002-06-05 David S. Miller <davem@redhat.com>
1366
1367 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
1368 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
1369 emit_insns_before_scope, emit_insns_after,
1370 emit_insns_after_scope): Delete declaration.
1371 * ada/misc.c (insert_code_for): Use emit_insn* instead of
1372 emit_insns_foo.
1373 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
1374 (alpha_set_memflags): Fix comment.
1375 (set_frame_related_p): Use get_insns instead of gen_sequence.
1376 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
1377 emitting no insns.
1378 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
1379 gen_sequence.
1380 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
1381 * config/fr30/fr30.c (fr30_move_double): Likewise.
1382 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
1383 Likewise.
1384 * config/ia64/ia64.c (spill_restore_mem): Likewise.
1385 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
1386 no insns.
1387 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
1388 instead of gen_sequence.
1389 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
1390 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
1391 * config/sh/sh.c (sh_need_epilogue): Likewise.
1392 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
1393 attributes.
1394 (setjmp pattern and split): Use them to avoid splitter which emits
1395 no RTL.
1396 * genattrtab.c (main): Emit include of function.h
1397 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
1398 get_insns instead of gen_sequence.
1399 * config/cris/cris.c (cris_split_movdx): Likewise.
1400 * emit-rtl.c (emit_insns*): Kill.
1401 (try_split): Expect insn list instead of SEQUENCE.
1402 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
1403 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
1404 Make them abort if a SEQUENCE is given and RTL checking is
1405 enabled.
1406 (emit_*_scope): Don't forget to set scope on final insn.
1407 (gen_sequence): Move from here...
1408 * ssa.c (gen_sequence): To here as private function.
1409 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
1410 comments.
1411 (expand_builtin_return, expand_builtin_mathfn): Likewise.
1412 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
1413 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
1414 (expand_builtin_expect_jump): Use get_insns and fix comments.
1415 * calls.c (try_to_integrate): Use emit_insn_foo.
1416 (expand_call, emit_library_call_value_1): Likewise.
1417 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
1418 (emit_move_insn_1): Use get_insns instead of gen_sequence.
1419 (expand_expr): Use emit_insn_foo.
1420 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
1421 * except.c (build_post_landing_pads): Likewise.
1422 * flow.c (attempt_auto_inc): Likewise.
1423 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
1424 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
1425 * function.c (fixup_var_refs_insn): Use get_insns instead of
1426 gen_sequence.
1427 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
1428 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
1429 (fixup_stack_1, purge_addressof_1, expand_main_function,
1430 get_arg_pointer_save_area): Likewise.
1431 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
1432 expand_function_end): Use emit_insn_foo.
1433 (record_insns, keep_stack_depressed): Work with insn list instead
1434 of SEQUENCE, fix comments.
1435 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
1436 noce_try_store_flag_constants, noce_try_store_flag_inc,
1437 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
1438 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
1439 (noce_process_if_block): Use get_insns instead of gen_sequence.
1440 * optabs.c (add_equal_note): Work with insn list, fix comments.
1441 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
1442 (expand_unop, expand_complex_abs, expand_unop_insn,
1443 expand_no_conflict_block): Likewise.
1444 (gen_move_insn): Use get_insns instead of gen_sequence.
1445 (gen_cond_trap): Likewise.
1446 * integrate.c (copy_rtx_and_substitute): Likewise.
1447 (emit_initial_value_sets): Use emit_insn_foo.
1448 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
1449 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
1450 now that RTL generators give insn lists.
1451 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
1452 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
1453 instead of gen_sequence.
1454 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
1455 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
1456 instead of gen_sequence.
1457 * loop.c (move_movables, emit_prefetch_instructions,
1458 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
1459 Likewise.
1460 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
1461 (product_cheap_p): Likewise, and add commentary about RTL wastage
1462 here.
1463 * lcm.c (optimize_mode_switching): Use get_insns instead of
1464 gen_sequence.
1465 * profile.c (gen_edge_profiler): Likewise.
1466 * regmove.c (copy_src_to_dest): Likewise.
1467 * reg-stack.c (compensate_edge): Likewise and fix comment.
1468 * gcse.c (process_insert_insn): Likewise.
1469 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
1470 * jump.c (delete_prior_computation): Update comment.
1471 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
1472 of gen_sequence, update comments to match.
1473 * recog.c (peephole2_optimize): Work with insn lists instead of
1474 SEQUENCE rtl.
1475 * sched-vis.c (print_pattern): Abort on SEQUENCE.
1476 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
1477 Use get_insns instead of gen_sequence.
1478 (copy_loop_body): Likewise and don't emit dummy NOTE.
1479 * genrecog.c: Don't mention SEQUENCE rtl in comments.
1480 * combine.c (try_combine): Expect insn lists from split generator.
1481 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
1482 hand.
1483
1484 2002-06-11 Roger Sayle <roger@eyesopen.com>
1485 Andreas Jaeger <aj@suse.de>
1486
1487 * cfgbuild.c: Update copyright years.
1488
1489 2002-06-11 Andreas Schwab <schwab@suse.de>
1490
1491 * config/m68k/m68k.h (PREDICATE_CODES): Define.
1492
1493 2002-06-11 Eric Christopher <echristo@redhat.com>
1494
1495 * doc/tm.texi (Run-time Target): Add comment about flag_iso
1496 and strict ANSI.
1497 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
1498 * config/mips/ecoffl.h: Ditto.
1499 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
1500 (CPP_PREDEFINES): Ditto.
1501 * config/mips/elfl64.h: Ditto.
1502 * config/mips/elfl.h: Ditto.
1503 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
1504 out until irix header consolidation.
1505 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
1506 with SUBTARGET_OS_CPP_BUILTINS.
1507 * config/mips/iris6.h: Ditto.
1508 (CPLUSPLUS_CPP_SPEC): Remove.
1509 * config/mips/linux.h: Ditto.
1510 * config/mips/netbsd.h: Ditto.
1511 * config/mips/openbsd.h: Ditto.
1512 * config/mips/rtems.h: Ditto.
1513 * config/mips/rtems64.h: Ditto.
1514 * config/mips/sni-svr4.h: Ditto.
1515 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
1516 ISA_MIPS32, ISA_MIPS64): New defines.
1517 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
1518 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
1519 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1520 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
1521 (TARGET_CPU_CPP_BUILTINS): Define.
1522 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
1523 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
1524 (movdicc): Remove check for ISA_MIPS32.
1525 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
1526 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
1527 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
1528 sunge_sf, sunle_df, sunle_sf): New patterns.
1529
1530 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
1531
1532 * Makefile.in: Update cppmain.o.
1533 * cpphash.h (struct cpp_reader): Move some members to a
1534 nested structure.
1535 (trad_line): Rename saved_line.
1536 (_cpp_read_logical_line_trad): Update.
1537 (_cpp_remove_overlay): New.
1538 * cppinit.c (cpp_create_reader): No need to set saved_line.
1539 (cpp_destroy): Update.
1540 (cpp_read_main_file): Only overlay if compiling.
1541 * cpplex.c (continue_after_nul): Return false if in directive.
1542 * cpplib.c (EXPAND): New.
1543 (directive_table, SEEN_EOL): Update.
1544 (end_directive): Remove overlay if traditional; don't skip
1545 line in traditional #define.
1546 (prepare_directive_trad): New.
1547 (_cpp_handle_directive, run_directive): Update for traditional
1548 directives.
1549 (lex_macro_node): Simplify, don't use lex_identifier_trad.
1550 * cpplib.h (struct options): Add preprocess_only.
1551 * cppmain.c: Don't include intl.h.
1552 (cpp_preprocess_file): Set options->preprocess_only.
1553 (scan_translation_unit_trad): Fix, and print line numbers.
1554 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
1555 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
1556 save_replacement_text, _cpp_create_trad_definition): Update for
1557 variable renaming.
1558 (_cpp_overlay_buffer): Save line number.
1559 (_cpp_remove_overlay): Rename from restore_buff, restore line.
1560 (_cpp_read_logical_line_trad): Don't handle overlays here.
1561 (scan_out_logical_line): Process directives.
1562
1563 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
1564
1565 * gthr-win32.h: Wrap functions in extern "C".
1566 (__gthread_key_t): Typedef as unsigned long,
1567 not win32 DWORD.
1568 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
1569 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
1570 (__gthr_win32_once, __gthr_win32_key_create,
1571 __gthr_win32_key_delete, __gthr_win32_getspecific,
1572 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
1573 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
1574 __gthr_win32_mutex_unlock): Declare.
1575 (__gthread_once,__gthread_key_create,
1576 __gthread_key_delete, __gthread_getspecific,
1577 __gthread_setspecific, __gthread_mutex_init_function,
1578 __gthread_mutex_lock,__gthread_mutex_trylock,
1579 __gthread_mutex_unlock): Call corresponding
1580 __gthr_win32_* extern implementations if #defined
1581 __GTHREAD_HIDE_WIN32API.
1582 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
1583 $(srcdir)/config/i386/gthr-win32.c
1584 * config/i386/gthr-win32.c: New implementation file.
1585 (__gthr_win32_once, __gthr_win32_key_create,
1586 __gthr_win32_key_delete, __gthr_win32_getspecific,
1587 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
1588 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
1589 __gthr_win32_mutex_unlock): New functions, based on
1590 static inlines in gthr-win32.h.
1591
1592 2002-06-10 Bob Wilson <bob.wilson@acm.org>
1593
1594 * config/xtensa/xtensa.c (override_options): Don't warn about
1595 using -fpic or -fPIC when PIC is enabled by default.
1596
1597 2002-06-10 Roger Sayle <roger@eyesopen.com>
1598
1599 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
1600
1601 2002-06-10 Zack Weinberg <zack@codesourcery.com>
1602
1603 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
1604 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
1605 exists, substitute its pathname as @extra_modes_file@, define
1606 EXTRA_MODES_FILE to be an appropriate string to #include it
1607 with, and define EXTRA_CC_MODES to 1.
1608
1609 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
1610 it's defined. Get rid of redundancy in calling sequence for
1611 CC; don't use it to define CCmode, to avoid a warning.
1612 * libgcc2.c: Include symcat.h for the sake of machmode.def.
1613
1614 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
1615 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
1616 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
1617 New files.
1618 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
1619 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
1620
1621 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
1622 defining extra CC modes.
1623
1624 2002-06-10 Roger Sayle <roger@eyesopen.com>
1625 Andreas Jaeger <aj@suse.de>
1626
1627 * cfgrtl.c (create_basic_block_structure): Remove index argument
1628 and use last_basic_block++ instead. (create_basic_block): Update.
1629 * cfgbuild.c (find_basic_blocks_1): Likewise.
1630
1631 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
1632 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
1633 * sched-ebb.c (schedule_ebbs): Likewise.
1634 * sched-rgn.c (schedule_insns): Likewise.
1635 * ssa-ccp.c (ssa_const_prop): Likewise.
1636 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
1637 * toplev.c (rest_of_compilation): Likewise.
1638 * config/ia64/ia64.c (ia64_reorg): Likewise.
1639
1640 2002-06-10 Roger Sayle <roger@eyesopen.com>
1641
1642 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
1643 of matching registers.
1644
1645 2002-06-10 Roger Sayle <roger@eyesopen.com>
1646
1647 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
1648 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
1649
1650 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
1651
1652 * config/mmix/mmix.h: Improve comments.
1653 (CPP_SPEC, CPP_PREDEFINES): Don't define.
1654 (TARGET_CPU_CPP_BUILTINS): Define.
1655 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
1656 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
1657 unused predicate.
1658 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
1659 compiler warning.
1660 (mmix_constant_address_p): Remove another
1661 redundant test before case.
1662 (mmix_canonicalize_comparison): Remove unused function.
1663 (mmix_print_operand_address): Don't test and adjust for operand in
1664 non-canonical format.
1665 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
1666 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
1667
1668 2002-06-10 Zack Weinberg <zack@codesourcery.com>
1669
1670 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
1671 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
1672 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
1673 (gen_compare): Use CCmode unconditionally.
1674
1675 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1676
1677 PR optimization/6759
1678 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
1679 the REQ_EQUAL note.
1680
1681 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1682
1683 PR c/6660
1684 * c-decl.c (grokfield): Allow user defined types if they declare
1685 structs or unions for unnamed fields.
1686
1687 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1688
1689 PR c/6809
1690 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
1691
1692 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1693
1694 PR optimization/6842
1695 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
1696 operand subreg cannot be simplified.
1697
1698 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1699
1700 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
1701 (compare_constant): Likewise.
1702 (output_addressed_constants): Likewise.
1703
1704 2002-06-10 Jakub Jelinek <jakub@redhat.com>
1705
1706 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
1707 merge bb with itself.
1708
1709 2002-06-10 Richard Henderson <rth@redhat.com>
1710
1711 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
1712 (builtin_zapnot): Likewise.
1713
1714 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
1715 reservation.
1716
1717 2002-06-10 Eric Christopher <echristo@redhat.com>
1718
1719 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
1720 prototype and function.
1721 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
1722 (call_insn_operand): Remove half pic references.
1723 (legitimate_address_p): Ditto.
1724 * config/i386/i386.h: Remove half pic defines.
1725
1726 2002-06-10 Eric Christopher <echristo@redhat.com>
1727
1728 * doc/extend.texi (Return Address): Add note explaining the side-
1729 effects of inlining on __builtin_return_address.
1730
1731 2002-06-10 Tom Tromey <tromey@redhat.com>
1732
1733 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
1734 (c-common.o): Depend on langhooks.h.
1735
1736 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
1737
1738 * cpphash.h (_cpp_read_logical_line_trad,
1739 _cpp_expansions_different_trad): Update prototypes.
1740 * cpplex.c (continue_after_nul): New.
1741 * cppmain.c: Include cpphash.h.
1742 (scan_translation_unit_trad): New.
1743 (cpp_preprocess_file): Call it.
1744 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
1745 overlay.
1746 (_cpp_expansions_different_trad): Update prototype.
1747
1748 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
1749
1750 Fix cfi generation for SH[1-4]:
1751
1752 * sh.c (frame_insn): New function.
1753 (output_stack_adjust): Add parameter emit_fn. All callers changed.
1754 (push): Now returns rtx. Use frame_insn.
1755 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
1756 of a DF register.
1757 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
1758
1759 2002-06-10 Zack Weinberg <zack@codesourcery.com>
1760
1761 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
1762 and gtype-desc.c.
1763 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
1764 (distclean): ... not here. But do delete all testsuite/*.log,
1765 testsuite/*.sum files here. Delete mkheaders. Delete
1766 po/*.gmo and the testsuite directory in a split tree build.
1767
1768 2002-06-10 Jeffrey Law <law@redhat.com>
1769
1770 * alias.c (static_reg_base_value): New to hold RTL for
1771 items allocated once per function for the aliasing code.
1772 (init_alias_once_per_function): Initialize static_reg_base_value.
1773 (init_alias_analysis): Avoid throw-away allocations of RTL by
1774 using pre-computed values in static_reg_base_value.
1775 * function.c (prepare_function_start): Call
1776 init_alias_once_per_function appropriately.
1777 * rtl.h (init_alias_once_per_function): Declare.
1778 * caller-save (init_caller_save): Restructure slightly to
1779 avoid lots of silly RTL generation.
1780 * expr.c (init_expr_once): Likewise.
1781 * reload1.c (reload_cse_regs_1): Allocate throw-away register
1782 RTL object here. Pass it into children.
1783 (reload_cse_simplify_operands): Use passed-in register RTL
1784 object.
1785 (reload_cse_simplify): Pass through throw-away register
1786 RTL object.
1787
1788 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
1789
1790 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
1791
1792 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
1793
1794 * gcc.c (process_command): Avoid assignment to read-only location.
1795 Fix sizeof calculation.
1796
1797 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
1798
1799 * cpphash.h (struct cpp_macro): Put comments on their own lines.
1800 (_cpp_expansions_different_trad): New.
1801 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
1802 * cpptrad.c (canonicalize_text): New.
1803 (scan_out_logical_line): Handle no arguments correctly.
1804 (save_replacement_text): Commit memory when finished.
1805 (_cpp_expansions_different_trad): New.
1806
1807 2002-06-10 Tim Josling <tej@melbpc.org.au>
1808
1809 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
1810 TREELANG and COBOL.
1811 (lang_names): Add treelang and cobol.
1812 (get_file_basename): Add code to support treelang and cobol as
1813 4th and 5th users of c-common.c.
1814
1815 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
1816
1817 * Makefile.in (install-driver): Install driver as
1818 $(target_alias)-gcc-$(version).
1819 * gcc.c (spec_version): Make const.
1820 (process_command): Handle -V and -b by using exec.
1821 * doc/invoke.texi (Target Options): Restore -V option,
1822 update docs for -b option.
1823
1824 2002-06-10 Tim Josling <tej@melbpc.org.au>
1825
1826 * configure.in (remaining_languages_check):
1827 Added check that all languages specified were found.
1828 Exit if not found. Previous behaviour was silent failure.
1829 * configure: Regenerated.
1830
1831 2002-06-10 Tim Josling <tej@melbpc.org.au>
1832
1833 First steps to making treelang documentation compliant, based on
1834 instructions in sourcebuild.texi. Also add to gcc.c list of
1835 default languages.
1836
1837 * doc/contrib.texi: Add self as contributor of treelang.
1838
1839 * doc/frontends.texi: Add mention of treelang.
1840
1841 * doc/invoke.texi (Overall Options): Add mention of treelang.
1842
1843 * doc/standards.texi: Add mention of treelang.
1844
1845 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
1846
1847 * config/cris/cris.c: Include ggc.h
1848
1849 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
1850
1851 * cpphash.h (_cpp_push_text_context): Update.
1852 (_cpp_arguments_ok): New.
1853 * cppmacro.c (_cpp_arguments_ok): New, split out from...
1854 (collect_args): ...here.
1855 (_cpp_push_text_context): Change inputs.
1856 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
1857 replace_args_and_push): New.
1858 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
1859 Don't use IS macros directly.
1860 (scan_out_logical_line): Handle function-like macro argument
1861 collection.
1862 (push_replacement_text): Update.
1863 (replacement_length): Remove.
1864 (_cpp_create_trad_definition): Don't skip whitespace before
1865 checking for '('.
1866
1867 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
1868
1869 * config/avr/avr.c (avr_mcu_types): Update for new devices.
1870 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
1871 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
1872 * config/avr/avr.md ("type" and "length" attributes): New type
1873 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
1874 output a single "call" or "rcall" insn depending on device size.
1875 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
1876
1877 2002-06-09 David Edelsohn <edelsohn@gnu.org>
1878
1879 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
1880 synonym for 630. Add power4. Remove embedded processors. Use -m604
1881 assembler option.
1882 (CPP_CPU_SPEC): Add power3 and power4.
1883 (PROCESSOR_DEFAULT): Change to 604e.
1884 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
1885 (CPP_CPU_SPEC): Similar additions.
1886 (enum process_type): Add POWER4.
1887 (RTX_COSTS): Add POWER4.
1888 (CPP_CPU_SPEC): Similar additions.
1889 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
1890 (PROCESSOR_DEFAULT64): Define.
1891 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
1892 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
1893 branch adjustment.
1894 (rs6000_issue_rate): Add Power4.
1895 * config/rs6000/rs6000.md (cpu attr): Add power4.
1896 (iu compare): Remove 604, 604e, 620, 630.
1897 Add basic Power4 scheduling information.
1898 (mfcr/mtcrf): Change type attribute to cr_logical.
1899
1900 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1901
1902 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
1903 ATTRIBUTE_PRINTF_2.
1904 * gengtype-lex.l: Fix format specifier warning.
1905
1906 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
1907 not isspace.
1908 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
1909 lieu of isspace/IDchar.
1910 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
1911 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
1912 ISSPACE.
1913
1914 2002-06-08 Zack Weinberg <zack@codesourcery.com>
1915
1916 * Makefile.in (LIBCPP_OBJS): Take out version.o.
1917 * cpphash.h (cpp_reader): Take out print_version member.
1918 * cppinit.c: (cpp_handle_option): Don't do anything with
1919 -version. Just set help_only for --version, --target-help.
1920 Just set verbose option for -v.
1921 (cpp_post_options): Don't print a version string.
1922
1923 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1924
1925 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
1926 (avr_section_type_flags): New, handle .noinit* sections.
1927
1928 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1929
1930 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
1931 and include netbsd_entry_point.
1932 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
1933 (NETBSD_ENTRY_POINT): Define.
1934
1935 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1936
1937 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
1938 if not already defined.
1939 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
1940
1941 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1942
1943 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
1944 in a noreturn function.
1945 (avr_output_function_prologue, avr_output_function_epilogue):
1946 Correct function size calculation. Do not crash on empty function.
1947 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
1948
1949 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1950
1951 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
1952 netbsd_link_spec and netbsd_entry_point.
1953 (LINK_SPEC): Use %(netbsd_link_spec).
1954 (NETBSD_ENTRY_POINT): Define.
1955
1956 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1957
1958 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
1959 linker emulation.
1960 (LINK_ARCH64_SPEC): Likewise.
1961 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
1962 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
1963
1964 2002-06-08 Marc Espie <espie@openbsd.org>
1965
1966 * lists.c (free_list): Fix typo in comment.
1967
1968 2002-06-08 Andreas Jaeger <aj@suse.de>
1969
1970 * lcm.c (optimize_mode_switching): Add unused attribute for
1971 variable.
1972
1973 * sched-deps.c (sched_analyze): Remove unused variable.
1974
1975 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
1976
1977 * diagnostic.def: Don't capitalize diagnostict descriptors.
1978
1979 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1980
1981 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
1982 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
1983 (NETBSD_ENTRY_POINT): Define.
1984
1985 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1986
1987 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
1988 NETBSD_LINK_SPEC_ELF.
1989 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
1990 (NETBSD_ENTRY_POINT): Define.
1991 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
1992 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
1993 netbsd_entry_point.
1994 (NETBSD_ENTRY_POINT): Define.
1995
1996 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
1997
1998 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
1999 netbsd_link_spec and netbsd_entry_point.
2000 (LINK_SPEC): Use %(netbsd_link_spec).
2001 (NETBSD_ENTRY_POINT): Define.
2002
2003 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
2004
2005 * config/netbsd-elf.h (LINK_SPEC): Rename to...
2006 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
2007 to specify program entry point.
2008
2009 2002-06-07 Jeff Law <law@redhat.com
2010
2011 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
2012 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
2013 than creating a new register.
2014 (distribute_notes): Likewise.
2015 * df.c (df_reg_use_gen): Likewise.
2016 (df_reg_clobber_gen): Likewise.
2017 (df_ref_record): Likewise.
2018 * expr.c (use_regs): Likewise.
2019 * flow.c (propagate_one_insn): Likewise.
2020 (mark_set_1): Likewise.
2021 (mark_used_reg): Likewise.
2022 * reload.c (emit_reload_insns): Likewise.
2023
2024 2002-06-07 Roger Sayle <roger@eyesopen.com>
2025
2026 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
2027 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
2028 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
2029 comparison code comp can be reversed.
2030
2031 2002-06-07 Roger Sayle <roger@eyesopen.com>
2032
2033 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
2034 constants last in comparisons. Optimize (x+1.0)>0.0 into the
2035 equivalent x > -1.0 when -ffast-math.
2036
2037 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
2038
2039 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
2040 * config/mips/t-netbsd: New file.
2041
2042 2002-06-07 Zack Weinberg <zack@codesourcery.com>
2043
2044 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
2045 options their own entries.
2046 (parse_option): Clarify comment.
2047 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
2048 special case. Replace if/strcmp chain for -W options with
2049 use of new OPT_* entries for them.
2050 (cpp_handle_options): Update to match.
2051 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
2052 * c-decl.c: Update call to cpp_handle_option.
2053
2054 2002-06-07 Akim Demaille <akim@epita.fr>
2055
2056 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
2057 Whitespace changes.
2058
2059 2002-06-07 Jeffrey Law <law@redhat.com>
2060
2061 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
2062 on empty lists.
2063
2064 2002-06-07 H.J. Lu (hjl@gnu.org)
2065
2066 * configure.in: Add --enable-__cxa_atexit.
2067 * configure: Regenerated.
2068 * config.in: Likewise.
2069
2070 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
2071 not defined.
2072
2073 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
2074
2075 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
2076
2077 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
2078
2079 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
2080
2081 2002-06-07 Jason Merrill <jason@redhat.com>
2082
2083 * cppexp.c (num_equality_op): Use a temporary variable to work
2084 around gcc 3.0.4 bug.
2085
2086 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
2087
2088 * diagnostic.c (diagnostic_build_prefix): Tidy.
2089
2090 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
2091
2092 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
2093 scan_parameters, save_replacement_text, replacement_length): New.
2094 (scan_out_logical_line): Take a macro and save parameters if
2095 non-NULL.
2096 (_cpp_logical_line_trad): Update.
2097 (_cpp_create_trad_definition): Update to handle function-like
2098 macros.
2099 * cpplex.c (new_buff): Update.
2100 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
2101 * cpphash.h: ...here.
2102 (CPP_ALIGN2, _cpp_save_parameter): New.
2103 * cppmacro.c (save_parameter): Rename, export.
2104 (parse_params): Update.
2105
2106 2002-06-07 Andreas Jaeger <aj@suse.de>
2107
2108 * config/mmix/mmix.c: Remove extra broken prototype for
2109 mmix_init_machine_status.
2110
2111 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
2112
2113 * gengtype.c: Add comments before all the routines.
2114
2115 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
2116
2117 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
2118 from and add t-sh64 to ${tmake_file}.
2119 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
2120 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
2121 * config/sh/t-netbsd-sh5-32: Remove.
2122 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
2123 MULTILIB_ENDIAN.
2124 (MULTILIB_DIRNAMES): Define.
2125
2126 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
2127
2128 * i386.md (and promoting splitters): Disable QI to SImode promoting
2129 when doing so changes immediate to be 32bit.
2130
2131 * rtl.h (emit_*_scope): Declare.
2132 * emit-rtl.c (emit_*_scope): New global functions.
2133 (try_split): Copy scope.
2134 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2135 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2136 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
2137 noce_process_if_block, find_cond_trap): Copy scopes.
2138 * recog.c (peephole2_optimize): likewise.
2139
2140 2002-06-06 Jeffrey Law <law@redhat.com>
2141
2142 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
2143
2144 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
2145
2146 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
2147
2148 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2149
2150 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
2151 ($(docdir)/gccinstall.info): New target.
2152 (info): Depend on it.
2153 (gccinstall.dvi): New target.
2154 (dvi): Depend on it.
2155 * doc/.cvsignore: Ignore new info files.
2156 * doc/install.texi (@setfilename): Reflect new info filename.
2157
2158 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
2159
2160 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
2161 on an UNSPEC.
2162
2163 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
2164
2165 PR objc/6834
2166 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
2167 c_common_get_alias_set.
2168 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
2169
2170 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
2171
2172 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
2173 functions.
2174 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
2175 * avr/avr.c (avr_output_function_epilogue): Use above to determine
2176 function size.
2177 * pa/pa.c (pa_output_function_prologue): Likewise.
2178
2179 2002-06-05 David S. Miller <davem@redhat.com>
2180
2181 * integrate.c (subst_constants): Handle 'B' RTL format.
2182
2183 2002-06-05 Eric Christopher <echristo@redhat.com>
2184
2185 * varasm.c (make_decl_rtl): Fix comment for removed
2186 halfpic.c.
2187
2188 2002-06-05 Eric Christopher <echristo@redhat.com>
2189
2190 * Makefile.in: Remove missed halfpic bits.
2191
2192 2002-06-05 Eric Christopher <echristo@redhat.com>
2193
2194 * toplev.c: Remove half-pic.
2195 * config/mips/mips.c: Ditto.
2196 * config/mips/mips.h: Ditto. Remove unused defines.
2197 * config/mips/openbsd.h: Update comment to reflect above.
2198 * config/mips/mips.md: Remove half-pic constraints.
2199 * halfpic.h: Delete.
2200 * halfpic.c: Ditto.
2201
2202 2002-06-05 Jeffrey Law <law@redhat.com>
2203
2204 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
2205 rejects (mem (lo_sum (reg) (unspec))), but will allow
2206 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
2207
2208 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
2209
2210 * cpphash.h (_cpp_create_definition): Update prototype.
2211 (_cpp_push_text_context, _cpp_create_trad_definition): New.
2212 ( cpp_lex_identifier_trad): New.
2213 (_cpp_set_trad_context): New.
2214 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
2215 * cpplib.c (SEEN_EOL): Update.
2216 (lex_macro_node): Update for -traditional.
2217 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
2218 * cppmacro.c (_cpp_create_definition): Split into
2219 create_iso_definition() and _cpp_create_trad_definition().
2220 (warn_of_redefinition): Update prototype; handle traditional
2221 macros.
2222 (_cpp_push_text_context): New.
2223 * cpptrad.c (skip_whitespace, push_replacement_text): New.
2224 (lex_identifier): Call ht_lookup with correct start.
2225 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
2226 _cpp_set_trad_context): New.
2227 (scan_out_logical_line): Update to handle changing contexts.
2228
2229 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
2230
2231 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
2232 (shl*-*-elf*): Add.
2233 * config/sh/t-be (MULTILIB_ENDIAN): Set.
2234 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
2235 * t-sh (MULTILIB_ENDIAN): Set.
2236 (MULTILIB_OPTIONS): Use it.
2237 * t-sh64 (MULTILIB_OPTIONS): Likewise.
2238 (MULTILIB_DIRNAMES): Likewise.
2239
2240 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
2241
2242 * toplev.h (report_error_function): Remove.
2243
2244 * diagnostic.h (location_t): New datatype.
2245 (text_info): Likewise.
2246 (diagnostic_info): Likewise.
2247 (output_prefix): New macro.
2248 (diagnostic_last_function_changed): Likewise.
2249 (diagnostic_set_last_function): Likewise.
2250 (diagnostic_last_module_changed): Likewise.
2251 (diagnostic_set_last_module): Likewise.
2252 (report_diagnostic): Now macro.
2253 (diagnostic_set_info): Declare.
2254
2255 * diagnostic.c (report_problematic_module): Rename to
2256 diagnostic_repor_current_module.
2257 (set_diagnostic_context): Remove.
2258 (count_error): Rename to diagnostic_error_count.
2259 (error_function_changed): Remove.
2260 (record_last_error_function): Likewise.
2261 (error_module_changed): Likewise.
2262 (record_last_error_module): Likewise.
2263 (context_as_prefix): Rename to diagnostic_build_prefix.
2264 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
2265 (diagnostic_set_info): New function.
2266
2267 * objc/objc-act.c: #include diagnostic.h
2268 (error_with_ivar): Adjust call to count_error.
2269 (warn_with_method): Likewise.
2270 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
2271
2272 2002-06-05 Bob Wilson <bob.wilson@acm.org>
2273
2274 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
2275 lang_hooks.types.make_type instead of make_node; set up
2276 __va_list_tag type decl.
2277 (xtensa_builtin_saveregs): Remove broken use of
2278 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
2279 for saved registers; add varargs alias set.
2280
2281 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
2282
2283 config:
2284 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
2285 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
2286 CPP_PREDEFINES and part of CPP_SPEC.
2287 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
2288 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
2289
2290 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
2291
2292 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
2293
2294 2002-06-05 Alan Modra <amodra@bigpond.net.au>
2295
2296 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
2297
2298 2002-06-04 Zack Weinberg <zack@codesourcery.com>
2299
2300 * gengtype-yacc.y: Make sure all rules end with a semicolon.
2301
2302 2002-06-04 Bob Wilson <bob.wilson@acm.org>
2303
2304 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
2305 typo in function prototype and include "ggc.h" header.
2306
2307 2002-06-04 Richard Henderson <rth@redhat.com>
2308
2309 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
2310 (print_operand) ['U']: Likewise.
2311 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
2312 (alpha_expand_unaligned_store_words): Likewise.
2313 (alpha_expand_builtin_vector_binop): Fix typo.
2314 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
2315 umulh, and cix insns.
2316 (one_arg_builtins): Add cix builtins.
2317 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
2318 (alpha_expand_builtin): Fix typo in arity.
2319 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
2320 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
2321 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
2322 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
2323 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
2324 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
2325 builtin_ctlz, builtin_ctpop): New.
2326 * doc/extend.texi (Alpha Built-in Functions): Update.
2327
2328 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
2329
2330 * gengtype.c (write_gc_root): Don't unnecessarily prevent
2331 global variable-length arrays being roots.
2332
2333 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
2334 * configure.in (config_gtfiles): New variable.
2335 (all_gtfiles): Initialise from config_gtfiles.
2336 * configure: Regenerate.
2337
2338 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
2339
2340 config/i386:
2341 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
2342 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
2343 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
2344 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
2345 win32.h (CPP_SPEC): Remove cpp_cpu.
2346 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
2347 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
2348
2349 2002-06-04 Janis Johnson <janis187@us.ibm.com>
2350
2351 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
2352
2353 2002-06-04 Jeff Law <law@redhat.com.
2354 David Edelsohn <edelsohn@gnu.org>
2355 Michael Matz <matz@kde.org>
2356
2357 * sched-int.h (struct deps): New field libcall_block_tail_insn.
2358 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
2359 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
2360 is set, then mark the current insn as being part of a libcall
2361 scheduling group.
2362 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
2363
2364 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
2365 insns against the issue rate.
2366
2367 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
2368
2369 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
2370 * final.c (final_scan_insn): Likewise.
2371 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
2372 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
2373 * haifa-sched.c (unlink_other_notes): Likeewise.
2374 (reemit_notes): Likewise.
2375 * print-rtl.c (print_rtx): Likewise.
2376 * sched-deps (sched-analyze): Likewise.
2377 * rtl.c (note_insn_name): Likewise.
2378 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
2379 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
2380 (RANGE_*): Kill.
2381
2382 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
2383
2384 * varasm.c (mark_constants): Handle RTX format 'B'.
2385
2386 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
2387
2388 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
2389 (struct cpp_context): Add traditional fields.
2390 * cppmacro.c (paste_all_tokens, push_ptoken_context,
2391 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
2392 * cpptrad.c (skip_comment, lex_identifier,
2393 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
2394
2395 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
2396
2397 * gbl-ctors.h: Fix formatting.
2398 * gcc.c: Likewise.
2399 * gccspec.c: Likewise.
2400 * gcov.c: Likewise.
2401 * gcov-io.h: Likewise.
2402 * gcse.c: Likewise.
2403 * ggc-common.c: Likewise.
2404 * ggc.h: Likewise.
2405 * ggc-page.c: Likewise.
2406 * ggc-simple.c: Likewise.
2407 * global.c: Likewise.
2408 * graph.h: Likewise.
2409 * gthr-dce.h: Likewise.
2410 * gthr.h: Likewise.
2411 * gthr-posix.h: Likewise.
2412 * gthr-rtems.h: Likewise.
2413 * gthr-solaris.h: Likewise.
2414 * gthr-win32.h: Likewise.
2415
2416 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
2417
2418 Merge from pch-branch:
2419
2420 * gengtype.h (UNION_OR_STRUCT_P): New macro.
2421 * gengtype.c (write_gc_structure_fields): Use it.
2422 (write_gc_root): Use it here too.
2423
2424 * gengtype.c (write_gc_structure_fields): Assume that lengths
2425 of typenames fit into an 'int'; don't pass a size_t to "%d" in
2426 printf.
2427 (write_gc_marker_routine_for_structure): Likewise.
2428 (write_gc_types): Likewise.
2429 (write_gc_root): Likewise.
2430
2431 * varray.h (VARRAY_CLEAR): New.
2432 (varray_clear): Prototype.
2433 * varray.c (varray_clear): New.
2434 * cselib.c (reg_values_old): New.
2435 (used_regs_old): New.
2436 (cselib_init): Use cached varrays if available to avoid
2437 generating large amounts of garbage.
2438 (cselib_finish): Don't throw away old varrays.
2439
2440 * final.c (insn_addresses_): Move out of ifdef.
2441
2442 * varray.c (uses_ggc): Make more varray kinds GCable.
2443 * varray.h (union varray_data_tag): Let gengtype see
2444 fields 'generic' and 'te'.
2445 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
2446 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
2447 (reg_to_stack): Don't call VARRAY_FREE.
2448 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
2449 (insn_addresses_): Use gengtype to mark.
2450 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
2451 pointers; handle generic pointers in unused union fields.
2452 (get_output_file_with_visibility): Include cselib.h,
2453 insn-addr.h in gtype-desc.c.
2454 * function.c (prologue): Use gengtype to mark.
2455 (epilogue): Likewise.
2456 (sibcall_epilogue): Likewise.
2457 * dependence.c: Include gt-dependence.h, ggc.h.
2458 (struct def_use): Use gengtype to mark.
2459 (struct loop): Likewise.
2460 (struct induction): Likewise.
2461 (struct dependence): Likewise.
2462 (def_use_chain): Likewise.
2463 (dep_chain): Likewise.
2464 (loop_chain): Likewise.
2465 (induction_chain): Likewise.
2466 (init_dependence_analysis): Don't free anything, just clear pointers.
2467 (build_def_use): Use GGC to allocate def_use.
2468 (add_loop): Use GGC to allocate loop.
2469 (find_induction_variable): Use GGC to allocate induction.
2470 (check_node_dependence): Use GGC to allocate induction, dependence.
2471 (dump_node_dependence): Don't free varrays.
2472 (end_dependence_analysis): Likewise.
2473 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
2474 (struct elt_loc_list): Likewise.
2475 (struct elt_list): Likewise.
2476 * cselib.c: Don't include obstack.h.
2477 (hash_table): Use gengtype to mark.
2478 (reg_values): Use gengtype to mark.
2479 (used_regs): Use gengtype to mark.
2480 (cselib_obstack): Delete.
2481 (cselib_startobj): Delete.
2482 (empty_vals): Mark as deletable.
2483 (empty_elt_lists): Mark as deletable.
2484 (empty_elt_loc_lists): Mark as deletable.
2485 (new_elt_list): Use GGC to allocate struct elt_list.
2486 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
2487 (clear_table): Don't delete obstack; don't unnecessarily clear
2488 deletable variables.
2489 (new_cselib_val): Use GGC to allocate struct cselib_val.
2490 (cselib_init): Don't set up obstacks. Use GGC to allocate
2491 hash table.
2492 (cselib_finish): Just clear variables, don't free anything.
2493 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
2494 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
2495 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
2496 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
2497 (gt-reg-stack.h): New rule.
2498 (gt-dependence.h): New rule.
2499 (gtype-desc.o): Add cselib.h, insn-addr.h.
2500
2501 * varray.c: Use only necessary headers.
2502 (element_size): New.
2503 (uses_ggc): New.
2504 (varray_init): Take type, not size. Use GGC if appropriate.
2505 (varray_grow): Update for change to struct varray_head_tag.
2506 Use GGC if appropriate.
2507 * varray.h (struct const_equiv_data): Use gengtype.
2508 (enum varray_data_enum): New.
2509 (union varray_data_tag): Use gengtype.
2510 (struct varray_head_tag): Use gengtype. Replace size field with
2511 enum varray_data_enum.
2512 (varray_init): Update prototype.
2513 (VARRAY_SCHED_INIT): Delete.
2514 (VARRAY_*_INIT): Update for change to varray_init.
2515 (VARRAY_SCHED): Delete.
2516 (VARRAY_PUSH_SCHED): Delete.
2517 (VARRAY_TOP_SCHED): Delete.
2518 * tree.h: Update for change to length specifier.
2519 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
2520 (clone_body): Likewise.
2521 * ssa.h (ssa_definition): Use gengtype to mark.
2522 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
2523 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
2524 * rtl.h (struct rtvec_def): Update for change to length specifier.
2525 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
2526 (struct initial_value_struct): Update for change to length specifier.
2527 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
2528 (ggc_add_tree_varray_root): Delete prototype.
2529 (ggc_mark_rtx_varray): Delete prototype.
2530 (ggc_mark_tree_varray): Delete prototype.
2531 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
2532 (ggc_add_tree_varray_root): Delete.
2533 (ggc_mark_rtx_varray): Delete.
2534 (ggc_mark_tree_varray): Delete.
2535 (ggc_mark_rtx_varray_ptr): Delete.
2536 (ggc_mark_tree_varray_ptr): Delete.
2537 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
2538 (create_varray): Delete prototype.
2539 * gengtype.c (varrays): Delete.
2540 (create_varray): Delete.
2541 (adjust_field_type): Detect array of string pointers.
2542 (process_gc_options): Remove code to handle varray_type option.
2543 (set_gc_used_type): Remove TYPE_VARRAY case.
2544 (output_escaped_param): New.
2545 (write_gc_structure_fields): Use output_escaped_param on all
2546 parameters. Handle 'skip' with 'use_param' option. Handle
2547 arrays of strings. Remove TYPE_VARRAY handling.
2548 (write_gc_roots): Use boolean to detect 'length' option.
2549 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
2550 (struct_fields): Call adjust_field_type on array fields.
2551 (type): Remove VARRAY_TYPE case.
2552 (type_option): Likewise.
2553 * gengtype-lex.l: Don't consider varray_type a keyword.
2554 * function.h: Update for change to length specifier.
2555 (free_eh_status): Delete prototype.
2556 * function.c (free_after_compilation): Don't call free_eh_status.
2557 (reorder_blocks): Don't use VARRAY_FREE.
2558 * except.c (struct eh_status): Update for change to length specifier.
2559 remove varray_type specifier.
2560 (free_eh_status): Delete.
2561 * dwarf2out.c: Include gt-dwarf2out.h.
2562 (used_rtx_varray): Use gengtype to mark, move
2563 outside ifdefs.
2564 (incomplete_types): Likewise.
2565 (decl_scope_table): Likewise.
2566 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
2567 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
2568 * c-tree.h (struct lang_type): Update for change to length specifier.
2569 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
2570 * c-objc-common.c: Include gt-c-objc-common.h.
2571 (deferred_fns): Mark for gengtype.
2572 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
2573 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
2574 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
2575 (gtype-desc.o): Update dependencies.
2576 (dwarf2out.o): Add gt-dwarf2out.h.
2577 (varray.o): Update dependencies.
2578 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
2579 (gt-c-objc-common.h): New rule.
2580 (gt-dwarf2out.h): New rule.
2581 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
2582
2583 * doc/gty.texi (GTY Options): Correct spelling.
2584 (GGC Roots): Likewise.
2585 * Makefile.in (TEXI_CPP_FILES): New.
2586 (TEXI_GCC_FILES): New.
2587 (TEXI_GCCINT_FILES): New.
2588 (TEXI_CPPINT_FILES): New.
2589 ($(docdir)/cpp.info): Use new macros.
2590 ($(docdir)/gcc.info): Likewise.
2591 ($(docdir)/gccint.info): Likewise.
2592 ($(docdir)/cppinternals.info): Likewise.
2593 (cpp.dvi): Likewise.
2594 (gcc.dvi): Likewise.
2595 (gccint.dvi): Likewise.
2596 (cppinternals.dvi): Likewise.
2597
2598 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
2599 * doc/gccint.texi (Top): Include gty.texi.
2600 * doc/gty.texi: New file.
2601
2602 * bitmap.c: Include ggc.h, gt-bitmap.h.
2603 (bitmap_ggc_free): New.
2604 (bitmap_elem_to_freelist): New.
2605 (bitmap_element_free): Use bitmap_elem_to_freelist.
2606 (bitmap_element_allocate): Allow use of GGC.
2607 (bitmap_clear): Use bitmap_elem_to_freelist.
2608 (bitmap_copy): Update for change to bitmap_element_allocate.
2609 (bitmap_set_bit): Likewise.
2610 (bitmap_operation): Update for changes elsewhere.
2611 (bitmap_initialize): Allow to create bitmaps that will use GGC.
2612 * bitmap.h (struct bitmap_element_def): Use gengtype.
2613 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
2614 (bitmap_initialize): Add extra parameter.
2615 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
2616 (BITMAP_ALLOCA): Delete.
2617 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
2618 (BITMAP_GGC_ALLOC): New.
2619 * Makefile.in (gtype-desc.o): Add bitmap.h.
2620 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
2621 (GTFILES): Add bitmap.c.
2622 (gt-bitmap.h): New rule.
2623 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
2624 * basic-block.h: Update for changes to bitmap_initialize.
2625 * except.c (exception_handler_label_map): Move into...
2626 (struct eh_status): Here.
2627 (struct eh_region): Make 'aka' GCable.
2628 (free_eh_status): Don't need to specially handle
2629 exception_handler_label_map.
2630 (add_ehl_entry): Update for changes to exception_handler_label_map.
2631 (find_exception_handler_labels): Likewise.
2632 (remove_exception_handler_label): Likewise.
2633 (maybe_remove_eh_handler): Likewise.
2634 (for_each_eh_label): Likewise.
2635 (remove_eh_handler): Allocate 'aka' using GGC.
2636 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
2637 to list of includes.
2638
2639 * gengtype.c (write_gc_marker_routine_for_structure): Name
2640 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
2641 (write_gc_types): Arrange for the tests with NULL to be inlined.
2642 (write_gc_roots): Update uses of procedure pointers.
2643 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
2644
2645 * Makefile.in (explow.o): Add dependency on gt-explow.h.
2646 (sdbout.o): Add dependency on gt-sdbout.h.
2647
2648 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
2649 (mem_attrs_htab): Likewise.
2650 (init_emit_once): Don't call ggc_add_deletable_htab.
2651 * fold-const.c (size_htab): Use gengtype to clear unused entries.
2652 (size_int_type_wide): Don't call ggc_add_deletable_htab.
2653 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
2654 parameters, use them, change callers.
2655 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
2656 (write_gc_roots): Handle 'if_marked' option.
2657 (main): Don't need to call set_gc_used_type any more.
2658 * ggc.h (ggc_htab_marked_p): Delete.
2659 (ggc_htab_mark): Delete.
2660 (struct ggc_cache_tab): New.
2661 (gt_ggc_cache_rtab): New declaration.
2662 * ggc-common.c (struct d_htab_root): Delete.
2663 (d_htab_roots): Delete.
2664 (ggc_add_deletable_htab): Delete.
2665 (ggc_htab_delete): Handle new htab-deleting mechanism.
2666 (ggc_mark_roots): Use new htab-deleting mechanism.
2667 * tree.c (type_hash_table): Use gengtype to clear unused entries.
2668 Make static.
2669 (init_obstacks): Don't call ggc_add_deletable_htab.
2670
2671 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
2672 (struct hashed_entry): Likewise.
2673 (nst_method_hash_list): Likewise.
2674 (cls_method_hash_list): Likewise.
2675 (HASH_ALLOC_LIST_SIZE): Delete.
2676 (ATTR_ALLOC_LIST_SIZE): Delete.
2677 * objc/objc-act.c (hash_init): Use ggc to allocate
2678 nst_method_hash_list, cls_method_hash_list.
2679 (hash_enter): Use ggc to allocate; allocate one entry at a time.
2680 (hash_add_attr): Likewise.
2681 (ggc_mark_hash_table): Delete.
2682 (objc_act_parse_init): Delete.
2683 (objc_init): Delete reference to objc_act_parse_init.
2684 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
2685 obstack.h. Replace references to 'struct hash_table' with htab_t.
2686 (struct symbol_hash_entry): Replace hash header with key field.
2687 (struct file_hash_entry): Replace hash header with key field.
2688 (struct demangled_hash_entry): Replace hash header with key field.
2689 (hash_string_eq): New.
2690 (hash_string_hash): New.
2691 (symbol_hash_newfunc): Delete.
2692 (symbol_hash_lookup): Modify to use htab_t.
2693 (file_hash_newfunc): Delete.
2694 (file_hash_lookup): Modify to use htab_t.
2695 (demangled_hash_newfunc): Delete.
2696 (demangled_hash_lookup): Modify to use htab_t.
2697 (tlink_init): Modify to use htab_t.
2698 * hash.h: Delete.
2699 * hash.c: Delete.
2700 * ggc.h: Delete forward structure declarations.
2701 Delete prototypes for deleted functions.
2702 * ggc-common.c: Don't include hash.h.
2703 (ggc_add_tree_hash_table_root): Delete.
2704 (ggc_mark_tree_hash_table_entry): Delete.
2705 (ggc_mark_tree_hash_table): Delete.
2706 (ggc_mark_tree_hash_table_ptr): Delete.
2707 * gengtype.c (write_gc_structure_fields): Allow param_is option.
2708 (write_gc_marker_routine_for_structure): Use visibility of
2709 the parameter if there is one.
2710 * function.c: Replace hash.h with hashtab.h. Replace references
2711 to 'struct hash_table *' with htab_t.
2712 (struct insns_for_mem_entry): Include a plain key.
2713 (fixup_var_refs_insns_with_hash): Update to use htab_t.
2714 (insns_for_mem_newfunc): Delete.
2715 (insns_for_mem_hash): Update to use htab_t.
2716 (insns_for_mem_comp): Likewise.
2717 (insns_for_mem_walk): Likewise.
2718 * c-lang.c: Include ggc.h.
2719 * Makefile.in (OBJS): Remove hash.o.
2720 (c-lang.o): Add GGC_H.
2721 (COLLECT2_OBJS): Remove hash.o.
2722 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
2723 (ggc-common.o): Remove hash.h.
2724 (function.o): Remove hash.h, add HASHTAB_H.
2725 (genautomata.o): Remove hash.h, add HASHTAB_H.
2726
2727 * varasm.c (mark_const_str_htab_1): Delete.
2728 (mark_const_str_htab): Delete.
2729 (const_str_htab_del): Delete.
2730 (const_str_htab): Use gengtype to mark.
2731 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
2732 allocate them.
2733 * tree.c (mark_tree_hashtable_entry): Delete.
2734 (mark_tree_hashtable): Delete.
2735 * tree.h (mark_tree_hashtable): Delete prototype.
2736 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
2737 (ggc_mark): Likewise.
2738 (ggc_calloc): New.
2739 (htab_create_ggc): New.
2740 * ggc-common.c (ggc_calloc): New.
2741 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
2742 (struct type): Add param_struct structure.
2743 * gengtype.c (param_structs): New.
2744 (adjust_field_type): Handle param_is option.
2745 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
2746 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
2747 (write_gc_structure_fields): Add new PARAM parameter. Update
2748 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
2749 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
2750 Use it to generate function name. Update callers.
2751 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
2752 Process them.
2753 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
2754 option.
2755 (main): Define PTR as pointer-to-scalar. Don't specially
2756 mark deferred_string or ehl_map_entry.
2757 * gengtype-yacc.y (PARAM_IS): Add new token.
2758 (externstatic): Use adjust_field_type.
2759 (type_option): Add PARAM_IS.
2760 * gengtype-lex.l: Add rule for typedef of function pointers.
2761 Add rule for PARAM_IS.
2762 (IWORD): Add size_t.
2763 * except.c (exception_handler_label_map): Use gengtype to mark.
2764 (type_to_runtime_map): Likewise.
2765 (mark_ehl_map_entry): Delete.
2766 (mark_ehl_map): Delete.
2767 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
2768 (t2r_mark_1): Delete.
2769 (t2r_mark): Delete.
2770 * Makefile.in (gtype-desc.o): Correct dependencies.
2771 (GTFILES): Add hashtab.h.
2772 (genautomata.o): Actually uses hashtab.h.
2773
2774 * Makefile.in (stringpool.o): Add $(GGC_H).
2775 (dwarf2asm.o): Likewise.
2776 (GTFILES): Add hashtable.h.
2777 * c-common.h (struct c_common_identifier): Use gengtype.
2778 * c-decl.h (c_mark_tree): Delete.
2779 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
2780 * c-tree.h (struct lang_identifier): Use gengtype.
2781 (union lang_tree_node): New.
2782 (c_mark_tree): Delete prototype.
2783 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
2784 dwarf2_debug_hooks.
2785 * gengtype-lex.l (IWORD): Allow 'bool'.
2786 (ptr_alias): Match.
2787 * gengtype-yacc.y (ALIAS): New token.
2788 (type_option): New rule.
2789 (option): Use type_option.
2790 * gengtype.c (process_gc_options): New.
2791 (set_gc_used_type): Use it.
2792 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
2793 Add new variable 't' to hold the type of the field being processed.
2794 Add more error checking. Use UNION_P when looking at 'desc' option.
2795 Handle language-specific structures containing other
2796 language-specific structures.
2797 (write_gc_types): Handle 'ptr_alias' option.
2798 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
2799 * ggc-common.c (ggc_pending_trees): Delete.
2800 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
2801 (ggc_mark_trees): Delete.
2802 (gt_ggc_m_tree_node): Delete.
2803 * ggc.h (ggc_pending_trees): Delete.
2804 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
2805 * hashtable.h (ht_identifier): Use gengtype.
2806 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
2807 * langhooks.h (struct lang_hooks): Delete mark_tree.
2808 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
2809 anyway.
2810 * system.h: Poison LANG_HOOKS_MARK_TREE.
2811 * tree.c (tree_node_structure): New.
2812 * tree.h (struct tree_common): Use gengtype.
2813 (struct tree_int_cst): Likewise.
2814 (struct tree_real_cst): Likewise.
2815 (struct tree_string): Likewise.
2816 (struct tree_complex): Likewise.
2817 (struct tree_vector): Likewise.
2818 (struct tree_identifier): Likewise.
2819 (struct tree_list): Likewise.
2820 (struct tree_vec): Likewise.
2821 (struct tree_exp): Likewise.
2822 (struct tree_block): Likewise.
2823 (struct tree_type): Likewise.
2824 (struct tree_decl): Likewise.
2825 (enum tree_structure_enum): New.
2826 (union tree_node): Use gengtype, with an alias.
2827 (tree_node_structure): Prototype.
2828 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
2829
2830 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
2831 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
2832 to LANG_HOOKS_FUNCTION_FINAL.
2833 * Makefile.in (GTFILES): Add bitmap.h.
2834 * except.c (struct eh_region): Mark field 'aka' to be skipped.
2835
2836 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
2837 (alpha_init_machine_status): Give proper type.
2838 * Makefile.in (c-lang.o): Depend on gtype-c.h.
2839 (optabs.o): Depend on gt-optabs.h.
2840 (GTFILES): Add optabs.o.
2841 (gt-optabs.h): Add rule.
2842 * optabs.c: Include gt-optabs.h.
2843
2844 * gengtype.c (set_gc_used_type): Correct some errors in last change.
2845 (write_gc_structure_fields): If a field which should be NULL is
2846 not, abort.
2847 * c-pragma.c: Move struct align_stack and variable alignment_stack
2848 out from the ifdef.
2849
2850 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
2851 * config/xtensa/xtensa.c: Include gt-cris.h.
2852 (struct machine_function): Use gengtype to mark.
2853 * config/mmix/mmix.h (struct machine_function): Use gengtype
2854 to mark.
2855 * config/cris/t-cris: Add dependencies for gt-cris.h.
2856 * config/cris/cris.c: Include gt-cris.h.
2857 (struct machine_function): Use gengtype to mark.
2858 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
2859 to mark.
2860 * doc/tm.texi (Per-Function Data): Delete references to
2861 mark_machine_status.
2862 * config/ia64/ia64.c (ia64_override_options): Don't set
2863 mark_machine_status.
2864 * config/i386/i386.c (override_options): Likewise.
2865 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
2866 * config/arm/arm.c (arm_init_expanders): Likewise.
2867 * config/alpha/alpha.c (override_options): Likewise.
2868 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
2869 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
2870 (write_gc_structure_fields): Don't handle 'really' option.
2871 Handle 'maybe_null' option.
2872 (write_gc_types): Handle 'maybe_null' option.
2873 * function.h (struct function): Don't use "really".
2874 (mark_machine_status): Delete declaration.
2875 (mark_lang_status): Delete declaration.
2876 (gt_ggc_mr_machine_function): Delete prototype.
2877 (gt_ggc_mr_language_function): Delete prototype.
2878 * function.c (mark_machine_status): Delete.
2879 (mark_lang_status): Delete.
2880 (gt_ggc_mr_machine_function): Delete.
2881 (gt_ggc_mr_language_function): Delete.
2882 * c-tree.h (mark_c_function_context): Delete prototype.
2883 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
2884 * c-decl.c (struct language_function): Rename from struct
2885 c_language_function. Update uses. Use gengtype to mark.
2886 (mark_c_function_context): Delete.
2887 * c-common.h (struct c_language_function): Rename from struct
2888 language_function.
2889 (mark_stmt_tree): Delete prototype.
2890 (c_mark_lang_decl): Delete prototype.
2891 (mark_c_language_function): Delete prototype.
2892 * c-common.c (mark_stmt_tree): Delete.
2893 (c_mark_lang_decl): Delete.
2894 (mark_c_language_function): Delete.
2895
2896 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
2897 (lang_bitmap): New typedef. Use where appropriate.
2898 (struct type): Add gc_used field, lang_struct field.
2899 (UNION_P): New macro.
2900 (new_structure): New prototype.
2901 (find_structure): Remove 'pos' parameter. Change all callers.
2902 * gengtype-lex.l: Update for changes to find_structure.
2903 * gengtype-yacc.y (typedef_struct): Use new_structure.
2904 (yacc_ids): Suppress warning.
2905 (type): Use new_structure.
2906 * gengtype.c (string_type): Update for changes to struct type.
2907 (find_structure): Just find a structure, don't worry about
2908 creating one.
2909 (new_structure): New.
2910 (note_yacc_type): Use new_structure.
2911 (set_gc_used_type): New.
2912 (set_gc_used): New.
2913 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
2914 (write_gc_types): Handle TYPE_LANG_STRUCT.
2915 (write_gc_marker_routine_for_structure): New.
2916 (main): Call set_gc_used. Add some calls to set_gc_used_type
2917 for places where GCC doesn't use gengtype properly yet.
2918 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
2919 (gt_ggc_m_tree_node): Likewise.
2920
2921 * varasm.c (copy_constant): Call expand_constant if we hit
2922 something we can't recognise.
2923
2924 * ggc-common.c (ggc_mark_rtvec_children): Delete.
2925 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
2926 (lang_mark_false_label_stack): Delete.
2927 * rtl.h (struct rtvec_def): Use gengtype to mark.
2928 * ggc.h (ggc_mark_rtvec): Delete.
2929 (gt_ggc_m_rtvec_def): Delete.
2930 (ggc_mark_nonnull_tree): Delete.
2931 (ggc_mark_rtvec_children): Delete prototype.
2932 (lang_mark_false_label_stack): Delete declaration.
2933
2934 * gengtype.h (note_yacc_type): Add prototype.
2935 * gengtype.c (note_yacc_type): New function.
2936 * gengtype-lex.l: Add lexer support for yacc files.
2937 * gengtype-yacc.y (start): Extract union from yacc files.
2938 (yacc_union): New rule.
2939 (yacc_typematch): New rule.
2940 (yacc_ids): New rule.
2941 (enum_items): Tweak for efficiency.
2942 (optionseq): Likewise.
2943
2944 * c-common.h (struct language_function): Use gengtype.
2945 (struct c_lang_decl): Likewise.
2946 * c-tree.h (struct lang_decl): Likewise.
2947 (struct lang_type): Likewise.
2948 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
2949 tree language substructures.
2950
2951 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
2952 ggc_mark_tree.
2953 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
2954
2955 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
2956
2957 * stmt.c (struct nesting): Add discriminator. Use gengtype to
2958 mark. Remove 'data.block.cleanup_ptr' field.
2959 (struct stmt_status): Use usual technique to mark struct nesting.
2960 (gt_ggc_mr_nesting_cond): Delete.
2961 (gt_ggc_mr_nesting_loop): Delete.
2962 (gt_ggc_mr_nesting_block): Delete.
2963 (gt_ggc_mr_nesting_case_stmt): Delete.
2964 (expand_start_cond): Set discriminator.
2965 (expand_start_loop): Likewise.
2966 (expand_start_null_loop): Likewise.
2967 (expand_start_bindings_and_block): Set discriminator. Don't set
2968 deleted fields.
2969 (expand_decl_cleanup): Replace 'cleanup_ptr' with
2970 &thisblock->data.block.cleanups.
2971 (expand_start_case): Set discriminator.
2972 (expand_start_case_dummy): Set discriminator.
2973
2974 * ggc-callbacks.c: Remove.
2975
2976 * gengtype.h (struct type): Add 'u.s.bitmap' field.
2977 (find_structure): Add 'pos' parameter.
2978 * gengtype-lex.l: Update callers to find_structure.
2979 * gengtype-yacc.y: Likewise.
2980 * gengtype.c (find_structure): Allow for structures to be defined
2981 in multiple language backends.
2982 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
2983 (counter): Rename to gc_counter.
2984 (write_gc_structure_fields): Fail when writing out fields for
2985 an incomplete structure. Ignore arrays of scalars. Handle
2986 'tree_vec' special.
2987 (write_gc_types): Reset counter for each procedure written.
2988
2989 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
2990 (free_case_nodes): Delete.
2991 (expand_end_case_type): Delete call to free_case_nodes.
2992
2993 * Makefile.in (cselib.o): Include gt-<filename>.h.
2994 (gcse.o): Likewise.
2995 (profile.o): Likewise.
2996 (alias.o): Likewise.
2997 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
2998 alphabetize backend files.
2999 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
3000 * alias.c: Use gengtype for roots.
3001 * c-common.h (struct stmt_tree_s): Use gengtype.
3002 * c-decl.c: Use gengtype for roots.
3003 * cselib.c: Use gengtype for roots.
3004 * expr.c: Use gengtype for roots.
3005 * fold-const.c: Use gengtype for roots.
3006 * gcse.c: Use gengtype for roots.
3007 * gengtype-lex.l: Handle typedefs of function types.
3008 Allow for empty array bounds.
3009 Allow processing to stop on initialisers.
3010 * gengtype-yacc.y (externstatic): Stop processing on initialisers.
3011 (semiequal): New rule.
3012 * gengtype.c (create_file): Tidy output files.
3013 (get_output_file_with_visibility): Fix paren warning. Fix bug
3014 involving multiple input files mapping to one output file.
3015 (write_gc_structure_fields): Skip arrays of scalars.
3016 (write_gc_types): Tidy output files.
3017 (write_gc_root): New function.
3018 (write_gc_roots): Fix bugs, add support for roots that are
3019 structures.
3020 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
3021 (ggc_mark_tree_ptr): Delete.
3022 (ggc_add_rtx_root): Delete.
3023 (ggc_add_tree_root): Delete.
3024 (ggc_del_root): Delete.
3025 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
3026 allocate struct initial_value_struct.
3027 * profile.c: Use gengtype for roots.
3028 * sdbout.c: Use gengtype for roots.
3029 * varasm.c (mark_weak_decls): Delete unused prototype.
3030 (mark_const_hash_entry): Delete unused function.
3031 * config/darwin-protos.h: Use gengtype for roots.
3032 (machopic_add_gc_roots): Delete.
3033 * config/arm/arm.c: Use gengtype for roots.
3034 * config/arm/arm.h: Use gengtype for roots.
3035 * config/c4x/c4x-protos.h: Use gengtype for roots.
3036 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
3037 * config/d30v/d30v-protos.h: Use gengtype for roots.
3038 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
3039 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
3040 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
3041 * config/ia64/ia64-protos.h: Use gengtype for roots.
3042 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
3043 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
3044 * config/m68hc11/m68hc11.c (z_reg): Make global.
3045 (z_reg_qi): Make global.
3046 (m68hc11_add_gc_roots): Delete.
3047 * config/mcore/mcore-protos.h: Use gengtype for roots.
3048 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
3049 * config/mips/mips.c (mips_add_gc_roots): Delete.
3050 * config/mips/mips.h: Use gengtype for roots.
3051 * config/mmix/mmix.c (override_options): Use gengtype for roots.
3052 * config/mmix/mmix.h: Use gengtype for roots.
3053 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
3054 * config/mn10200/mn10200.h: Use gengtype for roots.
3055 * config/pa/pa.c: Use gengtype for roots, marking.
3056 (struct deferred_plabel): Use GGC, gengtype.
3057 (pa_add_gc_roots): Delete.
3058 (mark_deferred_plabels): Delete.
3059 * config/pj/pj-protos.h: Use gengtype for roots.
3060 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
3061 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
3062 machopic_add_gc_roots.
3063 * config/rs6000/rs6000.h: Use gengtype for roots.
3064 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
3065 (gt-darwin.h): Add rule.
3066 * config/sh/sh.c: Use gengtype for roots.
3067 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
3068 (gt-sh.h): Add rule.
3069 * config/sparc/sparc.c: Use gengtype for roots.
3070 (sparc_add_gc_roots): Delete.
3071 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
3072 (mark_ultrasparc_pipeline_state): Delete.
3073 * config/sparc/sparc.h: Use gengtype for roots.
3074
3075 * Makefile.in (c-parse.o): Update dependencies.
3076 (c-common.o): Likewise.
3077 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
3078 Add dependencies for the files they generate.
3079 * c-common.c: Replace ggc_add_* uses with GTY annotations.
3080 * c-common.h: Likewise.
3081 * c-decl.c: Likewise.
3082 (gt_ggc_mp_binding_level): Delete.
3083 * c-lang.c: Include gtype-c.h.
3084 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
3085 gt-c-parse.h.
3086 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
3087 (gt_ggc_mp_align_stack): Delete.
3088 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
3089 * function.c: Replace ggc_add_* uses with GTY annotations.
3090 (gt_ggc_mp_function): Delete.
3091 * function.h: Replace ggc_add_* uses with GTY annotations.
3092 * gengtype.c (lang_names): New.
3093 (NUM_BASE_FILES): New.
3094 (open_base_files): Create language base files.
3095 (startswith): New.
3096 (get_file_basename): New.
3097 (get_base_file_bitmap): New.
3098 (get_output_file_with_visibility): Rename from get_output_file.
3099 Add more mappings for various C/Objc filenames.
3100 (finish_root_table): New.
3101 (write_gc_roots): Handle dependencies and scoping properly.
3102 * gengtype.h: Add prototypes for new functions.
3103 * ggc-common.c (struct deletable_root): Delete.
3104 (deletables): Delete.
3105 (ggc_add_deletable_root): Delete.
3106 (ggc_mark_roots): No need to deal with deleted functionality.
3107 * ggc.h (ggc_add_deletable_root): Delete prototype.
3108 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
3109 (gtype-objc.h): Add rule to create.
3110 * objc/config-lang.in (gtfiles): New.
3111 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
3112 ggc_add_* with GTY markers. Include gtype-objc.h.
3113 (ggc_mark_imp_list): Delete.
3114 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
3115 * objc/objc-lang.c: Random Whitespace Change.
3116
3117 * except.h (exception_handler_labels): Delete.
3118 (get_exception_handler_labels): New.
3119 * except.c (exception_handler_labels): Delete.
3120 (struct eh_status): Add exception_handler_labels field.
3121 (doing_eh): Don't add exception_handler_labels as root.
3122 (free_eh_status): Don't need to free exception_handler_labels.
3123 (get_exception_handler_labels): New.
3124 (find_exception_handler_labels): Update for move of
3125 exception_handler_labels.
3126 (remove_exception_handler_label): Likewise.
3127 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
3128 * jump.c (rebuild_jump_labels): Likewise.
3129 * loop.c (find_and_verify_loops): Likewise.
3130 * sched-rgn.c (is_cfg_nonregular): Likewise.
3131
3132 * gengtype.c (write_gc_structure_fields): Handle variable-length
3133 TYPE_ARRAYs.
3134
3135 * varasm.c (struct weak_syms): Use GGC, gengtype.
3136 (mark_weak_decls): Delete.
3137 (weak_decls): Likewise.
3138 (add_weak): Likewise.
3139 (remove_from_pending_weak_list): Likewise.
3140 (init_varasm_once): Likewise.
3141
3142 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
3143 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
3144 stor-layout.c, regclass.c, and lists.c.
3145 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
3146 gt-regclass.h and gt-lists.h on s-gtype.
3147 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
3148 * except.c: Use gengtype for roots.
3149 * explow.c: Use gengtype for roots. Include gt-explow.h.
3150 * expr.h (init_stor_layout_once): Delete prototype.
3151 * function.c: Use gengtype for roots.
3152 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
3153 * gengtype-yacc.y (start): Can also be an externstatic.
3154 (externstatic): New production.
3155 (struct_fields): Correct array bounds inversion for 2-d arrays.
3156 * gengtype.c (variables): New variable.
3157 (note_variable): New function.
3158 (get_output_file): Include libfuncs.h into gtype-desc.c.
3159 (get_output_file_name): New function.
3160 (write_gc_structure_fields): Suppress warnings.
3161 (write_gc_types): Make static.
3162 (put_mangled_filename): New function.
3163 (write_gc_roots): New function.
3164 (main): Call write_gc_roots.
3165 * gengtype.h (note_variable): Prototype.
3166 (get_output_file_name): Prototype.
3167 (write_gc_types): Delete prototype.
3168 * ggc.h: Clean up unnecessary structure predefinitions.
3169 (struct ggc_root_tab): Define.
3170 (gt_ggc_m_rtx_def): Make function, not macro.
3171 (gt_ggc_m_tree_node): Likewise.
3172 * libfuncs.h: Use gengtype for roots.
3173 * lists.c: Use gengtype for roots. Include gt-lists.h.
3174 (init_EXPR_INSN_LIST_cache): Delete.
3175 * optabs.c: Use gengtype for roots.
3176 (gt_ggc_mp_optab): Delete.
3177 * optabs.h: Use gengtype for roots.
3178 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
3179 * rtl.h: Use gengtype for roots.
3180 (init_EXPR_INSN_LIST_cache): Delete prototype.
3181 * stor-layout.c: Use gengtype for roots.
3182 Include gt-stor-layout.h.
3183 (init_stor_layout_once): Delete.
3184 * toplev.c: Use gengtype for roots. Delete calls to deleted
3185 routines.
3186 * tree.c: Use gengtype for roots.
3187 * tree.h: Use gengtype for roots.
3188 * varasm.c: Use gengtype for roots.
3189
3190 * Makefile.in (GTFILES): Add @all_gtfiles@.
3191 * configure: Regenerate.
3192 * configure.in: Construct all_gtfiles from the gtfiles definitions
3193 in config-lang.in.
3194 * gengtype-yacc.y (type): Warn about duplicate structure names.
3195 * gengtype.c (get_output_file): Handle .c files in language
3196 subdirectories.
3197
3198 * Makefile.in (GTFILES): Run gengtype on all the config files
3199 and on the target .c file.
3200 * except.c (mark_eh_region): Delete.
3201 (init_eh_for_function): Use GGC on struct eh_status.
3202 (mark_eh_status): Delete.
3203 (free_eh_status): Use GGC.
3204 (expand_eh_region_start): Use GGC to
3205 (collect_eh_region_array): Allocate last_region_number using GGC.
3206 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
3207 (remove_eh_handler): Let GGC free struct eh_region.
3208 (add_call_site): Use GGC to reallocate call_site_record array.
3209 * function.c (init_machine_status): Update calling sequence.
3210 (mark_machine_status): Likewise.
3211 (mark_lang_status): Likewise.
3212 (prepare_function_start): Update init_machine_status call.
3213 (mark_function_status): Delete.
3214 (maybe_mark_struct_function): Delete.
3215 (ggc_mark_struct_function): Delete.
3216 (gt_ggc_mp_function): New.
3217 (gt_ggc_mr_machine_function): New.
3218 (gt_ggc_mr_language_function): New.
3219 (init_function_once): Use canonical names.
3220 * function.h (struct function): Use gengtype.
3221 (init_machine_status): Return the structure.
3222 (mark_machine_status): Take a 'void *'.
3223 (mark_lang_status): Likewise.
3224 * ggc-common.c (ggc_mark_trees): Use canonical name for
3225 ggc_mark_struct_function.
3226 * tree.h (ggc_mark_struct_function): Delete prototype.
3227 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
3228 (alpha_init_machine_status): Likewise.
3229 (override_options): Use canonical name for alpha_mark_machine_status.
3230 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
3231 * config/arm/arm.h (struct machine_function): Use gengtype.
3232 * config/arm/arm.c (arm_mark_machine_status): Delete.
3233 (arm_init_machine_status): Update calling sequence.
3234 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
3235 * config/cris/cris.c (cris_init_machine_status): Update
3236 calling sequence.
3237 * config/d30v/d30v.h (struct machine_function): Use gengtype.
3238 * config/d30v/d30v.c (d30v_init_machine_status): Update
3239 calling sequence.
3240 (d30v_mark_machine_status): Delete.
3241 * config/i386/i386.c: Include gt-i386.h.
3242 (struct machine_function): Use gengtype.
3243 (ix86_init_machine_status): Update calling sequence.
3244 (ix86_mark_machine_status): Delete.
3245 (override_options): Use canonical namke for ix86_mark_machine_status.
3246 * config/ia64/ia64.h (struct machine_function): Use gengtype.
3247 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
3248 sequence.
3249 (ia64_mark_machine_status): Delete.
3250 (ia64_override_options): Use canonical name for
3251 ia64_mark_machine_status.
3252 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
3253 sequence.
3254 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
3255 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3256 * gengtype.c (get_output_file): Fix warning.
3257 (main): Add prototype to suppress warning.
3258 * tree.c: Remove tree_hash_mark prototype.
3259
3260 * tree.h (init_stmt): Delete prototype.
3261 * toplev.c (lang_independent_init): Don't call init_stmt.
3262 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
3263 (stmt_obstack): Delete.
3264 (POPSTACK): No need to free 'struct nesting'.
3265 (gt_ggc_mr_nesting_cond): Use canonical names.
3266 (gt_ggc_mr_nesting_loop): Use canonical names.
3267 (gt_ggc_mr_nesting_block): Use canonical names.
3268 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
3269 (mark_stmt_status): Delete.
3270 (init_stmt): Delete.
3271 (clear_last_expr): Clear both last_expr_type and last_expr_value.
3272 Use it everywhere that last_expr_type was cleared.
3273 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
3274 (zap_lists): Delete.
3275 * ggc.h (ggc_add_deletable_root): Prototype.
3276 (mark_stmt_status): Remove prototype.
3277 * ggc-common.c (ggc_add_deletable_root): New.
3278 (ggc_mark_roots): Handle deletable roots.
3279 * function.c (ggc_mark_struct_function): Use canonical name
3280 for mark_stmt_status.
3281 * emit-rtl.c (free_sequence_stack): New.
3282 (start_sequence): Use a freelist for sequences.
3283 (end_sequence): Likewise.
3284 (init_emit_once): Add free_sequence_stack as a deleteable root.
3285 * c-pragma.c Include gt-c-pragma.h.
3286 (struct align_stack): Use gengtype.
3287 (push_alignment): Use GGC for struct align_stack.
3288 (mark_align_stack): Delete.
3289 (gt_ggc_mp_align_stack): New.
3290 (init_pragma): Use canonical name for mark_align_stack.
3291 * c-decl.c: Include gt-c-decl.h.
3292 (struct binding_level): Use gengtype.
3293 (make_binding_level): Use GGC; handle the freelist here.
3294 (pop_binding_level): New.
3295 (pushlevel): Move code into make_binding_level.
3296 (push_label_level): Likewise.
3297 (poplevel): Move code into pop_binding_level.
3298 (pop_label_level): Likewise.
3299 (mark_binding_level): Delete.
3300 (gt_ggc_mp_binding_level): New.
3301 (c_init_decl_processing): Use canonical name for mark_binding_level.
3302 Add free_binding_level as deletable root.
3303 (mark_c_function_context): Use canonical name for mark_binding_level.
3304 * Makefile.in (c-decl.o): Add gt-c-decl.h.
3305 (c-pragma.o): Add gt-c-pragma.h.
3306 (GTFILES): Add c-decl.c and c-pragma.c.
3307 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
3308
3309 * tree.c (struct type_hash): Use gengtype.
3310 (init_obstacks): Use canonical name for type_hash_mark.
3311 (type_hash_mark): Delete.
3312 Include gt-tree.h.
3313 * rtl.h (struct mem_attrs): Use gengtype.
3314 * optabs.h (struct optab): Use gengtype.
3315 * optabs.c (expand_binop): Squish signed/unsigned warning.
3316 (mark_optab): Make local, use canonical name, use autogenerated
3317 marker procedure.
3318 (init_optabs): Use canonical name for mark_optab.
3319 (new_optab): Use GGC to allocate optabs.
3320 * ggc.h: Delete mark_optab prototype.
3321 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
3322 mem_attrs marker procedure.
3323 * gengtype.c (get_output_file): Include headers in gtype-desc.c
3324 explicitly rather than deducing them from file names.
3325 (write_gc_structure_fields): Handle arrays of structures.
3326 (main): Return non-zero exit code if errors occur during output.
3327 * emit-rtl.c (mem_attrs_mark): Delete.
3328 (init_emit_once): Use canonical name for mem_attrs marker procedure.
3329 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
3330 (tree.o): Depend on gt-tree.h.
3331 (GTFILES): Add rtl.h, optabs.h, tree.c.
3332 (gt-tree.h): Add it to s-gtype rule.
3333
3334 * .cvsignore: Ignore gengtype flex/bison generated files.
3335 * Makefile.in (GGC_H): Add gtype-desc.h.
3336 (OBJS): Add gtype-desc.o.
3337 (GEN): Add gengtype.
3338 (STAGESTUFF): Add gengtype.
3339 (varasm.o): Add gt-varasm.h.
3340 (stmt.o): Add gt-stmt.h.
3341 (except.o): Add gt-except.h.
3342 (integrate.o): Add gt-integrate.h.
3343 (GTFILES): New.
3344 Add new rules for new files.
3345 * configure: Regenerate.
3346 * configure.in: Correct defaults.h paths.
3347 * emit-rtl.c (mark_sequence_stack): Delete.
3348 (mark_emit_status): Delete.
3349 (start_sequence): Allocate sequence structures using GGC.
3350 (end_sequence): Allocate sequence structures using GGC.
3351 * except.c: Use gengtype for various structures. Include
3352 gt-except.h.
3353 * expr.c (mark_expr_status): Delete.
3354 * function.c: Use gengtype for various structures. Include
3355 gt-function.h.
3356 (mark_function_status): Use standard gt_ggc names for marker functions.
3357 (ggc_mark_struct_function): Likewise.
3358 * function.h: Use gengtype for various structures.
3359 * gengtype-lex.l: New file.
3360 * gengtype-yacc.y: New file.
3361 * gengtype.c: New file.
3362 * gengtype.h: New file.
3363 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
3364 the standard names. Remove some now-unnecessary prototypes.
3365 * integrate.c: Use gengtype for various structures. Include
3366 gt-integrate.h.
3367 (mark_hard_reg_initial_vals): Delete.
3368 * integrate.h (mark_hard_reg_initial_vals): Delete.
3369 * stmt.c: Use gengtype for various structures. Include
3370 gt-stmt.h.
3371 (mark_case_node): Delete.
3372 (mark_goto_fixup): Delete.
3373 (mark_stmt_status): Use standard gt_ggc names for marker functions.
3374 * system.h: Define GTY to empty. In flex/bison files,
3375 don't poison malloc or realloc, instead just define them to
3376 xmalloc and xrealloc.
3377 * varasm.c: Use gengtype for various structures. Include
3378 gt-varasm.h. Use standard gt_ggc names for marker functions.
3379 (mark_pool_constant): Delete.
3380 (mark_varasm_status): Delete.
3381 (decode_rtx_const): #if 0 out non-typesafe hack.
3382
3383 * function.h (free_lang_status): Mark as obsolete.
3384 * function.c (free_lang_status): Mark as obsolete.
3385 * c-decl.c (push_c_function_context): Use GC to allocate and free
3386 struct language_function.
3387 (pop_c_function_context): Likewise.
3388 * c-common.c (mark_c_language_function): Mark struct
3389 language_function.
3390
3391 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
3392 Document that the machine_function structures must be allocated
3393 using GC. Update mark_machine_status documentation.
3394 * function.h: Don't declare free_machine_status.
3395 * function.c (free_machine_status): Don't define.
3396 (free_after_compilation): Don't call free_machine_status.
3397 (ggc_mark_struct_function): Mark f->machine. Call
3398 mark_machine_status only on non-NULL pointers.
3399 * system.h: Poison free_machine_status.
3400 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
3401 struct machine_function.
3402 (xtensa_free_machine_status): Delete.
3403 (override_options): Don't set free_machine_status.
3404 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
3405 free_machine_status.
3406 (rs6000_init_machine_status): Use GC on struct machine_function.
3407 (rs6000_free_machine_status): Delete.
3408 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
3409 machine_function.
3410 (ia64_mark_machine_status): Likewise.
3411 (ia64_free_machine_status): Delete.
3412 (ia64_override_options): Don't set free_machine_status.
3413 * config/i386/i386.c (override_options): Don't set
3414 free_machine_status.
3415 (ix86_init_machine_status): Use GC on struct machine_function.
3416 (ix86_mark_machine_status): Likewise.
3417 (ix86_free_machine_status): Delete.
3418 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
3419 machine_function.
3420 (d30v_mark_machine_status): Likewise.
3421 (d30v_free_machine_status): Delete.
3422 (d30v_init_expanders): Don't set free_machine_status.
3423 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
3424 machine_function.
3425 (arm_init_machine_status): Likewise.
3426 (arm_free_machine_status): Delete.
3427 (arm_init_expanders): Don't set free_machine_status.
3428 * config/alpha/alpha.c (override_options): Don't set
3429 free_machine_status.
3430 (alpha_init_machine_status): Use GC on struct machine_function.
3431 (alpha_mark_machine_status): Likewise.
3432 (alpha_free_machine_status): Delete.
3433
3434 * varasm.c (compare_constant): Fix typo.
3435
3436 * varasm.c: Don't include obstack.h.
3437 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
3438 (struct rtx_const): Give substructures names, improve formatting.
3439 (struct constant_descriptor): Delete.
3440 (struct constant_descriptor_tree): New, based on constant_descriptor.
3441 (const_hash_table): Is a hash table of trees.
3442 (mark_const_hash_entry): Is used for hashes of trees. Mark
3443 constant_descriptor_tree structure.
3444 (mark_const_str_htab_1): Mark deferred_string structure.
3445 (compare_constant): Rewrite to compare trees.
3446 (compare_constant_1): Delete.
3447 (record_constant): Delete.
3448 (record_constant_1): Delete.
3449 (output_constant_def): Use struct constant_descriptor_tree.
3450 Don't duplicate trees twice.
3451 (struct constant_descriptor_rtx): New.
3452 (struct pool_constant): Used for rtx constants.
3453 (init_varasm_status): Update for change to struct varasm_status.
3454 (mark_varasm_status): Likewise.
3455 (free_varasm_status): Delete.
3456 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
3457 (record_constant_rtx): Likewise.
3458 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
3459 (force_const_mem): Likewise.
3460 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
3461 * function.c (free_after_compilation): Don't use free_varasm_status.
3462 * function.h: Don't prototype free_varasm_status.
3463
3464 * ggc-common.c (ggc_realloc): Handle X being NULL.
3465
3466 * ggc-common.c (ggc_realloc): New function.
3467 * ggc.h: Prototype it.
3468 * emit-rtl.c (free_emit_status): Delete.
3469 (init_emit): Allocate emit subarrays using GC.
3470 (gen_reg_rtx): Reallocate subarrays using GC.
3471 (init_emit): Use GC to allocate 'struct emit_status' and its
3472 subarrays.
3473 (mark_emit_status): Mark structure and its subarrays.
3474 * stmt.c (free_stmt_status): Delete.
3475 * expr.c (free_expr_status): Delete.
3476 * function.h: Remove prototypes for deleted functions.
3477 * function.c (free_after_compilation): Don't use deleted functions.
3478 Don't call free() on x_parm_reg_stack_loc.
3479 (free_after_parsing): Don't use free_stmt_status.
3480 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
3481 (mark_function_status): Mark x_parm_reg_stack_loc.
3482
3483 * varasm.c (init_varasm_status): Use GC to allocate
3484 'struct varasm_status' and its fields x_const_rtx_hash_table
3485 and x_const_rtx_sym_hash_table.
3486 (mark_varasm_status): Mark them.
3487 (free_varasm_status): Use GC to free them.
3488 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
3489 (mark_expr_status): Mark the structure itself.
3490 (free_expr_status): Use GC to free the structure.
3491 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
3492 (mark_stmt_status): Mark the 'struct stmt_status' itself.
3493 (init_stmt_for_function): Allocate the structure for GC.
3494
3495 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
3496 (equate_type_number_to_die): Likewise.
3497 * tree.h (TYPE_SYMTAB_DIE): New macro.
3498 (struct die_struct): Predeclare.
3499 (struct tree_type): Add field symtab.die. Add a tag
3500 to the union type of field symtab.
3501
3502 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
3503 'struct rtvec_def *', not 'struct rtvec_def'.
3504
3505 * function.h (original_arg_vector): Make a real rtvec.
3506 * function.c (ggc_mark_struct_function): Adjust.
3507 * integrate.c (expand_inline_function): Adjust.
3508
3509 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3510
3511 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
3512 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
3513 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
3514 (TARGET_VERSION_CPU): Define according to the
3515 default target.
3516 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
3517 TARGET_VERSION_CPU.
3518 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
3519 if TARGET_SHMEDIA64.
3520 (LINK_DEFAULT_CPU_EMUL): Define according to the
3521 default target.
3522 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
3523 (SUBTARGET_LINK_SPEC): Define.
3524 (LINK_SPEC): Use SH_LINK_SPEC.
3525 (ASM_SPEC): Remove.
3526 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
3527 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
3528 and TARGET_SHMEDIA64 which abort, for now.
3529 * config/sh/t-netbsd-sh5: New file.
3530 * config/sh/t-netbsd-sh5-32: New file.
3531 * config/sh/t-netbsd-sh5-64: New file.
3532
3533 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
3534 Richard Henderson <rth@redhat.com>
3535
3536 * config/alpha/alpha.c (reg_or_const_int_operand): New.
3537 (some_operand, input_operand): Accept CONST_VECTOR.
3538 (alpha_extra_constraint): Add 'W'.
3539 (alpha_expand_zap_mask): New.
3540 (alpha_expand_builtin_vector_binop): New.
3541 (enum alpha_builtin): New.
3542 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
3543 (alpha_init_builtins, alpha_expand_builtin): New.
3544 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
3545 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
3546 (PREDICATE_CODES): Update.
3547 * config/alpha/alpha-protos.h: Update.
3548 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
3549 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
3550 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
3551 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
3552 (movv2si, movv2si_fix, movv2si_nofix): New.
3553 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
3554 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
3555 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
3556 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
3557 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
3558 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
3559 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
3560 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
3561 builtin_unpkbw, unpkbw): New.
3562 * doc/extend.texi (Alpha Built-in Functions): New.
3563
3564 2002-06-03 Richard Henderson <rth@redhat.com>
3565
3566 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
3567 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
3568
3569 2002-06-03 Richard Henderson <rth@redhat.com>
3570
3571 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
3572
3573 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
3574 (const0_operand): New.
3575 (reg_or_fp0_operand, fp0_operand): Remove.
3576 * config/alpha/alpha.h (PREDICATE_CODES): Update.
3577 * config/alpha/alpha-protos.h: Update.
3578 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
3579 and fp0_operand with reg_or_0_operand and const0_operand.
3580
3581 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
3582
3583 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
3584
3585 2002-06-03 Roger Sayle <roger@eyesopen.com>
3586
3587 * gcse.c (cprop_jump): Use single_set to get the pattern
3588 from the setcc argument.
3589
3590 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
3591
3592 * diagnostic.h (diagnostic_count): Move from output_buffer to
3593 diagnostic_context.
3594 (diagnostic_kind_count): Adjust definition.
3595
3596 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
3597
3598 * except.c (except.c): Do not rebuild CFG.
3599 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
3600 optimization.
3601
3602 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
3603
3604 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
3605 * toplev.c: Include cfglahout.h
3606 * Makefile.in (toplev.c): Add dependnecy.
3607
3608 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
3609
3610 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
3611 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
3612 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
3613
3614 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
3615
3616 * config/ns32k/netbsd.h: Update copyright years.
3617 (TARGET_OS_CPP_BUILTINS): Define.
3618 (CPP_PREDEFINES): Remove.
3619 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
3620 (TARGET_CPU_CPP_BUILTINS): Define.
3621
3622 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
3623
3624 * emit-rtl.c: Fix formatting.
3625 * errors.h: Likewise.
3626 * except.c: Likewise.
3627 * explow.c: Likewise.
3628 * expmed.c: Likewise.
3629 * expr.c: Likewise.
3630 * expr.h: Likewise.
3631
3632 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
3633
3634 * config/h8300/elf.h: Fix formatting.
3635 * config/h8300/rtems.h: Likewise.
3636
3637 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
3638
3639 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
3640
3641 2002-06-02 Tom Tromey <tromey@redhat.com>
3642
3643 * fixinc/fixincl.x: Rebuilt.
3644 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
3645
3646 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3647
3648 config/i370:
3649 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
3650 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
3651 * mvs.h: Similarly.
3652 * oe.h: Similarly.
3653
3654 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
3655
3656 * final.c (final): Allow notes to not have computed addresses;
3657 kill no longer needed STACK_REGS ifdef.
3658
3659 2002-06-02 Richard Henderson <rth@redhat.com>
3660
3661 * gcse.c (bypass_conditional_jumps): Fix typo last change.
3662
3663 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3664
3665 * loop.c (emit_prefetch_instructions): Properly place the address
3666 computation.
3667
3668 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
3669
3670 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
3671 (set_block_for_insn): Turn into macro.
3672 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
3673 * cfglayout.c (insn_scopes): Kill.
3674 (scope_to_insns_initialize): Do not use insn_scopes.
3675 (scope_to_insns_finalize): Likewise.
3676 (duplicate_insn_chain): Likewise.
3677 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
3678 * cfgrtl.c (basic_block_for_insn): Kill.
3679 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
3680 (create_basic_block_structure): Use reorder_insns.
3681 (compute_bb_for_insn): Do not use basic_block_for_insn.
3682 (merge_blocks_nomove): Likewise.
3683 (update_bb_for_insn): Likewise.
3684 (verify_flow_info): Likewise.
3685 (set_block_for_insn): Kill.
3686 * combine.c (try_combine): Update gen_rtx_INSN call.
3687 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
3688 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
3689 scopes and BBs.
3690 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
3691 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
3692 Clear BB.
3693 (emit_insns_after): Simplify.
3694 (emit_copy_of_insn_after): Copy scope.
3695 * final.c (final_start_function): Lower scopes.
3696 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
3697 * integrate.c (copy_insn_list): Cope scopes.
3698 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
3699 * loop.c (loop_optimize): Do not care block notes.
3700 * print-rtl.c (print_rtx): Print BB.
3701 * recog.c (apply_change_group): Simplify.
3702 * rtl.c (copy_rtx): Handle 'B'.
3703 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
3704 * rtl.h (Field accessors): Update indexes.
3705 * sched-ebb.c (schedule_ebbs): Do not lower notes.
3706 * sched-rgn.c (schedule_insns): Likewise.
3707 * toplev.c (rest_of_compilation): Lower notes.
3708 * unroll.c (unroll_loop): Do not care scoping notes.
3709 (copy_loop_body): Copy scopes.
3710
3711 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3712
3713 config/h8300:
3714 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
3715 SUBTARGET_SPEC.
3716 * rtems.h: Similarly.
3717 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
3718 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
3719 (TARGET_CPU_CPP_BUILTINS): Use.
3720
3721 2002-06-02 Richard Henderson <rth@redhat.com>
3722
3723 * alias.c: Include target.h.
3724 (mark_constant_function): Use targetm.binds_local_p instead
3725 of checking TREE_PUBLIC ourselves.
3726 * Makefile.in (alias.o): Add TARGET_H.
3727
3728 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3729
3730 * c-lex.c: Update copyright and file description.
3731
3732 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3733
3734 * config/fr30/fr30.h: Update to new CPP macros.
3735
3736 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3737
3738 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
3739
3740 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3741 Zack Weinberg <zack@codesourcery.com>
3742
3743 * c-common.c (c_common_init): Override cpplib's default
3744 warn_long_long setting.
3745 * c-lex.c (lex_number): Replace with interpret_integer,
3746 interpret_float, narrowest_unsigned_type and
3747 narrowest_signed_type, taking advantage of the new
3748 cpplib functionality.
3749 * cpperror.c (_cpp_begin_message): If a warning is turned
3750 into an error, avoid printing "warning:".
3751 * cppexp.c (cpp_num_sign_extend): New.
3752 * cppinit.c: Update comment.
3753 * cpplib.h (cpp_num_sign_extend): New.
3754 * tree.h: Update comment.
3755
3756 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
3757
3758 * diagnostic.h (struct diagnostic_context): Add new member
3759 internal_error.
3760 (internal_error_function): Remove declaration.
3761 * diagnostic.c (internal_error_function): Remove definition..
3762 (internal_error): Adjust use.
3763
3764 2002-06-02 Richard Henderson <rth@redhat.com>
3765
3766 * rtl.h (CC0_P): New.
3767 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
3768 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
3769 (bypass_block): Save old dest block for dump text.
3770 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
3771 Allow only true SET insns, not single_set.
3772
3773 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
3774
3775 * diagnostic.c (diagnostic_finish): Rename to output_flush.
3776 (clear_disgnostic_info): Rename to output_clear_data. Use false
3777 instead of 0 for boolean value.
3778 Adjust function call throughout.
3779
3780 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
3781
3782 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
3783 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
3784
3785 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3786
3787 * d30v.h (CPP_PREDEFINES): Replace with
3788 (TARGET_CPU_CPP_BUILTINS): New.
3789
3790 2002-06-02 Roger Sayle <roger@eyesopen.com>
3791
3792 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
3793
3794 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
3795
3796 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
3797
3798 2002-06-02 Richard Henderson <rth@redhat.com>
3799
3800 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
3801
3802 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
3803
3804 Support for C++ constructors/destructors.
3805 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
3806 instead of looping if main() returns.
3807 (asm_file_start): Output global symbols that cause .data and .bss
3808 initialization code to be linked in, unconditionally for now.
3809 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
3810 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
3811 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
3812 (LIBSTDCXX): New.
3813 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
3814 (__tablejump__): New.
3815 (__do_copy_data, __do_clear_bss): New.
3816 (__do_global_ctors, __do_global_dtors): New.
3817 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
3818 _ctors, _dtors.
3819
3820 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
3821
3822 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
3823 (CPP_SPEC, CPP_PREDEFINES): Kill.
3824 * c4x/rtems.h (CPP_PREDEFINES): Kill.
3825 (TARGET_OS_CPP_BUILTINS): New.
3826
3827 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
3828
3829 * Makefile.in (tracer.o): New.
3830 * params.def (TRACER_*): New options.
3831 * rtl.h (tracer): Declare.
3832 * timevar.def (TV_TRACER): New.
3833 * toplev.c (dump_file_index): Add DFI_tracer.
3834 (dump_file_info): Add tracer.
3835 (flag_tracer): New.
3836 (lang_indepdenent_options): Add tracer.
3837 (rest_of_compilation): Call tracer.
3838 * tracer.c: New file.
3839 * invoke.texi (-ftracer): Document.
3840 (--param tracer-*): Document.
3841
3842 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
3843
3844 * tree-inline.c (expand_call_inline): Make the statement
3845 expression we generate have a COMPOUND_STMT.
3846
3847 2002-06-01 Roger Sayle <roger@eyesopen.com>
3848
3849 * gcse.c (cprop_cc0_jump): Function deleted.
3850 (cprop_jump): Take an additional argument which is the possibly
3851 NULL cc setting insn immediately before the conditional jump.
3852 When a MODE_CC set is present, substitute it into the JUMP_INSN
3853 before attempting the constant propagation.
3854 (cprop_insn): Recognize cc setters followed by conditional jumps
3855 as a special case. Use cprop_jump instead of cprop_cc0_jump.
3856 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
3857 (find_bypass_set): New function based upon find_avail_set used by
3858 cprop, but finds constant expressions available at the end of
3859 basic blocks.
3860 (bypass_block): New function. Given a basic block that begins
3861 with a conditional jump and multiple incoming edges, perform
3862 the jump bypass optimization.
3863 (bypass_conditional_jumps): New function. Call bypass_block with
3864 each suitable basic block in the CFG using a simple single pass.
3865
3866 2002-06-01 Roger Sayle <roger@eyesopen.com>
3867
3868 * tree.c (real_minus_onep): New function to test for -1.0.
3869 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
3870
3871 2002-06-01 Roger Sayle <roger@eyesopen.com>
3872
3873 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
3874 and "!p && !q" into "(p|q) == 0" under suitable conditions.
3875
3876 2002-06-01 Andreas Jaeger <aj@suse.de>
3877
3878 * cppexp.c (cpp_classify_number): Cast precission to int for
3879 correct printf format.
3880
3881 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
3882
3883 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
3884 expected, but don't really exist: atmega83, atmega85, attiny10.
3885 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
3886 emulations for all devices.
3887 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
3888 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
3889
3890 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
3891
3892 * config/h8300/h8300-protos.h: Add a prototype for
3893 h8300_shift_needs_scratch_p.
3894 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
3895 * config/h8300/h8300.h (OK_FOR_R): New.
3896 (OK_FOR_S): Likewise.
3897 (OK_FOR_T): Likewise.
3898 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
3899 * config/h8300/h8300.md (anonymous shift patterns): Use
3900 constraints R, S, and T.
3901
3902 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3903
3904 * basic-block.h (struct basic_block_def): New field loop_father.
3905 (BB_VISITED): New flag.
3906 (struct loop): New field pred, removed field shared.
3907 (struct loops): New field parray.
3908 (LOOP_EXITS_DOMS): Removed.
3909 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
3910 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
3911 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
3912 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
3913 verify_loop_structure): Declare.
3914 * cfg.c (entry_exit_blocks): Initialize loop_father field.
3915 * cfganal.c (dfs_enumerate_from): New function.
3916 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
3917 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
3918 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
3919 flow_loop_dump, flow_loops_dump, flow_loops_free,
3920 flow_loop_tree_node_add, flow_loop_level_compute,
3921 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
3922 flow_loop_outside_edge_p): Modified for new infrastructure.
3923 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
3924 redirect_edge_with_latch_update, flow_loop_free): New static functions.
3925 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
3926 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
3927 find_common_loop, verify_loop_structure, loop_latch_edge,
3928 loop_preheader_edge): New functions.
3929 (flow_loops_cfg_dump): Do not show dominators, as this information
3930 does not remain up to date long.
3931 (flow_loops_find): Store results in new format.
3932 * predict.c (propagate_freq, estimate_probability,
3933 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
3934 infrastructure.
3935
3936 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
3937
3938 * except.c (nothrow_function_p): Walk epilogue delay list
3939 checking the insn, not the chain for potential throws.
3940
3941 2002-05-31 Zack Weinberg <zack@codesourcery.com>
3942
3943 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
3944 (install): Refer to install-cpp directly.
3945 (uninstall-cpp): Folded into uninstall rule.
3946 * configure.in: Delete all code relating to --disable-cpp.
3947 * configure: Regenerate.
3948 * config/t-install-cpp: Delete.
3949
3950 2002-05-31 Richard Henderson <rth@redhat.com>
3951
3952 * configure.in (HAVE_AS_TLS): Add alpha tests.
3953 * configure: Rebuild.
3954 * config/alpha/alpha.c (TARGET_AS_TLS): New.
3955 (alpha_tls_size, alpha_tls_size_string): New.
3956 (overide_options): Set it. Always install machine_status hooks.
3957 (input_operand): Accept got tls predicates.
3958 (local_symbol_p): Merge into ...
3959 (local_symbolic_operand): ... here. Reject tls symbols.
3960 (global_symbolic_operand): Likewise.
3961 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
3962 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
3963 (tp16_symbolic_operand, tp32_symbolic_operand): New.
3964 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
3965 (alpha_encode_section_info): Handle TLS symbols.
3966 (alpha_strip_name_encoding): Likewise.
3967 (alpha_legitimate_address_p): Likewise.
3968 (alpha_legitimize_address): Likewise.
3969 (alpha_expand_mov): Early exit to avoid nop moves.
3970 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
3971 (alpha_init_machine_status, alpha_mark_machine_status,
3972 alpha_free_machine_status): Always define.
3973 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
3974 (print_operand, print_operand_address): Add TLS relocs.
3975 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
3976 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
3977 (TARGET_SWITCHES): Add -mtls-kernel.
3978 (alpha_tls_size, alpha_tls_size_string): New.
3979 (TARGET_OPTIONS): Add -mtls-size=.
3980 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
3981 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
3982 (ASM_OUTPUT_LABELREF): Skip %.
3983 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
3984 (PREDICATE_CODES): Update.
3985 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
3986 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
3987 UNSPEC_TP, UNSPECV_SET_TP): New.
3988 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
3989 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
3990 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
3991 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
3992 (call_value_osf_2_er): Accept anything as op4.
3993 * config/alpha/alpha-protos.h: Update.
3994 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
3995
3996 2002-05-31 Zack Weinberg <zack@codesourcery.com>
3997
3998 * cppinit.c (append_include_chain): Always pay attention to
3999 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
4000 marker on argument.
4001
4002 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
4003
4004 * target.h: Fix formatting.
4005 * timevar.h: Likewise.
4006 * tlink.c: Likewise.
4007 * toplev.c: Likewise.
4008 * toplev.h: Likewise.
4009 * tree.c: Likewise.
4010 * tree-dump.h: Likewise.
4011 * tree.h: Likewise.
4012 * tree-inline.h: Likewise.
4013 * unroll.c: Likewise.
4014 * unwind-dw2.c: Likewise.
4015 * unwind-dw2-fde.c: Likewise.
4016 * unwind-dw2-fde-glibc.c: Likewise.
4017 * unwind-dw2-fde.h: Likewise.
4018 * unwind.h: Likewise.
4019 * unwind-sjlj.c: Likewise.
4020 * varasm.c: Likewise.
4021 * varray.h: Likewise.
4022 * vmsdbg.h: Likewise.
4023 * vmsdbgout.c: Likewise.
4024 * xcoffout.h: Likewise.
4025
4026 2002-05-31 Igor Shevlyakov <igor@microunity.com>
4027
4028 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
4029 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
4030
4031 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
4032
4033 * gcc.c (cpp_unique_options): Remove "-d" options.
4034 (cpp_debug_options): New spec string.
4035 (default_compilers): Use it.
4036 * objc/lang-specs.h: Likewise.
4037
4038 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
4039
4040 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
4041 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
4042 * gcc/mklibgcc.in: Likewise.
4043 * gcc/config/arc/t-arc: Likewise.
4044 * gcc/configure.in: Likewise.
4045 * gcc/configure: Regenerate.
4046
4047 2002-05-31 Stan Shebs <shebs@apple.com>
4048 Turly O'Connor <turly@apple.com>
4049
4050 * c-decl.c (struct binding_level): Change int field n_incomplete
4051 to tree list incomplete_list.
4052 (clear_binding_level): Init field with NULL.
4053 (pushdecl): Add incomplete type to list.
4054 (mark_binding_level): Mark the incomplete list.
4055 (finish_struct): Scan the incomplete list for types instead
4056 of all decls in the current binding level.
4057
4058 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
4059
4060 * pa.c (output_millicode_call): Add missing '%' characters.
4061 (output_call): Likewise.
4062
4063 2002-05-31 David Edelsohn <edelsohn@gnu.org>
4064
4065 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
4066 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
4067
4068 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
4069
4070 * varasm.c (mark_constant_pool): Walk epilogue delay list
4071 checking the insn, not the chain for potential constants.
4072
4073 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
4074
4075 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
4076
4077 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
4078
4079 * i386.c (classify_argument): Properly handle base types.
4080
4081 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
4082 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
4083 registers.
4084
4085 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
4086
4087 * gcse.c (gcse_emit_move_after): New.
4088 (pre_delete, hoist_store): Use it.
4089
4090 * reload1.c (emit_input_reload_insns): Use constrain_operands
4091 instead of constraint_accepts_reg_p to verify optimization.
4092 (constraint_accepts_reg_p): Kill
4093
4094 * reload1.c (reload_cse_delete_noop_set): Kill.
4095 (reload_cse_simplify): use delte_insn_and_edges.
4096
4097 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4098
4099 * cfgloop.c (flow_loops_find): Initialize first and last fields
4100 correctly.
4101
4102 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
4103
4104 * c-common.c (builtin_define_std): Correct logic.
4105
4106 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
4107
4108 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
4109 (output_call): Likewise.
4110
4111 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
4112
4113 * pa.c: Move output.h include after tree.h include.
4114 (pa_asm_output_mi_thunk): Constify identifier lab.
4115
4116 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
4117
4118 * config/ns32k/ns32k.h: Define named constants for the
4119 bits in target_flags and use them.
4120 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
4121
4122 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4123
4124 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
4125 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
4126 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
4127 default scheduling model.
4128 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
4129 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
4130 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
4131 * doc/install.texi (hppa*-*-*): Document default scheduling.
4132
4133 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
4134
4135 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
4136
4137 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
4138
4139 * config.gcc (ns32k-*-netbsd*): Set tm_file to
4140 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
4141 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
4142 netbsd.h, or netbsd-aout.h.
4143
4144 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
4145
4146 * longlong.h (count_trailing_zeros): Add missing \, and clean up
4147 whitespace in __ns32000__ case.
4148
4149 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
4150
4151 * expr.c (expand_expr): Output partially zeroed out vectors with
4152 output_constant_def.
4153
4154 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4155
4156 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
4157 (sh-*-netbsdelf*)
4158 (shl*-*-netbsdelf*): New targets.
4159 * config/sh/netbsd-elf.h: New file.
4160 * config/sh/t-netbsd: New file.
4161
4162 2002-05-30 Richard Henderson <rth@redhat.com>
4163 Eric Botcazou <ebotcazou@multimania.com>
4164
4165 PR optimization/6822
4166 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
4167 to unsigned int for op1 comparisons. Use gen_int_mode.
4168
4169 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
4170
4171 * expmed.c (const_mult_add_overflow_p): New.
4172 * expr.h: Declare it.
4173 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
4174 Don't eliminate the biv if the giv has a constant multiplier and
4175 the rhs argument of the comparison does satisfy the predicate.
4176 Use expand_mult_add to compute the replacement constant.
4177
4178 2002-05-30 Osku Salerma <osku@iki.fi>
4179
4180 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
4181 (c_common_get_alias_set): Handle it.
4182 * doc/extend.texi: Document it.
4183
4184 2002-05-30 Richard Henderson <rth@redhat.com>
4185
4186 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4187 * toplev.c (process_options): Don't check it.
4188 * doc/tm.texi: Don't document it.
4189 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
4190 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4191 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
4192 frame pointer optimization if current_function_profile.
4193
4194 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
4195
4196 * langhooks.c: Fix formatting.
4197 * langhooks.h: Likewise.
4198 * lcm.c: Likewise.
4199 * libgcc2.c: Likewise.
4200 * lists.c: Likewise.
4201 * local-alloc.c: Likewise.
4202 * loop.c: Likewise.
4203 * loop.h: Likewise.
4204
4205 2002-05-30 Marc Espie <espie@openbsd.org>
4206
4207 * config.gcc (sparc64-*-openbsd*): New.
4208 * config/sparc/openbsd1-64.h: New.
4209 * config/sparc/openbsd64.h: New.
4210
4211 2002-05-30 Jeff Law <law@redhat.com>
4212
4213 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
4214 a dead insn with a REG_RETVAL note when the entire libcall is not
4215 dead and remove the associated REG_LIBCALL note at the same time.
4216
4217 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
4218
4219 * lcm.c (output.h): #include.
4220 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
4221 as an ordinary block.
4222 (optimize_mode_switching): Don't pretend that the exit block is
4223 an ordinary block, or handle sucessors of entry block specially.
4224 Instead, split edges from entry block and to exit block, and
4225 put a computing definition on the thus gained post-entry-block,
4226 and a need on the pre-exit-block.
4227
4228 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
4229
4230 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
4231 * rtl.texi: Document 'B'
4232
4233 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4234
4235 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
4236 at run-time.
4237 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
4238
4239 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
4240
4241 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
4242 const0_rtx instead of NULL_RTX when in error.
4243 (altivec_expand_abs_builtin): Same.
4244 (rs6000_expand_binop_builtin): Same.
4245 (altivec_expand_predicate_builtin): Same.
4246 (altivec_expand_stv_builtin): Same.
4247 (rs6000_expand_ternop_builtin): Same.
4248 (altivec_expand_builtin): Same.
4249
4250 2002-05-29 David S. Miller <davem@redhat.com>
4251
4252 * rtl.h (clear_emit_caches): Delete.
4253 * integrate.c (output_inline_function): Don't call it.
4254 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
4255 (clear_emit_caches): Delete definition.
4256 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
4257
4258 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
4259
4260 * config/mmix/mmix.c: Include real.h.
4261 (mmix_constant_address_p): Remove redundant test before switch.
4262
4263 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4264
4265 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
4266 only if not already defined.
4267
4268 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
4269
4270 * config/h8300/h8300-protos.h: Remove prototypes for
4271 ok_for_bclr and small_power_of_two.
4272 * config/h8300/h8300.c (small_power_of_two): Remove.
4273 (ok_for_blcr): Likewise.
4274 (fix_bit_operand): Make WHAT deal with an integer instead of a
4275 constraint character.
4276 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
4277 (CONST_OK_FOR_P): Likewise.
4278 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
4279 CONST_OK_FOR_P any more.
4280 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
4281 of fix_bit_operand.
4282 (iorqi3): Likewise.
4283 (xorqi3): Likewise.
4284
4285 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4286
4287 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4288 (CPP_PREDEFINES): Make sure this is undefined.
4289 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
4290 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
4291 or -U__MIPSEB__ before defining one or the other. Instead,
4292 use %(subtarget_endian_default) if neither -EB nor -EL are
4293 specified.
4294 (SUBTARGET_EXTRA_SPECS): Define.
4295 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
4296 %(netbsd_cpp_spec).
4297
4298 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
4299
4300 * doc/md.texi (Patterns): Note pattern condition pitfall
4301 for unnamed insn.
4302
4303 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
4304
4305 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
4306 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
4307 ternary operations from here...
4308 (rs6000_expand_builtin): ...to here.
4309 New argument expandedp.
4310 Change all instances of altivec_expand_binop_builtin to
4311 rs6000_expand_binop_builtin.
4312 (altivec_expand_unop_builtin): Rename to
4313 rs6000_expand_unop_builtin.
4314 (altivec_expand_binop_builtin): Rename to
4315 rs6000_expand_binop_builtin.
4316 (altivec_expand_ternop_builtin): Rename to
4317 rs6000_expand_ternop_builtin.
4318
4319 2002-05-29 Richard Henderson <rth@redhat.com>
4320
4321 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
4322 (TARGET_BI_ARCH): Likewise.
4323 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
4324 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
4325 (TARGET_64BIT_DEFAULT): Default to 0.
4326 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
4327
4328 2002-05-29 Richard Henderson <rth@redhat.com>
4329
4330 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
4331 (get_pc_thunk_name): New.
4332 (output_set_got): Use it.
4333 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
4334 into linkonce sections.
4335
4336 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4337
4338 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4339 (CPP_PREDEFINES): Make sure this is undefined.
4340 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
4341 (CPP_SUBTARGET_SPEC): Don't provide different versions for
4342 default-32 and default-64. Just always use %(netbsd_cpp_spec).
4343 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
4344 cpp_subtarget_spec64. Add netbsd_cpp_spec.
4345 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4346 (CPP_PREDEFINES): Make sure this is undefined.
4347 (SUBTARGET_EXTRA_SPECS): Define.
4348 (CPP_SPEC): Use %(netbsd_cpp_spec).
4349
4350 2002-05-29 Jeff Law <law@redhat.com>
4351
4352 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
4353
4354 * flow.c (propagate_one_insn): Do not remove a dead insn if it
4355 contains a REG_RETVAL note.
4356
4357 * haifa-sched (sched_analyze): Remove another useless clearing
4358 of SCHED_GROUP_P I missed yesterday.
4359
4360 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
4361 * pa.c (pa_asm_output_mi_thunk): New function.
4362 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
4363
4364 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
4365 Marek Michalkiewicz <marekm@amelek.gda.pl>
4366
4367 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
4368 (avr_asm_only_p): Make non-static.
4369 (enum avr_arch): Remove.
4370 (avr_arch_types): New.
4371 (avr_mcu_types): Update.
4372 (avr_override_options): Use avr_arch_types table instead of switch.
4373 * avr.h (CPP_PREDEFINES): Die.
4374 (avr_base_arch_macro, avr_extra_arch_macro): New.
4375 (TARGET_CPU_CPP_BUILTINS): New.
4376 (CPP_SPEC, EXTRA_SPECS): Simplify.
4377 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
4378 CPP_AVR5_SPEC): Die.
4379
4380 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4381
4382 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4383 NETBSD_OS_CPP_BUILTINS_AOUT.
4384 (SUBTARGET_EXTRA_SPECS): Define.
4385 (CPP_SPEC): Use %(netbsd_cpp_spec).
4386
4387 2002-05-29 Richard Henderson <rth@redhat.com>
4388
4389 * config/i386/i386.c (ix86_output_function_epilogue): New.
4390 (TARGET_ASM_FUNCTION_EPILOGUE): New.
4391 (pic_label_name): Remove.
4392 (pic_labels_used): New.
4393 (ix86_asm_file_end): Emit one pc load stub for each register used.
4394 (output_set_got): Generate deep pc load to any register.
4395 (ix86_select_alt_pic_regnum): New.
4396 (ix86_save_reg): Don't save pic register if we can find a valid
4397 call-clobbered replacement.
4398 (ix86_expand_prologue): If we found a valid replacement, renumber
4399 pic_offset_table_rtx.
4400 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
4401 pic_offset_table_rtx after reload.
4402 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
4403 * config/i386/i386.md (set_got): Make insn, not expander.
4404 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
4405
4406 2002-05-29 Richard Henderson <rth@redhat.com>
4407
4408 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
4409 alignment for alloca.
4410
4411 2002-05-29 Richard Henderson <rth@redhat.com>
4412
4413 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
4414 (print_operand_address): Only add rip for symbolic addresses
4415 for which we do not have another relocation type.
4416
4417 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4418
4419 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4420 (EXTRA_SPECS): Add netbsd_cpp_spec.
4421 (CPP_SPEC): Use %(netbsd_cpp_spec).
4422 (CPP_PREDEFINES): Remove.
4423 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4424 (EXTRA_SPECS): Define.
4425 (CPP_SPEC): Use %(netbsd_cpp_spec).
4426 (CPP_PREDEFINES): Remove.
4427
4428 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
4429
4430 PR preprocessor/6844
4431 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
4432 NUL.
4433
4434 2002-05-29 Eric Christopher <echristo@redhat.com>
4435
4436 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
4437 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
4438
4439 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
4440
4441 * config/fr30/fr30.md: Remove previous restriction on splits.
4442 Enforce conformance through gen_lowpart and cont_int_operand.
4443 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
4444 as the assembler does not support ".bss".
4445
4446 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4447
4448 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4449 (CPP_PREDEFINES): Remove.
4450 (SUBTARGET_EXTRA_SPECS): Define.
4451 (CPP_SPEC): Use %(netbsd_cpp_spec).
4452 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4453 (CPP_PREDEFINES): Remove.
4454 (SUBTARGET_EXTRA_SPECS): Define.
4455 (CPP_SPEC): Use %(netbsd_cpp_spec).
4456 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
4457 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
4458 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
4459 Add netbsd_cpp_spec.
4460 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
4461
4462 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
4463 Zack Weinberg <zack@codesourcery.com>
4464
4465 * cppexp.c (cpp_num): Move to cpplib.h.
4466 (CPP_ERROR): Remove.
4467 (interpret_float_suffix, interpret_int_suffix): New.
4468 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
4469 (cpp_classify_number, cpp_interpret_integer): New.
4470 (interpret_number): Remove.
4471 (eval_token): Update to use new routines.
4472 * cpphash.h (cpp_num_part): Move to cpplib.h.
4473 * cppinit.c (cpp_post_options): Set warn_long_long.
4474 * cpplib.h (struct cpp_options): Add warn_long_long.
4475 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
4476 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
4477 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
4478 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
4479 cpp_interpret_integer): New.
4480
4481 2002-05-29 Joel Sherrill <joel@OARcorp.com>
4482
4483 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
4484
4485 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
4486
4487 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4488 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
4489 (CPP_SUBTARGET_SPEC): Define.
4490 (SUBTARGET_EXTRA_SPECS): Define.
4491 (CPP_SPEC): Remove.
4492
4493 2002-05-29 Chris Lattner <sabre@nondot.org>
4494
4495 * ssa.c (rename_insn_1): Rename uses of undefined registers to
4496 prevent confusion if/when the register is defined.
4497
4498 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
4499
4500 PR target/6838
4501 * config/cris/cris.md: Fix typos and thinkos in comments.
4502 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
4503 second alternative.
4504 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
4505 ("*mov_sideqi_mem"): Similar, but for operand 3.
4506 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
4507 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
4508 Remove spurious mode specifier on operand 2.
4509
4510 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
4511
4512 * config/h8300/h8300-protos.h: Remove the prototype for
4513 o_operand.
4514 Add prototypes for single_one_operand and single_zero_operand.
4515 * config/h8300/h8300.c (o_operand): Remove.
4516 (single_one_operand): New.
4517 (single_zero_operand): Likewise.
4518 (print_operand): For 'V' operand, and the operand with 0xff.
4519 For 'V' and 'W' operands, do not and the bit position with 7.
4520 * config/h8300/h8300.md (various anonymous patterns): Replace
4521 use of exact_log2 with single_one_operand/single_zero_operand.
4522
4523 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
4524
4525 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
4526
4527 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
4528
4529 * config/s390/s390.c (legitimate_pic_operand_p): Do not
4530 accept symbolic LARL operands.
4531 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
4532 epilogue insns.
4533
4534 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
4535
4536 * config/s390/s390.md (cmpstr_64/31): Mark whole
4537 input registers as used.
4538
4539 2002-05-28 Richard Henderson <rth@redhat.com>
4540
4541 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
4542 not current_function_uses_pic_offset_table and
4543 current_function_uses_const_pool; examine current_function_profile.
4544 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
4545 input to blockage if needed.
4546 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
4547 (legitimize_pic_address): Likewise. Set regs_ever_live for
4548 pic_offset_table_rtx when invoked during reload.
4549 * config/i386/i386.h (FINALIZE_PIC): Remove.
4550 * config/i386/i386.md (tablejump): Reformat. Do not set
4551 current_function_uses_pic_offset_table.
4552 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
4553 (blockage): Accept anything as operand 0.
4554
4555 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4556
4557 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
4558 common CPP built-ins for all NetBSD a.out targets.
4559 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
4560 common CPP built-ins for all NetBSD ELF targets.
4561 * config/netbsd.h: Add missing notice.
4562 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
4563 for all NetBSD targets.
4564 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
4565 for all NetBSD targets using an LP64 code model.
4566 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
4567 NetBSD targets.
4568
4569 2002-05-28 Richard Henderson <rth@redhat.com>
4570
4571 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
4572 update if UPDATE_LIFE_LOCAL.
4573
4574 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4575
4576 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
4577
4578 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
4579 Jason R. Thorpe <thorpej@wasabisystems.com>
4580
4581 config/sh reorganization to factor out endianness and coff:
4582
4583 * config/sh/little.h: New file.
4584 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
4585 defined, define to 0 to select big-endian.
4586 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
4587 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4588 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4589 * config/sh/t-be: New file.
4590 * config/sh/t-le: New file.
4591
4592 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
4593 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
4594 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
4595 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
4596 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
4597 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
4598 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
4599 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
4600 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
4601 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
4602 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
4603 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
4604 (LINK_SPEC): Define to SH_LINK_SPEC.
4605 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
4606 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
4607 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
4608 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
4609 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
4610 * config/sh/coff.h: New file.
4611 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
4612 (TARGET_OBJFMT_CPP_BUILTINS): Define.
4613 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
4614 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
4615 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
4616 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
4617 (PTRDIFF_TYPE): Likewise.
4618 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
4619 (CPP_PREDEFINES): Don't define.
4620 (TARGET_OBJFMT_CPP_BUILTINS): Define.
4621 (LINK_SPEC): Define to SH_LINK_SPEC.
4622 (LINK_EMUL_PREFIX): Redefine.
4623 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
4624 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
4625 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
4626 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
4627 (TARGET_OS_CPP_BUILTINS): Define.
4628 (TARGET_DEFAULT): Redefine.
4629 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
4630 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
4631 (LINK_SPEC): Don't redefine.
4632 (LINK_DEFAULT_CPU_EMUL): Redefine.
4633 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4634 * sh.c (sh_asm_named_section): Don't declare / define.
4635 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
4636 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
4637 (sh64-*-elf* tm_file): Likewise.
4638 (sh-*-rtemself* tm_file): Likewise.
4639 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
4640 (sh-*-linux* tmake_file): Add sh/t-le.
4641 (sh-*-rtems* tm_file): Add sh/coff.h
4642 (sh-*-* tm_file): Likewise.
4643
4644 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
4645
4646 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
4647 CONSTANT_POOL_ADDRESS_P.
4648
4649 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
4650
4651 2002-05-28 David Edelsohn <edelsohn@gnu.org>
4652 Jeff Law <law@redhat.com>
4653
4654 * optabs.c (expand_binop): Fix nwords sign warnings.
4655 generate pseudo for add_optab.
4656
4657 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
4658 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
4659
4660 2002-05-28 Marc Espie <espie@openbsd.org>
4661
4662 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
4663 inherited from gas.h.
4664 (ASM_QUAD): Undef. OpenBSD does not support it.
4665
4666 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
4667
4668 * doc/install.texi (binaries): Change mingw binaries
4669 link to www.mingw.org.
4670
4671 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4672
4673 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
4674
4675 2002-05-28 Richard Henderson <rth@redhat.com>
4676
4677 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
4678 bottom alignment for leaf functions.
4679
4680 2002-05-28 Zack Weinberg <zack@codesourcery.com>
4681
4682 * config/pa/milli32.S, config/pa/lib1funcs.asm,
4683 config/sparc/sol2-g1.asm: Delete unused files.
4684
4685 2002-05-28 Richard Henderson <rth@redhat.com>
4686
4687 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
4688
4689 * flow.c (calculate_global_regs_live): Rename call_used to
4690 invalidated_by_call. Initialize from regs_invalidated_by_call
4691 instead of call_used_regs.
4692
4693 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
4694 DECL_EXTERNAL.
4695
4696 2002-05-28 Zack Weinberg <zack@codesourcery.com>
4697
4698 * tree.h: Don't include real.h.
4699 Forward-declare struct realvaluetype.
4700 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
4701 contain it.
4702 (TREE_REAL_CST_PTR): New accessor.
4703 (TREE_REAL_CST): Update.
4704 * real.h: Include machmode.h.
4705 (realvaluetype): Make it struct realvaluetype, not a typedef.
4706 (build_real): Prototype here.
4707
4708 * tree.c: Include real.h.
4709 (build_real): Allocate the REAL_VALUE_TYPE as a separate
4710 object in GC memory, set TREE_REAL_CST_PTR to point to it.
4711 (build_real_from_int_cst): Use build_real.
4712 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
4713 REAL_CST.
4714
4715 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
4716 fold-const.c, print-tree.c, real.c: Include real.h.
4717 * Makefile.in: Update dependency lists.
4718
4719 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4720
4721 * basic-block.h (last_basic_block): Declare.
4722 (expunge_block_nocompact): Declaration removed.
4723 (compact_blocks): Declare.
4724 * cfg.c (last_basic_block): New variable.
4725 (expunge_block_nocompact): Removed.
4726 (expunge_block): Do not compact basic blocks.
4727 (compact_blocks): New.
4728 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
4729 longer change.
4730 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
4731 last_basic_block.
4732 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
4733 real positions of blocks.
4734 (delete_unreachable_blocks): Simplified -- quadratic behavior now
4735 cannot occur.
4736 (cleanup_cfg): Compact blocks.
4737 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
4738 basic_block_info varray.
4739 (flow_delete_block): Comment update.
4740 (back_edge_of_syntactic_loop_p): Modify position check code.
4741 (verify_flow_info): Update checking.
4742 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
4743 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
4744 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
4745 indices no longer change.
4746 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
4747 last_basic_block.
4748 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
4749 * profile.c (branch_prob): Compact blocks.
4750 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
4751 last_basic_block.
4752
4753 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
4754
4755 * config/h8300/h8300.md (two anonymous patterns): New.
4756
4757 2002-05-28 David S. Miller <davem@redhat.com>
4758
4759 * config/sparc/sparc.md (cpu): Tidy.
4760 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
4761 'trap'.
4762 (in_call_delay): Delete reference to 'return' type.
4763 (eligible_for_return_delay, in_return_delay, define_delay
4764 referencing those): Delete.
4765 (rest of file): Use new type attributes as appropriate.
4766 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
4767 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
4768 * config/sparc/ultra1_2.md (us1_single): New reservation.
4769 (us1_ialuX): Likewise.
4770 * config/sparc/ultra3.md (us3_single): Likewise.
4771 (us3_ialuX): Likewise.
4772 (us3_imul, us3_idiv): Tweak.
4773
4774 2002-05-28 Richard Henderson <rth@redhat.com>
4775
4776 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
4777 STRING_CST.
4778
4779 2002-05-28 Richard Henderson <rth@redhat.com>
4780
4781 * config.gcc: Obsolete mn10200.
4782
4783 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
4784
4785 * cppexp.c (interpret_number): Optimize for single-digit
4786 and less-than-half-precision cases.
4787 (num_trim, num_positive, num_div_op): Cast constants.
4788
4789 2002-05-27 Bo Thorsen <bo@suse.de>
4790
4791 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
4792 3.1 branch. The file was made by Jakub Jelinek.
4793 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
4794 support so multilib doesn't break. And don't define this at all
4795 when -Dinhibit_libc is used.
4796 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
4797 * config/i386/t-linux64: Implement full multilib support. Patch
4798 originally done by Andreas Jaeger and Jakub Jelinek.
4799
4800 2002-05-27 Roger Sayle <roger@eyesopen.com>
4801
4802 * c-common.c: Add support for __attribute__((nothrow)) to specify
4803 that a function cannot throw an exception (using TREE_NOTHROW).
4804 (handle_nothrow_attribute): New function to process this attribute.
4805
4806 * doc/extend.texi: Document the new nothrow function attribute.
4807
4808 2002-05-27 H.J. Lu (hjl@gnu.org)
4809
4810 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
4811 (num_positive): Likewise.
4812 (num_div_op): Likewise.
4813
4814 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
4815
4816 * c-common.c (c_common_init): Always use intmax_t.
4817
4818 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
4819
4820 * c-common.c (c_common_init): Use intmax_t for now.
4821
4822 2002-05-24 Andrew Haley <aph@redhat.com>
4823
4824 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
4825 if T is a boolean type.
4826
4827 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4828
4829 * basic-block.h (last_basic_block): Defined as synonym for
4830 n_basic_blocks.
4831 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
4832 flow_depth_first_order_compute, flow_preorder_transversal_compute,
4833 flow_dfs_compute_reverse_init): Replaced relevant occurences of
4834 n_basic_blocks with last_basic_block.
4835 * cfgbuild.c (make_edges): Likewise.
4836 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
4837 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
4838 * combine.c (combine_instructions): Likewise.
4839 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
4840 iterative_dataflow_bitmap): Likewise.
4841 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
4842 calc_idoms, idoms_to_doms): Likewise.
4843 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
4844 Likewise.
4845 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
4846 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
4847 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
4848 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
4849 delete_null_pointer_checks, compute_code_hoist_vbeinout,
4850 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
4851 compute_store_table, build_store_vectors): Likewise.
4852 * haifa-sched.c (sched_init): Likewise.
4853 * ifcvt.c (if_convert): Likewise.
4854 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
4855 pre_edge_lcm, compute_available, compute_nearerout,
4856 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
4857 Likewise.
4858 * predict.c (estimate_probability, process_note_prediction,
4859 note_prediction_to_br_prob): Likewise.
4860 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
4861 * recog.c (split_all_insns, peephole2_optimize): Likewise.
4862 * regrename.c (copyprop_hardreg_forward): Likewise.
4863 * resource.c (init_resource_info): Likewise.
4864 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
4865 init_regions, schedule_insns): Likewise.
4866 * ssa-ccp.c (ssa_const_prop): Likewise.
4867 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
4868 * ssa.c (compute_dominance_frontiers,
4869 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
4870
4871 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
4872 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
4873 sizes consistently.
4874
4875 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
4876
4877 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
4878 new.
4879 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
4880 hoist_insn_after, hoist_insn_to_edge): New.
4881
4882 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
4883
4884 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
4885 (PROP_FINAL): Include.
4886 * flow.c (life_analysis, update_life_info,
4887 init_propagate_block_info, mark_set_1, mark_used_rgs):
4888 Support SCAN_DEAD_STORE.
4889
4890 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
4891
4892 * c-common.c (c_common_init): Set CPP arithmetic precision.
4893 * cppexp.c (cpp_num_part): Move typedef ...
4894 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
4895 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
4896 (sanity_checks): Update.
4897
4898 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
4899
4900 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
4901 (mkheaders): New rule.
4902 (install-mkheaders): New rule.
4903 * configure.in (all_outputs): Add mkheaders.
4904 * configure: Regenerate.
4905 * mkheaders.in: New file.
4906
4907 2002-05-26 Jakub Jelinek <jakub@redhat.com>
4908
4909 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
4910
4911 2002-05-26 Andreas Jaeger <aj@suse.de>
4912
4913 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
4914
4915 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
4916
4917 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
4918 right_shift): Remove.
4919 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
4920 HIGH_PART): New.
4921 (struct op): Use cpp_num.
4922 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
4923 num_part_mul, num_unary_op, num_binary_op, num_negate,
4924 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
4925 num_div_op, num_lshift, num_rshift, append_digit): New.
4926 (interpret_number, parse_defined, eval_token, reduce): Update
4927 for two-integer arithmetic.
4928 (binary_handler): New typedef.
4929 (optab): Update.
4930 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
4931 (_cpp_parse_expr, reduce): Update to handle two-integers.
4932 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
4933
4934 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
4935
4936 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
4937 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
4938 branch insn into account, do not assume 1.
4939 (avr_out_sbxx_branch): New function. Optimize cases of skipping
4940 over single word insn. Handle upper half of I/O space too.
4941 * config/avr/avr.md (*sbrx_branch): Use it.
4942 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
4943 (*sbix_branch, *sbix_branch_bit7): Likewise.
4944 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
4945 Use RTL peepholes to optimize register operand sign tests.
4946
4947 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
4948
4949 * config/avr/avr.c (avr_asm_only_p): New variable.
4950 (avr_override_options): Set it here if AVR1.
4951 (asm_file_start): Test it here, report an error if set.
4952
4953 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
4954
4955 * alias.c: Fix formatting.
4956 * attribs.c: Likewise.
4957 * bb-reorder.c: Likewise.
4958 * bitmap.c: Likewise.
4959 * bitmap.h: Likewise.
4960 * builtins.c: Likewise.
4961
4962 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
4963
4964 * reload.c (find_valid_class): Accept new argument DEST,
4965 choose class accordingly.
4966 (push_reload): Update callers.
4967
4968 2002-05-26 Andreas Jaeger <aj@suse.de>
4969
4970 * combine.c (combine_instructions): Do not indent #if for
4971 traditional C.
4972
4973 2002-05-25 Richard Henderson <rth@redhat.com>
4974
4975 * c-pragma.c (apply_pragma_weak): Convert value identifier to
4976 string for decl_attributes.
4977 (handle_pragma_weak): Call assemble_alias if we're modifying
4978 an existing decl.
4979
4980 2002-05-25 Richard Henderson <rth@redhat.com>
4981
4982 PR target/6788
4983 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
4984 using rtl instead of fprintf.
4985 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
4986 * config/sparc/sparc-protos.h: Update.
4987
4988 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
4989
4990 * Makefile.in (C_COMMON_H): Fix.
4991 Update other targets.
4992 * c-common.c: Don't include c-lex.h.
4993 (builtin_define_with_value): Make static and prototype.
4994 (builtin_define_std): Move from c-lex.h.
4995 * c-common.h (init_c_lex): Move from c-lex.h.
4996 * c-decl.c: Don't include c-lex.h.
4997 (make_pointer_declarator): Move from c-parse.in.
4998 * c-lex.c: Don't include c-lex.h.
4999 * c-lex.h: Remove.
5000 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
5001 (make_pointer_declarator): Move to c-decl.c.
5002 * c-pragma.c: Don't include c-lex.h.
5003 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
5004 * c-tree.h (make_pointer_declarator): New.
5005 doc:
5006 * passes.texi, tm.texi: Update.
5007 objc:
5008 * Make-lang.in: Update and correct.
5009 * objc-act.c: Don't include c-lex.h or cpplib.h.
5010 treelang:
5011 * treetree.c: Don't include c-lex.h.
5012 config:
5013 * darwin-c.c: Don't include c-lex.h.
5014 * c4x/c4x-c.c: Don't include c-lex.h.
5015 * c4x/t-c4x: Update.
5016 * i370/i370-c.c: Don't include c-lex.h.
5017 * i370/t-i370: Update.
5018 * i960/i960-c.c: Don't include c-lex.h.
5019 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
5020 * i960/t-960bare: Update.
5021 * i960/t-vxworks: Update.
5022 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
5023 * rs6000/t-darwin: Update.
5024 * rs6000/t-rs6000-c-rule: Update.
5025 * v850/v850-c.c: Don't include c-lex.h.
5026 * v850/v850.c: Don't include c-lex.h or cpplib.h.
5027
5028
5029 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
5030
5031 * tree.def: Fix typos.
5032 * doc/install.texi: Likewise.
5033
5034 2002-05-25 Richard Henderson <rth@redhat.com>
5035
5036 * configure.in (HAVE_AS_TLS): Add ia64 test.
5037 * configure: Rebuild.
5038 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
5039 (override_options): Set it.
5040 (TARGET_HAVE_TLS): New.
5041 (sdata_symbolic_operand): Look for 's'.
5042 (tls_symbolic_operand): New.
5043 (ia64_expand_load_address): Abort for tls symbols.
5044 (gen_tls_get_addr): New.
5045 (gen_thread_pointer): New.
5046 (ia64_expand_move): Split out from movdi. Handle tls symbols.
5047 (rtx_needs_barrier): Add new unspecs.
5048 (ia64_encode_section_info): Handle tls symbols.
5049 (ia64_strip_name_encoding): Strip two encoding chars.
5050 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
5051 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
5052 (TARGET_OPTIONS): Add tls-size.
5053 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
5054 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
5055 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
5056 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
5057 (movsf, movdf): Likewise.
5058 (movdi_symbolic): Use match_scratch. Don't split if we won't
5059 have a scratch availiable.
5060 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
5061 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
5062 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
5063 * config/ia64/ia64-protos.h: Update.
5064 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
5065 sdata_symbolic_operand.
5066 (ASM_OUTPUT_LABELREF): Strip two characters.
5067
5068 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
5069
5070 * combine.c (simplify_set): Remove an unnecessary subreg.
5071
5072 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
5073
5074 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
5075
5076 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
5077
5078 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
5079
5080 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
5081
5082 2002-05-25 Roger Sayle <roger@eyesopen.com>
5083
5084 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
5085 (cond (compare x y) 0) into the equivalent (cond x y).
5086
5087 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
5088
5089 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
5090
5091 2002-05-24 Zack Weinberg <zack@codesourcery.com>
5092
5093 * config.gcc: Remove all stanzas for previously obsoleted
5094 systems. Where necessary, add explicit error stanzas to
5095 prevent removed systems from being misidentified as something
5096 else. Begin a fresh obsoletions list, with the systems that
5097 were reprieved last round.
5098 * doc/install.texi: Remove all mention of dead targets.
5099 * fixinc/mkfixinc.sh: Likewise.
5100
5101 * config/arm/arm.h: Bit 31 of target_flags is no longer
5102 reserved.
5103
5104 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
5105 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
5106 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
5107 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
5108 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
5109 config/alpha/osf12.h, config/alpha/osf2or3.h,
5110 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
5111 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
5112 config/clipper/clipper-protos.h, config/clipper/clipper.c,
5113 config/clipper/clipper.h, config/clipper/clipper.md,
5114 config/clipper/clix.h, config/convex/convex-protos.h,
5115 config/convex/convex.c, config/convex/convex.h,
5116 config/convex/convex.md, config/convex/fixinc.convex,
5117 config/convex/proto.h, config/elxsi/elxsi-protos.h,
5118 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
5119 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
5120 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
5121 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
5122 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
5123 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
5124 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
5125 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
5126 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
5127 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
5128 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
5129 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
5130 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
5131 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
5132 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
5133 config/m68k/altos3068.h, config/m68k/apollo68.h,
5134 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
5135 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
5136 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
5137 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
5138 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
5139 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
5140 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
5141 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
5142 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
5143 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
5144 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
5145 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
5146 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
5147 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
5148 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
5149 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
5150 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
5151 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
5152 config/mips/dec-osf1.h, config/mips/elflorion.h,
5153 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
5154 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
5155 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
5156 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
5157 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
5158 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
5159 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
5160 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
5161 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
5162 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
5163 config/ns32k/sequent.h, config/ns32k/tek6000.h,
5164 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
5165 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
5166 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
5167 config/sparc/rtems.h, config/we32k/we32k-protos.h,
5168 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
5169 Delete file.
5170
5171 2002-05-24 Richard Henderson <rth@redhat.com>
5172
5173 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
5174 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
5175 * config/i386/i386.c (tls_model_chars): Add leading space.
5176 (tls_symbolic_operand): Don't bias by 1.
5177 (legitimize_address): Don't unbias by 1.
5178
5179 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
5180
5181 * lcm.c (optimize_mode_switching): Change bb used as indices
5182 to bb->index.
5183
5184 2002-05-24 Richard Henderson <rth@redhat.com>
5185
5186 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
5187 of update_life_info_in_dirty_blocks.
5188
5189 2002-05-24 Jakub Jelinek <jakub@redhat.com>
5190
5191 PR other/6782
5192 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
5193
5194 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
5195
5196 PR preprocessor/6780
5197 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
5198
5199 2002-05-24 Jim Blandy <jimb@redhat.com>
5200
5201 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
5202 entry with a type code of zero, marking the end of the compilation
5203 unit's macro info.
5204
5205 2002-05-24 Richard Henderson <rth@redhat.com>
5206
5207 * varasm.c (asm_output_bss): Always output one byte.
5208 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
5209
5210 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5211
5212 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
5213 namespace.
5214
5215 2002-05-24 Andreas Jaeger <aj@suse.de>
5216
5217 * ggc-page.c (alloc_page): Cast variables of type size_t to
5218 unsigned long, adjust printf format string.
5219 (ggc_alloc): Likewise.
5220 (ggc_print_statistics): Likewise.
5221 (ggc_print_statistics): Correct printf format string for SCALE to
5222 use unsigned long.
5223
5224 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
5225
5226 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
5227
5228 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
5229 Zack Weinberg <zack@codesourcery.com>
5230
5231 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
5232 quoted strings.
5233 * dwarf2out.c (lookup_filename): Properly quote filename in .file
5234 directive in assembly file.
5235 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5236 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5237 * config/pj/pj.h (ASM_FILE_START): Likewise.
5238 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5239 * config/avr/avr.c (asm_file_end): Likewise.
5240 * toplev.c (output_quoted_string): Handle possibly signed plain
5241 char.
5242 * toplev.h (output_clean_symbol_name): Declare
5243 * toplev.c (output_clean_symbol_name): Define.
5244 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
5245 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
5246
5247 2002-05-24 Alan Modra <amodra@bigpond.net.au>
5248
5249 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
5250
5251 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
5252
5253 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
5254 of size of unsigned.
5255
5256 2002-05-23 Richard Henderson <rth@redhat.com>
5257
5258 * configure.in (HAVE_AS_TLS): New test.
5259 * config.in, configure: Rebuild.
5260 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
5261 (ix86_tls_dialect_string, ix86_tls_dialect): New.
5262 (override_options): Set it.
5263 (tls_model_chars, tls_symbolic_operand): New.
5264 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
5265 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
5266 (local_exec_symbolic_operand): New.
5267 (get_pic_label_name): Merge into output_set_got.
5268 (ix86_asm_file_end): Emit pic_label_name if defined.
5269 (legitimate_constant_p, constant_address_p): New.
5270 (legitimate_pic_operand_p): New.
5271 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
5272 (legitimate_address_p): Likewise.
5273 (ix86_encode_section_info): Rename from i386_; handle tls decls.
5274 (ix86_strip_name_encoding): New.
5275 (get_thread_pointer): New.
5276 (legitimize_address): Handle tls symbols.
5277 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
5278 Remove UNSPEC_PLT.
5279 (struct machine_function): Add some_ld_name.
5280 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
5281 (print_operand) [&]: Use it. Handle UNSPEC_TP.
5282 (output_addr_const_extra): New.
5283 (maybe_get_pool_constant): New.
5284 (ix86_split_to_parts): Use it.
5285 (ix86_expand_move): Handle tls symbols.
5286 (ix86_tls_get_addr): New.
5287 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
5288 (TARGET_OPTIONS): Add tls-dialect.
5289 (CONSTANT_ADDRESS_P): Use new out-of-line function.
5290 (LEGITIMATE_CONSTANT_P): Likewise.
5291 (LEGITIMATE_PIC_OPERAND_P): Likewise.
5292 (TARGET_STRIP_NAME_ENCODING): New.
5293 (ASM_OUTPUT_LABELREF): New.
5294 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
5295 (OUTPUT_ADDR_CONST_EXTRA): New.
5296 (PREDICATE_CODES): Update.
5297 (ix86_tls_dialect, ix86_tls_dialect_string): New.
5298 * config/i386/i386.md: Regroup and renumber unspec constants.
5299 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
5300 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
5301 (tls_global_dynamic, tls_local_dynamic_base): New.
5302 (tls_local_dynamic_once): New.
5303 * config/i386/i386-protos.h: Update.
5304
5305 2002-05-23 Richard Henderson <rth@redhat.com>
5306
5307 * genemit.c (gen_insn): Print file:lineno comment before function.
5308 (main): likewise.
5309 * gensupport.c (struct queue_elem): Add filename member.
5310 (queue_pattern): Initialize it; update all callers.
5311 (process_include): Don't free filename.
5312 (read_md_rtx): Set read_rtx_filename.
5313
5314 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
5315
5316 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
5317
5318 2002-05-23 Richard Henderson <rth@redhat.com>
5319
5320 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
5321
5322 2002-05-23 Richard Henderson <rth@redhat.com>
5323
5324 * doc/extend.texi (C++98 Thread-Local Edits): Update with
5325 commentary from Mark.
5326
5327 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5328
5329 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
5330 Use FOR_EACH_BB macros to iterate over basic block chain.
5331 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
5332 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
5333 Likewise.
5334 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
5335 find_unreachable_blocks, create_edge_list, verify_edge_list,
5336 remove_fake_edges, add_noreturn_fake_exit_edges,
5337 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
5338 Likewise.
5339 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
5340 find_sub_basic_blocks): Likewise.
5341 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
5342 Likewise.
5343 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
5344 Likewise.
5345 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
5346 Likewise.
5347 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
5348 commit_edge_insertions, commit_edge_insertions_watch_calls,
5349 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
5350 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
5351 * conflict.c (conflict_graph_compute): Likewise.
5352 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5353 df_modified_p, df_refs_unlink, df_dump): Likewise.
5354 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
5355 * final.c (compute_alignments): Likewise.
5356 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
5357 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
5358 count_or_remove_death_notes): Likewise.
5359 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
5360 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
5361 classic_gcse, compute_transp, cprop, compute_pre_data,
5362 compute_transpout, invalidate_nonnull_info,
5363 delete_null_pointer_checks_1, delete_null_pointer_checks,
5364 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
5365 compute_store_table, build_store_vectors, store_motion): Likewise.
5366 * global.c (global_conflicts, mark_elimination): Likewise.
5367 * graph.c (print_rtl_graph_with_bb): Likewise.
5368 * haifa-sched.c (sched_init): Likewise.
5369 * ifcvt.c (if_convert): Likewise.
5370 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5371 compute_available, compute_nearerout, compute_rev_insert_delete,
5372 optimize_mode_switching): Likewise.
5373 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
5374 * predict.c (estimate_probability, note_prediction_to_br_prob,
5375 propagate_freq, counts_to_freqs, expensive_function_p,
5376 estimate_bb_frequencies): Likewise.
5377 * profile.c (instrument_edges, get_exec_counts,
5378 compute_branch_probabilities, compute_checksum, branch_prob,
5379 find_spanning_tree): Likewise.
5380 * recog.c (split_all_insns, peephole2_optimize): Likewise.
5381 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
5382 Likewise.
5383 * regclass.c (scan_one_insn, regclass): Likewise.
5384 * regmove.c (mark_flags_life_zones, regmove_optimize,
5385 record_stack_memrefs): Likewise.
5386 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
5387 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
5388 * resource.c (find_basic_block): Likewise.
5389 * sched-ebb.c (schedule_ebbs): Likewise.
5390 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
5391 find_single_block_region, find_rgns, schedule_insns)
5392 * sibcall.c (optimize_sibling_and_tail_recursive_call)
5393 * ssa-ccp.c (optimize_unexecutable_edges,
5394 ssa_ccp_df_delete_unreachable_insns): Likewise.
5395 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5396 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
5397 rename_block, convert_to_ssa, compute_conservative_reg_partition,
5398 compute_coalesced_reg_partition, rename_equivalent_regs,
5399 convert_from_ssa): Likewise.
5400 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
5401 process_for_unwind_directive): Likewise.
5402
5403 * df.c (FOR_ALL_BBS): Removed.
5404 * gcse.c (struct null_pointer_info): Type of current_block field
5405 changed.
5406 (struct reg_avail_info): Type of last_bb field changed.
5407 * config/ia64/ia64.c (block_num): Removed.
5408 (need_copy_state): Type changed.
5409 (last_block): New.
5410
5411 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
5412
5413 * cppinit.c (mark_named_operators): Split out from init_builtins.
5414 (cpp_finish_options): Call it from here instead.
5415
5416 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
5417
5418 * builtin-attrs.def: Update copyright years.
5419 (ATTR_NONNULL): New attribute identifier.
5420 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
5421 attribute tree lists.
5422 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
5423 format operand.
5424 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
5425 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
5426 attribute lists. Chain the appropriate nonnull attribute.
5427 * c-format.c (check_format_arg): Remove null format string
5428 warning.
5429 * testsuite/gcc.dg/format/null-1.c: New test.
5430
5431 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5432
5433 * Makefile.in (ADAC): Define.
5434 (SYSLIBS): Define.
5435 (.SUFFIXES): Move before language makefile fragments.
5436 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
5437
5438 2002-05-23 Mark Mitchell <mark@codesourcery.com>
5439
5440 * varasm.c (make_decl_rtl): Don't allow weak variables to be
5441 placed in common.
5442
5443 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
5444
5445 * cfg.c (dump_flow_info): Print results of
5446 maybe_hot/probably_never_executed predicates.
5447 * toplev.c (open_dump_file): Print function frequency.
5448
5449 2002-05-23 David S. Miller <davem@redhat.com>
5450
5451 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
5452 regsets.
5453
5454 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
5455
5456 * c-common.c (warn_nonnull): Declare.
5457 (c_common_attribute_table): Add "nonnull" attribute.
5458 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
5459 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
5460 check_function_arguments_recurse): New functions.
5461 * c-common.h (warn_nonnull): Declare extern.
5462 (check_function_arguments, check_function_arguments_recurse): New
5463 prototypes.
5464 * c-decl.c (c_decode_option): Add -Wnonnull option.
5465 * c-format.c (set_Wformat): Set warn_nonnull if enabling
5466 format checking.
5467 (format_check_context): New structure.
5468 (check_format_info_recurse): Remove recursion and rename to...
5469 (check_format_arg): ...this. Update comment.
5470 (check_format_info): Use check_function_arguments_recurse.
5471 * c-typeck.c (build_function_call): Call check_function_arguments
5472 instead of check_function_format.
5473 * doc/extend.texi: Document "nonnull" attribute.
5474 * doc/invoke.texi: Docuemnt -Wnonnull option.
5475 * testsuite/gcc.dg/nonnull-1.c: New test.
5476 * testsuite/gcc.dg/nonnull-2.c: New test.
5477
5478 2002-05-23 David S. Miller <davem@redhat.com>
5479
5480 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
5481 * cfgcleanup.c (cleanup_cfg): If it is set do not
5482 attempt to delete trivially dead insns.
5483 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
5484 * toplev.c (rest_of_compilation): Document non-trivial aspect
5485 the RTL before optimize_save_area_alloca is run.
5486
5487 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
5488
5489 * c-lex.c (indent_level): Remove.
5490 (cb_file_change, c_lex): Remove indent level handling.
5491 * c-lex.h (indent_level): Remove.
5492 * input.h (struct file_stack): Remove indent_level.
5493 * toplev.c (push_srcloc): Remove indent_level handling.
5494
5495 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5496
5497 PR target/6753
5498 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
5499 of x in constraints for clarity.
5500 (sse_mov?fcc split): abort if op2 == op3.
5501 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
5502 sse_movsfcc_const0_4): Add earlyclobber.
5503 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
5504 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
5505 Use Y instead of x in constraints.
5506
5507 2002-05-23 Richard Henderson <rth@redhat.com>
5508
5509 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
5510 (C++98 Thread-Local Edits): New subsection.
5511
5512 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
5513 (ix86_arch): Set type to enum processor_type.
5514
5515 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
5516 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
5517
5518 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5519
5520 * configure.in: Fix as version test for binutils 2.12.1 releases
5521 (without dates).
5522 * configure: Rebuilt.
5523
5524 2002-05-23 Richard Henderson <rth@redhat.com>
5525
5526 * config/i386/i386.c (get_pic_label_name): New.
5527 (load_pic_register): Remove.
5528 (output_set_got): New.
5529 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
5530 * config/i386/i386.md (UNSPEC_SET_GOT): New.
5531 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
5532 (prologue_set_got, prologue_get_pc): Remove.
5533 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
5534 (builtin_setjmp_receiver): Use gen_set_got.
5535 * config/i386/i386-protos.h: Update.
5536
5537 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
5538
5539 * gcse.c (hash_expr): Do not use alias set for hashing.
5540
5541 2002-05-22 Kevin Buettner <kevinb@redhat.com>
5542
5543 * dbxout.c (dbxout_class_name_qualifiers): New function.
5544 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
5545
5546 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
5547
5548 * cpperror.c (_cpp_begin_message): No special casing
5549 of CPP_FATAL_LIMIT.
5550 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
5551 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
5552 * cpplib.c (do_include_common): Use DL_ERROR.
5553 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
5554 (DL_ICE): Renumber.
5555 * fix-header.c (read_scan_file): Update.
5556
5557 2002-05-22 Richard Henderson <rth@redhat.com>
5558
5559 * config/i386/i386.c (ix86_expand_call): New function, extracted
5560 from md call patterns. Add pic_offset_table_rtx to
5561 CALL_INSN_FUNCTION_USAGE when needed.
5562 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
5563 (call_value_pop, call_value, untyped_call): Likewise.
5564 (call_exp, call_value_exp): Remove.
5565 * config/i386/i386-protos.h: Update.
5566
5567 2002-05-22 Richard Henderson <rth@redhat.com>
5568
5569 * varasm.c (default_section_type_flags): Check for VAR_DECL
5570 before using DECL_THREAD_LOCAL.
5571
5572 2002-05-22 David Edelsohn <edelsohn@gnu.org>
5573
5574 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
5575 (STARTFILE_SPEC): Delete PE crt0.o.
5576 * config/rs6000/aix51.h: Same.
5577 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
5578 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
5579 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
5580 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
5581 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
5582
5583 2002-05-22 Richard Henderson <rth@redhat.com>
5584
5585 * varasm.c (default_section_type_flags): Handle tls data and
5586 default sections.
5587 (default_unique_section): Handle tls sections.
5588
5589 2002-05-23 Alan Modra <amodra@bigpond.net.au>
5590
5591 * configure.in (CROSS): Define NATIVE_CROSS.
5592 * configure: Regenerate.
5593 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
5594 (startfile_prefix_spec): New var.
5595 (static_specs): Add startfile_prefix_spec.
5596 (do_spec_2): Split out from..
5597 (do_spec): ..here.
5598 (main): Process startfile_prefix_spec.
5599 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
5600 dynamic linker.
5601 (STARTFILE_PREFIX_SPEC): Define.
5602 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
5603 absolute paths.
5604
5605 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
5606
5607 * cpperror.c: Fix formatting.
5608 * cppexp.c: Likewise.
5609 * cppfiles.c: Likewise.
5610 * cpphash.c: Likewise.
5611 * cpphash.h: Likewise.
5612 * cppinit.c: Likewise.
5613 * cpplex.c: Likewise.
5614 * cpplib.c: Likewise.
5615 * cppmacro.c: Likewise.
5616 * cppmain.c: Likewise.
5617 * cppspec.c: Likewise.
5618
5619 2002-05-22 Jakub Jelinek <jakub@redhat.com>
5620
5621 * combine.c (force_to_mode): Use gen_int_mode.
5622 Don't clear CONST_INT bits outside of mode.
5623
5624 2002-05-22 Richard Henderson <rth@redhat.com>
5625
5626 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
5627 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
5628
5629 2002-05-22 Jakub Jelinek <jakub@redhat.com>
5630
5631 PR c/6643
5632 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
5633 if DECL_SIZE_UNIT is INTEGER_CST.
5634
5635 2002-05-22 Richard Henderson <rth@redhat.com>
5636
5637 * flow.c (life_analysis): Delete broken reg_label check.
5638
5639 2002-05-22 Richard Henderson <rth@redhat.com>
5640
5641 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
5642 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
5643
5644 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
5645
5646 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
5647 (embed-bb.c): New rule.
5648 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
5649 * config/sh/embed_bb.c: Delete.
5650
5651 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
5652
5653 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
5654
5655 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
5656
5657 * config/h8300/h8300.md (*andorqi3): New.
5658
5659 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
5660
5661 PR preprocessor/6517
5662 * Makefile.in: Update.
5663 * c-common.c (c_common_post_options): Add preprocessor
5664 errors to the error count.
5665 * c-lang.c (c_post_options): Kill.
5666 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
5667 * hooks.h: Add header guards.
5668 * langhooks-def.h: Include hooks.h.
5669 (LANG_HOOKS_POST_OPTIONS): Update.
5670 * langhooks.h (struct lang_hooks): Update post_options.
5671 * toplev.c (parse_options_and_default_flags): Update.
5672 objc:
5673 * objc-lang.c (objc_post_options): Kill.
5674 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
5675
5676 2002-05-21 Bruce Korb <bkorb@gnu.org>
5677
5678 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
5679 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
5680 * fixinc/fixincl.x: regen.
5681
5682 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
5683
5684 * cfgbuild.c: Fix formatting.
5685 * cfg.c: Likewise.
5686 * cfgcleanup.c: Likewise.
5687 * cfglayout.c: Likewise.
5688 * cfgloop.c: Likewise.
5689 * cfgrtl.c: Likewise.
5690
5691 2002-05-21 Richard Henderson <rth@redhat.com>
5692
5693 * c-common.h (enum rid): Add RID_THREAD.
5694 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
5695 (grokdeclarator): Grok __thread.
5696 * c-parse.in (reswords): Add __thread.
5697 (rid_to_yy): Add RID_THREAD.
5698
5699 * tree.h (DECL_THREAD_LOCAL): New.
5700 (struct tree_decl): Add thread_local_flag.
5701 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
5702 * tree.c (staticp): TLS variables are not static.
5703
5704 * target-def.h (TARGET_HAVE_TLS): New.
5705 * target.h (have_tls): New.
5706 * output.h (SECTION_TLS): New.
5707 * varasm.c (assemble_variable): TLS variables can't be common for now.
5708 (default_section_type_flags): Handle .tdata and .tbss.
5709 (default_elf_asm_named_section): Handle SECTION_TLS.
5710 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
5711
5712 * flags.h (flag_tls_default): Declare.
5713 * toplev.c (flag_tls_default): Define.
5714 (display_help): Display help for it.
5715 (decode_f_option): Set it.
5716
5717 * doc/extend.texi (Thread-Local): New node describing language-level
5718 thread-local storage.
5719 * doc/invoke.texi (-ftls-model): Document.
5720
5721 * fixinc/inclhack.def (thread_keyword): New.
5722 * fixinc/fixincl.x: Rebuild.
5723
5724 2002-05-21 Jeffrey A Law <law@redhat.com>
5725
5726 * optabs.c (expand_binop): For double-word integer multiplies,
5727 do not compute intermediate results into something that is
5728 not a register (such as a SUBREG or MEM).
5729
5730 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
5731 (ix86_sched_reorder): Make sure to initialize scheduling
5732 data even when there's only one insn in the ready queue.
5733
5734 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
5735
5736 * genautomata.c (reserv_sets_hash_value): Fix a typo.
5737
5738 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
5739
5740 * genautomata.c (reserv_sets_hash_value): Define hash_value as
5741 set_el_t. Transform the hash value into unsigned.
5742 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
5743 (transform_3): Add code to process `(A,B)+(D,E)'.
5744
5745 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
5746
5747 * reload1.c (do_output_reload): Run delete_output_reload
5748 only if optimizing.
5749
5750 2002-05-21 Roger Sayle <roger@eyesopen.com>
5751
5752 PR middle-end/6600
5753 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
5754 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
5755 (can_store_by_pieces): ... and here to limit the largest mode used.
5756 Add a comment to document this function.
5757
5758 2002-05-21 Richard Henderson <rth@redhat.com>
5759
5760 * flow.c (life_analysis): Fix test for deleted label.
5761
5762 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
5763
5764 * doc/tm.texi: Fix typo.
5765
5766 2002-05-21 Zack Weinberg <zack@codesourcery.com>
5767
5768 * c-common.c (c_common_init): Set options->unsigned_char from
5769 flag_signed_char.
5770 (cb_register_builtins): Define __STRICT_ANSI__ and
5771 __CHAR_UNSIGNED__ here...
5772 * cppinit.c (init_builtins): Not here.
5773 (cpp_create_reader): unsigned_char option defaults to 0, not
5774 !DEFAULT_SIGNED_CHAR.
5775 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
5776 and -funsigned-char.
5777
5778 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
5779 * cpphash.c (_cpp_init_hashtable): Don't set it.
5780 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
5781 directly. Clarify comment.
5782
5783 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5784
5785 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
5786 neighbouring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
5787 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
5788 BASIC_BLOCK (n_basic_blocks - 1).
5789 * cfganal.c (can_fallthru, flow_call_edges_add,
5790 flow_preorder_transversal_compute): Too.
5791 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
5792 find_sub_basic_blocks): Too.
5793 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
5794 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
5795 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
5796 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
5797 * combine.c (this_basic_block): Type changed to basic_block.
5798 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
5799 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
5800 get_last_value, distribute_notes, distribute_links): Too.
5801 * final.c (compute_alignments): Too.
5802 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
5803 * function.c (thread_prologue_and_epilogue_insns): Too.
5804 * gcse.c (compute_code_hoist_vbeinout): Too.
5805 * global.c (build_insn_chain): Too.
5806 * ifcvt.c (find_if_block, find_cond_trap): Too.
5807 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
5808 * regmove.c (regmove_optimize): Too.
5809 * resource.c (find_basic_block): Too.
5810 * sched-ebb.c (schedule_ebbs): Too.
5811 * ssa-dce.c (find_control_dependence, find_pdom): Too.
5812
5813 2002-05-21 Andreas Jaeger <aj@suse.de>
5814
5815 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
5816
5817 2002-05-21 Richard Henderson <rth@redhat.com>
5818
5819 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
5820 unspec names, not numbers.
5821
5822 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
5823
5824 * doc/sourcebuild.texi: Mention snapshot-README and
5825 snapshot-index.html as needing updating for new front ends.
5826
5827 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5828
5829 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
5830 disabling checking, and avoid multiple evaluation of RTX.
5831
5832 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
5833
5834 * bitmap.c (bitmap_find_bit): Return early if we have the correct
5835 element cached.
5836
5837 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
5838
5839 * profile.c (gen_edge_profiler): Set alias set before the memory is
5840 used.
5841
5842 2002-05-20 David S. Miller <davem@redhat.com>
5843
5844 * cselib.c (max_value_regs): New.
5845 (cselib_lookup, cselib_invalidate_regno): Initialize it when
5846 adding new entries to the REG_VALUES table and we are dealing with
5847 a hard register.
5848 (clear_table): Initialize it.
5849 (cselib_invalidate_regno): Use it to determine which hard
5850 registers to scan when mode is not VOIDmode.
5851
5852 2002-05-20 Duraid Madina <duraid@fl.net.au>
5853
5854 * tradcpp.c (fixup_newlines): Use old-style function header.
5855
5856 2002-05-20 Krister Walfridsson <cato@df.lth.se>
5857
5858 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
5859
5860 2002-05-20 H.J. Lu (hjl@gnu.org)
5861
5862 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
5863
5864 * config/mips/mips.h (DFMODE_NAN): Defined.
5865 (SFMODE_NAN): Likewise.
5866
5867 2002-05-20 Dale Johannesen <dalej@apple.com>
5868
5869 * combine.c (cant_combine_insn_p): Back out my
5870 previous patch.
5871
5872 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5873
5874 * params.c: Fix formatting.
5875 * params.h: Likewise.
5876 * predict.c: Likewise.
5877 * prefix.c: Likewise.
5878 * print-rtl.c: Likewise.
5879 * print-tree.c: Likewise.
5880 * profile.c: Likewise.
5881
5882 2002-05-20 H.J. Lu (hjl@gnu.org)
5883
5884 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
5885
5886 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
5887
5888 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
5889 switches straight on to the assembler, do not abbreviate them.
5890 * config/arm/elf.h (ASM_SPEC): As above.
5891 * config/arm/semi.h (ASM_SPEC): As above.
5892 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
5893 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
5894 -mcpu=xscale on to the assembler by default.
5895 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
5896
5897 2002-05-20 Richard Henderson <rth@redhat.com>
5898
5899 * cse.c (canon_hash): Reorder do_not_record test. Always
5900 allow pic_offset_table_rtx.
5901
5902 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
5903
5904 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
5905 (expand_binop): Ditto (3 times).
5906
5907 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
5908
5909 * Makefile.in (distclean): Remove QMTest stuff.
5910 (QMTEST_PATH): New variable.
5911 (QMTESTFLAGS): Likewise.
5912 (QMTESTRUNFLAGS): Likewise.
5913 (QMTEST): Likewise.
5914 (QMTEST_GPP_TESTS): Likewise.
5915 (QMTEST_DIR): Likewise.
5916 (QMTEST_DIR/context): New target.
5917 (qmtest-g++): Likeise.
5918 (qmtest-gui): Likewise.
5919 (QMTEST_DIR/gpp-expected.qmr): Likewise.
5920
5921 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
5922
5923 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
5924 an altivec register if TARGET_ALTIVEC.
5925
5926 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
5927 to ALTIVEC_VECTOR_MODE.
5928 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
5929 (rs6000_va_arg): Vectors may go in registers if they are not
5930 altivec vectors.
5931
5932 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
5933
5934 * protoize.c: Fix formatting.
5935
5936 2002-05-19 Richard Henderson <rth@redhat.com>
5937
5938 * gensupport.c (init_include_reader): Merge into ...
5939 (process_include): ... here. Simplify composite path creation.
5940 Plug memory leaks. Fix file/line number tracking. Do not
5941 process_define_cond_exec. Return void.
5942 (process_rtx): Don't check process_include return value.
5943
5944 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5945
5946 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
5947 fields.
5948 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
5949 traversing basic block chain.
5950 (create_basic_block_structure, create_basic_block): Declaration changed.
5951 (link_block, unlink_block): Declare.
5952 * cfg.c (entry_exit_blocks): Initialize new fields.
5953 (link_block, unlink_block): New.
5954 (expunge_block_nocompact): Unlink basic block.
5955 (dump_flow_info): Print prev_bb/next_bb fields.
5956 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
5957 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
5958 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
5959 * cfgrtl.c (create_basic_block_structure, create_basic_block,
5960 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
5961 (verify_flow_info): Check that list agrees with numbering.
5962
5963 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
5964
5965 * c-common.c (preprocessing_asm): New macro.
5966 * c-lex.h (builtin_define, builtin_assert): Use pfile.
5967 doc:
5968 * tm.texi: Update.
5969 config/alpha:
5970 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
5971 (CPP_SPEC): Simplify.
5972 (TARGET_CPU_CPP_BUILTINS): Update.
5973 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
5974 (CPP_SPEC): Simplify.
5975 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
5976 (TARGET_OS_CPP_BUILTINS): Update.
5977 * osf.h (CPP_XFLOAT_SPEC): Kill.
5978 (TARGET_OS_CPP_BUILTINS): Update.
5979 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
5980 * osf5.h (CPP_XFLOAT_SPEC): Kill.
5981 * vms.h (CPP_SUBTARGET_SPEC): Kill.
5982 (TARGET_OS_CPP_BUILTINS): Update.
5983
5984 2002-05-19 Richard Henderson <rth@redhat.com>
5985
5986 * varasm.c (default_binds_local_p): Fix typo.
5987
5988 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
5989
5990 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
5991 CONST_INT operand to the correct mode after adding 1 to it.
5992
5993 2002-05-19 Mark Mitchell <mark@codesourcery.com>
5994
5995 * config.gcc (powerpc-wrs-windiss*): New target.
5996
5997 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5998
5999 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
6000 (ashrdi3): Use it.
6001
6002 2002-05-18 Mark Mitchell <mark@codesourcery.com>
6003
6004 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
6005 alphasort.
6006 * config.in: Regenerated.
6007 * configure: Regenerated.
6008
6009 2002-05-19 Richard Henderson <rth@redhat.com>
6010
6011 * target-def.h (TARGET_BINDS_LOCAL_P): New.
6012 * target.h (struct gcc_target): Move boolean fields to the end.
6013 Add binds_local_p.
6014 * varasm.c (default_binds_local_p): New.
6015 * output.h: Declare it.
6016
6017 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
6018 * config/cris/cris.c (cris_encode_section_info): Likewise.
6019 * config/i386/i386.c (i386_encode_section_info): Likewise.
6020 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
6021 * config/sh/sh.c (sh_encode_section_info): Likewise.
6022
6023 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
6024 (TARGET_BINDS_LOCAL_P): New.
6025
6026 2002-05-19 Richard Henderson <rth@redhat.com>
6027
6028 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
6029 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
6030 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
6031
6032 * toplev.c (display_help): Kill -a -ax help.
6033
6034 * config/1750a/1750a.h, config/alpha/alpha.h,
6035 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
6036 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
6037 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
6038 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
6039
6040 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
6041 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
6042
6043 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
6044 (ix86_output_function_block_profiler): Kill.
6045 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
6046 (m68hc11_function_block_profiler): Kill.
6047 * config/m68hc11/m68hc11-protos.h: Update.
6048 * config/m88k/m88k.c (output_block_profiler): Kill.
6049 (output_function_block_profiler): Kill.
6050 * config/m88k/m88k-protos.h: Update.
6051
6052 2002-05-19 Richard Henderson <rth@redhat.com>
6053
6054 * system.h (STRIP_NAME_ENCODING): Poison it.
6055 * output.h (STRIP_NAME_ENCODING): Remove.
6056 (default_strip_name_encoding): Declare.
6057 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
6058 * target.h (strip_name_encoding): New.
6059 * varasm.c (default_strip_name_encoding): New.
6060
6061 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
6062 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
6063 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
6064 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
6065 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
6066 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
6067 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
6068 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
6069 config/v850/v850.h: Use the hook, not the macro.
6070
6071 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6072 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
6073 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
6074 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
6075 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
6076 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
6077 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
6078 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
6079 config/v850/v850.c, config/v850/v850.h:
6080 Move STRIP_NAME_ENCODING to out-of-line function and add
6081 TARGET_STRIP_NAME_ENCODING.
6082
6083 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
6084 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
6085 with TARGET_STRIP_NAME_ENCODING referencing existing function;
6086 make function static.
6087
6088 * xcoffout.c: Include target.h
6089 * Makefile.in (xcoffout.o): Update.
6090
6091 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
6092 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
6093 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
6094 reloc argument unused.
6095 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
6096
6097 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
6098 STRIP_NAME_ENCODING docs.
6099
6100 2002-05-19 Andreas Jaeger <aj@suse.de>
6101
6102 * gengenrtl.c: Add prototype for excluded_rtx.
6103
6104 * real.h: Add prototype for exact_real_truncate.
6105
6106 2002-05-18 Richard Henderson <rth@redhat.com>
6107
6108 * system.h (ENCODE_SECTION_INFO): Poison it.
6109 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
6110 * target.h (encode_section_info): New.
6111 * varasm.c (make_decl_rtl, output_constant_def): Use it.
6112 * hooks.c (hook_tree_int_void): New.
6113 * hooks.h: Declare it.
6114
6115 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6116 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
6117 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
6118 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
6119 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
6120 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
6121 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6122 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
6123 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
6124 config/mcore/mcore-protos.h, config/mcore/mcore.c,
6125 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
6126 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
6127 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
6128 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
6129 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
6130 referencing existing function. Make function static.
6131
6132 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
6133 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
6134 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
6135 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
6136 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
6137 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
6138 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
6139 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
6140 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
6141 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
6142 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
6143 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
6144 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
6145 Move ENCODE_SECTION_INFO to out-of-line function and add
6146 TARGET_ENCODE_SECTION_INFO.
6147
6148 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
6149 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
6150
6151 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
6152 from SUBTARGET_*
6153 (switch_to_section): Replace in_rdata case with in_readonly_data.
6154
6155 * config/h8300/h8300.c (h8300_encode_label): Make static.
6156 * config/h8300/h8300-protos.h: Update.
6157
6158 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
6159 from rs6000_encode_section_info; make static.
6160 (rs6000_xcoff_encode_section_info): New.
6161
6162 * config/v850/v850.c (v850_encode_data_area): Make static.
6163 * config/v850/v850-protos.h: Update.
6164
6165 * config/vax/vax.c: Include flags.h.
6166 (vms_select_section): Fix typo.
6167
6168 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
6169 ENCODE_SECTION_INFO docs.
6170
6171 2002-05-18 Richard Henderson <rth@redhat.com>
6172
6173 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
6174 REGISTER_TARGET_PRAGMAS.
6175 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
6176
6177 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
6178
6179 2002-05-18 Richard Henderson <rth@redhat.com>
6180
6181 * system.h (SELECT_RTX_SECTION): Poison.
6182 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
6183 * target.h (select_rtx_section): New.
6184 * varasm.c (output_constant_pool): Use it.
6185 (default_select_rtx_section, default_elf_select_rtx_section): New.
6186 * output.h: Declare them.
6187
6188 * config/darwin.h (SELECT_RTX_SECTION): Move ...
6189 * config/darwin.c (machopic_select_rtx_section): ... here.
6190 * config/darwin-protos.h: Update.
6191
6192 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
6193 * config/nextstep.c (machopic_select_rtx_section): ... here.
6194 (nextstep_select_section): Rename variable to avoid macro clash.
6195 * config/nextstep-protos.h: Update.
6196
6197 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
6198 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
6199 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
6200 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
6201 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
6202 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
6203 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
6204 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
6205 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
6206 (SELECT_RTX_SECTION): Remove.
6207
6208 * config/darwin.h, config/elfos.h, config/nextstep.h,
6209 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
6210 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
6211 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
6212 config/sparc/lynx.h, config/xtensa/xtensa.c
6213 (TARGET_ASM_SELECT_RTX_SECTION): New.
6214
6215 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
6216 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
6217 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
6218 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
6219 (ia64_aix_select_rtx_section): New.
6220 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
6221 redefining.
6222 * config/mips/mips.c (mips_select_rtx_section): Make static.
6223 Support ELF SHF_MERGE features.
6224 * config/mips/mips-protos.h: Update.
6225 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
6226 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
6227 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
6228 make static, fall back to default_elf_select_rtx_section.
6229 * config/rs6000/rs6000-protos.h: Update.
6230 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
6231 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
6232 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
6233 * config/romp/romp.c (romp_select_rtx_section): New.
6234 * config/s390/s390.c (s390_select_rtx_section): New.
6235 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
6236 declarations before target macro definition.
6237 (xtensa_emit_call): Use static buffer.
6238 (xtensa_select_rtx_section): New.
6239 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
6240 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
6241 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
6242
6243 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
6244 SELECT_RTX_SECTION docs.
6245
6246 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
6247
6248 * i386.md (movsi/movdi): Fix template.
6249 (sse2 patterns): Set attributes consistently.
6250
6251 * i386.md (pushqi2, ashrqi_*): Fix constraint.
6252
6253 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
6254
6255 * optabs.c (complex_part_zero_p): New.
6256 * (expand_cmplxdiv_straight): Use it.
6257 * (expand_cmplxdiv_wide): Ditto.
6258 * (expand_binop): Ditto.
6259
6260 2002-05-18 Richard Henderson <rth@redhat.com>
6261
6262 * final.c (HAVE_READONLY_DATA_SECTION): New.
6263 (shorten_branches): Use it instead of ifdefs.
6264 * varasm.c (enum in_section): Add in_readonly_data.
6265 (text_section, data_section): Tidy.
6266 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
6267
6268 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
6269 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
6270 (READONLY_DATA_SECTION): Don't undef.
6271
6272 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
6273 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
6274 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
6275
6276 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
6277 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
6278 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
6279 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
6280
6281 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
6282 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
6283 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6284 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
6285 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
6286 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
6287 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
6288 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
6289 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
6290
6291 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
6292 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
6293 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
6294 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
6295 config/pa/pa64-hpux.h, config/sparc/litecoff.h
6296 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
6297
6298 * config/elfos.h, config/netware.h, config/svr3.h,
6299 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6300 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6301 config/h8300/h8300.h, config/i386/i386-interix.h,
6302 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6303 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
6304
6305 * config/elfos.h, config/netware.h, config/svr3.h,
6306 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6307 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
6308 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6309 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
6310
6311 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
6312 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
6313 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
6314 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
6315 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
6316 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
6317 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
6318 config/rs6000/sysv4.h, config/v850/v850.h
6319 (EXTRA_SECTIONS): Remove in_const/in_rdata.
6320 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
6321
6322 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
6323 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
6324 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
6325 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
6326 * config/alpha/alpha.c (alpha_start_function): Likewise.
6327 (alpha_write_linkage): Likewise.
6328 * config/m32r/m32r.c (m32r_select_section): Likewise.
6329 * config/m88k/m88k.c (m88k_select_section): Likewise.
6330 * config/mips/mips.c (mips_select_rtx_section): Likewise.
6331 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
6332 (rs6000_elf_select_section): Likewise.
6333 * config/v850/v850.c (v850_select_section): Likewise.
6334
6335 * config/1750a/1750a.h, config/i860/sysv3.h
6336 (READONLY_DATA_SECTION_ASM_OP): New.
6337 READONLY_DATA_SECTION_ASM_OP.
6338 * config/i386/interix.c, config/i386/winnt.c
6339 (i386_pe_unique_section): Always use .rdata prefix.
6340 * config/pa/som.h (readonly_data): Always switch to read-only section.
6341 (READONLY_DATA_SECTION): Predicate on flag_pic.
6342 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
6343 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
6344 (READONLY_DATA_SECTION): Update.
6345
6346 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
6347
6348 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
6349 is used without -Wformat.
6350 * c-common.h (warn_format_zero_length): Declare extern.
6351 * c-decl.c (warn_options): Add "format-zero-length".
6352 * c-format.c (warn_format_zero_length): Declare.
6353 (set_Wformat): Set warn_format_zero_length for -Wformat.
6354 (check_format_info): Only warn about zero-length formats if
6355 warn_format_zero_length is true. Include the format type
6356 name in the warning message.
6357 * doc/invoke.texi: Document -Wformat-zero-length.
6358 * testsuite/gcc.dg/format/zero-length-1.c: New test.
6359
6360 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
6361
6362 * timevar.c: Fix formatting.
6363 * tlink.c: Likewise.
6364 * toplev.c: Likewise.
6365 * tree-dump.c: Likewise.
6366 * tree-inline.c: Likewise.
6367
6368 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
6369
6370 * cppinit.c (cpp_post_options): If preprocessed, turn off
6371 traditional. If traditional, turn off column numbers.
6372 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
6373 * cpptrad.c (handle_newline): Update line_base.
6374 (skip_comment): Handle -Wcomment.
6375
6376 2002-05-17 Zack Weinberg <zack@codesourcery.com>
6377
6378 * cppinit.c (struct builtin): Remove unused fields.
6379 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
6380 (operator_array): New - was second half of builtin_array.
6381 (init_builtins): Simplify loop over builtin_array/operator_array.
6382
6383 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
6384
6385 * defaults.h (UNIQUE_SECTION): Remove.
6386 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
6387
6388 2002-05-17 Richard Henderson <rth@redhat.com>
6389
6390 * expr.c (init_expr_once): Don't use start/end_sequence.
6391 Use rtx_alloc instead of emit_insn.
6392 * toplev.c (lang_dependent_init): Run init_expr_once here ...
6393 (lang_independent_init): ... not here.
6394
6395 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6396
6397 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
6398
6399 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
6400
6401 * config/avr/avr.c (avr_regs_to_save): New function. Also check
6402 for fixed registers, possibly used for global register variables.
6403 (initial_elimination_offset, avr_output_function_prologue,
6404 avr_output_function_epilogue): Move common code to avr_regs_to_save.
6405
6406 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
6407
6408 * Makefile.in: Update for cpptrad.c.
6409 * cpphash.h (struct cpp_buffer): New members for buffer
6410 overlays.
6411 (struct cpp_reader): New members for traditional output.
6412 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
6413 * cppinit.c (cpp_create_reader): Set trad_line.
6414 (cpp_destroy): Free trad_out_base if used.
6415 (cpp_read_main_file): Overlay an empty buffer if traditional.
6416 (cpp_finish_options): Don't do builtins.
6417 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
6418 (cpp_handle_option): Handle it.
6419 * cpplex.c (continue_after_nul): New.
6420 (_cpp_lex_direct): Use handle_nul.
6421 * cpplib.h (struct cpp_options): New traditional option.
6422 * cpptrad.c: New file.
6423
6424 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
6425
6426 * c-common.c (c_common_init_options): Use C89 for Objective-C,
6427 and set the options flag.
6428 * cppinit.c (lang_flags): Remove objc.
6429 (lang_defaults): Remove OBJC and OBJCXX.
6430 (set_lang): Update.
6431 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
6432 (cpp_handle_option): Remove -+ and -lang-objc++.
6433 For ObjC, just set a flag.
6434 (print_help): Update.
6435 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
6436
6437 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6438
6439 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
6440 bootstrap with -mips3.
6441
6442 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
6443
6444 * final.c: Fix formatting.
6445 * fix-header.c: Likewise.
6446 * flow.c: Likewise.
6447 * fold-const.c: Likewise.
6448 * function.c: Likewise.
6449
6450 2002-05-17 David S. Miller <davem@redhat.com>
6451
6452 PR c/6689, PR optimization/6615
6453 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
6454 and make it a pointer to rtx. Update comments.
6455 (update_equiv_regs): When scanning for equivalences, record
6456 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
6457 it while making the equiv replacements.
6458
6459 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6460
6461 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
6462
6463 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
6464
6465 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
6466 when encoding visibility into SYMBOL_REF_FLAG.
6467
6468 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
6469
6470 * expr.c (force_operand): Fix reversed move.
6471
6472 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
6473
6474 * doc/install.texi (Testing): Mention two common DejaGnu warnings
6475 that can be ignored.
6476
6477 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6478
6479 * doc/install.texi (Final install): Recommend to install into a
6480 "clean" target directory.
6481
6482 2002-05-17 Richard Henderson <rth@redhat.com>
6483
6484 * config/ia64/ia64.md: Use braced strings instead of quoted strings
6485 for code blocks. Tidy whitespace.
6486
6487 2002-05-17 Richard Henderson <rth@redhat.com>
6488
6489 * hooks.c (hook_tree_bool_false): New.
6490 * hooks.h: Declare it.
6491 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
6492 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
6493 * target.h (select_section, unique_section): New.
6494 (in_small_data_p): New.
6495 * varasm.c (resolve_unique_section): Use hooks instead of macros.
6496 (variable_section, output_constant_def_contents): Likewise.
6497 (default_select_section, default_unique_section): New.
6498 (categorize_decl_for_section, default_elf_select_section): New.
6499 * output.h: Declare them.
6500
6501 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
6502 (TARGET_ASM_SELECT_SECTION): New.
6503 (SELECT_SECTION): Move ...
6504 * config/darwin.c (machopic_select_section): ... here.
6505 * config/darwin-protos.h: Update.
6506
6507 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
6508 (SELECT_SECTION): Move ...
6509 * config/nextstep.c (nextstep_select_section): ... here.
6510 * config/nextstep-protos.h: Update.
6511
6512 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
6513 (TARGET_ASM_SELECT_SECTION): New.
6514 * config/svr3.h (SELECT_SECTION): Remove.
6515
6516 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
6517 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
6518 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
6519 (alpha_encode_section_info): Use it.
6520 * config/alpha/alpha-protos.h: Update.
6521 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
6522 (SELECT_SECTION, UNIQUE_SECTION): Remove.
6523 (TARGET_ASM_SELECT_SECTION): New.
6524 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
6525
6526 * config/arm/pe.h (UNIQUE_SECTION): Remove.
6527 (TARGET_ASM_UNIQUE_SECTION): New.
6528
6529 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
6530 (avr_unique_section): Rename from unique_section; make static.
6531 * config/avr/avr-protos.h: Update.
6532 * config/avr/avr.h (UNIQUE_SECTION): Remove.
6533
6534 * config/c4x/c4x.h (SELECT_SECTION): Remove.
6535
6536 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
6537 (TARGET_ASM_UNIQUE_SECTION): New.
6538 * config/i386/i386-interix.h: Likewise.
6539 * config/i386/win32.h: Likewise.
6540 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
6541 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
6542 * config/i386/sco5.h (SELECT_SECTION): Remove.
6543 (TARGET_ASM_SELECT_SECTION): New.
6544 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
6545
6546 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
6547 instead of SELECT_SECTION.
6548 * config/m68k/dpx2.h: Likewise.
6549 * config/rs6000/lynx.h: Likewise.
6550
6551 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6552 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
6553 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
6554 (ia64_in_small_data_p): New.
6555 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
6556 (ia64_aix_select_section, ia64_aix_unique_section): New.
6557 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
6558 (SELECT_SECTION, UNIQUE_SECTION): Remove.
6559
6560 * config/m32r/m32r.h (SELECT_SECTION): Remove.
6561 (TARGET_ASM_SELECT_SECTION): New.
6562 * config/m32r/m32r.c (m32r_select_section): Take align argument.
6563 * config/m32r/m32r-protos.h: Update.
6564
6565 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
6566 (SELECT_SECTION): Move ...
6567 * config/m88k/m88k.c (m88k_select_section): ... here.
6568
6569 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
6570 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
6571 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
6572 (mcore_unique_section): Make static.
6573 * config/mcore/mcore-protos.h: Update.
6574
6575 * config/mips/elf.h (UNIQUE_SECTION): Remove.
6576 (TARGET_ASM_UNIQUE_SECTION): New.
6577 * config/mips/elf64.h: Likewise.
6578 * config/mips/iris6gld.h: Likewise.
6579 * config/mips/linux.h: Likewise.
6580 * config/mips/mips-protos.h: Update.
6581 * config/mips/mips.c (mips_select_section): Add align argument.
6582 * config/mips/mips.h (SELECT_SECTION): Remove.
6583 (TARGET_ASM_SELECT_SECTION): New.
6584
6585 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6586 * config/mmix/mmix.c (mmix_select_section): Remove.
6587 (mmix_unique_section): Remove.
6588 * config/mmix/mmix-protos.h: Update.
6589
6590 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
6591 (SELECT_SECTION): Move ...
6592 * config/pa/pa.c (pa_select_section): ... here.
6593 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
6594
6595 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
6596 from rs6000_select_section and make static.
6597 (rs6000_elf_unique_section): Similarly.
6598 (rs6000_xcoff_select_section): From xcoff.h.
6599 (rs6000_xcoff_unique_section): Likewise.
6600 * config/rs6000/rs6000-protos.h: Update.
6601 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6602 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
6603 * config/rs6000/xcoff.h: Likewise.
6604
6605 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
6606 (SELECT_SECTION): Move ...
6607 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
6608
6609 * config/v850/v850.h (SELECT_SECTION): Move ...
6610 * config/v850/v850.c (v850_select_section): ... here.
6611 (TARGET_ASM_SELECT_SECTION): New.
6612
6613 * config/vax/vms.h (SELECT_SECTION): Move ...
6614 * config/vax/vax.c (vms_select_section): ... here.
6615 (TARGET_ASM_SELECT_SECTION): New.
6616
6617 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
6618 for the target hooks.
6619
6620 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
6621
6622 * config/arm/arm.c (emit_multi_reg_push): Do not set
6623 RTX_FRAME_RELATED_P on the SEQUENCE.
6624
6625 2002-05-16 Richard Henderson <rth@redhat.com>
6626
6627 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
6628 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
6629
6630 2002-05-16 Richard Henderson <rth@redhat.com>
6631
6632 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
6633
6634 * config/ia64/ia64.c (saveable_obstack): Do not declare.
6635
6636 2002-05-16 Richard Henderson <rth@redhat.com>
6637
6638 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
6639 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
6640 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
6641 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
6642 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
6643 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
6644 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
6645 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
6646 Revert "Basic block renumbering removal", and two followup patches.
6647
6648 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
6649
6650 * lcm.c (optimize_mode_switching): Revert previous change.
6651
6652 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6653
6654 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
6655 with only extant block numbers.
6656
6657 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
6658
6659 * lcm.c (optimize_mode_switching): Fix typo.
6660
6661 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6662
6663 * flow.c (calculate_global_regs_live): Queue blocks in program order.
6664
6665 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6666
6667 * doc/install.texi (Configuration): Document PWDCMD.
6668
6669 2002-05-16 Dale Johannesen <dalej@apple.com>
6670
6671 * combine.c (cant_combine_insn_p): Reenable combinations
6672 involving hard regs unless CLASS_LIKELY_SPILLED_P.
6673
6674 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
6675
6676 * c-common.c (cb_register_builtins): Handle more built-ins
6677 here rather than in gcc.c specs.
6678 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
6679 (cpp_options): Pass -O flags even when only preprocessing.
6680 * toplev.c (set_fast_math_flags): New prototype.
6681 (fast_math_flags_set_p): New.
6682 (set_no_fast_math_flags): Remove.
6683 (decode_f_option): Update.
6684 * toplev.h (set_fast_math_flags): Update.
6685 (fast_math_flags_set_p): New.
6686 (set_no_fast_math_flags): Remove.
6687 config:
6688 * c4x/c4x.c (c4x_override_options): Update.
6689
6690 2002-05-16 Zack Weinberg <zack@codesourcery.com>
6691
6692 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
6693 Default-define here.
6694 (builtin_define_with_value): Can now wrap the expansion in
6695 quotation marks if such is wanted.
6696 (cb_register_builtins): Update calls to builtin_define_with_value.
6697 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
6698 here.
6699 (c_common_init): Set options->stdc_0_in_system_headers.
6700 * c-lex.h: Update prototype of builtin_define_with_value.
6701 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
6702 and REGISTER_PREFIX.
6703
6704 * cppinit.c (VERS, ULP, C, X): Kill.
6705 (builtin_array): Remove entries for __VERSION__,
6706 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
6707 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
6708 a constant.
6709 (init_builtins): Kill off a bunch of now-dead code.
6710 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
6711 -fno-leading-underscore.
6712 (cpp_handle_option): Remove code to set user_label_prefix.
6713 (cpp_post_options): Likewise.
6714
6715 * cpplib.h (struct cpp_options): Remove user_label_prefix.
6716 (stdc_0_in_system_headers): New.
6717 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
6718 stdc_0_in_system_headers) too to decide the value of __STDC__.
6719
6720 * tradcpp.c (user_label_prefix): Kill.
6721 (main): Remove code handling -f(no-)leading-underscore.
6722 (initialize_builtins): Don't define __REGISTER_PREFIX__
6723 or __USER_LABEL_PREFIX__.
6724 (install_value): Wrap compound statement in dummy loop so the
6725 macro works properly in an if statement.
6726
6727
6728 2002-05-16 Janis Johnson <janis187@us.ibm.com>
6729
6730 * loop.h (struct loop_info): Add member has_prefetch.
6731 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
6732 (prescan_loop): Initialize has_prefetch.
6733 (struct prefetch_info): Change prefetch_in_loop and
6734 prefetch_before_loop from bit fields to ints.
6735 (emit_prefetch_instructions): Several small fixes.
6736 (check_dbra_loop): Don't reverse loop that uses prefetch.
6737
6738 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6739
6740 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
6741 * configure.in: Likewise.
6742 * fixinc/check.tpl: Likewise.
6743 * fixinc/fixinc.dgux: Likewise.
6744 * fixinc/fixinc.svr4: Likewise.
6745 * fixinc/fixinc.winnt: Likewise.
6746 * fixinc/fixincl.sh: Likewise.
6747 * fixproto: Likewise.
6748 * configure: Regenerate.
6749
6750 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6751
6752 Basic block renumbering removal:
6753 * basic_block.h (struct basic_block_def): Renamed index to sindex,
6754 added prev_bb and next_bb fields.
6755 (n_basic_blocks): Renamed to num_basic_blocks.
6756 (last_basic_block): New, index of last basic block.
6757 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
6758 traversing basic block chain.
6759 (BLOCK_NUM): index -> sindex.
6760 (create_basic_block_structure, create_basic_block): Declaration changed.
6761 (debug_num2bb): Declare.
6762 (expunge_block_nocompact): Declaration removed.
6763 (link_block, unlink_block, compact_blocks): Declare.
6764 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
6765 * cfg.c (entry_exit_blocks): Initialize new fields.
6766 (clear_edges, alloc_block, expunge_block, cached_make_edge,
6767 redirect_edge_pred, dump_flow_info, dump_edge_info,
6768 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
6769 free_aux_for_edges): Modified.
6770 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
6771 (expunge_block_nocompact): Removed.
6772 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
6773 find_unreachable_blocks, create_edge_list, print_edge_list,
6774 verify_edge_list, flow_edge_list_print, remove_fake_successors,
6775 remove_fake_edges, flow_reverse_top_sort_order_compute,
6776 flow_depth_first_order_compute, flow_preorder_transversal_compute,
6777 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
6778 flow_dfs_compute_reverse_execute): Modified.
6779 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
6780 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
6781 Modified.
6782 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
6783 merge_blocks_move_predecessor_nojumps,
6784 merge_blocks_move_successor_nojumps, merge_blocks,
6785 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
6786 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
6787 * cfglayout.c (skip_insns_after_block, label_for_bb,
6788 record_effective_endpoints, scope_to_insns_finalize,
6789 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
6790 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
6791 cfg_layout_duplicate_bb): Modified.
6792 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
6793 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
6794 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
6795 flow_loops_find, flow_loop_outside_edge_p): Modified.
6796 * cfgrtl.c (create_basic_block_structure, create_basic_block,
6797 flow_delete_block, compute_bb_for_insn, split_block,
6798 try_redirect_by_replacing_jump, redirect_edge_and_branch,
6799 force_nonfallthru_and_redirect, tidy_fallthru_edge,
6800 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
6801 commit_edge_insertions, commit_edge_insertions_watch_calls,
6802 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
6803 purge_all_dead_edges): Modified.
6804 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
6805 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
6806 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
6807 Modified.
6808 * conflict.c (conflict_graph_compute): Modified.
6809 * df.c (FOR_ALL_BBS): Removed.
6810 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
6811 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
6812 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
6813 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
6814 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
6815 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
6816 * final.c (compute_alignments, final_scan_insn): Modified.
6817 * flow.c (verify_local_live_at_start, update_life_info,
6818 update_life_info_in_dirty_blocks, free_basic_block_vars,
6819 delete_noop_moves, calculate_global_regs_live,
6820 initialize_uninitialized_subregs, allocate_bb_life_data,
6821 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
6822 mark_used_reg, count_or_remove_death_notes): Modified.
6823 * function.c (thread_prologue_and_epilogue_insns): Modified.
6824 * gcse.c (struct null_pointer_info): Change typo of current_block
6825 to basic_block.
6826 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
6827 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
6828 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
6829 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
6830 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
6831 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
6832 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
6833 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
6834 pre_delete, one_pre_gcse_pass, compute_transpout,
6835 invalidate_nonnull_info, delete_null_pointer_checks_1,
6836 free_code_hoist_mem, compute_code_hoist_vbeinout,
6837 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
6838 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
6839 compute_store_table, build_store_vectors, insert_insn_start_bb,
6840 insert_store, replace_store_insn, free_store_memory, store_motion):
6841 Modified.
6842 * global.c (global_alloc, global_conflicts, mark_elimination,
6843 build_insn_chain): Modified.
6844 * graph.c (print_rtl_graph_with_bb): Modified.
6845 * haifa-sched.c (sched_init): Modified.
6846 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
6847 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
6848 if_convert): Modified.
6849 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
6850 compute_insert_delete, pre_edge_lcm, compute_available,
6851 compute_farthest, compute_nearerout, compute_rev_insert_delete,
6852 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
6853 Modified.
6854 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
6855 * loop.c (loop_dump_aux): Modified.
6856 * predict.c (combine_predictions_for_insn, estimate_probability,
6857 last_basic_block_p, process_note_prediction, process_note_predictions,
6858 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
6859 expensive_function_p, estimate_bb_frequencies,
6860 compute_function_frequency): Modified.
6861 * print-rtl.c (print_rtx): Modified.
6862 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
6863 get_exec_counts, compute_branch_probabilities, compute_checksum,
6864 branch_prob, find_spanning_tree): Modified.
6865 * recog.c (split_all_insns, peephole2_optimize): Modified.
6866 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
6867 convert_regs_1, convert_regs_2, convert_regs): Modified.
6868 * regclass.c (scan_one_insn, regclass): Modified.
6869 * regmove.c (mark_flags_life_zones, regmove_optimize,
6870 combine_stack_adjustments): Modified.
6871 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
6872 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
6873 * reorg.c (dbr_schedule): Modified.
6874 * resource.c (find_basic_block, init_resource_info): Modified.
6875 * sbitmap.c (sbitmap_intersection_of_succs,
6876 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
6877 sbitmap_union_of_preds): Modified.
6878 * sched-deps.c (init_dependency_caches): Modified.
6879 * sched-ebb.c (schedule_ebbs): Modified.
6880 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
6881 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
6882 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
6883 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
6884 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
6885 ssa_const_prop): Modified.
6886 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
6887 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
6888 * ssa.c (remove_phi_alternative, find_evaluations,
6889 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
6890 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
6891 make_regs_equivalent_over_bad_edges,
6892 make_equivalent_phi_alternatives_equival,
6893 compute_conservative_reg_partition,
6894 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
6895 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
6896 Modified.
6897
6898 2002-05-16 Mark Mitchell <mark@codesourcery.com>
6899
6900 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
6901
6902 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
6903
6904 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
6905 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
6906 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
6907 calling CONSTANT_POOL_ADDRESS_P.
6908 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
6909 to decide whether to define __arm__ or __thumb.
6910 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
6911 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
6912
6913 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
6914
6915 * config/arc/arc.h (CPP_PREDEFINES): Remove.
6916 (CPP_SPEC): Update.
6917 (TARGET_CPU_CPP_BUILTINS): New.
6918
6919 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
6920
6921 * cpphash.h (cpp_macro): Move here, and make expansion a union.
6922 * cppmacro.c (cpp_macro): Remove.
6923 (enter_macro_context, replace_args, warn_of_redefinition,
6924 _cpp_create_definition, cpp_macro_definition): Update.
6925
6926 2002-05-16 Jason Merrill <jason@redhat.com>
6927
6928 * config/mips/mips.c (mips_output_external): Don't do sdata
6929 optimization for a variable with DECL_COMDAT set.
6930
6931 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
6932
6933 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
6934 Cleanups for accepting modifiers on pointers.
6935 Fix predicate typos.
6936 Allow long pointers as well as int pointers.
6937
6938 2002-05-15 Richard Henderson <rth@redhat.com>
6939
6940 * varasm.c (merge_weak): Remove special case for extern and common.
6941
6942 2002-05-15 Matt Hiller <hiller@redhat.com>
6943
6944 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
6945 XFAILing.
6946 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
6947 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
6948 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
6949 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
6950 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
6951 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
6952
6953 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
6954
6955 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
6956
6957 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
6958
6959 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
6960 ("altivec_mfvscr"): Read from VSCR.
6961
6962 Add vscr sets for the following insns: altivec_vctuxs,
6963 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
6964 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
6965 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
6966 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
6967 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
6968 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
6969 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
6970 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
6971 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
6972 altivec_vsum2sws, altivec_vsumsws.
6973
6974 * config/rs6000/rs6000.h: Add VSCR fixed register.
6975 (CALL_REALLY_USED_REGISTERS): Add vscr.
6976 (CALL_USED_REGISTERS): Same.
6977 (FIXED_REGISTERS): Same.
6978 (REG_ALLOC_ORDER): Same.
6979 (reg_class): Add VSCR_REGS.
6980 (REG_CLASS_NAMES): Same.
6981 (REG_CLASS_CONTENTS): Same.
6982 (VSCR_REGNO): New.
6983 (REGISTER_NAMES): Add vscr.
6984 (DEBUG_REGISTER_NAMES): Same.
6985 (ADDITIONAL_REGISTER_NAMES): Same.
6986 (FIRST_PSEUDO_REGISTER): Increment.
6987 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
6988
6989 2002-05-15 Jakub Jelinek <jakub@redhat.com>
6990
6991 * fold-const.c (fold): Fix a typo.
6992
6993 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
6994
6995 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
6996 comparison against the highest or lowest integer value before
6997 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
6998 transformation and that of an unsigned comparison against 0
6999 right after.
7000
7001 2002-05-15 Richard Henderson <rth@redhat.com>
7002
7003 * varasm.c (merge_weak): Error for any weakening after definition.
7004 Adjust weakening after use warning to catch more cases.
7005 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
7006 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
7007
7008 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
7009
7010 * invoke.texi (-malign-double): Re-add lost warning.
7011
7012 * i386-protos.h (x86_output_mi_thunk): Declare.
7013 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
7014 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
7015
7016 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
7017 when flag_asynchronous_unwind_tables is set.
7018
7019 * flags.h (flag_reorder_functions): Declare.
7020 * function.c (prepare_function_start): Initialize frequnecy.
7021 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
7022 * Makefile.in (predict.o): Add dependency on target.h and params.h
7023 * defaults.h (HOT_TEXT_SECTION_NAME,
7024 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
7025 * predict.c (choose_function_section): New function.
7026 (estimate_bb_frequencies): Use it.
7027 * toplev.c (flag_reorder_functions): New global variable.
7028 (lang_independent_options): New.
7029 (parse_options_and_default_flags): Set.
7030 * varasm.c (assemble_start_function): Bypass functdion alignment
7031 for never executed functions.
7032 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
7033 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
7034 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
7035 Document.
7036
7037 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
7038
7039 * predict.c: Inlude profile.h
7040 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
7041 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
7042 Use the information about maximal counter in the program.
7043
7044 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
7045
7046 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
7047 probably_never_executed_bb_p): New functions.
7048 * cfgcleanup.c (outgoing_edges_match): Use them.
7049 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
7050 (maybe_hot_bb_p, probably_cold_bb_p,
7051 probably_never_executed_bb_p): New functions.
7052
7053 * function.h (function): Add new field function_frequency.
7054 * predict.c (compute_function_frequency): New function.
7055 (estimate_probability): Call it.
7056
7057 2002-03-09 Jakub Jelinek <jakub@redhat.com>
7058
7059 PR optimization/5172, optimization/5200
7060 * gcse.c (gcse_main): Disable store_motion.
7061
7062 2002-05-14 Zack Weinberg <zack@codesourcery.com>
7063
7064 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
7065 (c_common_nodes_and_builtins): Use it.
7066 (builtin_define_with_value): New function.
7067 (cb_register_builtins): Define __SIZE_TYPE__,
7068 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
7069 using builtin_define_with_value. Use consistent notation when
7070 defining __GXX_WEAK__.
7071 (WCHAR_TYPE_SIZE): Don't redefine.
7072 (combine_strings): Don't use WCHAR_TYPE_SIZE.
7073
7074 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
7075 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
7076 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
7077 * tradcpp.c (initialize_builtins): Likewise.
7078 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
7079
7080 * c-lex.h (builtin_define_with_value): Prototype.
7081 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
7082 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
7083 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
7084
7085 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
7086 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
7087 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
7088 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
7089 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
7090 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
7091 config/sparc/sol2-bi.h, config/sparc/sparc.h:
7092 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
7093 to __SIZE_TYPE__ etc from all spec strings. When this makes
7094 extra specs empty, delete them.
7095
7096 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
7097
7098 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
7099 for PA8000 or generating dwarf2 call frame information.
7100 (output_call): Remove DO_FRAME_NOTES check from return pointer
7101 optimization.
7102 (following_call): Return 0 when scheduling for PA8000 or generating
7103 dwarf2 call frame information. Revise comment.
7104
7105 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
7106
7107 config/alpha:
7108 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
7109 and __IEEE_FP_INEXACT as appropriate.
7110 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
7111 (CPP_SPEC): Remove ieee defines.
7112 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
7113
7114 2002-05-14 Richard Henderson <rth@redhat.com>
7115
7116 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
7117 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
7118
7119 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
7120
7121 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
7122 (CPP_SPEC): Update.
7123 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
7124 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
7125 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
7126 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
7127 (EXTRA_SPECS): Update.
7128 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
7129 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
7130 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
7131 define TARGET_OS_CPP_BUILTINS if necessary.
7132
7133 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
7134
7135 * gcc.c (cpp_options): Must pass -m* and -f* options
7136 to the front end even when only preprocessing.
7137 (cc1_options): Remove redundant -lang-c.
7138 * tradcpp.c (main): Ignore -m options.
7139 objc:
7140 * lang-specs.h: Similarly.
7141
7142 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
7143
7144 * genautomata.c (transform_3): Add code for transformation
7145 `(A,B,...)+C -> A+C,B,...'.
7146
7147 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
7148
7149 * final.c (end_final): Do not output profile_arcs constructor, when
7150 no functions are instrumented.
7151
7152 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
7153
7154 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
7155
7156 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7157
7158 * doc/install.texi: Remove special markup originally required for
7159 HTML generation with texi2html.
7160
7161 2002-05-14 Andreas Schwab <schwab@suse.de>
7162
7163 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
7164 SELECT_SECTION.
7165 (UNIQUE_SECTION): Define to get small data correctly.
7166
7167 * varasm.c (resolve_unique_section): Add third parameter
7168 flag_function_or_data_sections and use it instead of
7169 flag_function_sections.
7170 (assemble_start_function): Pass flag_function_sections.
7171 (asm_emit_uninitialised): Pass flag_data_sections.
7172 (assemble_variable): Likewise.
7173
7174 2002-05-14 Richard Henderson <rth@redhat.com>
7175
7176 * config/i386/i386.md: Use define_constants for unspec numbers.
7177 * config/i386/i386.c: Likewise.
7178
7179 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
7180
7181 * doc/contrib.texi: Update my entry.
7182
7183 2002-05-13 Mark Mitchell <mark@codesourcery.com>
7184
7185 * fixinc/inclhack.def (winidss_valist): Limit applicability.
7186 * fixinc/fixincl.x: Regenerated.
7187 * fixinc/tests/base/math.h: Update.
7188 * fixinc/tests/base/testing.h: Likewise.
7189
7190 2002-05-13 Zack Weinberg <zack@codesourcery.com>
7191
7192 * genattr.c (gen_attr): Don't emit a comma after the last
7193 enumerator.
7194
7195 2002-05-13 Richard Henderson <rth@redhat.com>
7196
7197 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
7198 by non-local gotos.
7199 * recog.c (peephole2_optimize): Likewise.
7200
7201 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
7202
7203 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
7204 input to O_BINARY.
7205
7206 2002-05-13 Jeffrey A Law (law@redhat.com)
7207
7208 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
7209 Update prototype and callers.
7210 (propagate_one_insn): Stack pointer adjustments kill MEMs on
7211 the mem_set_list which reference the stack pointer, as do
7212 calls to constant functions as they may clobber outgoing
7213 argument space.
7214
7215 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
7216
7217 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7218 (ia32_multipass_dfa_lookahead): New function.
7219
7220 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
7221
7222 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
7223 (translate_options): Remove 'V'.
7224 (process_command): Similarly.
7225 doc:
7226 * invoke.texi: Remove documentation of 'V'.
7227
7228 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7229
7230 * config/s390/linux.h: Revert 2002-04-22 changes.
7231
7232 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
7233
7234 * config/fr30/fr30.md: Only allow splits of immediate loads
7235 if the destination is a register.
7236
7237 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
7238
7239 * Makefile.in (c-common.o, cppinit.o): Update.
7240 * c-common.c: Include except.h.
7241 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
7242 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
7243 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
7244 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
7245 CPP_PREDEFINES): Handle here.
7246 config:
7247 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
7248 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
7249 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
7250 TARGET_OS_CPP_BUILTINS.
7251 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
7252 (CPP_SPEC, EXTRA_SPECS): Update.
7253 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
7254 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
7255 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
7256 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
7257 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
7258 doc:
7259 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
7260 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
7261
7262 2002-05-12 Zack Weinberg <zack@codesourcery.com>
7263
7264 * emit-rtl.c (global_rtl): Update comment.
7265 (const_double_htab, const_double_htab_hash,
7266 const_double_htab_hash, lookup_const_double): New.
7267 (const_int_htab_hash, const_int_htab_eq): Remove const
7268 qualifiers, which cause tons of warnings with RTL checking on.
7269 (gen_rtx_CONST_DOUBLE): Deleted.
7270 (const_double_from_real_value): New function - bears some
7271 resemblance to the former immed_real_const_1.
7272 (immed_double_const): Moved here from varasm.c and
7273 simplified.
7274 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
7275 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
7276 (gen_rtx): Use immed_double_const.
7277 (init_emit_once): Initialize the const_double_htab. Use
7278 REAL_VALUE_FROM_INT where possible. Can now use
7279 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
7280 * varasm.c (struct varasm_status): Remove x_const_double_chain.
7281 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
7282 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
7283 (init_varasm_status, mark_varasm_status): Don't touch
7284 x_const_double_chain.
7285
7286 * output.h: Delete prototype for clear_const_double_mem.
7287 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
7288 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
7289 const_double_from_real_value, not immed_real_const_1, and use
7290 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
7291 CONST_DOUBLE_ATOF.
7292 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
7293 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
7294 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
7295 (gen_rtx_REG): Second arg is unsigned.
7296
7297 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
7298 (excluded_rtx): New, return true for CONST_DOUBLE.
7299 (genmacro): Write nothing for excluded codes.
7300 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
7301 * expr.c (expand_expr): Likewise.
7302 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
7303 CONST_DOUBLE_CHAIN.
7304 * toplev.c (rest_of_compilation): Don't call
7305 clear_const_double_mem.
7306
7307 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
7308 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
7309 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
7310 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
7311 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
7312 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
7313 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
7314 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
7315
7316 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7317
7318 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
7319
7320 2002-05-12 Tom Tromey <tromey@redhat.com>
7321
7322 * tree.h (copy_node): Don't mention TREE_PERMANENT.
7323
7324 2002-05-12 Zack Weinberg <zack@codesourcery.com>
7325
7326 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
7327 (scan_comma_elt): New function. Accepts whitespace in comma lists.
7328 * gensupport.h: Prototype new routines.
7329 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
7330 use of printf.
7331 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
7332 (next_comma_elt): Use scan_comma_elt.
7333
7334 * config/i386/i386.md: Use new attribute notation to break up
7335 long lines in define_attr forms.
7336
7337 2002-05-12 Richard Henderson <rth@redhat.com>
7338
7339 * expr.c (compress_float_constant): New.
7340 (emit_move_insn): Use it.
7341 (float_extend_from_mem): New.
7342 (init_expr_once): Initialize it.
7343 * real.c (exact_real_truncate): New.
7344
7345 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
7346 dropped into memory; penalize for size.
7347 (RTX_COSTS): FLOAT_EXTEND is free.
7348 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
7349 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
7350
7351 2002-05-12 Richard Henderson <rth@redhat.com>
7352
7353 * profile.h (profile_info): Add missing extern to declaration.
7354 * profile.c (profile_info): Define it.
7355
7356 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7357
7358 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
7359 used for DImode and TImode.
7360
7361 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
7362
7363 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
7364 fake a newline.
7365
7366 2002-05-11 Zack Weinberg <zack@codesourcery.com>
7367
7368 * config/rs6000/rs6000.c (rs6000_default_long_calls,
7369 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
7370 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
7371 (rs6000_override_options): Handle -m(no-)longcall.
7372 (init_cumulative_args, output_mi_thunk): Check for both
7373 longcall and shortcall attributes on the function.
7374 (rs6000_attribute_table): Add "shortcall".
7375 (rs6000_handle_longcall_attribute): Update comment.
7376 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
7377 altivec_expand_ternop_builtin): Add default clauses to switches
7378 to silence warnings.
7379
7380 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
7381 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
7382 (TARGET_OPTIONS): Add longcall and no-longcall.
7383
7384 * config/rs6000/rs6000.md (call_nonlocal_sysv,
7385 call_value_nonlocal_sysv): Split by alternatives. One pair
7386 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
7387 the call cookie. The other pair accepts only LR/CTR and has
7388 no restriction.
7389
7390 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
7391 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
7392 tmake_file.
7393 * config/rs6000/rs6000-c.c: New file.
7394 * config/rs6000/t-rs6000-c-rule: New file.
7395 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
7396 Prototype rs6000_pragma_longcall.
7397
7398 * doc/extend.texi: Document shortcall attribute.
7399 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
7400
7401 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7402
7403 * reorg.c (dbr_schedule): Remove unnecessary test.
7404
7405 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
7406
7407 * i386.md (testsi to testqi spliters): New.
7408
7409 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
7410
7411 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
7412
7413 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
7414
7415 * basic-block.h: New flag EDGE_CAN_FALLTHRU
7416 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
7417 that can be made fallthru.
7418
7419 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
7420
7421 * cfglayout.c (cleanup_unconditional_jumps): New static function.
7422 (cfg_layout_initialize): Use it.
7423
7424 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
7425
7426 * config/avr/avr.c (avr_mcu_types): Update supported devices.
7427 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7428 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7429
7430 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
7431
7432 * dbxout.c: Fix formatting.
7433 * dependence.c: Likewise.
7434 * df.c: Likewise.
7435 * diagnostic.c: Likewise.
7436 * doloop.c: Likewise.
7437 * dominance.c: Likewise.
7438 * doschk.c: Likewise.
7439 * dwarf2asm.c: Likewise.
7440 * dwarf2out.c: Likewise.
7441 * dwarfout.c: Likewise.
7442
7443 2002-05-10 Richard Henderson <rth@redhat.com>
7444
7445 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
7446 Convert integers constants as needed. Replace "nwords" field with
7447 "sizeof_bb".
7448 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
7449 * function.h: Fix typo in comment.
7450 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
7451
7452 2002-05-10 Roger Sayle <roger@eyesopen.com>
7453
7454 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
7455 into the equivalent (signed char)c > 0.
7456
7457 2002-05-10 Janis Johnson <janis187@us.ibm.com>
7458
7459 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
7460 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
7461 (struct prefetch_info): Fix spelling of member bytes_accessed.
7462 (emit_prefetch_instructions): Make dump messages more regular;
7463 restructure code to add more dump messages; use new macros for
7464 heuristics. (There are no code generation changes in any of this).
7465
7466 2002-05-10 David S. Miller <davem@redhat.com>
7467
7468 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
7469 (struct rtx_def): Update unchanging flag comment.
7470 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
7471 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
7472 to be handled to INSN too.
7473 (dbr_schedule): Likewise.
7474 * resource.c (next_insn_no_annul): Likewise.
7475
7476 * cse.c (rtx_cost): Remove multiplication by power of 2 special
7477 casing.
7478
7479 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7480
7481 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
7482 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
7483 (possibly) work around broken /bin/sh.
7484
7485 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7486
7487 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
7488 . as N64/N32 libgcc_s.so subdirs.
7489
7490 2002-05-10 David S. Miller <davem@redhat.com>
7491
7492 * config/sparc/sparc.md: Use define_constants for unspec numbers.
7493
7494 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
7495 more accurately.
7496 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
7497 comment.
7498 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
7499 * doc/rtl.texi: Document these macros more accurately.
7500 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
7501 JUMP_INSNs and CALL_INSNs.
7502 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
7503 or INSN_FROM_TARGET_P if the code is appropriate.
7504
7505 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
7506
7507 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
7508 before using SYMBOL_REF_FLAG (addr).
7509
7510 * config/avr/avr-protos.h (avr_io_address_p): Declare.
7511 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
7512 Make non-static. Update all callers.
7513 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
7514 New insns to clear/set/test a single bit in I/O address space.
7515
7516 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7517
7518 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
7519
7520 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7521
7522 * Makefile.in: Update.
7523 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
7524 builtin_define_std): New.
7525 (c_common_init): Register CPP builtins callback.
7526 * c-common.h (flag_iso, flag_undef): New.
7527 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
7528 * c-lex.c: Don't include target.h.
7529 (cb_register_builtins): Move to c-common.c.
7530 (init_c_lex): Don't register hook here.
7531 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
7532 (cpp_define, cpp_assert): Remove.
7533 * gcc.c (cc1_options): Pass -undef to front end.
7534 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
7535 (TARGET_INITIALIZER): Update.
7536 * target.h (struct cpp_reader): Don't predeclare.
7537 (struct gcc_target): Remove cpp builtin hook.
7538 * tree.c (default_register_cpp_builtins): Remove.
7539 doc:
7540 * tm.texi: Update.
7541
7542 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7543
7544 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
7545
7546 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7547
7548 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
7549 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
7550
7551 2002-05-09 Jakub Jelinek <jakub@redhat.com>
7552
7553 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
7554 * config/sparc/libgcc-sparc-glibc.ver: New file.
7555 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
7556 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
7557
7558 2002-05-09 Jakub Jelinek <jakub@redhat.com>
7559
7560 PR target/6429
7561 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
7562 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
7563 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
7564 base multilibs.
7565 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
7566 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
7567 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
7568 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
7569
7570 2002-05-09 Richard Henderson <rth@redhat.com>
7571
7572 * config/ia64/ia64.md: Use define_constants for unspec numbers.
7573 * config/ia64/ia64.c: Likewise.
7574
7575 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
7576
7577 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
7578 (save_restore_insns): Likewise.
7579 (mips_expand_prologue, mips_expand_epilogue): Update callers.
7580 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
7581
7582 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
7583
7584 * athlon.md, k6.md, pentium.md, ppro.md): New files.
7585 * i386.md: Move scheduling information into new files.
7586
7587 * i386.md (type attribute): Add "rotate" for rotate insns.
7588 (rotate insns): Set type to "rotate".
7589 (various attributes and function units): Treat rotate like shift.
7590 (pent_pair attribute): Only rotates by one bit position are
7591 pairable.
7592 (sbb insns): Explicitly set pent_pair attribute on a couple
7593 that were missing it.
7594
7595 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
7596
7597 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
7598 make sure that buffer starts on odd word address.
7599 (sh_va_arg): Skip odd fp registers when reading a double precision
7600 value.
7601
7602 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7603
7604 * tree.h (preserve_data, object_permanent_p, type_precision):
7605 Remove.
7606
7607 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
7608
7609 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
7610 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
7611 doc:
7612 * cpp.texi: Update for removal of obsolete features.
7613
7614 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
7615 Jeffrey A Law (law@redhat.com)
7616
7617 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
7618 the DFA interface for Pentium processors.
7619 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
7620 (attr_pent_pair, ix86_pent_find_pair): Remove.
7621 (ix86_sched_reorder_pentium): Remove.
7622 (ix86_sched_reorder): Remove reordering for Pentium.
7623 * i386.md (Pentium scheduling): Rewrite using DFA description.
7624
7625 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
7626
7627 * cfganal.c (can_fallthru): Fix fast path.
7628 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
7629 with edges to the next block.
7630
7631 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
7632 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
7633
7634 * final.c (end_final): Use C trees to output data structures for profiling.
7635
7636 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
7637 (profile.o): New dependency profile.h
7638 (final.o): New dependency profile.h
7639 * profile.h: New file. New global structure profile_info.
7640 * final.h (count_edges_instrumented_now): Declare.
7641 (current_function_cfg_checksum): Declare.
7642 (function_list): New structure.
7643 (functions_head, functions_tail): New static variables.
7644 (end_final): Emits more data, removed some -ax stuff.
7645 (final): Stores function names and chcksums.
7646 * gcov-io.h (__write_gcov_string): New function.
7647 (__read_gcov_string): New function.
7648 * gcov.c (read_profile): New function.
7649 (create_program_flow_graph): Uses read_profile instead of reading
7650 da_file.
7651 (read_files): Removed da_file checking, it's done by read_profile now.
7652 * libgcc2.c (bb_function_info): New structure.
7653 (bb): New field in structure, removed some -ax stuff.
7654 (__bb_exit_func): Changed structure of da_file.
7655 * profile.c (count_edges_instrumented_now): New global variable.
7656 (current_function_cfg_checksum): New global variable.
7657 (max_counter_in_program): New global variable.
7658 (get_exec_counts): New function.
7659 (compute_checksum): New function.
7660 (instrument_edges): Sets count_edges_instrumented_now.
7661 (compute_branch_probabilities): Uses get_exec_counts instead of
7662 reading da_file.
7663 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
7664 (init_branch_prob): Removed da_file checking, done in get_exec_counts
7665 now.
7666 (end_branch_prob): Removed da_file checking, done in get_exec_counts
7667 now.
7668 * gcov.texi: Updated information about gcov file format.
7669
7670 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
7671
7672 * sbitmap.c: Fix formatting.
7673 * scan.c: Likewise.
7674 * scan-decls.c: Likewise.
7675 * sched-deps.c: Likewise.
7676 * sched-ebb.c: Likewise.
7677 * sched-rgn.c: Likewise.
7678 * sched-vis.c: Likewise.
7679 * sdbout.c: Likewise.
7680 * sibcall.c: Likewise.
7681 * simplify-rtx.c: Likewise.
7682 * ssa.c: Likewise.
7683 * ssa-ccp.c: Likewise.
7684 * ssa-dce.c: Likewise.
7685 * stmt.c: Likewise.
7686 * stor-layout.c: Likewise.
7687 * stringpool.c: Likewise.
7688
7689 2002-05-09 David S. Miller <davem@redhat.com>
7690
7691 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
7692
7693 2002-05-07 David S. Miller <davem@redhat.com>
7694
7695 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
7696 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
7697 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
7698 library implementation clobbers the output before the inputs
7699 are fully consumed, use stack temporary for the output.
7700
7701 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
7702
7703 * config/netbsd.h (CPP_SPEC): Remove.
7704 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
7705 * config/i386/netbsd.h (CPP_SPEC): Define.
7706 * config/ns32k/netbsd.h (CPP_SPEC): Define.
7707 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
7708 * config/sparc/netbsd.h (CPP_SPEC): Define.
7709 * config/vax/netbsd.h (CPP_SPEC): Define.
7710
7711 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
7712
7713 * read-rtl.c: Fix formatting.
7714 * real.c: Likewise.
7715 * recog.c: Likewise.
7716 * regclass.c: Likewise.
7717 * regmove.c: Likewise.
7718 * reg-stack.c: Likewise.
7719 * reload1.c: Likewise.
7720 * reload.c: Likewise.
7721 * resource.c: Likewise.
7722 * rtlanal.c: Likewise.
7723 * rtl.c: Likewise.
7724 * rtl-error.c: Likewise.
7725
7726 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
7727
7728 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
7729 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
7730
7731 2002-05-08 Bernd Schmidt <bernds@redhat.com>
7732
7733 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
7734 use __SSE2__ macro instead.
7735 * config/i386/xmmintrin.h: Likewise.
7736
7737 2002-05-08 Janis Johnson <janis187@us.ibm.com>
7738
7739 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
7740 and use it in all invocations of these macros. Clean up comments.
7741 * rtl.c (rtl_check_failed_flag): Add an argument for the name
7742 of the flag access macro whose check failed.
7743 * doc/rtl.texi (Flags): Document additional flag uses.
7744
7745 2002-05-08 Robert Spier <rspier@pobox.com>
7746 Neil Booth <neil@daikokuya.demon.co.uk>
7747
7748 PR preprocessor/6521
7749 * cppfiles.c (handle_missing_header): Don't do anything
7750 different for <> includes.
7751 doc:
7752 * cppopts.texi: Update documentation for -MG.
7753
7754 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
7755
7756 * cpplex.c (cpp_interpret_charconst): Truncate as well as
7757 sign-extend.
7758 doc:
7759 * cpp.texi: Clarify multichar charconst valuation.
7760
7761 2002-05-08 Mark Mitchell <mark@codesourcery.com>
7762
7763 * doc/invoke.texi: Document -mwindiss option.
7764
7765 2002-05-08 Jason Merrill <jason@redhat.com>
7766
7767 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
7768
7769 * dwarf2out.c (gen_type_die): Abort on broken recursion.
7770
7771 PR c++/6381
7772 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
7773 REAL_CST.
7774
7775 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
7776
7777 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
7778 little-endian multilibs to override arm/thumb multilibs.
7779 Do not build hardware floating point multilibs, nor apcs-26
7780 multilibs for the Thumb.
7781
7782 2002-05-08 Mark Mitchell <mark@codesourcery.com>
7783
7784 PR c/6569.
7785 * varasm.c (mark_weak): New function.
7786 (merge_weak): Use it. Do not call declare_weak.
7787 (declare_weak): Use merge_weak.
7788
7789 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
7790
7791 * cse.c (dead_libcall_p): Update counts.
7792 (delete_trivially_dead_insns): Update call of dead_libcall_p.
7793
7794 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
7795
7796 * cfglayout.c (function_tail_eff_head): Rename to ...
7797 (function_footer): ... this one.
7798 (unlink_insn_chain): New functions.
7799 (label_for_bb): Only call block_label and emit debug message.
7800 (record_effective_endpoints): Actually unlink the headers and footers.
7801 (fixup_reorder_cahin): Re-insert the unlinked sequences.
7802 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
7803 * cfglayout.h (struct reorder_block_def): New fields footer/header;
7804 remove eff_head/eff_end.
7805 * rtl.h (set_first_insn): Declare.
7806 * emit-rtl.c (set_first_insn): New function.
7807
7808 * cfglayout.c (fixup_reorder_chain): Dump duplicated
7809 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
7810 cfg_layout_duplicate_bb): New global function.
7811 (duplicate_insn_chain): New static function.
7812 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
7813 cfg_layout_duplicate_bb): Declare.
7814 (struct reorder_block_def): Add "original" field.
7815 * emit-rtl.c (emit_copy_of_insn_after): New function.
7816 * rtl.h (emit_copy_of_insn_after): Declare.
7817
7818 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
7819 (fixup_reorder_chain): properly handle edges to exit block.
7820
7821 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7822 Jan Hubicka <jh@suse.cz>
7823
7824 * basic-block.h (note_prediction_to_br_prob): declare.
7825 * c-semantics.c: Inlucde predit.h
7826 (expand_stmt): predict GOTO_STMT as not taken.
7827 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
7828 (cleanup_cfg): Do not free tail_recursion_list.
7829 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
7830 (flow_delete_block): Kill predictions past end of basic block.
7831 * output.h (delete_unreachable_blocks): Declare.
7832 * predict.c (predicted_by_p, process_note_predictions,
7833 process_note_prediction, last_block_p): New function.
7834 (estimate_probability): Bypass loop on PRED_CONTINUE;
7835 do not handle noreturn heuristics; kill PRED_RETURN; add
7836 PRED_EARLY_RETURN.
7837 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
7838 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
7839 * predict.h (IS_TAKEN): New constant.
7840 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
7841 * rtl.c (NOTE_INSN_PREDICTION): New.
7842 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
7843 New macro.
7844 (insn_note): add NOTE_INSN_PREDICTION.
7845 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
7846 CFG; free tail_recursion_label_list.
7847 * stmt.c: Include predict.h;
7848 (return_prediction): New.
7849 (expand_value_return): Use it.
7850 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
7851
7852 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
7853
7854 * config/mips/mips.md: Name the unspecs with define_constant.
7855 (*HILO_delay): Rename to 'hilo_delay' (no star).
7856 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
7857 (reload_outdi, reload_outsi): Likewise.
7858
7859 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
7860
7861 * toplev.c: Fix formatting.
7862
7863 2002-05-07 Janis Johnson <janis187@us.ibm.com>
7864
7865 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
7866 * configure.in (ac_rtlflag_checking): New.
7867 * doc/install.texi (--enable-checking): Document RTL flag checking.
7868
7869 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
7870
7871 * c-common.c (c_common_init): Set options->unsigned_wchar.
7872 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
7873 group target dependencies.
7874 (init_builtins, cpp_handle_option): Update.
7875 * cpplex.c (cpp_interpret_charconst): Update.
7876 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
7877 signed_char to unsigned_char, group target dependencies.
7878 * defaults.h (WCHAR_UNSIGNED): Remove.
7879 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
7880 config:
7881 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
7882 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
7883 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
7884 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
7885 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
7886 doc:
7887 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
7888
7889 2002-05-07 Mark Mitchell <mark@codesourcery.com>
7890
7891 * fixinc/inclhack.def (windiss_math1): New fix.
7892 (windiss_math2): Likewise.
7893 (windiss_valist): Likewise.
7894 * fixinc/fixincl.x: Regenerated.
7895
7896 2002-05-07 Andreas Jaeger <aj@suse.de>
7897
7898 * genautomata.c (output_internal_min_issue_delay_func): Add
7899 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
7900 (output_internal_trans_func): Likewise.
7901
7902 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
7903
7904 * pa.c (hppa_profile_hook): Use force_reg to get the address
7905 of the profile hook into an appropriate pseudo register.
7906
7907 2002-05-07 Mark Mitchell <mark@codesourcery.com>
7908
7909 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
7910 (LINK_START_SPEC): Handle it.
7911 (LINK_OS_SPEC): Likewise.
7912 (CPP_SPEC): Likewise.
7913 (STARTFILE_SPEC): Likewise.
7914 (LIB_SPEC): Likewise.
7915 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
7916 all platforms.
7917 (CRTSAVRES_DEFAULT_SPEC): New macro.
7918 (LIB_WINDISS_SPEC): New macro.
7919 (CPP_OS_WINDISS_SPEC): Likewise.
7920 (STARTFILE_WINDISS_SPEC): Likewise.
7921 (ENDFILE_WINDISS_SPEC): Likewise.
7922 (LINK_START_WINDISS_SPEC): Likewise.
7923 (LINK_OS_WINDISS_SPEC): Likewise.
7924 * config/rs6000/windiss.h: New file.
7925
7926 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
7927
7928 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
7929
7930 2002-05-06 David S. Miller <davem@redhat.com>
7931
7932 * config/sparc/sparc.md (shift insns): Do not mask off
7933 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
7934 take care of it.
7935
7936 2002-05-06 Richard Henderson <rth@redhat.com>
7937
7938 PR c++/6212
7939 * expr.c (highest_pow2_factor_for_type): New.
7940 (expand_assignment): Use it.
7941
7942 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
7943
7944 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
7945 unspec_volatile.
7946 ("altivec_mfvscr"): Same.
7947
7948 2002-05-06 Janis Johnson <janis187@us.ibm.com>
7949
7950 * rtl.h (struct rtx_def): Update comments.
7951 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
7952 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
7953 RTL_FLAG_CHECK macros with list of expected RTL codes.
7954 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
7955 (rtl_check_failed_flag): New.
7956 * reload1.c (reload): Use REG macro before changing rtx to MEM.
7957 (reload_cse_noop_set_p): Check rtx code before using access macro.
7958 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
7959 before using access macro.
7960
7961 2002-05-06 Janis Johnson <janis187@us.ibm.com>
7962
7963 * doc/rtl.texi (Flags): Update to reflect current usage.
7964
7965 2002-05-06 Roger Sayle <roger@eyesopen.com>
7966
7967 PR opt/3995
7968 * fold-const.c (sign_bit_p): New function.
7969 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
7970 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
7971 Reapply fold when converting (A & C) == C into (A & C) != 0.
7972 (fold_binary_op_with_conditional_arg): Fix typo in comment.
7973
7974 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
7975
7976 * c-common.c (warn_multichar): New.
7977 (c_common_init): Set CPP's warn_multichar.
7978 * c-common.h (warn_multichar): New.
7979 * c-decl.c (warn_multichar): Remove.
7980 * c-lex.c (lex_charconst): Update.
7981 * c-tree.h (warn_multichar): Remove.
7982 * cppexp.c (eval_token): Sign-extend charconst value.
7983 * cppinit.c (cpp_create_reader): Set warn_multichar.
7984 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
7985 each character. Update prototype. Sign-extend the result.
7986 * cpplib.h: Fix conditions.
7987 (struct cpp_options): Add new warning flag.
7988 (cpp_interpret_charconst): Update prototype.
7989 doc:
7990 * cpp.texi: Update documentation.
7991
7992 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
7993
7994 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
7995 Fix typo in usage of allof instead of unit.
7996
7997 2002-05-06 Richard Henderson <rth@redhat.com>
7998
7999 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
8000 and any jump or call for IN.
8001
8002 2002-05-06 Bernd Schmidt <bernds@redhat.com>
8003
8004 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
8005 -msse2.
8006 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
8007
8008 2002-05-06 Roger Sayle <roger@eyesopen.com>
8009
8010 * fold-const.c (lshift-double): Cast the high word to an unsigned
8011 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
8012 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
8013 avoid compiler warning. (fold): Remove redundant code from
8014 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
8015
8016 2002-05-06 Jeff Law <law@redhat.com>
8017
8018 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
8019 * pa.c (pa_adjust_cost): Remove all true dependency cost
8020 adjustments. Also remove support for non-DFA scheduling.
8021 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
8022 to adjust true dependency costs. Update various comments.
8023 (7100lc, 7200, 7300 scheduling): Simplify by combining the
8024 FP ALU & MPY units into a single unit.
8025
8026 2002-05-06 Catherine Moore <clm@redhat.com>
8027
8028 * config/v850/v850.c (compute_register_save_size): Make sure
8029 to count all of the registers that will be saved.
8030
8031 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
8032
8033 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
8034
8035 2002-05-06 David S. Miller <davem@redhat.com>
8036
8037 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
8038 allow result to overlap input operands in memory.
8039
8040 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
8041
8042 doc:
8043 * cpp.texi: Update multichar charconst docs.
8044
8045 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
8046
8047 * cpplex.c (cpp_interpret_charconst): Sign-extend each
8048 character. Don't ignore excess characters. Treat
8049 multicharacter character constants as signed.
8050 (cpp_parse_escape): Clarify diagnostic.
8051
8052 2002-05-05 Jakub Jelinek <jakub@redhat.com>
8053
8054 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
8055 use add instead of shift.
8056 (ashldi3_sp64): Likewise.
8057 (ashlsi3_const1, ashldi3_const1): Remove.
8058 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
8059 * config/sparc/sparc.c (const1_operand): New.
8060
8061 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
8062
8063 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
8064
8065 2002-05-05 Jakub Jelinek <jakub@redhat.com>
8066
8067 PR target/6561
8068 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
8069
8070 2002-05-05 Richard Henderson <rth@redhat.com>
8071
8072 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
8073 memory latency adjustments.
8074 (alpha_variable_issue): Remove.
8075 (alpha_use_dfa_pipeline_interface): New.
8076 (alpha_multipass_dfa_lookahead): New.
8077 * config/alpha/alpha.md: Remove define_function_unit scheduling;
8078 include new dfa scheduling.
8079 (attr type): Add none.
8080 (blockage): Use it.
8081 * config/alpha/ev4.md: New.
8082 * config/alpha/ev5.md: New.
8083 * config/alpha/ev6.md: New.
8084
8085 2002-05-05 David S. Miller <davem@redhat.com>
8086
8087 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
8088
8089 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
8090
8091 * cse.c: Fix formatting.
8092 * emit-rtl.c: Likewise.
8093
8094 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
8095
8096 * genautomata.c (initiate_states): Add additional guard to
8097 initialize `units_array'.
8098
8099 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
8100
8101 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
8102 process_unit_to_form_the_same_automaton_unit_lists,
8103 form_the_same_automaton_unit_lists
8104 check_unit_distributions_to_automata): New prototypes and
8105 functions.
8106 (check_automata): Rename it into `check_automata_insn_issues'.
8107 (unit_decl): New fields `the_same_automaton_unit' and
8108 `the_same_automaton_message_reported_p'.
8109 (unit_decl_t): New typedef.
8110 (the_same_automaton_lists): New gloval variable.
8111 (unit_regexp, unit_set_el, units_array, units_cmp,
8112 output_get_cpu_unit_code_func): Use the typedef.
8113 (evaluate_max_reserv_cycles): Increment
8114 `description->max_insn_reserv_cycles'.
8115 (initiate_states): Don't increment `max_cycles_num'.
8116 (transform_insn_regexps): Move code around transformation of
8117 regexps from `generate'.
8118 (generate): Remove call of `transform_insn_regexps'.
8119 (expand_automata): Call `transform_insn_regexps' and
8120 `check_unit_distributions_to_automata'. Check errors before
8121 `generate'.
8122
8123 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
8124 automaton `ultrasparc3_1'.
8125
8126 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
8127
8128 * c-common.c (c_common_init): Set up CPP arithmetic.
8129 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
8130 something reasonable for the host.
8131 (sanity_checks): Add checks.
8132 (cpp_read_main_file): Call sanity_checks() from here...
8133 (cpp_post_options): ... not here.
8134 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
8135 * cpplib.h (struct cpp_options): New member int_precision.
8136
8137 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8138
8139 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
8140
8141 2002-05-04 David S. Miller <davem@redhat.com>
8142
8143 * config/sparc/linux.h, config/sparc/linux64.h
8144 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
8145
8146 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
8147 more RTX codes.
8148 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
8149
8150 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
8151 of SETs.
8152
8153 2002-05-05 Tim Josling <tej@melbpc.org.au>
8154
8155 * treelang; New directory for new sample language treelang.
8156
8157 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
8158
8159 * Makefile.in (c-lex.o): Update.
8160 * c-lex.c: Include target.h.
8161 (cb_register_builtins): New.
8162 (init_c_lex): Set builtins callback.
8163 * c-lex.h (cpp_define, cpp_assert): New prototypes.
8164 * cppinit.c (init_builtins): Use callback, including for
8165 GXX_WEAK.
8166 * cpplib.h (struct cpp_callbacks): New member.
8167 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
8168 (TARGET_INITIALIZER): Update.
8169 * target.h (struct gcc_target): New hook.
8170 * tree.c (default_register_cpp_builtins): New.
8171 * tree.h (default_register_cpp_builtins): New.
8172 doc:
8173 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
8174
8175 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
8176
8177 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
8178 (cpp_post_options): Move sanity checks to...
8179 (sanity_checks): New.
8180 * cpplex.c (maybe_read_ucs): Fix prototype.
8181 (parse_string, cpp_parse_escape): Cast for %c format specifier.
8182 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
8183 if necessary.
8184
8185 2002-05-04 Bernd Schmidt <bernds@redhat.com>
8186
8187 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
8188 builtins. Use V2DI patterns instead of TI for logical operations.
8189 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
8190 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
8191 (ix86_expand_builtins): Change the pattern used for movntdq.
8192 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
8193 sse2_nandv2di3): New patterns.
8194 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
8195 on operands.
8196 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
8197 (cvtdq2pd): Correct mode on operand 1.
8198 (sse2_umulsidi3): Describe without unspec.
8199 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
8200 machine modes.
8201 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
8202 (ashlv2di3): Likewise, from sse2_ashlv2di3.
8203 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
8204 ashlv4si3, ashlv2di3): Use SImode for shift count.
8205 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
8206 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
8207 New patterns.
8208 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
8209 New typedefs.
8210 (__m128i, __m128d): New macros.
8211 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
8212 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
8213 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
8214 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
8215 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
8216 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
8217 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
8218 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
8219 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
8220 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
8221 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
8222 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
8223 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
8224 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
8225 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
8226 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
8227 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
8228 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
8229 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
8230 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
8231 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
8232 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
8233 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
8234 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
8235 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
8236 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
8237 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
8238 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
8239 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
8240 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
8241 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
8242 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
8243 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
8244 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
8245 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
8246 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
8247 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
8248 functions.
8249 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
8250 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
8251
8252 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
8253
8254 * dwarf2out.c: Fix formatting.
8255 * varasm.c: Likewise.
8256
8257 2002-05-04 David Edelsohn <edelsohn@gnu.org>
8258
8259 PR c/6543
8260 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
8261 clobber and use result as temporary value.
8262
8263 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
8264
8265 * expr.c (force_operand): Use expand_simple_* to handle more
8266 cases.
8267
8268 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
8269
8270 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
8271 and sign-extension.
8272 (lex_charconst): Update for change in prototype of
8273 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
8274 appropriately.
8275 * cpphash.h (BITS_PER_CPPCHAR_T): New.
8276 * cppinit.c (cpp_create_reader): Initialize them for no
8277 change in semantics.
8278 (cpp_post_options): Add sanity checks.
8279 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
8280 and truncation issues. Calculate in type cppchar_t.
8281 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
8282 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
8283 run-time dependent precision correctly. Return whether the
8284 result is signed or not.
8285 * cpplib.c (dequote_string): Use cppchar_t; update.
8286 * cpplib.h (cppchar_signed_t): New.
8287 struct cpp_options): New precision members.
8288 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
8289 * cppexp.c (eval_token): Update.
8290
8291 2002-05-03 David S. Miller <davem@redhat.com>
8292
8293 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
8294 * config/sparc/sparc.c (sparc_rtx_costs): New function
8295 implementing RTX_COSTS and CONST_COSTS.
8296 * config/sparc/sparc.h (CONST_COSTS): Delete.
8297 (RTX_COSTS_CASES): Define.
8298 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
8299 the work.
8300
8301 * config/sparc/sparc.md (DFA schedulers): Split out...
8302 * config/sparc/cypress.md, config/sparc/hypersparc.md,
8303 config/sparc/sparclet.md, config/sparc/supersparc.md,
8304 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
8305
8306 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
8307 checks on it, always defined for Sparc.
8308
8309 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
8310 Tweak, and add more detailed comments.
8311
8312 2002-05-03 Zack Weinberg <zack@codesourcery.com>
8313
8314 * Re-apply patch accidentally reverted with
8315 DFA scheduler merge: remove all rules and variables to slurp
8316 source files out of libiberty and rebuild them with HOST_CC.
8317 ($(HOST_PREFIX_1)varray.o): New rule.
8318 (genattrtab rule): Word wrap.
8319
8320 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
8321
8322 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
8323 (CPP_SUBTARGET_SPEC): Define.
8324 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
8325 cpp_subtarget specs.
8326 (CPP_SPEC): Redefine to include %(cpp_subtarget).
8327
8328 2002-05-03 David S. Miller <davem@redhat.com>
8329
8330 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
8331 * target.h (struct gcc_target): Delete cycle_display member.
8332
8333 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
8334 (rtx_needs_barrier): Delete reference to cycle_display unspec.
8335 (ia64_sched_reorder2): Mention need for cycle display handling
8336 once such notes exist.
8337
8338 2002-05-03 Richard Henderson <rth@redhat.com>
8339
8340 * real.c (etoasc): Strip most trailing zeros for clarity.
8341 * sched-vis.c: Include real.h.
8342 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
8343 * Makefile.in (sched-vis.o): Add real.h.
8344
8345 2002-05-03 David S. Miller <davem@redhat.com>
8346
8347 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
8348 no longer needed.
8349
8350 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
8351
8352 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
8353 when we get an out of range literal.
8354 (altivec_expand_ternop_builtin): Same.
8355 (altivec_expand_unop_builtin): Same.
8356 (altivec_expand_builtin): Same, for dss.
8357 (altivec_expand_builtin): Use trees instead of rtl when
8358 determining literal argument validity.
8359
8360 2002-05-03 David S. Miller <davem@redhat.com>
8361
8362 Delete cycle display scheduling hook.
8363 * config/ia64/ia64.c (ia64_cycle_display,
8364 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
8365 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
8366 and use emit_insn_before instead of ia64_emit_insn_before.
8367 * config/ia64/ia64.md (unspec usage): Delete cycle display.
8368 (cycle_display): Delete insn pattern.
8369 * config/sparc/sparc.md (unspec usage): Delete cycle display.
8370 (cycle_display): Delete insn pattern.
8371 * config/sparc/sparc.c (sparc_cycle_display,
8372 TARGET_SCHED_CYCLE_DISPLAY): Delete.
8373 * doc/md.texi (cycle_display): Don't mention.
8374 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
8375
8376 2002-05-03 Richard Henderson <rth@redhat.com>
8377
8378 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
8379 * recog.h: Declare them.
8380
8381 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
8382 * config/sparc/sparc.md: Use store_data_bypass_p instead.
8383 * config/sparc/sparc-protos.h: Update.
8384
8385 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
8386
8387 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
8388 -D__arch64__. Add -D_LP64.
8389 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
8390 from sparc.h.
8391 (CPP_ARCH64_SPEC): Likewise.
8392 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
8393 (NO_BUILTIN_SIZE_TYPE): Undef.
8394
8395 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
8396
8397 * genautomata.c (min_issue_delay_pass_states): Change return type
8398 in the prototype.
8399 (min_issue_delay_pass_states): Change the algorithm.
8400 (min_issue_delay): Set up min_insn_issue_delay for the state.
8401 (output_min_issue_delay_table): Interchange the nested loops and
8402 and initiate min_insn_issue_delay for states.
8403
8404 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
8405
8406 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
8407 jump is simplejump.
8408
8409 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
8410
8411 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
8412 sequence.
8413
8414 2002-05-03 Richard Henderson <rth@redhat.com>
8415
8416 PR opt/6534
8417 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
8418 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
8419 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
8420 code before JUMP, not EARLIEST.
8421
8422 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
8423
8424 * c-format.c (check_format_info_main): Don't check for presence of
8425 parameter for * width until after operand number has been read,
8426 and only check for it if format parameters are available.
8427 Fixes PR c/6547.
8428
8429 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
8430
8431 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
8432 (LINK_SPEC): Undef before defining.
8433
8434 2002-05-03 Jakub Jelinek <jakub@redhat.com>
8435
8436 PR preprocessor/6489
8437 * tradcpp.c (fixup_newlines): New.
8438 (main, finclude): Use it.
8439
8440 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
8441
8442 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
8443 * config/mips/mips.c (mips_unique_section): Strip encoding from
8444 decl name.
8445
8446 2002-05-03 Jakub Jelinek <jakub@redhat.com>
8447
8448 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
8449 mode.
8450
8451 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8452
8453 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
8454 (Specific): Removed buildstats references.
8455 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
8456 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
8457 Accomodate Solaris versions beyond 8.
8458 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
8459 (Specific, *-*-solaris2.8): Removed, obsolete.
8460
8461 2002-05-03 Jakub Jelinek <jakub@redhat.com>
8462
8463 PR target/6542
8464 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
8465 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
8466 fill leaf_reg_remap with identity.
8467 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
8468
8469 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
8470
8471 * config/h8300/crti.asm: Remove trailing spaces.
8472 * config/h8300/h8300.c: Likewise.
8473 * config/h8300/lib1funcs.asm: Likewise.
8474
8475 2002-05-02 Jason Merrill <jason@redhat.com>
8476
8477 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
8478 * c-decl.c (c_init_decl_processing): Use it.
8479 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
8480 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
8481 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
8482
8483 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
8484
8485 * regrename.c: Fix formatting.
8486 * tree.c: Likewise.
8487
8488 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
8489
8490 * i386.md (attribute memory): Handle compares properly.
8491
8492 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
8493
8494 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
8495 to none.
8496
8497 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
8498
8499 * function.c: Fix formatting.
8500
8501 2002-05-02 Jan Hubicka <jh@suse.cz>
8502
8503 * haifa-sched.c (schedule_insn): Print table of instructions and
8504 reservations.
8505 (sched_block): Do not print ready list at verbosity level 1.
8506 * sched-vis.c (print_insn): Make global.
8507 * sched-ebb.c (ebb_print_insn): Rename from...
8508 (print_insn): ... this one.
8509 * sched-int.h (print_insn): Declare
8510
8511 2002-05-02 Richard Henderson <rth@redhat.com>
8512
8513 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
8514 emitted by cycle_display.
8515
8516 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
8517
8518 * doc/install.texi (*-*-freebsd*): Update to latest status.
8519
8520 2002-05-02 Jakub Jelinek <jakub@redhat.com>
8521
8522 PR target/6540
8523 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
8524 * config/float-sparc.h: Assume 128-bit long double if
8525 __LONG_DOUBLE_128__ is defined.
8526
8527 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
8528
8529 * genattrtab.c (write_function_unit_info): Add a dummy element
8530 when num_units == 0.
8531
8532 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8533
8534 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
8535 TYPE_MODE (double_type_node) instead of DFmode.
8536
8537 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
8538
8539 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
8540 jumps post reload.
8541 * toplev.c (rest_of_compilation): Revert Richard's patch.
8542
8543 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
8544
8545 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
8546
8547 2002-05-02 Catherine Moore <clm@redhat.com>
8548
8549 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
8550
8551 2002-05-02 Kazu Hirata <kazu@hxi.com>
8552
8553 * combine.c: Fix comment typos.
8554 * expr.c: Likewise.
8555 * genautomata.c: Likewise.
8556 * stmt.c: Likewise.
8557 * tree.h: Likewise.
8558
8559 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
8560
8561 * doc/install.texi: State GNAT version requirements.
8562
8563 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
8564
8565 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
8566 of the frame pointer or arg pointer register which strict register
8567 checking is not enabled.
8568
8569 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
8570
8571 * gcc.dg/altivec-8.c: New.
8572
8573 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
8574 PRE_INC and PRE_DEC for altivec modes.
8575
8576 2002-05-01 Bruce Korb <bkorb@gnu.org>
8577
8578 * fixinc/check.tpl(set-writable): make sure the function exists first
8579 * fixinc/inclhack.def(alpha_assert): fix test_text
8580 * fixinc/tests/base/assert.h: add in missing result
8581
8582 2002-05-01 Jeff Law <law@redhat.com>
8583
8584 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
8585 'T' constraint.
8586
8587 2002-05-01 Joel Brobecker <brobecker@gnat.com>
8588
8589 * dbxout.c (dbxout_type): Emit size information for range types,
8590 as well, but only when using GDB extensions.
8591
8592 2002-05-01 Richard Henderson <rth@redhat.com>
8593
8594 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
8595 target-independent gnu binutils date test.
8596
8597 2002-05-01 Richard Henderson <rth@redhat.com>
8598
8599 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
8600 info before expunging the block.
8601
8602 2002-05-01 Jakub Jelinek <jakub@redhat.com>
8603
8604 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
8605 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
8606 -M -or -MM is in effect.
8607
8608 2002-05-01 Zack Weinberg <zack@codesourcery.com>
8609
8610 * config.gcc: Correct test of --enable-obsolete. Obsolete all
8611 A29k configurations.
8612 * doc/install.texi: Update to match.
8613
8614 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8615
8616 PR bootstrap/6514
8617 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
8618 for duplicates. Always loop over whole list.
8619
8620 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8621
8622 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
8623
8624 2002-05-01 Joel Sherrill <joel@OARcorp.com>
8625
8626 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
8627 support routines.
8628
8629 2002-05-01 Joel Sherrill <joel@OARcorp.com>
8630
8631 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
8632
8633 2002-05-01 David Edelsohn <edelsohn@gnu.org>
8634
8635 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
8636 (nabs_nopower): Same.
8637 (floatdisf2): New pattern.
8638 (absdi2): Convert to define_insn_and_split.
8639 (nabsdi2): Same.
8640 (trunctfsf2): Same.
8641 (floatditf2): Same.
8642 (floatsitf2): Same.
8643 (fix_trunctfdi2): Same.
8644 (fix_trunctfsi2): Same.
8645
8646 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
8647
8648 * doc/install.texi: Update Texinfo version requirement
8649 documentation.
8650
8651 2002-05-01 Jakub Jelinek <jakub@redhat.com>
8652
8653 PR target/6512, PR target/5628
8654 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
8655 when memory is not aligned.
8656 (movdf_insn_v9only_vis): Likewise.
8657 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
8658 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
8659 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
8660
8661 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
8662
8663 * gcc.dg/altivec-7.c: New.
8664
8665 * config/rs6000/altivec.h: Cleanup.
8666
8667 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
8668
8669 * doc/invoke.texi (Option Summary): Add -mvrsave=.
8670 (RS/6000 and PowerPC Options): Document -mvrsave=.
8671
8672 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
8673 (rs6000_altivec_vrsave_string): Same.
8674 (rs6000_override_options): Call rs6000_parse_vrsave_option.
8675 (rs6000_parse_vrsave_option): New.
8676 (rs6000_stack_info): Only generate vrsave instructions when
8677 TARGET_ALTIVEC_VRSAVE.
8678
8679 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
8680 (rs6000_altivec_vrsave_string): Define extern.
8681 (rs6000_altivec_vrsave): Same.
8682 (TARGET_ALTIVEC_VRSAVE): New.
8683
8684 2002-04-30 Richard Henderson <rth@redhat.com>
8685
8686 PR opt/6516
8687 * toplev.c (rest_of_compilation): Don't run cross-jump before
8688 bb-reorder.
8689
8690 2002-04-30 Tom Rix <trix@redhat.com>
8691
8692 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
8693 check which_alternative.
8694
8695 2002-04-30 Kazu Hirata <kazu@hxi.com>
8696
8697 * cpplex.c: Fix comment formatting.
8698 * function.c: Likewise.
8699 * integrate.c: Likewise.
8700 * regrename.c: Likewise.
8701 * sibcall.c: Likewise.
8702 * simplify-rtx.c: Likewise.
8703 * tree-inline.c: Likewise.
8704
8705 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
8706
8707 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
8708 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
8709 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
8710 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
8711 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
8712 * pa/x-ada: New file. Define ADA_CFLAGS.
8713
8714 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
8715
8716 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
8717 from MMIX_LAST_REGISTER_FILE_REGNUM.
8718 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
8719 (struct machine_function): New member highest_saved_stack_register
8720 previously static variable in mmix.c.
8721 (MACHINE_DEPENDENT_REORG): Define.
8722 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
8723 (MMIX_OUTPUT_REGNO): New.
8724 (mmix_target_asm_function_prologue): Move calculation of last used
8725 saved-stack-register into...
8726 (mmix_machine_dependent_reorg): New function. Update to also handle
8727 !TARGET_ABI_GNU.
8728 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
8729 register names, simplify somewhat by new variable regno.
8730 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
8731 register.
8732 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
8733 emitting register names.
8734 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
8735 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
8736 Remove fixed FIXME.
8737 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
8738 Declare.
8739
8740 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
8741
8742 2002-04-30 Richard Henderson <rth@redhat.com>
8743
8744 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
8745 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
8746 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
8747 emit_tfmode_cvt): New.
8748 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
8749 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
8750 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
8751 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
8752 * config/sparc/sparc-protos.h: Update.
8753
8754 2002-04-30 Janis Johnson <janis187@us.ibm.com>
8755
8756 * install.texi (Final install): Add to the list of info to include
8757 in a report of a successful bootstrap, and add link to 3.1 list.
8758
8759 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
8760
8761 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
8762 (mode): Add vector modes
8763 (i387): Kill attribute.
8764 (unit): New attribute.
8765 (length_immediate): Grok new types.
8766 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
8767 (modrm): Use "unit".
8768 (memory): Handle MMX/SSE properly.
8769 (scheduling descriptions): Kill uses of fop1.
8770 (sse, mmx, fp patterns): Set type and mode properly.
8771
8772 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
8773
8774 * pa.c (override_options): Default to PA8000 scheduling.
8775 * doc/invoke.texi (HP-PA options): Mention newly added 7300
8776 scheduling parameter.
8777
8778 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
8779 handling of double precision multiplies.
8780
8781 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
8782 fpdiv and fpsqrt instructions.
8783 (7200 & 7300 scheduling): Fix typo in handling of
8784 store-load and store-store penalties.
8785
8786 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8787
8788 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
8789 mips. Add two missing commas.
8790
8791 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
8792
8793 * doc/contrib.texi (Contributors): Update Paolo Carlini's
8794 and Benjamin Kosnik's entries.
8795
8796 2002-04-29 David S. Miller <davem@redhat.com>
8797
8798 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
8799 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
8800 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
8801 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
8802
8803 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8804
8805 * combine.c (find_split_point): Use gen_int_mode.
8806
8807 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
8808
8809 Merging code from dfa-branch:
8810
8811 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
8812
8813 * genautomata.c (output_reserv_sets): Fix typo.
8814
8815 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
8816
8817 * genautomata.c (output_reserv_sets): Remove
8818 next_cycle_output_flag.
8819
8820 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
8821
8822 * sched-rgn.c (init_ready_list): Make the DFA code handle
8823 USE/CLOBBER insns in the same way as the traditional
8824 scheduler.
8825 (new_ready): Similarly..
8826
8827 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
8828
8829 * haifa-sched.c (schedule_block): Change the DFA state only after
8830 issuing insn.
8831
8832 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
8833
8834 * pa.c (hppa_use_dfa_pipeline_interface): New function.
8835 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
8836 (override_options): Add PA7300 scheduling support.
8837 (pa_adjust_cost): Update various comments. Properly
8838 handle anti and output dependencies when using the
8839 DFA scheduler.
8840 (pa_issue_rate): Add PA7300 scheduling support.
8841 (pa_can_combine_p): Call extract_insn before calling
8842 constrain_operands (taken from mainline tree).
8843 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
8844 * pa.md (cpu attr): Add 7300. Rewrite pipeline
8845 descriptions using DFA descriptions. Add PA7300
8846 scheduling support.
8847
8848 2002-03-30 David S. Miller <davem@redhat.com>
8849
8850 Add UltraSPARC-III DFA scheduling support.
8851 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
8852 Update FP conditional move on register insn patterns to use it, as
8853 appropriate.
8854 (define_attr cpu): Add ultrasparc3.
8855 (define_attr us3load_type): New, update integer load patterns to
8856 set it, as appropriate.
8857 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
8858 (rest): Add UltraSPARC3 scheduling description.
8859 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
8860 (PROCESSOR_ULTRASPARC3): New.
8861 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
8862 ({ASM,CPP}_CPU_SPEC): Likewise.
8863 (REGISTER_MOVE_COST): Likewise.
8864 (RTX_COSTS): Likewise.
8865 * config/sparc/sparc.c (sparc_override_options,
8866 sparc_initialize_trampoline, sparc64_initialize_trampoline,
8867 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
8868 sparc_issue_rate): Likewise.
8869 * config/sparc/sol2.h: Likewise.
8870 * config/sparc/sol2-sld-64.h: Likewise.
8871 * config/sparc/linux64.h: Likewise.
8872
8873 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
8874
8875 * doc/md.texi: Add comments about usage the latency time for the
8876 different dependencies and about case when two or more conditions
8877 in different define_insn_reservations returns TRUE for an insn.
8878
8879 * doc/md.texi: Add reference for automaton based pipeline
8880 description.
8881
8882 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
8883
8884 * doc/passes.texi: Add missed information about genattrtab.
8885
8886 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
8887
8888 * genautomata.c (output_automata_list_transition_code): Check
8889 automata_list on NULL.
8890
8891 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
8892
8893 * genautomata.c (output_insn_code_cases,
8894 output_automata_list_min_issue_delay_code,
8895 output_automata_list_transition_code,
8896 output_automata_list_state_alts_code): Comment the functions.
8897
8898 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
8899
8900 * genautomata.c (automata_list_el_t): New typedef.
8901 (get_free_automata_list_el,free_automata_list_el,
8902 free_automata_list, automata_list_hash, automata_list_eq_p,
8903 initiate_automata_lists, automata_list_start, automata_list_add,
8904 automata_list_finish, finish_automata_lists,
8905 output_insn_code_cases, output_automata_list_min_issue_delay_code,
8906 output_automata_list_transition_code,
8907 output_automata_list_state_alts_code, add_automaton_state,
8908 form_important_insn_automata_lists): New functions and prototypes.
8909 (insn_reserv_decl): Add members important_automata_list and
8910 processed_p.
8911 (ainsn): Add members important_p.
8912 (automata_list_el): New structure.
8913 (first_free_automata_list_el, current_automata_list,
8914 automata_list_table): New global variables.
8915 (create_ainsns): Initiate member important_p.
8916 (output_internal_min_issue_delay_func): Generate the switch and
8917 call output_insn_code_cases.
8918 (output_internal_trans_func, output_internal_state_alts_func):
8919 Ditto.
8920 (generate): Call initiate_automata_lists.
8921 (automaton_states): New global variable.
8922 (expand_automata): Call form_important_insn_automata_lists.
8923 (write_automata): Call finish_automata_lists.
8924
8925 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
8926
8927 * genautomata.c (add_excls, add_presence_absence): Check that
8928 cpu units in the sets belong the same automaton.
8929
8930 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
8931 about that cpu units in the sets belong the same automaton.
8932
8933 * doc/md.texi: Ditto.
8934
8935 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
8936 Nitin Gupta <niting@noida.hcltech.com>
8937
8938 * config/sh/sh.c (sh_use_dfa_interface): New function.
8939
8940 (sh_issue_rate): New Function.
8941 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
8942 TARGET_SCHED_ISSUE_RATE: define.
8943
8944 * config/sh/sh.md: Add DFA based pipeline description for SH4.
8945
8946 (define_attr insn_class): New attribute used for DFA
8947 scheduling.
8948 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
8949 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
8950 cmpeqdi_t): Likewise.
8951
8952 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
8953 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
8954 ex_group.
8955 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
8956
8957 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
8958
8959 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
8960 break.
8961
8962 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
8963
8964 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
8965 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
8966 necessary.
8967 (output_dfa_start_func): Initiate new variable insn_codes_length,
8968 (write_automata): Output definition of the new variable.
8969
8970 2001-10-02 David S. Miller <davem@redhat.com>
8971
8972 * haifa-sched.c (advance_one_cycle): New function.
8973 (schedule_block): Use it.
8974 (queue_to_ready): Use it, and also make sure to advance the DFA
8975 state on all stall cycles, not just those where insn_queue links
8976 are found.
8977
8978 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
8979
8980 * haifa-sched.c (max_issue): Remove last_p argument. Only return
8981 non-zero if the highest-priority instruction could be scheduled.
8982 (choose_ready): Remove last argument from max_issue call.
8983
8984 2001-09-28 David S. Miller <davem@redhat.com>
8985
8986 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
8987 ultrasparc and 3 for other multi-issue sparcs.
8988
8989 2001-09-27 David S. Miller <davem@redhat.com>
8990
8991 * config/sparc/sparc.md (cycle_display): New pattern.
8992 * config/sparc/sparc.c (sparc_cycle_display): New.
8993 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
8994
8995 2001-09-25 David S. Miller <davem@redhat.com>
8996
8997 Convert all of Sparc scheduling to DFA
8998 * config/sparc/sparc.md: Kill all define_function_unit
8999 directives and replace with DFA equivalent.
9000 * config/sparc/sparc.c (ultrasparc_adjust_cost,
9001 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
9002 ultra_fpmode_conflict_exists, ultra_find_type,
9003 ultra_build_types_avail, ultra_flush_pipeline,
9004 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
9005 ultrasparc_variable_issue, ultrasparc_sched_init,
9006 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
9007 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
9008 ultra_cur_hist, ultra_cycles_elapsed): Kill.
9009 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9010 ultrasparc_store_bypass_p): New.
9011 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
9012 Declare.
9013
9014 2001-09-24 David S. Miller <davem@redhat.com>
9015
9016 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
9017 ready->vec[foo] not ready[foo].
9018
9019 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
9020
9021 * doc/md.texi: Correct examples for define_insn_reservations
9022 `mult' and `div'.
9023
9024 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
9025
9026 * genautomata.c (create_automata): Print message about creation of
9027 each automaton.
9028 (generate): Remove printing meease about creation of
9029 automata.
9030
9031 2001-09-05 David S. Miller <davem@redhat.com>
9032
9033 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
9034 * config/sparc/linux64.h: Likewise.
9035
9036 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
9037
9038 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
9039 schedule_block, sched_init, sched_finish): Add missed calls of
9040 use_dfa_pipeline_interface.
9041
9042 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
9043 Ditto.
9044
9045 * sched-vis.c (get_visual_tbl_length): Ditto.
9046
9047 2001-08-27 Richard Henderson <rth@redhat.com>
9048
9049 * genattr.c (main): Emit state_t even when not doing scheduling.
9050
9051 2001-08-27 Richard Henderson <rth@redhat.com>
9052
9053 * genautomata.c (expand_automata): Always create a description.
9054
9055 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
9056
9057 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
9058 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
9059 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
9060 RTL constructions.
9061
9062 * genattr.c (main): New variable num_insn_reservations. Increase
9063 it if there is DEFINE_INSN_RESERVATION. Output automaton based
9064 pipeline hazard recognizer interface.
9065
9066 * genattrtab.h: New file.
9067
9068 * genattrtab.c: Include genattrtab.h.
9069 (attr_printf, check_attr_test, make_internal_attr,
9070 make_numeric_value): Move protypes into genattrtab.h. Define them
9071 as external.
9072 (num_dfa_decls): New global variable.
9073 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
9074 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
9075 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
9076 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
9077
9078 * genautomata.c: New file.
9079
9080 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
9081
9082 * sched-int.h: (curr_state): Add the external definition for
9083 automaton pipeline interface.
9084 (haifa_insn_data): Add comments for members blockage and units.
9085
9086 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9087 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9088 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9089 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9090 TARGET_SCHED_DFA_POST_CYCLE_INSN,
9091 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9092 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
9093 macros.
9094 (TARGET_SCHED): Use the new macros.
9095
9096 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
9097 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
9098 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
9099 dfa_bubble): New members in gcc_target.sched.
9100
9101 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
9102 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
9103 (insn_queue): Redefine it as pointer to array.
9104 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
9105 INSN_QUEUE_SIZE.
9106 (max_insn_queue_index_macro_value): New variable.
9107 (curr_state, dfa_state_size, ready_try): New varaibles for
9108 automaton interface.
9109 (ready_element, ready_remove, max_issue): New function prototypes
9110 for automaton interface.
9111 (choose_ready): New function prototype.
9112 (insn_unit, blockage_range): Add comments.
9113 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
9114 FUNCTION_UNITS_SIZE == 0.
9115 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
9116 actual_hazard, potential_hazard): Add comments.
9117 (insn_cost): Use cost -1 as undefined value. Remove
9118 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
9119 pipeline interface.
9120 (ready_element, ready_remove): New functions for automaton
9121 interface.
9122 (schedule_insn): Add new code for automaton pipeline interface.
9123 (queue_to_ready): Add new code for automaton pipeline interface.
9124 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
9125 (debug_ready_list): Print newline when the queue is empty.
9126 (max_issue): New function for automaton pipeline interface.
9127 (choose_ready): New function.
9128 (schedule_block): Add new code for automaton pipeline interface.
9129 Print ready list before scheduling each insn.
9130 (sched_init): Add new code for automaton pipeline interface.
9131 Initiate insn cost by -1.
9132 (sched_finish): Free the current automaton state and finalize
9133 automaton pipeline interface.
9134
9135 * sched-rgn.c: Include target.h.
9136 (init_ready_list, new_ready, debug_dependencies): Add new code for
9137 automaton pipeline interface.
9138
9139 * sched-vis.c: Include target.h.
9140 (get_visual_tbl_length): Add code for automaton interface.
9141 (target_units, print_block_visualization): Add comments.
9142
9143 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
9144 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
9145 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
9146 (getruntime.o, genautomata.o): New entries.
9147 (genattrtab.o): Add new dependency file genattrtab.h.
9148 (genattrtab): Add new dependencies. Link it with `libm.a'.
9149 (getruntime.o, hashtab.o): New entries for canadian cross.
9150
9151 * doc/md.texi: Description of automaton based model.
9152
9153 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
9154 Add comments.
9155 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9156 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9157 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9158 TARGET_SCHED_DFA_POST_CYCLE_INSN,
9159 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9160 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9161 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
9162 hook descriptions.
9163 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
9164 MAX_DFA_ISSUE_RATE): New macro descriptions.
9165
9166 * doc/contrib.texi: Add dfa based scheduler contribution.
9167
9168 * doc/gcc.texi: Add more information about genattrtab.
9169
9170 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9171
9172 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
9173 adjust_address_nv call.
9174
9175 2002-04-29 Janis Johnson <janis187@us.ibm.com>
9176
9177 * doc/install.texi (Testing): Provide additional information, and
9178 a stronger encouragement, for running the testsuites.
9179
9180 2002-04-29 DJ Delorie <dj@redhat.com>
9181
9182 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
9183 given in upper case.
9184
9185 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9186
9187 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
9188 Solaris 2 <widec.h> if missing.
9189 * fixinc/fixincl.x: Regenerate.
9190 * fixinc/tests/base/widec.h: New file.
9191
9192 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
9193
9194 * toplev.c (f_options): Add "profile" switch so that
9195 -fno-profile can be used to disable -p.
9196
9197 2002-04-29 Bernd Schmidt <bernds@redhat.com>
9198
9199 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
9200 UV2DImode.
9201 * tree.c (build_common_tree_nodes_2): Likewise.
9202 * tree.h (enum tree_index): Likewise.
9203 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
9204
9205 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
9206 entries.
9207 (init_mmx_sse_builtins): Initialize SSE2 builtins.
9208 (ix86_expand_builtin): Add support for SSE2 builtins.
9209 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
9210 (VALID_SSE_REG_MODE): Use it.
9211 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
9212 (enum ix86_builtins): Add SSE2 builtins.
9213 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
9214 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
9215 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
9216 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
9217 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
9218 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
9219 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
9220 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
9221 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
9222 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
9223 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
9224 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
9225 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
9226 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
9227 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
9228 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
9229 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
9230 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
9231 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
9232 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
9233 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
9234 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
9235 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
9236 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
9237 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
9238 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
9239 lfence_insn): New patterns.
9240 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
9241 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
9242
9243 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
9244
9245 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
9246
9247 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9248
9249 * doc/contrib.texi (Contributors): Add Paolo Carlini and
9250 Janis Johnson.
9251 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
9252 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
9253 and CPU instead of cpu.
9254
9255 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
9256
9257 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
9258 variables.
9259 (lang_independent_options): Add -fif-conversion, -fif-conversion2
9260 (rest_of_compilation): Do if conversion only when asked for.
9261 (parse_options_and_default_flags): Set new variables to 1 for -O1
9262 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
9263
9264 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
9265
9266 * i386.c (dbx64_register_map): Fix typo.
9267
9268 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
9269
9270 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
9271 real_one_half, real_bb_freq_max): New static variables.
9272 (debug_profile_bbauxs): Kill.
9273 (process_note_predictions): Kill unused variable.
9274 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
9275 volatile double.
9276 (propagate_freq): Use REAL_ARITHMETICS.
9277 (estimate_bb_frequencies): Likevise; init new static variables.
9278 * Makefile.in (predict.o): Add dependency on real.h
9279
9280 2002-04-28 David S. Miller <davem@redhat.com>
9281
9282 PR target/6500
9283 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
9284 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
9285 several {reads,writes} instead.
9286 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
9287 Define.
9288
9289 2002-04-27 David S. Miller <davem@redhat.com>
9290
9291 PR target/6494
9292 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
9293 of the stack bias.
9294
9295 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
9296 including signal.h and sys/ucontext.h, not needed.
9297
9298 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
9299
9300 * varasm.c (output_constant_def): Correct test for not calling
9301 ENCODE_SECTION_INFO for INTEGER_CST.
9302
9303 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
9304
9305 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
9306 keep most cases as function eval_token.
9307 (eval_token): New function.
9308 (_cpp_parse_expr): Read token here for improved diagnostics.
9309 Don't use op_as_text. Detect bad ':' here.
9310 (reduce): Don't detect bad ':' here.
9311 (op_as_text): Remove.
9312 * cpphash.h (_cpp_test_assertion): Change prototype.
9313 * cpplib.c (_cpp_test_assertion): Change prototype.
9314
9315 2002-04-28 Richard Henderson <rth@redhat.com>
9316
9317 PR c/5154
9318 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
9319 (ggc_mark_rtx_children): New.
9320
9321 2002-04-28 Jakub Jelinek <jakub@redhat.com>
9322
9323 PR target/6496
9324 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
9325 after call peepholes for UltraSPARC.
9326 (call + jump 64-bit peepholes): Remove.
9327
9328 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9329
9330 PR c/6497
9331 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
9332 result as temporary value.
9333
9334 2002-04-28 Jakub Jelinek <jakub@redhat.com>
9335
9336 PR c++/6396
9337 * toplev.c (rest_of_compilation): Only run regrename and copy
9338 propagation if optimizing.
9339
9340 2002-04-28 Jakub Jelinek <jakub@redhat.com>
9341
9342 PR optimization/6475
9343 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
9344 register of REGNO_DECL (i).
9345 * Makefile.in (reload1.o): Add $(TREE_H).
9346
9347 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
9348
9349 * cppexp.c (lex): Update to use state.skip_eval.
9350 (struct op): Remove prio and flags members.
9351 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
9352 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
9353 (LEFT_ASSOC): New macro.
9354 (optab): New table of operator priorities and flags.
9355 (SHIFT): Update.
9356 (_cpp_parse_expr): Clean up logic. Return bool. Use a
9357 malloc-ed parser stack.
9358 (reduce): New; reduce the operator stack.
9359 (_cpp_expand_op_stack): Expand the operator stack as necessary.
9360 * cpphash.h (struct op): Predeclare.
9361 (struct cpp_reader): New members op_stack, op_limit.
9362 (struct lexer_state): New member skip_eval.
9363 (_cpp_parse_expr): Update.
9364 (_cpp_expand_op_stack): New.
9365 * cpplib.c (do_if): Update.
9366 * cppinit.c (cpp_create_reader): Create op stack.
9367 (cpp_destroy): And destroy it.
9368 * cpplib.h (CPP_LAST_CPP_OP): Correct.
9369 (TTYPE_TABLE): Correct.
9370
9371 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9372
9373 PR c/6343
9374 * c-decl.c (duplicate_decls): Call merge_weak.
9375 * c-pragma.c (apply_pragma_weak): Warn about misuse.
9376 * output.h (merge_weak): Prototype merge_weak.
9377 * varasm.c (merge_weak): New function.
9378 (declare_weak): Make sure we don't give an error on VAR_DECLs.
9379 Mark RTL with SYMBOL_REF_WEAK.
9380
9381 2002-04-27 Kurt Garloff <garloff@suse.de>
9382
9383 * tree-inline.c (inlinable_function_p): Improve heuristics
9384 by using a smoother function to cut down allowable inlinable size.
9385 * param.def: Add parameters max-inline-insns-single,
9386 max-inline-slope, min-inline-insns that determine the exact
9387 shape of the above function.
9388 * param.h: Likewise.
9389
9390 2002-04-26 Richard Henderson <rth@redhat.com>
9391
9392 * c-parse.in (malloced_yyss, malloced_yyvs): New.
9393 (yyoverflow): Re-add. Set them.
9394 (free_parser_stacks): New.
9395 * c-common.h: Declare it.
9396 * c-lex.c (c_common_parse_file): Call it.
9397
9398 2002-04-26 Richard Henderson <rth@redhat.com>
9399
9400 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
9401 for fallthru search.
9402
9403 2002-04-26 Eric Christopher <echristo@redhat.com>
9404
9405 PR optimization/3700
9406 * config/mips/mips.c (mips_issue_rate): Define. New function.
9407 (TARGET_SCHED_ISSUE_RATE): Use.
9408
9409 2002-04-25 David S. Miller <davem@redhat.com>
9410
9411 PR target/6422
9412 * reorg.c (optimize_skip): Do not allow exception causing
9413 instructions to be considered for delay slots.
9414 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
9415 (relax_delay_slots): Do not try to consider exception causing
9416 instructions as redundant.
9417
9418 2002-04-26 Richard Henderson <rth@redhat.com>
9419
9420 PR c/5225
9421 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
9422
9423 2002-04-26 Mark Mitchell <mark@codesourcery.com>
9424
9425 PR bootstrap/6445
9426 * config/i386/i386.md (untyped_call): Return the value in a float
9427 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
9428 TARGET_80387.
9429
9430 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
9431
9432 * tree.c (tree_int_cst_lt): Compare constants whose types differ
9433 in unsigned-ness correctly.
9434
9435 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
9436
9437 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
9438 portable runtime model.
9439
9440 2002-04-26 Richard Henderson <rth@redhat.com>
9441
9442 * c-parse.in (yyoverflow): Revert.
9443
9444 2002-04-26 David Edelsohn <edelsohn@gnu.org>
9445 Richard Henderson <rth@redhat.com>
9446
9447 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
9448 result as temporary value.
9449
9450 2002-04-26 Richard Henderson <rth@redhat.com>
9451
9452 PR c/3581
9453 * c-common.c (fix_string_type): Split out of ...
9454 (combine_strings): ... here. Take a varray, not a tree list.
9455 (c_expand_builtin_printf): Use fix_string_type.
9456 * c-common.h: Update decls.
9457 * c-parse.in (string): Remove. Update all uses to use STRING
9458 instead, and not call combine_strings.
9459 (yylexstring): New.
9460 (_yylex): Use it.
9461 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
9462 (build_asm_stmt): Likewise.
9463 * objc/objc-act.c (my_build_string): Use fix_string_type.
9464 (build_objc_string_object): Build varray for combine_strings.
9465
9466 2002-04-26 Bo Thorsen <bo@suse.co.uk>
9467
9468 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
9469 x86-64.
9470
9471 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
9472
9473 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
9474 (HAVE_NO_R_OPERAND): Remove.
9475 (HAVE_VALUE): Remove.
9476 (op_to_prio): Update.
9477 (UNARY): Don't alter flags.
9478 (_cpp_parse_expr): want_value used to indicate whether
9479 a number or unary operator is expected next. Distinguish
9480 unary and binary +/-.
9481 (op_as_text): Update for unary operators.
9482
9483 2002-04-25 Richard Henderson <rth@redhat.com>
9484
9485 PR c/2161
9486 * c-parse.in (yyoverflow): New.
9487
9488 2002-04-25 Richard Henderson <rth@redhat.com>
9489
9490 PR c/2098
9491 * c-common.c (shorten_compare): Simplfy conditions leading to
9492 the generation of a warning.
9493
9494 2002-04-25 Richard Henderson <rth@redhat.com>
9495
9496 PR c/2035
9497 * expmed.c (extract_bit_field): Fall through to generic code rather
9498 than aborting on subreg special case.
9499
9500 2002-04-25 David S. Miller <davem@redhat.com>
9501
9502 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
9503 for DECL being NULL.
9504
9505 2002-04-25 Steve Christiansen <smc@us.ibm.com>
9506
9507 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
9508
9509 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
9510
9511 * c-decl.c (grokdeclarator): Remove outdated ??? note
9512 on invalid declaration of flexible array members.
9513
9514 2002-04-25 Richard Henderson <rth@redhat.com>
9515
9516 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
9517
9518 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
9519
9520 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
9521 needed by the compiler, even if they are used as global regs.
9522
9523 2002-04-25 Matt Hiller <hiller@redhat.com>
9524
9525 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
9526 functions.
9527 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
9528 of the corresponding functions.
9529 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
9530 New prototypes.
9531
9532 2002-04-25 Matt Hiller <hiller@redhat.com>
9533
9534 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
9535
9536 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
9537 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
9538 registers, adjust comment accordingly.
9539 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
9540 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
9541 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
9542 for coprocessor registers.
9543 (ADDITIONAL_REGISTER_NAMES): Include
9544 ALL_COP_ADDITIONAL_REGISTER_NAMES.
9545
9546 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
9547 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
9548 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
9549 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
9550 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
9551
9552 (mips_char_to_class): Adjust comment to include coprocessor
9553 constraint letters.
9554
9555 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
9556 New functions.
9557 (mips_reg_names, mips_regno_to_class): Include coprocessor
9558 information.
9559 (mips_sw_reg_names): Ditto, make non-static.
9560 (mips_move_1word): Handle moves to and from coprocessor registers.
9561 (mips_move_2words): Handle moves to and from coprocessor
9562 registers.
9563 (mips_class_max_nregs, mips_register_move_cost): Handle
9564 coprocessor register classes.
9565 (override_options): Initialize mips_char_to_class and
9566 mips_hard_regno_mode_ok properly for coprocessor registers.
9567
9568 * config/mips/mips.md (movdi_internal, movdi_internal2,
9569 movsi_internal1, movsi_internal2): Add constraint-sets for
9570 coprocessor registers.
9571 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
9572 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
9573 isn't mips.
9574 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
9575 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
9576 isn't mips.
9577 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
9578 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
9579 isn't mips.
9580 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
9581 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
9582 isn't mips.
9583
9584 * doc/tm.texi: Document feature.
9585
9586 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
9587
9588 * integrate.c (function_attribute_inlinable_p): Simplify.
9589 Check the table pointer is not NULL.
9590
9591 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
9592
9593 * doc/c-tree.texi: Fix typo in introduction.
9594
9595 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
9596
9597 * c-common.h (c_common_parse_file): Update.
9598 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
9599 * c-lex.c (YYDEBUG): Get from c-lex.h.
9600 (c_common_parse_file): Update.
9601 * c-lex.h (YYDEBUG, yydebug): New.
9602 * c-parse.in (YYDEBUG): Get from c-lex.h.
9603 (c_set_yydebug): Remove.
9604 * c-tree.h (c_set_yydebug): Remove.
9605 * langhooks-def.h (lhd_do_nothing_i): New.
9606 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
9607 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
9608 * langhooks.c (lhd_do_nothing_i): New.
9609 (lhd_set_yydebug): Remove.
9610 * langhooks.h (struct lang_hooks): Update.
9611 * toplev.c (set_yydebug): New.
9612 (compile_file): Update call to parse_file hook.
9613 (decode_d_option): Update.
9614 objc:
9615 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
9616
9617 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
9618
9619 * loop.c (load_mems): Don't change the interface of called functions.
9620
9621 * calls.c (expand_call): Take current_function_pretend_args_size
9622 into account when setting argblock for sibcalls.
9623
9624 2002-04-24 Matt Hiller <hiller@redhat.com>
9625
9626 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
9627 * c-lex.c: Ditto.
9628
9629 * cpplex.c (skip_line_comment): Process comment one multibyte
9630 character at a time rather than one char at a time, if
9631 appropriate.
9632 (parse_string): Process string one multibyte character at a time
9633 rather than one char at a time, if appropriate.
9634 * c-lex.c (lex_string): Lex and copy multibyte strings
9635 appropriately.
9636 * cpplib.h (cppchar_t): Change to unsigned.
9637
9638 2002-04-24 Richard Henderson <rth@redhat.com>
9639
9640 PR c/3467
9641 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
9642 for c99.
9643
9644 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
9645
9646 * sh.c (sh_va_arg): If argument was passed by reference,
9647 dereference the pointer.
9648
9649 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9650
9651 * sh.md (divsi3_i4_media): Use match_operand for input values
9652 rather than hard registers.
9653 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
9654 unnecessarily through hard registers. Keep copies of pseudo
9655 registers outside of the libcall sequence.
9656
9657 * sh.md (casesi_shift_media): Add modes.
9658
9659 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
9660 values in memory.
9661
9662 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
9663
9664 * attribs.c (c_common_attribute_table): Move table and handlers
9665 to c-common.c.
9666 (format_attribute_table, lang_attribute_table,
9667 lang_attribute_common): Remove.
9668 (init_attributes): Replace NULL pointers with pointers to the
9669 empty table.
9670 (handle_packed_attribute, handle_nocommon_attribute,
9671 handle_common_attribute, handle_noreturn_attribute,
9672 handle_noinline_attribute, handle_always_inline_attribute,
9673 handle_used_attribute, handle_unused_attribute,
9674 handle_const_attribute, handle_transparent_union_attribute,
9675 handle_constructor_attribute, handle_destructor_attribute,
9676 handle_mode_attribute, handle_section_attribute,
9677 handle_aligned_attribute, handle_weak_attribute,
9678 handle_alias_attribute, handle_visibility_attribute,
9679 handle_no_instrument_function_attribute, handle_malloc_attribute,
9680 handle_no_limit_stack_attribute, handle_pure_attribute,
9681 handle_deprecated_attribute, handle_vector_size_attribute,
9682 vector_size_helper): Move to c-common.c.
9683 * c-common.c (c_common_attribute_table,
9684 handle_packed_attribute, handle_nocommon_attribute,
9685 handle_common_attribute, handle_noreturn_attribute,
9686 handle_noinline_attribute, handle_always_inline_attribute,
9687 handle_used_attribute, handle_unused_attribute,
9688 handle_const_attribute, handle_transparent_union_attribute,
9689 handle_constructor_attribute, handle_destructor_attribute,
9690 handle_mode_attribute, handle_section_attribute,
9691 handle_aligned_attribute, handle_weak_attribute,
9692 handle_alias_attribute, handle_visibility_attribute,
9693 handle_no_instrument_function_attribute, handle_malloc_attribute,
9694 handle_no_limit_stack_attribute, handle_pure_attribute,
9695 handle_deprecated_attribute, handle_vector_size_attribute,
9696 vector_size_helper): Move from attribs.c.
9697 * c-common.h (c_common_attribute_table,
9698 c_common_format_attribute_table): New.
9699 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
9700 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
9701 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
9702 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
9703 (LANG_HOOKS_INITIALIZER): Update.
9704 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
9705 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
9706 * target.h: Update comment.
9707 * tree.c (default_target_attribute_table): Remove.
9708 * tree.h (default_target_attribute_table, format_attribute_table,
9709 lang_attribute_table, lang_attribute_common): Remove.
9710 objc:
9711 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
9712 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
9713
9714 2002-04-24 Jason Merrill <jason@redhat.com>
9715
9716 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
9717 * dwarf2out.c (dwarf_attr_name): Support it.
9718 (gen_array_type_die): Emit it.
9719 (lookup_type_die): No special handling for VECTOR_TYPE.
9720 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
9721
9722 2002-04-24 Richard Henderson <rth@redhat.com>
9723
9724 * config/mips/mips.md (movdi_usd): Renumber.
9725
9726 2002-04-24 David S. Miller <davem@redhat.com>
9727
9728 PR target/6420
9729 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
9730 32-bit Sparc and current_function_returns_struct is true.
9731
9732 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
9733
9734 * loop.c (canonicalize_condition): Use gen_int_mode.
9735
9736 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
9737
9738 * config/rs6000/altivec.h: Cleanup file. Add non individual
9739 variants.
9740 (vec_vaddubm): New.
9741 (vec_vadduhm): New.
9742 (vec_vadduwm): New.
9743 (vec_vaddfp): New.
9744 (vec_vaddcuw): New.
9745 (vec_vaddubs): New.
9746 (vec_vaddsbs): New.
9747 (vec_vadduhs): New.
9748 (vec_vadduws): New.
9749 (vec_vaddsws): New.
9750 (vec_vand): New.
9751 (vec_vandc): New.
9752 (vec_vavgub): New.
9753 (vec_vavgsb): New.
9754 (vec_vavguh): New.
9755 (vec_vavgsh): New.
9756 (vec_vavguw): New.
9757 (vec_vavgsw): New.
9758 (vec_vrfip): New.
9759 (vec_vcmpbfp): New.
9760 (vec_vcmpequb): New.
9761 (vec_vcmpequh): New.
9762 (vec_vcmpequw): New.
9763 (vec_vcmpeqfp): New.
9764 (vec_vcmpgefp): New.
9765 (vec_vcmpgtub): New.
9766 (vec_vcmpgtsb): New.
9767 (vec_vcmpgtuh): New.
9768 (vec_vcmpgtsh): New.
9769 (vec_vcmpgtuw): New.
9770 (vec_vcmpgtsw): New.
9771 (vec_vcmpgtfp): New.
9772 (vec_vcmpgefp): New.
9773 (vec_vcfux): New.
9774 (vec_vcfsx): New.
9775 (vec_vctsxs): New.
9776 (vec_vctuxs): New.
9777 (vec_vexptefp): New.
9778 (vec_vrfim): New.
9779 (vec_lvx): New.
9780 (vec_lvebx): New.
9781 (vec_lvehx): New.
9782 (vec_lde): Add vector float variant.
9783 (vec_lvewx): New.
9784 (vec_lvxl): New.
9785 (vec_vlogefp): New.
9786 (vec_vmaddfp): New.
9787 (vec_vmhaddshs): New.
9788 (vec_vmaxub): New.
9789 (vec_vmaxsb): New.
9790 (vec_vmaxuh): New.
9791 (vec_vmaxsh): New.
9792 (vec_vmaxuw): New.
9793 (vec_vmaxsw): New.
9794 (vec_vmaxsw): New.
9795 (vec_vmaxfp): New.
9796 (vec_vmrghb): New.
9797 (vec_vmrghh): New.
9798 (vec_vmrghw): New.
9799 (vec_vmrglb): New.
9800 (vec_vmrglh): New.
9801 (vec_vmrglw): New.
9802 (vec_vminub): New.
9803 (vec_vminsb): New.
9804 (vec_vminuh): New.
9805 (vec_vminsh): New.
9806 (vec_vminuw): New.
9807 (vec_vminsw): New.
9808 (vec_vminfp): New.
9809 (vec_vmladduhm): New.
9810 (vec_vmhraddshs): New.
9811 (vec_msumubm): New.
9812 (vec_vmsummbm): New.
9813 (vec_vmsumuhm): New.
9814 (vec_vmsumshm): New.
9815 (vec_vmsumuhs): New.
9816 (vec_vmsumshs): New.
9817 (vec_vmuleub): New.
9818 (vec_vmulesb): New.
9819 (vec_vmuleuh): New.
9820 (vec_vmulesh): New.
9821 (vec_vmuloub): New.
9822 (vec_mulosb): New.
9823 (vec_vmulouh): New.
9824 (vec_vmulosh): New.
9825 (vec_vnmsubfp): New.
9826 (vec_vnor): New.
9827 (vec_vor): New.
9828 (vec_vpkuhum): New.
9829 (vec_vpkuwum): New.
9830 (vec_vpkpx): New.
9831 (vec_vpkuhus): New.
9832 (vec_vpkshss): New.
9833 (vec_vpkuwus): New.
9834 (vec_vpkswss): New.
9835 (vec_vpkshus): New.
9836 (vec_vpkswus): New.
9837 (vec_vperm): New.
9838 (vec_vrefp): New.
9839 (vec_vrlb): New.
9840 (vec_vrlh): New.
9841 (vec_vrlw): New.
9842 (vec_vrfin): New.
9843 (vec_vrsqrtefp): New.
9844 (vec_vsel): New.
9845 (vec_vslb): New.
9846 (vec_vslh): New.
9847 (vec_vslw): New.
9848 (vec_vsldoi): New.
9849 (vec_vsl): New.
9850 (vec_vslo): New.
9851 (vec_vspltb): New.
9852 (vec_vsplth): New.
9853 (vec_vspltw): New.
9854 (vec_vspltisb): New.
9855 (vec_vspltish): New.
9856 (vec_vspltisw): New.
9857 (vec_vsrb): New.
9858 (vec_vsrh): New.
9859 (vec_vsrw): New.
9860 (vec_vsrab): New.
9861 (vec_vsrah): New.
9862 (vec_vsraw): New.
9863 (vec_vsr): New.
9864 (vec_vsro): New.
9865 (vec_stvx): New.
9866 (vec_stvebx): New.
9867 (vec_stvehx): New.
9868 (vec_stvewx): New.
9869 (vec_stvxl): New.
9870 (vec_vsububm): New.
9871 (vec_vsubuhm): New.
9872 (vec_vsubuwm): New.
9873 (vec_vsubfp): New.
9874 (vec_vsubcuw): New.
9875 (vec_vsububs): New.
9876 (vec_vsubsbs): New.
9877 (vec_vsubuhs): New.
9878 (vec_vsubshs): New.
9879 (vec_vsubuws): New.
9880 (vec_vsubsws): New.
9881 (vec_vsum4ubs): New.
9882 (vec_vsum4sbs): New.
9883 (vec_vsum4shs): New.
9884 (vec_vsum2sws): New.
9885 (vec_vsumsws): New.
9886 (vec_vrfiz): New.
9887 (vec_vupkhsb): New.
9888 (vec_vupkhpx): New.
9889 (vec_vupkhsh): New.
9890 (vec_vupklsb): New.
9891 (vec_vupklpx): New.
9892 (vec_vupklsh): New.
9893 (vec_vxor): New.
9894
9895 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
9896
9897 PR c/5430
9898 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
9899 added literals from substracted literals.
9900 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
9901 (fold) [associate]: Preserve MINUS_EXPR if needed.
9902
9903 2002-04-23 Zack Weinberg <zack@codesourcery.com>
9904
9905 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
9906 are obsoleted.
9907
9908 2002-04-23 Tom Tromey <tromey@redhat.com>
9909
9910 * gcc.c: Added --resource. For PR java/6314.
9911
9912 2002-04-23 David O'Brien <obrien@FreeBSD.org>
9913
9914 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
9915 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
9916 these libraries.
9917
9918 2002-04-23 David O'Brien <obrien@FreeBSD.org>
9919
9920 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
9921
9922 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
9923
9924 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
9925 workaround.
9926 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
9927 (ix86_expand_clrstr): Fix typo.
9928 * loop.c (gen_load_of_final_value): New.
9929 (loop_givs_rescan, strength_reduce, check_dbra_loop):
9930 Use it.
9931
9932 2002-04-23 Roger Sayle <roger@eyesopen.com>
9933
9934 * builtins.c (builtin_memset_gen_str): New function.
9935 (expand_builtin_memset): Optimize the case of constant length, but
9936 unknown value.
9937
9938 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
9939
9940 * config/rs6000/altivec.h (vec_step): Remove extraneous
9941 parentheses.
9942 (vec_ctu): Cast return.
9943
9944 2002-04-23 Alan Modra <amodra@bigpond.net.au>
9945
9946 PR target/6413
9947 * function.h: (struct function): Add profile_label_no field.
9948 (current_function_profile_label_no): Define.
9949 * function.c: (profile_label_no): New static var.
9950 (expand_function_start): Increment it, and copy to
9951 current_function_profile_label_no.
9952 * output.h (profile_label_no): Delete.
9953 * final.c (profile_label_no): Delete.
9954 (profile_function): Use current_function_profile_label_no.
9955 (final_end_function): Don't increment profile_label_no here.
9956 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
9957 profile_label_no with current_function_profile_label_no.
9958 * config/pa/pa.c (current_function_number): Delete.
9959 (pa_output_function_prologue): Don't output profile label here.
9960 (hppa_profile_hook): Use label_no param rather than
9961 current_function_number.
9962 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
9963 * config/pa/pa.h: .. here.
9964 (FUNCTION_PROFILER): Output profile label here.
9965
9966 2002-04-22 Eric Christopher <echristo@redhat.com>
9967
9968 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
9969 patch of 2002-04-09 due to binutils issues.
9970 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
9971
9972 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
9973
9974 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
9975 constraint to 'o' for m=r and r=m alternatives.
9976 ("*movv8hi_internal1"): Same.
9977 ("*movv16qi_internal1"): Same.
9978 ("*movv4sf_internal1"): Same.
9979
9980 2002-04-22 Janis Johnson <janis187@us.ibm.com>
9981
9982 * rtl.h (RTX_FLAG): New macro.
9983 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
9984 * final.c (alter_subreg): Use macro to access rtx flag.
9985 * integrate.c (copy_rtx_and_substitute): Use new access macro.
9986 * print-rtl.c (print_rtx): Use new access macro.
9987
9988 * cse.c (insert): Check rtx code before accessing flag.
9989
9990 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
9991 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
9992 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
9993 convert_const_symbol_ref, make_canonical, make_alternative_compare,
9994 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
9995 simplify_test_exp, optimize_attrs, simplify_by_exploding,
9996 find_and_mark_used_attributes, unmark_used_attributes,
9997 add_values_to_cover, simplify_with_current_value,
9998 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
9999 copy_rtx_unchanging, main): Use new access macros.
10000
10001 2002-04-22 Tom Rix <trix@redhat.com>
10002
10003 * expmed.c (init_expmed): Generate shifted constant once.
10004
10005 2002-04-22 Zack Weinberg <zack@codesourcery.com>
10006
10007 * c-lex.c (lex_charconst): Call convert to get constant in
10008 proper type; don't just smash the type field.
10009 Fixes PR c/6300.
10010
10011 * config.gcc: Add list of obsolete configurations. Disallow
10012 building these without --enable-obsolete.
10013 * doc/install.texi: Document --enable-obsolete and obsoletion
10014 policy. Mention obsoletion of individual targets in
10015 appropriate places.
10016
10017 2002-04-22 Richard Henderson <rth@redhat.com>
10018
10019 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
10020
10021 2002-04-22 Mark Mitchell <mark@codesourcery.com>
10022
10023 PR f/6138.
10024 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
10025 (walk_fixup_memory_subreg): Likewise.
10026 (fixup_var_refs_insn): Adjust accordingly.
10027 (fixup_var_refs_1): Likewise.
10028
10029 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
10030
10031 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
10032 LIBPATH_ARCH64_SPEC): Define.
10033 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
10034 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
10035 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
10036 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
10037
10038 2002-04-22 Joel Sherrill <joel@OARcorp.com>
10039
10040 * gthr-rtems.h: Correct prototypes to remove warnings.
10041
10042 2002-04-22 Richard Henderson <rth@redhat.com>
10043
10044 PR c/6344
10045 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
10046
10047 * gcse.c (free_insn_expr_list_list): New.
10048 (clear_modify_mem_tables): Use it. Fix bit set usage.
10049 (canon_list_insert): Use EXPR_LISTs for expressions.
10050 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
10051
10052 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
10053
10054 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
10055 file change and include code to _cpp_pop_buffer.
10056 * cpphash.h (struct pending_option): Predeclare.
10057 (struct cpp_reader): New member next_include_file.
10058 (_cpp_pop_file_buffer): Update.
10059 (_cpp_push_next_buffer): Update, rename.
10060 * cppinit.c (cpp_destroy): Free include chain and pending here.
10061 (cpp_finish_options): Simplify.
10062 (_cpp_push_next_buffer): Rename and clean up.
10063 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
10064 Clarify.
10065 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
10066
10067 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
10068
10069 * config/rs6000/altivec.h (vec_xor): Add variant for both args
10070 being vector signed int.
10071 (vec_andc): Same.
10072 (vec_xor): Add variant for both args being vector signed char.
10073 Remove redundant variant.
10074 (vec_andc): Same.
10075
10076 2002-04-21 David S. Miller <davem@redhat.com>
10077
10078 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
10079 compare mode in output RTL.
10080
10081 2002-04-22 David Edelsohn <edelsohn@gnu.org>
10082
10083 * config/rs6000/rs6000.c (rs6000_override_options): Correct
10084 style and formatting of previous patch.
10085
10086 2002-04-22 Alan Modra <amodra@bigpond.net.au>
10087
10088 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
10089 flag_pic for ABI_AIX.
10090
10091 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
10092
10093 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
10094 * cppfiles.c (read_include_file): Similarly.
10095 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
10096 uxstrdup ustrchr, ufputs): Similarly.
10097 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
10098 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
10099 cpp_ideq, parse_identifier, parse_number): Similarly.
10100 * cpplib.c (struct directive, dequote_string, D, run_directive,
10101 cpp_push_buffer): Similarly.
10102 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
10103 _cpp_create_definition, check_trad_stringification,
10104 cpp_macro_definition): Similarly.
10105
10106 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
10107
10108 * cppmacro.c (funlike_invocation_p): Don't step back
10109 over CPP_EOF.
10110
10111 2002-04-21 David Edelsohn <edelsohn@gnu.org>
10112
10113 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
10114 labelno.
10115
10116 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
10117
10118 * doc/invoke.texi: Remove Chill references.
10119 * doc/gcc.texi: Update last modified date.
10120
10121 2002-04-20 Kazu Hirata <kazu@hxi.com>
10122
10123 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
10124 push and pop. Replace add.l with add.w.
10125
10126 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
10127
10128 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
10129 multiply instructions for H8/300H case.
10130
10131 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
10132
10133 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
10134 Bum three instructions from each routine.
10135
10136 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
10137
10138 * Makefile.in: Update.
10139 * decl.c (push_c_function_context, pop_c_function_context,
10140 mark_c_function_context): Rename for consistency.
10141 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
10142 * c-tree.h (push_c_function_context, pop_c_function_context,
10143 mark_c_function_context): Rename for consistency.
10144 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10145 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10146 * function.c (init_lang_status, save_lang_status,
10147 restore_lang_status, mark_lang_status, free_lang_status):
10148 Move to langhooks.h.
10149 (push_function_context_to, pop_function_context_from,
10150 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
10151 Update.
10152 * function.h (init_lang_status, save_lang_status,
10153 restore_lang_status, mark_lang_status, free_lang_status):
10154 Move to langhooks.h.
10155 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
10156 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
10157 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
10158 LANG_HOOKS_FUNCTION_INITIALIZER): New.
10159 (LANG_HOOKS_INITIALIZER): Update.
10160 (lhd_do_nothing_f): New.
10161 * langhooks.h (struct lang_hooks_for_functions): New.
10162 (struct lang_hooks): New hooks.
10163 * langhooks.c (lhd_do_nothing_f): New.
10164 objc:
10165 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10166 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10167
10168 2002-04-19 David S. Miller <davem@redhat.com>
10169
10170 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
10171 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
10172
10173 2002-04-19 Jakub Jelinek <jakub@redhat.com>
10174
10175 PR optimization/3756
10176 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
10177 x = ((int) y < 0) ? cst1 : cst2.
10178
10179 2002-04-19 Jakub Jelinek <jakub@redhat.com>
10180
10181 PR c/6358
10182 * function.c: Reapply patch for c/6358.
10183 (expand_function_end): Copy decl_rtl's mode, not
10184 current_function_return_rtx mode.
10185
10186 2002-04-19 Joel Sherrill <joel@OARcorp.com>
10187
10188 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
10189 targets.
10190
10191 2002-04-19 Tom Tromey <tromey@redhat.com>
10192
10193 * doc/install.texi (Specific): Update status of Solaris 2.8.
10194 For PR libgcj/6158.
10195
10196 2002-04-19 Andreas Schwab <schwab@suse.de>
10197
10198 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
10199 (PUT_REAL): Restore old definition.
10200
10201 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
10202 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10203
10204 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
10205 binutils 2.11.2 and higher generate smaller binaries than Sun's
10206 native tools.
10207
10208 2002-04-19 Mark Mitchell <mark@codesourcery.com>
10209
10210 PR c++/6352
10211 * toplev.c (rest_of_compilation): Do not defer functions for which
10212 TREE_SYMBOL_REFERENCED has already been set.
10213
10214 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
10215
10216 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
10217 alternative.
10218
10219 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
10220
10221 * builtins.c: Include langhooks.h.
10222 (lang_type_promotes_to): Remove.
10223 (expand_builtin_va_arg): Use new hook.
10224 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
10225 (simple_type_promotes_to): Move to c-typeck.c.
10226 * c-common.h (simple_type_promotes_to): Remove.
10227 * c-decl.c (duplicate_decls, grokdeclarator): Update.
10228 * c-format.c: Include langhooks.h.
10229 (check_format_types): Update.
10230 * c-tree.h (c_type_promotes_to): New.
10231 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
10232 (type_lists_compatible_p): Update.
10233 * langhooks-def.h (lhd_type_promotes_to): New.
10234 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
10235 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10236 * langhooks.c (lhd_type_promotes_to): New.
10237 * langhooks.h (struct lang_hooks_for_types): New hook.
10238 * tree.h (lang_type_promotes_to): Remove.
10239 objc:
10240 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
10241
10242 2002-04-18 Richard Henderson <rth@redhat.com>
10243
10244 * function.c: Revert patch for c/6358.
10245
10246 2002-04-18 Richard Henderson <rth@redhat.com>
10247
10248 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
10249 blocks. Handle multiple references to the TRAP block. Handle
10250 non-adjacent THEN and OTHER blocks.
10251
10252 2002-04-18 Richard Henderson <rth@redhat.com>
10253
10254 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
10255 crash with no type for by-mode libcalls.
10256
10257 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
10258
10259 2002-04-18 Bob Wilson <bob.wilson@acm.org>
10260
10261 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
10262 __xtensa_nonlocal_goto): Use a syscall instructions to flush
10263 the register windows.
10264
10265 2002-04-18 Zack Weinberg <zack@codesourcery.com>
10266
10267 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
10268 appropriate. Document need for extended precision even when
10269 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
10270 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
10271 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
10272 instead of relying on later syntax error when REAL_WIDTH > 5.
10273 * real.c: Define NE based only on whether or not we have a
10274 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
10275 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
10276 define GET_REAL and PUT_REAL as simple memcpy operations; no
10277 need to byteswap or round.
10278 Use #error instead of #ifdef-ing out the entire file, for
10279 prompt error detection.
10280
10281 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
10282
10283 2002-04-18 David S. Miller <davem@redhat.com>
10284
10285 * config/sparc/sparc.h (BRANCH_COST): Define.
10286
10287 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
10288 does it.
10289
10290 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
10291
10292 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
10293 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
10294 propagate_block calls after relaxation loop using new variable
10295 stabilized_prop_flags.
10296
10297 2002-04-18 Richard Henderson <rth@redhat.com>
10298
10299 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
10300 (ia64_va_arg): Expect variable sized types by reference.
10301 * config/ia64/ia64-protos.h: Update.
10302 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
10303 ia64_function_arg_pass_by_reference.
10304
10305 2002-04-18 Richard Henderson <rth@redhat.com>
10306
10307 * ifcvt.c: Include except.h.
10308 (block_has_only_trap): Break out from find_cond_trap.
10309 (find_cond_trap): Use it. Always delete the trap block.
10310 (merge_if_block): Allow then block null. Be less simplistic about
10311 what insns can end a block.
10312 * Makefile.in (ifcvt.o): Depend on except.h.
10313
10314 * config/ia64/ia64.md (trap, conditional_trap): New.
10315
10316 2002-04-18 Jakub Jelinek <jakub@redhat.com>
10317
10318 PR c/6358
10319 * function.c (assign_parms): Assign hard current_function_return_rtx
10320 register here...
10321 (expand_function_end): ...not here.
10322
10323 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
10324
10325 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10326 * c-tree.h (c_incomplete_type_error): New.
10327 * c-typeck.c (require_complete_type, build_component_ref): Update.
10328 (incomplete_type_error): Rename.
10329 * langhooks-def.h (lhd_incomplete_type_error): New.
10330 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
10331 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10332 * langhooks.c (lhd_incomplete_type_error): New.
10333 * langhooks.h (struct lang_hooks_for_types): New hook.
10334 * tree.c (size_in_bytes): Use new hook.
10335 * tree.h (incomplete_type_error): Remove.
10336 objc:
10337 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10338
10339 2002-04-18 Zack Weinberg <zack@codesourcery.com>
10340
10341 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
10342 TARGET_FLOAT_FORMAT blocks.
10343
10344 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10345
10346 * doc/install.texi (Downloading the source): Do not mention Chill
10347 any longer, but mention Ada.
10348 (Configuration): Do not mention Chill any longer.
10349
10350 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
10351
10352 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
10353
10354 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
10355
10356 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
10357 in last patch.
10358
10359 2002-04-18 Jakub Jelinek <jakub@redhat.com>
10360
10361 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
10362 instead of unsigned_type.
10363
10364 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
10365
10366 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
10367 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
10368 later.
10369
10370 2002-04-18 Bernd Schmidt <bernds@redhat.com>
10371
10372 * attribs.c (vector_type_node_list): New static variable.
10373 (handle_vector_size_attribute): Use it to avoid generating a
10374 new type node each time we are called.
10375
10376 * combine.c (subst): Avoid trying to make a vector mode subreg of
10377 an integer constant.
10378 (gen_lowpart_for_combine): Likewise.
10379
10380 2002-04-18 Roger Sayle <roger@eyesopen.com>
10381 Jakub Jelinek <jakub@redhat.com>
10382
10383 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
10384 for integer constant c (if x has unsigned type or sign bit is not
10385 set in c). This folds the zero/sign extension into the bit-wise and
10386 operation.
10387
10388 2002-04-18 Jakub Jelinek <jakub@redhat.com>
10389
10390 PR middle-end/6205
10391 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
10392 otherwise xorps.
10393
10394 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
10395
10396 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
10397
10398 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
10399
10400 * gcc.c (read_specs): Detect and fail if an attempt is made to
10401 rename a spec string to an already existing string.
10402
10403 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
10404
10405 * config/s390/s390.c (legitimize_pic_address): Do not generate
10406 illegal address constant without CONST.
10407
10408 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10409
10410 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
10411 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10412
10413 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
10414
10415 PR optimization/6305
10416 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
10417 to make sure previous reloads are taken into account. Generate
10418 better code if one operand is an in-range immediate constant.
10419
10420 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
10421
10422 * doc/install.texi (Building): libgcj requires GNU make.
10423
10424 2002-04-17 Jakub Jelinek <jakub@redhat.com>
10425
10426 PR bootstrap/6315
10427 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
10428 even if hard quad and register is not floating.
10429 (movtf reg<-mem split): Disallow splitting if hard quad and
10430 register is floating.
10431 (movtf mem<-reg split): Likewise.
10432 * config/sparc/sparc.c (fp_register_operand): New predicate.
10433 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
10434
10435 2002-04-17 Zack Weinberg <zack@codesourcery.com>
10436
10437 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
10438 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
10439 (unprotoize.o): Ditto. Build from protoize.c. Define
10440 UNPROTOIZE on command line.
10441 * protoize.c: Include cppdefault.h. Delete include_defaults.
10442 (in_system_include_dir): Use cpp_include_defaults (defined in
10443 cppdefault.o).
10444 * unprotoize.c: Delete file.
10445
10446 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
10447
10448 * config/rs6000/altivec.h (vec_ld): Add array variants.
10449 (vec_lde): Same.
10450 (vec_ldl): Same.
10451
10452 2002-04-17 Alan Matsuoka <alanm@redhat.com>
10453 Aldy Hernandez <aldyh@redhat.com>
10454
10455 * config/rs6000/altivec.h: Define __ALTIVEC__.
10456 (bool): New.
10457 (__pixel): New.
10458 (pixel): New.
10459 (vec_cfux): New.
10460 (vec_vmaddfp): New.
10461 (vec_vsldoi): New.
10462 Add parentheses to all macro arguments.
10463
10464 2002-04-16 Richard Henderson <rth@redhat.com>
10465
10466 PR c++/6320
10467 * except.c (remove_eh_handler): Insert inner regions at beginning
10468 of sibling chain. Refactor expressions.
10469
10470 2002-04-16 Richard Henderson <rth@redhat.com>
10471
10472 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
10473 * config/sparc/sol2-gas-bi.h: New file.
10474 * config.gcc (sparc*-solaris): Add it as needed.
10475 * configure.in (AS_SPARC64_FLAG): Remove check.
10476 * config.in, configure: Regenerate.
10477
10478 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
10479
10480 2002-04-16 Richard Henderson <rth@redhat.com>
10481
10482 * config/mips/mips.c (override_options): Don't override N32 for
10483 a 64-bit ISA.
10484
10485 PR 6202
10486 * config/mips/mips.md (can_delay): Split out of existing define_delays.
10487 (HILO_delay): Set can_delay false.
10488
10489 2002-04-16 Dale Johannesen <dalej@apple.com>
10490
10491 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
10492 instruction addresses.
10493 (rs6000_output_function_epilogue): Likewise.
10494
10495 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
10496
10497 * c-parse.in (poplevel, compstmt_start,
10498 compstmt_primary_start): Add ending ';', in accordance
10499 with POSIX.
10500
10501 2002-04-16 Richard Henderson <rth@redhat.com>
10502
10503 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
10504 Adjust tm_file order to get TARGET_DEFAULT set properly.
10505 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
10506 * doc/install.texi (sparc-solaris): Update.
10507
10508 2002-04-16 Dale Johannesen <dalej@apple.com>
10509
10510 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
10511 comparison operands do not match each other or if modes of
10512 conditions do not match result.
10513
10514 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
10515
10516 PR target/6305
10517 * config/s390/s390.md (mulsidi3): Set both subregs of the
10518 multiword register.
10519
10520 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
10521
10522 * config/rs6000/altivec.h (vec_addc): Type check.
10523
10524 2002-04-16 Jakub Jelinek <jakub@redhat.com>
10525
10526 PR middle-end/6279
10527 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
10528
10529 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
10530
10531 2002-04-15 Richard Henderson <rth@redhat.com>
10532
10533 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
10534 call_really_used_regs too.
10535
10536 2002-04-15 Richard Henderson <rth@redhat.com>
10537
10538 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
10539
10540 2002-04-15 David S. Miller <davem@redhat.com>
10541
10542 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
10543 as being CLOBBERed.
10544
10545 2002-04-16 Jakub Jelinek <jakub@redhat.com>
10546
10547 PR c/6290
10548 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
10549 CONST_VECTOR is { 0, ... 0 }.
10550
10551 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
10552
10553 * doc/install.texi (Installing GCC: Configuration): Clarify
10554 the only supported ways to configure gcc.
10555
10556 2002-04-15 Roland McGrath <roland@frob.com>
10557
10558 * config.gcc (alpha*-*-gnu*): New target configuration.
10559 * config/alpha/gnu.h: New file for it.
10560 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
10561
10562 2002-04-16 Mark Mitchell <mark@codesourcery.com>
10563
10564 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
10565 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
10566 * tree.h (expand_start_stmt_expr): Update prototype.
10567 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
10568 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
10569 on the STMT_EXPR created for the inline function.
10570
10571 2002-04-15 Richard Henderson <rth@redhat.com>
10572
10573 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
10574 config/i386/linux-aout.h, config/i386/linux-oldld.h,
10575 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
10576 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
10577 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
10578 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
10579 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
10580 Define __gnu_linux__, not gnu_linux.
10581 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
10582
10583 2002-04-15 Mark Mitchell <mark@codesourcery.com>
10584
10585 Remove Chill front end.
10586 * gcc.c (default_compilers): Remove Chill entries.
10587 * ch: Remove directory.
10588 * doc/frontends.texi: Remove information about Chill.
10589 * doc/sourcebuild.texi: Likewise.
10590 * doc/standards.texi: Likewise.
10591
10592 2002-04-15 Douglas B Rupp <rupp@gnat.com>
10593
10594 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
10595 (LONGLONG_STANDALONE): Define.
10596
10597 2002-04-15 David S. Miller <davem@redhat.com>
10598
10599 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
10600 Call emit_library_call with LCT_NORMAL.
10601 (sparc_initialize_trampoline): Use LCT_foo instead of
10602 magic constant in emit_library_call invocations.
10603 (sparc64_initialize_trampoline): Likewise.
10604 (sparc_profile_hook): Likewise.
10605 * config/sparc/sparc.md: Likewise.
10606
10607 * config/sparc/sparc.c (sparc_extra_constraint_check):
10608 Fix type of argument 'c'.
10609 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
10610 Likewise.
10611
10612 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
10613
10614 * diagnostic.h (output_buffer_state): Redefine.
10615 (output_format_decoder): New macro.
10616 (output_prefixing_rule): Likewise.
10617 (output_line_cutoff): Likewise.
10618 (diagnostic_format_decoder): Adjust.
10619 (diagnostic_prefixing_rule): Likewise.
10620 (diagnostic_line_cutoff): Likewise.
10621 (diagnostic_state): Likewise.
10622 (diagnostic_kind_count): Likewise.
10623 (diagnostic_buffer): Now a macro.
10624
10625 * diagnostic.c (diagnostic_buffer): Remove definition.
10626 (output_is_line_wrapping): Adjust.
10627 (set_real_maximum_length): Likewise.
10628 (output_set_maximum_length): Likewise.
10629 (init_output_buffer): Likewise.
10630 (lhd_print_error_function): Likewise.
10631 (output_do_verbatim): Likewise.
10632
10633 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
10634
10635 * cpperror.c (print_location): Don't print include chain
10636 if line == 0.
10637 (cpp_begin_message): Update to use DL_ macros.
10638 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
10639 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
10640 cpp_notice, cpp_notice_from_errno): Remove.
10641 (cpp_error, cpp_error_with_line): Update to take a diagnostic
10642 level.
10643 (cpp_errno): New.
10644 * cppexp.c (CPP_ICE): Remove.
10645 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
10646 lex, integer_overflow, _cpp_parse_expr): Update.
10647 * cppfiles.c (read_include_file, find_include_file,
10648 handle_missing_header, _cpp_read_file, remap_filename): Update.
10649 * cpphash.h (enum error_type): Remove.
10650 (_cpp_begin_message): Update.
10651 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
10652 cpp_handle_option, cpp_post_options): Update.
10653 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
10654 skip_whitespace, parse_identifier, parse_slow, parse_string,
10655 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
10656 cpp_interpret_charconst): Update.
10657 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
10658 lex_macro_node, do_undef, glue_header_name, parse_include,
10659 do_include_common, read_flag, do_line, do_linemarker, do_ident,
10660 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
10661 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
10662 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
10663 _cpp_pop_buffer, do_diagnostic): Update.
10664 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
10665 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
10666 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
10667 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
10668 cpp_notice, cpp_notice_from_errno): Remove.
10669 (cpp_error, cpp_error_with_line): Update to take a diagnostic
10670 level.
10671 (cpp_errno): New.
10672 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
10673 collect_args, enter_macro_context, save_parameter, parse_params,
10674 _cpp_create_definition, check_trad_stringification,
10675 cpp_macro_definition): Update.
10676 * cppmain.c (cpp_preprocess_file): Update.
10677 * fix-header.c (read_scan_file): Update.
10678
10679 2002-04-14 Andreas Schwab <schwab@suse.de>
10680
10681 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
10682
10683 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10684
10685 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
10686
10687 2002-04-13 Mark Mitchell <mark@codesourcery.com>
10688
10689 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
10690 not gnu_hurd.
10691
10692 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
10693
10694 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
10695
10696 2002-04-13 Joel Sherrill <joel@OARcorp.com>
10697
10698 * config/sparc/t-elf: Enable v8 multilibs. Impacts
10699 sparc-elf and sparc-rtems targets.
10700
10701 2002-04-13 Mark Mitchell <mark@codesourcery.com>
10702
10703 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
10704 defined, and __gnu_hurd__ wherever __GNU__ is defined.
10705 * arm/linux-elf.h: Likewise.
10706 * cris/aout.h: Likewise.
10707 * cris/linux.h: Likewise.
10708 * i370/linux.h: Likewise.
10709 * i386/gnu.h: Likewise.
10710 * i386/linux-aout.h: Likewise.
10711 * i386/linux-oldld.h: Likewise.
10712 * i386/linux.h: Likewise.
10713 * i386/linux64.h: Likewise.
10714 * ia64/linux.h: Likewise.
10715 * m68k/linux-aout.h: Likewise.
10716 * m68k/linux.h: Likewise.
10717 * mips/linux.h: Likewise.
10718 * pa/pa-linux.h: Likewise.
10719 * pj/linux.h: Likewise.
10720 * rs6000/sysv4.h: Likewise.
10721 * s390/linux.h: Likewise.
10722 * sh/linux.h: Likewise.
10723 * sparc/linux-aout.h: Likewise.
10724 * sparc/linux.h: Likewise.
10725 * sparc/linux64.h: Likewise.
10726 * xtensa/linux.h: Likewise.
10727
10728 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
10729
10730 * stmt.c (check_unique_operand_names): Expect operand names to
10731 be strings rather than identifiers. Use simple_cst_equal to
10732 compare them.
10733 (resolve_operand_name_1): Make same identifier to string change here.
10734 * c-parse.in (asm_operand): Convert a named operand into a string.
10735 * cp/parse.y (asm_operand): Likewise.
10736
10737 2002-04-13 Andreas Schwab <schwab@suse.de>
10738
10739 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
10740
10741 2002-04-12 Mark Mitchell <mark@codesourcery.com>
10742
10743 Revert these changes:
10744
10745 2002-04-06 Mark Mitchell <mark@codesourcery.com>
10746
10747 PR c++/5571
10748 * stor-layout.c (layout_decl): Reset the RTL for the decl.
10749
10750 2002-04-12 Richard Henderson <rth@redhat.com>
10751
10752 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
10753 (sparc*-*-solaris): Clean up header files.
10754 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
10755 and plan on generating 64-bit code.
10756 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
10757 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
10758 * config/sparc/sol2-sld-64.h: Rename ...
10759 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
10760 for AS_SPARC64_FLAG not defined.
10761 * config/sparc/sol2-gld-bi.h: New.
10762 * config/sparc/sol2-sld.h: Remove.
10763 * config/sparc/sol26-sld.h: New.
10764 * config/sparc/sol2.h: Tidy comments.
10765 * doc/install.texi: Document sparc-solaris configury changes.
10766
10767 2002-04-12 Richard Henderson <rth@redhat.com>
10768
10769 * recog.c (offsettable_address_p): Match the logic in adjust_address.
10770
10771 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
10772 in 64-bit mode only. Use only for 32-bit or MEDLOW.
10773
10774 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10775
10776 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
10777
10778 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
10779
10780 * pa.c (pa_can_combine_p): Call extract_insn before calling
10781 constrain_operands.
10782
10783 2002-04-12 Douglas B Rupp <rupp@gnat.com>
10784
10785 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
10786 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
10787 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
10788 (CPP_PREDEFINES): Handle __declspec.
10789 * config/i386/t-interix (USER_H): Remove.
10790
10791 2002-04-12 DJ Delorie <dj@redhat.com>
10792
10793 * integrate.c (compare_blocks): Make comparisons safe for when
10794 sizeof(int) < sizeof(char *).
10795 (find_block): Likewise.
10796
10797 2002-04-12 Jan Hubicka <jh@suse.cz>
10798 David Edelsohn <edelsohn@gnu.org>
10799
10800 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
10801 registers.
10802 (symbol_ref_operand): New.
10803 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
10804 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
10805
10806 2002-04-12 Andreas Schwab <schwab@suse.de>
10807
10808 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
10809 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
10810 overrides the definition in config/svr4.h.
10811
10812 2002-04-12 Eric Norum <eric.norum@usask.ca>
10813
10814 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
10815 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
10816 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
10817 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
10818 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
10819 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
10820 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
10821 definitions to config/rtems.h and make the targets more similar.
10822
10823 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10824
10825 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
10826 POINTERS_EXTEND_UNSIGNED.
10827 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
10828 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
10829
10830 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
10831 not specified.
10832
10833 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
10834
10835 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
10836 depends on TARGET_SHMEDIA, not TARGET_SH5.
10837
10838 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
10839
10840 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
10841 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
10842
10843 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
10844
10845 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
10846 no r0 clobber.
10847
10848 2002-04-12 Andreas Schwab <schwab@suse.de>
10849
10850 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
10851
10852 2002-04-12 Richard Henderson <rth@redhat.com>
10853
10854 PR bootstrap/4191
10855 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
10856
10857 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
10858 modes spanning multiple hard regs.
10859
10860 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
10861
10862 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
10863
10864 * pa.c (pa_output_function_prologue): Don't accumulate the total
10865 number of code bytes when using TARGET_64BIT, or gas, SOM and not
10866 the portable runtime.
10867 (output_deferred_plabels): Handle 64bit plabels.
10868 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
10869 generating pic code using the GAS assembler for object formats that
10870 are not SOM (ie., ELF32 and ELF64).
10871 (output_millicode_call): Check attribute type if attribute length is 28.
10872 Likewise use $PIC_pcrel$0. Only call get_attr_length and
10873 dbr_sequence_length once.
10874 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
10875 dbr_sequence_length once.
10876 * pa.h (TARGET_SOM): Define if not defined.
10877 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
10878 with GAS and not SOM.
10879 (jump, call_internal_reg, call_value_internal_reg): Likewise.
10880 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
10881
10882 2002-04-11 David O'Brien <obrien@FreeBSD.org>
10883
10884 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
10885 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
10886 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
10887 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
10888 elfos.h and dbxelf.h values are fine now.
10889 * config/i386/freebsd.h, config/alpha/freebsd.h
10890 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
10891
10892 2002-04-11 David O'Brien <obrien@FreeBSD.org>
10893
10894 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
10895 or set Acpu or Amachine. Reformat.
10896 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
10897 define.
10898 (LINK_SPEC): Do not need to undef.
10899 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
10900 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
10901 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
10902 define.
10903 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
10904 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
10905 (LINK_SPEC): Do not need to undef.
10906 (DONT_USE_BUILTIN_SETJMP): Do not define.
10907 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
10908 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
10909 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
10910 Remove trailing spaces.
10911 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
10912 __ELF__, or set Acpu or Amachine. Reformat.
10913 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
10914 define.
10915
10916 2002-04-11 David O'Brien <obrien@FreeBSD.org>
10917
10918 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
10919 all other *-*-freebsd* targets.
10920
10921 2002-04-11 Richard Henderson <rth@redhat.com>
10922
10923 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
10924
10925 2002-04-11 David O'Brien <obrien@FreeBSD.org>
10926
10927 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
10928 Include {cpu}/{cpu}.h thru tm_file.
10929 (alpha*-*-linux*ecoff): Remove target.
10930 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
10931 (LINK_SPEC): Remove, is not OS independent.
10932 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
10933 (LINK_SPEC): Do not need to #undef any longer.
10934 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
10935 any longer.
10936 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
10937 __ELF__.
10938 (LINK_SPEC): Moved here from alpha/elf.h.
10939 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
10940 SUB_CPP_PREDEFINES.
10941 * config/alpha/linux-ecoff.h: Remove.
10942 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
10943 (CPP_SPEC): Define _POSIX_SOURCE as needed.
10944 (CPP_SUBTARGET_SPEC): Do not define.
10945 (LINK_SPEC): Do not need to #undef any longer.
10946 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
10947 * config/alpha/vms.h: Likewise.
10948
10949 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
10950
10951 * doc/extend.texi: Remove old claim that typedefs cannot have
10952 an alignment attribute.
10953
10954 2002-04-11 Jakub Jelinek <jakub@redhat.com>
10955
10956 PR optimization/6177
10957 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
10958 bitpos is 0 and bitsize CONCAT size.
10959
10960 2002-04-11 Jakub Jelinek <jakub@redhat.com>
10961
10962 PR c/6223
10963 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
10964
10965 2002-04-10 David O'Brien <obrien@FreeBSD.org>
10966
10967 * config/alpha/freebsd.h: Minor reformatting.
10968 (CPP_SPEC): Define ELF and add cpp_subtarget.
10969 (ASM_SPEC): No longer needed.
10970
10971 2002-04-11 Richard Henderson <rth@redhat.com>
10972
10973 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
10974 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
10975 (dimode mem/zero splitter): New.
10976
10977 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
10978
10979 * config/cris/cris.c (cris_override_options): Tweak error message
10980 for PIC not implemented.
10981
10982 * config/cris/cris.h: Tweak comments related to parameter-passing.
10983
10984 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
10985
10986 2002-04-10 Richard Henderson <rth@redhat.com>
10987
10988 * except.c (add_ehl_entry): Allow duplicates after landing pad
10989 creation.
10990
10991 2002-04-10 David Edelsohn <edelsohn@gnu.org>
10992
10993 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
10994
10995 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
10996
10997 * c-decl.c (c_init_decl_processing): Move generation of
10998 decls for g77_integer_type_node and friends from here ...
10999 * c-common.c (c_common_nodes_and_builtins): ... to here.
11000
11001 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
11002
11003 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
11004 is only used as frame pointer when frame_pointer_needed is true.
11005
11006 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
11007
11008 PR target/817
11009 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
11010 for the fact that the pool entry uses two words.
11011 (movdf_hard_insn): Similarly. Also, ADR instruction can span
11012 1k bytes.
11013 (movdf_soft_insn): Similarly.
11014 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
11015 for the fact that the pool entry uses three words.
11016
11017 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
11018
11019 * config/mips/mips.c (mips_va_arg): When using the struct version
11020 of the EABI va_list, allow arguments in the register save area to
11021 take up less room than a stack argument.
11022
11023 2002-04-10 Richard Henderson <rth@redhat.com>
11024
11025 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
11026 if EXPAND_INITIALIZER.
11027
11028 2002-04-09 Richard Henderson <rth@redhat.com>
11029
11030 * config/alpha/alpha.md (movdi_er_maybe_g): New.
11031 * config/alpha/alpha.c (alpha_expand_mov): Use it.
11032
11033 2002-04-10 Alan Modra <amodra@bigpond.net.au>
11034
11035 PR optimization/6233
11036 * rtlanal.c (pure_call_p): New function.
11037 * rtl.h (pure_call_p): Declare.
11038 * loop.c (prescan_loop): Use it to set has_nonconst_call.
11039 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
11040
11041 2002-04-09 Eric Christopher <echristo@redhat.com>
11042
11043 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
11044 information to .comm directive.
11045
11046 2002-04-09 Richard Henderson <rth@redhat.com>
11047
11048 PR c/5078
11049 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
11050
11051 2002-04-09 Richard Henderson <rth@redhat.com>
11052
11053 * basic-block.h (flow_delete_block_noexpunge): Declare.
11054 (expunge_block_nocompact): Declare.
11055 * cfg.c (expunge_block_nocompact): Split out from ...
11056 (expunge_block): ... here.
11057 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
11058 (flow_delete_block_noexpunge): Split out from ...
11059 (flow_delete_block): ... here.
11060 * cfgcleanup.c (delete_unreachable_blocks): Compact while
11061 removing dead blocks.
11062 * except.c (exception_handler_labels): Remove.
11063 (exception_handler_label_map): New.
11064 (struct eh_region): Add aka member.
11065 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
11066 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
11067 (for_each_eh_label, for_each_eh_label_1): New.
11068 (init_eh): Register exception_handler_label_map.
11069 (free_eh_status): Use free_region.
11070 (find_exception_handler_labels): Use the map, not the list.
11071 (remove_exception_handler_label): Likewise.
11072 (maybe_remove_eh_handler): Likewise.
11073 (remove_eh_handler): Use the region aka bitmap.
11074 * except.h (exception_handler_labels): Remove.
11075 (for_each_eh_label): Declare.
11076 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
11077 * loop.c (invalidate_loops_containing_label): New.
11078 (find_and_verify_loops): Use it. Use for_each_eh_label.
11079 * sched-rgn.c (is_cfg_nonregular): Use
11080 current_function_has_exception_handlers.
11081
11082 2002-04-09 Richard Henderson <rth@redhat.com>
11083
11084 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
11085 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
11086 Do not return changed status.
11087 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
11088 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
11089 New functions that do return changed status.
11090 * sbitmap.h: Update decls.
11091 * gcse.c, lcm.c: Use _cg functions as needed.
11092
11093 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
11094
11095 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
11096 (sh64-*-elf*, sh-*-rtemself*): Likewise.
11097 * config/sh/embed_bb.c: New file.
11098 * config/sh/embed-elf.h: New file.
11099 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
11100 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
11101 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11102 __PTRDIFF_TYPE__ .
11103 (SUBTARGET_CPP_PTR_SPEC): Don't define.
11104 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
11105 Add subtarget_asm_endian_spec.
11106 (ASM_SPEC): Use subtarget_asm_endian_spec.
11107 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
11108 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
11109 (WCHAR_UNSIGNED): Define.
11110 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
11111 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11112 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
11113 Fix value.
11114 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
11115 (sh_adjust_cost): Likewise.
11116 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11117 __PTRDIFF_TYPE__ .
11118 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
11119 (WCHAR_TYPE_SIZE): Likewise.
11120 (ASM_SPEC): Use subtarget_asm_endian_spec.
11121 (SH_ELF_WCHAR_TYPE): #undef/ #define.
11122 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
11123 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
11124 (MAX_WCHAR_TYPE_SIZE): Don't #define .
11125 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
11126 (USER_LABEL_PREFIX): Don't #undef /#define .
11127 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11128 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
11129 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
11130 (ASM_SPEC): Likewise.
11131 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
11132 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
11133 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
11134 (LIB2FUNCS_EXTRA): Define.
11135 * t-sh64 (LIB2FUNCS_EXTRA): Define.
11136 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
11137 (LIB1ASMFUNCS_CACHE): Define.
11138 (LIB2FUNCS_EXTRA): Redefine empty.
11139
11140 2002-04-08 Richard Henderson <rth@redhat.com>
11141
11142 * reorg.c (get_branch_condition): Use reversed_comparison_code.
11143
11144 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11145
11146 * config/m68hc11/larith.asm (__map_data_section): Fix condition
11147 and optimize for size.
11148 (__do_global_ctors): Fix pointer comparison.
11149 (__do_global_dtors): Likewise.
11150
11151 2002-04-09 David S. Miller <davem@redhat.com>
11152
11153 * config/sparc/sparc.c (sparc_extra_constraint_check): New
11154 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
11155 allow reloading pseudos.
11156 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
11157 * config/sparc/sparc-protos.h: Declare it.
11158
11159 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
11160 unsigned comparison warning.
11161 (output_restore_regs): Mark leaf_function as unused.
11162
11163 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11164
11165 * expr.c (is_aligning_offset): New function.
11166 (expand_expr, case COMPONENT_EXPR): Call it.
11167
11168 2002-04-08 David S. Miller <davem@redhat.com>
11169
11170 PR target/6082
11171 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
11172
11173 Make init_priority work on Sparc when using GNU ld.
11174 * config/sparc/linux.h, config/sparc/linux64.h,
11175 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
11176 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
11177 * config/sparc/sol2-gld.h: New file to do the same.
11178 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
11179 sparc/sol2-gld.h to tm_file.
11180
11181 PR optimization/4328
11182 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
11183 * doc/md.texi: Document it.
11184 * config/sparc/sparc.md (movdi_insn_sp64_novis,
11185 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
11186 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
11187 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
11188 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
11189
11190 2002-04-08 Andreas Jaeger <aj@suse.de>
11191
11192 * stmt.c (expand_asm_operands): Revert last patch from Richard
11193 Henderson.
11194
11195 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11196
11197 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
11198 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
11199
11200 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11201
11202 * doc/contrib.texi (Contributors): Add David O'Brien.
11203
11204 2002-04-08 Alan Modra <amodra@bigpond.net.au>
11205
11206 * configure.in (auto-build.h): Use target_alias and build_alias
11207 when running configure.
11208 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
11209 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
11210 * configure: Regenerate.
11211
11212 2002-04-07 David S. Miller <davem@redhat.com>
11213
11214 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
11215
11216 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
11217
11218 PR 5933
11219 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
11220 generating 32-bit pic code.
11221
11222 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
11223
11224 * cppinit.c (cpp_create_reader): Initialize
11225 discard_comments_in_macro_exp.
11226 (COMMAND_LINE_OPTIONS): Add "-CC" option.
11227 (cpp_handle_option): Handle "-CC" option.
11228 * cpplex.c (save_comment): If saving a C++ comment in
11229 a directive, convert it to a C comment.
11230 (_cpp_lex_direct): Pass second comment start character to
11231 save_comment to indicate comment type.
11232 * cpplib.c (_cpp_handle_directive): If processing
11233 a "#define" directive and discard_comments_in_macro_exp
11234 is false, re-enable saving of comments.
11235 (lex_macro_node): If discard_comments_in_macro_exp is false,
11236 discard any comments before the macro identifier.
11237 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
11238 member.
11239 * cppmacro.c (cpp_get_token): If expanding a macro while
11240 processing a directive, discard any comments we might encounter.
11241 (parse_params): If discard_comments_in_macro_exp is false,
11242 ignore comments in the macro parameter list.
11243 * gcc.c (cpp_unique_options): Add "-CC" option.
11244 (option_map): Map "--comments-in-macros" to "-CC".
11245 * doc/cppopts.texi: Document "-CC" option.
11246 * f/lang-specs.h: Add "-CC" option.
11247 * testsuite/gcc.dg/cpp/maccom1.c: New test.
11248 * testsuite/gcc.dg/cpp/maccom2.c: New test.
11249 * testsuite/gcc.dg/cpp/maccom3.c: New test.
11250 * testsuite/gcc.dg/cpp/maccom4.c: New test.
11251 * testsuite/gcc.dg/cpp/maccom5.c: New test.
11252 * testsuite/gcc.dg/cpp/maccom6.c: New test.
11253
11254 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
11255
11256 PR middle-end/6180
11257 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
11258
11259 2002-04-06 Mark Mitchell <mark@codesourcery.com>
11260
11261 PR c++/5571
11262 * stor-layout.c (layout_decl): Reset the RTL for the decl.
11263
11264 PR opt/5120
11265 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
11266 RTX_UNCHANGING_P for the functions arguments when a tail call
11267 is made.
11268
11269 2002-04-06 Jason Merrill <jason@redhat.com>
11270
11271 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
11272 (parse_options_and_default_flags): Set them appropriately.
11273 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
11274
11275 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
11276
11277 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
11278 here.
11279
11280 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
11281 semicolon.
11282
11283 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
11284 types come in by-reference. Fix typo in comment.
11285
11286 2002-04-05 David S. Miller <davem@redhat.com>
11287
11288 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
11289 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
11290 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
11291 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
11292
11293 2002-04-05 David S. Miller <davem@redhat.com>
11294
11295 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
11296 are not going to emit return instructions, emit at least a nop
11297 for the sake of sane backtraces.
11298
11299 2002-04-05 Richard Henderson <rth@redhat.com>
11300
11301 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
11302
11303 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
11304
11305 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
11306
11307 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
11308
11309 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
11310 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
11311 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
11312
11313 2002-04-05 Andreas Schwab <schwab@suse.de>
11314
11315 * c-convert.c: Include c-common.h.
11316 * Makefile.in (c-convert.o): Updated.
11317
11318 2002-04-05 Jakub Jelinek <jakub@redhat.com>
11319
11320 * mklibgcc.in: Use separate libgcc.map for each multilib.
11321 * Makefile.in (distclean): Don't remove libgcc.map here.
11322
11323 2002-04-05 Jakub Jelinek <jakub@redhat.com>
11324
11325 * Makefile.in (s-mlib): Handle --disable-multilib by separate
11326 genmultilib invocation.
11327
11328 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
11329
11330 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
11331 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
11332 to num_gprs for symmetry.
11333 * config/mips/mips.c: Adjust accordingly.
11334
11335 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
11336
11337 * c-common.c (truthvalue_conversion): Rename, update.
11338 * c-common.h (c_common_truthvalue_conversion): New.
11339 * c-convert.c (convert): Update.
11340 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11341 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
11342 * c-typeck.c (build_binary_op, build_unary_op,
11343 build_conditional_expr): Update.
11344 * fold-const.c (constant_boolean_node, fold): Use langhook.
11345 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
11346 * langhooks.h (struct lang_hooks): New hook.
11347 * stmt.c (expand_decl_cleanup): Use langhook.
11348 * tree.h (truthvalue_conversion): Remove.
11349 objc:
11350 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11351
11352 2002-04-05 Alan Modra <amodra@bigpond.net.au>
11353
11354 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
11355 Add rules to make null object file.
11356
11357 2002-04-04 Jim Blandy <jimb@redhat.com>
11358
11359 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
11360 macro formal parameter names.
11361
11362 2002-04-04 David S. Miller <davem@redhat.com>
11363
11364 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
11365
11366 2002-04-04 Richard Henderson <rth@redhat.com>
11367
11368 PR middle-end/5099
11369 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
11370 Support copies into and out of memory. Don't accept allows_reg
11371 and allows_mem as gospel.
11372
11373 2002-04-04 Richard Henderson <rth@redhat.com>
11374
11375 PR opt/6165
11376 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
11377 (write_dependence_p): Likewise.
11378
11379 2002-04-04 Richard Henderson <rth@redhat.com>
11380
11381 * predict.c (estimate_bb_frequencies): Do frequency calculation
11382 with a volatile temporary.
11383
11384 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
11385
11386 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
11387
11388 2002-04-04 Jakub Jelinek <jakub@redhat.com>
11389
11390 PR c++/6119
11391 * final.c (final_start_function): Don't bump profile_label_no here...
11392 (final_end_function): ...but here.
11393
11394 2002-04-04 Jakub Jelinek <jakub@redhat.com>
11395
11396 * config/sparc/sparc.md (pic): New attribute.
11397 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
11398 into stack slots.
11399 (split after do_builtin_setjmp_setup): New.
11400
11401 2002-04-04 Jakub Jelinek <jakub@redhat.com>
11402
11403 PR fortran/6106
11404 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
11405 change.
11406
11407 2002-04-04 Jakub Jelinek <jakub@redhat.com>
11408
11409 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
11410 UNITS_PER_WORD for zero sized aggregates.
11411
11412 2002-04-03 David S. Miller <davem@redhat.com>
11413
11414 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
11415 one-character spec for this, just use %(link_gcc_c_sequence).
11416
11417 2002-04-03 David S. Miller <davem@redhat.com>
11418
11419 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
11420 handling.
11421
11422 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
11423
11424 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
11425 (DWARF_FRAME_RETURN_COLUMN): Move.
11426 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11427 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
11428 * pa.c (except.h, predict.h): Include.
11429 (FRP): Delete.
11430 (store_reg_modify, set_reg_plus_d): Revise prototypes.
11431 (output_ascii): Add cast.
11432 (store_reg_modify): Revise to add frame notes.
11433 (set_reg_plus_d): Likewise.
11434 (compute_frame_size): Include space for eh data registers in frame if
11435 the current function calls eh_return.
11436 (hppa_expand_prologue): Ensure register %r2 is saved if the current
11437 function calls eh_return. Save eh data registers if the current
11438 function calls eh_return. Fix code to add frame notes. Emit
11439 blockage to prevent insns with frame notes being scheduled in the
11440 delay slot of calls.
11441 (hppa_expand_epilogue): Restore eh data registers and do final stack
11442 adjustment if the current function calls eh_return. Don't add frame
11443 notes.
11444 (output_call): Revise for change in length of call insn. Don't do
11445 return pointer adjustment for an unconditional jump in the delay slot
11446 of a call when using frame notes.
11447 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
11448 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
11449 (ARG_POINTER_CFA_OFFSET): Define.
11450 * pa.md (return_external_pic): New pattern.
11451 (prologue): Correct formatting. Use return_external_pic if current
11452 function calls eh_return.
11453 (call_internal_symref, call_value_internal_symref,
11454 sibcall_internal_symref, sibcall_value_internal_symref): Change default
11455 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
11456 respectively.
11457 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
11458
11459 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
11460 list of targets to check using "nop" insn.
11461 * configure: Rebuilt.
11462
11463 2002-04-04 Alan Modra <amodra@bigpond.net.au>
11464
11465 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
11466
11467 2002-04-03 David S. Miller <davem@redhat.com>
11468
11469 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
11470 library sequence passed to the linker.
11471 (LINK_COMMAND_SPEC): Use it.
11472 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
11473 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
11474 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11475
11476 2002-04-03 Jason Merrill <jason@redhat.com>
11477
11478 * except.c (struct eh_status): Remove protect_list.
11479 (begin_protect_partials, end_protect_partials): Remove.
11480 (add_partial_entry): Remove.
11481 * except.h: Remove prototypes.
11482
11483 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
11484 expand_decl_cleanup_eh.
11485
11486 PR c++/5636
11487 * tree.h (CLEANUP_EH_ONLY): New macro.
11488 * stmt.c (expand_decl_cleanup_eh): New fn.
11489 (expand_cleanups): Check CLEANUP_EH_ONLY.
11490 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
11491 Use expand_decl_cleanup_eh.
11492 (expand_stmt): Adjust.
11493 * c-common.h: Adjust prototype.
11494
11495 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
11496
11497 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
11498 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
11499 (cris_target_asm_function_epilogue): Ditto.
11500 (cris_initial_frame_pointer_offset): Ditto.
11501 (cris_simple_epilogue): Ditto.
11502 (cris_expand_builtin_va_arg): Variable-size types come in
11503 by-reference.
11504
11505 2002-04-03 David S. Miller <davem@redhat.com>
11506
11507 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
11508 little-endian.
11509 (set_fast_math): Correct 'fsr' type.
11510
11511 2002-04-03 Richard Henderson <rth@redhat.com>
11512
11513 PR opt/3569
11514 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
11515 * toplev.c (check_global_declarations): Use it.
11516 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
11517 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11518 (LANG_HOOKS_DECLS): Add it.
11519 * langhooks.c (lhd_warn_unused_global_decl): New.
11520 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11521 * c-objc-common.c (c_warn_unused_global_decl): New.
11522 * c-tree.h (c_warn_unused_global_decl): Declare.
11523 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11524
11525 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
11526
11527 * langhooks-def.h (lhd_set_decl_assembler_name,
11528 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
11529 (LANG_HOOKS_INITIALIZER): Update.
11530 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
11531 * langhooks.h (struct lang_hooks): New hook.
11532 * tree.c (set_decl_assembler_name): Move to langhooks.c.
11533 (lang_set_decl_assembler_name): Remove.
11534 (init_obstacks): Don't set hook.
11535 (decl_assembler_name): New function.
11536 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
11537 (decl_assembler_name): New.
11538 (lang_set_decl_assembler_name): Remove.
11539
11540 2002-04-03 Jakub Jelinek <jakub@redhat.com>
11541
11542 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
11543 works properly with .hidden symbols.
11544 * configure: Rebuilt.
11545 * config.in: Rebuilt.
11546 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
11547 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
11548 properly with .hidden symbols.
11549
11550 2002-04-03 Jakub Jelinek <jakub@redhat.com>
11551
11552 PR middle-end/6102
11553 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
11554 USE argument.
11555
11556 2002-04-03 Richard Henderson <rth@redhat.com>
11557
11558 PR opt/4120
11559 * sched-rgn.c (sets_likely_spilled): New.
11560 (sets_likely_spilled_1): New.
11561 (add_branch_dependences): Use it.
11562
11563 2002-04-02 Richard Henderson <rth@redhat.com>
11564
11565 PR opt/4311
11566 * loop.h (LOOP_FIRST_PASS): New.
11567 * loop.c (strength_reduce): Mind it when deciding to unroll.
11568 * toplev.c (rest_of_compilation): Set it.
11569
11570 2002-04-02 David S. Miller <davem@redhat.com>
11571
11572 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
11573 mems_ok_for_ldd_peep when the order of the loads being examined
11574 is reversed.
11575 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
11576 existing comment to increase comprehension of this situation.
11577
11578 2002-04-02 Zack Weinberg <zack@codesourcery.com>
11579
11580 * config/sh/sh.md: Don't use union real_extract.
11581
11582 2002-04-02 Richard Henderson <rth@redhat.com>
11583
11584 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
11585
11586 2002-04-02 David O'Brien <obrien@FreeBSD.org>
11587
11588 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
11589 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
11590 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
11591 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
11592 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
11593 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
11594 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
11595 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
11596 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
11597 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
11598 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
11599 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
11600 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
11601 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
11602 Include as many configury headers via tm_file as possible. This
11603 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
11604 * config/openbsd-oldgas.h: New file.
11605 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
11606 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
11607 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
11608 config/i386/i386-coff.h, config/i386/i386-interix.h,
11609 config/i386/iscdbx.h, config/i386/linux-aout.h,
11610 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
11611 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
11612 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
11613 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
11614 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
11615 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
11616 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
11617 config/i386/vxi386.h: Do not directly include configury headers.
11618 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
11619 Directly include configury headers that are no longer automatically
11620 included by the above headers.
11621 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
11622 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
11623 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
11624 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
11625 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
11626 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
11627 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
11628 (TARGET_VERSION): Define.
11629 * config/i386/beos-elf.h, config/i386/freebsd.h,
11630 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
11631 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
11632 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
11633 config/i386/sco5.h, config/i386/sysv4.h
11634 (TARGET_VERSION): Do not need to protect.
11635 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
11636 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
11637 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
11638 config/i386/i386-interix.h, config/i386/linux-aout.h,
11639 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
11640 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
11641 (YES_UNDERSCORES): Do not define - not needed.
11642 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
11643 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
11644 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
11645 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
11646 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
11647 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
11648 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
11649 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
11650
11651 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
11652 Richard Henderson <rth@redhat.com>
11653
11654 PR c/5484
11655 * function.c (assign_temp): Accept either type or decl argument.
11656 Detect variables whose size is too large to fit into an integer.
11657 * stmt.c (expand_decl): Pass the decl, not the type.
11658
11659 2002-04-02 David O'Brien <obrien@FreeBSD.org>
11660
11661 * protoize.c: Match include directory usage with cppdefault.c.
11662
11663 2002-04-03 Jeffrey A Law (law@redhat.com)
11664 Hans-Peter Nilsson <hp@bitrange.com>
11665
11666 * combine.c (simplify_comparison): Avoid narrowing a comparison
11667 with a paradoxical subreg when doing so would drop signficant bits.
11668
11669 2002-04-02 Steve Ellcey <sje@cup.hp.com>
11670
11671 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
11672 if POINTERS_EXTEND_UNSIGNED is defined.
11673
11674 2002-04-02 Richard Henderson <rth@redhat.com>
11675
11676 PR opt/3967
11677 * local-alloc.c (contains_replace_regs): LO_SUM may contain
11678 replace regs.
11679
11680 2002-04-02 Richard Henderson <rth@redhat.com>
11681
11682 * doc/standards.texi: Document required freestanding libc entry points.
11683
11684 2002-04-02 Alan Modra <amodra@bigpond.net.au>
11685
11686 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
11687 associated splitter. Remove MQ constraint.
11688 (ctrdi_internal4): Correct CCmode clobber.
11689
11690 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
11691
11692 * milli64.S ($$dyncall): New function.
11693 * t-linux (LIB1ASMFUNCS): Revise module list.
11694 (LIB1ASMSRC): Use pa/milli64.S.
11695
11696 2002-04-02 Richard Henderson <rth@redhat.com>
11697
11698 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
11699 rename solaris_sys_varargs_h.
11700
11701 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11702
11703 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
11704 the same mode as its component.
11705
11706 2002-04-02 Richard Henderson <rth@redhat.com>
11707
11708 PR opt/190
11709 * final.c (this_is_asm_operands): Export.
11710 * output.h (this_is_asm_operands): Declare.
11711 * config/i386/i386.c (print_operand): Error odd asm operands.
11712
11713 2002-04-02 Richard Henderson <rth@redhat.com>
11714
11715 PR opt/420
11716 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
11717
11718 2002-04-01 Richard Henderson <rth@redhat.com>
11719
11720 PR target/1538
11721 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
11722 * fixinc/fixincl.x: Rebuild.
11723
11724 2002-04-01 Richard Henderson <rth@redhat.com>
11725
11726 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
11727 (atomic_alloc, atomic_free): New.
11728 (SIZE, MASK_FOR, PTR_IN): New.
11729 (emergency_reg_state, emergency_reg_state_free): New.
11730 (emergency_labeled_state, emergency_labeled_state_free): New.
11731 (reg_state_alloced, labeled_state_alloced): New.
11732 (alloc_reg_state, free_reg_state): New.
11733 (alloc_label_state, free_label_state, free_label_states): New.
11734 (push, pop, dup_state_stack, free_state_stack): Use them.
11735 (desc_label_state): Likewise.
11736 (uw_frame_state_for): Free label states and state stack.
11737 (uw_update_reg_address): Eliminate warnings.
11738
11739 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
11740
11741 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
11742 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
11743
11744 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11745
11746 * c-decl.c (grokdeclarator): Update.
11747 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
11748 * c-tree.h (c_mark_addressable): New.
11749 * c-typeck.c (default_function_array_conversion, build_unary_op,
11750 build_array_ref, convert_for_assignment): Update.
11751 (mark_addressable): Rename.
11752 * calls.c (try_to_integrate, expand_call): Use langhook.
11753 * expr.c (expand_expr): Use langhook.
11754 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
11755 * langhooks.h (struct lang_hooks): New hook.
11756 * stmt.c (expand_asm_operands): Use langhook.
11757 * tree.h (mark_addressable): Remove.
11758 objc:
11759 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
11760
11761 2002-04-01 Bob Wilson <bob.wilson@acm.org>
11762
11763 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
11764 in previous change.
11765
11766 2002-04-01 Bob Wilson <bob.wilson@acm.org>
11767
11768 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
11769 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
11770
11771 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11772
11773 * c-common.c (unsigned_conversion_warning, convert_and_check,
11774 unsigned_type, signed_type, shorten_compare,
11775 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
11776 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
11777 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
11778 New.
11779 * c-decl.c (grokdeclarator): Update.
11780 * c-format.c (check_format_types): Update.
11781 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
11782 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
11783 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
11784 * convert.c (convert_to_integer): Use new hooks.
11785 * expmed.c (make_tree): Use new hooks.
11786 * expr.c (store_expr): Use new hooks.
11787 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
11788 all_ones_mask_p, unextend, fold): Use new hooks.
11789 * langhooks.h (struct lang_hooks_for_types): New hooks.
11790 * tree.h (signed_or_unsigned_type, signed_type,
11791 unsigned_type): Remove.
11792 objc:
11793 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
11794 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
11795
11796 2002-03-31 Richard Henderson <rth@redhat.com>
11797
11798 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
11799 (desc_frgr_mem): Fix reference to f16-f31.
11800
11801 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11802
11803 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
11804 RTVEC_ELT): Const-ify.
11805 * varray.h (VARRAY_CHECK): Const-ify.
11806 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
11807 ggc_mark_rtvec, ggc_mark): Const-ify.
11808
11809 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11810
11811 * diagnostic.c: Include langhooks-def.h.
11812 * Makefile.in (diagnostic.o): Update.
11813
11814 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
11815
11816 * c-common.c (c_unsafe_for_reeval): Rename.
11817 * c-common.h (c_unsafe_for_reeval): Rename.
11818 * c-decl.c (finish_incomplete_decl): Rename.
11819 (c_init_decl_processing): Don't set langhook.
11820 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
11821 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
11822 * c-objc-common.c (c_objc_common_init): Don't set langhook.
11823 * c-tree.h (finish_incomplete_decl): Rename.
11824 * langhooks-def.h (lhd_unsafe_for_reeval): New.
11825 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
11826 (LANG_HOOKS_INITIALIZER): Update.
11827 * langhooks.c (lhd_unsafe_For_reeval): New.
11828 * langhooks.h (struct langhooks): New hooks.
11829 * toplev.c (incomplete_decl_finalize_hook): Remove.
11830 (wrapup_global_declarations): Update.
11831 * tree.c (lang_unsafe_for_reeval): Remove.
11832 (unsafe_for_reeval): Update.
11833 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
11834 Remove.
11835 objc:
11836 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
11837 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
11838
11839 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
11840
11841 * diagnostic.c (print_error_function): Remove.
11842 (default_print_error_function): Rename.
11843 (report_error_function): Update.
11844 * diagnostic.h (print_error_function): Remove.
11845 (default_print_error_function): Remove.
11846 * langhooks-def.h (struct diagnostic_context): Predeclare.
11847 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
11848 (LANG_HOOKS_INITIALIZER): Update.
11849 * langhooks.h (struct diagnostic context): Predeclare.
11850 (struct lang_hooks): New hook.
11851
11852 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
11853
11854 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
11855 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
11856 !flag_pic.
11857 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
11858 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
11859 of PIC_OFFSET_TABLE_REGNUM thruout.
11860 * config/rs6000/rs6000.md: Likewise.
11861 * config/rs6000/darwin.h: Likewise.
11862
11863 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11864
11865 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
11866 unsigned HOST_WIDE_INT, not unsigned int.
11867
11868 2002-03-31 Jakub Jelinek <jakub@redhat.com>
11869
11870 PR middle-end/6096, middle-end/6098, middle-end/6099
11871 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
11872 CODE_LABELs.
11873 (fill_slots_from_thread): Likewise.
11874
11875 2002-03-31 Jakub Jelinek <jakub@redhat.com>
11876
11877 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
11878 floating fields in float regs.
11879 (function_arg_record_value_2): Likewise.
11880
11881 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
11882
11883 * config/mmix/mmix.md (define_constants): Remove misleading
11884 FIXME. Add MMIX_fp_rO_OFFSET.
11885 ("nonlocal_goto_receiver"): Don't have stack-frame address of
11886 saved rO as part of the pattern. Remove FIXME.
11887 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
11888 here, at output-time.
11889
11890 2002-03-31 Jakub Jelinek <jakub@redhat.com>
11891
11892 PR middle-end/6100
11893 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
11894 REG_BR_PRED.
11895 (output_v9branch): Likewise.
11896
11897 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
11898
11899 * gcc.c: Revert previous patch for now.
11900 * config/i386/djgpp.h: Likewise.
11901
11902 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
11903
11904 * config/mmix/crti.asm (_init): Register _fini with atexit.
11905 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
11906
11907 2002-03-31 Richard Henderson <rth@redhat.com>
11908
11909 PR target/3997
11910 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
11911 (ASM_OUTPUT_DEF_FROM_DECLS): New.
11912
11913 2002-03-31 Richard Henderson <rth@redhat.com>
11914
11915 * libgcc2.c (__bb_exit_func): Make static.
11916
11917 * config/alpha/alpha.md (trap): New.
11918
11919 2002-03-31 Richard Henderson <rth@redhat.com>
11920
11921 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
11922 promoted argument types; build trap.
11923 (expand_builtin_trap): New.
11924 (expand_builtin): Use it.
11925 * stmt.c (expand_nl_goto_receivers): Likewise.
11926 * expr.h (expand_builtin_trap): Declare.
11927 * libfuncs.h (LTI_abort, abort_libfunc): New.
11928 * optabs.c (init_optabs): Init abort_libfunc.
11929
11930 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
11931
11932 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
11933 (LINK_COMMAND_SPEC): ... from here.
11934 (init_gcc_specs): Duplicate it here too, omitting
11935 shared_name in the second copy.
11936 (init_spec): Test for duplicate
11937 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
11938
11939 2002-03-30 David S. Miller <davem@redhat.com>
11940
11941 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
11942 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
11943
11944 2002-03-30 Roger Sayle <roger@eyesopen.com>
11945 Richard Henderson <rth@redhat.com>
11946
11947 * regmove.c (combine_stack_adjustments_for_block): Avoid
11948 emitting a stack adjustment of zero bytes. Let delete_insn
11949 update bb->head.
11950
11951 2002-03-30 Richard Henderson <rth@redhat.com>
11952
11953 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
11954 (sparc_emitting_epilogue): New.
11955 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
11956 * config/sparc/sparc-protos.h: Update.
11957 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
11958 (TARGET_SWITCHES): Update.
11959 * config/sparc/sparc.md (return): Remove.
11960 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
11961 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
11962 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
11963 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11964 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
11965 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
11966 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
11967 Remove MASK_EPILOGUE.
11968 * doc/invoke.texi: Update.
11969
11970 2002-03-30 Daniel Berlin <dan@dberlin.org>
11971
11972 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
11973 CPP will start the file for us.
11974
11975 2002-03-30 Richard Henderson <rth@redhat.com>
11976
11977 PR target/5446
11978 * config/ia64/ia64.c (group_barrier_needed_p): Special case
11979 prologue_allocate_stack.
11980 (ia64_single_set): Use insn codes for recognition of special
11981 cases, not rtl matching.
11982 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
11983
11984 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
11985
11986 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
11987
11988 2002-03-30 Richard Henderson <rth@redhat.com>
11989
11990 PR target/6032
11991 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
11992 or -fomit-frame-pointer with profiling.
11993 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
11994 (FUNCTION_PROFILER): Do nothing.
11995 (PROFILE_HOOK): New.
11996 * config/sparc/sparc.c (sparc_override_options): Don't check
11997 code models for profiling.
11998 (sparc_function_profiler): Remove.
11999 (sparc_profile_hook): New.
12000 * config/sparc/sparc-protos.h: Update.
12001
12002 2002-03-30 Jakub Jelinek <jakub@redhat.com>
12003
12004 PR optimization/6086
12005 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
12006 of SUBREG of volatile MEM or because the MEM was mode dependent,
12007 return CLOBBER instead of unmodified SUBREG.
12008
12009 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
12010
12011 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
12012 when not optimizing.
12013
12014 * toplev.c (rest_of_compilation): Cann mark_constant_function
12015 only when optimizing.
12016
12017 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
12018 are NULL.
12019
12020 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
12021 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
12022 (try_optimize_cfg): clear all AUX fields.
12023
12024 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
12025 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
12026 (ix86_address_cost): Be prepared for SUBREGed registers.
12027 (legitimate_address_p): Accept SUBREGed registers.
12028
12029 2002-03-29 Richard Henderson <rth@redhat.com>
12030
12031 PR target/5672
12032 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
12033
12034 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12035
12036 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
12037 for aggregate and TFmode types.
12038
12039 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
12040
12041 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
12042
12043 2002-03-29 Richard Henderson <rth@redhat.com>
12044
12045 PR target/5886
12046 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
12047 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
12048
12049 2002-03-29 Richard Henderson <rth@redhat.com>
12050
12051 PR target/6041
12052 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
12053 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
12054 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
12055 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
12056 conditional.
12057 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
12058
12059 2002-03-29 Dale Johannesen <dalej@apple.com>
12060
12061 * loop.c (combine_movables): Do allow combination of pseudos.
12062
12063 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
12064
12065 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
12066 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
12067 No functional change except ...
12068 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
12069 * doc/install.texi (*-*-freebsd*): Document port configuration.
12070
12071 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
12072
12073 * Makefile.in (convert.o, calls.o, expmed.o): Update.
12074 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
12075 Use new hooks.
12076 * builtin-types.def (BT_PTRMODE): Update.
12077 * c-common.c (type_for_size): Rename c_common_type_for_size.
12078 (type_for_mode): Similarly.
12079 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
12080 Use new hook.
12081 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
12082 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
12083 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
12084 Redefine.
12085 * c-typeck.c (common_type, comptypes, default_conversion):
12086 Use new hooks.
12087 * calls.c: Include langhooks.h.
12088 (emit_library_call_value_1): Use new hooks. Avoid redundant
12089 calls.
12090 * convert.c: Include langhooks.h
12091 (convert_to_pointer, convert_to_integer): Use new hooks.
12092 * except.c (init_eh): Similarly.
12093 * expmed.c: Include langhooks.h.
12094 (expand_mult_add): Use new hooks.
12095 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
12096 try_casesi): Similarly.
12097 * fold-const.c (optimize_bit_field_compare, make_range,
12098 decode_field_reference, fold_truthop, fold): Similarly.
12099 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
12100 put_var_into_stack): Similarly.
12101 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
12102 LANG_HOOKS_TYPE_FOR_SIZE): New.
12103 (LANG_HOOKS_TYPES_INITIALIZER): Update.
12104 * langhooks.h (lang_hooks_for_types): New hooks.
12105 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
12106 * tree.c (get_unwidened, get_narrower): Similarly.
12107 * tree.h (type_for_mode, type_for_size): Remove.
12108 * varasm.c (force_const_mem): Use new hooks.
12109 * utils2.c (nonbinary_modular_operation): Update.
12110 objc:
12111 * objc-act.c (handle_impent): Update.
12112 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
12113 Redefine.
12114
12115 2002-03-29 Steve Ellcey <sje@cup.hp.com>
12116
12117 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
12118 * config/ia64/ia64.c (basereg_operand): New.
12119 * config/ia64/ia64-protos.h (basereg_operand): Declare.
12120 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
12121
12122 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
12123
12124 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
12125 unwind information when frame_pointer_needed.
12126 (mmix_assemble_integer): Tweak wording in comment.
12127
12128 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
12129
12130 * Makefile.in (except.o): Update.
12131 * except.c: Include langhooks.h.
12132 (init_eh): Use langhook.
12133 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
12134 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
12135 (LANG_HOOKS_INITIALIZER): Update.
12136 * langhooks.h (lang_hooks_for_types): New.
12137 (struct lang_hooks): Add it.
12138 * tree.c (make_lang_type_fn, make_lang_type): Remove.
12139 * tree.h (make_lang_type_fn, make_lang_type): Remove.
12140 config:
12141 * alpha/alpha.c: Include langhooks.h.
12142 (alpha_build_va_list): Use langhook.
12143 * d30v/d30v.c: Include langhooks.h.
12144 (d30v_build_va_list): Use langhook.
12145 * i386/i386.c: Include langhooks.h.
12146 (ix86_build_va_list): Use langhook.
12147 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
12148 * s390/s390.c: Include langhooks.h.
12149 (s390_build_va_list): Use langhook.
12150 * stormy16/stormy16.c: Include langhooks.h.
12151 (stormy16_build_va_list): Use langhook.
12152
12153 2002-03-29 Jakub Jelinek <jakub@redhat.com>
12154
12155 PR c++/5964
12156 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
12157 attributes.
12158 (length): Compute variable length for branches/calls/jumps here.
12159 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
12160 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
12161 define branch_type attribute.
12162 (divsi3_sp32): Maximum length is 6 not 7.
12163 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
12164 call_address_untyped_struct_value_sp32,
12165 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
12166 * config/sparc/sparc.c (empty_delay_slot): New function.
12167 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
12168 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
12169
12170 2002-03-29 Jakub Jelinek <jakub@redhat.com>
12171
12172 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
12173 nonzero_bits if not needed.
12174 (nonzero_bits) [XOR]: Likewise.
12175 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
12176 reg_last_set_mode and mode are both MODE_INT, but not equal.
12177 (record_value_for_reg): Compute reg_last_set_nonzero_bits
12178 in nonzero_bits_mode for MODE_INT modes.
12179
12180 2002-03-28 Richard Henderson <rth@redhat.com>
12181
12182 PR target/5715
12183 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
12184 to GAS. Correct drift between alternatives.
12185
12186 2002-03-28 Richard Henderson <rth@redhat.com>
12187
12188 PR target/6087
12189 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
12190
12191 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
12192
12193 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
12194 emulation to the linker.
12195
12196 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
12197
12198 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
12199 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
12200
12201 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
12202
12203 * combine.c (simplify_and_const_int): Make sure to apply mask
12204 when force_to_mode returns a constant integer. PR3311.
12205
12206 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
12207
12208 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
12209
12210 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12211
12212 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
12213 and Objective-C Dialect Options.
12214
12215 2002-03-28 Richard Henderson <rth@redhat.com>
12216
12217 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
12218 comparison should be done vs !=0 not >0 return code. Tidy cases.
12219
12220 2002-03-28 Richard Henderson <rth@redhat.com>
12221
12222 * c-decl.c (finish_function): New arg can_defer_p. Pass it
12223 on to c_expand_body.
12224 * c-tree.h (finish_function): Update decl.
12225 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
12226
12227 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
12228
12229 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
12230
12231 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
12232
12233 * rtlanal.c: Include flags.h
12234 (may_trap_p): Do not mark FP operations if trapping
12235 if !flag_trapping_math
12236 * Makefile.in (rtlanal.o): Add dependency on flag.h
12237 * ifcvt.c (noce_operand_ok): Avoid the lameness.
12238
12239 2002-03-27 Zack Weinberg <zack@codesourcery.com>
12240
12241 * mips.md: Use dconst1, not 1.0, as first argument of
12242 REAL_VALUE_LDEXP. Don't use union real_extract.
12243
12244 2002-03-28 Alan Modra <amodra@bigpond.net.au>
12245
12246 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
12247 rather than $target. Heed program_prefix and
12248 program_transform_name. Search for gas in cross-compiler case too.
12249 "test -x" rather than "test -f".
12250 (gcc_cv_ld): Likewise.
12251 (gcc_cv_nm): Heed program_prefix and program_transform_name.
12252 (gcc_cv_objdump): Likewise.
12253 * configure: Regenerate.
12254
12255 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12256
12257 * Makefile.in (attribs.o): Update.
12258 * attribs.c: Include langhooks.h.
12259 (decl_attributes): Use langhook.
12260 * c-decl.c (insert_default_attributes): Rename.
12261 * c-tree.h (c_insert_default_attributes): New.
12262 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
12263 (LANG_HOOKS_INITIALIZER): Update.
12264 * langhooks.h (struct lang_hooks): New hook.
12265 * tree.h (insert_default_attributes): Remove.
12266 objc:
12267 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
12268
12269 2002-03-27 Andreas Schwab <schwab@suse.de>
12270
12271 * config/i386/i386.c (classify_argument): Also check for
12272 QUAL_UNION_TYPE.
12273
12274 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12275
12276 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
12277 any more.
12278
12279 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
12280
12281 * i960.md (ret): Set PC.
12282 (nonlocal_goto): Fix expander.
12283 * builtins.c (epxand_builin_longjmp): Check that we've emitted
12284 some jump or call.
12285
12286 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
12287
12288 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
12289 of libcall regions.
12290
12291 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12292
12293 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
12294 assigning to BLOCK_FOR_INSN directly.
12295
12296 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
12297
12298 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
12299
12300 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12301
12302 * c-common.c (c_expand_expr): Fix prototype.
12303 * c-common.h (c_expand_expr): Always declare, update.
12304 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12305 * c-objc-common.c (c_objc_common_init): No global hook.
12306 * expr.c (expand_expr): Use langhook.
12307 * expr.h (enum expand_modifier): Conditionally declare.
12308 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
12309 (LANG_HOOKS_INITIALIZER): Update.
12310 * langhooks.c (lhd_expand_expr): New.
12311 * langhooks.h (struct lang_hooks): New hook.
12312 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
12313 (lang_independent_init): Don't default hook.
12314 objc:
12315 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12316
12317 2002-03-27 Richard Henderson <rth@redhat.com>
12318
12319 PR target/6054
12320 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
12321 TARGET_CONST_GP. Simplify conditions.
12322
12323 2002-03-27 Richard Henderson <rth@redhat.com>
12324
12325 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12326 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
12327 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
12328
12329 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
12330
12331 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
12332 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
12333 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
12334 Remove unnecessary masks.
12335 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
12336 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
12337 -mwindows, -mdll switches and their negations.
12338
12339 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12340
12341 * gcc-common.c (lang_mark_false_label_stack): Remove.
12342 * ggc.h (lang_mark_false_label_stack): Similarly.
12343
12344 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
12345
12346 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
12347
12348 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
12349 or __rtems_ is defined.
12350
12351 2002-03-26 Richard Henderson <rth@redhat.com>
12352
12353 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
12354 if a non-trivial load was emitted.
12355 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
12356 in high+extra+low case.
12357
12358 2002-03-26 Richard Henderson <rth@redhat.com>
12359
12360 * config.gcc (sparc*-solaris): Use float_format=sparc.
12361
12362 2002-03-26 Richard Henderson <rth@redhat.com>
12363
12364 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12365 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
12366 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
12367 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
12368 (WINT_TYPE_SIZE): Fix at 32.
12369
12370 2002-03-26 Richard Henderson <rth@redhat.com>
12371
12372 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
12373 until after eh landing pad generation.
12374 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
12375 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
12376
12377 2002-03-26 Richard Henderson <rth@redhat.com>
12378
12379 * expr.h (ADD_PARM_SIZE): One more convert for INC.
12380
12381 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
12382
12383 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
12384 and warning switches.
12385 (cc1_options): Likewise.
12386
12387 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
12388
12389 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
12390 Restore more of the signal context. Set no_reg_stack_frame.
12391 * config/ia64/unwind-ia64.c (unw_state_record):
12392 Add no_reg_stack_frame, comments.
12393 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
12394 (uw_update_context): Adjust bsp when unwinding from leaf,
12395 but not signal frame.
12396
12397 2002-03-26 David Edelsohn <edelsohn@gnu.org>
12398
12399 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
12400
12401 2002-03-26 Bob Wilson <bob.wilson@acm.org>
12402
12403 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
12404
12405 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
12406
12407 PR target/5621
12408 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
12409 "Add a pool_range attribute", which was lost during the ARM/Thumb
12410 merge.
12411
12412 2002-03-26 Bob Wilson <bob.wilson@acm.org>
12413
12414 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
12415 a register into the MAC16 accumulator.
12416
12417 2002-03-26 Andrew Cagney <ac131313@redhat.com>
12418
12419 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
12420 (Warning Options): Document -Wswitch-enum.
12421 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
12422 -Wswitch.
12423 (warn_switch_enum): Define variables.
12424 * flags.h (warn_switch_enum): Declare variables.
12425 * stmt.c (expand_end_case_type): When warn_switch_enum /
12426 -Wswitch-enum, perform switch checks.
12427 Fix PR c/5044.
12428
12429 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
12430
12431 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
12432 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
12433 (reload_muladdsi_compare0_scratch): Delete.
12434
12435 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
12436
12437 * doc/install.texi (*-*-freebsd*): Update.
12438
12439 2002-03-26 Richard Henderson <rth@redhat.com>
12440
12441 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
12442 (SUB_PARM_SIZE): Cast DEC to ssizetype.
12443
12444 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
12445 types from the normal argument frame.
12446
12447 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
12448 variable sized objects by reference.
12449 (sparc_va_arg): Receive them by reference too.
12450
12451 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
12452
12453 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
12454 code to not restoring global registers.
12455
12456 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
12457
12458 * Makefile.in (ggc-common.o): Update.
12459 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
12460 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12461 * c-tree.h (c_mark_tree): New.
12462 * ggc-common.c: Include langhooks.h.
12463 (gcc_mark_trees): Use new langhook.
12464 * ggc-callbacks.c: Delete file.
12465 * ggc.h (lang_mark_tree): Remove.
12466 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
12467 (LANG_HOOKS_INITIALIZER): Update.
12468 * langhooks.h (struct lang_hooks): New hook.
12469 objc:
12470 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12471
12472 2002-03-25 Zack Weinberg <zack@codesourcery.com>
12473
12474 * doc/cpp.texi: Exclude entire Top node from printed manual.
12475 Move option index after directive index. Insert page breaks
12476 before GFDL and concept index. Index environment variables
12477 with command line options.
12478 * doc/cppenv.texi: Use @vtable for environment variable list.
12479 Add paragraph explaining semantics of empty elements in path
12480 variables. Exclude a cross-reference to Fishkill from the
12481 manpage. Remove an unnecessary cross-reference of the entry
12482 right above the referer. Don't use @anchor in text that goes
12483 into manpage.
12484 * doc/cppopts.texi: Cross-reference the environment variables
12485 section, not the specific environment variable, for consistency.
12486
12487 2002-03-25 Richard Henderson <rth@redhat.com>
12488
12489 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
12490 anywhere in the block. Don't refer to insns that have been
12491 removed from the chain. Iterate backward through the new insns.
12492 Don't refer to edges that have been removed.
12493
12494 2002-03-26 Alan Modra <amodra@bigpond.net.au>
12495
12496 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
12497 test for overflow of constant.
12498
12499 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
12500
12501 PR target/2623
12502 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
12503 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
12504 these patterns on arm_archv4.
12505
12506 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
12507
12508 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
12509 int".
12510
12511 2002-03-25 Zack Weinberg <zack@codesourcery.com>
12512
12513 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
12514 float_handled, float_handler, float_signal, set_float_handler,
12515 and do_float_handler. Set handler for SIGFPE to crash_signal.
12516 * toplev.h: Don't prototype do_float_handler.
12517
12518 * c-lex.c: Fold parse_float into lex_number. Make warning
12519 about portability of hex float constants more informative, and
12520 don't issue it on top of a syntax error.
12521 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
12522 their callers.
12523 * real.h: Define REAL_VALUE_ABS here...
12524 * simplify-rtx.c: ... not here. Fold check_fold_consts,
12525 simplify_unary_real, simplify_binary_real, and
12526 simplify_binary_is2orm1 into their callers.
12527 * tree.c: Fold build_real_from_int_cst_1 into caller.
12528
12529 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
12530
12531 * tsystem.h: Include float.h here...
12532 * libgcc2.c: ... not here.
12533
12534 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
12535
12536 Fixes for: PR bootstrap/3591, target/5676
12537 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
12538 defined. Do not disable exceptions or rtti.
12539 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
12540 mcore.h. Disable exceptions and rtti, since they are not
12541 supported by EPOC.
12542
12543 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
12544
12545 * c-decl.c (maybe_build_cleanup): Remove.
12546 * expr.c (expand_expr): Use langhook.
12547 * langhooks-def.h (lhd_return_null_tree,
12548 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
12549 (LANGHOOKS_INITIALIZER): Update.
12550 * langhooks.c (lhd_return_null_tree): New.
12551 * langhooks.h (struct lang_hooks): New hook.
12552 * tree-inline.c (initialize_inlined_parameters): Use langhook.
12553 * tree.h (maybe_build_cleanup): Remove.
12554
12555 2002-03-25 Jakub Jelinek <jakub@redhat.com>
12556
12557 * regrename.c (build_def_use): Move recog_memoized
12558 before extract_insn.
12559
12560 2002-03-25 Jakub Jelinek <jakub@redhat.com>
12561
12562 PR target/6043
12563 * expr.c (emit_group_store): Handle storing into CONCAT.
12564
12565 2002-03-25 Jakub Jelinek <jakub@redhat.com>
12566
12567 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
12568 corresponding MATCH_DUP.
12569
12570 2002-03-24 Richard Henderson <rth@redhat.com>
12571
12572 * unroll.c (unroll_loop): Zero label_map.
12573
12574 * gcse.c: Include except.h.
12575 * Makefile.in (gcse.o): Update.
12576
12577 2002-03-24 Richard Henderson <rth@redhat.com>
12578
12579 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
12580 Do resolve_unique_section before shared data clause.
12581
12582 2002-03-24 Richard Henderson <rth@redhat.com>
12583
12584 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
12585
12586 2002-03-24 Richard Henderson <rth@redhat.com>
12587
12588 * recog.c (peephole2_optimize): Split blocks when EH insns are
12589 generated in the middle of a block. Do global life update if
12590 zapped EH edges.
12591
12592 2002-03-24 Richard Henderson <rth@redhat.com>
12593
12594 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
12595
12596 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
12597
12598 preprocessor/3951
12599 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
12600 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
12601 (init_dependency_output): Don't make no_output decision here.
12602
12603 2002-03-24 Andrew Cagney <ac131313@redhat.com>
12604
12605 * stmt.c (check_for_full_enumeration_handling): Remove tests of
12606 warn_switch. Update description.
12607 (expand_end_case_type): Call check_for_full_enumeration_handling
12608 when warn_switch.
12609
12610 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12611
12612 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
12613 (m68hc11_split_move): Call it to see if the source and destination
12614 operands use the same direction auto inc/dec mode, otherwise make the
12615 source an offsetable memory operand and generate an add.
12616
12617 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12618
12619 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
12620 register for operand 2.
12621 ("*subsi3_zero_extendqi"): Likewise.
12622 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
12623 bits so that it is compatible with a pop.
12624 ("*andhi3_gen"): Likewise.
12625 ("xorhi3"): Likewise.
12626
12627 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
12628
12629 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
12630 -pedantic here...
12631 (cpp_post_options): ... not here.
12632
12633 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
12634 Aldy Hernandez <aldyh@redhat.com>
12635
12636 Removal of separate preprocessor cpp0.
12637
12638 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
12639 cpp0, install-common): Update.
12640 * c-common.c (flag_preprocess_only): New.
12641 (c_common_init): Preprocess for -E.
12642 * c-common.h (flag_preprocess_only): New.
12643 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
12644 * c-objc-common.c (c_init_decl_processing): Exit quickly
12645 for NULL return from c_common_init.
12646 * cpplib.h (cpp_preprocess_file): New.
12647 * cppmain.c (main, general_init, pfile, progname): Remove.
12648 (do_preprocessing): Rename cpp_preprocess_file, don't call
12649 cpp_finish. Don't close stdout here.
12650 (setup_callbacks): Update prototype.
12651 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
12652 Update.
12653 * tradcpp.c (main): Ignore -quiet.
12654 objc:
12655 * lang-specs.h (default_compilers): Preprocess with cc1obj.
12656
12657 2002-03-24 Richard Henderson <rth@redhat.com>
12658
12659 PR optimization/5742
12660 * machmode.def: Add inner mode field to complex modes.
12661 * config/mips/mips.c (mips_function_value): Always define. Add
12662 new argument to handle libcalls.
12663 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
12664 (FUNCTION_VALUE): Likewise.
12665 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
12666 * config/mips/mips-protos.h: Update.
12667
12668 2002-03-23 Richard Henderson <rth@redhat.com>
12669
12670 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
12671 * config/sparc/sparc-protos.h: Update.
12672 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
12673
12674 2002-03-23 Richard Henderson <rth@redhat.com>
12675
12676 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
12677 _start or _init begins the text segment.
12678
12679 2002-03-23 David Edelsohn <edelsohn@gnu.org>
12680
12681 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
12682 not HOST_WIDEST_INT.
12683 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
12684
12685 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
12686
12687 PR java/5489
12688 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
12689 operand argument to output_return_instruction.
12690 * arm.c (arm_print_operand, case 'd'): If the operand is
12691 const_true_rtx then just return.
12692 (arm_print_operand, case 'D'): If the operand is const_true_rtx
12693 then abort.
12694
12695 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12696
12697 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
12698 (Warning Options): Document -Wswitch-default.
12699 * toplev.c (W_options): Add -Wswitch-default. Update comment on
12700 -Wswitch.
12701 (warn_switch_default): Define variable.
12702 (warn_switch): Update comment.
12703 * flags.h (warn_switch_default): Declare variable.
12704 (warn_switch): Update comment.
12705 * stmt.c (expand_end_case): Check for and, when
12706 warn_switch_no_default, warn of a missing default case.
12707
12708 2002-03-23 Alan Modra <amodra@bigpond.net.au>
12709
12710 * real.h (N): Special case 128 bit doubles.
12711
12712 * combine.c (simplify_comparison): When widening modes, ignore
12713 sign extension on CONST_INTs.
12714
12715 2002-03-22 Bob Wilson <bob.wilson@acm.org>
12716
12717 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
12718 passed to adjust_address. Fix comment formatting.
12719
12720
12721 2002-03-22 Zack Weinberg <zack@codesourcery.com>
12722
12723 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
12724 Always make REAL_VALUE_TYPE a struct containing an array of
12725 HOST_WIDE_INT, not a double. Tidy up the code deciding how
12726 big it is. Don't declare or use union real_extract.
12727
12728 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
12729 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
12730 (print_operand), config/arm/arm.c (output_move_double),
12731 config/arm/arm.md (consttable_4, consttable_8),
12732 config/romp/romp.c (output_fpops), config/s390/s390.h
12733 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
12734 (xtensa_output_literal): Don't use union real_extract.
12735
12736 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
12737 (sfmode_constant_to_ulong), config/ns32k/merlin.h
12738 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
12739 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
12740 (PRINT_OPERAND): Don't use local version of union
12741 real_extract.
12742
12743 * config/convex/convex.c (check_float_value), config/vax/vax.c
12744 (vax_float_literal), config/m88k/m88k.md (divdf3),
12745 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
12746 config/pdp11/pdp11.c (output_move_quad): Don't do host
12747 arithmetic on target floating point quantities.
12748
12749 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
12750 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
12751
12752 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
12753 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
12754
12755 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
12756 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
12757 INFINITY.
12758 * print-rtl.c (print_rtx): Disable code which needs
12759 floating-point emulator.
12760 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
12761 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
12762 depending on HOST_FLOAT_FORMAT to be defined properly.
12763
12764 * config/1750a/1750a.c (get_double, float_label): Delete.
12765 (print_operand): Delete huge commented-out chunk. Use
12766 REAL_VALUE_TO_DECIMAL.
12767 * config/1750a/1750a-protos.h: Delete prototypes of deleted
12768 functions.
12769 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
12770 IEEE_FLOAT_FORMAT.
12771 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
12772 Use REAL_VALUE_TO_DECIMAL as ELF version does.
12773 * config/m88k/m88k.c (real_power_of_2_operand,
12774 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
12775 real_extract out of the union; run the input through
12776 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
12777 from that into the union.
12778 * config/pdp11/pdp11.c (output_move_double): Rearrange
12779 parentheses to make automatic indenter happy.
12780
12781 * doc/tm.texi (Cross-compilation): Rename node to "Floating
12782 Point" and rewrite to describe current situation. Also adjust
12783 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
12784 match code.
12785 * doc/rtl.texi: Adjust cross reference.
12786
12787 2002-03-22 Bob Wilson <bob.wilson@acm.org>
12788
12789 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
12790 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
12791 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
12792 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
12793 prevent use of sp as a reload register.
12794 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
12795 non_acc_reg_operand.
12796 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
12797 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
12798 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
12799 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
12800
12801 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
12802
12803 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
12804 * cpplex.c (unterminated): Delete.
12805 (parse_string): No string literal may extend over multiple
12806 lines. Suppress the error when preprocessing assembly.
12807 * cppmain.c (scan_translation_unit): Strings are single-line.
12808
12809 * doc/cpp.texi: Update to match.
12810
12811 2002-03-22 Jakub Jelinek <jakub@redhat.com>
12812
12813 PR optimization/5854
12814 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
12815 Shut up warnings.
12816 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
12817 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
12818 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
12819 const0 if scratch register was not allocated.
12820 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
12821 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
12822 with GEN_INT (...).
12823 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
12824 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
12825 with GEN_INT (...) everywhere. Remove constraints in define_split
12826 patterns.
12827 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
12828 require scratch register for setting 0 into regs/non-pushable memory.
12829
12830 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
12831
12832 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
12833 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
12834
12835 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
12836
12837 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
12838 * cppinit.c (cpp_create_reader): On by default.
12839 (cpp_handle_option): Handle -W[no-]endif-labels.
12840 (cpp_post_options): Also enable if -pedantic.
12841 * cpplib.c (do_else): Use it.
12842 (do_endif): Likewise.
12843 * doc/cppopts.texi: Document new option.
12844 * doc/invoke.texi: Document new option.
12845
12846 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
12847
12848 * config/i386/i386.c, config/i386/i386.md: Change all occurences
12849 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
12850
12851 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
12852
12853 * flow.c (calculate_global_regs_live): Clear aux fields of
12854 ENTRY and EXIT.
12855
12856 2002-03-22 Jakub Jelinek <jakub@redhat.com>
12857
12858 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
12859 REG or MEM subregs, pass rtx * instead of rtx to it.
12860 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
12861 rtx * instead of rtx to alter_subreg.
12862 * config/m32r/m32r.c (gen_split_move_double): Likewise.
12863 * config/pj/pj.c (pj_output_rval): Likewise.
12864
12865 2002-03-22 Richard Henderson <rth@redhat.com>
12866
12867 PR target/3177
12868 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
12869 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
12870 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
12871 (ia64_expand_prologue): Look at int_regs, not words, for number
12872 of incomming int regs.
12873
12874 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
12875
12876 * expr.c (expand_expr): A RESULT_DECL is part of a call.
12877
12878 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
12879
12880 * toplev.c (flag_loop_optimize, flag_crossjumping):
12881 New static variables.
12882 (rest_of_compilation): Conditionalize crossjumping and
12883 loop optimizer.
12884 (parse_options_and_default_flags): Default loop_optimize and
12885 crossjumping.
12886 (lang_independent_options): Add -fcrossjumping and -floop-optimize
12887 * invoke.texi (crossjumping, loop-optimize): Document.
12888
12889 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
12890
12891 * real.c (eiisneg): Move outside #ifdef NANS.
12892
12893 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
12894
12895 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
12896 frequencies match; avoid match on different loop depths.
12897 (try_crossjump_to_bb): Kill tests that no longer brings time
12898 savings.
12899 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
12900 updating code.
12901 (split_edge): Likewise.
12902
12903 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
12904 variable.
12905
12906 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
12907 * cfgrtl.c: Include insn-config.h
12908 (split_block) Dirtify block in presence of conditional execution
12909
12910 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
12911
12912 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
12913 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
12914 (function_arg): Constify CUMULATIVE_ARGS.
12915 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
12916 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
12917 (UNITS_PER_DOUBLE): New macro.
12918 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
12919 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
12920 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
12921 fp_regs and stack_words.
12922 (EABI_FLOAT_VARARGS_P): New macro.
12923 * config/mips/mips.c (struct mips_arg_info): New.
12924 (mips_arg_info): New function.
12925 (function_arg_advance): Use it. Add adjustment instructions here
12926 rather than in function_arg.
12927 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
12928 for VOIDmode at the beginning of the function.
12929 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
12930 (function_arg_pass_by_reference): Likewise.
12931 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
12932 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
12933 (mips_va_start): Likewise. Use the new stack_words field of
12934 CUMULATIVE_ARGS to set up overflow area. Reformat.
12935 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
12936 doubles and other types, aligning the overflow pointer for non-doubles
12937 too. Remove some code duplication. Replace hard-coded constants.
12938
12939 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
12940
12941 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
12942 (CLASS_UNITS): Undefine.
12943 (CLASS_MAX_NREGS): Use FP_INC.
12944 * config/mips/mips.c (compute_frame_size): Likewise.
12945 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
12946
12947 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
12948
12949 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
12950 prototype, and handle lexing numbers and identifiers.
12951 (parse_identifier): Update to new form of parse_slow.
12952 (parse_number): Fast path only, use parse_slow otherwise.
12953 (_cpp_lex_direct): Update calls to parse_number.
12954
12955 2002-03-21 DJ Delorie <dj@redhat.com>
12956
12957 * bb-reorder.c (make_reorder_chain_1): Protect against
12958 when redundant edges are omitted.
12959 * predict.c (dump_prediction): Likewise.
12960
12961 2002-03-21 Richard Henderson <rth@redhat.com>
12962
12963 PR target/5996
12964 * fixinc/inclhack.def (solaris_stdio_tag): New.
12965 * fixinc/fixincl.x: Regenerate.
12966
12967 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
12968
12969 PR c/5597
12970 * c-typeck.c (process_init_element): Flag non-static
12971 initialization of a flexible array member as illegal.
12972
12973 2002-03-22 Alan Modra <amodra@bigpond.net.au>
12974
12975 * config/rs6000/t-linux64: New.
12976 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
12977 t-ppccomm. Use t-rs6000 and t-linux64.
12978 (powerpc64-*-gnu* <tmake_file>): Likewise.
12979 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
12980 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
12981 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
12982
12983 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
12984
12985 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
12986 flag_really_no_inline instead of optimize == 0.
12987
12988 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
12989
12990 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
12991
12992 * flags.h (flag_really_no_inline): New.
12993
12994 * c-common.c (c_common_post_options): Initialize
12995 flag_really_no_inline.
12996
12997 * toplev.c (flag_really_no_inline): New.
12998
12999 2002-03-21 Jakub Jelinek <jakub@redhat.com>
13000
13001 * config/avr/avr.md (length): Fix length computation for
13002 conditional branches.
13003
13004 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
13005
13006 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
13007 sdbout.o, profile.o): Update.
13008 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
13009 langhook.
13010 * c-common.h (gettags): Move here from tree.h.
13011 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
13012 insert_block, getdecls, kept_level_p, global_bindings_p): New.
13013 * dbxout.c (dbxout_init): Use getdecls langhook.
13014 * expr.c (expand_expr): Use insert_block langhook.
13015 * fold-const.c: Include langhooks.h.
13016 (fold_range_test, fold_binary_op_with_conditional_arg,
13017 fold): Use global_bindings_p langhook.
13018 * integrate.c (expand_inline_function): Use insert_block langhook.
13019 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
13020 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
13021 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
13022 LANG_HOOKS_GETDECLS): New.
13023 (LANG_HOOKS_INITIALIZER): Update.
13024 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
13025 langhook.
13026 * langhooks.h (struct lang_hooks_for_decls): New.
13027 (struct lang_hooks): Update.
13028 * profile.c: Include langhooks.h.
13029 (output_func_start_profiler): Use new langhooks.
13030 * sdbout.c: Include langhooks.h.
13031 (sdbout_init, sdbout_finish): Use getdecls langhook.
13032 * stmt.c: Include langhooks.h.
13033 (expand_fixup, fixup_gotos): Use new langhooks.
13034 * stor-layout.c: Include langhooks.h.
13035 (variable_size): Use global_bindings_p langhook.
13036 * toplev.c (compile_file): Use getdecls langhook.
13037 * tree-inline.c (remap_block): Use insert_block langhook.
13038 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
13039 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
13040
13041 2002-03-21 Richard Henderson <rth@redhat.com>
13042
13043 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
13044 constants in .data when -fpic.
13045
13046 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13047
13048 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
13049 where appropriate.
13050
13051 2002-03-21 Tom Tromey <tromey@redhat.com>
13052
13053 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
13054
13055 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13056
13057 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
13058
13059 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
13060
13061 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
13062 Richard Henderson <rth@redhat.com>
13063
13064 PR c/5354
13065 * c-common.c (c_expand_expr): Preserve result of a statement
13066 expression if needed.
13067
13068 2002-03-21 Jakub Jelinek <jakub@redhat.com>
13069
13070 PR bootstrap/4195
13071 * genrecog.c (maybe_both_true_mode): Remove.
13072 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
13073 * machmode.def (Pmode): Likewise.
13074
13075 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
13076
13077 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
13078 (nonlocal_mentioned_p_1): New function.
13079 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
13080 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
13081 (mark_constant_function): Recognize pure functions.
13082 * rtl.h (global_reg_mentioned_p): New prototype.
13083 * rtlanal.c (global_reg_mentioned_p,
13084 global_reg_mentioned_p_1): New function.
13085
13086 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13087
13088 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
13089 UNIX assert.h.
13090 * fixinc/fixincl.x: Regenerate.
13091
13092 2002-03-20 Jason Merrill <jason@redhat.com>
13093
13094 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
13095
13096 2002-03-20 Michael Meissner <meissner@redhat.com>
13097
13098 * doc/invoke.texi (Optimize Options): Document that -O2 sets
13099 -fstrict-aliasing.
13100
13101 2002-03-20 Bob Wilson <bob.wilson@acm.org>
13102
13103 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
13104 ".literal_position" directive before the constant pool.
13105
13106 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13107
13108 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
13109 Add Craig Rodrigues.
13110 Add Brad Lucier to testers.
13111
13112 2002-03-20 Jakub Jelinek <jakub@redhat.com>
13113
13114 PR target/4792
13115 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
13116 to if_then_else.
13117 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
13118 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
13119 instead of insn_extract.
13120
13121 2002-03-20 Jakub Jelinek <jakub@redhat.com>
13122
13123 PR bootstrap/4192
13124 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
13125
13126 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
13127 stmt if some case has been output.
13128
13129 2002-03-20 Jakub Jelinek <jakub@redhat.com>
13130
13131 PR c/5972
13132 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
13133 movsfcc_1, movdfcc_1): Add %O2.
13134 * config/i386/i386.c (print_operand): Handle %ON.
13135 Print . before float condition codes in Sun as cmov syntax.
13136 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
13137 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
13138 no longer true.
13139
13140 2002-03-20 Philip Blundell <pb@nexus.co.uk>
13141
13142 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
13143 return instruction if PC was popped.
13144
13145 2002-03-20 Bob Wilson <bob.wilson@acm.org>
13146
13147 * config/xtensa/xtensa.md: Remove unused type attributes.
13148 (adddi_carry, subddi_carry): Change type attribute to "multi".
13149
13150 2002-03-19 Dale Johannesen <dalej@apple.com>
13151
13152 PR optimization/5999, middle-end/5731
13153 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
13154 multiplications by reciprocals.
13155
13156 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
13157
13158 * Makefile.in: Update.
13159 * c-common.c: Include langhooks.h.
13160 (inline_forbidden_p): Use new hook.
13161 * diagnostic.c: Include langhooks.h.
13162 (format_with_decl, announce_function,
13163 default_print_error_function): Use new hook.
13164 * dwarf2out.c (dwarf2_name): Use new hook.
13165 * function.c: Include langhooks.h.
13166 (init_function_start): Use new hook.
13167 * langhooks-def.h (lhd_decl_printable_name): New.
13168 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
13169 (LANGHOOKS_INITIALIZER): Update.
13170 * langhooks.c (lhd_decl_printable_name): New.
13171 * langhooks.h (struct lang_hooks): New hook.
13172 * toplev.c (decl_name, decl_printable_name): Remove.
13173 (open_dump_file): Use new hook.
13174 (process_options): Remove old hook.
13175 * tree.h (decl_printable_name): Remove.
13176 objc:
13177 * objc-act.c (objc_init): Remove old hook.
13178 (objc_printable_name): Export.
13179 * objc-act.h (objc_printable_name): New.
13180 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
13181
13182 2002-03-19 Jim Blandy <jimb@redhat.com>
13183
13184 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
13185 the start_source_file debug hook, not the current line number.
13186
13187 2002-03-19 Richard Henderson <rth@redhat.com>
13188
13189 * flow.c (EH_USES): Provide default.
13190 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
13191 * doc/tm.texi (EH_USES): New.
13192
13193 * config/ia64/ia64.c (ia64_eh_uses): New.
13194 * config/ia64/ia64-protos.h: Update.
13195 * config/ia64/ia64.h (EH_USES): New.
13196
13197 2002-03-19 Richard Henderson <rth@redhat.com>
13198
13199 * varasm.c (output_constant_def): Fix stupid typo.
13200
13201 2002-03-19 Richard Henderson <rth@redhat.com>
13202
13203 PR 5879
13204 * except.c (current_function_has_exception_handlers): New.
13205 * except.h: Declare it.
13206 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
13207 Combine tests that disable all sibcalls for the function.
13208
13209 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
13210
13211 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
13212 for INTEGER_CST.
13213
13214 2002-03-19 Richard Henderson <rth@redhat.com>
13215
13216 PR 5977, 5991
13217 * config/ia64/ia64.c: Revert 2002-03-01 patch.
13218 * config/ia64/ia64.h (INIT_EXPANDERS): New.
13219
13220 2002-03-19 Jim Blandy <jimb@redhat.com>
13221
13222 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
13223 name, even if the replacement list contains no tokens, as required
13224 by Dwarf.
13225
13226 2002-03-19 Jason Merrill <jason@redhat.com>
13227
13228 * varasm.c (globalize_decl): Get the name from the RTL, not
13229 DECL_ASSEMBLER_NAME.
13230
13231 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
13232
13233 2002-03-19 Bob Wilson <bob.wilson@acm.org>
13234
13235 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
13236 subdi_carry): Define.
13237
13238 2002-03-19 David Edelsohn <edelsohn@gnu.org>
13239
13240 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
13241 about -fpic/-fPIC if extra_warnings set.
13242
13243 2002-03-19 David Edelsohn <edelsohn@gnu.org>
13244
13245 * expr.c (expand_expr): Sign-extend CONST_INT generated from
13246 TREE_STRING_POINTER.
13247 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
13248
13249 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13250
13251 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
13252 in favor of SP if FRAME_POINTER_REQUIRED is false.
13253
13254 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
13255
13256 * emit-rtl.c (gen_int_mode): New function.
13257 * rtl.h: Prototype for it.
13258 * combine.c (make_extraction, simplify_comparison), expmed.c
13259 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
13260 (convert_modes, store_field), optabs.c (expand_fix),
13261 simplify-rtx.c (neg_const_int, simplify_unary_real),
13262
13263 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
13264 Use it instead of GEN_INT (trunc_int_for_mode (...)).
13265
13266 2002-03-19 Jakub Jelinek <jakub@redhat.com>
13267
13268 PR c/5656
13269 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
13270 convert_parm_for_inlining.
13271 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
13272 Define.
13273 * langhooks-def.h: Likewise.
13274 * objc/objc-lang.c: Likewise.
13275 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
13276 function.
13277 * tree-inline.c (initialize_inlined_parameters):
13278 Call convert_parm_for_inlining lang hook if needed.
13279 * c-typeck.c (c_convert_parm_for_inlining): New function.
13280 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
13281
13282 2002-03-18 Mark Mitchell <mark@codesourcery.com>
13283
13284 * calls.c (precompute_arguments): Do not assume that temporaries
13285 can be destroyed after expanding the argument.
13286 (expand_call): Likewise.
13287
13288 2002-03-15 Eric Christopher <echristo@redhat.com>
13289
13290 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
13291 Fix register preference on last change.
13292 * config/mips/mips.c (mips_return_in_memory): New function.
13293 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
13294 * config/mips/mips-protos.h: Declare.
13295 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
13296 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
13297
13298 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
13299
13300 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
13301 a register too.
13302 (anddi3, iorsi3): Likewise.
13303
13304 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
13305 use %gprel for symbols that are going to be placed in linkonce
13306 sections.
13307
13308 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
13309 RETURN_ADDRESS_POINTER_REGNUM to $ra.
13310 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
13311 not needed. Disregard leaf_function_p().
13312 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
13313 mips16 frame pointer.
13314 * config/mips/mips.md (store ra): Only to small SP offsets.
13315 2001-08-22 Graham Stott <grahams@redhat.com>
13316 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
13317 return a REG rtx for the return address register.
13318
13319 2002-03-18 Bob Wilson <bob.wilson@acm.org>
13320
13321 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
13322 constant-pool addresses as "mode-dependent".
13323 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
13324
13325 2002-03-18 Jakub Jelinek <jakub@redhat.com>
13326
13327 PR target/5740
13328 * expr.c (emit_group_load): Use extract_bit_field if
13329 needed for CONCAT arguments.
13330
13331 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
13332
13333 PR target/4863
13334 * arm.md (tablejump): Make this a define_expand. For PIC add the
13335 offset to the base of the table.
13336 (thumb_tablejump): Matcher for Thumb tablejump insn.
13337 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
13338 as the difference of two labels.
13339 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13340 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
13341 tables in the code.
13342 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
13343 * arm.c (get_jump_table_size): If the table is not in the text
13344 section, return zero.
13345
13346 2002-03-18 Bernd Schmidt <bernds@redhat.com>
13347
13348 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
13349 of gen_rtx_SUBREG.
13350 (arm_reload_out_hi): Use gen_lowpart instead of
13351 gen_rtx_SUBREG to access QImode components.
13352 * config/arm/arm.md: Disable zero_extend split for QImode
13353 subregs in BIG_ENDIAN mode.
13354 (storehi_bigend): Match use of least significant byte.
13355 (storeinthi): Remove extraneous SUBREG.
13356 Add missing construction of operands[2].
13357 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
13358 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
13359 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
13360
13361 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
13362
13363 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
13364 any_operand.
13365
13366 2002-03-17 Richard Henderson <rth@redhat.com>
13367
13368 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
13369 explicitly.
13370
13371 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
13372
13373 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
13374 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
13375
13376 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13377
13378 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
13379
13380 * predict.c (estimate_bb_frequencies): Delete unused variables.
13381
13382 2002-03-17 Richard Henderson <rth@redhat.com>
13383
13384 * config/ia64/ia64.c (ia64_attribute_table): Move before
13385 targetm definition. Make static.
13386
13387 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
13388
13389 * c-common.h (yyparse, c_common_parse_file): New.
13390 * c-lang.c: Include c-common.h.
13391 (LANG_HOOKS_PARSE_FILE): Redefine.
13392 * c-lex.c: Include c-common.h.
13393 (yyparse): Rename c_common_parse_file. Call yyparse.
13394 * c-parse.in (yyparse): Remove macro.
13395 * c-tree.h (yyparse_1): Remove.
13396 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
13397 (LANG_HOOKS_INITIALIZER): Update.
13398 * langhooks.h (struct lang_hoooks): New hook parse_file.
13399 * toplev.c (compile_file): Use parse_file hook.
13400 * tree.h (yyparse): Remove.
13401 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
13402
13403 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
13404
13405 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
13406 float_truncate, not fix.
13407 ("*truncdfsf2_real"): Ditto.
13408 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
13409
13410 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
13411
13412 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
13413
13414 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
13415 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
13416 where appropriate. Make the second reference to
13417 leaf_function_p a function call, as intended. Reindented.
13418
13419 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
13420 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
13421
13422 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
13423 add register to non-constant into sp.
13424
13425 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
13426 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
13427 (mips16_gp_pseudo_rtx): Lose.
13428 (INIT_EXPANDERS): Deleted.
13429 * config/mips/mips.c (mips_init_machine_status): New.
13430 (mips_free_machine_status): New.
13431 (mips_mark_machine_status): New.
13432 (override_options): Set them.
13433 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
13434 (struct machine_function): ... new. Replaced all references.
13435 (mips_add_gc_roots): Don't mark them.
13436 (embedded_pic_fnaddr_reg): New, extracted from...
13437 (embedded_pic_offset): ... here.
13438 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
13439 (movsi): Likewise.
13440
13441 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
13442
13443 * cppinit.c: Revert -MD removal.
13444
13445 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13446
13447 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
13448 soft registers by default for 68HC12.
13449 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
13450 when compiling with -fomit-frame-pointer.
13451 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
13452 (expand_epilogue): Likewise.
13453 (m68hc11_gen_rotate): Use exg when rotating by 8.
13454
13455 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13456
13457 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
13458 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
13459 (splits): Remove unused add splits.
13460 ("*addhi3_68hc12"): Tune constraints.
13461 ("addhi_sp"): Try to use X instead of Y in all cases and if the
13462 constant fits in 8-bits and D is dead use abx/aby instructions.
13463 ("*addhi3"): Remove extern declaration of ix_reg.
13464 ("*subsi3"): Optimize and provide new split.
13465 ("subhi3"): Cleanup.
13466 ("*subhi3_sp"): Avoid saving X if we know it is dead.
13467 (arith splits): For 68hc12 save the address register on the stack
13468 and do the arithmetic operation with a pop.
13469
13470 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13471
13472 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
13473 allocating QImode in address registers.
13474 ("*movqi_m68hc11"): Likewise.
13475
13476 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
13477
13478 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
13479
13480 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
13481
13482 * cppinit.c (print_help): Display -MD and -MMD.
13483 Don't display usage string. Update assertion syntax and
13484 typo.
13485 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
13486 (cpp_handle_option): Update.
13487
13488 2002-03-15 Chris Demetriou <cgd@broadcom.com>
13489
13490 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
13491 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
13492 and define it so that regardless of target CPU size,
13493 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
13494 of "int" rather than "long."
13495
13496 2002-03-15 Richard Henderson <rth@redhat.com>
13497
13498 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
13499 size as a tree.
13500
13501 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13502
13503 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
13504 ("tstqi" split): Avoid using memory for tstqi on address register.
13505 (splits): Remove constraints.
13506 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
13507 ("cmpdf", "cmpsf"): Remove since not used.
13508 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
13509 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
13510
13511 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13512
13513 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
13514 ("neghi2"): Tighten constraints.
13515 ("one_cmplsi2"): Optimize and simplify split.
13516 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
13517
13518 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13519
13520 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
13521 and split of AND operation to clear the upper bits.
13522 ("*logicalsi3_zextqi"): Likewise.
13523 ("*logicallhi3_zexthi_ashift8"): Likewise.
13524 ("*logicalsi3_silshr16"): Likewise.
13525 ("logicalsi3_silshl16"): Likewise.
13526 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
13527
13528 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13529
13530 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
13531 (m68hc11_indirect_p): New function.
13532 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
13533 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
13534 TARGET_M6812.
13535 (asm_print_register): Likewise.
13536 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
13537 (m68hc11_indirect_p): Declare.
13538 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
13539 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
13540 (TARGET_SWITCHES): New option -mrelax.
13541 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
13542 destination.
13543 ("iorsi3", "xorsi3"): Likewise.
13544 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
13545 ("*andhi3_mem"): New to handle destination in memory with bclr
13546 and a scratch register.
13547 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
13548 ("*andhi3_const"): New when operand2 is constant.
13549 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
13550 ("*andhi3_gen"): Cleanup of the old "andhi3".
13551 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
13552 ("xorqi3"): Update constraints.
13553
13554 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13555
13556 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
13557 for reg_equiv_memory_loc when the operand is a register that does
13558 not get a hard register (stack location).
13559 (tst_operand): After reload, accept all memory operand.
13560 (symbolic_memory_operand): Fix detection of symbolic references.
13561 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
13562 accept symbols and any constant.
13563
13564 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13565
13566 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
13567 note on the insn that sets the soft frame register.
13568 (must_parenthesize): ix and iy are also reserved names.
13569 (print_operand_address): One more place where parenthesis are required
13570 to avoid confusion with register names.
13571 (m68hc11_gen_movhi): Allow push of stack pointer.
13572 (m68hc11_check_z_replacement): Fix handling of parallel with a
13573 clobber.
13574 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
13575 the replacement register is.
13576 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
13577 and D8_REGS classes.
13578 (MODES_TIEABLE_P): All modes are tieable except QImode.
13579
13580 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13581
13582 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
13583 (___subdi3): Likewise.
13584 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
13585 (__map_data_section): Optimize 68hc11 case.
13586
13587 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
13588
13589 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
13590 than a shift to avoid adding a register with itself.
13591 (m68hc11_memory_move_cost): Take into account NO_REGS.
13592 (m68hc11_register_move_cost): Update and use memory move cost
13593 for soft registers.
13594 (m68hc11_address_cost): Make cost of valid offset not 0 so that
13595 it gives more opportunities to cse to optimize.
13596 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
13597 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
13598
13599 2002-03-15 Mark Mitchell <mark@codesourcery.com>
13600
13601 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
13602 * c-common.def (CLEANUP_STMT): New tree node.
13603 * c-common.h (CLEANUP_DECL): New macro.
13604 (CLEANUP_EXPR): Likewise.
13605 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
13606 * expr.c (expand_expr): Tidy.
13607 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
13608 * tree-inline.c (initialize_inlined_parameters): Clean up
13609 new local variables.
13610
13611 2002-03-15 Jakub Jelinek <jakub@redhat.com>
13612
13613 PR bootstrap/4128
13614 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
13615 before movrXX only, use reg_overlap_mentioned_p.
13616 Only special case NE if just one insn can be generated.
13617
13618 2002-03-15 Jason Merrill <jason@redhat.com>
13619
13620 * varasm.c (assemble_variable): Call resolve_unique_section before
13621 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
13622 of error_mark_node.
13623
13624 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
13625
13626 PR target/5170
13627 * arm.md (split pattern for thumb shiftable immediates): Add comment
13628 explaining non-obvious test.
13629
13630 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
13631
13632 PR target/5712
13633 * arm.md (movaddr, movaddr_insn): Delete.
13634
13635 2002-03-15 Jason Merrill <jason@redhat.com>
13636
13637 * toplev.c (wrapup_global_declarations): Clarify variable handling.
13638 -fkeep-static-consts doesn't apply to comdats.
13639
13640 2002-03-14 Richard Henderson <rth@redhat.com>
13641
13642 * c-decl.c: Include c-pragma.h.
13643 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
13644 (finish_function): Tidy.
13645 * c-pragma.c: Include c-common.h.
13646 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
13647 (handle_pragma_weak): Use them.
13648 (init_pragma): Register pending_weaks.
13649 * c-pragma.h (maybe_apply_pragma_weak): Declare.
13650 * print-tree.c (print_node): Print DECL_WEAK.
13651 * varasm.c (mark_weak_decls): Remove.
13652 (remove_from_pending_weak_list): Remove.
13653 (add_weak): Remove.
13654 (asm_emit_uninitialised): Call globalize_decl for weak commons.
13655 (weak_decls): Make a tree_list.
13656 (declare_weak): Cons weak_decls directly.
13657 (globalize_decl): Remove weak_decls elements directly.
13658 (weak_finish): Simplify weak_decls walk. Don't weaken unused
13659 symbols. Don't pretend to handle aliases.
13660 (init_varasm_once): Update weak_decls registry.
13661 * Makefile.in: Update dependencies.
13662
13663 2002-03-14 Richard Henderson <rth@redhat.com>
13664
13665 PR target/5312
13666 * config/ia64/ia64.c: Include tm_p.h last.
13667 (gen_nop_type): Remove duplicate definition.
13668 (cycle_end_fill_slots): Set sched_data for second L slot.
13669 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
13670 (nop_cycles_until): Fix typos.
13671
13672 2002-03-15 Jakub Jelinek <jakub@redhat.com>
13673
13674 PR optimization/5891
13675 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
13676
13677 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
13678
13679 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
13680 descriptors correctly.
13681
13682 2002-03-14 Michael Meissner <meissner@redhat.com>
13683
13684 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
13685 100, allowing MAX_UNROLLED_INSNS to be overridden.
13686
13687 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
13688 --param.
13689
13690 * unroll.c (params.h): Include.
13691 (MAX_UNROLLED_INSNS): Delete, now in params.h.
13692
13693 * doc/invoke.texi (--param max-unroll-insns): Document.
13694
13695 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
13696
13697 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
13698
13699 * arm.md: Fix warnings about constraints in peepholes and splits.
13700
13701 2002-03-14 Zack Weinberg <zack@codesourcery.com>
13702
13703 * cpphash.h (struct lexer_state): Remove line_extension member.
13704 * cpplib.c (dequote_string, do_linemarker): New functions.
13705 (linemarker_dir): New data object.
13706 (DIRECTIVE_TABLE): No longer need to interpret #line in
13707 preprocessed source. Delete obsolete comment about return
13708 values of handlers.
13709 (end_directive, directive_diagnostics, _cpp_handle_directive):
13710 Don't muck with line_extension.
13711 (directive_diagnostics): No need to issue warnings for
13712 linemarkers here.
13713 (_cpp_handle_directive): Issue warnings for linemarkers here,
13714 when appropriate. Dispatch linemarkers to do_linemarker, not
13715 do_line.
13716 (do_line): Code to handle linemarkers split out to do_linemarker.
13717 Convert escape sequences in filename argument, both places.
13718
13719 * cppmacro.c (quote_string): Rename cpp_quote_string and
13720 export. All callers changed.
13721 * cpplib.h (cpp_quote_string): Prototype.
13722 * cppmain.c (print_line): Call cpp_quote_string on to_file
13723 before printing it.
13724
13725 * doc/cpp.texi: Document that escapes are now interpreted in
13726 #line and in linemarkers, and that non-printing characters are
13727 converted to octal escapes when linemarkers are generated.
13728
13729 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
13730
13731 * emit-rtl.c (try_split): Use delete_insns.
13732 * recog.c (split_all_insns): Fix terminating condition.
13733
13734 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
13735 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
13736
13737 PR target/5828
13738 * arm.c (arm_output_epilogue): Fix floating-point register save
13739 adjustment when using a frame pointer.
13740
13741 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
13742
13743 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
13744 * config/mips/mips.c (compute_frame_size): Retrofit them here.
13745 (save_restore_insns, mips_expand_epilogue): And here.
13746 (build_mips16_call_stub): And here.
13747 (mips_function_value): Use the new macros to decide whether a single
13748 or complex float can be returned in floating-point registers. Return
13749 a parallel rtx in the complex case.
13750
13751 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
13752
13753 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
13754 call after liveness analysis.
13755
13756 * recog.c (split_insn): Use delete_insn_and_edges.
13757
13758 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
13759 instructions to have branch prediction notes.
13760 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
13761
13762 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
13763
13764 * configure.in: Don't pass -Wno-long-long to a ADA compiler
13765 that doesn't support it.
13766 * configure: Regenerate.
13767
13768 2002-03-13 Jakub Jelinek <jakub@redhat.com>
13769
13770 PR target/5626
13771 * config/sparc/sparc.md (normal_branch, inverted_branch,
13772 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
13773 inverted_fp_branch): Adjust calls to output_cbranch.
13774 Set length attribute.
13775 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
13776 output_v9branch. Set length attribute.
13777 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
13778 predicates.
13779 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
13780 (output_cbranch): Likewise. Handle far branches.
13781 (output_v9branch): Handle far branches.
13782 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
13783 Adjust prototypes.
13784 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
13785 noov_compare64_op predicates.
13786
13787 2002-03-13 Jason Merrill <jason@redhat.com>
13788
13789 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
13790 into the function and constify it.
13791 * gthr-dce.h, gthr-solaris.h: Likewise.
13792
13793 2002-03-13 David Edelsohn <edelsohn@gnu.org>
13794
13795 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
13796 * config/rs6000/rs6000.c (rs6000_va_arg): Use
13797 std_expand_builtin_va_arg if not ABI_V4.
13798
13799 2002-03-13 Jason Merrill <jason@redhat.com>
13800
13801 * varasm.c (globalize_decl): New fn.
13802 (assemble_start_function): Use it.
13803 (asm_emit_uninitialized): Use it.
13804 (assemble_alias): Use it.
13805 (assemble_variable): Use it.
13806
13807 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
13808
13809 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
13810 2002-03-12 internal visibility change.
13811 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
13812 visibility into SYMBOL_REF_FLAG.
13813
13814 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
13815
13816 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
13817 VOIDmode operand. Add compile-time optimization for constant results.
13818
13819 2002-03-12 Jason Merrill <jason@redhat.com>
13820
13821 * c-typeck.c (convert_for_assignment): Don't allow conversions
13822 between pointers and references. Only allow lvalues to convert to
13823 reference.
13824
13825 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
13826
13827 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
13828 before prologue, to avoid scheduling problems.
13829
13830 2002-03-13 Jakub Jelinek <jakub@redhat.com>
13831
13832 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
13833 (ELIMINABLE_REGS): Add sfp->sp.
13834 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
13835
13836 2002-03-13 Jakub Jelinek <jakub@redhat.com>
13837
13838 PR optimization/5892
13839 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
13840
13841 2002-03-13 Jakub Jelinek <jakub@redhat.com>
13842
13843 * loop.c (basic_induction_var): Don't call convert_modes if mode
13844 classes are different.
13845
13846 2002-03-12 Richard Henderson <rth@redhat.com>
13847
13848 PR optimization/5901
13849 * function.c (reposition_prologue_and_epilogue_notes): Position
13850 the markers after/before the last/first insn not deleted.
13851
13852 2002-03-12 Richard Henderson <rth@redhat.com>
13853
13854 PR optimization/5878
13855 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
13856 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
13857 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
13858
13859 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
13860 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
13861 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
13862
13863 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
13864 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
13865 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
13866 also. Don't set it if not flag_pic.
13867 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
13868 to be INVALID_REGNUM when not used.
13869
13870 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
13871
13872 * expmed.c (store_bit_field): Reset alias set for memory.
13873 (extract_bit_field): Same.
13874
13875 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13876
13877 * c-common.c (c_tree_code_type, c_tree_code_length,
13878 c_tree_code_name, add_c_tree_codes): Delete.
13879 * c-common.h (add_c_tree_codes): Delete.
13880 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
13881 Define.
13882 * c-objc-common.c (c_objc_common_init): Don't call
13883 add_c_tree_codes, instead set lang_unsafe_for_reeval.
13884 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
13885 objc_tree_code_name, add_objc_tree_codes): Delete.
13886 (objc_init): Don't call add_objc_tree_codes.
13887 * objc/objc-lang.c (tree_code_type, tree_code_length,
13888 tree_code_name): Define.
13889 * toplev.c (lang_independent_init): Don't set
13890 tree_code_length[IDENTIFIER_NODE].
13891 * tree.c (tree_code_type, tree_code_length, tree_code_name):
13892 Delete definitions, moved to language front-ends.
13893 * tree.def (IDENTIFIER_NODE): Hardwire the length.
13894 * tree.h (tree_code_type, tree_code_length, tree_code_name):
13895 Const-ify.
13896 (tree_code_length): Change type to unsigned char.
13897
13898 2002-03-12 Richard Henderson <rth@redhat.com>
13899
13900 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
13901 internal visibility change.
13902
13903 2002-03-12 Bob Wilson <bob.wilson@acm.org>
13904
13905 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
13906 validize_mem() instead of change_address to avoid clobbering
13907 memory attributes.
13908
13909 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
13910
13911 * c-lex.h (position_after_whitespace): Remove.
13912
13913 2002-03-12 Jakub Jelinek <jakub@redhat.com>
13914
13915 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
13916 (lex_string): Use unsigned char pointers.
13917
13918 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
13919
13920 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
13921 is not a valid memory_operand.
13922
13923 2002-03-12 Bob Wilson <bob.wilson@acm.org>
13924
13925 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
13926 * config/xtensa/lib1funcs.asm: Fix copyright to include
13927 special case for libgcc files.
13928 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
13929 (__divsi3): Likewise.
13930 (__umodsi3): Likewise.
13931 (__modsi3): Likewise.
13932 * config/xtensa/lib2funcs.S: Fix copyright to include
13933 special case for libgcc files.
13934
13935 2002-03-12 Tom Rix <trix@redhat.com>
13936
13937 * collect2.c (resolve_lib_name): Move outside of
13938 OBJECT_FORMAT_COFF ifdef.
13939 (ignore_library): Same.
13940
13941 2002-03-12 Bob Wilson <bob.wilson@acm.org>
13942
13943 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
13944
13945 2002-03-12 Bob Wilson <bob.wilson@acm.org>
13946
13947 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
13948 to function_section before writing out the constant pool.
13949
13950 2002-03-12 David Edelsohn <edelsohn@gnu.org>
13951
13952 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
13953 zero_constant.
13954 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
13955
13956 2002-03-12 Alan Modra <amodra@bigpond.net.au>
13957
13958 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
13959 (adddi3): Likewise.
13960 (movdf): Likewise.
13961 (movdi): Likewise.
13962 (cmpsi splitter): Likewise.
13963 (modsi3): Fail if <= 0.
13964 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
13965 redundant test when HOST_BITS_PER_WIDE_INT != 32.
13966 (reg_or_sub_cint64_operand): Likewise.
13967 (num_insns_constant_wide): Optimize sign extension.
13968 (rs6000_legitimize_address): Likewise.
13969
13970 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
13971
13972 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13973 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
13974
13975 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
13976
13977 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
13978 address calculation.
13979
13980 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
13981
13982 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
13983 scratch register to DImode / TImode.
13984 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
13985 register used does not overlap the target.
13986
13987 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13988
13989 * Makefile.in (debug.o): Depend on debug.h.
13990 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
13991 * debug.c (do_nothing_debug_hooks): Likewise.
13992 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
13993 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
13994 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
13995 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
13996 * dwarfout.c (dwarf_debug_hooks): Likewise.
13997 * integrate.c (output_inline_function): Likewise.
13998 * objc/objc-act.c (synth_module_prologue): Likewise.
13999 * sdbout.c (sdb_debug_hooks): Likewise.
14000 * toplev.c (debug_hooks): Likewise.
14001 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14002
14003 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14004
14005 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
14006 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
14007 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
14008 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
14009 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
14010 * defaults.h (POINTER_SIZE): Define.
14011 * doc/tm.texi (POINTER_SIZE): Document default.
14012
14013 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14014
14015 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
14016
14017 2002-03-11 Richard Henderson <rth@redhat.com>
14018
14019 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
14020 if rebuild_label_notes_after_reload.
14021
14022 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
14023
14024 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
14025 emit pic register load if "internal" visibility.
14026 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
14027 (cris_expand_builtin_va_arg): Do all computations on trees.
14028
14029 2002-03-11 Richard Henderson <rth@redhat.com>
14030
14031 * rtlanal.c: Include recog.h.
14032 (keep_with_call_p): Fix thinko.
14033 * Makefile.in (rtlanal.o): Update dependencies.
14034
14035 2002-03-11 Chris Meyer <cmeyer@gatan.com>
14036
14037 * genflags.c (gen_insn): Use IS_VSPACE.
14038 * genoutput.c (output_insn_data): Likewise.
14039 (process_template): Likewise.
14040
14041 2002-03-11 Richard Henderson <rth@redhat.com>
14042
14043 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
14044
14045 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
14046
14047 * Makefile.in: Update.
14048 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
14049 Update documentation.
14050 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
14051 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
14052
14053 2002-03-11 Zack Weinberg <zack@codesourcery.com>
14054
14055 * Makefile.in: Give texi2pod its input file as a command line
14056 argument, not on stdin.
14057
14058 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
14059 Daniel Berlin <dan@dberlin.org>
14060
14061 C++ alias analysis improvement.
14062 * alias.c (record_component_aliases): Record aliases for base
14063 classes too.
14064
14065 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
14066
14067 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
14068
14069 2002-03-11 Douglas B Rupp <rupp@gnat.com>
14070
14071 * toplev.c (vms_fopen): Remove, not needed.
14072
14073 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
14074
14075 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
14076
14077 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
14078 for FP, already done later.
14079
14080 * toplev.c (debug_args): Add entry for VMS_DEBUG.
14081 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
14082
14083 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
14084
14085 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
14086 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
14087 LARGEST_EXPONENT_IS_NORMAL for the given mode.
14088 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
14089 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
14090 (ediv, emul, eldexp, esqrt): Likewise.
14091 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
14092 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
14093 (saturate): New function.
14094 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
14095 (make_nan): Use a saturation value instead of a NaN if
14096 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
14097 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
14098 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
14099 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
14100 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
14101 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
14102 !ROUND_TOWARDS_ZERO.
14103 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
14104 (ROUND_TOWARDS_ZERO): Document.
14105
14106 2002-03-11 Andreas Jaeger <aj@suse.de>
14107
14108 * cfg.c (dump_flow_info): Remove unused variable.
14109
14110 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
14111
14112 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
14113 computations on trees.
14114
14115 2002-03-10 Richard Henderson <rth@redhat.com>
14116
14117 PR 5693:
14118 * reload.c (copy_replacements_1): New.
14119 (copy_replacements): Use it to recurse through the rtx.
14120
14121 2002-03-10 Richard Henderson <rth@redhat.com>
14122
14123 * loop.c (strength_reduce): Compute number of iterations as
14124 unsigned HOST_WIDE_INT.
14125
14126 2002-03-10 Richard Henderson <rth@redhat.com>
14127
14128 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
14129 to move away from the end of the block.
14130
14131 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
14132
14133 PR preprocessor/5899
14134 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
14135
14136 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14137
14138 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
14139
14140 * attribs.c (decl_attributes): Fix signed/unsigned warning.
14141
14142 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
14143
14144 * config/mmix/mmix.c: Improve comments.
14145 (mmix_target_asm_function_prologue): Drop variable
14146 empty_stack_frame. Don't allocate unused slot above fp.
14147 (mmix_target_asm_function_epilogue): Mirror prologue changes.
14148 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
14149 brace in first column.
14150 (enum reg_class): Ditto.
14151 (FIRST_PARM_OFFSET): Now 0.
14152 (USER_LABEL_PREFIX): Remove #if 0:d definition.
14153
14154 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14155
14156 * combine.c (make_extraction): Fix error in last change.
14157
14158 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14159
14160 * c4x.c (c4x_fp_reglist): Const-ify.
14161 * cris.c (cris_print_operand): Likewise.
14162 * i386.c (ix86_va_arg): Likewise.
14163 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
14164 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
14165 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
14166 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
14167 * mcore.h (regno_reg_class): Likewise.
14168 * mips.c (gen_int_relational): Likewise.
14169 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
14170 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
14171 * pdp11.c (move_costs): Likewise.
14172 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
14173 * s390.c (s390_branch_condition_mnemonic, regclass_map):
14174 Likewise.
14175 * s390.h (regclass_map): Likewise.
14176 * sh.c (shift_amounts): Likewise.
14177 * sh.md (rotlsi3): Likewise.
14178
14179 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
14180
14181 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
14182 (ne0+5): Use new clobber to generate proper shift pattern.
14183 Patch by Michael Matz <matz@kde.org>.
14184
14185 2002-03-09 Andreas Schwab <schwab@suse.de>
14186
14187 * gcc.c (validate_all_switches): Also handle `%W{...}'.
14188
14189 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
14190
14191 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
14192
14193 2002-03-09 Jakub Jelinek <jakub@redhat.com>
14194
14195 PR middle-end/5877
14196 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
14197 even for non-representable constants.
14198
14199 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14200
14201 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
14202 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
14203 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
14204 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
14205 (pop_function_context): Compute MAY_SHARE parameter for
14206 fixup_var_refs.
14207 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
14208 (gen_mem_addressof): Call fixup_var_refs with new parm.
14209
14210 * combine.c (make_extraction): Don't make extension of CONST_INT.
14211
14212 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
14213
14214 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
14215 in o32 and o64 ABIs.
14216 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
14217 but getting fixed-size structs passed in registers regardless of
14218 padding in o32 and o64 ABIs.
14219
14220 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
14221 offset before loading address of argument passed by transparent
14222 reference.
14223
14224 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
14225
14226 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
14227
14228 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
14229
14230 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
14231 marker such that registers after it are saved.
14232
14233 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14234
14235 * sparc.c (arith_4096_operand): Fix error in last change.
14236
14237 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
14238
14239 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
14240 defaults for MEABI.
14241
14242 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
14243
14244 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
14245 vectors.
14246
14247 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
14248
14249 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
14250
14251 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
14252
14253 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
14254 removed; fix return value.
14255 * combine.c (combine_instructions): Dirtify blocks where we failed to
14256 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
14257 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
14258
14259 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14260
14261 * gcse.c (insert_insn_end_bb): Fix typo in last change.
14262
14263 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
14264
14265 * recog.c (peephole2_optimize): Re-distribute EH edges.
14266
14267 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
14268
14269 * expr.c (expand_expr): Use unsave lang hook.
14270 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
14271 (LANG_HOOKS_INITIALIZER): Update.
14272 * langhooks.h (struct lang_hooks): New hook unsave.
14273 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
14274 (unsave_expr_1): Remove unused lang_unsave_expr_now.
14275 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
14276 (unsave_expr_now): Remove.
14277 * tree.h (unsave_expr_now, lang_unsave,
14278 lang_unsave_expr_now): Remove.
14279 (lhd_unsave): New.
14280
14281 2002-03-08 Andreas Jaeger <aj@suse.de>
14282
14283 * flow.c (propagate_block_delete_insn): Remove unused variable.
14284
14285 2002-03-08 Kazu Hirata <kazu@hxi.com>
14286
14287 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
14288 insn length for memory load/store.
14289
14290 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
14291
14292 * doc/install.texi (--with-libiconv-prefix): Document.
14293
14294 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
14295
14296 * doc/sourcebuild.texi: Fix typo.
14297
14298 2002-03-08 Jakub Jelinek <jakub@redhat.com>
14299
14300 PR c/3711
14301 * builtins.c (std_expand_builtin_va_arg): Do all computations on
14302 trees.
14303
14304 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14305
14306 * rtl.c (copy_most_rtx): Move from here ...
14307 * emit-rtl.c (copy_most_rtx): ... to here.
14308
14309 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
14310
14311 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
14312 SUBTARGET_CPP_SIZE_SPEC.
14313 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
14314
14315 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
14316
14317 2002-03-07 Matt Hiller <hiller@redhat.com>
14318
14319 * gensupport.c (first_dir_md_include): Renamed from include;
14320 change all references.
14321 (last_dir_md_include): Renamed from last_include; change all
14322 references.
14323 (init_md_reader): Unconditionally initialize base_dir whether or
14324 not filename is a relative path.
14325
14326 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
14327
14328 * config/fp-bit.c (_unord_f2): Compile it in even if
14329 US_SOFTWARE_GOFAST is enabled.
14330
14331 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
14332 NULL_RTX. Set all HFmode operations as NULL_RTX.
14333 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
14334 NULL_RTX, try reversing the comparison and the operands.
14335
14336 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
14337
14338 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
14339 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
14340 and MATCH_OP_DUP.
14341
14342 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
14343
14344 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
14345
14346 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
14347
14348 * basic-block.h (fixup_abnormal_edges): Declare.
14349 * reload1.c (fixup_abnormal_edges): New function.
14350 * reg-stack.c (convert_regs): Use it.
14351
14352 * gcse.c (insert_insn_end_bb): Handle trapping insns.
14353
14354 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
14355
14356 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
14357
14358 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
14359 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
14360 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
14361 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
14362 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
14363 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
14364 unless x and y could be infinite.
14365 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
14366 Check that the common type of both arguments is a real, even for
14367 targets without unordered comparisons. Allow an integer argument
14368 to be compared against a real.
14369 (expand_tree_builtin): Use expand_unordered_cmp.
14370 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
14371 * cse.c (fold_rtx): Likewise. Fix indentation.
14372 * fold-const.c (fold_real_zero_addition_p): New.
14373 (fold): Use it, and the new HONOR_... macros.
14374 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
14375 * jump.c (reversed_comparison_code_parts): After searching for
14376 the true comparison mode, use HONOR_NANS to decide whether it
14377 can be safely reversed.
14378 (reverse_condition_maybe_unordered): Remove IEEE check.
14379 * simplify-rtx.c (simplify_binary_operation): Use the new macros
14380 to decide which simplifications are valid. Allow the following
14381 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
14382 and (a - -b) to (a + b).
14383 (simplify_relational_operation): Use HONOR_NANS.
14384 * doc/tm.texi: Document the MODE_HAS_... macros.
14385
14386 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
14387
14388 * combine.c (simplify_comparison): If simplifying a logical shift
14389 right and compare with constant, force the comparison to unsigned.
14390
14391 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
14392
14393 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
14394
14395 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
14396 -mabi=no-altivec
14397 (alt_reg_names): Remove % for vrsave.
14398
14399 2002-03-06 Richard Henderson <rth@redhat.com>
14400
14401 PR optimization/5844
14402 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
14403 if used indicates we've already emitted one copy of an operand.
14404 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
14405 (gen_split): Supply a non-null used.
14406
14407 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
14408
14409 * reload1.c (reload): Unshare all rtl after reload is done.
14410
14411 * simplify-rtx.c (simplify_plus_minus): Do not abort,
14412 but simply fail if the expression is too complex to simplify.
14413 (simplify_gen_binary): Handle simplify_plus_minus failures.
14414
14415 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
14416
14417 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
14418 consistently call delete_trivially_dead_insns after CSE and GCSE;
14419 fix DFI_life dumping; do jump threading after liveness; do crossjumping
14420 after liveness2; update comment in last crossjumping.
14421 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
14422
14423 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
14424
14425 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
14426 after completing fast dead code elimination.
14427
14428 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
14429 COMPARE operator.
14430
14431 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
14432
14433 * version.c: Fix misplaced leading blanks on first line.
14434
14435 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
14436
14437 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
14438
14439 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
14440
14441 * cfgcleanup.c (mentions_nonequal_regs): New function.
14442 (thread_jump): Use it.
14443 * toplev.c (rest_of_compilation): Run jump threading after
14444 liveness.
14445
14446 2002-03-06 Jakub Jelinek <jakub@redhat.com>
14447
14448 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
14449 patch.
14450
14451 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
14452
14453 * predict.c (estimate_bb_frequencies): Do not reload the
14454 frequencies from notes.
14455
14456 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
14457
14458 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
14459 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
14460
14461 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
14462 delete_noop_moves): Return indeger.
14463 * flow.c (ndead): New variable.
14464 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
14465 BB argument; update callers.
14466 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
14467 (life_analysis): Do not call purge_all_dead_edges.
14468 (update_life_info): Return number of deleted insns; print statistics.
14469 (update_life_info_in_dirty_blocks): likewise.
14470 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
14471 return number of insns deleted.
14472
14473 * cse.c: Include timevar.h
14474 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
14475 iterate until stabilizes; print statistics; return number of killed
14476 insns.
14477 * Makefile.in: (cse.o): Add timevar.h dependency
14478 * rtl.h (delete_trivially_dead_insns): New.
14479 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
14480 * toplev.c (rest_of_compilation): Update callers.
14481
14482 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
14483 (try_optimize_cfg): Do not update liveness.
14484 (cleanup-cfg): Loop until try_optimize_cfg and dead code
14485 removal stabilizes; use delete_trivially_dead_insns.
14486
14487 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
14488
14489 2002-03-05 Zack Weinberg <zack@codesourcery.com>
14490
14491 * cppmain.c (setup_callbacks): Disable #pragma and #ident
14492 callbacks when processing assembly language.
14493
14494 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
14495
14496 * pa.h (ASM_FILE_END): Define.
14497 * som.h (ASM_FILE_END): Delete.
14498
14499 * pa.c (function_arg): Don't pass floats in general registers in
14500 indirect calls if TARGET_ELF32.
14501
14502 2002-03-05 Richard Henderson <rth@redhat.com>
14503
14504 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
14505
14506 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
14507
14508 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
14509
14510 2002-03-05 Jakub Jelinek <jakub@redhat.com>
14511
14512 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
14513 -r command line. Don't hide any symbols if not building
14514 shared libgcc.
14515
14516 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
14517
14518 * cfg.c (dump_flow_info): Warn about profile mismatches.
14519 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
14520 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
14521
14522 2002-03-05 Jakub Jelinek <jakub@redhat.com>
14523
14524 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
14525 wide volatile memory by parts.
14526
14527 2002-03-05 Jakub Jelinek <jakub@redhat.com>
14528
14529 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
14530 is NULL.
14531
14532 2002-03-05 Richard Henderson <rth@redhat.com>
14533
14534 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
14535
14536 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
14537
14538 * toplev.c (documented_lang_options): Document more
14539 language-specific options.
14540 * doc/invoke.texi (Warning Options): Correct documentation for
14541 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
14542 * c-decl.c (c_decode_option): Use a table to handle warning options.
14543
14544 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
14545
14546 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
14547 parameter to mmix_encode_section_info.
14548 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
14549 relocatably. Always produce ELF, not mmo if linking relocatably.
14550 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
14551 first is non-zero, don't add symbol prefix.
14552 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
14553 prototype accordingly.
14554
14555 2002-03-04 Krister Walfridsson <cato@df.lth.se>
14556
14557 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
14558
14559 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
14560
14561 * configure.in: Increase required makeinfo version to 4.1.
14562 * configure: Regenerate.
14563
14564 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
14565
14566 * .cvsignore: Remove *.info* and genrtl*; these files are generated
14567 elsewhere now.
14568
14569 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
14570
14571 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
14572 * doc/invoke.texi: Fix @math uses.
14573
14574 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
14575
14576 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
14577 removal
14578
14579 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
14580
14581 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
14582 (powerpc-*-eabisimaltivec*): Same.
14583
14584 * config/rs6000/t-ppcendian: New.
14585
14586 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14587
14588 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
14589 nonimmediate_src_operand and nonimmediate_lsrc_operand to
14590 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
14591
14592 2002-03-03 Richard Henderson <rth@redhat.com>
14593
14594 * toplev.c (rest_of_decl_compilation): Revert last two changes.
14595
14596 2002-03-03 Zack Weinberg <zack@codesourcery.com>
14597
14598 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
14599 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
14600 tree.c, config/m68k/m68k.c:
14601 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
14602 REAL_ARITHMETIC blocks unconditional. Delete some further
14603 #ifdef blocks predicated on REAL_ARITHMETIC.
14604 * flags.h, toplev.c: Delete remaining references to
14605 flag_pretend_float.
14606
14607 * doc/invoke.texi: Remove documentation of -fpretend-float.
14608 * doc/tm.texi: Describe the various REAL_* macros as provided by
14609 real.h, not by the target configuration files.
14610
14611 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
14612 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
14613 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14614 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
14615 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
14616 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
14617 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
14618 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
14619 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
14620 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
14621 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
14622 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14623 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
14624 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
14625 config/xtensa/xtensa.h:
14626 Do not define, undefine, or mention in comments any of
14627 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
14628 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
14629 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
14630 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
14631 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
14632 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
14633 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
14634 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
14635 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
14636
14637 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14638
14639 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
14640 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
14641 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
14642 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
14643 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
14644 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
14645 Delete.
14646 * defaults.h (BITS_PER_WORD): Define.
14647 * doc/tm.texi (BITS_PER_WORD): Document default value.
14648
14649 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
14650 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
14651 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
14652
14653 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14654
14655 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
14656 lieu of explicit sizeof/sizeof.
14657 * i386.c (override_options, ix86_init_mmx_sse_builtins,
14658 ix86_expand_builtin): Likewise.
14659 * mips.c (mips_add_gc_roots): Likewise.
14660 * mmix.c (mmix_output_condition): Likewise.
14661 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
14662 altivec_init_builtins): Likewise.
14663 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
14664 * cppexp.c (Nsuff, parse_number): Likewise.
14665 * cppinit.c (builtin_array_end): Likewise.
14666 * gcc.c (n_default_compilers, process_command): Likewise.
14667 * genpreds.c (output_predicate_decls): Likewise.
14668 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
14669 * lcm.c (N_ENTITIES): Likewise.
14670 * stor-layout.c (set_sizetype): Likewise.
14671
14672 2002-03-03 Richard Henderson <rth@redhat.com>
14673
14674 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
14675 for types or labels.
14676
14677 2002-03-03 Richard Henderson <rth@redhat.com>
14678
14679 * c-decl.c (start_decl): Initialized variables are not common.
14680
14681 2002-03-02 Per Bothner <per@bothner.com>
14682
14683 * gcc.c (option_map): Suport new --bootclasspath option.
14684 --CLASSPATH is now just an alias for --classpath.
14685
14686 2002-03-02 Richard Henderson <rth@redhat.com>
14687
14688 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
14689 load if "internal" visibility.
14690 * doc/extend.texi: Document visibility meanings.
14691
14692 2002-03-02 Richard Henderson <rth@redhat.com>
14693
14694 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
14695 to functions as well.
14696
14697 2002-03-02 Richard Henderson <rth@redhat.com>
14698
14699 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
14700 (handle_visibility_attribute): Don't call assemble_visibility.
14701 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
14702 without asmspec. Invoke assemble_alias when needed.
14703 * varasm.c (maybe_assemble_visibility): New.
14704 (assemble_start_function, assemble_variable, assemble_alias): Use it.
14705
14706 2002-03-02 Richard Henderson <rth@redhat.com>
14707
14708 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
14709 invoke ENCODE_SECTION_INFO with first call flag.
14710
14711 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
14712 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
14713 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
14714 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
14715 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
14716 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
14717 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
14718 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
14719 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
14720 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
14721 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
14722 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
14723 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
14724 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
14725 config/mcore/mcore-protos.h, config/mcore/mcore.c,
14726 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
14727 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
14728 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
14729 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
14730 config/sh/sh.h, config/sparc/sparc.h,
14731 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
14732 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
14733 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
14734 FIRST argument. As needed, examine it and do nothing.
14735
14736 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
14737 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14738 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
14739
14740 * config/arm/t-pe (pe.o): Add dependencies.
14741
14742 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14743
14744 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
14745 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
14746 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
14747 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
14748 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
14749 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
14750 * defaults.h (BITS_PER_UNIT): Define.
14751 * doc/tm.texi (BITS_PER_UNIT): Document default value.
14752
14753 2002-03-02 Kazu Hirata <kazu@hxi.com>
14754
14755 * config/h8300/h8300-protos.h: Add a prototype for
14756 compute_a_shift_length.
14757 * config/h8300/h8300.c (h8300_asm_insn_count): New.
14758 (compute_a_shift_length): Likewise.
14759 (h8300_adjust_insn_length): Do not adjust insn length of shift
14760 insns.
14761 * config/h8300/h8300.md (anonymous shift patterns): Use
14762 compute_a_shift_length.
14763
14764 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14765
14766 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
14767 trunc_int_for_mode.
14768
14769 * emit-rtl.c (offset_address): Call update_temp_slot_address.
14770
14771 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14772
14773 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
14774 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
14775 * flags.h (flag_zero_initialized_in_bss): Declare.
14776 * toplev.c (flag_zero_initialized_in_bss): New flag.
14777 (lang_independent_options): Add flag_zero_initialized_in_bss.
14778 * tree.c (initializer_zerop): New function.
14779 * tree.h (initializer_zerop): Declare.
14780 * varasm.c (assemble_variable): If we can emit bss, put zero
14781 initializers in the bss section.
14782
14783 2002-03-02 Alan Modra <amodra@bigpond.net.au>
14784
14785 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
14786 like more than one symbol per .weak directive.
14787
14788 2002-03-01 Richard Henderson <rth@redhat.com>
14789
14790 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
14791 adjust argument_pointer by pretend_args_size.
14792 (ia64_va_start): Adjust va_start address by -pretend_args_size.
14793
14794 2002-03-01 Kazu Hirata <kazu@hxi.com>
14795
14796 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
14797
14798 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
14799
14800 * toplev.c (rest_of_compilation): Delete dead jumptables before
14801 loop.
14802 * flow.c (delete_dead_jumptables): Make global.
14803 * rtl.h (delete_dead_jumptables): Declare.
14804
14805 2002-03-01 David Edelsohn <edelsohn@gnu.org>
14806
14807 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
14808 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
14809 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
14810
14811 2002-03-01 Kazu Hirata <kazu@hxi.com>
14812
14813 * config/h8300/h8300-protos.h: Fix formatting.
14814 * config/h8300/h8300.c: Likewise.
14815 * config/h8300/h8300.h: Likewise.
14816
14817 2002-03-01 Kazu Hirata <kazu@hxi.com>
14818
14819 * config/h8300/h8300.c (print_operand): Support 16-bit
14820 constant addresses.
14821 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
14822
14823 2002-02-28 Richard Henderson <rth@redhat.com>
14824
14825 * expmed.c (store_bit_field): Prevent generation of CONCATs;
14826 pun complex values as integers; use gen_lowpart instead of
14827 gen_rtx_SUBREG.
14828 (extract_bit_field): Likewise.
14829
14830 2002-03-01 Alan Modra <amodra@bigpond.net.au>
14831 David Edelsohn <edelsohn@gnu.org>
14832
14833 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
14834 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
14835 (SUPPORTS_WEAK): Likewise.
14836 * output.h (add_weak): Add tree param.
14837 * varasm.c (add_weak): Likewise. Save decl.
14838 (struct weak_syms): Add decl field.
14839 (mark_weak_decls): New function.
14840 (init_varasm_once): ggc_add_root mark_weak_decls.
14841 (assemble_start_function): Use ASM_WEAKEN_DECL.
14842 (assemble_variable): Likewise.
14843 (assemble_alias): Likewise.
14844 (declare_weak): Pass decl to add_weak.
14845 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
14846 (remove_from_pending_weak_list): Declare and define for
14847 ASM_WEAKEN_DECL.
14848 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
14849 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
14850 * defaults.h (SUPPORTS_WEAK): Likewise.
14851 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
14852 .weak for code sym. Do emit .size for descriptor sym.
14853 (ASM_DECLARE_FUNCTION_SIZE): Define.
14854 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
14855 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
14856 .lglobl unless TARGET_XCOFF. Formatting fixes.
14857 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
14858 .weak for code sym.
14859 (HANDLE_PRAGMA_WEAK): Remove.
14860 (ASM_WEAKEN_LABEL): Remove.
14861 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
14862
14863 2002-03-01 Jason Merrill <jason@redhat.com>
14864
14865 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
14866 (TARGET_EXPR_CLEANUP): New macro.
14867
14868 2002-02-28 Steve Ellcey <sje@cup.hp.com>
14869
14870 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
14871 to take ptr_extend into account as third type of extension.
14872 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
14873 fields used by SUBREG_PROMOTED_UNSIGNED_P.
14874 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
14875 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
14876 * calls.c (precompute_arguments): Use new macro.
14877 (expand_call): Ditto.
14878 * combine.c (nonzero_bits): Ditto.
14879 (record_promoted_value): Ditto.
14880 * expr.c (store_expr): Ditto.
14881 (expand_expr): Ditto.
14882 * function.c (assign_parms): Ditto.
14883
14884 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
14885
14886 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
14887 override -shared and -shared-libgcc.
14888
14889 2002-02-28 David O'Brien <obrien@FreeBSD.org>
14890
14891 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
14892 of "ultrasparc".
14893 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
14894 to be broken.
14895
14896 2002-02-28 Richard Henderson <rth@redhat.com>
14897
14898 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
14899 4 cycle latency from MM producers.
14900 (ia64_internal_sched_reorder): Likewise with pipeline flush.
14901
14902 2002-02-28 Jakub Jelinek <jakub@redhat.com>
14903
14904 * mklibgcc.in: Don't use GNU make extension.
14905
14906 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
14907
14908 * c-parse.in (STATIC): New terminal.
14909 (scspec): New non-terminal. Update productions accordingly.
14910 (program): Remove bogus ifc / end ifc.
14911 (array_declarator): Simplify production using STATIC.
14912
14913 2002-02-28 Jim Meyering <meyering@lucent.com>
14914
14915 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
14916 \a still means TARGET_BELL.
14917
14918 2002-02-28 Richard Henderson <rth@redhat.com>
14919
14920 * haifa-sched.c (sched_emit_insn): New.
14921 (schedule_block): Use last_scheduled_insn to track last insn.
14922 * sched-int.h (sched_emit_insn): Prototype.
14923 * config/ia64/ia64.c (last_issued): Remove.
14924 (ia64_variable_issue): Don't set it.
14925 (nop_cycles_until): Use sched_emit_insn.
14926
14927 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
14928
14929 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
14930 extended constants.
14931
14932 2002-02-28 Kazu Hirata <kazu@hxi.com>
14933
14934 * config/h8300/h8300.c: Fix formatting.
14935 * config/h8300/h8300.h: Likewise.
14936
14937 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
14938
14939 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
14940 which may overwrite the high byte of the frame pointer.
14941
14942 2002-02-28 Bo Thorsen <bo@suse.de>
14943
14944 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
14945 (STARTFILE_SPEC): Add 64 bit files.
14946 (ENDFILE_SPEC): Likewise.
14947
14948 2002-02-28 Jason Merrill <jason@redhat.com>
14949
14950 * c-decl.c (finish_function): Only warn about missing return
14951 statement with -Wreturn-type.
14952
14953 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
14954
14955 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
14956
14957 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
14958 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
14959
14960 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
14961
14962 * basic-block.h (BB_REACHABLE): Renumber.
14963 (BB_DIRTY, BB_NEW): New flags.
14964 (clear_bb_flags): Declare.
14965 (update_life_info_in_dirty_blocks): Declare.
14966 * cfg.c (clear_bb_flags): New function.
14967 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
14968 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
14969 reorder_insns, emit_insn_after): Mark block as dirty.
14970 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
14971 (update_life_info_in_dirty_blocks): New function.
14972 * recog.c (apply_change_group): Dirtify block.
14973
14974 * cse.c (cse_insn): Reorder emitting of jump insn to keep
14975 cfg consistent.
14976 * gcse.c (delete_null_pointer_checks): Likewise.
14977
14978 * toplev.c (dump_file_index): Move cse2 after bp,
14979 add DFI_null
14980 (dump_file_info): Similary.
14981 (rest_of_compilation): Avoid most of CFG rebuilds;
14982 do first if converision after null pointer checks, do cse2
14983 after branch prediction; avoid full liveness rebuild after
14984 initializing subregs.
14985 * invoke.texi (-d options): Document -du, renumber.
14986
14987 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
14988 (notice_new_block): Do not set BB_UPDATE_LIFE.
14989 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
14990 merge_blocks_move_successor_nojumps, merge_blocks,
14991 try_crossjump_to_edge): Likewise.
14992 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
14993 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
14994 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
14995 (merge_of_block): Do not use life_data_ok.
14996 (find_if_case_1): Do not use SET_UPDATE_LIFE.
14997 (if_convert): Use BB_DIRTY mechanizm to update life.
14998 * lcm.c (optimize_mode_switching): Update
14999 update_life_info_in_dirty_blocks
15000
15001 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
15002
15003 * Makefile.in (integrate.o): Update.
15004 * c-decl.c (copy_lang_decl): Rename.
15005 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15006 * integrate.c: Include langhooks.h.
15007 (copy_decl_for_inlining): Update to use langhook.
15008 * langhooks-def.h (lhd_do_nothing_t,
15009 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
15010 (LANG_HOOKS_INITIALIZER): Update.
15011 * langhooks.c (lhd_do_nothing_t): New.
15012 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
15013 * tree.h (copy_lang_decl): Remove.
15014 objc:
15015 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15016
15017 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
15018
15019 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
15020 POST_DEC, and POST_MODIFY.
15021
15022 2002-02-27 Zack Weinberg <zack@codesourcery.com>
15023
15024 * c-typeck.c (digest_init): Remove unused parameter; all
15025 callers changed.
15026
15027 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
15028
15029 * expmed.c (expand_shift): Correctly test for low part of a
15030 subreg.
15031
15032 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
15033
15034 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
15035 insn UIDs with insn addresses.
15036
15037 2002-02-27 Zack Weinberg <zack@codesourcery.com>
15038
15039 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
15040 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
15041 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
15042 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
15043 gcc.c, toplev.c: Delete code implementing -traditional mode.
15044
15045 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
15046 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
15047 Document removal of -traditional mode for compilation, and
15048 remove documentation only relevant to that mode.
15049
15050 * config/nextstep.h, config/ptx4.h, config/svr4.h,
15051 config/convex/convex.h, config/d30v/d30v.h,
15052 config/i386/dgux.h, config/i386/osf1elf.h,
15053 config/i386/osfelf.h, config/i386/osfrose.h,
15054 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
15055 config/m68k/hp310.h, config/m88k/dgux.h,
15056 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
15057 config/m88k/m88k.h, config/m88k/openbsd.h,
15058 config/mips/abi64.h, config/mips/osfrose.h,
15059 config/mips/svr4-5.h, config/mips/svr4-t.h,
15060 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
15061 config/stormy16/stormy16.h: Remove all references to
15062 -traditional from target specs. Delete all mention of the
15063 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
15064 delete a couple of commented-out definitions of
15065 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
15066 to -traditional.
15067
15068 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
15069 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
15070
15071 2002-02-27 Zack Weinberg <zack@codesourcery.com>
15072
15073 * mklibgcc.in: Don't use \n in a line subject to
15074 interpretation by echo.
15075
15076 2002-02-27 Graham Stott <grahams@redhat.com>
15077
15078 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
15079 Constify NAME.
15080
15081 * loop.c (prescan_loop): Handle PARALLEL.
15082
15083 * unroll.c (loop_iterations): Return 0 if the add_val for
15084 a BIV is REG.
15085
15086 * final.c (output_operand_lossage): Constify PFX_STR.
15087
15088 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
15089
15090 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
15091
15092 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
15093 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
15094
15095 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
15096
15097 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
15098
15099 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
15100
15101 * cpplex.c (_cpp_lex_token): Handle directives in macro
15102 arguments.
15103 * cpplib.c (_cpp_handle_directive): Save and restore state
15104 if parsing macro args when entering a directive.
15105 * cppmacro.c (collect_args): No need to handle directives
15106 in macro arguments.
15107 (enter_macro_context, replace_args): Use the original macro
15108 definition in case it was redefined whilst collecting arguments.
15109 doc:
15110 * cpp.texi: Update.
15111
15112 2002-02-26 David Edelsohn <edelsohn@gnu.org>
15113
15114 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
15115 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
15116 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
15117 method on AIX.
15118 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
15119 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
15120 (load_toc_v4_PIC_2): Same.
15121
15122 2002-02-26 Alan Modra <amodra@bigpond.net.au>
15123
15124 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
15125
15126 2002-02-26 Richard Henderson <rth@redhat.com>
15127
15128 * config/alpha/alpha.md (ashldi_se): Re-enable.
15129
15130 2002-02-26 Richard Henderson <rth@redhat.com>
15131
15132 * config/alpha/alpha.c (alpha_encode_section_info): Examine
15133 MODULE_LOCAL_P; improve commentary.
15134
15135 2002-02-26 Zack Weinberg <zack@codesourcery.com>
15136
15137 * doc/cpp.texi: Clarify documentation of relationship between
15138 #line and #include.
15139
15140 2002-02-26 Kazu Hirata <kazu@hxi.com>
15141
15142 * config/h8300/h8300-protos.h: Update the prototype for
15143 compute_logical_op_length. Add the prototype for
15144 compute_logical_op_cc.
15145 * config/h8300/h8300.c (compute_logical_op_length): Figure out
15146 code from operands.
15147 (compute_logical_op_cc): New.
15148 * config/h8300/h8300.md: Combine all the logical op patterns
15149 in HImode and SImode. Use compute_logical_op_cc.
15150
15151 2002-02-26 Kelley Cook <kelleycook@comcast.net>
15152
15153 * config/i386/i386.c (print_operand): Don't append ATT-style
15154 length suffixs to x87 opcodes when in Intel mode.
15155
15156 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
15157
15158 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
15159 (init_emit_once): Update calls.
15160 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
15161 (init_syntax_once): Prototype.
15162
15163 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
15164
15165 * pa-linux.h (LIB_SPEC): Update definition.
15166 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15167
15168 2002-02-26 Richard Henderson <rth@redhat.com>
15169
15170 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
15171 if we emitted a stop bit.
15172
15173 2002-02-26 Jakub Jelinek <jakub@redhat.com>
15174
15175 * configure.in (libgcc_visibility): Substitute.
15176 * configure: Rebuilt.
15177 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
15178 defined symbols .hidden.
15179
15180 2002-02-26 Jakub Jelinek <jakub@redhat.com>
15181
15182 * attribs.c (c_common_attribute_table): Add visibility.
15183 (handle_visibility_attribute): New function.
15184 * varasm.c (assemble_visibility): New function.
15185 * output.h (assemble_visibility): Add prototype.
15186 * tree.h (MODULE_LOCAL_P): Define.
15187 * crtstuff.c (__dso_handle): Use visibility attribute.
15188 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
15189 for MODULE_LOCAL_P symbols too.
15190 * config/ia64/ia64.c (ia64_encode_section_info): Handle
15191 MODULE_LOCAL_P symbols the same way as local symbols.
15192 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
15193 into .sdata/.sbss by the user.
15194 * doc/extend.texi (Function Attributes): Document visibility
15195 attribute.
15196
15197 2002-02-26 Jakub Jelinek <jakub@redhat.com>
15198
15199 PR debug/5770
15200 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
15201 STRING_CST initializer spanning the whole variable without
15202 embedded zeros.
15203 If expand_expr returned MEM, don't use it.
15204
15205 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
15206
15207 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
15208 generate a die for the lexical block.
15209
15210 2002-02-26 Kazu Hirata <kazu@hxi.com>
15211
15212 * config/h8300/h8300-protos.h: Add a prototype for
15213 compute_logical_op_length.
15214 * config/h8300/h8300.c (compute_logical_op_length): New.
15215 * config/h8300/h8300.md (anonymous logical patterns): Use
15216 compute_logical_op_length for length.
15217
15218 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
15219
15220 * dwarf2out.c (modified_type_die): Do not call type_main_variant
15221 for vectors.
15222 (gen_type_die): Same.
15223
15224 * attribs.c (handle_vector_size_attribute): Set debug information.
15225
15226 2002-02-26 Daniel Egger <degger@fhm.edu>
15227
15228 * config/rs6000/rs6000.md: Swap define_insn attributes to
15229 fix incorrect generation of merge high instructions instead
15230 of merge low.
15231
15232 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
15233
15234 * c-typeck.c (really_start_incremental_init): Use
15235 bitsize_zero_node for vectors.
15236
15237 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
15238
15239 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
15240 ("*set_vrsave_internal"): Same.
15241
15242 2002-02-25 Richard Henderson <rth@redhat.com>
15243
15244 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
15245 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
15246
15247 2002-02-25 Jakub Jelinek <jakub@redhat.com>
15248
15249 PR target/5755
15250 * config/i386/i386.c (ix86_return_pops_args): Only pop
15251 fake structure return argument if it was passed on the stack.
15252
15253 2002-02-25 Jason Merrill <jason@redhat.com>
15254
15255 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
15256 RESULT_DECL.
15257
15258 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
15259
15260 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
15261 link with shared_name only.
15262 * doc/invoke.texi (Link Options): Document new behavior.
15263
15264 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
15265
15266 * c-typeck.c (push_init_level): Handle vectors.
15267
15268 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
15269
15270 * config/sparc/sparc.c (const64_high_operand): Zero-extend
15271 operands of SPARC_SETHI_P.
15272 (input_operand): Likewise.
15273 (sparc_emit_set_const32): Likewise.
15274 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
15275 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
15276 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
15277 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
15278 (movdi_insn_sp64_vis): Likewise.
15279 (movdi split, movdf split): Use SETHI32.
15280 * doc/md.texi: Document SPARC constraints L, M and N.
15281
15282 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
15283
15284 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
15285 ("*set_vrsave_internal"): use mfspr for Darwin.
15286
15287 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
15288 gen_get_vrsave_internal.
15289
15290 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15291
15292 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
15293
15294 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
15295
15296 * cpplex.c (cpp_interpret_charconst): Get signedness or
15297 otherwise of wide character constants correct.
15298 * cppexp.c (lex): Get signedness of wide charconsts correct.
15299
15300 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15301
15302 * optabs.c (widen_operand): Only call convert_modes for
15303 promoted SUBREG if signedness matches.
15304 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
15305
15306 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
15307
15308 * cpplib.c (glue_header_name): Use local buffer to build up
15309 header name.
15310
15311 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
15312
15313 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
15314
15315 2002-02-23 Kazu Hirata <kazu@hxi.com>
15316
15317 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
15318 H8/300[HS] separately.
15319 * config/h8300/h8300.md: Remove the early clobber constraint
15320 from bit field patterns.
15321
15322 2002-02-23 Kazu Hirata <kazu@hxi.com>
15323
15324 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
15325 register_operand.
15326 (mulhisi3): Likewise.
15327 (umulqisi3): Likewise.
15328 (umulhisi3): Likewise.
15329
15330 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
15331
15332 * cppinit.c (output_deps): Correct test for stdout output.
15333 (init_dependency_output): Cure warning.
15334
15335 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15336
15337 * expr.c (store_expr): When converting expression to promoted
15338 equivalent type, allow using SUBREG_REG of TARGET as the target
15339 of the expansion of EXP.
15340 * loop.c (basic_induction_var, case SUBREG): Always look inside.
15341 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
15342 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
15343 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
15344 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
15345
15346 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
15347
15348 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
15349 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
15350 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
15351
15352 2002-02-23 Jakub Jelinek <jakub@redhat.com>
15353
15354 PR optimization/5747
15355 * loop.c (scan_loop): Update reg info if move_movables created new
15356 pseudos.
15357
15358 2002-02-23 David Edelsohn <edelsohn@gnu.org>
15359
15360 * gcc.c (init_gcc_spec): Revert last change.
15361
15362 2002-02-23 David Edelsohn <edelsohn@gnu.org>
15363
15364 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
15365 gpc_reg_operand constraint.
15366
15367 2002-02-23 Alan Modra <amodra@bigpond.net.au>
15368
15369 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
15370 Simplify comparison of `low'.
15371 (add_operand): Fix formatting.
15372 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
15373 (mask_operand): Disallow mask to wrap in 64-bit mode.
15374 (rs6000_stack_info): Remove redundant test setting push_p.
15375 (output_toc): Fix formatting.
15376 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
15377 cc_reg_not_cr0_operand constraint.
15378 (booldi3, boolcdi3 splitters): Same.
15379
15380 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
15381
15382 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
15383
15384 2002-02-22 David Edelsohn <edelsohn@gnu.org>
15385
15386 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
15387 gcc invoked with -shared-libgcc.
15388
15389 2002-02-22 Jakub Jelinek <jakub@redhat.com>
15390
15391 PR c++/5748
15392 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
15393 decl if any of elements was TREE_USED.
15394
15395 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
15396
15397 * config/sparc/sol2.h: Don't include sys/mman.h.
15398 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
15399 (arith_4096_operand): Don't throw high bits away.
15400 (const64_operand): Take sign extension of CONST_INTs into account.
15401 (const64_high_operand, sparc_emit_set_const32): Likewise.
15402 (GEN_HIGHINT64): Likewise.
15403 (sparc_emit_set_const64_quick1): Likewise.
15404 (const64_is_2insns): Likewise.
15405 (print_operand): Use trunc_int_for_mode for sign extension.
15406 * config/sparc/sparc.h (SMALL_INT32): Likewise.
15407 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
15408 chars. Assume CONST_INT is already properly sign-extended.
15409 (movdi split): Sign-extend each SImode part.
15410 (andsi3 split): Don't mask high bits off, so that result
15411 remains properly sign-extend.
15412 (iorsi3 split): Likewise.
15413 (xorsi3 split): Likewise.
15414
15415 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
15416
15417 * fold-const.c (fold): Fix typo in comments.
15418
15419 2002-02-21 Diego Novillo <dnovillo@redhat.com>
15420
15421 * Makefile.in (langhooks.o): Update dependencies.
15422
15423 2002-02-21 Diego Novillo <dnovillo@redhat.com>
15424
15425 * langhooks.c: Include flags.h.
15426
15427 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
15428
15429 * testsuite/gcc.dg/attr-alwaysinline.c: New.
15430
15431 * c-common.c (c_common_post_options): Set inline trees by
15432 default.
15433
15434 * doc/extend.texi (Function Attributes): Document always_inline
15435 attribute.
15436 Update documentation about inlining when not optimizing.
15437
15438 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
15439
15440 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
15441 unless DECL_ALWAYS_INLINE.
15442
15443 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
15444 unless DECL_ALWAYS_INLINE.
15445 (c_disregard_inline_limits): Disregard if always_inline set.
15446
15447 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
15448 Disregard if always_inline set.
15449 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
15450 unless DECL_ALWAYS_INLINE.
15451
15452 * attribs.c (handle_always_inline_attribute): New.
15453 (c_common_attribute_table): Add always_inline.
15454
15455 * config/rs6000/altivec.h: Add prototypes for builtins
15456 requiring the always_inline attribute.
15457
15458 2002-02-21 Eric Christopher <echristo@redhat.com>
15459
15460 * expmed.c (store_bit_field): Try to simplify the subreg
15461 before generating a new one when when the mode size of
15462 value is less than maxmode.
15463
15464 2002-02-21 Richard Henderson <rth@redhat.com>
15465
15466 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
15467 than gen_rtx_PLUS to form the sum.
15468 * explow.c (force_reg): Rearrange to not allocate new pseudo
15469 when force_operand returns a register.
15470 * expr.c (expand_assignment): Allow offset_rtx expansion to
15471 return a sum. Do not force addresses into registers.
15472 (expand_expr): Likewise.
15473 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
15474 to canonicalize arithmetic that didn't simpify.
15475 (simplify_plus_minus): New argument force; update
15476 all callers. Don't split CONST unless we can do something with it,
15477 and wouldn't lose the constness of the operands.
15478
15479 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
15480 that we generated earlier.
15481
15482 2002-02-21 Tom Tromey <tromey@redhat.com>
15483
15484 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15485 (output_line_info): Use constant `1', with a long explanatory
15486 comment.
15487 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
15488
15489 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
15490
15491 * jump.c (redirect_jump): If old label has no UID, don't try to
15492 delete it.
15493
15494 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
15495
15496 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
15497 If input is constant, do shifts at compile time.
15498
15499 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
15500
15501 * doc/extend.texi: Fix some more overfull hboxes.
15502
15503 2002-02-21 Jakub Jelinek <jakub@redhat.com>
15504
15505 PR optimization/4994
15506 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
15507 register moves.
15508
15509 2002-02-21 Jakub Jelinek <jakub@redhat.com>
15510
15511 PR c++/4574
15512 * expr.h (expand_and): Add mode argument.
15513 * expmed.c (expand_and): Add mode argument.
15514 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
15515 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
15516 * except.c (expand_builtin_extract_return_addr): Likewise.
15517 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
15518 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
15519 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
15520 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
15521 * config/c4x/c4x.md: Use GEN_INT (x) instead of
15522 gen_rtx (CONST_INT, VOIDmode, x).
15523
15524 2002-02-21 Jakub Jelinek <jakub@redhat.com>
15525
15526 PR c/4697:
15527 * stmt.c (warn_if_unused_value): Move side effects test once more.
15528
15529 2002-02-20 Torbjorn Granlund <tege@swox.com>
15530
15531 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
15532 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
15533
15534 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
15535
15536 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
15537 SUBREG or ZERO_EXTEND.
15538
15539 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
15540
15541 * sh.h (current_function_anonymous_args): Remove.
15542 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
15543 of current_function_varargs and current_function_stdarg is set.
15544 * sh.c (sh_expand_prologue): Check current_function_varargs /
15545 current_function_stdarg / TARGET_SH5 instead of
15546 current_function_anonymous_args.
15547
15548 * sh64.h (TARGET_VERSION): Define.
15549
15550 2002-02-20 David Edelsohn <edelsohn@gnu.org>
15551
15552 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
15553 VRSAVE_REGNO on TARGET_ALTIVEC.
15554
15555 2002-02-20 Alan Modra <amodra@bigpond.net.au>
15556
15557 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
15558 bits of SImode const_int.
15559 (includes_rshift_p): Likewise.
15560 (print_operand): Call mask_operand and mask64_operand with correct
15561 mode.
15562 (rs6000_output_function_epilogue): Pad traceback table to word.
15563 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
15564 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
15565 mask64_operand with correct mode.
15566 (FUNCTION_ARG_REGNO_P): Correct parentheses.
15567
15568 2002-02-20 Jakub Jelinek <jakub@redhat.com>
15569
15570 PR debug/4461
15571 * varasm.c (get_pool_constant_mark): New.
15572 * rtl.h (get_pool_constant_mark): Add prototype.
15573 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
15574 be represented if it has not been output.
15575
15576 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
15577
15578 * combine.c (do_SUBST): Sanity check substitutions of
15579 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
15580 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
15581 CONST_INT into its operand.
15582 (known_cond): Likewise, for ZERO_EXTEND.
15583 * simplify-rtx.c (simplify_unary_operation): Fix condition to
15584 allow for simplification of wide modes. Reject CONST_INTs in
15585 ZERO_EXTEND when their actual mode is not given.
15586
15587 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
15588
15589 * c-decl.c (pushdecl): If no global declaration is found for an
15590 extern declaration in block scope, try a limbo one.
15591
15592 2002-02-20 Jakub Jelinek <jakub@redhat.com>
15593
15594 PR c++/4401
15595 * c-common.c (pointer_int_sum): Moved from...
15596 * c-typeck.c (pointer_int_sum): ...here.
15597 * c-common.h (pointer_int_sum): Add prototype.
15598
15599 2002-02-20 Jakub Jelinek <jakub@redhat.com>
15600
15601 PR c++/5713
15602 * c-decl.c (duplicate_decls): Return 0 if issued error about
15603 redeclaration.
15604
15605 2002-02-20 Roger Sayle <roger@eyesopen.com>
15606 Jakub Jelinek <jakub@redhat.com>
15607
15608 PR c/4389
15609 * tree.c (host_integerp): Ensure that the constant integer is
15610 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
15611 when pos is zero or non-zero respectively. Clarify comment.
15612 * c-format.c (check_format_info_recurse): Fix host_integerp
15613 usage; the pos argument should be zero when assigning to a
15614 signed HOST_WIDE_INT.
15615
15616 2002-02-20 Richard Henderson <rth@redhat.com>
15617
15618 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
15619 of the operand, rather than assuming TImode.
15620 (ix86_expand_binop_builtin): Cope with commutative patterns
15621 using nonimmediate_operand for both operands.
15622 (ix86_expand_timode_binop_builtin): Likewise.
15623 (ix86_expand_store_builtin): Validate operand 1.
15624 (ix86_expand_unop1_builtin): Likewise.
15625
15626 2002-02-20 Philip Blundell <philb@gnu.org>
15627
15628 PR 5705
15629 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
15630
15631 2002-02-20 Richard Henderson <rth@redhat.com>
15632
15633 PR c/5615
15634 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
15635
15636 2002-02-20 Tom Tromey <tromey@redhat.com>
15637
15638 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15639 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15640 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15641 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15642 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
15643 unconditionally.
15644
15645 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
15646
15647 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
15648 for (const_int 0) in X not just INTVAL.
15649
15650 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
15651
15652 * doc/extend.texi: Avoid or reduce overfull hboxes.
15653
15654 2002-02-20 Diego Novillo <dnovillo@redhat.com>
15655
15656 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
15657 operations if the field does not start at a mode boundary.
15658
15659 2001-02-20 Joel Sherrill <joel@OARcorp.com>
15660
15661 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
15662 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
15663 Also done for -Acpu and -Amachine.
15664
15665 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
15666
15667 * cppinit.c (init_dependency_output): Take deps output file
15668 from -o if none given with -MF. Suppress normal output.
15669 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
15670 * doc/cpp.texi, doc/invoke.texi: Update.
15671
15672 2002-02-19 Zack Weinberg <zack@codesourcery.com>
15673
15674 * toplev.c (output_quoted_string): Write unprintable
15675 characters with octal escapes.
15676
15677 2002-02-19 David Edelsohn <edelsohn@gnu.org>
15678
15679 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
15680 really_call_used[VRSAVE_REGNO] if not Altivec.
15681
15682 2002-02-19 Alan Modra <amodra@bigpond.net.au>
15683
15684 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
15685 MODE_MASK.
15686 (constant_pool_expr_1): Fix formatting.
15687 (rs6000_legitimize_reload_address): Likewise.
15688
15689 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15690
15691 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
15692 now that we have one.
15693
15694 2002-02-19 Zack Weinberg <zack@codesourcery.com>
15695
15696 * tree.h (struct tree_common): Remove aux. Add unused_0 at
15697 end of first block of bitfields (which was only seven bits);
15698 rename dummy to unused_1; remove comment which is no longer true.
15699
15700 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
15701
15702 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
15703
15704 2002-02-19 Philip Blundell <pb@nexus.co.uk>
15705
15706 PR 5399
15707 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
15708 if generating PIC.
15709
15710 PR 5054
15711 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
15712 arm_is_longcall_p rather than inspecting call-type cookie
15713 directly.
15714 (call_value_insn) [TARGET_THUMB]: Likewise.
15715
15716 2002-02-19 Graham Stott <grahams@redhat.com>
15717
15718 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
15719
15720 2002-02-19 David Edelsohn <edelsohn@gnu.org>
15721
15722 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
15723 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
15724 (FP_SAVE_INLINE): Delete.
15725
15726 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
15727 * config/rs6000/eabi.asm: Remove ABI save restore routines.
15728 * config/rs6000/t-ppccomm: Build crtsavres.o.
15729 * config/rs6000/crtsavres.asm: New file.
15730
15731 2002-02-19 Philip Blundell <philb@gnu.org>
15732
15733 * config/arm/arm.c (use_return_insn): Don't reject interrupt
15734 functions.
15735 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
15736 (output_return_instruction): Allow interrupt functions to return with
15737 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
15738 (arm_expand_prologue): Subtract 4 before stacking LR in an
15739 interrupt function.
15740
15741 2002-02-19 Philip Blundell <pb@nexus.co.uk>
15742
15743 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
15744 decl, not just FUNCTION_DECL.
15745 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
15746 (arm_assemble_integer): Likewise.
15747 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
15748 marked local.
15749
15750 2002-02-19 matthew green <mrg@eterna.com.au>
15751
15752 * config.gcc (sparc-*-netbsdelf*): Enable target.
15753 (sparc64-*-netbsd*): New target.
15754 * config/sparc/netbsd-elf.h: New file.
15755 * config/sparc/t-netbsd64: New file.
15756
15757 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
15758
15759 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
15760
15761 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
15762
15763 * doc/invoke.texi: explicitly list the style guidelines that
15764 -Weffc++ checks for.
15765
15766 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
15767
15768 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
15769
15770 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
15771
15772 PR other/5718
15773 * gcc.c (cpp_unique_options): Treat -o as indicating object file
15774 only if not -E. If -E, pass -o through to the preprocessor.
15775
15776 2002-02-19 Kazu Hirata <kazu@hxi.com>
15777
15778 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
15779 register number with an appropriate macro.
15780
15781 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
15782
15783 * doc/rtl.texi (Constants): Close @code tag.
15784
15785 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
15786
15787 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
15788 ("mmx_uavgv4hi3"): Same.
15789 ("pmulhrwv4hi3"): Same.
15790
15791 * tree-inline.c (walk_tree): Handle vectors.
15792
15793 * c-common.c (constant_expression_warning): Handle vectors.
15794 (overflow_warning): Same.
15795
15796 * sched-deps.c (sched_analyze_2): Handle vectors.
15797
15798 * rtlanal.c (rtx_unstable_p): Handle vectors.
15799 (rtx_varies_p): Same.
15800 (count_occurrences): Same.
15801 (regs_set_between_p): Same.
15802 (modified_between_p): Same.
15803 (modified_in_p): Same.
15804 (volatile_insn_p): Same.
15805 (volatile_refs_p): Same.
15806 (side_effects_p): Same.
15807 (may_trap_p): Same.
15808 (inequality_comparisons_p): Same.
15809 (replace_regs): Same.
15810 (computed_jump_p_1): Same.
15811
15812 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
15813 argument.
15814 (inner_mode_array): New.
15815 (copy_rtx): Handle vectors.
15816 (copy_most_rtx): Same.
15817 (rtx_equal_p): Same.
15818 (get_mode_alignment): Adjust for vectors.
15819
15820 * resource.c (mark_referenced_resources): Handle vectors.
15821 (mark_set_resources): Same.
15822
15823 * reload1.c (eliminate_regs): Handle vectors.
15824 (elimination_effects): Same.
15825 (scan_paradoxical_subregs): Same.
15826
15827 * reload.c (subst_reg_equivs): Handle vectors.
15828
15829 * regrename.c (scan_rtx): Handle vectors.
15830
15831 * regclass.c (reg_scan_mark_refs): Handle vectors.
15832
15833 * recog.c (find_single_use_1): Handle vectors.
15834
15835 * local-alloc.c (equiv_init_varies_p): Handle vectors.
15836 (contains_replace_regs): Same.
15837 (memref_referenced_p): Same.
15838
15839 * integrate.c (copy_rtx_and_substitute): Handle vectors.
15840 (subst_constants): Same.
15841
15842 * genattrtab.c (attr_copy_rtx): Handle vectors.
15843 (encode_units_mask): Same.
15844 (clear_struct_flag): Same.
15845 (count_sub_rtxs): Same.
15846
15847 * gcse.c (want_to_gcse_p): Handle vectors.
15848 (oprs_unchanged_p): Same.
15849 (hash_expr_1): Same.
15850 (oprs_not_set_p): Same.
15851 (expr_killed_p): Same.
15852 (compute_transp): Same.
15853 (store_ops_ok): Same.
15854
15855 * function.c (purge_addressof_1): Do not allow paradoxical subregs
15856 of vectors.
15857 (fixup_var_refs_1): Same.
15858 (instantiate_virtual_regs_1): Same.
15859
15860 * fold-const.c (operand_equal_p): Handle vectors.
15861 (fold): Same.
15862 (rtl_expr_nonnegative_p): Same.
15863
15864 * flow.c (mark_used_regs): Handle vectors.
15865
15866 * df.c (df_uses_record): Handle vectors.
15867
15868 * cselib.c (cselib_subst_to_values): Handle vectors.
15869 (cselib_mem_conflict_p): Same.
15870 (hash_rtx): Same.
15871
15872 * cse.c (canon_reg): Handle vectors.
15873 (fold_rt): Same.
15874 (cse_process_notes): Same.
15875 (count_reg_usage): Same.
15876 (canon_hash): Same.
15877
15878 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
15879
15880 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
15881
15882 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
15883 (gen_rtx): Handle CONST_VECTOR.
15884 (gen_const_vector_0): New.
15885 (copy_rtx_if_shared): CONST_VECTORs can be shared.
15886 (reset_used_flags): Same.
15887 (copy_insn_1): Same.
15888 (initializer_constant_valid_p): Handle VECTOR_CST.
15889
15890 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
15891
15892 * doc/rtl.texi (Constants): Document const_vector.
15893 (CONST0_RTX): Update for vectors.
15894 (RTL sharing): Same.
15895
15896 * print-tree.c (print_node): Add case for VECTOR_CST.
15897
15898 * tree.h (TREE_VECTOR_CST_ELTS): New.
15899 (struct tree_vector): New.
15900 (union tree_node): Add vector node.
15901 (build_vector): Add prototype.
15902
15903 * tree.def (VECTOR_CST): New.
15904
15905 * tree.c (build_vector): New.
15906
15907 * expmed.c (make_tree): Handle CONST_VECTOR.
15908
15909 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
15910 (CONST_VECTOR_ELT): New.
15911 (CONST_VECTOR_NUNITS): New.
15912
15913 * machmode.h (GET_MODE_INNER): New.
15914 (DEF_MACHMODE): Accept 8th arg.
15915
15916 * machmode.def: Add 8th argument for vector inner mode.
15917 Add inner vector modes for vectors.
15918
15919 * rtl.def (VEC_CONST): Remove.
15920 (CONST_VECTOR): New.
15921
15922 * expr.c (clear_storage): Allow vectors.
15923 (is_zeros_p): Handle VECTOR_CST.
15924
15925 * varasm.c (output_constant_pool): Handle vectors.
15926 (rtx_const): Add veclo and vechi fields.
15927 (kind): Add RTX_VECTOR.
15928 (decode_rtx_const): Add case for vector.
15929
15930 * config/rs6000/rs6000-protos.h: Add zero_constant.
15931
15932 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
15933 constants. Force easy vector constants into memory.
15934 (easy_vector_constant): New.
15935 (emit_easy_vector_constant): New.
15936 (rs6000_legitimize_reload_address): Do not generate bad reloads on
15937 darwin.
15938
15939 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
15940 instruction does.
15941 ("altivec_lvxl"): Same.
15942 (altivec_lvebx): Same.
15943 (altivec_lvehx): Same.
15944 (altivec_lvewx): Same.
15945 ("*movv4si_const0"): New.
15946 ("*movv4sf_const0"): New.
15947 ("*movv8hi_const0"): New.
15948 ("*movv16qi_const0"): New.
15949
15950 2002-02-18 Kazu Hirata <kazu@hxi.com>
15951
15952 * config/h8300/h8300.c (notice_update_cc): Use
15953 cc_status.value2.
15954
15955 2002-02-18 Kazu Hirata <kazu@hxi.com>
15956
15957 * config/h8300/h8300.md (divmod patterns): Change the
15958 constraints for operands[1] to register_operand.
15959
15960 2002-02-18 Kazu Hirata <kazu@hxi.com>
15961
15962 * config/h8300/h8300-protos.h: Remove the prototype for
15963 p_operand.
15964 * config/h8300/h8300.c (p_operand): Remove.
15965 * config/h8300/h8300.md: Replace p_operand with
15966 const_int_operand.
15967
15968 2002-02-18 Philip Blundell <pb@nexus.co.uk>
15969
15970 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
15971 comment.
15972 (output_return_instruction): Allow use of LDR to unstack
15973 return addresss even for interrupt handlers or when
15974 interworking. If compiling for ARMv5, use interworking-safe
15975 return instructions by default. Remove duplicated code and
15976 lengthy "strcat" sequences.
15977
15978 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15979
15980 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
15981 (LINK_EH_SPEC): Define.
15982 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
15983
15984 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
15985
15986 * config/s390/s390.c (s390_emit_prologue): Do not set the
15987 frame_related flag for call-clobbered registers.
15988
15989 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
15990
15991 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
15992 (construct_container): Fix handling of SSE operands.
15993 (ix86_expand_builtin): Fix handling of 64bit pointers.
15994 (mmx_maskmovq_rex): New pattern.
15995
15996 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
15997
15998 * regrename.c (kill_set_value): Handle subregs properly.
15999
16000 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
16001
16002 * objc/objc-act.c (handle_impent): Remove leading '*'
16003 from objc_class_name.
16004
16005 2002-02-17 Richard Henderson <rth@redhat.com>
16006
16007 * config/alpha/alpha.c (some_small_symbolic_operand,
16008 some_small_symbolic_operand_1, split_small_symbolic_operand,
16009 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
16010 Handle small SYMBOL_REFs anywhere, not just inside memories.
16011 * config/alpha/alpha-protos.h: Update.
16012 * config/alpha/alpha.h (PREDICATE_CODES): Update.
16013 * config/alpha/alpha.md (small symbolic operand splitter): Update.
16014
16015 2002-02-17 Roland McGrath <roland@frob.com>
16016
16017 * config.gcc (powerpc-*-gnu-gnualtivec*,
16018 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
16019 * config/rs6000/gnu.h: New file.
16020 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
16021 Grok "gnu" in rs6000_abi_name.
16022 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
16023 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
16024 Grok -mcall-gnu analogous to -mcall-linux et al.
16025 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
16026 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
16027 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
16028
16029 2002-02-17 Jakub Jelinek <jakub@redhat.com>
16030
16031 PR c/3444:
16032 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
16033 shortening.
16034
16035 2002-02-17 Philipp Thomas <pthomas@suse.de>
16036
16037 * config/cris/cris.h: Undefine STARTFILE_SPEC and
16038 ENDFILE_SPEC before (re)defining them.
16039
16040 2002-02-17 Kazu Hirata <kazu@hxi.com>
16041
16042 * config/h8300/h8300.c: Fix formatting.
16043 * config/h8300/h8300.h: Likewise.
16044
16045 2002-02-17 Philipp Thomas <pthomas@suse.de>
16046
16047 * doc/tm.texi: Explain why empty strings should not be
16048 marked for translation.
16049
16050 2002-02-17 Philipp Thomas <pthomas@suse.de>
16051
16052 * final.c (output_operand_lossage): Changed to accept
16053 printf style arguments. Change calls where necessary.
16054 * output.h (output_operand_lossage): Change declaration
16055 accordingly. Update copyright.
16056 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
16057 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
16058 Update copyright date where necessary.
16059
16060 * config/i386/i386.c (print_operand): Likewise. Remove use of
16061 sprintf.
16062
16063 * config/cris/cris.c (cris_operand_lossage): Likewise.
16064 Rename parameter so that exgettext recognizes it as
16065 translatable message.
16066 (LOSE_AND_RETURN): Rename parameter to msgid.
16067
16068 2002-02-17 Kazu Hirata <kazu@hxi.com>
16069
16070 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
16071 hard coded register number with an appropriate macro.
16072 (HARD_REGNO_MODE_OK): Likewise.
16073 (ARG_POINTER_REGNUM): Likewise.
16074 (STATIC_CHAIN_REGNUM): Likewise.
16075 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
16076 * config/h8300/h8300.md (define_constants): Define more
16077 register numbers.
16078
16079 2002-02-17 Philipp Thomas <pthomas@suse.de>
16080
16081 * config/i386/i386.h: Don't mark empty strings for translation.
16082
16083 2002-02-16 H.J. Lu <hjl@gnu.org>
16084
16085 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
16086
16087 2002-02-16 Zack Weinberg <zack@codesourcery.com>
16088
16089 * cppinit.c (merge_include_chains): Check for brack being
16090 NULL before attempting to merge it with qtail.
16091
16092 2002-02-16 Andrew Cagney <ac131313@redhat.com>
16093
16094 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
16095 DBX_DEBUG.
16096
16097 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
16098
16099 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
16100
16101 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
16102
16103 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
16104 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
16105 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
16106
16107 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16108
16109 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
16110 now only if !TARGET_FIX.
16111 (*movsi_nt_vms_fix): New pattern.
16112
16113 2002-02-16 Douglas B Rupp <rupp@gnat.com>
16114
16115 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
16116 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
16117 (alpha_sa_mask, alpha_sa_size): Reflect above change.
16118 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
16119 (alpha_start_function, alpha_expand_epilogue): Likewise.
16120 (unicosmk_gen_dsib): Likewise.
16121
16122 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16123
16124 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
16125
16126 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
16127
16128 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
16129 check_and_change_labels, s390_final_chunkify): Delete.
16130 (s390_split_branches, s390_chunkify_pool): New functions.
16131 (s390_function_prologue): Call them.
16132
16133 * config/s390/s390.h (S390_REL_MAX): Delete.
16134 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
16135
16136 * config/s390/s390.md (cjump, icjump, jump): Fix length
16137 attribute calculation.
16138
16139
16140 2002-02-15 David Edelsohn <edelsohn@gnu.org>
16141
16142 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
16143 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
16144
16145 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
16146
16147 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
16148 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
16149 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
16150
16151 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
16152
16153 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
16154
16155 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
16156
16157 * reload.c (find_dummy_reload): Check that an output register
16158 is valid for its mode.
16159
16160 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
16161
16162 * combine.c (known_cond): After replacing the REG of a SUBREG, try
16163 to simplify it.
16164
16165 * function.c (assign_parms): Demote promoted argument passed by
16166 transparent reference.
16167
16168 2001-02-14 Joel Sherrill <joel@OARcorp.com>
16169
16170 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
16171 -Acpu() and -Amachine() to eliminate warnings.
16172
16173 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
16174
16175 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
16176
16177 2002-02-14 Kazu Hirata <kazu@hxi.com>
16178
16179 * config/h8300/h8300-protos.h: Update the prototype for
16180 const_costs.
16181 * config/h8300/h8300.c (const_costs): Treat SET as a little
16182 more expensive operation.
16183 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
16184 reference to const_costs.
16185
16186 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
16187
16188 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
16189
16190 2002-02-14 Jakub Jelinek <jakub@redhat.com>
16191
16192 PR c/5503:
16193 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
16194 use arguments from newtype.
16195
16196 2002-02-13 Eric Christopher <echristo@redhat.com>
16197
16198 * config/mips/mips.c (override_options): Add check for march/mipsX
16199 on the same command line. Fix error message in cpu processing.
16200 Remove architecture and ISA checks.
16201
16202 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
16203
16204 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
16205
16206 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
16207
16208 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
16209
16210 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
16211 alternatives.
16212 ("*movv8hi_internal1"): Same.
16213 ("*movv16qi_internal1"): Same.
16214 ("*movv4sf_internal1"): Same.
16215
16216 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
16217 not push_reload for altivec modes.
16218
16219 2002-02-13 Joel Sherrill <joel@OARcorp.com>
16220
16221 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
16222 all RTEMS targets including removal of #includes from config/*/rtems*.h
16223 file and adding them to tm_file setting. Added xm_defines=POSIX to
16224 many targets.
16225 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
16226 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
16227 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
16228 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
16229 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
16230 config/m68k/rtemself.h: Ditto.
16231 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
16232 config/mips/rtems64.h: Ditto.
16233 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
16234 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
16235 Ditto.
16236 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
16237 config/sparc/rtemself.h: Ditto.
16238 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
16239 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
16240 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
16241 more like arm-elf.
16242 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
16243 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
16244 target made more similar to i386-elf.
16245 * config/i386/t-rtems-i386: Added soft float support and multilibs.
16246 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
16247 be similar to config/m68k/t-m68kelf.
16248 * gthr-rtems.h: Encapsulate with extern "C" for C++.
16249
16250 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
16251
16252 * regmove.c (kill_value): Handle subregs.
16253
16254 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
16255
16256 * i386.md (mul patterns): Allow memory operand to be first;
16257 add expanders where needed; fix constraints.
16258 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
16259 Allow memory operand to be the first.
16260
16261 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
16262 operands.
16263
16264 2002-02-13 Jakub Jelinek <jakub@redhat.com>
16265
16266 PR c/5681:
16267 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
16268 GET_MODE (x).
16269
16270 2002-02-13 Jakub Jelinek <jakub@redhat.com>
16271
16272 PR optimization/5547:
16273 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
16274 all valid IA-32 address modes involving non-scaled %ebx and
16275 GOT/GOTOFF as displacement.
16276
16277 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
16278
16279 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
16280 after emitting ltorg insns.
16281
16282 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
16283 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
16284 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
16285 *abssf2): Fix "op_type" attribute.
16286
16287 2002-02-13 Douglas B Rupp <rupp@gnat.com>
16288
16289 * mkconfig.sh: Avoid using a subshell redirect.
16290 ($output.T): Change to $(output)T.
16291 (ENABLE_NLS): Remove unneeded undef.
16292
16293 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
16294 * config/alpha/x-vms (libsubdir): Define.
16295
16296 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
16297 register frame procedures. Optimize retrieving context.
16298
16299 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
16300 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
16301 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
16302
16303 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16304
16305 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
16306 Make same change as for find_base_value.
16307
16308 2002-02-13 Kazu Hirata <kazu@hxi.com>
16309
16310 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
16311 of QImode and SImode.
16312
16313 2002-02-13 Kazu Hirata <kazu@hxi.com>
16314
16315 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
16316 length computation of movsi.
16317 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
16318
16319 2002-02-13 Kazu Hirata <kazu@hxi.com>
16320
16321 * config/h8300/h8300.md (subqi3): Tighten the predicate for
16322 operands[2] to register_operand.
16323
16324 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
16325
16326 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
16327
16328 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
16329
16330 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
16331 for altivec_lvx* and altivec_stvx*.
16332 ("*movv4si_internal"): Add constraint for loading from GPRs.
16333 ("*movv8hi_internal1"): Same.
16334 ("*movv16qi_internal1"): Same.
16335 ("*movv4sf_internal1"): Same.
16336
16337 * config/rs6000/rs6000.c (altivec_register_operand): New.
16338
16339 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
16340 altivec_register_operand.
16341
16342 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
16343
16344 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
16345 handle SYMBOL_REF.
16346
16347 2002-02-13 Stan Shebs <shebs@apple.com>
16348
16349 * c-typeck.c (digest_init): Handle vectors.
16350 (really_start_incremental_init): Same.
16351 (pop_init_level): Same.
16352 (process_init_element): Same.
16353
16354 * varasm.c (output_constant): Same.
16355
16356 * expr.c (clear_storage): Same.
16357 (store_constructor): Same.
16358
16359 2002-02-12 Eric Christopher <echristo@redhat.com>
16360
16361 * explow.c (hard_function_value): Add comment explaining
16362 signed/unsigned comparison.
16363
16364 2002-02-12 Jakub Jelinek <jakub@redhat.com>
16365
16366 * jump.c (never_reached_warning): Add finish argument.
16367 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
16368 real insn after end.
16369 * rtl.h (never_reached_warning): Adjust prototype.
16370 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
16371 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
16372 never_reached_warning.
16373
16374 2002-02-12 Graham Stott <grahams@redhat.com>
16375
16376 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
16377
16378 2002-02-12 Kazu Hirata <kazu@hxi.com>
16379
16380 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
16381 logical shifts on H8/300.
16382 (shift_alg_si): Improve several shifts on H8/300.
16383 (get_shift_alg): Likewise.
16384
16385 2002-02-12 Graham Stott <grahams@redhat.com>
16386
16387 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
16388
16389 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16390
16391 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
16392 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
16393
16394 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
16395
16396 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
16397 non-CONST_INT through default_assemble_integer.
16398 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
16399 <case 8>: Abort for CONST_DOUBLE.
16400
16401 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
16402
16403 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
16404 is specified.
16405 * config/pa/pa-linux.h (LIB_SPEC): Delete.
16406 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
16407
16408 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
16409
16410 * config/stormy16/stormy16.md (zero_extendqihi2): New.
16411
16412 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
16413
16414 * regrename.c (regrename_optimize): Don't accept a
16415 part-clobbered register if the replaced register is not part
16416 clobbered.
16417
16418 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
16419 take padding into account when computing the argument value.
16420
16421 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
16422
16423 * combine.c (try_combine): Apply substitutions in
16424 CALL_INSN_FUNCTION_USAGE too.
16425
16426 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
16427
16428 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
16429 __builtin_altivec_abs*.
16430 (bdesc_abs): New.
16431
16432 * config/rs6000/rs6000.h (rs6000_builtins): Add
16433 ALTIVEC_BUILTIN_ABS*.
16434
16435 * config/rs6000/altivec.h: Use const char for builtins expecting
16436 literals.
16437 (vec_abs): New versions for C and C++.
16438 (vec_abss): Same.
16439
16440 2002-02-10 Kazu Hirata <kazu@hxi.com>
16441
16442 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
16443 using Pmode.
16444
16445 2002-02-10 Kazu Hirata <kazu@hxi.com>
16446
16447 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
16448 constant definition from h8300.md.
16449 (FRAME_POINTER_REGNUM): Likewise.
16450 * config/h8300/h8300.md (define_constants): Add FP_REG.
16451
16452 2002-02-10 Kazu Hirata <kazu@hxi.com>
16453
16454 * config/h8300/h8300.c (print_operand): Remove redundant code.
16455
16456 2002-02-10 Kazu Hirata <kazu@hxi.com>
16457
16458 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
16459 * config/h8300/h8300.c (byte_reg): Make it static.
16460
16461 2002-02-10 Richard Henderson <rth@redhat.com>
16462
16463 PR c/5623
16464 * c-typeck.c (incomplete_type_error): Handle flexible array members.
16465
16466 2002-02-10 Richard Henderson <rth@redhat.com>
16467
16468 PR c++/5624
16469 * tree.c (append_random_chars): Don't abort if main_input_filename
16470 does not exist.
16471
16472 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
16473
16474 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
16475
16476 2002-02-10 Kazu Hirata <kazu@hxi.com>
16477
16478 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
16479 (pushhi1): Likewise.
16480
16481 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
16482
16483 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
16484 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
16485
16486 2002-02-09 David O'Brien <obrien@FreeBSD.org>
16487
16488 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
16489 remove MASK_VIS.
16490 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
16491
16492 2002-02-09 Kazu Hirata <kazu@hxi.com>
16493
16494 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
16495 a half of an SImode register on H8/300.
16496
16497 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
16498
16499 * i386.md (movdi_2): Add missing '!'.
16500
16501 2002-02-09 Kazu Hirata <kazu@hxi.com>
16502
16503 * config/h8300/h8300.h: Fix formatting. Remove commented-out
16504 definitions.
16505
16506 2002-02-09 Kazu Hirata <kazu@hxi.com>
16507
16508 * config/h8300/h8300.md (length): Correct the distance valid
16509 for the short branch.
16510
16511 2002-02-09 Kazu Hirata <kazu@hxi.com>
16512
16513 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
16514
16515 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
16516
16517 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
16518 registers in SImode.
16519 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
16520 part-clobbered.
16521
16522 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
16523 patch.
16524
16525 Contribute sh64-elf.
16526 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
16527 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
16528 (sh_cannot_modify_jumps_p): New function.
16529 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
16530 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
16531 (sh_ms_bitfield_layout_p): New function.
16532 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
16533 Zack Weinberg <zack@codesourcery.com>
16534 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
16535 expand_simple_binop instead of expand_binop.
16536 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
16537 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
16538 use of .quad and .uaquad.
16539 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
16540 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
16541 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16542 * config/sh/sh.md (movdi_const, movdi_const_32bit,
16543 movdi_const_16bit): Make sure all CONSTs have modes.
16544 (sym2PIC): Ditto, but by adjusting all callers.
16545 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
16546 if the prologue calls the SHmedia argument decoder or register
16547 saver.
16548 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
16549 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
16550 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
16551 (sh_expand_epilogue): Don't emit USE of return target register.
16552 (prepare_move_operands): Legitimize DImode PIC addresses.
16553 (sh_media_register_for_return): Skip tr0, used to initialize the
16554 PIC register.
16555 (sh_expand_prologue): Remove explicit USE of return register.
16556 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
16557 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
16558 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
16559 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
16560 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
16561 EXTRA_CONSTRAINT_T.
16562 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
16563 (MOVI_SHORI_BASE_OPERAND_P): New.
16564 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
16565 (EXTRA_CONSTRAINT_T): Define in terms of them.
16566 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
16567 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
16568 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
16569 alternatives supporting TARGET_REGS.
16570 (UNSPEC_GOTPLT): New constant.
16571 (movdi split): Move incrementing of LABEL_NUSES...
16572 (movdi_const, movdi_const_32bit): Here. Use
16573 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
16574 (movdi_const_16bit): New.
16575 (call, call_value) [flag_pic]: Use GOTPLT.
16576 (call_pop, call_value_pop): New expands.
16577 (call_pop_compact, call_pop_rettramp): New insns.
16578 (call_value_pop_compact, call_value_pop_rettramp): New insns.
16579 (sibcall) [flag_pic]: Use GOT.
16580 (builtint_setjmp_receiver): Remove bogus, unused expand.
16581 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
16582 (*pt, *ptb, ptrel): New insns.
16583 (sym2GOT): Handle DImode GOT.
16584 (sym2GOTPLT, symGOTPLT2reg): New expands.
16585 (sym2PIC): New expand.
16586 (shcompact_return_tramp): Use GOTPLT to return trampoline.
16587 (shcompact_return_tramp_i): Use return register explicitly.
16588 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
16589 disable flag_reorder_blocks.
16590 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
16591 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
16592 clobbers, for clarity.
16593 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
16594 restoring of r0 in macl as MAYBE_DEAD.
16595 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
16596 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
16597 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
16598 alter_subreg all over.
16599 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
16600 reload, instead of emitting instructions that would require
16601 reloading.
16602 (casesi_load_media): Add missing modes.
16603 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
16604 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
16605 as used if the argument decoder is called.
16606 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
16607 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
16608 Pmode, then extend it to DImode if necessary.
16609 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
16610 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
16611 constants in FPU-enabled SHmedia, let them be loaded from memory.
16612 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
16613 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
16614 Adjust whitespace in assembly output templates.
16615 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
16616 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
16617 mode of if_then_else.
16618 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
16619 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
16620 sh.h.
16621 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
16622 Joern Rennecke <amylaar@redhat.com>
16623 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
16624 (SUBTARGET_CPP_PTR_SPEC): New.
16625 (SUBTARGET_CPP_SPEC): Remove.
16626 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
16627 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
16628 Fix typo in previous checkin.
16629 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
16630 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
16631 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
16632 Alexandre Oliva <aoliva@redhat.com>
16633 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
16634 what single FP register can hold for SHmedia target.
16635 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
16636 Alexandre Oliva <aoliva@redhat.com>
16637 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
16638 Do not split into SUBREG.
16639 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
16640 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
16641 and added new functions as specified in SH5 ABI r9.
16642 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
16643 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
16644 8-byte boundary.
16645 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
16646 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
16647 gen_consttable_4 and gen_consttable_8. Emit multiple labels
16648 and consttable_window_ends.
16649 2001-06-03 Graham Stott <grahams@redhat,com>
16650 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
16651 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
16652 * config/sh/sh.c (print_operand): Handle floating-point pair,
16653 vector and matrix registers.
16654 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
16655 vector modes into account.
16656 * config/sh/sh.md (movv2sf): Split move between registers into
16657 movdf.
16658 (movv4sf, movv16sf): Introduce insns that get split only after
16659 reload.
16660 * config/sh/shmedia.h: Fix Copyright dates.
16661 * config/sh/ushmedia.h: Likewise. Move loop counter
16662 declarations into conditionals that uses them.
16663 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
16664 loop boundary.
16665 * config/sh/sshmedia.h: Fix Copyright dates.
16666 (sh_media_PUTCFG): Fix constraints.
16667 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
16668 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
16669 ptrmemfunc_vbit_in_delta for SH5.
16670 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
16671 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
16672 * invoke.texi: Likewise.
16673 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
16674 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
16675 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
16676 GCC_pop_shmedia_regs_nofpu): New global symbols.
16677 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
16678 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
16679 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
16680 compact function with nonlocal labels.
16681 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
16682 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
16683 (initial_elimination_offset): Account for their stack space.
16684 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
16685 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
16686 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
16687 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
16688 least one of the operands to be a register.
16689 (movv2sf): Likewise. Renamed to movv2sf_i.
16690 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
16691 prepare_move_operands() before emitting SHmedia insns.
16692 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
16693 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
16694 Don't save nor initialize r12. Don't mis-align the stack.
16695 Pad the code with a nop.
16696 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
16697 stack.
16698 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
16699 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
16700 [__SHMEDIA__]: Implement.
16701 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
16702 * config/sh/sh.md: Set latency of `pt' closer to reality.
16703 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
16704 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
16705 Set move, load and store type attributes.
16706 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
16707 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
16708 profiling.
16709 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
16710 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
16711 * config/sh/sh.c (sh_media_register_for_return): New function.
16712 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
16713 branch-target register.
16714 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
16715 * config/sh/sh.md (return_media_i): Use any call-clobbered
16716 branch-target register.
16717 (return_media): If r18 wasn't copied in the prologue, copy it
16718 here.
16719 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
16720 Clear class FP0_REGS.
16721 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
16722 from elf.h.
16723 2001-03-08 DJ Delorie <dj@redhat.com>
16724 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
16725 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
16726 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
16727 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
16728 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
16729 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
16730 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
16731 return value correctly for call_cookie.
16732 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
16733 * config/sh/crt1.asm (start): Modified so as to call
16734 ___setup_argv_and_call_main.
16735 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
16736 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
16737 SHmedia mode.
16738 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
16739 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
16740 (STRIP_NAME_ENCODING): Use it.
16741 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
16742 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
16743 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
16744 prepare_scc_operands().
16745 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
16746 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
16747 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
16748 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
16749 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
16750 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
16751 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
16752 used in shcompact_incoming_args.
16753 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
16754 change.
16755 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
16756 mode.
16757 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
16758 Adjust accordingly.
16759 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
16760 Simplify. Adjust. Add sanity check.
16761 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
16762 FPU_SINGLE_BIT.
16763 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
16764 TARGET_SHCOMPACT.
16765 (udivsi3, divsi3): Use them.
16766 (force_mode_for_call): New insn.
16767 (call, call_value, sibcall_value): Emit it before SHcompact
16768 calls.
16769 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
16770 * config/sh/sh.md (call, call_value, sibcall): Make sure the
16771 call cookie is non-NULL before taking its value.
16772 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
16773 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
16774 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
16775 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
16776 block.
16777 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
16778 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
16779 temporary for stack adjusts. Use MACL and MACH to pass
16780 arguments to shcompact_incoming_args.
16781 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
16782 clobber r1.
16783 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
16784 (nested_trampoline): Load static chain address into r1.
16785 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
16786 2001-01-07 Alexandre Oliva <aoliva@redhat.com
16787 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
16788 fp_arith_reg_operand().
16789 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
16790 * config/sh/sh.md (casesi): Sign-extend the first two operands,
16791 and use signed compares for them.
16792 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
16793 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
16794 ones properly aligned.
16795 (find_barrier): Account for extra alignment needed for 8-byte wide
16796 constants.
16797 (machine_dependent_reorg): Require a label for the second 4-byte
16798 constant after an 8-byte one.
16799 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
16800 change.
16801 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
16802 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
16803 last_float when switching float modes.
16804 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
16805 auto-increment for general-purpose registers.
16806 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
16807 result.
16808 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
16809 for stack adjust.
16810 * config/sh/sh.c (sh_builtin_saveregs): Support using all
16811 registers for varargs.
16812 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
16813 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
16814 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
16815 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
16816 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
16817 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
16818 call_cookie accordingly.
16819 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
16820 (SHCOMPACT_BYREF): Likewise.
16821 (SHCOMPACT_FORCE_ON_STACK): New macro.
16822 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
16823 (sh_builtin_saveregs): Likewise.
16824 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
16825 shcompact_incoming_args): Use new shift values. Support
16826 sequences of consecutive and non-consecutive pushes/pops.
16827 * config/sh/sh.md (return): Don't explicitly use PR_REG.
16828 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
16829 * config/sh/sh.h (TEXT_SECTION): Define.
16830 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
16831 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
16832 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
16833 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
16834 return values on FPU-enabled SHmedia.
16835 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
16836 FPU-enabled SHmedia.
16837 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
16838 value is returned in a non-FP reg and is not returned by
16839 reference.
16840 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
16841 jump_ind.
16842 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
16843 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
16844 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
16845 quad-aligned to be passed by callee-copy reference.
16846 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
16847 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
16848 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
16849 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
16850 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
16851 copying low-numbered FP regs to r7 and r8.
16852 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
16853 FP regs to general-purpose regs only if the copy was passed on the
16854 stack.
16855 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
16856 copying FP reg to r9.
16857 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
16858 copy FP regs to general-purpose regs only in outgoing calls.
16859 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
16860 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
16861 HOST_WIDE_INT.
16862 * config/sh/sh.h (struct sh_args): Document all fields.
16863 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
16864 passed partially on the stack should not consider making
16865 sibcalls.
16866 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
16867 stack_regs only for incoming calls. When passing FP args,
16868 make sure there are FP regs available before modifying
16869 call_cookie.
16870 (SHCOMPACT_BYREF): Pass double args in general-purpose
16871 registers by reference.
16872 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
16873 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
16874 attempt to generate sibcalls if the caller got any arguments
16875 by reference.
16876 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
16877 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
16878 to 8-byte boundaries.
16879 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
16880 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
16881 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
16882 stored in the stack.
16883 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
16884 for the offsets to have the ISA bit set.
16885 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
16886 invocation. Use beq instead of bgt to mark end of sequence of
16887 loads.
16888 (shcompact_incoming_args): Fix store of r2. Use beq instead of
16889 bgt to mark end of sequence of stores.
16890 * config/sh/sh.c (arith_operand): Don't check whether
16891 CONST_OK_FOR_J for now.
16892 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
16893 instead of long for conversion.
16894 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
16895 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
16896 before passing it to fprintf.
16897 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
16898 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
16899 Call set_fpscr before reading/writing SR.
16900 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
16901 Call set_fpscr.
16902 * config/sh/lib1funcs.asm: Add `.align 2' directives before
16903 SHmedia code.
16904 (FMOVD_WORKS): Define on SH5 with FPU.
16905 (set_fpscr): Define on SH5. Remove separate _fpscr_values
16906 setting.
16907 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
16908 _fpscr_values.
16909 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
16910 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
16911 address.
16912 (ia_main_table): Ditto.
16913 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
16914 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
16915 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
16916 the definitions from sh.h.
16917 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
16918 TARGET_SH5.
16919 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
16920 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
16921 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
16922 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
16923 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
16924 Increment LABEL_NUSES.
16925
16926 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
16927 TARGET_SH5.
16928 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
16929 defined.
16930 * config/sh/elf.h (SIZE_TYPE): Likewise.
16931 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
16932 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
16933 shcompact_incoming_args): Load switch table addresses using
16934 datalabel.
16935 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
16936 (NO_BUILTIN_SIZE_TYPE): Define.
16937 (SIZE_TYPE): Don't define.
16938 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
16939 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
16940 definition of __SH5__=32 for -m5-compact-nofpu.
16941 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
16942 ADDR_DIFF_VEC.
16943 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
16944 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
16945 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
16946 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
16947 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
16948 (INSN_LENGTH_ALIGNMENT): Likewise.
16949 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
16950 * config/sh/sh.md (call, call_value, sibcall): Simplify
16951 copying of non-branch-target register.
16952 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
16953 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
16954 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
16955 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
16956 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
16957 floating-point values as structs.
16958 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
16959 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
16960 general-purpose register.
16961 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
16962 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
16963 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
16964 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
16965 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
16966 (ENCODE_SECTION_INFO): Enclose variables and constants in
16967 DATALABEL unspecs.
16968 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
16969 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
16970 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
16971 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
16972 only for LABEL_REFs. For SYMBOL_REFs, prepend
16973 SH_DATALABEL_ENCODING to the symbol name.
16974 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
16975 convert_mode().
16976 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
16977 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
16978 UNSPEC_DATALABEL.
16979 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
16980 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
16981 (DATALABEL_REF_P): Don't require CONST.
16982 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
16983 REL label.
16984 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
16985 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
16986 right.
16987 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
16988 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
16989 Use shallow_copy_rtx and PUT_MODE to change the mode of
16990 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
16991 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
16992 on SHmedia using GENERAL_REGs.
16993 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
16994 bltu_media_i): Fix reversion of conditions.
16995 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
16996 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
16997 * config/sh/sh.c (output_far_jump): Save r13 in macl.
16998 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
16999 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
17000 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
17001 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
17002 (GCC_nested_trampoline): Likewise.
17003 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
17004 * config/sh/sh.c (gen_datalabel_ref): Define.
17005 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
17006 (INITIALIZE_TRAMPOLINE): Likewise.
17007 (TRAMPOLINE_ADJUST_ADDRESS): Define.
17008 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
17009 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
17010 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
17011 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
17012 (ic_invalidate): Adjust for SH5.
17013 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
17014 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
17015 _nested_trampoline.
17016 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
17017 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
17018 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
17019 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
17020 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
17021 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
17022 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
17023 * config/sh/sh.c (target_reg_operand): Match only target-branch
17024 registers and pseudos that aren't virtual registers.
17025 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17026 Copy operands that don't match target_reg_operand to pseudos.
17027 (call_media, call_value_media, sibcall_media): Use
17028 target_reg_operand instead of target_operand.
17029 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
17030 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
17031 * config/sh/sh.c (target_reg_operand): Match hardware registers
17032 other than branch-target registers.
17033 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
17034 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
17035 (fpscr_values) [SH5 == 32]: Define.
17036 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
17037 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17038 Handle function addresses coming in SUBREGs.
17039 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
17040 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17041 shcompact_return_trampoline): Use datalabel where appropriate.
17042 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
17043 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
17044 general-purpose register to copy one branch-target register to
17045 another.
17046 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
17047 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
17048 SYMBOL_REFs with VOIDmode.
17049 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17050 bltu_media_i): New insns.
17051 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
17052 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
17053 (INIT_CUMULATIVE_ARGS): Likewise.
17054 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
17055 * machmode.def (V16SFmode): New mode.
17056 * c-common.c (type_for_mode): Support V2SF and V16SF.
17057 * tree.c (build_common_tree_nodes_2): Likewise.
17058 * tree.h (tree_index): Likewise.
17059 * calls.c (emit_call_1): Take args_so_far. Adjust all
17060 callers. Introduce CALL_POPS_ARGS.
17061 * tm.texi (CALL_POPS_ARGS): Document.
17062 * config/sh/crt1.asm: Implement in SHmedia mode.
17063 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
17064 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
17065 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
17066 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
17067 Implement divsi and udivsi in SHmedia mode. Introduce
17068 SHcompact trampolines.
17069 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
17070 only in SHmedia64.
17071 (regno_reg_class): Rewrite.
17072 (fp_reg_names): Remove.
17073 (sh_register_names, sh_additional_register_names): New.
17074 (print_operand): Added `u'. Support SUBREGs in addresses.
17075 Add parentheses around shifted CONSTs.
17076 (output_file_start): Output .mode and .abi directives.
17077 (shiftcosts, addsubcosts, multcosts): Adjust.
17078 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
17079 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
17080 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
17081 bytes, not registers. Take into account the need for the
17082 SHcompact incoming args trampoline. Adjust all callers.
17083 (sh_expand_prologue): Take stack_regs into account. Call
17084 incoming args trampoline. Keep stack aligned as per SH5 ABI.
17085 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
17086 stack aligned as per SH5 ABI.
17087 (sh_builtin_saveregs): Support SH5 ABI.
17088 (sh_build_va_list, sh_va_start): Likewise.
17089 (initial_elimination_offset): Take alignment into account.
17090 Compute location of PR according to the SH5 stack frame.
17091 (arith_reg_operand): Reject branch-target registers.
17092 (shmedia_6bit_operand): New.
17093 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
17094 (target_reg_operand): Match DImode only. Accept SUBREGs.
17095 (target_operand): New.
17096 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
17097 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
17098 SIBCALL_REGS for SHmedia.
17099 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
17100 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
17101 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
17102 (TARGET_SWITCHES): New SH5 flags.
17103 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
17104 VALID_REGISTER_P to disable unsupported registers.
17105 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
17106 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
17107 (FUNCTION_ARG_PADDING): Define.
17108 (FASTEST_ALIGNMENT): Adjust.
17109 (SH_REGISTER_NAMES_INITIALIZER): New.
17110 (sh_register_names): Declare.
17111 (DEBUG_REGISTER_NAMES): Define.
17112 (REGISTER_NAMES): Define based on sh_register_names.
17113 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
17114 (sh_additional_register_names): Declare.
17115 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
17116 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
17117 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
17118 (REGISTER_NATURAL_MODE): Define.
17119 (FIRST_PSEUDO_REGISTER): Adjust.
17120 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
17121 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
17122 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
17123 (VECTOR_MODE_SUPPORTED_P): Define.
17124 (REG_CLASS_CONTENTS): Adjust.
17125 (SMALL_REGISTER_CLASSES): Adjust.
17126 (REG_ALLOC_ORDER): Adjust.
17127 (INDEX_REG_CLASS): Adjust.
17128 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
17129 (CONST_OK_FOR_LETTER_P): Adjust.
17130 (PREFERRED_RELOAD_CLASS): Adjust.
17131 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
17132 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
17133 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
17134 (FIRST_FP_PARM_REG): Adjust.
17135 (CALL_POPS_ARGS): Define.
17136 (FUNCTION_ARG_REGNO_P): Adjust.
17137 (struct sh_args): New fields.
17138 (GET_SH_ARG_CLASS): Adjust.
17139 (INIT_CUMULATIVE_ARGS): Adjust.
17140 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
17141 (FUNCTION_ARG_ADVANCE): Adjust.
17142 (FUNCTION_ARG): Adjust.
17143 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
17144 (FUNCTION_ARG_CALLEE_COPIES): Define.
17145 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
17146 (STRICT_ARGUMENT_NAMING): Define.
17147 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
17148 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
17149 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
17150 (SETUP_INCOMING_VARARGS): Adjust.
17151 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
17152 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
17153 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
17154 (SUBREG_OK_FOR_INDEX_P): Adjust.
17155 (EXTRA_CONSTRAINT_S): Update.
17156 (EXTRA_CONSTRAINT_T): New.
17157 (EXTRA_CONSTRAINT): Adjust.
17158 (GO_IF_LEGITIMATE_INDEX): Adjust.
17159 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
17160 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
17161 (MOVE_MAX): Adjust.
17162 (MAX_MOVE_MAX): Define.
17163 (Pmode): Adjust.
17164 (CONST_COSTS): Adjust.
17165 (REGISTER_MOVE_COST): Adjust.
17166 (BRANCH_COST): Adjust.
17167 (TEXT_SECTION_ASM_OP): Adjust.
17168 (DBX_REGISTER_NUMBER): Adjust.
17169 (ASM_OUTPUT_DOUBLE_INT): New.
17170 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
17171 (PREDICATE_CODES): Adjust.
17172 (PROMOTE_MODE): Adjust.
17173 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
17174 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
17175 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
17176 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
17177 (DR0_REG, DR2_REG, DR4_REG): Renumber.
17178 (TR0_REG, TR1_REG, TR2_REG): New.
17179 (XD0_REG): Renumber.
17180 (UNSPEC_COMPACT_ARGS): New.
17181 (type): Added pt and ptabs.
17182 (length): Default to 4 on SHmedia. Default pt length to 12
17183 and 20 on SHmedia32 and SHmedia64, respectively.
17184 (pt): New function unit.
17185 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
17186 Add whitespace between operands of SHmedia instructions.
17187 (movdicc): Fix.
17188 (adddi3_media, addsi3_media): Adjust constraints.
17189 (subsi3) [SHmedia]: Force operand 1 into a register.
17190 (udivsi3_i1_media, udivsi3_i4_media): New.
17191 (udivsi3): Support SHmedia.
17192 (divsi3_i1_media, divsi3_i4_media): New.
17193 (divsi3): Support SHmedia.
17194 (anddi3, iordi3, xordi3): Adjust constraints.
17195 (zero_extendhidi2, zero_extendqidi2): New.
17196 (extendsidi2, extendhidi2, extendqidi2): New.
17197 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
17198 (pop_e, pop_fpul, pop_4): Likewise.
17199 (movsi_media): Support FP and BT registers.
17200 (movsi_media_nofpu): New. Adjust splits to DImode.
17201 (lduw, ldub): Renamed to zero_extend* above.
17202 (movqi_media): Fix typo.
17203 (movdi_media): Support FP and BT registers.
17204 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
17205 (movdi_const_32bit): New.
17206 (shori_media): Require immediate operand. Use `u' for output.
17207 (movdf_media, movsf_media): Simplified.
17208 (movdf_media_nofpu, movsf_media_nofpu): New.
17209 (movdf, movsf): Adjust
17210 (movv2sf, movv2sf, movv16sf): New.
17211 (beq_media, beq_media_i): Adjust constraints. Don't use
17212 scratch BT register.
17213 (bne_media, bne_media_i): Likewise.
17214 (bgt_media, bgt_media_i): Likewise.
17215 (bge_media, bge_media_i): Likewise.
17216 (bgtu_media, bgtu_media_i): Likewise.
17217 (bgeu_media, bgeu_media_i): Likewise.
17218 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
17219 bunordered): Emit jump insn. Force operands to registers when
17220 needed.
17221 (jump_media, jump): Simplify.
17222 (call_compact, call_compact_rettramp): New.
17223 (call_value_compact, call_value_compact_rettramp): New.
17224 (call_media, call_value_media): Simplify.
17225 (sibcall_compact, sibcall_media): New.
17226 (call, call_value): Adjust for SHmedia and SHcompact.
17227 (sibcall, sibcall_value, untyped_call): Likewise.
17228 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
17229 (indirect_jump): Adjust for SHmedia.
17230 (casesi_jump_media): New.
17231 (nop): Re-enable for SHmedia.
17232 (call_site): Restrict to SH1.
17233 (casesi): Adjust for SHmedia.
17234 (casesi_shift_media, casesi_load_media): New.
17235 (return): Explicitly use PR register. Call return trampoline
17236 on SHcompact.
17237 (return_i): Explicitly use PR register.
17238 (shcompact_return_tramp, shcompact_return_tramp_i): New.
17239 (return_media): Adjust.
17240 (shcompact_incoming_args): New.
17241 (epilogue): Adjust.
17242 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17243 (movstrsi): Disable on SH5.
17244 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
17245 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
17246 (subsf3, subsf3_media): Likewise.
17247 (mulsf3, mulsf3_media, mac_media): Likewise.
17248 (divsf3, divsf3_media): Likewise.
17249 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
17250 (floatsisf2, fux_truncsfsi2): Likewise.
17251 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
17252 constraints.
17253 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
17254 (cmpunsf_media, cmpsf): Likewise.
17255 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
17256 (abssf2, abssf2_media): Likewise.
17257 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
17258 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
17259 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
17260 (floatsidf2, fix_truncdfsi2): Likewise.
17261 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
17262 constraints.
17263 (cmpeqdf_media, cmpgtdf_media): Likewise.
17264 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
17265 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
17266 (absdf2, absdf2_media): Likewise.
17267 (extendsfdf2, extendsfdf2_media): Likewise.
17268 (truncsfdf2, truncsfdf2_media): Likewise.
17269 * config/sh/sh64.h: New file.
17270 * config/sh/t-sh64: New file.
17271 * config/sh/shmedia.h: New file.
17272 * config/sh/ushmedia.h: New file.
17273 * config/sh/sshmedia.h: New file.
17274 * configure.in: Added sh64-*-elf.
17275 * configure: Rebuilt.
17276 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
17277 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
17278 (reg_class_from_letter): Use `b' for TARGET_REGS.
17279 (print_operand): Support `%M', `%m', `AND' and
17280 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
17281 (andcosts): Adjust for SHmedia.
17282 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
17283 Likewise.
17284 (target_reg_operand): New function.
17285 * config/sh/sh-protos.h (target_reg_operand): Declare.
17286 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
17287 FP registers on SH5.
17288 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
17289 on SH4.
17290 (TARGET_REGISTER_P): New macro.
17291 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
17292 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
17293 (EXTRA_CONSTRAINT_S): New macro.
17294 (EXTRA_CONSTRAINT): Adjust.
17295 (FLOAT_TYPE_SIZE): Define to 32.
17296 (Pmode): DImode on SHmedia.
17297 (CONST_COSTS): Adjust for SHmedia literals.
17298 (PREDICATE_CODES): Added target_reg_operand.
17299 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
17300 * config/sh/sh.md: Remove all attrs from SHmedia insns.
17301 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
17302 (cmpdi): Accept SHmedia.
17303 (movdicc_false, movdicc_true): New insns.
17304 (movdicc): New expand.
17305 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
17306 no_new_pseudos.
17307 (addsi3_media): Match `S' constraint.
17308 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
17309 (negdi2): Expand for SHmedia.
17310 (one_cmpldi2): New expand.
17311 (zero_extendsidi2): Change from expand to insn.
17312 (extendsidi2): Add constraints.
17313 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
17314 LD/ST address. Fix SI immediate loading split.
17315 (movhi_media, movqi_media, lduw, ldub): New insns.
17316 (movhi, movqi): Accept SHmedia.
17317 (shori_media, movdi_media): Relax input constraints. Split
17318 symbolic constants.
17319 (movdf_media, movsf_media): New insn. New split to movdi.
17320 (movdf, movsf): Match on SHmedia.
17321 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
17322 bgeu_media): New insns and splits. New insns with `_i' suffix.
17323 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
17324 (bunordered): New expand.
17325 (jump_compact): Renamed from `jump'.
17326 (jump_media): New insn.
17327 (jump): New expand.
17328 (call_media, call_value_media): New insns.
17329 (call, call_value): Adjust.
17330 (indirect_jump_compact): Renamed from `indirect_jump'.
17331 (indirect_jump_media): New insn.
17332 (indirect_jump): New expand.
17333 (untyped_call, return): Accept SHmedia.
17334 (return_media): New insn.
17335 (prologue, epilogue, blockage): Accept SHmedia.
17336 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17337 (sunordered): New expand.
17338 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
17339 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
17340 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
17341 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
17342 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
17343 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
17344 abssf2_media): New insns.
17345 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
17346 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
17347 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
17348 floatdidf2, floatsidf2_media, fix_truncdfdi2,
17349 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
17350 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
17351 absdf2_media): New insns.
17352 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
17353 (extendsfdf2_media, truncdfsf2_media): New insns.
17354 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
17355 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
17356 * config/sh/sh.h (CONST_OK_FOR_J): Document.
17357 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
17358 * config/sh/sh.md (adddi3): New expand.
17359 (adddi3_media, adddi3z_media): New insns.
17360 (adddi3_compact): Renamed from adddi3.
17361 (addsi3_media): Use add.l r63 to add constant zero.
17362 (subdi3): New expand.
17363 (subdi3_media): New insn.
17364 (subdi3_compact): Renamed from subdi3.
17365 (mulsidi3): New expand.
17366 (mulsidi3_media): New insn.
17367 (mulsidi3_compact): Renamed from mulsidi3.
17368 (umulsidi3): New expand.
17369 (umulsidi3_media): New insn.
17370 (umulsidi3_compact): Renamed from umulsidi3.
17371 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
17372 (ashlsi3, ashrsi3, lshrsi3): Use them.
17373 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
17374 (ashldi3, ashrdi3, lshrdi3): Use them.
17375 (zero_extendsidi2): New expand.
17376 (extendsidi2): New insn.
17377 (movsi_media): New insn. Split to movdi to load constants.
17378 (movsi): Enable for shmedia.
17379 (movdi_media): New insn. Use shori_media to load wide constants.
17380 (short_media): New insn.
17381 (movdi): Enable for shmedia.
17382 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
17383 * config/sh/sh.h (CPP_SPEC): Added `m5'.
17384 (SUBTARGET_CPP_SPEC): Added `!m5'.
17385 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
17386 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
17387 to all other SH variants.
17388 (TARGET_DEFAULT): Set to SH1_BIT.
17389 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
17390 (BITS_PER_WORD): Raise to 64 on shmedia.
17391 (MAX_BITS_PER_WORD): Change to 64.
17392 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
17393 (INT_TYPE_SIZE): Keep as 32.
17394 (UNITS_PER_WORD): Raise to 8 on shmedia.
17395 (MIN_UNITS_PER_WORD): Keep as 4.
17396 (POINTER_SIZE): Raise to 64 on shmedia.
17397 (CONST_OK_FOR_J): New macro.
17398 (CONST_OK_FOR_LETTER_P): Use it.
17399 (processor_type): Add PROCESSOR_SH5.
17400 * config/sh/sh.md: Conditionalize all expands, insns and
17401 splits to TARGET_SH1.
17402 (cpu): Added sh5.
17403 (addsi3_compact): Renamed from...
17404 (addsi3): Now an expand.
17405 (addsi3_media, subsi3_media): New insns.
17406 (subsi3): Don't negate constants with SHmedia.
17407
17408 * hooks.c: New file.
17409 * hooks.h: New file.
17410 * Makefile.in (HOOKS_H): New.
17411 (TARGET_DEF_H): Added $(HOOKS_H).
17412 (OBJS): Added hooks.o.
17413 (cfgcleanup.o, bb-reorder.o): Added target.h.
17414 (hooks.o): Added dependencies.
17415 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
17416 (TARGET_INITIALIZER): this.
17417 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
17418 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
17419 * bb-reorder.c: Include target.h.
17420 (reorder_basic_blocks): Skip if cannot modify jumps.
17421 * cfgcleanup.c: Include target.h.
17422 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
17423
17424 2002-02-08 Chris Demetriou <cgd@broadcom.com>
17425
17426 * config/mips/mips.md (casesi_internal, casesi_internal_di):
17427 Protect jump delay slot instructions with .set noreorder and
17428 .set nomacro.
17429
17430 2002-02-08 Chris Demetriou <cgd@broadcom.com>
17431
17432 * config/mips/mips.md (casesi_internal_di): Calculate
17433 the index into the target offset table correctly.
17434
17435 2002-02-08 Richard Henderson <rth@redhat.com>
17436
17437 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
17438 * final.c (output_addr_const): Accept and discard SUBREG.
17439 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
17440 mark them unknown instead.
17441 (simplify_subtraction): Handle RTX_UNKNOWN.
17442 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
17443
17444 2002-02-08 David Edelsohn <edelsohn@gnu.org>
17445
17446 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
17447
17448 2002-02-08 Richard Henderson <rth@redhat.com>
17449
17450 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
17451
17452 2002-02-08 Andreas Jaeger <aj@suse.de>
17453
17454 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
17455 * config/i386/t-linux64: New file.
17456
17457 2002-02-08 Jakub Jelinek <jakub@redhat.com>
17458
17459 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
17460 * c-parse.in (compstmt): Clear last_expr_type.
17461
17462 2002-02-07 Richard Henderson <rth@redhat.com>
17463
17464 * loop.c (strength_reduce): Sink final_value when not
17465 eliminating a biv.
17466
17467 2002-02-07 David O'Brien <obrien@FreeBSD.org>
17468
17469 * config/sparc/freebsd.h: Fix mismatched spec {.
17470
17471 2002-02-07 Richard Henderson <rth@redhat.com>
17472
17473 * cfgrtl.c: Include recog.h and insn-config.h.
17474 (keep_with_call_p): Fix general_operand invocation.
17475 * Makefile.in (cfgrtl.o): Update dependencies.
17476
17477 2002-02-07 Kazu Hirata <kazu@hxi.com>
17478
17479 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
17480 comment. Accept HImode only if TARGET_H8300.
17481
17482 2002-02-07 Eric Christopher <echristo@redhat.com>
17483
17484 * config/mips/crtn.asm: Cleanup #ifdefs.
17485
17486 2002-02-07 Eric Christopher <echristo@redhat.com>
17487
17488 * config/mips/crti.asm: Add changes for mips16. mips16 uses
17489 register 7 as RA instead of $31.
17490 * config/mips/crtn.asm: Ditto.
17491 * config/mips/mips.c (mips_move_2words): Add case for
17492 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
17493 (compute_frame_size): Fix typo.
17494 (save_restore_insns): Ditto. Make documentation about using
17495 register $7 as return register more precise.
17496 (mips_expand_epilogue): Fix comment. Add code to work around not
17497 being able to add to the stack pointer directly.
17498 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
17499 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
17500 epilogue.
17501
17502 2002-02-07 Tom Rix <trix@redhat.com>
17503
17504 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
17505 immediates in ldu and stdu DS opcode field.
17506 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
17507 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
17508 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
17509
17510 2002-02-07 Jeff Sturm <jsturm@one-point.com>
17511
17512 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
17513 offset for stack bias.
17514
17515 2002-02-07 H.J. Lu <hjl@gnu.org>
17516
17517 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
17518
17519 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
17520
17521 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
17522
17523 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
17524
17525 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
17526 * i386.c (x86_order_regs_for_local_alloc): New global function.
17527 * i386.h (REG_ALLOC_ORDER): CLeanup.
17528 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
17529
17530 2002-02-07 Richard Henderson <rth@redhat.com>
17531
17532 PR optimization/2463
17533 * alias.c (find_base_value): Recall base values for fixed hard regs.
17534 * loop.c (loop_regs_update): Don't use single_set on non-insns.
17535
17536 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
17537
17538 * config/mips/mips.md (define_delay) [mips16]: Adjust required
17539 length.
17540
17541 2002-02-06 Richard Henderson <rth@redhat.com>
17542
17543 PR c/5609
17544 * stmt.c (resolve_operand_name_1): Take more care with mixed
17545 named and unnamed operands.
17546
17547 2002-02-06 Janis Johnson <janis187@us.ibm.com>
17548 Jan Hubicka <jh@suse.cz>
17549
17550 * loop.c (remove_constant_addition): Avoid clobbering a shared
17551 CONST expression.
17552
17553 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
17554
17555 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
17556 * config/s390/t-linux64: New file.
17557 * config/s390/libgcc-glibc.ver: New file.
17558
17559 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
17560
17561 * config/s390/linux64.h: Delete file.
17562 * config/s390/s390x.h: New file.
17563 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
17564 as target header file.
17565 * config/s390/linux.h (TARGET_VERSION): Define depending on
17566 DEFAULT_TARGET_64BIT.
17567 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
17568 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
17569 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
17570 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
17571 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
17572 (EXTRA_SPEC): New define.
17573 * config/s390/s390.h (TARGET_VERSION): Define depending on
17574 DEFAULT_TARGET_64BIT.
17575 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
17576
17577 2002-02-06 Jason Merrill <jason@redhat.com>
17578
17579 * c-decl.c (finish_function): Warn about a non-void function with
17580 no return statement and no abnormal exit.
17581 (current_function_returns_abnormally): New variable.
17582 (start_function): Clear it.
17583 (struct c_language_function): Add returns_abnormally.
17584 (push_c_function_context): Save it.
17585 (pop_c_function_context): Restore it.
17586 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
17587 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
17588 an explicit return type.
17589 * c-tree.h: Declare current_function_returns_abnormally.
17590 (C_FUNCTION_IMPLICIT_INT): New macro.
17591 * c-typeck.c (build_function_call): Set it.
17592 (c_expand_return): Set current_function_returns_value even if the
17593 value is erroneous.
17594
17595 2002-02-06 Jakub Jelinek <jakub@redhat.com>
17596
17597 PR c/5420:
17598 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
17599 unsafe for reevaluation.
17600
17601 2002-02-06 Jakub Jelinek <jakub@redhat.com>
17602
17603 PR c/5482:
17604 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
17605 EXPR_STMT, but COMPOUND_STMT, recurse into it.
17606
17607 2002-02-06 Richard Henderson <rth@redhat.com>
17608
17609 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
17610 be a general_operand. Dest for function value must be a pseudo.
17611
17612 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
17613
17614 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
17615 as SYMBOL_REFs from the constant pool.
17616
17617 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
17618
17619 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
17620 passed by invisible reference.
17621
17622 2002-02-05 Richard Henderson <rth@redhat.com>
17623
17624 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
17625
17626 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
17627
17628 Implement using "base addresses" in insn operands as default.
17629 * config/mmix/mmix.c (mmix_conditional_register_usage): if
17630 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
17631 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
17632 used to read the rtx value.
17633 (mmix_target_asm_function_epilogue): Fix spacing.
17634 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
17635 (mmix_legitimate_address): Ditto.
17636 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
17637 should be loaded with a GETA insn. Don't allocate needless extra
17638 char for nul termination and fix misleading comment.
17639 (mmix_print_operand_address): Handle constants if
17640 TARGET_BASE_ADDRESSES.
17641 (mmix_output_register_setting): Use base addressing if
17642 TARGET_BASE_ADDRESSES and the number of insns is 3.
17643 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
17644 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
17645 to use R as constraint, add LDA to match s.
17646 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
17647 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
17648 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
17649 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
17650 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
17651 order with other fixed registers.
17652 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
17653 other parameter/call-clobbered registers.
17654 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
17655 -mbase-addresses, -mno-base-addresses.
17656 (MMIX Options): Ditto.
17657
17658 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
17659
17660 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
17661
17662 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
17663
17664 * config/rs6000/altivec.h: Change elem to _S_elem.
17665
17666 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
17667
17668 * config/netbsd.h (WCHAR_TYPE): Define.
17669 (WCHAR_TYPE_SIZE): Ditto.
17670 (WINT_TYPE): Ditto.
17671 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
17672 (WCHAR_UNSIGNED): Ditto.
17673 (WCHAR_TYPE_SIZE): Ditto.
17674 (WINT_TYPE): Ditto.
17675 * config/arm/netbsd.h: Likewise.
17676 * config/i386/netbsd-elf.h: Likewise.
17677 * config/i386/netbsd.h: Likewise.
17678 * config/m68k/netbsd-elf.h: Likewise.
17679 * config/m68k/netbsd.h: Likewise.
17680 * config/ns32k/netbsd.h: Likewise.
17681 * config/sparc/netbsd.h: Likewise.
17682 * config/vax/netbsd.: Likewise.
17683
17684 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
17685
17686 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
17687 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
17688 (TARGET_INITIALIZER): this.
17689 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
17690 (BITFIELD_NBYTES_LIMITED): Markup fix.
17691 * tree.h (default_ms_bitfield_layout_p): Declare.
17692 (record_layout_info): Added prev_field.
17693 * tree.c (default_ms_bitfield_layout_p): New fn.
17694 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
17695 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
17696 * stor-layout.c: Include target.h.
17697 (start_record_layout): Initialize prev_field.
17698 (place_field): Handle MS bit-field layout, and disregard
17699 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
17700 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
17701 * Makefile.in (stor-layout.o): Adjust dependencies.
17702
17703 2002-02-05 Jason Merrill <jason@redhat.com>
17704
17705 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
17706
17707 2002-02-05 Andreas Jaeger <aj@suse.de>
17708
17709 * crtstuff.c: Fix comments.
17710
17711 2002-02-05 Richard Henderson <rth@redhat.com>
17712
17713 PR fortran/3393
17714 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
17715 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
17716
17717 PR fortran/3392
17718 * config/mips/mips.c (function_arg): Handle TImode.
17719 (function_arg_advance): Likewise.
17720
17721 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
17722
17723 * config/rs6000/altivec.h (vec_step_help): Rename to
17724 __vec_step_help.
17725
17726 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
17727
17728 * config/rs6000/altivec.h: Fix typos.
17729
17730 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
17731
17732 * config/arm/netbsd.h: Correct a comment.
17733
17734 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
17735
17736 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
17737 building void typed builtins.
17738
17739 * config/rs6000/altivec.h (vec_ld*): Fix typos.
17740 (vec_step): Implement for C++.
17741
17742 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17743
17744 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
17745
17746 2002-02-04 Richard Henderson <rth@redhat.com>
17747
17748 * combine.c (nonzero_bits): Re-introduce special case for
17749 sp/fp/ap wrt REGNO_POINTER_ALIGN.
17750
17751 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
17752
17753 * doc/extend.texi: Warn about unsupported usage of altivec
17754 builtins.
17755
17756 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
17757 (altivec_predicate_*): New.
17758
17759 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
17760 Add C++ version of vec_*() functions.
17761
17762 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
17763 (bdesc_2arg): Remove altivec predicates.
17764 (altivec_expand_builtin): Handle predicates.
17765 (altivec_init_builtins): Handle predicates.
17766 (altivec_expand_predicate_builtin): New.
17767
17768 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17769
17770 * pa.c (DO_FRAME_NOTES): Move forward.
17771 (store_reg): Revise handling of frame notes.
17772 (load_reg): Likewise.
17773 (set_reg_plus_d): Likewise.
17774 (hppa_expand_prologue): Likewise.
17775 (hppa_expand_epilogue): Likewise.
17776
17777 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17778
17779 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
17780
17781 2002-02-04 Jakub Jelinek <jakub@redhat.com>
17782
17783 PR c/4475, c++/3780:
17784 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
17785 * c-common.h (SWITCH_TYPE): Define.
17786 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
17787 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
17788 Rename spareness variable to sparseness.
17789 (expand_end_case_type): Renamed from expand_end_case, use orig_type
17790 if non-NULL instead of TREE_TYPE (orig_index).
17791 * tree.h (expand_end_case_type): Renamed from expand_end_case.
17792 (expand_end_case): Define using expand_end_case_type.
17793 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
17794 to expand_end_case_type.
17795 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
17796
17797 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17798
17799 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
17800 (BIGGEST_ALIGNMENT): Change to 128.
17801
17802 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17803
17804 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
17805
17806 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
17807
17808 * pa.md (call_internal_reg_64bit): Remove unused variable.
17809
17810 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
17811
17812 * config/arm/arm.h (machine_function): Add uses_anonymous_args
17813 field.
17814 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
17815 * config/arm/arm.c (current_function_anonymous_args): Delete,
17816 replace uses with cfun->machine->uses_anonymous_args.
17817 (arm_reorg): Do not reset uses_anonymous_args.
17818
17819 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
17820 any geenral register.
17821
17822 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
17823
17824 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
17825 the entry block.
17826
17827 2002-02-04 Richard Henderson <rth@redhat.com>
17828
17829 * combine.c (force_to_mode): Remove STACK_BIAS code.
17830 (nonzero_bits): Likewise. Replace sp/fp special case with
17831 REGNO_POINTER_ALIGN.
17832
17833 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
17834 (HARD_FRAME_POINTER_REGNUM): New.
17835 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
17836 (FIXED_REGS, CALL_USED_REGS): Update.
17837 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
17838 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
17839 (HARD_REGNO_NREGS): Update for SFP.
17840 (STACK_POINTER_OFFSET): Include bias here ...
17841 (FIRST_PARM_OFFSET): ... not here.
17842 (STACK_BIAS): Remove.
17843 (INIT_EXPANDERS): New.
17844 (STARTING_FRAME_OFFSET): Do not include bias.
17845 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
17846 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
17847 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
17848 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
17849 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
17850 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
17851 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
17852 (MUST_SAVE_REGISTER): Likewise.
17853 (sparc_flat_function_prologue): Likewise.
17854 (sparc_flat_function_epilogue): Likewise.
17855 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
17856 (sparc_init_modes): SFP is GENERAL_REGS.
17857 (sparc_builtin_saveregs): SFP does not have bias applied.
17858
17859 2002-02-04 Richard Henderson <rth@redhat.com>
17860
17861 * config/alpha/alpha.c (current_function_is_thunk): Don't check
17862 current_function_is_thunk.
17863 (alpha_sa_mask): Distinguish between current_function_is_thunk
17864 called from ASM_OUTPUT_MI_THUNK and not.
17865 (alpha_does_function_need_gp): Thunks always need gp.
17866 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
17867 (alpha_output_mi_thunk_osf): New.
17868 * config/alpha/alpha-protos.h: Update.
17869 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
17870
17871 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
17872
17873 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
17874 function types, not when they're taken away.
17875
17876 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
17877
17878 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
17879 CODE_LABEL and jump table when replacing a table jump with a
17880 simple jump.
17881
17882 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
17883
17884 * config/s390/s390-protos.h (legitimize_la_operand,
17885 s390_secondary_input_reload_class, s390_plus_operand,
17886 s390_expand_plus_operand): Add prototypes.
17887
17888 config/s390/s390.c (s390_secondary_input_reload_class,
17889 s390_plus_operand, s390_expand_plus_operand): New functions.
17890
17891 (struct s390_address): New member 'pointer'.
17892 (s390_decompose_address): Compute it.
17893 (legitimate_la_operand_p): Use it.
17894 (legitimize_la_operand): New function.
17895 (movti, movdi, movdf splitters): Call it.
17896
17897 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
17898 (PREDICATE_CODES): Add s390_plus_operand.
17899
17900 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
17901 (la_ccclobber): Allow GENERAL_REGS as output operand.
17902
17903 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
17904 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
17905 (*la_64, *la_31, reload_indi, reload_insi): ... these.
17906
17907 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
17908
17909 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
17910 register names for regular asm () construct.
17911
17912 2002-02-04 Jakub Jelinek <jakub@redhat.com>
17913
17914 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
17915 registers.
17916
17917 2002-02-04 Jakub Jelinek <jakub@redhat.com>
17918
17919 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
17920 pat for recog.
17921
17922 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
17923
17924 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
17925 constant pool to be identical by string address and index.
17926
17927 2002-02-04 Anthony Green <green@redhat.com>
17928
17929 * output.h (SECTION_OVERRIDE): Define.
17930 * varasm.c (named_section): Obey SECTION_OVERRIDE.
17931
17932 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
17933
17934 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
17935 by existing arm*-*-netbsd* (a.out) target.
17936 (ns32k-*-netbsdelf*): Likewise.
17937 (sparc-*-netbsdelf*): Likewise.
17938 (vax-*-netbsdelf*): Likewise.
17939
17940 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
17941
17942 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
17943 headers and libobjc headers.
17944
17945 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
17946
17947 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
17948 (_mingw.h): Remove duplicate include.
17949
17950 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
17951
17952 * config.gcc: Set cpu_type to m68k for 68010, as well.
17953 (m68010-*-netbsdelf*): New...
17954 (m68k*-*-netbsdelf*): ...targets.
17955 * config/m68k/netbsd-elf.h: New file.
17956
17957 2002-02-02 Kazu Hirata <kazu@hxi.com>
17958
17959 * config/h8300/h8300.c (hand_list): Move inside function_arg.
17960
17961 2002-02-02 Kazu Hirata <kazu@hxi.com>
17962
17963 * config/h8300/h8300.c (h8_push_ops): Move inside
17964 h8300_init_once.
17965 (h8_pop_ops): Likewise.
17966 (h8_move_ops): Likewise.
17967
17968 2002-02-02 Kazu Hirata <kazu@hxi.com>
17969
17970 * config/h8300/h8300.c (os_task): Make it static.
17971 (monitor): Likewise.
17972 (pragma_saveall): Likewise.
17973
17974 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
17975
17976 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
17977 constant is a valid sign-extension for Pmode.
17978
17979 2002-02-02 Kazu Hirata <kazu@hxi.com>
17980
17981 * config/h8300/h8300.c: Fix formatting.
17982
17983 2002-02-02 Kazu Hirata <kazu@hxi.com>
17984
17985 * config/h8300/h8300.md: Fix formatting.
17986
17987 2002-02-02 Kazu Hirata <kazu@hxi.com>
17988
17989 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
17990 predicates of operands[1]. Split the patterns for each
17991 processor variant.
17992
17993 2002-02-02 Kazu Hirata <kazu@hxi.com>
17994
17995 * config/h8300/h8300.md (xor patterns): Tighten the predicates
17996 of operands[1] to register_operand.
17997
17998 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
17999
18000 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
18001 * cpphash.c (_cpp_init_hashtable): Similarly.
18002 * cppinit.c (cpp_create_reader): Default the signed_char flag.
18003 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
18004 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
18005 (cpp_handle_option): Handle the new options.
18006 * cpplex.c (cpp_interpret_charconst): Use new flag.
18007 * cpplib.h (struct cpp_options): New member signed_char.
18008 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
18009 (cpp_options): Handle -fsigned-char and -funsigned-char.
18010 (static_specs): Remove signed_char_spec.
18011 (do_spec1): Don't handle %c.
18012 * system.h: Poison SIGNED_CHAR_SPEC.
18013 * tradcif.y (yylex): Use flag_signed_char.
18014 * tradcpp.h (flag_signed_char): New.
18015 * tradcpp.c (flag_signed_char): New.
18016 (main): Handle new command-line options.
18017 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
18018 config:
18019 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
18020 * avr/avr.h: Remove old comments.
18021 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
18022 (CC1_SPEC): Pass -fsigned-char if -mic*.
18023 (SIGNED_CHAR_SPEC): Remove.
18024 doc:
18025 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
18026
18027 2002-02-01 Eric Christopher <echristo@redhat.com>
18028
18029 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
18030 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
18031 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
18032 (ASM_OUTPUT_REG_POP): Ditto.
18033
18034 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
18035
18036 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
18037 patch.
18038
18039 2002-02-02 Jakub Jelinek <jakub@redhat.com>
18040
18041 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
18042
18043 2002-02-02 Jakub Jelinek <jakub@redhat.com>
18044
18045 PR c/5304:
18046 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
18047 unconditionally.
18048
18049 2002-02-01 Janis Johnson <janis187@us.ibm.com>
18050
18051 * cfganal.c: Include tm_p.h.
18052 (keep_with_call_p): Fix the test that determines if a register holds
18053 the return value of a call.
18054
18055 2002-02-01 DJ Delorie <dj@redhat.com>
18056
18057 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
18058 we are given conflicting registers, switch to the other one we
18059 had allocated for us.
18060 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
18061 as TImode so we know when the "other" register is available.
18062
18063 2002-02-01 David O'Brien <obrien@FreeBSD.org>
18064
18065 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
18066 sparc/sparc_bi.h.
18067
18068 2002-02-01 Janis Johnson <janis187@us.ibm.com>
18069
18070 * cfganal.c (keep_with_call_p): New function.
18071 (flow_call_edges_add): Prevent splitting a block between a call and
18072 a single-set instruction that should be kept in the same block.
18073
18074 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
18075
18076 * doc/install.texi (avr): Update outdated URL.
18077
18078 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
18079
18080 * config/stormy16/stormy16.md (pushqi): New.
18081 (popqi): New.
18082 (pushhi): New.
18083 (pophi): New.
18084 (movhi): Remove stack operands.
18085 (movqi): Likewise.
18086 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
18087 nonimmediate_nonstack_operand.
18088 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
18089 New.
18090 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
18091 New.
18092
18093 2002-01-31 Jason Merrill <jason@redhat.com>
18094
18095 * Makefile.in (c-parse.c): Handle .output file.
18096 * objc/Make-lang.in (objc-parse.c): Likewise.
18097
18098 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
18099
18100 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
18101 the -me[lb] option is given. Don't output the default flag
18102 twice.
18103
18104 2002-01-31 Zack Weinberg <zack@codesourcery.com>
18105
18106 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
18107 the primary source file; this has not been done yet.
18108 * c-decl.c (c_expand_body): Reset input_filename from
18109 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
18110
18111 2002-01-31 Kazu Hirata <kazu@hxi.com>
18112
18113 * rtlanal.c (subreg_regno_offset): Do not use
18114 SUBREG_REGNO_OFFSET.
18115 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
18116 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
18117
18118 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
18119
18120 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
18121 version rather than GNATS version in --version output.
18122
18123 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
18124
18125 * ifcvt.c (noce_process_if_block): Make a copy of the destination
18126 when copying back from a temporary.
18127
18128 2002-01-30 Richard Henderson <rth@redhat.com>
18129
18130 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
18131 and new_dest are the same.
18132
18133 2002-01-30 Richard Henderson <rth@redhat.com>
18134
18135 PR opt/5076
18136 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
18137 * rtl.c (note_insn_name): Update.
18138 * emit-rtl.c (remove_unnecessary_notes): Kill it.
18139 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
18140 to perform loop rotation.
18141 (expand_exit_loop_top_cond): New.
18142 * tree.h (expand_exit_loop_top_cond): Declare it.
18143 * c-semantics.c (genrtl_while_stmt): Use it.
18144 (genrtl_for_stmt): Likewise.
18145
18146 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
18147
18148 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
18149 arguments to 64-bit boundaries on 64-bit ABIs.
18150
18151 2002-01-30 Steve Ellcey <sje@cup.hp.com>
18152
18153 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
18154
18155 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
18156
18157 * c-decl.c (grokdeclarator): Handle type being a typedef for an
18158 invalid type.
18159
18160 2002-01-30 David O'Brien <obrien@FreeBSD.org>
18161
18162 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
18163 * config/sparc/sparc_bi.h: Remove file.
18164 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
18165
18166 2002-01-30 Richard Henderson <rth@redhat.com>
18167
18168 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
18169
18170 2002-01-30 Zack Weinberg <zack@codesourcery.com>
18171
18172 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
18173
18174 2002-01-30 Jason Merrill <jason@redhat.com>
18175
18176 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
18177 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
18178 (reg_save): Use DW_CFA_offset_extended_sf instead.
18179
18180 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
18181
18182 2002-01-29 Jakub Jelinek <jakub@redhat.com>
18183
18184 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
18185 in cselib_lookup.
18186
18187 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
18188
18189 * rs6000.md ("*call_value_local32"): Remove constraints.
18190 ("*call_value_local64"): Same.
18191 ("*call_value_indirect_nonlocal_aix32"): Same.
18192 ("*call_value_nonlocal_aix32"): Same.
18193 ("*call_value_indirect_nonlocal_aix64"): Same.
18194 ("*call_value_nonlocal_aix64"): Same.
18195 ("*call_value_nonlocal_sysv"): Same.
18196
18197 2002-01-29 Richard Henderson <rth@redhat.com>
18198
18199 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
18200
18201 2002-01-29 Richard Henderson <rth@redhat.com>
18202
18203 * expr.c (force_operand): Ignore flag_pic for detecting pic
18204 address loads.
18205 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
18206 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
18207 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
18208 instead of open-coded loop.
18209 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
18210 be fixed when in use.
18211
18212 2002-01-29 Richard Henderson <rth@redhat.com>
18213
18214 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
18215 * sched-rgn.c (propagate_deps): Update them.
18216 * sched-deps.c (sched_analyze_insn): Update them. Flush the
18217 clobbers list when either gets too long.
18218
18219 2002-01-29 Jakub Jelinek <jakub@redhat.com>
18220
18221 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
18222 and INDEX_REGS the same as GENERAL_REGS.
18223 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
18224
18225 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
18226
18227 * tree.c (build_nonstandard_integer_type): Correct prototype.
18228
18229 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
18230
18231 * config/s390/s390.md (movstrsico, movstrdix_64,
18232 movstrsix_31): Remove, replace by ...
18233 (movstrdi_short, movstrsi_short, movstrdi_long,
18234 movstrsi_long): ... these. New.
18235 (movstrdi, movstrsi): Adapt.
18236
18237 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
18238 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
18239 Remove unnecessary CC clobber.
18240 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
18241 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
18242
18243 (divmoddi4): Don't partially initialize TImode register.
18244
18245 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
18246
18247 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
18248
18249 2002-01-29 Richard Henderson <rth@redhat.com>
18250
18251 * flow.c (print_rtl_and_abort): Remove.
18252 (print_rtl_and_abort_fcn): Remove.
18253 (verify_local_live_at_start): Use dump_bb instead.
18254 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
18255 (verify_wide_reg_1): Return 2 on mode test failure.
18256
18257 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
18258
18259 PR c/3325, c/3326, c/2511, c/3347
18260 * c-decl.c (enum_decl_context): Remove BITFIELD.
18261 (grokdeclarator): Take bitfield width as an input.
18262 Ensure bitfields are given the correct type. Perform
18263 bitfield width validation with build_bitfield_integer_type
18264 rather than waiting for finish_struct.
18265 (grok_typename, grok_typename_in_parm_context, start_decl,
18266 push_parmdecl, grokfield, start_function): Update calls to
18267 grokdeclarator.
18268 (build_bitfield_integer_type): New function.
18269 (finish_struct): Move bitfield validation to grokdeclarator
18270 and build_bitfield_integer_type.
18271 * tree.c (build_nonstandard_integer_type): New function.
18272 * tree.h (build_nonstandard_integer_type): New prototype.
18273 objc:
18274 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
18275
18276 2002-01-29 Jakub Jelinek <jakub@redhat.com>
18277
18278 PR other/1502:
18279 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
18280 don't ignore unrecognized -W* options.
18281 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
18282 * cpplib.h (cpp_handle_option): Adjust prototype.
18283 * c-decl.c (c_decode_options): Pass 0 as last argument to
18284 cpp_handle_option.
18285
18286 PR c/2896:
18287 * gcc.c (cpp_unique_options): Split from cpp_options.
18288 (cpp_options): Source cpp_unique_options.
18289 (default_compilers): Use cpp_unique_options instead of cpp_options
18290 when used together with cc1_options.
18291 (static_specs): Add cpp_unique_options.
18292 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
18293 when used together with cc1_options.
18294
18295 2002-01-29 Kazu Hirata <kazu@hxi.com>
18296
18297 * config/h8300/h8300-protos.h: Update the prototype of
18298 output_a_shift.
18299 * config/h8300/h8300.c (output_a_shift): Remove an unused
18300 argument 'insn'. Remove redundant code.
18301 * config/h8300/h8300.md: Adust to the new prototype of
18302 output_a_shift.
18303
18304 2002-01-29 Kazu Hirata <kazu@hxi.com>
18305
18306 * config/h8300/h8300-protos.h: Update the prototypes of
18307 emit_a_rotate and expand_a_rotate.
18308 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
18309 first argument to 'enum rtx_code'.
18310 (expand_a_rotate): Likewise.
18311
18312 2002-01-28 Kazu Hirata <kazu@hxi.com>
18313
18314 * config/h8300/h8300-protos.h: Update the prototype of
18315 output_simode_bld.
18316 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
18317 'log2'.
18318 * config/h8300/h8300.md: Adjust to the new prototype.
18319
18320 2002-01-28 Kazu Hirata <kazu@hxi.com>
18321
18322 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
18323 redundant code.
18324
18325 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
18326
18327 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
18328 is a fixed register before returning pic_offset_table_rtx.
18329 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
18330 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
18331
18332 2002-01-28 Jason Merrill <jason@redhat.com>
18333
18334 * dwarf2.h: Sync with src version.
18335
18336 2002-01-28 Paul Koning <pkoning@equallogic.com>
18337
18338 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
18339 BT_FN_VOID_PTR_VAR.
18340 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
18341 * doc/extend.texi (__builtin_prefetch): Update documentation:
18342 first argument is now const void ptr.
18343
18344 2002-01-28 Kazu Hirata <kazu@hxi.com>
18345
18346 * config/h8300/h8300-protos.h: Remove an unused prototype.
18347
18348 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
18349
18350 * toplev.c (lang_independent_init): Round up identifier size.
18351
18352 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
18353
18354 * config.gcc: Revert previous change.
18355
18356 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
18357
18358 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
18359
18360 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
18361
18362 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
18363 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
18364 other non-elf netbsd config frags.
18365 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
18366 collect2 will does that.
18367 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
18368 shared-lib frobbing will work.
18369
18370 2002-01-28 Kazu Hirata <kazu@hxi.com>
18371
18372 * config/h8300/h8300.h: Fix formatting.
18373 * config/h8300/h8300.md: Likewise.
18374
18375 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
18376
18377 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
18378 the old, removed AAA_standards fix.
18379 * fixinc/fixincl.x: Rebuilt.
18380
18381 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
18382
18383 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
18384 atexit call in crtbegin, hooked in after call to frame_dummy;
18385 register EH before registering __fini__start.
18386
18387 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
18388
18389 * config/rs6000/altivec.h: Remove spurious semicolons.
18390
18391 2002-01-27 Kazu Hirata <kazu@hxi.com>
18392
18393 * config/h8300/h8300.md: Replace dead bit extraction patterns
18394 with ones that work.
18395
18396 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18397
18398 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
18399 if not STRICT_ALIGNMENT.
18400 * rtl.h (MEM_ALIGN): Likewise.
18401
18402 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
18403
18404 * doc/invoke.texi (-fdump-translation-unit): Revert this
18405 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
18406
18407 2002-01-27 Kazu Hirata <kazu@hxi.com>
18408
18409 * config/h8300/h8300.md (define_constants): New.
18410 (anonymous patterns) Use defined constants appropriately.
18411
18412 2002-01-27 Kazu Hirata <kazu@hxi.com>
18413
18414 * config/h8300/h8300.c (function_arg): Remove redundant code.
18415
18416 2002-01-26 Richard Henderson <rth@redhat.com>
18417
18418 * sched-deps.c (reg_pending_uses_head): New.
18419 (reg_pending_barrier): Rename from reg_pending_sets_all.
18420 (find_insn_list): Don't mark inline.
18421 (find_insn_mem_list): Remove.
18422 (add_dependence_list, add_dependence_list_and_free): New.
18423 (flush_pending_lists): Replace only_write param with separate
18424 for_read and for_write parameters. Update all callers. Use
18425 add_dependence_list_and_free.
18426 (sched_analyze_1): Do not add reg dependencies here; just set
18427 the pending bits. Use add_dependence_list.
18428 (sched_analyze_2): Likewise.
18429 (sched_analyze_insn): Replace schedule_barrier_found with
18430 reg_pending_barrier. Add all dependencies for pending reg
18431 uses, sets, and clobbers.
18432 (sched_analyze): Don't add reg dependencies for calls, just
18433 set pending bits. Use regs_invalidated_by_call. Treat
18434 sched_before_next_call as a normal list, not a fake insn.
18435 (init_deps): No funny init for sched_before_next_call.
18436 (free_deps): Free pending mems lists. Don't zero reg_last.
18437 (init_deps_global): Init reg_pending_uses.
18438 (finish_deps_global): Free it.
18439 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
18440 (find_insn_mem_list): Remove.
18441 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
18442 (propagate_deps): Use them. Zero temp mem lists.
18443
18444 2002-01-26 Richard Henderson <rth@redhat.com>
18445
18446 * Makefile.in (CRTSTUFF_CFLAGS): New.
18447 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
18448 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
18449 crtstuff.c instead of alpha assembly version.
18450 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
18451 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
18452 not FORCE_{INIT,FINI}_SECTION_ALIGN.
18453 (__do_global_dtors_aux): Mark used.
18454 (frame_dummy, __do_global_ctors_aux): Mark used.
18455 (fini_dummy, init_dummy): Remove.
18456
18457 * config/alpha/crtbegin.asm: Remove file.
18458 * config/alpha/crtend.asm: Remove file.
18459 * config/alpha/t-crtbe: Remove file.
18460 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
18461 (LINK_EH_SPEC): New.
18462
18463 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
18464 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
18465 calling constructors.
18466 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
18467
18468 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
18469 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
18470 CRT_END_INIT_DUMMY hack.
18471 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
18472 FORCE_{INIT,FINI}_SECTION_ALIGN.
18473
18474 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
18475 FORCE_{INIT,FINI}_SECTION_ALIGN.
18476
18477 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
18478 invocation sequence.
18479 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
18480
18481 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
18482 (FORCE_CODE_SECTION_ALIGN): New.
18483
18484 2002-01-26 Richard Henderson <rth@redhat.com>
18485
18486 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
18487
18488 2002-01-26 Richard Henderson <rth@redhat.com>
18489
18490 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
18491 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
18492
18493 2002-01-26 Kazu Hirata <kazu@hxi.com>
18494
18495 * config/h8300/h8300.md: Remove bit extraction patterns that
18496 cannot be triggered.
18497 Restrict each bit extraction pattern to a variant on which the
18498 pattern is tested.
18499
18500 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
18501
18502 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
18503
18504 2002-01-26 Kazu Hirata <kazu@hxi.com>
18505
18506 * config/h8300/h8300.md: Remove bit test patterns that cannot
18507 be triggered.
18508 Restrict each bit test pattern to a variant on which the
18509 pattern is tested.
18510
18511 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18512
18513 * builtins.c (expand_builtin_strncat): Remove redundant check for
18514 INTEGER_CST.
18515
18516 2002-01-25 David O'Brien <obrien@FreeBSD.org>
18517
18518 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
18519 default setting.
18520 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
18521 existing setting.
18522
18523 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
18524
18525 * dbxout.c (dbxout_init): Use assemble_name rather than just
18526 stripping off the first character.
18527 (dbxout_source_file): Likewise.
18528
18529 2002-01-25 DJ Delorie <dj@redhat.com>
18530
18531 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
18532 using rtx_equal_p, not by comparing pointers.
18533
18534 2002-01-25 Steve Ellcey <sje@cup.hp.com>
18535
18536 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
18537 for PIC_OFFSET_TABLE_REGNUM.
18538 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
18539
18540 2002-01-25 David O'Brien <obrien@FreeBSD.org>
18541
18542 * config.gcc (x86_64-*-freebsd*): New target.
18543 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
18544 value.
18545 (i[34567]86-*-freebsd*): Don't include svr4.h.
18546 * config/i386/freebsd64.h: New file.
18547
18548 2002-01-25 Douglas B Rupp <rupp@gnat.com>
18549
18550 * config/alpha/x-vms (version): Make static.
18551
18552 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
18553 in previous checkin.
18554
18555 * Makefile.in (install-headers-cp): New target.
18556 * config.gcc (alpha-dec-*vms*): Install headers with
18557 install-headers-cp
18558
18559 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
18560
18561 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
18562 avoid it's copies.
18563
18564 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18565
18566 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
18567 of compare_tree_int.
18568 (expand_builtin_strncat): Likewise.
18569 * c-decl.c (finish_struct): Use tree_low_cst.
18570 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
18571 * tree.c (compare_tree_int): Likewise.
18572
18573 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
18574
18575 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
18576 adjustments even if they are implemented by more than two insns.
18577
18578 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
18579
18580 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
18581 * df.h (struct ref): Kill B.
18582 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
18583
18584 * basic-block.h (PROP_EQUAL_NOTES): New flag.
18585 * flow.c (propagate_one_insn): Use it.
18586 (mark_used_regs): Handle NIL.
18587
18588 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
18589
18590 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
18591 to help folding.
18592
18593 2002-01-25 David Edelsohn <edelsohn@gnu.org>
18594
18595 * rs6000.md (prefetch): Make address V4SI mode so that the address
18596 is restricted to legitimate form for instruction.
18597
18598 2002-01-25 Bob Wilson <bob.wilson@acm.org>
18599
18600 * doc/install.texi (xtensa-*-elf): New target.
18601 (xtensa-*-linux*): New target.
18602 * doc/contrib.texi: Add myself.
18603
18604 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
18605
18606 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
18607 purpose register to hold an SImode (or smaller) value.
18608
18609 2002-01-25 Jakub Jelinek <jakub@redhat.com>
18610
18611 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
18612 registry only.
18613 * crtstuff.c: Likewise.
18614
18615 2002-01-25 Kazu Hirata <kazu@hxi.com>
18616
18617 * config/h8300/h8300.md (negation patterns): Tighten
18618 predicates to register_operand.
18619
18620 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
18621
18622 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
18623 mode, not Pmode.
18624
18625 * builtins.c (expand_builtin_prefetch): Same.
18626
18627 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18628
18629 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
18630 modes.
18631
18632 2002-01-24 Kazu Hirata <kazu@hxi.com>
18633
18634 * config/h8300/h8300.c (print_operand): Remove support for
18635 operand character 'A'.
18636 * config/h8300/h8300.md (three anonymous patterns): Replace
18637 operand character 'A' with either 'T' or 'S'.
18638
18639 2002-01-24 Kazu Hirata <kazu@hxi.com>
18640
18641 * config/h8300/h8300.c (print_operand): Remove support for
18642 operand character 'U'.
18643
18644 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
18645
18646 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
18647
18648 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
18649
18650 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
18651 values to be assigned to the stack pointer.
18652
18653 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
18654
18655 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
18656 to const_double needs to be done right for big-endian systems.
18657
18658 2002-01-24 Jason Merrill <jason@redhat.com>
18659
18660 PR c++/2432
18661 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
18662 to can_throw_internal.
18663
18664 2002-01-23 Richard Henderson <rth@redhat.com>
18665
18666 * fold-const.c (fold): Change UINT_MAX test to check vs precision
18667 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
18668
18669 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18670
18671 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
18672 (symGOT2reg): Use them, then set as GOT value as unchanging.
18673 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
18674 as a temporary, if possible.
18675 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
18676 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
18677
18678 2002-01-23 Kazu Hirata <kazu@hxi.com>
18679
18680 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
18681 accept to accept 0x80 as operands[2].
18682
18683 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
18684
18685 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
18686
18687 2002-01-23 Richard Henderson <rth@redhat.com>
18688
18689 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
18690
18691 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
18692
18693 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
18694 (parmlist_or_identifiers_1): Verify that only a parmlist follows
18695 an attribute.
18696
18697 2002-01-23 Richard Henderson <rth@redhat.com>
18698
18699 * expr.c (move_by_pieces_1): Extend size before negation.
18700
18701 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
18702 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
18703 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
18704 * config/m68k/t-m68kelf: Likewise.
18705
18706 2002-01-23 Bob Wilson <bob.wilson@acm.org>
18707
18708 * config/xtensa/elf.h: New file.
18709 * config/xtensa/lib1funcs.asm: New file.
18710 * config/xtensa/lib2funcs.S: New file.
18711 * config/xtensa/linux.h: New file.
18712 * config/xtensa/t-xtensa: New file.
18713 * config/xtensa/xtensa-config.h: New file.
18714 * config/xtensa/xtensa-protos.h: New file.
18715 * config/xtensa/xtensa.c: New file.
18716 * config/xtensa/xtensa.h: New file.
18717 * config/xtensa/xtensa.md: New file.
18718 * config.gcc (xtensa-*-elf*): New target.
18719 (xtensa-*-linux*): New target.
18720 * cse.c (canon_hash): Compare rtx pointers instead of register
18721 numbers. This is required for the Xtensa port.
18722 * integrate.c (copy_insn_list): Handle case where the static
18723 chain is in memory and the memory address has to be copied to
18724 a register.
18725 * doc/invoke.texi (Option Summary): Add Xtensa options.
18726 (Xtensa Options): New node.
18727 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
18728
18729 2002-01-23 Zack Weinberg <zack@codesourcery.com>
18730
18731 * diagnostic.c (internal_error): Do ICE suppression only
18732 when ENABLE_CHECKING is not defined.
18733
18734 * c-typeck.c (require_complete_type): Return error_mark_node
18735 if type is error_mark_node.
18736
18737 2002-01-23 Janis Johnson <janis187@us.ibm.com>
18738
18739 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
18740 -Os and issue a warning.
18741
18742 2002-01-23 Zack Weinberg <zack@codesourcery.com>
18743
18744 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
18745 current (lack of) need for host configuration by hand.
18746
18747 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
18748 references. Documentation of some target macros moved from
18749 hostconfig.texi to tm.texi.
18750
18751 2002-01-23 Will Cohen <wcohen@redhat.com>
18752
18753 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
18754 defined.
18755
18756 2002-01-23 Kazu Hirata <kazu@hxi.com>
18757
18758 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
18759 operand[3].
18760
18761 2002-01-23 Jason Merrill <jason@redhat.com>
18762
18763 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
18764
18765 * function.c (assign_parms): Don't put args of inline functions
18766 into registers when not optimizing.
18767
18768 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
18769
18770 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
18771 (prologue_use): New pattern.
18772 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
18773 preference to gen_rtx_USE.
18774 (thumb_expand_prologue): Use gen_prologue_use in preference to
18775 gen_rtx_USE.
18776 (thumb_expand_epilogue): Use gen_prologue_use in preference to
18777 gen_rtx_USE.
18778
18779 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
18780
18781 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
18782
18783 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
18784
18785 PR c/3504
18786 * doc/extend.texi: Correct documentation of __alignof__.
18787
18788 2002-01-22 Zack Weinberg <zack@codesourcery.com>
18789
18790 * params.h: Rename arguments of DEFPARAM so that it will be
18791 recognized as a translation keyword.
18792
18793 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
18794
18795 * extend.texi: Document altivec functions.
18796 Fix N-bit adjectives in X86 builtin documentation.
18797
18798 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
18799
18800 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
18801 auto_inc_dec values.
18802
18803 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
18804
18805 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
18806 after backslash.
18807 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
18808
18809 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
18810
18811 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
18812
18813 2002-01-22 Richard Henderson <rth@redhat.com>
18814
18815 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
18816 copy_insn not copy_rtx.
18817
18818 2002-01-23 Alan Modra <amodra@bigpond.net.au>
18819
18820 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
18821 "nonzero" as that might add "1" bits. Ensure "constop" is
18822 properly sign extened.
18823 (force_to_mode): Tweak for sign extended constop.
18824
18825 2002-01-22 Richard Henderson <rth@redhat.com>
18826
18827 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
18828 for_each_rtx instead of assuming we're already looking at the MEM.
18829 (split_small_symbolic_mem_operand): Likewise.
18830 * config/alpha/alpha.h (PREDICATE_CODES): Update.
18831 * config/alpha/alpha.md (small symbolic memory splitters): Update.
18832
18833 2002-01-22 Richard Henderson <rth@redhat.com>
18834
18835 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
18836 sequence number for the literal.
18837 (divmoddi_internal_er): Likewise.
18838
18839 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
18840
18841 PR java/4972
18842 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
18843 in LIBICONV variable.
18844 * configure: Regenerated.
18845
18846 2002-01-22 Krister Walfridsson <cato@df.lth.se>
18847
18848 * dependence.c (build_def_use): Remove array_idx.
18849
18850 * dwarfout.c (last_filename): Remove.
18851 (output_compile_unit_die): Remove last_filename.
18852
18853 2002-01-22 Roger Sayle <roger@eyesopen.com>
18854 Richard Henderson <rth@redhat.com>
18855
18856 PR opt/3640
18857 * fold-const.c (fold): Optimize unsigned comparisons against
18858 UINT_MAX (and similar unsigned constants).
18859
18860 2002-01-22 Janis Johnson <janis187@us.ibm.com>
18861
18862 * Makefile.in (loop.o): Depend on OPTABS_H.
18863 * loop.c (emit_prefetch_instructions): Check the prefetch operand
18864 against the predicate.
18865
18866 PR target/5379
18867 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
18868 for the address operand.
18869
18870 2002-01-22 Richard Henderson <rth@redhat.com>
18871
18872 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
18873
18874 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
18875
18876 PR other/5450
18877 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
18878 preprocessor flags.
18879
18880 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
18881
18882 * config.gcc (x86_64-*-netbsd*): New target.
18883 * config/i386/netbsd64.h: New file.
18884
18885 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
18886
18887 * regrename.c (kill_value): Fix typo.
18888
18889 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
18890
18891 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
18892
18893 * config/rs6000/rs6000.h: Same.
18894
18895 * function.c (instantiate_virtual_regs): Remove
18896 STARTING_FRAME_PHASE.
18897 (assign_stack_local_1): Same.
18898 Calculate frame phase.
18899
18900 2002-01-22 Nick Clifton <nickc@redhat.com>
18901
18902 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
18903 variable declaration to outer scope in order to simplify
18904 future extensions.
18905 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
18906 arm_hard_regno_mode_ok.
18907 * config/arm/arm-protos.h: Add a prototype for
18908 arm_hard_regno_mode_ok.
18909 * config/arm/arm.c (soft_df_operand): Remove now redundant
18910 check for DImode values using IP_REGNUM.
18911 (nonimmediate_soft_df_operand): Remove now redundant check for
18912 DImode values using IP_REGNUM.
18913 (arm_hard_regno_mode_ok): New function. New check: make sure
18914 that DImode values are not stored in IP_REGNUM.
18915
18916 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
18917 note with a USE.
18918 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
18919
18920 2002-01-22 Jason Merrill <jason@redhat.com>
18921
18922 * c-semantics.c (genrtl_compound_stmt): Only check nesting
18923 consistency if this COMPOUND_STMT is scoped.
18924
18925 2002-01-22 Kazu Hirata <kazu@hxi.com>
18926
18927 * predict.c: Fix formatting.
18928 * print-tree.c: Likewise.
18929 * protoize.c: Likewise.
18930 * real.h: Likewise.
18931 * rtl.h: Likewise.
18932 * sbitmap.h: Likewise.
18933 * scan.c: Likewise.
18934 * sched-deps.c: Likewise.
18935 * sched-vis.c: Likewise.
18936 * sdbout.c: Likewise.
18937 * sibcall.c: Likewise.
18938 * ssa.c: Likewise.
18939 * ssa-ccp.c: Likewise.
18940 * ssa-dce.c: Likewise.
18941 * stmt.c: Likewise.
18942 * stor-layout.c: Likewise.
18943 * system.h: Likewise.
18944
18945 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18946
18947 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
18948 if fits in bounds of base type.
18949
18950 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
18951 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
18952 (add_bound_info, default): If can't find a context, make a
18953 SAVE_EXPR.
18954 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
18955
18956 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
18957
18958 * c-typeck.c (parser_build_binary_op): If result from
18959 build_binary_op is ERROR_MARK just return error_mark_node without
18960 further processing.
18961
18962 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
18963
18964 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
18965 Split a.out-specific bits into...
18966 * config/netbsd-aout.h: ...this.
18967 * config/netbsd-elf.h: New file.
18968 * config/alpha/netbsd-elf.h: Remove.
18969 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
18970 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
18971 (STARTFILE_SPEC): Remove redundant definition.
18972 (ENDFILE_SPEC): Likewise.
18973 (LINK_SPEC): Likewise.
18974 (CPP_SPEC): Likewise.
18975 (ASM_SPEC): Likewise.
18976 (LIB_SPEC): Likewise.
18977 (SWITCH_TAKES_ARG): Likewise.
18978 (TARGET_MEM_FUNCTIONS): Likewise.
18979 (CPP_PREDEFINES): Redefine.
18980 (ASM_FINAL_SPEC): Remove redefinition.
18981 (ASM_COMMENT_START): Redefine.
18982 (FUNCTION_PROFILER): Define.
18983 (TARGET_VERSION): Redefine.
18984 Comment and formatting cleanup.
18985 * config/i386/netbsd.h: Include <netbsd-aout.h>.
18986 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
18987 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
18988 big- or little-endian.
18989 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
18990 * config.gcc (*-*-netbsd*): Add definitions common to all
18991 NetBSD configs.
18992 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
18993 gnu_ld definitions. Add netbsd-elf.h to and remove
18994 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
18995 tmake_file, and don't lose previous tmake_file contents.
18996 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
18997 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
18998 gnu_ld definitions. Add netbsd-elf.h to tm_file.
18999 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
19000 (mipsel-*-netbsd*): Rename this to...
19001 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
19002 mips/little.h to tm_file for mips*el-*.
19003 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
19004 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
19005 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
19006
19007 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
19008
19009 * pa-protos.h (reg_before_reload_operand): New function prototype.
19010 * pa.c (reg_before_reload_operand): New function implementation.
19011 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
19012 contraints to "*m".
19013
19014 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19015
19016 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
19017
19018 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
19019
19020 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
19021 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
19022 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
19023 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
19024 (ENDFILE_SPEC): Undefine.
19025 (STARTFILE_SPEC): Redefine for PA.
19026
19027 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19028
19029 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
19030
19031 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
19032
19033 * config.gcc: Add entries to supported PowerPC --with-cpu
19034 types.
19035
19036 2002-01-21 Jakub Jelinek <jakub@redhat.com>
19037
19038 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
19039 true for 64-bit mode only SSE registers in 32-bit mode.
19040
19041 2002-01-21 Kazu Hirata <kazu@hxi.com>
19042
19043 * unwind-dw2.c: Fix formatting.
19044 * unwind-dw2-fde.c: Likewise.
19045 * unwind-dw2-fde.h: Likewise.
19046 * unwind-pe.h: Likewise.
19047 * varasm.c: Likewise.
19048 * varray.h: Likewise.
19049
19050 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
19051
19052 Remove workaround for register stack overwrite bug in mmix.
19053 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
19054 support for TARGET_REG_STACK_FILL_BUG.
19055 * config/mmix/mmix.h: Remove member has_call_without_parameters.
19056 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
19057 Delete.
19058 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
19059 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
19060 -mno-reg-stack-fill-bug-workaround.
19061 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
19062 machine member has_call_without_parameters.
19063 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
19064 -mreg-stack-fill-bug-workaround and
19065 -mno-reg-stack-fill-bug-workaround.
19066 (MMIX Options): Ditto.
19067
19068 2002-01-21 Kazu Hirata <kazu@hxi.com>
19069
19070 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
19071 as appropriate.
19072 Remove redundant code.
19073
19074 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
19075
19076 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
19077 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
19078 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
19079 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
19080 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
19081 out target macro definitions and non-target-specific comments
19082 mostly taken from old versions of the manual.
19083
19084 2002-01-20 Kazu Hirata <kazu@hxi.com>
19085
19086 * config/h8300/h8300.h: Fix comment formatting.
19087 * config/ia64/aix.h: Likewise.
19088 * config/ia64/ia64-protos.h: Likewise.
19089 * config/ia64/ia64.c: Likewise.
19090 * config/ia64/ia64.h: Likewise.
19091 * config/ia64/ia64intrin.h: Likewise.
19092 * config/ia64/linux.h: Likewise.
19093 * config/ia64/unwind-aix.c: Likewise.
19094 * config/ia64/unwind-ia64.c: Likewise.
19095
19096 2002-01-20 Kazu Hirata <kazu@hxi.com>
19097
19098 * config/h8300/h8300.c: Revise comments about shift code.
19099
19100 2002-01-20 Kazu Hirata <kazu@hxi.com>
19101
19102 * config/h8300/h8300.c (function_arg): Update a comment.
19103
19104 2002-01-20 Kazu Hirata <kazu@hxi.com>
19105
19106 * config/h8300/h8300.md: Update the comments at the beginning
19107 of the file.
19108
19109 2002-01-20 Kazu Hirata <kazu@hxi.com>
19110
19111 * config/i370/i370.c: Fix comment formatting.
19112 * config/i370/i370.h: Likewise.
19113 * config/i370/i370.md: Likewise.
19114 * config/i370/linux.h: Likewise.
19115
19116 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19117
19118 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
19119
19120 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
19121 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
19122 in incomplete case.
19123
19124 2002-01-20 Graham Stott <grahams@redhat.com>
19125
19126 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
19127
19128 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
19129
19130 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
19131
19132 2002-01-19 Tom Rix <trix@redhat.com>
19133
19134 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
19135
19136 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
19137
19138 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
19139
19140 * function.c (assign_stack_local_1): Adjust x_frame_offset with
19141 STARTING_FRAME_PHASE.
19142 (STARTING_FRAME_PHASE): New.
19143 (instantiate_virtual_regs): Check saneness of
19144 STARTING_FRAME_PHASE.
19145
19146 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
19147
19148 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
19149
19150 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
19151
19152 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
19153
19154 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
19155 be used for bootstrapping GCC 3.0.
19156
19157 2002-01-18 Kazu Hirata <kazu@hxi.com>
19158
19159 * config/h8300/h8300.md: Fix an insn length.
19160
19161 2002-01-18 Kazu Hirata <kazu@hxi.com>
19162
19163 * bitmap.h: Fix comment formatting.
19164 * combine.c: Likewise.
19165 * cppfiles.c: Likewise.
19166 * c-pragma.h: Likewise.
19167 * c-typeck.c: Likewise.
19168 * df.c: Likewise.
19169 * dwarf2out.c: Likewise.
19170 * function.c: Likewise.
19171 * gcc.c: Likewise.
19172 * genattrtab.c: Likewise.
19173 * gthr-win32.h: Likewise.
19174 * haifa-sched.c: Likewise.
19175 * predict.c: Likewise.
19176 * rtlanal.c: Likewise.
19177 * rtl.h: Likewise.
19178 * unwind-dw2-fde.h: Likewise.
19179 * unwind-pe.h: Likewise.
19180 * vmsdbgout.c: Likewise.
19181
19182 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19183
19184 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
19185 if type_required and passed decl.
19186
19187 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
19188
19189 * config.gcc (cpu_type): Include altivec.h in powerpc
19190 extra_headers.
19191 Same for darwin.
19192
19193 * config/rs6000/altivec.h: New.
19194
19195 2002-01-17 David Edelsohn <edelsohn@gnu.org>
19196
19197 * doc/install.texi (*-ibm-aix*): Update assembler and exception
19198 handling information.
19199 * doc/trouble.texi (Interoperation): Add libstdc++ information
19200 for AIX.
19201 (Misunderstandings): Add template instantiation and static template
19202 member information for AIX.
19203
19204 2002-01-17 Jason Merrill <jason@redhat.com>
19205
19206 * dbxout.c (dbxout_type): Support const and volatile.
19207
19208 * except.c (add_partial_entry): Remove backwards compatibility code.
19209 (end_protect_partials): Likewise.
19210
19211 2002-01-17 Jakub Jelinek <jakub@redhat.com>
19212
19213 * config/ia64/ia64.md (prologue_use): New.
19214 * config/ia64/ia64.c (ia64_expand_prologue): Use
19215 gen_prologue_use instead of gen_rtx_USE.
19216 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
19217 as CODE_FOR_pred_rel_mutex.
19218 (ia64_sched_reorder2): Likewise.
19219
19220 2002-01-16 Eric Christopher <echristo@redhat.com>
19221
19222 * config/mips/r3900.h: Reformat.
19223 (SUBTARGET_CPP_SIZE_SPEC): Remove.
19224 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
19225 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
19226 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
19227 * config/mips/t-elf: Remove mips3 multilib.
19228
19229 2002-01-16 H.J. Lu <hjl@gnu.org>
19230
19231 * config/mips/linux.h: Include "mips/abi64.h".
19232
19233 2002-01-16 H.J. Lu <hjl@gnu.org>
19234
19235 * config/mips/t-linux: New.
19236
19237 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
19238
19239 * config/mips/linux.h: Don't include "gofast.h".
19240 (INIT_SUBTARGET_OPTABS): Removed.
19241
19242 2002-01-16 Kazu Hirata <kazu@hxi.com>
19243
19244 * config/h8300/h8300-protos.h: Replace emit_a_shift with
19245 output_a_shift.
19246 * config/h8300/h8300.c: Likewise.
19247 * config/h8300/h8300.md: Likewise.
19248
19249 2002-01-16 Kazu Hirata <kazu@hxi.com>
19250
19251 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
19252 spaces after an opcode name.
19253 (pushqi1_h8300hs): Likewise.
19254 (pushhi1_h8300hs): Likewise.
19255
19256 2002-01-16 Kazu Hirata <kazu@hxi.com>
19257
19258 * doc/extend.texi: Replace "option" with "attribute"
19259 appropriately.
19260
19261 2002-01-16 Jakub Jelinek <jakub@redhat.com>
19262
19263 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
19264 (and:DI () (const_int -8)).
19265 (split_small_symbolic_mem_operand): Split
19266 (mem (and:DI () (const_int -8)).
19267
19268 2002-01-16 Jakub Jelinek <jakub@redhat.com>
19269
19270 PR target/5309:
19271 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
19272 same way as TYPE_IMUL.
19273 (ultrasparc_sched_reorder): Likewise.
19274 * config/sparc/sparc.md (type): Add comment to update
19275 ultrasparc_sched_reorder when making changes.
19276
19277 2002-01-16 Kazu Hirata <kazu@hxi.com>
19278
19279 * doc/invoke.texi: Change the dump file name of block
19280 reordering pass from 28.bbro to 29.bbro.
19281 Mention -dk option.
19282
19283 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
19284
19285 * i386.md (minsf splitter): Fix pasto.
19286
19287 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
19288
19289 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
19290 to frame pointer initialisation instruction.
19291 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
19292 initialisation instruction.
19293 (soft_df_operand): Do not accept the IP register.
19294 (nonimmediate_soft_df_operand): Do not accept the IP register.
19295
19296 2002-01-16 Jakub Jelinek <jakub@redhat.com>
19297
19298 PR target/5357:
19299 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
19300 MASK_V8 being both set.
19301
19302 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
19303
19304 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
19305 insn for GOT register; add REG_MAYBE_DEAD notes instead.
19306 config/s390/s390.md (call, call_value): Add GOT register to
19307 CALL_INSN_FUNCTION_USAGE where needed.
19308 (call_exp, call_value_exp): New.
19309
19310 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
19311
19312 * config/arm/arm.c: General formatting tidy up.
19313
19314 2002-01-16 Graham Stott <grahams@redhat.com>
19315
19316 * calls.c (try_to_integrate): Use "(size_t)" intermediate
19317 cast and when casting an integer literal to "rtx" pointer.
19318 (expand_call): Likewise.
19319 * flow.c (try_pre_increment): Likewise.
19320 (find_use_as_address): Likewise.
19321 * integrate.c (expand_iline_function): Likewise.
19322 * regmove.c (try_auto_increment): Likewise.
19323
19324 2002-01-16 Graham Stott <grahams@redhat.com>
19325
19326 * sched-rgn.c (passed): Use sbitmap_free.
19327 (header): Likewise.
19328 (inner): Likewise.
19329 (in_queue): Likewise.
19330 (in_stack): Likewise.
19331
19332 2002-01-15 Eric Christopher <echristo@redhat.com>
19333
19334 * flow.c (propagate_one_insn): Change to use fatal_insn.
19335
19336 2002-01-15 Kazu Hirata <kazu@hxi.com>
19337
19338 * expmed.c (extract_fixed_bit_field): Remove unused code.
19339 * system.h: Poison SLOW_ZERO_EXTEND.
19340 * doc/tm.texi: Remove.
19341 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
19342 * config/arm/arm.h: Likewise.
19343 * config/avr/avr.h: Likewise.
19344 * config/clipper/clipper.h: Likewise.
19345 * config/convex/convex.h: Likewise.
19346 * config/d30v/d30v.h: Likewise.
19347 * config/dsp16xx/dsp16xx.h: Likewise.
19348 * config/elxsi/elxsi.h: Likewise.
19349 * config/fr30/fr30.h: Likewise.
19350 * config/h8300/h8300.h: Likewise.
19351 * config/i370/i370.h: Likewise.
19352 * config/i386/i386.h: Likewise.
19353 * config/m68k/m68k.h: Likewise.
19354 * config/mips/mips.h: Likewise.
19355 * config/ns32k/ns32k.h: Likewise.
19356 * config/pdp11/pdp11.h: Likewise.
19357 * config/pj/pj.h: Likewise.
19358 * config/s390/s390.h: Likewise.
19359 * config/sh/sh.h: Likewise.
19360 * config/stormy16/stormy16.h: Likewise.
19361 * config/v850/v850.h: Likewise.
19362 * config/vax/vax.h: Likewise.
19363 * config/we32k/we32k.h: Likewise.
19364
19365 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
19366
19367 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
19368 (altivec_lvsl): Change constraint to b.
19369 (altivec_lvsr): Same.
19370 (altivec_lvebx): Same.
19371 (altivec_lvehx): Same.
19372 (altivec_lvewx): Same.
19373 (altivec_lvxl): Same.
19374 (altivec_lvx): Same.
19375 (altivec_stvx): Add parallel.
19376 (altivec_stvxl): Same.
19377 (altivec_stvehx): Same.
19378 (altivec_stvebx): Same.
19379 (altivec_stvebx): Same.
19380
19381 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
19382
19383 * config.gcc: Change altivec.h to altivec-defs.h.
19384
19385 * config/rs6000/altivec.h: Delete.
19386
19387 * config/rs6000/altivec-defs.h: Add.
19388
19389 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
19390
19391 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
19392 and UMOD modes.
19393
19394 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
19395 less than or equal to eight bytes.
19396
19397 * vax.md (andsi3): Remove constraints and change SET destination
19398 operand type to nonimmediate_operand.
19399 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
19400 when it is a CONST_INT.
19401
19402 2002-01-15 Jason Merrill <jason@redhat.com>
19403
19404 * c-common.def (FILE_STMT): New code.
19405 * c-common.c (statement_code_p): It's a statement.
19406 * c-common.h (stmt_tree_s): Add x_last_filename.
19407 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
19408 (last_expr_filename): New macro.
19409 * c-semantics.c (begin_stmt_tree): Initialize it.
19410 (add_stmt): If the filename changed, also insert a
19411 FILE_STMT.
19412 (expand_stmt): Handle seeing one.
19413
19414 2002-01-15 Eric Christopher <echristo@redhat.com>
19415
19416 * flow.c (propagate_one_insn): Add error message and print out
19417 insn for debugging.
19418
19419 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
19420
19421 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
19422 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
19423 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
19424 TRAMPOLINE_ALIGNMENT.
19425 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
19426 to be in bits.
19427 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
19428 PCC_BITFIELD_TYPE_MATTERS.
19429 * config/interix.h (STDC_VALUE): Remove. Use
19430 STDC_0_IN_SYSTEM_HEADERS.
19431 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
19432 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
19433 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
19434
19435 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
19436
19437 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
19438 not work on this platform currently.
19439
19440 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
19441
19442 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
19443 readonly_warning in _().
19444
19445 2002-01-15 Douglas B Rupp <rupp@gnat.com>
19446
19447 * gcc.c (delete_if_ordinary): Backout previous change.
19448
19449 2002-01-15 Kazu Hirata <kazu@hxi.com>
19450
19451 * config/h8300/h8300.c (print_operand): Remove support for
19452 unused operand characters.
19453
19454 * read-rtl.c: Fix formatting.
19455 * real.c: Likewise.
19456 * recog.c: Likewise.
19457 * regclass.c: Likewise.
19458 * regmove.c: Likewise.
19459 * reg-stack.c: Likewise.
19460 * reload1.c: Likewise.
19461 * rtlanal.c: Likewise.
19462
19463 2002-01-15 Kazu Hirata <kazu@hxi.com>
19464
19465 * config/i386/i386.c: Fix formatting.
19466
19467 2002-01-15 Jakub Jelinek <jakub@redhat.com>
19468
19469 * c-typeck.c (process_init_element): Don't save_expr
19470 COMPOUND_LITERAL_EXPR if just its initializer will be used.
19471
19472 2002-01-15 David Edelsohn <edelsohn@gnu.org>
19473
19474 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
19475 emit optional traceback table if optimize_size or TARGET_ELF.
19476 * config/rs6000/rs6000.md (prefetch): New.
19477
19478 2002-01-15 Andreas Jaeger <aj@suse.de>
19479
19480 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
19481
19482 2002-01-15 Kazu Hirata <kazu@hxi.com>
19483
19484 * mips-tfile.c: Fix formatting.
19485
19486 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
19487
19488 * unroll.c (final_reg_note_copy): Fix previous commit.
19489
19490 2002-01-14 Kazu Hirata <kazu@hxi.com>
19491
19492 * config/h8300/h8300-protos.h: Remove the prototype for
19493 eq_operator.
19494 * config/h8300/h8300.c (eq_operator): Remove.
19495
19496 2002-01-14 Richard Henderson <rth@redhat.com>
19497
19498 * config/i386/i386.md (prefetch): Tidy.
19499 (prefetch_3dnow): Fix locality operand.
19500
19501 2002-01-14 Richard Henderson <rth@redhat.com>
19502
19503 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
19504 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
19505
19506 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
19507
19508 * reload1.c (reload_combine): Pass reg_sum replacement through
19509 copy_rtx in loop performing multiple changes.
19510
19511 2002-01-14 Jakub Jelinek <jakub@redhat.com>
19512
19513 * except.c (remove_unreachable_regions): New.
19514 (free_eh_status): Clear exception_handler_labels.
19515 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
19516 (find_exception_handler_labels): Don't add the same label more than
19517 once.
19518 (remove_exception_handler_label): Don't die if
19519 find_exception_handler_labels hasn't been called for the current
19520 function yet.
19521
19522 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
19523
19524 * toplev.c (rest_of_compilation): Rebuild jump labels after
19525 gcse.
19526
19527 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
19528
19529 * doc/extend.texi: Move documentation of X86 built-in functions
19530 here.
19531 * doc/invoke.texi: From here.
19532 * doc/sourcebuild.texi: Document location of documentation for
19533 machine built-in functions.
19534
19535 2002-01-13 Christopher Faylor <cgf@redhat.com>
19536
19537 * cppfiles.c (TEST_THRESHOLD): New macro.
19538 (SHOULD_MMAP): Ditto.
19539 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
19540 be used.
19541
19542 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
19543
19544 * unroll.c (final_reg_note_copy): Properly handle
19545 REG_LABEL
19546 (unroll_loops): Fix LOOP_CONDITION heuristics.
19547
19548 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
19549
19550 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
19551 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
19552
19553 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
19554
19555 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
19556 threaded loop.
19557
19558 2002-01-14 Tom Rix <trix@redhat.com>
19559
19560 * config/rs6000/rs6000.md: Fix typo with sradi.
19561
19562 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
19563
19564 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
19565 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
19566 (clrstrdi, clrstrsi): Adapt callers.
19567
19568 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
19569
19570 (movti splitter): Never use register 0 as base register.
19571
19572 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
19573
19574 * combine.c (simplify_shift_const): Always generate new rtx
19575 for shift expression instead of reusing given expression.
19576
19577 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19578
19579 * config/alpha/alpha.c (alpha_expand_mov): Don't call
19580 alpha_legitimize_address unless mode is Pmode.
19581
19582 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
19583
19584 * doc/md.texi (Modifiers): Document the '*' constraint for the
19585 user.
19586
19587 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
19588 * doc/extend.texi (Function Attributes): 'interrupt' is valid
19589 for xstormy16 too.
19590
19591 2002-01-13 Richard Henderson <rth@redhat.com>
19592
19593 * reload.c (find_reloads): Use a hard reg destination as reload reg
19594 for an input reload of the source.
19595
19596 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
19597
19598 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
19599 more generic.
19600
19601 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
19602
19603 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
19604 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
19605
19606 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
19607
19608 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19609
19610 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
19611
19612 2002-01-12 Tom Rix <trix@redhat.com>
19613
19614 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
19615 TARGET_POWERPC64.
19616
19617 2002-01-12 Richard Henderson <rth@redhat.com>
19618
19619 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
19620
19621 * doc/invoke.texi: Update Alpha options.
19622
19623 * doc/invoke.texi: Update i386 built-in function lists.
19624
19625 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
19626
19627 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
19628 referencing outside.
19629
19630 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19631
19632 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
19633 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
19634 offsets, and change line folding.
19635 * optabs.c (expand_binop): Remove warnings.
19636 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
19637
19638 2002-01-12 Graham Stott <grahams@redhat.com>
19639
19640 * attribs.c (handle_deprecated_attribute): constify WHAT.
19641 * diagnostic.c (warn_deprecated_use): Add braces, fixes
19642 dangling else warning and constify WHAT.
19643 * except.h (struct function, struct inline_remap): Move
19644 struct tag forward defs before all prototypes.
19645 (duplicate_eh_regions): Whitespace.
19646
19647 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
19648
19649 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
19650 MODE_BASE_REG_CLASS.
19651 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
19652
19653 2002-01-12 Richard Henderson <rth@redhat.com>
19654
19655 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
19656 (ix86_expand_vector_move): New.
19657 (bdesc_2arg): Remove andps, andnps, orps, xorps.
19658 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
19659 Remove old prefetch builtins. Special case the logicals removed above.
19660 (ix86_expand_builtin): Likewise.
19661 (safe_vector_operand): Use V4SFmode, not TImode.
19662 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
19663 (ix86_expand_timode_binop_builtin): New.
19664 * config/i386/i386-protos.h: Update.
19665 * config/i386/i386.h (enum ix86_builtins): Update.
19666 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
19667 Use ix86_expand_vector_move in vector move expanders.
19668 (movti_internal, movti_rex64): Add xorps alternative.
19669 (sse_clrv4sf): Rename and adjust from sse_clrti.
19670 (prefetch): Don't work so hard.
19671 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
19672 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
19673 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
19674
19675 2002-01-11 Richard Henderson <rth@redhat.com>
19676
19677 * config/i386/mmintrin.h: New file.
19678 * config/i386/xmmintrin.h: New file.
19679 * config.gcc (i?86-*-*): Add extra_headers.
19680 * simplify-rtx.c (simplify_unary_operation): Handle saturating
19681 truncation codes.
19682 (simplify_binary_operation): Handle saturating arithmetic codes.
19683 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
19684 not the lowpart subreg.
19685 (ix86_expand_builtin): Return a TImode dummy register instead of 0
19686 on error.
19687 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
19688
19689 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19690
19691 * conflict.c (conflict_graph_compute): Free regsets when finished.
19692 * ssa.c (compute_coalesced_reg_partition): Likewise.
19693
19694 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19695
19696 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
19697 every where we allocate a register.
19698
19699 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19700
19701 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
19702 * lcm.c (compute_earliest, compute_farthest): Likewise.
19703
19704 2002-01-11 Janis Johnson <janis187@us.ibm.com>
19705
19706 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
19707
19708 2002-01-11 Janis Johnson <janis187@us.ibm.com>
19709
19710 * doc/rtl.texi (Insns): Fix 2 typos.
19711
19712 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
19713
19714 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
19715 options. Use @table @gcctabopt for MMIX options. Add index
19716 entries for MMIX options. Start new paragraph with first
19717 heading of the machine-dependent options.
19718
19719 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
19720
19721 PR other/5299
19722 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
19723 * combine.c (force_to_mode): Same.
19724 * reload1.c (clear_reload_reg_in_use): Same.
19725
19726 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
19727
19728 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
19729 and 'subtargets'.
19730
19731 2002-01-11 Andreas Jaeger <aj@suse.de>,
19732 Brad Lucier <lucier@math.purdue.edu>
19733
19734 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
19735 mcpu.
19736
19737 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
19738
19739 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
19740 Protect with IN_LIBGCC.
19741 (LINK_EH_SPEC): Add required trailing space.
19742
19743 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
19744
19745 * c-tree.h: Move function declarations so that they are listed
19746 under the filename which contains them.
19747 (check_identifier, finish_decl_top_level,
19748 lookup_name_current_level_global, shadow_record_fields): Remove.
19749
19750 2002-01-11 Andreas Jaeger <aj@suse.de>
19751
19752 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
19753 march.
19754
19755 2002-01-10 Richard Henderson <rth@redhat.com>
19756
19757 * config/alpha/alpha.c (print_operand): Add 'J'.
19758 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
19759 new operand with the sequence number for the lituse. When splitting
19760 the insns, use gen_movdi_er_high_g and generate a sequence number.
19761 (gen_movdi_er_high_g): Print the sequence number if non-zero.
19762
19763 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
19764
19765 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
19766 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
19767 stvxl.
19768 (altivec_expand_builtin): Same.
19769 (altivec_expand_stv_builtin): New.
19770
19771 * config/rs6000/rs6000.h (rs6000_builtins): Same.
19772
19773 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
19774 ("altivec_lvehx"): New.
19775 ("altivec_lvewx"): New.
19776 ("altivec_lvxl"): New.
19777 ("altivec_lvx"): New.
19778 ("altivec_stvx"): New.
19779 ("altivec_stvebx"): New.
19780 ("altivec_stvehx"): New.
19781 ("altivec_stvewx"): New.
19782 ("altivec_stvxl"): New.
19783
19784 2002-01-10 Richard Henderson <rth@redhat.com>
19785
19786 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
19787 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
19788 care not to delete instructions twice.
19789
19790 2002-01-10 Zack Weinberg <zack@codesourcery.com>
19791
19792 * toplev.c: Don't declare environ (it's not used anywhere).
19793 * configure.in: Don't check for declaration of environ.
19794 * config/i386/xm-mingw32.h: Don't #define environ.
19795 * config.in, configure: Regenerate.
19796
19797 2002-01-10 Zack Weinberg <zack@codesourcery.com>
19798
19799 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
19800 * configure: Regenerate.
19801
19802 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
19803 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
19804 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
19805 alpha/xm-vms.h.
19806 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
19807 LIMITS_H_TEST here, not in m68k/x-next.
19808 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
19809 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
19810
19811 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
19812 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
19813 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
19814
19815 * config/i386/x-djgpp: Renamed i386/t-djgpp.
19816 * config/m88k/x-dolph: Renamed m88k/t-dolph.
19817 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
19818 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
19819 replacement of quadlib.asm with quadlib.c.
19820
19821 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
19822 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
19823 config/rs6000/xm-beos.h: Delete file.
19824
19825 * config.gcc: Update to match above changes.
19826
19827 2002-01-10 Kazu Hirata <kazu@hxi.com>
19828
19829 * config/h8300/h8300.h: Fix comment typos.
19830 * config/h8300/h8300.md: Likewise.
19831 * config/h8300/lib1funcs.asm: Likewise.
19832
19833 2002-01-10 Dale Johannesen <dalej@apple.com>
19834
19835 PR optimization/5269
19836 * unroll.c (precondition_loop_p): Make *increment be the correct
19837 sign when n_iterations known, to avoid confusing caller.
19838
19839 2002-01-10 Kazu Hirata <kazu@hxi.com>
19840
19841 * doc/extend.texi (deprecated): Fix a typo.
19842
19843 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
19844
19845 * basic-block.h (update_br_prob_note): Declare.
19846 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
19847 (try_forward_edges): Care negative frequencies and update note.
19848 (outgoing_edges_match): Tweek conditional merging heuristics.
19849 (try_crossjump_to_edge): use update_br_prob_note.
19850 * cfglayout.c (fixup_reorder_chain): Likewise.
19851 * cfrtl.c (update_br_prob_note): New.
19852 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
19853
19854 * i386.c (ix86_decompose_address): Return -1 if address contains
19855 shift.
19856 (legitimate_address_p): Require ix86_decompose_address to return 1.
19857
19858 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
19859 (cprop_insn): Likewise.
19860
19861 2002-01-10 Kazu Hirata <kazu@hxi.com>
19862
19863 * toplev.c: Fix formatting.
19864 * tree.c: Likewise.
19865 * tree-dump.c: Likewise.
19866 * unroll.c: Likewise.
19867 * unwind-dw2.c: Likewise.
19868 * unwind-dw2-fde.c: Likewise.
19869 * unwind-dw2-fde-glibc.c: Likewise.
19870 * unwind-sjlj.c: Likewise.
19871
19872 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
19873
19874 * doc/invoke.texi: Document PDP-11 options.
19875
19876 2002-01-10 Kazu Hirata <kazu@hxi.com>
19877
19878 * config/h8300/h8300.h: Fix formatting.
19879
19880 2002-01-10 Ira Ruben <ira@apple.com>
19881
19882 Add __attribute__ ((deprecated)).
19883 * extend.texi: Document __attribute__ ((deprecated)).
19884 * invoke.texi: Document -Wno-deprecated-declarations.
19885 * testsuite/g++.dg/other/deprecated.C: New C++ test.
19886 * testsuite/gcc.dg/deprecated.c: New C test.
19887 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
19888 (c_common_attribute_table): Add "deprecated" entry.
19889 (handle_deprecated_attribute): New function.
19890 * c-decl.c (deprecated_states): New enum.
19891 deprecated_state: State of "deprecated" handling.
19892 (start_decl): Set deprecated_state based on attributes.
19893 (grokdeclarator): Test for deprecated uses, propagate attribute.
19894 * c-typeck.c (build_component_ref): Test for deprecated fields.
19895 (build_external_ref): Test for deprecated primaries.
19896 * diagnostic.c (warn_deprecated_use) New function to issue
19897 warnings about __attribute__ ((depricated)) references.
19898 * flags.h (warn_deprecated_decl): Extern declared for
19899 -W[no-]deprecated-declarations option.
19900 * print-tree.c (print_node): Show deprecated flag status.
19901 * toplev.c (warn_deprecated_decl): Defined.
19902 (W_options): Added "deprecated-declaration".
19903 * toplev.h (warn_deprecated_use): Extern declared.
19904 * tree.h (struct tree_common): Define deprecated_flag.
19905 (TREE_DEPRECATED): New macro to access flag.
19906 * cp/call.c (build_call): Test for deprecated calls.
19907 * cp/class.c (add_implicitly_declared_members): Set global
19908 flag to tell grokdeclarator to not issue deprecated warnings.
19909 * cp/cp-tree.h: Add extern for adding_implicit_members.
19910 * cp/decl.c (deprecated_states): New enum.
19911 (start_decl): Set deprecated_state based on attributes.
19912 (grokdeclarator): Test for deprecated uses, propagate attribute.
19913 * cp/lex.c (do_identifier): Test for deprecated primaries.
19914 * cp/typeck.c (build_component_ref): Test for deprecated fields.
19915
19916 2002-01-10 Ira Ruben <ira@apple.com>
19917
19918 Fix to assign attributes to inline member functions.
19919 * cp/decl.c (start_method): Handle attrlist.
19920
19921 2002-01-10 Kazu Hirata <kazu@hxi.com>
19922
19923 * combine.c (expand_field_assignment): Use subreg_lsb().
19924
19925 2002-01-10 David Edelsohn <edelsohn@gnu.org>
19926
19927 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
19928 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
19929 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
19930 Recurse for any operand of AND as long as constant is non-zero.
19931
19932 2002-01-10 Kazu Hirata <kazu@hxi.com>
19933
19934 * config/h8300/h8300.md: Remove constraints from expanders.
19935
19936 2002-01-10 Kazu Hirata <kazu@hxi.com>
19937
19938 * varasm.c: Fix formatting.
19939 * varray.c: Likewise.
19940 * vmsdbgout.c: Likewise.
19941 * xcoffout.c: Likewise.
19942
19943 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
19944
19945 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
19946 update edge probabilities to match.
19947
19948 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
19949
19950 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
19951 dependencies.
19952 * doc/languages.texi, doc/sourcebuild.texi: New files.
19953 * doc/configfiles.texi: Make a subsubsection. Update.
19954 * doc/configterms.texi: Add @node. Remove warning that this isn't
19955 instructions for building GCC.
19956 * doc/makefile.texi: Make a subsection.
19957 * doc/gccint.texi: Update.
19958
19959 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
19960
19961 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
19962
19963 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
19964
19965 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
19966
19967 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
19968
19969 * optabs.c (expand_fix): Look for wider integer modes first.
19970
19971 * i386.md (mov?f): Avoid the fake const double trick for medium
19972 memory model.
19973 (min?f*/max?f*): Prohibit memory operands for i387 variant.
19974 (fop_df_4): Disable for SSE compilation.
19975
19976 2002-01-10 Graham Stott <grahams@redhat.com>
19977
19978 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
19979 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
19980
19981 2002-01-10 Richard Henderson <rth@redhat.com>
19982
19983 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
19984
19985 2002-01-10 Richard Henderson <rth@redhat.com>
19986
19987 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
19988 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
19989
19990 2002-01-10 Kazu Hirata <kazu@hxi.com>
19991
19992 * combine.c (can_combine_p): Fix a comment typo.
19993
19994 2002-01-09 Zack Weinberg <zack@codesourcery.com>
19995
19996 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
19997 empty list correctly. Change loop index $t to $f for
19998 consistency with rest of Makefile.
19999
20000 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
20001
20002 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
20003 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20004
20005 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
20006 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
20007 (altivec_init_builtins): Same.
20008 (altivec_expand_unop_builtin): Return NULL_RTX on error.
20009 (altivec_expand_binop_builtin): Same.
20010 (altivec_expand_ternop_builtin): Same.
20011 (bdesc_dst): New.
20012
20013 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
20014 ("altivec_vctuxs"): Fix typo.
20015 ("altivec_vnmsubfp"): Same.
20016 ("altivec_dssall"): New.
20017 ("altivec_mfvscr"): New.
20018 ("altivec_dss"): New.
20019 ("altivec_lvsl"): New.
20020 ("altivec_lvsr"): New.
20021 ("altivec_dstt"): New.
20022 ("altivec_dstst"): New.
20023 ("altivec_dststt"): New.
20024 ("altivec_dst"): New.
20025
20026 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
20027 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20028
20029 2002-01-09 Richard Henderson <rth@redhat.com>
20030
20031 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
20032
20033 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
20034
20035 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
20036 function.
20037 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
20038 prototype.
20039 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
20040
20041 2002-01-09 Kazu Hirata <kazu@hxi.com>
20042
20043 * read-rtl.c: Fix formatting.
20044 * real.c: Likewise.
20045 * regclass.c: Likewise.
20046 * regrename.c: Likewise.
20047 * reg-stack.c: Likewise.
20048 * reload1.c: Likewise.
20049 * reload.c: Likewise.
20050 * rtl.c: Likewise.
20051
20052 2002-01-09 Kazu Hirata <kazu@hxi.com>
20053
20054 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
20055 to extract items in the expr_list chain.
20056
20057 2002-01-09 Richard Henderson <rth@redhat.com>
20058
20059 * config/vax/vax.c (vax_rtx_cost): Never abort.
20060
20061 * config/vax/vax.h (REAL_ARITHMETIC): Define.
20062
20063 2002-01-09 Jan Hubicka <jh@suse.cz>
20064
20065 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
20066
20067 2002-01-09 Richard Henderson <rth@redhat.com>
20068
20069 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
20070 Unify code from various alternatives.
20071
20072 2002-01-09 Richard Henderson <rth@redhat.com>
20073
20074 * regrename.c (copy_value): Ignore the copy if the source register
20075 is present in the value chain with a narrower mode.
20076
20077 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20078
20079 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
20080 for the c4x target. Also improve layout.
20081
20082 2002-01-09 Richard Henderson <rth@redhat.com>
20083
20084 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
20085 * config/m32r/m32r.md (and ior xor splitters): Swap operands
20086 to match insn patterns.
20087
20088 2002-01-09 Richard Henderson <rth@redhat.com>
20089
20090 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
20091 (copyprop_hardreg_forward_1): Likewise.
20092
20093 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
20094
20095 * pa.md (decrement_and_branch_until_zero): Change predicate for
20096 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
20097
20098 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
20099
20100 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
20101 gets undefined. For Darwin.
20102
20103 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20104
20105 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
20106
20107 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
20108
20109 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
20110
20111 2002-01-08 Richard Henderson <rth@redhat.com>
20112
20113 * regrename.c (copy_value): Ignore overlapping copies.
20114
20115 2002-01-08 Richard Henderson <rth@redhat.com>
20116
20117 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
20118 as needed to avoid shared structure.
20119
20120 2002-01-08 Kazu Hirata <kazu@hxi.com>
20121
20122 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
20123 H8/300H and H8/S.
20124
20125 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
20126
20127 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
20128 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
20129 documentation of obsolete macros.
20130 * system.h: Poison these macros.
20131 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
20132 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
20133 config/c4x/c4x.h, config/clipper/clipper.h,
20134 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
20135 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
20136 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
20137 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
20138 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
20139 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
20140 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
20141 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
20142 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
20143 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
20144 config/sparc/sparc.h, config/stormy16/stormy16.h,
20145 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
20146 definitions and commented out definitions of obsolete macros.
20147 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
20148 of MAX_INT_TYPE_SIZE.
20149
20150 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
20151
20152 * config/s390/s390.c (s390_preferred_reload_class): Never
20153 return ADDR_REGS if it isn't a subset of the given class.
20154 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
20155 FP_REGS, but all superclasses as well.
20156
20157 * config/s390/s390.c (s390_function_profiler): Fix thinko.
20158
20159 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
20160 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
20161 must not be a const_int.
20162
20163 2002-01-08 Richard Henderson <rth@redhat.com>
20164
20165 * Makefile.in (toplev.o): Depend on options.h.
20166 (gcc.o): Depend on specs.h.
20167
20168 2002-01-08 Jakub Jelinek <jakub@redhat.com>
20169
20170 * expr.c (store_expr): Convert VOIDmode constants back to target's
20171 mode.
20172
20173 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
20174
20175 * doc/invoke.texi: Markup gcc as @command. Refer to
20176 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
20177 of http://gcc.gnu.org/thanks.html.
20178
20179 2002-01-08 Dale Johannesen <dalej@apple.com>
20180
20181 * config/rs6000/rs6000.md: Add missing int register
20182 target case to movdf_low.
20183
20184 2002-01-08 Zack Weinberg <zack@codesourcery.com>
20185
20186 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
20187 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
20188 (cppinit.o): Depend on except.h.
20189 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
20190 s-specs): New rules.
20191
20192 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
20193 Don't create specs.h/options.h/gencheck.h here. Remove
20194 unnecessary variable settings from last argument of AC_OUTPUT.
20195 * config.in, configure: Regenerate.
20196 * intl.c: Hardcode package name as "gcc".
20197
20198 * cppinit.c: Include except.h.
20199 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
20200 appropriate.
20201 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
20202 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
20203 (!)USING_SJLJ_EXCEPTIONS.
20204 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
20205
20206 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
20207
20208 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
20209 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
20210 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
20211 documentation of obsolete macros.
20212 * system.h: Poison these macros.
20213 * config/d30v/d30v.h, config/ns32k/encore.h,
20214 config/stormy16/stormy16.h: Remove definitions and commented out
20215 definitions of obsolete macros.
20216
20217 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
20218
20219 * objc/objc-act.c (handle_class_ref): Mark the declaration of
20220 %sobjc_class_ref_%s as used - to prevent unwanted compiler
20221 warnings.
20222
20223 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
20224
20225 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
20226 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
20227 to insn adjusting stack/frame pointer.
20228 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
20229 accept operands that cause the insn to be non-splittable.
20230
20231 2002-01-08 Graham Stott <grahams@redhat.com>
20232
20233 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
20234 (C_TYPE_FIELDS_VOLATILE): Likewise.
20235 (C_TYPE_BEING_DEFINED): Likewise.
20236 (C_IS_RESERVED_WORD): Likewise.
20237 (C_TYPE_VARIABLE_SIZE): Likewise.
20238 (C_DECL_VARIABLE_SIZE): Likewise.
20239 (C_MISSING_PROTOTYPE_WARNED): Likewise.
20240 (C_SET_EXP_ORIGINAL_CODE): Likewise.
20241 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
20242 parenthesis.
20243 (C_DECL_ANTICIPATED): Likewise.
20244 (c_build_type_variant): Add parenthesis.
20245
20246 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
20247
20248 * gcc.c (option_map): Remove --version.
20249 (process_command): Handle -fversion following the GNU Coding
20250 Standards. Partially addresses PR other/704.
20251
20252 2002-01-08 Graham Stott <grahams@redhat.com>
20253
20254 * combine.c (combine_instructions): Fix typo.
20255
20256 2002-01-08 Graham Stott <grahams@redhat.com>
20257
20258 * debug.h: Use "tree" and "rtx" throughout.
20259
20260 * debug.c: Likewise.
20261
20262 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
20263
20264 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
20265 constant pool, use the pool's version of the symbol instead.
20266
20267 2002-01-07 Richard Henderson <rth@redhat.com>
20268
20269 * regrename.c (find_oldest_value_reg): Ignore the value chain if
20270 the original register was copied in a mode with a fewer number of
20271 hard registers than the desired mode.
20272 (copyprop_hardreg_forward_1): Likewise.
20273 (debug_value_data): Fix loop test.
20274 * toplev.c (parse_options_and_default_flags): Reenable
20275 -fcprop-registers at -O1.
20276
20277 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
20278
20279 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
20280 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
20281
20282 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
20283 predicates.
20284
20285 * config/rs6000/rs6000.md: Add altivec predicate patterns.
20286
20287 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
20288
20289 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
20290 (pa_output_function_prologue): Output local label at the beginning of
20291 the prologue when profiling.
20292 (hppa_profile_hook): Use the local label rather than the function label.
20293 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
20294
20295 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
20296
20297 * config/rs6000/rs6000.c (print_operand): Remove extra space.
20298 (altivec_expand_unop_builtin): Fix thinko.
20299 (altivec_expand_binop_builtin): Same.
20300 (altivec_expand_ternop_builtin): Same.
20301 (altivec_expand_builtin): Same.
20302
20303 2002-01-07 Richard Henderson <rth@redhat.com>
20304
20305 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
20306
20307 2002-01-07 Jason Merrill <jason@redhat.com>
20308
20309 * unwind-dw2.c (execute_cfa_program): Use < again.
20310
20311 2002-01-07 Jakub Jelinek <jakub@redhat.com>
20312
20313 * predict.c (combine_predictions_for_insn): Avoid division by zero.
20314
20315 2002-01-07 Jakub Jelinek <jakub@redhat.com>
20316
20317 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
20318 Don't allow -1 - x -> ~x simplifications in the first pass.
20319
20320 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
20321
20322 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
20323 arguments.
20324 (altivec_expand_binop_builtin): Same.
20325 (altivec_expand_unop_builtin): Same.
20326 (print_operand): Fix typo.
20327 (bdesc_1arg): Add vupk* variants.
20328
20329 * rs6000.h (rs6000_builtins): Add vupk* enums.
20330
20331 * rs6000.md: Add altivec_vupk* variants.
20332
20333 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
20334
20335 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
20336 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
20337 and last update dates.
20338
20339 2002-01-07 Janis Johnson <janis187@us.ibm.com>
20340
20341 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
20342
20343 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
20344
20345 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
20346 * config/avr/avr.h (CPP_SPEC): Likewise.
20347 (LINK_SPEC): Likewise.
20348 (CRT_BINUTILS_SPECS): Likewise.
20349 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
20350 * doc/invoke.texi (AVR Options): Document them.
20351
20352 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
20353
20354 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
20355 LABEL_NUSES.
20356
20357 2002-01-07 Graham Stott <grahams@redhat.com>
20358
20359 * config/i386/i386.h: Update copyright date.
20360 (HALF_PIC_PTR): Add parenthesis.
20361 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
20362 (CONSTANT_ALIGNMENT): Add parenthesis.
20363 (DATA_ALIGNMENT): Likewise.
20364 (LOCAL_ALIGNMENT): Likewise.
20365 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
20366 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
20367 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
20368 (HARD_REGNO_NREGS): Add paranethesis.
20369 (VALID_SSE_REG_MODE): Whitespace.
20370 (VALID_MMX_REG_MODE): Whitespace.
20371 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
20372 (ix86_hard_regno_mode_ok): Add parenthesis.
20373 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
20374 (RETURN_IN_MEMORY): Whitespace.
20375 (N_REG_CLASSES): Add parenthesis.
20376 (INTEGER_CLASS_P): Add parenthesis and wrap.
20377 (FLOAT_CLASS_P): Likewise.
20378 (SSE_CLASS_P): Likewise.
20379 (MMX_CLASS_P): Likewise.
20380 (MAYBE_INTEGER_CLASS_P): Likewise.
20381 (MAYBE_FLOAT_CLASS_P): Likewise.
20382 (MAYBE_SSE_CLASS_P): Likewise.
20383 (MAYBE_MMX_CLASS_P): Likewise.
20384 (Q_CLASS_P): Likewise.
20385 (GENERAL_REGNO_P): Uppercase macro parameter.
20386 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
20387 (FP_REGNO_P): Likewise.
20388 (ANY_FP_REGNO_P): Uppercase macro parameter.
20389 (SSE_REGNO_P): Likewise.
20390 (SSE_REGNO): Likewise.
20391 (SSE_REG_P): Likewise.
20392 (SSE_FLOAT_MODE_P): Likewise.
20393 (MMX_REGNO_P): Likewise.
20394 (MMX_REG_P):Likewise.
20395 (STACK_REG_P): Likewise.
20396 (NON_STACK_REG_P): Likewise.
20397 (STACK_TOP_P): Likewise.
20398 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
20399 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
20400 (SECONDARY_MEMORY_NEEDED): Likewise.
20401 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
20402 (MD_ASM_CLOBBERS): Whitespace and wrap.
20403 (MUST_PASS_IN_STACK): Whitespace and wrap.
20404 (RETURN_POPS_ARGS): Add parenthesis.
20405 (INIT_CUMULATIVE_ARGS): Likewise.
20406 (FUNCTION_ARG): Likewise.
20407 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
20408 (SETUP_INCOMING_VARARGS): Likewise.
20409 (BUILD_VA_LIST_TYPE): Add parenthesis.
20410 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
20411 parenthsis.
20412 (EXPAND_BUILTIN_VA_ARG): Likewise.
20413 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
20414 (INITIALIZE_TRAMPOLINE): Add parenthesis.
20415 (INITIAL_ELIMINATION_OFFSET): Likewise.
20416 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
20417 (REGNO_OK_FOR_BASE_P): Likewise.
20418 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
20419 (REGNO_OK_FOR_DIREG_P): Likewise.
20420 (REG_OK_FOR_INDEX_P): Whitespace.
20421 (REG_OK_FOR_BASE_P): Whitespace.
20422 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
20423 parenthesis.
20424 (FIND_BASE_TERM): Fix typo.
20425 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
20426 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
20427 (SYMBOLIC_CONST; Whitespace.
20428 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
20429 (ENCODE_SECTION_INFO): Whitespace.
20430 (FINALIZE_PIC): Remove do { ... } while (0).
20431 (PROMOTE_MODE): Wrap in do { ... } while (0).
20432 (CONST_COSTS): Whitespace.
20433 (RTX_COSTS): Add paramethesis, whitespace and wrap.
20434 (REGISTER_MOVE_COST): Add parenthesis.
20435 (MEMORY_MOVE_COST): Likewise.
20436 (EXTRA_CC_MODES): Whitespace.
20437 (SELECT_CC_MODE): Add parenthesis and whitespace.
20438 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
20439 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
20440 (ASM_OUTPUT_LABEL): Add paramethesis.
20441 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
20442 (ASM_OUTPUT_REG_POP): Likewise.
20443 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
20444 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20445
20446 * config/i386/i386.c: Update copyright.
20447 (CHECK_STACK_LIMIT): Add parenthesis.
20448 (AT_BP): Uppercase macro parameter.
20449 (x86_64_int_parameter_registers): Constify.
20450 (x86_64_int_return_registers): Likewise.
20451 (ix86_compare_op0): Use rtx.
20452 (construct_container): Constify INTREG parameter.
20453 (function_arg): Use rtx.
20454
20455 * diagnostic.h: Update copyright date.
20456 (output_buffer_state): Add parenthesis.
20457 (output_buffer_format_args): Likewise.
20458
20459 * combine.c (combine_instructions): Replace XEXP (links, 0)
20460 with link.
20461
20462 2002-01-06 H.J. Lu <hjl@gnu.org>
20463
20464 * cfgcleanup.c (thread_jump): Fix 2 typos.
20465
20466 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
20467
20468 * config.gcc: Add support for --enable-altivec.
20469
20470 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
20471
20472 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
20473
20474 2002-01-06 Jakub Jelinek <jakub@redhat.com>
20475
20476 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
20477 __objc_class_name_*.
20478
20479 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
20480
20481 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
20482
20483 2002-01-06 Richard Henderson <rth@redhat.com>
20484
20485 * reorg.c (emit_delay_sequence): Remove death notes, not merely
20486 nop them out. Increment label reference count for REG_LABEL.
20487 (fill_slots_from_thread): Frob label reference count around
20488 delete_related_insns.
20489
20490 2002-01-05 Richard Henderson <rth@redhat.com>
20491
20492 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
20493 jump threading.
20494
20495 2002-01-05 Richard Henderson <rth@redhat.com>
20496
20497 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
20498 * integrate.c (output_inline_function): Likewise.
20499 * toplev.c (rest_of_compilation): Do it here instead. Move call
20500 to remove_unnecessary_notes after emitting abstract instance.
20501 Force an emitted nested function to have its parent emited as well.
20502 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
20503 for null.
20504 (rtl_for_decl_location): Do not look at reload data structures
20505 before reload has run.
20506
20507 2002-01-05 Kazu Hirata <kazu@hxi.com>
20508
20509 * cse.c: Fix formatting.
20510 * dwarf2asm.c: Likewise.
20511 * dwarf2out.c: Likewise.
20512 * explow.c: Likewise.
20513 * expmed.c: Likewise.
20514 * function.c: Likewise.
20515 * gcov.c: Likewise.
20516 * gencheck.c: Likewise.
20517 * genrecog.c: Likewise.
20518 * ggc-common.c: Likewise.
20519 * ggc-page.c: Likewise.
20520 * global.c: Likewise.
20521
20522 2002-01-05 Kazu Hirata <kazu@hxi.com>
20523
20524 * combine.c: Fix formatting.
20525
20526 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
20527
20528 PR middle-end/1557
20529 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
20530
20531 2002-01-05 David Edelsohn <edelsohn@gnu.org>
20532
20533 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
20534 as 1 for __powerpc64__ as well.
20535
20536 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
20537
20538 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
20539 return it.
20540
20541 2002-01-05 Daniel Berlin <dan@dberlin.org>
20542
20543 * lcm.c: Revert change, due to performance regression it causes on
20544 SPEC because it's slightly more conservative (sigh, I hate
20545 edge-based LCM).
20546
20547 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
20548
20549 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
20550
20551 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
20552
20553 * doc/cppinternals.texi: Update.
20554
20555 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
20556
20557 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
20558 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
20559 negatives.
20560 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
20561 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
20562 kludge for pre-october-14th mmix versions to handle new-found bug
20563 with PUSHJ/PUSHGO and the register stack.
20564 * config/mmix/mmix.h (struct machine_function): Rename member
20565 has_call_value_without_parameters to has_call_without_parameters.
20566 All referers changed.
20567 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
20568 TARGET_MASK_BRANCH_PREDICT): New macros.
20569 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
20570 -mno-reg-stack-fill-bug-workaround.
20571 * config/mmix/mmix.md ("call"): Set struct machine member
20572 has_call_without_parameters.
20573
20574 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
20575
20576 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
20577
20578 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
20579
20580 * cfgcleanup.c: Include tm_p.h
20581 (mark_effect): Fix handling of hard register; fix handling of SET
20582
20583 2002-01-04 Kazu Hirata <kazu@hxi.com>
20584
20585 * config/h8300/h8300.md (anonymous patterns): Check that
20586 operands are registers before using REGNO on them.
20587
20588 2002-01-03 Roland McGrath <roland@frob.com>
20589
20590 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
20591
20592 2002-01-04 Jakub Jelinek <jakub@redhat.com>
20593
20594 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
20595 * c-common.h (genrtl_expr_stmt_value): Likewise.
20596 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
20597 (expand_expr_stmt_value): Add maybe_last argument.
20598 Don't warn about statement with no effect if it is the last statement
20599 in expression statement.
20600 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
20601 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
20602 expand_expr_stmt_value.
20603 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
20604 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
20605 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
20606 as maybe_last to expand_expr_stmt_value.
20607
20608 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
20609
20610 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
20611 be passed in, do not build it.
20612 (c_begin_if_stmt): New function.
20613 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
20614 * c-common.h (c_expand_start_cond): Update prototype.
20615 (c_begin_if_stmt): Prototype new function.
20616 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
20617 * c-parse.in (if_prefix): Use c_begin_if_stmt,
20618 c_begin_while_stmt and c_finish_while_stmt_cond.
20619
20620 2002-01-04 William Cohen <wcohen@redhat.com>
20621
20622 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
20623 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
20624 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
20625 * config/pa/som.h (ASM_FILE_START): Likewise.
20626
20627 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
20628
20629 * lcm.c: Include df.h.
20630 Add available_transfer_function prototype.
20631 (compute_available): Rework to use iterative dataflow framework.
20632 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
20633 with bb_info in df.h
20634 (available_transfer_function): New function.
20635
20636 * Makefile.in (lcm.o): add df.h to dependencies.
20637
20638 2002-01-04 Richard Henderson <rth@redhat.com>
20639
20640 * config/alpha/alpha.c (some_operand): Accept HIGH.
20641 (input_operand): Likewise; accept simple references to globals.
20642 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
20643 (alpha_const_double_ok_for_letter_p): Likewise.
20644 (alpha_extra_constraint): Likewise.
20645 (alpha_preferred_reload_class): Likewise. Do not force
20646 symbolic constants to memory.
20647 (alpha_legitimate_address_p): Accept simple references
20648 to small_symbolic_operand.
20649 (alpha_legitimize_address): New arg scratch. Be prepared to be
20650 called when no_new_pseudos. Emit simple symbolic references.
20651 Split integers into low, high, and rest.
20652 (alpha_expand_mov): Use alpha_legitimize_address.
20653 (some_small_symbolic_mem_operand): New.
20654 (split_small_symbolic_mem_operand): New.
20655 * config/alpha/alpha-protos.h: Update.
20656 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
20657 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
20658 (EXTRA_CONSTRAINT): Likewise.
20659 (PREFERRED_RELOAD_CLASS): Likewise.
20660 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
20661 (PREDICATE_CODES): Update.
20662 * config/alpha/alpha.md: New post-reload splitters to convert
20663 simplfied symbolic operands to the form that references $29.
20664 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
20665 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
20666
20667 2002-01-03 Richard Henderson <rth@redhat.com>
20668
20669 * local-alloc.c (function_invariant_p): Update commentary.
20670
20671 2002-01-04 H.J. Lu <hjl@gnu.org>
20672
20673 * toplev.c (rest_of_compilation): Fix a typo when calling
20674 cleanup_cfg.
20675
20676 2002-01-03 Kazu Hirata <kazu@hxi.com>
20677
20678 * c-common.c: Fix formatting.
20679 * diagnostic.c: Likewise.
20680 * doloop.c: Likewise.
20681 * dwarf2out.c: Likewise.
20682
20683 2002-01-03 Kazu Hirata <kazu@hxi.com>
20684
20685 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
20686 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
20687
20688 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
20689
20690 * cpperror.c: Update comments and copyright.
20691 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
20692 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
20693
20694 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
20695
20696 * collect2.c (main): Use strcmp when testing for "-shared".
20697
20698 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
20699
20700 * cppmacro.c: Don't include intl.h. Update comments.
20701 (new_number_token): Allocate enough buffer for 64-bit unsigned
20702 integers; update prototype.
20703 * cppmain.c: Update comments.
20704
20705 2002-01-03 William Cohen <wcohen@redhat.com>
20706
20707 * function.h (struct function): Add profile.
20708 (current_function_profile): New.
20709 doc/extend.texi: Update documentation.
20710 * final.c (final_start_function): Use current_function_profile
20711 instead of profile_flag.
20712 (profile_after_prologue): Likewise.
20713 * function.c (expand_function_start): Likewise.
20714 (expand_function_start): Likewise.
20715 * config/alpha/alpha.c (direct_call_operand):
20716 (alpha_does_function_need_gp): Likewise.
20717 (alpha_expand_prologue): Likewise.
20718 * config/arm/arm.c (arm_expand_prologue): Likewise.
20719 thumb_expand_prologue: Likewise.
20720 * config/d30v/d30v.c (d30v_stack_info): Likewise.
20721 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
20722 (fr30_expand_prologue): Likewise.
20723 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
20724 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
20725 * config/i386/i386.h (FINALIZE_PIC): Likewise.
20726 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
20727 * config/i960/i960.c (i960_output_function_prologue): Likewise.
20728 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
20729 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
20730 (m32r_expand_prologue): Likewise.
20731 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
20732 (m88k_expand_prologue): Likewise.
20733 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
20734 * config/mips/mips.c (compute_frame_size): Likewise.
20735 (mips_expand_prologue): Likewise.
20736 (mips_can_use_return_insn): Likewise.
20737 * config/pa/elf.h (ASM_FILE_START): Likewise.
20738 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
20739 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
20740 * config/pa/som.h (ASM_FILE_START): Likewise.
20741 * config/romp/romp.c (romp_using_r14): Likewise.
20742 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
20743 (rs6000_stack_info): Likewise.
20744 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
20745 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
20746 * config/v850/v850.c (compute_register_save_size): Likewise.
20747
20748 2002-01-03 Jakub Jelinek <jakub@redhat.com>
20749
20750 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
20751 gen_lowpart_common fails, use gen_lowpart_SUBREG.
20752
20753 2002-01-03 Turly O'Connor <turly@apple.com>
20754
20755 * darwin.c (machopic_output_possible_stub_label): Don't generate
20756 stub routines for pseudo-stubs which we've just defined.
20757
20758 2002-01-03 Kazu Hirata <kazu@hxi.com>
20759
20760 * builtins.c: Fix formatting.
20761 * c-typeck.c: Likewise.
20762 * combine.c: Likewise.
20763 * expr.c: Likewise.
20764 * loop.c: Likewise.
20765
20766 2002-01-03 Andreas Schwab <schwab@suse.de>
20767
20768 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
20769 and return true if _cpp_push_next_buffer pushed a new include
20770 file.
20771 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
20772 _cpp_pop_file_buffer did not push a new file.
20773 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
20774
20775 2002-01-02 Eric Christopher <echristo@redhat.com>
20776
20777 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
20778 FIND_REG_INC_NOTE call. Update copyright.
20779 * loop.c (canonicalize_condition): Ditto.
20780 * reorg.c (delete_scheduled_jump): Ditto.
20781
20782 2002-01-03 Kazu Hirata <kazu@hxi.com>
20783
20784 * gcse.c: Fix formatting.
20785
20786 2002-01-03 Graham Stott <grahams@redhat.com>
20787
20788 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
20789 forward defs for struct tags rtx_def, union_tree, rtvec_def
20790 also output corresponding typedefs for rtx, tree, and rtvec.
20791
20792 * system.h: Move forward defs for struct tags rtx_def, union_tree,
20793 rtvec_def along with corresponding typedefs for rtx, tree, and
20794 rtvec to config.h, hconfig.h, tconfig.h.
20795
20796 2002-01-03 Graham Stott <grahams@redhat.com>
20797
20798 * tree.h: Update copyright date.
20799 (IS_EXPR_CODE_CLASS): Add parenthesis.
20800 (TREE_SET_CODE): Add whitespace.
20801 (TREE_CHECK): Add parenthesis.
20802 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
20803 (CST_OR_CONSTRUCTOR_CHECK):
20804 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
20805 (TREE_SYMBOL_REFERENCED): Whitespace.
20806 (INT_CST_LT): Likewise.
20807 (INT_CST_LT_UNSIGNED): Likewise.
20808 (tree_real_cst): Unwrap comment.
20809 (tree_string): Likewise.
20810 (tree_complex): Likewise.
20811 (IDENTIFIER_POINTER): correct cast.
20812 (SAVE_EXPR_CONTEXT): Whitespace.
20813 (EXPR_WFL_FILENAME_NODE): Likewise.
20814 (EXPR_WFL_FILENAME): Remove parenthesis.
20815 (DECL_ORIGIN): Add parenthesis.
20816 (DECL_FROM_INLINE): Use NULL_TREE.
20817 (build_int_2): Whitespace.
20818 (build_type_variant): Add parenthesis.
20819
20820 * gcc/jcf-parse.c: Update copyright date.
20821 (yyparse): Constify resource_filename.
20822
20823 2002-01-03 Graham Stott <grahams@redhat.com>
20824
20825 * rtl.h: Update copyright date.
20826 (RTL_CHECK1): Wrap long line.
20827 (RTL_CHECK2): Likewise.
20828 (RTL_CHECKC1): Wrap long line and whitespace.
20829 (RTL_CHECKC2): Likewise.
20830 (XWINT): Whitespace.
20831 (XINT): Likewise.
20832 (XSTR): Likewise.
20833 (XEXP): Likewise.
20834 (XVEC): Likewise.
20835 (XMODE): Likewise.
20836 (XBITMAP): Likewise.
20837 (XTREE): Likewise.
20838 (XBBDEF): Likewise.
20839 (XTMPL): Likewise.
20840 (X0WINT): Likewise.
20841 (X0INT):Likewise.
20842 (X0UINT): Likewise.
20843 (X0STR): Likewise.
20844 (X0EXP): Likewise.
20845 (X0VEC): Likewise.
20846 (X0MODE): Likewise.
20847 (X0BITMAP): Likewise.
20848 (X0TREE): Likewise.
20849 (X0BBDEF): Likewise.
20850 (X0ADVFLAGS): Likewise.
20851 (X0CSELIB): Likewise.
20852 (X0MEMATTR): Likewise.
20853 (XCWINT): Likewise.
20854 (XCINT): Likewise.
20855 (XCUINT): Likewise.
20856 (XCSTR): Likewise.
20857 (XCEXP): Likewise.
20858 (XCVEC): Likewise.
20859 (XCMODE): Likewise.
20860 (XCBITMAP): Likewise.
20861 (XCTREE): Likewise.
20862 (XCBBDEF): Likewise.
20863 (XCADVFLAGS): Likewise.
20864 (XCCSELIB): Likewise.
20865 (XC2EXP): Likewise.
20866 (INSN_UID): Likewise.
20867 (PREV_INSN): Likewise.
20868 (PATTERN): Likewise.
20869 (INSN_CODE): Likewise.
20870 (PUT_REG_NOTE_KIND): Likewise.
20871 (CODE_LABEL_NUMBER): Likewise.
20872 (NOTE_SOURCE_FILE): Likewise.
20873 (NOTE_BLOCK): Likewise.
20874 (NOTE_EH_HANDLER): Likewise.
20875 (NOTE_RANGE_INFO): Likewise.
20876 (NOTE_LIVE_INFO): Likewise.
20877 (NOTE_BASIC_BLOCK): Likewise.
20878 (NOTE_EXPECTED_VALUE): Likewise.
20879 (NOTE_LINE_NUMBER): Likewise.
20880 (LABEL_NAME): Likewise.
20881 (LABEL_NUSES): Likewise.
20882 (LABEL_ALTERNATE_NAME): Likewise.
20883 (ADDRESSOF_DECL): Likewise.
20884 (JUMP_LABEL): Likewise.
20885 (LABEL_NEXTREF): Likewise.
20886 (REGNO): Likewise.
20887 (ORIGINAL_REGNO: Likewise.
20888 (HARD_REGISTER_NUM_P): Add parenthesis.
20889 (SUBREG_REG): Whitespace.
20890 (SUBREG_BYTE): Likewise.
20891 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
20892 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
20893 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
20894 (ASM_OPERANDS_INPUT_VEC): Likewise.
20895 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
20896 (ASM_OPERANDS_INPUT): Likewise.
20897 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
20898 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
20899 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
20900 (ASM_OPERANDS_INPUT_MODE): Likewise.
20901 (ASM_OPERANDS_SOURCE_FILE): Likewise.
20902 (ASM_OPERANDS_SOURCE_LINE): Likewise.
20903 (MEM_SET_IN_STRUCT_P): Minor reformat.
20904 (TRAP_CONDITION): Whitespace.
20905 (TRAP_CODE): Likewise.
20906 (COND_EXEC_TEST): Likewise.
20907 (COND_EXEC_CODE): Likewise.
20908 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
20909 (PHI_NODE_P): Add parenthesis.
20910 (plus_constant): Whitespace and add parenthesis.
20911
20912 2002-01-03 Kazu Hirata <kazu@hxi.com>
20913
20914 * config/avr/avr.c: Fix comment typos.
20915 * config/c4x/c4x.md: Likewise.
20916 * config/dsp16xx/dsp16xx.h: Likewise.
20917 * config/dsp16xx/dsp16xx.md: Likewise.
20918 * config/i386/i386.md: Likewise.
20919 * config/ia64/ia64.c: Likewise.
20920 * config/m32r/m32r.h: Likewise.
20921 * config/m68hc11/m68hc11.md: Likewise.
20922 * config/mmix/mmix.c: Likewise.
20923 * config/mn10200/mn10200.c: Likewise.
20924 * config/romp/romp.c: Likewise.
20925 * config/sh/sh.c: Likewise.
20926 * config/stormy16/stormy16.c: Likewise.
20927 * config/stormy16/stormy16.h: Likewise.
20928 * config/stormy16/stormy16.md: Likewise.
20929
20930 2002-01-03 Graham Stott <grahams@redhat.com>
20931
20932 * loop.h: Update copyright date.
20933 (LOOP_MOVABLES): Fix typo.
20934 (LOOP_REGS): Likewise.
20935 (LOOP_IVS): Likewise.
20936
20937 2002-01-03 Graham Stott <grahams@redhat.com>
20938
20939 * cppinit.c: Update copyright date.
20940 Don't include output.h
20941 * Makefile.in: Update copyright date.
20942 Update dependency.
20943
20944 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
20945
20946 PR c/5226
20947 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
20948 (-pthread) Add to RS/6000 options.
20949
20950 2002-01-02 Kazu Hirata <kazu@hxi.com>
20951
20952 * except.c: Fix comment typos.
20953 * loop.c: Likewise.
20954 * varasm.c: Likewise.
20955 * doc/tm.texi: Fix a typo.
20956
20957 2002-01-02 Jakub Jelinek <jakub@redhat.com>
20958
20959 * c-typeck.c (output_init_element): Allow initializing static storage
20960 duration objects with compound literals.
20961
20962 2002-01-02 Richard Henderson <rth@redhat.com>
20963
20964 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
20965 after abusing it.
20966
20967 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20968
20969 * gcc.c (default_compilers): Const-ify.
20970 * mips-tdump.c (stab_names): Likewise.
20971 * mips-tfile.c (map_coff_types, map_coff_storage,
20972 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
20973 pseudo_ops_t, pseudo_ops): Likewise.
20974 * protoize.c (default_include): Likewise
20975
20976 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
20977 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
20978 Add array size in declaration.
20979 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
20980 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
20981 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
20982 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
20983 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
20984 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
20985 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
20986 emtens, make_nan): Const-ify.
20987 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
20988 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
20989
20990 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
20991
20992 * config.gcc (ia64-*-*): Set extra_headers.
20993 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
20994 * config/alpha/t-osf: Remove.
20995 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
20996
20997 2002-01-02 David Edelsohn <edelsohn@gnu.org>
20998
20999 * config/rs6000/t-aix43: Revert previous change.
21000
21001 2002-01-02 Jason Merrill <jason@redhat.com>
21002
21003 * c-decl.c (c_expand_body): Call outlining_inline_function when
21004 emitting an inline function out of line.
21005
21006 2002-01-02 Richard Henderson <rth@redhat.com>
21007
21008 * dwarf2out.c (limbo_die_node): Add created_for member.
21009 (new_die): New argument created_for. Update all callers.
21010 (mark_limbo_die_list): New.
21011 (dwarf2out_init): Register limbo_die_list as a root.
21012 (dwarf2out_finish): Force insert limbo dies into their function
21013 context.
21014
21015 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
21016
21017 PR c++/5089
21018 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
21019
21020 2002-01-02 Kazu Hirata <kazu@hxi.com>
21021
21022 * config/h8300/fixunssfsi.c: Update copyright.
21023 Fix comment typos.
21024 Fix formatting.
21025 * config/h8300/h8300.c: Update copyright.
21026 Eliminate warnings.
21027
21028 2002-01-02 Kazu Hirata <kazu@hxi.com>
21029
21030 * config/romp/romp.c: Fix comment formatting.
21031 * config/romp/romp.h: Likewise.
21032 * config/romp/romp.md: Likewise.
21033 * config/s390/s390.c: Likewise.
21034 * config/stormy16/stormy16.c: Likewise.
21035 * config/stormy16/stormy16.h: Likewise.
21036
21037 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
21038
21039 * c-common.h (genrtl_expr_stmt_value): Declare.
21040 * c-semantics.c (genrtl_goto_stmt): Redirect to...
21041 (genrtl_goto_stmt_value): ... this new function. Pass new
21042 argument down to expand_expr_stmt_value, taking
21043 TREE_ADDRESSABLE into account.
21044 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
21045 STMT_EXPR as addressable, i.e., one whose result we want.
21046 * expr.c (expand_expr): Don't save expression statement value
21047 of labeled_blocks or loop_exprs.
21048 * stmt.c (expand_expr_stmt): Redirect to...
21049 (expand_expr_stmt_value): ... this new function. Use new
21050 argument to tell whether to save expression value.
21051 (expand_end_stmt_expr): Reset last_expr_type and
21052 last_expr_value if we don't have either.
21053 * tree-inline.c (declare_return_variable): Mark its use
21054 statement as addressable.
21055 * tree.h: Document new use of TREE_ADDRESSABLE.
21056 (expand_expr_stmt_value): Declare.
21057
21058 2002-01-01 Tom Rix <trix@redhat.com>
21059
21060 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
21061 rs6000_emit_allocate_stack.
21062
21063 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
21064
21065 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
21066 ${srcdir}/ginclude/ to every entry in extra_headers.
21067 * configure: Regenerate.
21068 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
21069 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
21070 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
21071 * ginclude/proto.h: Rename to config/convex/proto.h.
21072
21073 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21074
21075 * attribs.c (handle_vector_size_attribute): Use host_integerp
21076 and tree_int_cst; remove warnings.
21077 * caller-save.c (insert_restore): Add cast to get rid of warning.
21078 (insert_save): Likewise.
21079 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
21080 * regmove.c (find_matches): Add temporary var to kill a warning.
21081
21082 2002-01-01 Douglas B Rupp <rupp@gnat.com>
21083
21084 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
21085 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
21086 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
21087 (vms-dwarf2eh.o): Add Makefile rule.
21088 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
21089 * config/alpha/vms-dwarf2eh.asm: New file.
21090
21091 * gcc.c (delete_if_ordinary): Delete all versions.
21092
21093 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
21094
21095 * config/mmix/mmix.md: Update FIXME to not mention
21096 define_constants.
21097 (MMIX_rJ_REGNUM): New define_constants constant.
21098 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
21099 "*movdicc_real"): Adjust contraints formatting.
21100 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
21101 for branch prediction.
21102 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
21103 output template.
21104 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
21105 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
21106 number. Delete related FIXMEs.
21107 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
21108 from number to MMIX_rJ_REGNUM.
21109 (TARGET_MASK_BRANCH_PREDICT): New.
21110 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
21111 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
21112 value. Add -mbranch-predict and -mno-branch-predict.
21113 (TARGET_VERSION): Drop date.
21114 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
21115 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
21116 for finding out global symbols.
21117 (mmix_asm_output_labelref): Revert condition for global symbol.
21118 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
21119 (mmix_print_operand_punct_valid_p): A '+' is valid.
21120
21121 See ChangeLog.6 for earlier changes.