2002-06-27 Aldy Hernandez <aldyh@redhat.com>
[official-gcc.git] / gcc / ChangeLog
blob6813ca9180743b5ca40dab63212b14ef5abb5ca0
1 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
3         * config/rs6000/rs6000.c (altivec_expand_builtin): Move
4         lvx/stv/dst builtins...
5         (altivec_expand_ld_builtin): ...to here.
6         (altivec_expand_st_builtin): ...here.
7         (altivec_expand_dst_builtin): ...and here (respectively).
9 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
11         * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
13 2001-06-08  Bernd Schmidt  <bernds@redhat.com>
15         * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
16         subregs.
17         * recog.c (general_operand, register_operand): Disallow them.
19 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
21         PR preprocessor/7138
22         * cpplib.c (_cpp_handle_directive): Do traditional
23         preparation after setting state.angled_headers.
24         * cpptrad.c (scan_out_logical_line): Fix potential
25         quote bug.
27 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
29         * config/rs6000/rs6000.c (rs6000_override_options): Move
30         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
32 2002-06-27  Bob Wilson  <bob.wilson@acm.org>
34         * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
35         (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
36         zero_cost_loop_end): Remove unnecessary "parallel" from insns.
38 2002-06-27  Roger Sayle  <roger@eyesopen.com>
40         * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
41         * config/stormy16/stormy16.h: Likewise.
43         * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
44         with #define.
46 2002-06-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
48         * doc/install.texi (Binaries): Add Sinix/Reliant Unix.  Move
49         Hitachi entry.  Make punctuation more consistent.
51 2002-06-27  Matt Kraai  <kraai@alumni.cmu.edu>
53         * doc/install.texi: Change ` bit' to `-bit'.
54         * doc/md.texi: Change `-bits' to `-bit'.
55         * doc/tm.texi: Change `-bits' to ` bits'.
57 2002-06-27  Daniel Berlin  <dberlin@dberlin.org>
59         * gcse.c (hoist_code): Rewrite to only get list of dominated
60         blocks once per BB. Also fix reversed test (by removing need for 
61         the test at all).
63 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
65         * cpphash.h (_cpp_set_trad_context): Remove.
66         * cpplib.c (prepare_directive_trad): Do nothing for #define.
67         (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
68         * cpptrad.c: Update comments.
69         (_cpp_read_logical_line_trad): Let scan_logical_line handle
70         updating the current context.
71         (scan_logical_line): Update the current context.
72         (_cpp_create_trad_definition): Similarly.
73         (_cpp_set_trad_context): Remove.
75 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
77         PR preprocessor/7070
78         * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
80 2002-06-26  Bob Wilson  <bob.wilson@acm.org>
82         * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
83         config/xtensa/xtensa.c (xtensa_return_addr): New function.
84         config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
85         config/xtensa/xtensa.md (fix_return_addr): New pattern.
87 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
89         * mips.c (coprocessor_operand, coprocessor2_operand,
90         symbolic_operand): Move prototypes from here...
91         * mips-protos.h (coprocessor_operand, coprocessor2_operand,
92         symbolic_operand): ...to here.
94 Wed Jun 26 16:32:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
96         * config/sh/crt1.asm: remove _stack label definition
97         and sentinel value.
99 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
101         * varasm.c: Include real.h before output.h.
103 2002-06-26  Aldy Hernandez  <aldyh@redhat.com>
105         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
106         check for TARGET_ALTIVEC.
108 2002-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
110         * config.gcc (vax-*-vms*): Make obselete.
112 2002-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
114         * gcc.c (warn_std): Delete.
116 2002-06-25  Loren J. Rittle  <ljrittle@acm.org>
118         * doc/extend.texi: Fix formatting of last checkin.
120 2002-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
122         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
123         underscore from __IEEE_FP and __IEEE_FP_INEXACT.
125 2002-06-25  Aldy Hernandez  <aldyh@redhat.com>
127         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
128         discrepancies from motorola's documentation.
130 Tue Jun 25 21:51:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
132         * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
133         GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
135         * config/sh/lib1funcs.asm (udivdi3): Make first divide step 
136         produce a 32 bit result before normalization, then normalize with a
137         left shift.  Compute approximative error of 2nd reciprocal
138         approximation in 2's complement.  Fix mask generation from upper
139         longword of second divide stage result.
140         For large divisor, fix shift count used to truncate first stage
141         divide result; make decision if to adjust upwards based on comparison
142         of higher parts of normalized values.
143         (udivdi): Likewise.  Undo normalization of result for large divisor
144         case.
146 2002-06-25  David S. Miller  <davem@redhat.com>
148         * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
150 2002-06-25  Neil Booth  <neil@daikokuya.co.uk>
152         * cpplib.c (do_include_common): Revert to correct line number
153         if -traditional.
154         * cpptrad.c (scan_out_logical_line): Treat null directive as
155         white space.  Invlidate MI optimization for non-whitespace
156         text outside a directive.
158 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
160         * Makefile.in (SHELL): Set to @SHELL@.
161         * fixinc/Makefile.in (SHELL): Likewise.
163         * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
164         fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
165         initialization.
167 2002-06-24  Jeff Law <law@redhat.com>
169         * flow.c (propagate_one_insn): When removing an insn
170         with a REG_LIBCALL note but not the entire libcall sequence,
171         delete the associated REG_RETVAL note.
173 Mon Jun 24 21:05:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
175         * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
176         (udivsi3): Likewise.  Rewrite SH1 implementation.
177         (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
178         * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
179         (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
180         * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
181         (_moddi3): Likewise.
183         * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
185         * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
186         arguments into account for stack_regs.
188 2002-06-24  Matt Kraai  <kraai@alumni.cmu.edu>
190         * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
191         in examples.
192         
193 2002-06-24  Art Haas  <ahaas@neosoft.com>
195         * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
196         * doc/tm.texi (Frame Layout): Likewise.
198 2002-06-20  Steve Ellcey  <sje@cup.hp.com>
199         * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
200         Set float_format to i128.
202 2002-06-24  David S. Miller  <davem@redhat.com>
204         * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
205         32-bit ABI libfuncs to NULL.
207         * config/sparc/sparc.md: Use define_insn_and_split.  Use braced
208         strings instead of quoted strings for code blocks.
210         * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
211         optabs if op1 is const0_rtx.
213         * Makefile.in (GTFILES): Add basic-block.h
214         * basic-block.h (label_value_list, tail_recursion_label_list):
215         Mark with GTY.
217 2002-06-24  Neil Booth  <neil@daikokuya.co.uk>
219         * cpptrad.c (scan_out_logical_line): Check recursing only when
220         we know we have a macro invocation in the function-like case.
221         Only call _cpp_handle_directive if we know we have a good
222         directive, or we want to reject a bad directive.
224 2002-06-24  Alan Modra  <amodra@bigpond.net.au>
226         * doloop.c (doloop_valid_p): Correct comment.
227         (doloop_modify_runtime <abs_inc != 1>): Simplify.
228         (doloop_modify_runtime <do-while>): Don't emit code when NE.
230 Thu Jun 20 00:26:53 2002  Denis Chertykov  <denisc@overta.ru>
232         * config.gcc: Add support for ip2k.
234 2002-06-23  Jan Hubicka  <jh@suse.cz>
235             Jeff Law <law@redhat.com>
237         * function.h (struct emit_status): Clarify potential contents
238         of regno_reg_rtx array.
239         * integrate.c (copy_rtx_and_substitute): Update comments.  Make
240         sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
242         * reg-stack.c (convert_regs_exit): Push the registers to stack in
243         proper order.
245 2002-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
247         PR middle-end/6963
248         * function.c (assign_stack_temp_for_type): Do not return
249         the same MEM rtx for multiple uses of a stack slot.
251 2002-06-22  David S. Miller  <davem@redhat.com>
253         PR target/6841 target/6770 target/6719
254         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
255         NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
256         GENERAL_OR_EXTRA_FP_REGS.
258 2002-06-22  Neil Booth  <neil@daikokuya.co.uk>
260         * cpptrad.c (struct fun_macro): Add line number.
261         (scan_out_logical_line): Set it, and use it to report unterminated
262         macro invocations.
264 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
266         * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
267         VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
268         DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
269         DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
270         REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
271         REGEXP_ONEOF, check_name): Const-ify.
273 2002-06-21  Matt Thomas  <matt@3am-software.com>
275         * config/vax/vax.c (vax_output_function_prologue): Use
276         REGISTER_PREFIX.  Fix some indentation.
277         * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
278         (VAX_ISTREAM_SYNC): Define.
279         (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC.  Move the
280         i-stream sync to the end.
281         (REGISTER_PREFIX): Define as "".
282         (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
284 2002-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
286         * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
287         configurations.
289 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
291         * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
292         tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
294 2002-06-21  Matt Thomas  <matt@3am-software.com>
296         * config/vax/netbsd.h: Adjust a comment.
297         (TARGET_DEFAULT): Redefine as 0.
299 2002-06-21  Richard Henderson  <rth@redhat.com>
301         * bb-reorder.c (make_reorder_chain_1): Search harder for the
302         vax casesi fallthru edge.
303         * cfglayout.c (cleanup_unconditional_jumps): Use
304         redirect_edge_succ_nodup.  Do not delete ADDR_VEC insns as dead.
305         * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
306         block after ADDR_VEC.
308 2002-06-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
310         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
312 2002-06-21  Neil Booth  <neil@daikokuya.co.uk>
314         * cpperror.c (cpp_error): For traditional CPP, default to
315         diagnostics on pfile->line.
316         * cpplib.c (prepare_directive_trad): Set line number for
317         diagnostics for #define too.
318         * cpptrad.c (skip_whitespace): Skip comments properly.
319         (_cpp_expansions_different_trad): Initialize quote2.
321 2002-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
323         * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
324         * config/mmix/mmix.h: Ditto.
325         * config/mmix/mmix-protos.h: Ditto.
326         * config/mmix/mmix.c: Ditto.  Fix typo in comment.
327         * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
328         comment.  Comment extra CC modes.
330 2002-06-20 Jan Hubicka  <jh@suse.cz>
332         * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
333         (scope_to_insns_finalize): Do not call set_block_levels; handle
334         sequences.
335         (choose_inner_scope): New.
336         * rtl.h (choose_inner_scope): Declare.
338 2002-06-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
340         * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
341         HOST_WIDE_INT.
342         * pa.c (pa_asm_output_mi_thunk): Likewise.
343         (n_deferred_plabels): Change type to size_t.
344         (output_deferred_plabels, output_call): Use size_t instead of int.
346 2002-06-20  Richard Henderson  <rth@redhat.com>
348         PR target/4041
349         * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
350         pattern and adjust constraints for coldfire.
352 2002-06-20  Richard Henderson  <rth@redhat.com>
354         * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
356 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
358         * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
360 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
362         * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
364 2002-06-20  Stan Shebs  <shebs@apple.com>
366         * dominance.c: Include errors.h instead of error.h.
368 2002-06-20  Neil Booth  <neil@daikokuya.co.uk>
370         * cppexp.c (cpp_interpret_integer): Don't force traditional
371         numbers to be unsigned.
372         * cpplib.c (prepare_directive_trad): Set line number for
373         diagnostics.
374         * cpptrad.c (scan_out_logical_line): Continue scanning out
375         at start of buffer.
376         * gcc.c (trad_capable_cpp): Use cc1 always.
378 2002-06-20  Jeffrey Law  <law@redhat.com>
380         * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
381         elimination in leaf functions by default yet.
383 2002-06-20  Richard Sandiford  <rsandifo@redhat.com>
385         * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
387 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
389         * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
390         multilibs.
391         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
392         Fixes PR other/6836.
394 Thu Jun 20 19:42:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
395                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
397         Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
399         * basic-block.h: Do not include et-forest.h
400         (dominance_info): Declare as struct dominance-info.
401         * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
402         deleting block.
403         * dominance.c (struct dominance_info): Define.
404         (BB_NODE, SET_BB_NODE): New macros.
405         (bb_hash_func, bb_eq_func): Kill.
406         (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
407         nearest_common_dominator, dominated_by_p, recount_dominator,
408         add_to_dominance_info, delete_from_dominance_info): update for new
409         representation.
410         (get_dominated_by, redirect_immediate_dominators): Rewrite using
411         enumerate_sons.
412         * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
413         find_if_case_1, find_if_case_2): Remove killed blocks from dominance
414         structure.
416         * et-forest.h: Update copyright; revamp all function to operate on
417         nodes
418         (et_forest_value): Kill.
419         (et_forest_enumerate_sons, et_forest_node_value): New.
420         * et-forest.c: Update copyright.
421         * et-forest.h: Update copyright; revamp all function to operate on
422         nodes
423         (et_forest_value): Kill.
424         (et_forest_enumerate_sons, et_forest_node_value): New.
426         Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
428         * basic-block.h: Inlude et-forest.h
429         (basic_block_def): Kill dominator.
430         (dominance_info): New type.
431         (loops): Use dominace_info.
432         (dominace handling functions): Take dominace_info as argument
433         instead of bitmaps.
434         (create_preheader): Likewise.
435         * cfg.c (entry_exit_blocks): Kill dominator.
436         (dump_flow_info): Do not dump dominators.
437         * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
438         dominators.
439         * cfgloop.c (flow_pre_header_find): Use dominacne_info.
440         (flow_loops_pre_header_scan, make_forwarder_block,
441         canonicale_loop_headers, flow_loops_find): Likewise.
442         * dominance.c: Include error.h
443         (idoms_to_doms): Kill.
444         (bb_hash_func, bb_eq_func): New static functions.
445         (debug_dominace_info): New global function.
446         (calculate_dominance_info): Use new et forest structure.
447         (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
448         get_dominated_by, redirect_immediate_dominators,
449         nearest_common_dominator, dominated_by_p, verify_dominators,
450         recount_dominator, iterate_fix_dominators, add_to_dominace_info,
451         delete_from_dominance_info): New global functions.
452         * gcse.c (domnators): CHange to dominance_info.
453         (alloc_hoist_mem): Do not alloc dominators
454         (free_code_hoist_mem): Use free_dominance_info.
455         (compute_code_hoist_data): Use dominance_info.
456         (hoist_code): Likewise.
457         * ifcvt.c (post_dominators): Likewise.
458         (find_if_case_2, if_convert): Likewise.
459         * predict.c (process_note_predictions, process_note_prediction,
460         estimate-probability): Likewise.
461         * sched-rgn.c (find_rgns, init_regions): Likewise.
462         * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
463         find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
464         * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
465         find_evaluations, convert_to_ssa): Likewise.
466         * ssa.h (compute_dominance_frontiers): Likewise.
468         Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
470         * Makefile.in (et-forest.c): Add.
471         * et-forest.c: New file.
472         * at-forest.h: New file.
474 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
476         * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
477         array size calculation.
478         * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
479         Likewise.
481         * diagnostic.c (diagnostic_kind_text): Const-ify.
482         * gengtype.c (lang_names): Likewise.
484 Thu Jun 20 17:25:29 CEST 2002  JAn HUbicka  <jh@suse.cz>
486         * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
488 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
490         * config/sol2.h: New file.
491         * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
492         (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
493         (sparc-*-chorusos*): Likewise.
494         (sparc-*-elf*): Likewise.
495         (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
496         (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
497         (sparc-hal-solaris2*): Likewise.
498         (sparc-*-solaris2*): Likewise.
499         (sparclite-*-elf*): Likewise.
500         (sparc86x-*-elf*): Likewise.
501         (sparc64-*-elf*): Likewise.
503         * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
504         config/sol2.h.
505         (ASM_SPEC): Override config/sol2.h version for now.
506         Removed obsolete GAS_REJECTS_MINUS_S variant.
507         (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
508         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
509         (TARGET_OS_CPP_BUILTINS): Likewise.
510         Assert system=unix.
511         (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
512         (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
513         config/sol2.h.
514         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
515         (ASM_CPU_SPEC): Define.
516         (SUBTARGET_EXTRA_SPECS): Define.
518         * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
519         in config/sparc/sol2.h.
520         (ASM_SPEC): Moved to config/sol2.h.
521         (CPP_CPU_SPEC): Simplified.
522         (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
523         consistency.
524         (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
525         (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
526         STARTFILE_ARCH64_SPEC.
527         (STARTFILE_SPEC): Moved to config/sol2.h
528         (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
529         (LINK_ARCH32_SPEC): Moved to config/sol2.h.
530         (LINK_ARCH64_SPEC): Simplified.
531         (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
532         (LINK_SPEC): Moved to config/sol2.h
534         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
535         config/sol2.h.
536         Use BITS_PER_WORD for size.
537         (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
538         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
539         (CPP_PREDEFINES): Removed OS-specific part handled by
540         TARGET_OS_CPP_BUILTINS.
541         (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
542         (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
543         (ASM_SPEC): Moved to config/sol2.h.
544         (PREFERRED_DEBUGGING_TYPE): Likewise.
545         (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
546         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
547         (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
548         (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
550         * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
551         * config/i386/sol2gas.h: Removed.
553 Thu Jun 20 12:14:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
555         * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
557 2002-06-16  Aldy Hernandez  <aldyh@redhat.com>
558         
559         * gcc.c-torture/execute/simd-1.c: New.
561         * gcc.dg/simd-1.c: New.
563         * doc/extend.texi (Vector Extensions): Document that we can
564         specify simd types not specifically supported by the hardware.
565         Document that simd types can be used as function arguments.
566         Document that signness does make a difference in SIMD types.
567         Misc cleanups and revisions to the vector extensions section.
569         * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
570         constants.
572         * expr.c (vector_mode_valid_p): New.
574         * expr.h: Add vector_mode_valid_p.
576         * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
578         * c-common.c (type_for_mode): Always build vector nodes regardless
579         of VECTOR_MODE_SUPPORTED_P.
580         (handle_mode_attribute): Error if we can't emulate a nonexisting
581         vector mode.
582         (handle_vector_size_attribute): Same.
584         * optabs.c (expand_binop): Open-code vector operations.
585         (expand_unop): Open-code vector unops.
586         (expand_vector_binop): New.
587         (expand_vector_unop): New.
588         
589         * c-typeck.c (build_binary_op): Allow vectors in binops.
590         Allow vectors in conditional operatiors.
591         (build_unary_op): Allow vectors in unary minus.
593         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
594         TARGET_ALTIVEC.
596 2002-05-20  Richard Henderson  <rth@redhat.com>
598         * c-common.c (c_common_get_alias_set): Correctly handle characters.
599         Rearrange order of expressions; don't handle vectors here.
600         * alias.c (get_alias_set): Let vectors match their components.
602 2002-06-19  Chris Demetriou  <cgd@broadcom.com>
604         * config/mips/mips.c (mips_emit_prefetch): Use hints which
605         match desired locality.
607 2002-06-19  Dhananjay R. Deshpande  <dhananjayd@kpit.com>
609         * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
610         (h8300_insert_attributes): New.
612 2002-06-19  Akim Demaille  <akim@epita.fr>
614         * c-parse.in (initelt: identifier ':' initval): Add an empty
615         action to fix a type clash.
616         (aliasdecl, classdef): Add the missing closing `;'.
617         Whitespace changes.
618         * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
619         $$ = $1 type clashes.
621 2002-06-19  Eric Christopher  <echristo@redhat.com>
623         * config/mips/mips.c (symbol_operand): New function.
624         (mips_emit_prefetch): Ditto.
625         * config/mips/mips-protos.h: Define.
626         * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
627         (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
628         (LEGITIMIZE_ADDRESS): Ditto.
629         * config/mips/mips.md (prefetch, prefetch_si_address,
630         prefetch_si, prefetch_di_address, prefetch_di): New patterns.
632 2002-06-19  Eric Christopher  <echristo@redhat.com>
634         * config/fp-bit.h: Add unordered defines for gofast.
636 2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>
638         * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
639         DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
640         DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
641         REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
642         checking and without it.
643         (decl_name, decl_mode_check_failed, regexp_name,
644         regexp_mode_check_failed): New functions.
645         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
646         gen_presence_set, gen_absence_set, gen_automaton,
647         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
648         gen_regexp_sequence, gen_reserv, gen_insn_reserv,
649         automaton_decl_hash, automaton_decl_eq_p): Use the macros.
650         (find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
651         (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
652         (find_insn_decl): Ditto.  Set up mode of work_insn_decl.
653         (decl_hash, decl_eq_p): Use the macros.
654         (find_decl): Ditto.  Set up mode of work_decl.
655         (process_excls, process_presence_absence, process_decls,
656         check_automaton_usage, process_regexp, process_regexp_decls,
657         check_usage, loop_in_regexp, check_loops_in_regexps,
658         process_regexp_cycles, add_advance_cycle_insn_decl,
659         initiate_states, initiate_excl_sets,
660         initiate_presence_absence_sets, copy_insn_regexp, transform_1,
661         transform_2): Use the macros.
662         (transform_3): Ditto.  Check mode before making transformations of
663         ALLOF.
664         (regexp_transform_func, transform_insn_regexps,
665         process_unit_to_form_the_same_automaton_unit_lists,
666         form_the_same_automaton_unit_lists_from_regexp,
667         form_the_same_automaton_unit_lists,
668         process_seq_for_forming_states, process_alts_for_forming_states,
669         create_alt_states, form_ainsn_with_same_reservs, make_automaton,
670         form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
671         estimate_one_automaton_bound, compare_max_occ_cycle_nums,
672         units_to_automata_heuristic_distr, create_ainsns,
673         units_to_automata_distr, create_automata): Use the macros.
674         (form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
675         (longest_path_length, min_issue_delay_pass_states,
676         output_dead_lock_vect, output_tables, output_insn_code_cases,
677         output_internal_insn_latency_func, output_print_reservation_func,
678         output_description, output_automaton_units, generate): Use the
679         macros.
680         (make_insn_alts_attr): Ditto.  Check case when there are not
681         alternatives in the reservation.
682         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
683         make_bypass_attr, form_important_insn_automata_lists,
684         expand_automata): Use the macros.
686 2002-06-20  Tim Josling  <tej@melbpc.org.au>
688         * Makefile.in: Clean up code to check for misspecified languages
689         in enable-languages.
691 2002-06-19  Andrew Pinski <pinskia@physics.uc.edu>
693         * cpptrad.c (_cpp_replacement_text_len): initialize len.
695 2002-06-19  Jason Merrill  <jason@redhat.com>
697         * Makefile.in (unstrap, restrap): New targets.
698         (bootstrap): Mention restrap.
700 2002-06-19  Matt Kraai  <kraai@alumni.cmu.edu>
702         * except.c (ehl_free): Remove.
704         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
705         builtin_define and builtin_define_std.
707 2002-06-19  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
709         * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
710         (sCOND): Restrict operand class so that gcc knows how to reload them.
711         (bitfield_set): Merge two unnamed insn's using alternatives.
712         (call_value): Remove constraint on unused uperand.
713         (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
714         (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
716         * longlong.h (count_trailing_zeros): Escape newline and beautify.
718 2002-06-19  Mark Mitchell  <mark@codesourcery.com>
720         * Makefile.in (QMTEST_DIR): Simplify definition.
722 2002-06-19  Nick Clifton  <nickc@cambridge.redhat.com>
724         * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
725         #define.
727 2002-06-19  Neil Booth  <neil@daikokuya.co.uk>
729         * cpphash.h (struct cpp_reader): Make date and time strings.
730         (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
731         _cpp_replacement_text_len): New.
732         * cppinit.c (cpp_create_reader): Update.
733         (init_builtins): Register appropriate builtins for -traditional-cpp.
734         * cppmacro.c (new_number_token): Remove.
735         (_cpp_builtin_macro_text): New.
736         (builtin_macro): Use it.
737         (cpp_macro_definition): Update to handle traditional macros.
738         * cppmain.c (cb_line_change): Don't do column positioning for
739         traditional output.
740         * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
741         state ls_fun_close.
742         (skip_whitespace): Fix.
743         (maybe_start_funlike): Don't set state.parsing_args.
744         (scan_out_logical_line): Remove duplicate error.  Use lex_state
745         rather than state.parsing_args.
746         (push_replacement_text): Handle builtins.
747         (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
749 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
750             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
752         * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
753         attribute __always_inline__.
755 2002-06-18  Bob Wilson  <bob.wilson@acm.org>
757         * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
758         when generating the call to _mcount.
759         (NO_PROFILE_COUNTERS): Define.
761 2002-06-18  Richard Henderson  <rth@redhat.com>
763         * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
764         2002-06-02 change.
766 Tue Jun 18 20:53:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
768         * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
769         config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
770         * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
771         * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
773         * sh-protos.h (sh_pr_interrupt): Declare.
774         * sh.c (sh_pr_interrupt): New function.
775         (print_operand, calc_live_regs, sh_expand_prologue): Use it.
776         (sh_hard_regno_rename_ok): Likewise.
777         * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
779 2002-06-18  Vladimir Makarov  <vmakarov@redhat.com>
781         * rtl.def (DEFINE_AUTOMATON): Add description of new options
782         `time' and `v'.  Fix incorrect description of option `w'.
784         * doc/md.texi: Ditto.
786         * genautomata.c (TIME_OPTION, V_OPTION): New macros.
787         (gen_automata_option): Process the new options.
788         (transform_2, transform_3): Initialize some variables.
789         (initiate_automaton_gen): Use the new macros.
791 2002-06-18  Richard Sandiford  <rsandifo@redhat.com>
793         * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
794         (mips_set_return_address, mips_restore_gp): Declare.
795         * config/mips/mips.h (struct mips_frame_info): Move to mips.c
796         (current_frame_info): Remove.
797         (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
798         * config/mips/mips.c: Remove uses of current_frame_info.
799         (struct mips_frame_info): Moved from mips.h.  Remove 'insns_len'.
800         (struct machine_function): Add 'frame' and 'insns_len'.
801         (current_frame_info, zero_frame_info): Remove.
802         (mips_restore_gp, mips_set_return_address): New.
803         (mips_initial_elimination_offset): New.
804         * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
805         (eh_return define_split): Use mips_set_return_address.
807 2002-06-18  Neil Booth  <neil@daikokuya.demon.co.uk>
809         * cpplib.c (dtable): Update.
810         (end_directive): Decrement expansion prevention count.
811         Clear state.in_expression.
812         (prepare_directive_trad): Set state.in_expression.
813         Increment expansion prevention count.
814         * cpptrad.c (enum ls): New.
815         (_cpp_overlay_buffer): Set overlaid_buffer.
816         (_cpp_remove_overlay): Use overlaid_buffer.
817         (_cpp_read_logcial_line_trad): Update buffer when it might
818         have changed.
819         (scan_out_logical_line): Handle state transitions for assertions
820         and defined() in #if, and for funlike invocations including the
821         directive case.  Handle '<' and '>' as a quote mechanism in
822         #include.  Warn about unterminated macro invocations.
823         * cpphash.h (struct lexer_state): New member in_expression.
824         (struct cpp_reader): New member overlaid buffer.
826 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
828         * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
829         __always_inline__.
831 2002-06-18  Alan Modra  <amodra@bigpond.net.au>
833         * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
835         * doloop.c (doloop_optimize): Extract pattern from insn.
837 2002-06-17  Matt Kraai  <kraai@alumni.cmu.edu>
839         * doc/extend.texi (Function Attributes): Remove `,...' from @var.
841 2002-06-17  Jeff Law <law@redhat.com>
843         * libgcc2.c: Do not include symcat.h or machmode.h.
845 2002-06-17  Richard Henderson  <rth@redhat.com>
847         PR target/6922
848         * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
850 2002-06-17  Tom Tromey  <tromey@redhat.com>
852         * dwarfout.c: Include function.h.
854 2002-06-17  Andreas Schwab  <schwab@suse.de>
856         * print-rtl.c (print_rtx): Print space before vector, not after.
857         (debug_rtx): Clear sawclose before printing.
858         (debug_rtx_list): Print newline after each list element.
859         (debug_rtx_range): Likewise.
861 2002-06-17  Richard Henderson  <rth@redhat.com>
863         * function.h (struct function) [funcdef_no]: Rename profile_label_no.
864         (current_function_funcdef_no): Similarly.
865         * function.c (funcdef_no): Similarly.
866         (prepare_function_start): Set current_function_funcdef_no.
867         (expand_function_start): Don't set current_function_profile_label_no.
868         * dwarf2out.h (current_funcdef_number): Remove.
869         * dwarf2out.c (current_funcdef_number): Remove.  Replace with
870         current_function_funcdef_no throughout.
871         * dwarfout.c, vmsdbgout.c: Similarly.
872         * except.c (sjlj_funcdef_number): Remove.
873         (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
874         (output_function_exception_table): Likewise.
875         * final.c (profile_function): Use current_function_funcdef_no
876         instead of current_function_profile_label_no.
878 2002-06-17  Vladimir Makarov  <vmakarov@redhat.com>
880         * sched-ebb.c (init_ready_list): Check INSN_P first.
882 Mon Jun 17 17:26:15 2002  J"orn Rennecke <joern.rennecke@superh.com>
884         * sh.md (divsi3): Update way how to find insns in a sequence.
886         * reload1.c (merge_assigned_reloads): Don't change reloads
887         other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
888         to RELOAD_OTHER when there are conflicting input reloads.
890 2002-06-17  Richard Earnshaw  (rearnsha@arm.com)
892         * function.c (epilogue_done): Correctly build a sequence of insns for
893         a sibcall epilogue.
895 2002-06-17  Nick Clifton  <nickc@cambridge.redhat.com>
897         * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
898         #define.
900         * config/m32r/m32r.md: Replace gen_sequence with get_insns.
902 2002-06-16  Richard Henderson  <rth@redhat.com>
904         * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
905         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
907 2002-06-16  Richard Henderson  <rth@redhat.com>
909         PR opt/6722
910         * regclass.c (globalize_reg): Update regs_invalidated_by_call.
912 2002-06-16  Neil Booth  <neil@daikokuya.demon.co.uk>
914         * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
915         * config/i386/i386-aout.h, config/i386/i386elf.h,
916         config/i386/sysv4.h: Remove CPP_PREDEFINES.
917         * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
918         config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
919         config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
920         config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
921         CPP_PREDEFINES and part of CPP_SPEC.
922         * config/i386/sysv4-cpp.h: New.
924 2002-06-16  Richard Henderson  <rth@redhat.com>
926         PR c/7030
927         * dwarf2out.c (modified_type_die): Don't assign the qualified die
928         to the unqualified type.
930 Sun Jun 16 22:16:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
932         * i386-protos.h (x86_field_alignment): Declare.
933         * i386.c (x86_field_alignment): Define.
934         * i386.h (ADJUST_FIELD_ALIGNMENT): New.
935         (BIGGEST_FIELD_ALIGNMENT): Kill.
937 2002-06-16  Richard Henderson  <rth@redhat.com>
939         * vax.md (casesi): Use emit_jump_insn.  Tidy expander pattern.
941 2002-06-16  Richard Henderson  <rth@redhat.com>
943         * c-common.c (flag_ms_extensions): Move from c++ front end.
944         * c-common.h (flag_ms_extensions): Declare.
945         * c-decl.c (c_decode_option): Add -fms-extensions.
946         (grokfield): Don't accept anonymous structures in ISO C mode;
947         accept only unnamed anonymous structures in GNU C mode; accept
948         Plan 9 extensions in MS mode.
949         * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
950         SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
951         (extension): Clear flag_iso.
952         * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
954 2002-06-16  Hans-Peter Nilsson  <hp@axis.com>
956         PR target/7042
957         * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
958         early if current_function_epilogue_delay_list is non-empty.
959         * config/cris/cris.md ("return"): Add sanity check asserting that
960         current_function_epilogue_delay_list is empty.
962 2002-06-16  Jeff Law <law@redhat.com>
964         * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
965         sharing of hard registers.
967         * toplev.c (rest_of_compilation): Remove redundant conditional.
969         * toplev.c (rest_of_compilation): Perform a simpler, less costly
970         cleanup of the CFG when not optimizing.
972 2002-06-16  Alan Modra  <amodra@bigpond.net.au>
974         * gcc.c (main): Correct startfile_prefix_spec check.
976 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
978         * config.gcc: Revert rth's patch of 2002-05-18.  Instead,
979         include both darwin.o and rs6000-c.o.
981 2002-06-15  Roger Sayle  <roger@eyesopen.com>
983         * expr.c (compare_from_rtx): Call simplify_relational_operation
984         on all comparisons, not just those between integer constants,
985         with the correct (possibly unsigned) comparison code.
986         (do_compare_rtx_and_jump): Likewise.
988 2002-06-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
990         * Makefile.in (tm_defines): New configuration variable.
991         (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
992         Pass tm_defines in TM_DEFINES.
993         (cs-tm_p.h): Rename DEFINES to XM_DEFINES.  Pass TM_DEFINES.
994         * config.gcc (tm_defines): New configuration variable.
995         (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
996         pa-7100.h headers.  Change hppa1* scheduling default to 7100LC.
997         * configure.in: Substitute tm_defines.
998         * configure: Rebuilt.
999         * mkconfig.sh: Rename DEFINES to XM_DEFINES.  Output TM_DEFINES.
1000         * doc/install.texi: Update.
1001         * pa/pa-700.h: Delete file.
1002         * pa/pa-7100.h: Delete file.
1004 2002-06-15  Roger Sayle  <roger@eyesopen.com>
1006         * fold-const.c (comparison_to_compcode): New function to convert
1007         an comparison TREE CODE into a bit-based representation.
1008         (compcode_to_comparison): New function to convert from this bit
1009         based representation back to a comparison TREE CODE.
1010         (fold_truthop): Simplify (x<y) && (x==y) and related composite
1011         comparisons.
1013 2002-06-15  Aldy Hernandez  <aldyh@redhat.com>
1015         * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
1017         * stor-layout.c (compute_record_mode): Remove check for
1018         FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
1019         MEMBER_TYPE_FORCES_BLK.  Pass new mode field to
1020         MEMBER_TYPE_FORCES_BLK.
1022         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
1024         * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
1026 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
1028         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
1030 2002-06-14  Steve Ellcey  <sje@cup.hp.com>
1032         * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
1033         USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
1034         * configure, config.in: Regenerate.
1036 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
1038         * loop.c (check_final_value): Use v->always_executed
1039         instead of v->always_computable.
1040         * unroll.c (final_giv_value): Don't calculate the final
1041         value as a function of the biv if the giv is not computed
1042         for every loop iteration.
1044 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
1046         * loop.c (for_each_insn_in_loop): Fix formatting and comments.
1048 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
1050         PR c/6677
1051         * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
1052         the truncation down when the target type is signed.
1053         [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
1054         * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
1055         the conversion if the target type is a smaller type.
1057 2002-06-14  Richard Henderson  <rth@redhat.com>
1059         * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
1060         earlier.  Re-factor comparisons vs extrema.
1062 2002-06-14  Richard Henderson  <rth@redhat.com>
1064         * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
1066 2002-06-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1068         * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
1069         * sched-deps.c (add_dependence): Likewise.
1070         (group_leader): Likewise.
1071         * sched-rgn.c (init_ready_list): Likewise.
1072         * doc/rtl.texi: Adjust accordingly.
1074 2002-06-13  Jeffrey Law  <law@redhat.com>
1076         * gcse.c (delete_null_pointer_checks_1): Inform caller if any
1077         null pointer checks were eliminated.  Update prototype.
1078         (delete_null_pointer_checks): Similarly.
1079         * rtl.h (delete_null_pointer_checks): Update prototype.
1080         * toplev.c (rest_of_compilation): Only run cleanup_cfg if
1081         delete_null_pointer_checks deletes one or more null
1082         pointer checks.  Do not run cleanup_cfg before gcse, the
1083         CFG is accurate and optimized at that point..
1085         * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
1086         of hard registers.
1088 2002-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
1090         * Makefile.in (libgcc.mk): Depend on specs.
1092 Fri Jun 14 12:15:11 2002  J"orn Rennecke <joern.rennecke@superh.com>
1094         * sh.md (mulsi3): Update way how to find insns in a sequence.
1096 Fri Jun 14 12:04:02 2002  Dhananjay R. Deshpande <dhananjayd@kpit.com>
1098         * sh.h: Define HARD_REGNO_RENAME_OK
1099         * sh.c: sh_hard_regno_rename_ok: New. If current function has
1100         interrupt_handler attribute, only registers saved on stack are OK.
1101         * sh-protos.h: Declare sh_hard_regno_rename_ok.
1103 2002-06-14  Kaz Kojima  <kkojima@gcc.gnu.org>
1105         * config/sh/sh.md (jump): Emit jump insn.
1106         (call_pcrel): Get pattern of the result of gen_call_site.
1107         (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
1109 2002-06-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1111         * cpphash.h (struct cpp_buffer): Remove saved_line_base.
1112         * cpptrad.c: Update comments.
1113         (skip_whitespace, copy_comment): Take a new parameter.
1114         (skip_escaped_newlines): Don't duplicate escaped newline test.
1115         (copy_comment): Different location for CUR, decide here how
1116         to copy / replace the comment.
1117         (skip_whitespace): Copy whitespace.
1118         (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
1119         (scan_out_logical_line): Let copy comment handle keeping or
1120         replacing comments.
1121         (scan_parameters, _cpp_create_trad_definition): Update.
1123 2002-06-13  Alan Lehotsky  <apl@alum.mit.edu>
1125         * reload.c (get_secondary_mem,find_reloads_address,
1126         find_reloads_address_1): Pass reference to MEM to find_reloads_address
1127         so that LEGITIMIZE_RELOAD_ADDRESS will be called.
1129 2002-06-13  Jessica Han  <jessica@cup.hp.com>
1131         * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1132         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1133         * doc/tm.texi: Document them.
1134         * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1135         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1136         (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
1137         (ASM_OUTPUT_FDESC): Likewise.
1139 2002-06-13  Eric Christopher  <echristo@redhat.com>
1141         * diagnostic.c (output_format): Fix thinko.
1143 Thu Jun 13 22:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
1145         * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
1146         (DWARF2_UNWIND_INFO): Define to 0.
1148         * config/sh/sh.c (calc_live_regs): Don't use initial_value
1149         optimization for PR_MEDIA_REG.
1151 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1153         * cpphash.h (_cpp_lex_identifier_trad): Remove.
1154         * cpplib.c (end_directive): Don't skip, always remove overlay
1155         apart from #define.
1156         (prepare_directive_trad): Handle NULL pfile->directive.
1157         (_cpp_handle_directive): Always call prepare_directive_trad
1158         if traditional.
1159         * cppmain.c (check_multiline_token): Rename account_for_newlines,
1160         generalize inputs.
1161         (scan_translation_unit_trad): Use it.
1162         * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
1163         output, get escaped newline in comment close correct.
1164         (check_output_buffer, skip_whitespace): Update.
1165         (_cpp_lex_identifier_trad): Remove.
1166         (scan_out_logical_line): Handle -C and comments in directives
1167         properly.
1169 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
1171         * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
1172         * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1173         * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
1174         (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
1175         (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
1176         (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
1177         (SELECT_SH5_COMPACT_NOFPU): Likewise.
1178         (TARGET_SWITCHES): Use them.
1179         (TARGET_CPU_DEFAULT): Define if not already defined.
1180         (TARGET_DEFAULT): Use it.
1181         (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
1182         * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
1183         * config/sh/t-monolib: New file.
1185 2002-06-13  Roger Sayle  <roger@eyesopen.com>
1187         * toplev.c (rest_of_compilation): Simplify (and correct) the
1188         logic of the first delete-null-pointer-checks pass.
1190 Thu Jun 13 18:24:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
1192         * i386.c (ix86_expand_movstr):  Fix pasto.
1194 Thu Jun 13 18:18:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
1196         * reload.c (find_valid_class):  Fix thinko in my previous patch.
1198 2002-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
1200         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
1201         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
1202         (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
1203         (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
1205 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
1207         * tree-inline.c (expand_call_inline): Don' mess with _DECL
1208         fields.
1210 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
1212         * diagnostic.c (output_format): Recognize "%H" as a format
1213         specifier for a location_t.
1214         (text_specifies_location): New function.
1215         (diagnostic_set_info): Use it.
1217 2002-06-13  Jeffrey Law  <law@redhat.com>
1219         * emit-rtl.c (static_regno_reg_rtx): Define.
1220         (init_emit_once): Initialize static_regno_reg_rtx.
1221         (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
1222         of building new hard reg objects once per function.
1223         (gen_rtx_REG): Try to share hard regs.
1224         * regclass.c (init_fake_stack_mems): New function broken out from
1225         init_regs.
1226         * rtl.h (init_fake_stack_mems): Declare.
1227         * toplev.c (lang_independent_init): Call init_regs before
1228         init_emit_once.  Call init_fake_stack_mems after init_emit_once.
1230         * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
1232         * alias.c (argument_registers): Remove.
1233         (init_alias_once): Initialize static_reg_base_value here.  Remove
1234         initialization of argument_registers.
1235         (init_alias_once_per_function): Remove.
1236         (init_alias_analysis): Copy all the entries from static_reg_base_value
1237         into new_reg_base_value all at once.
1238         * rtl.h (init_alias_once_per_function): Remove declaration.
1239         * function.c (prepare_function_start): Do not call
1240         init_alias_once_per_function.
1242         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
1243         starting a sequence and emitting an INSN.
1245 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
1247         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
1249 2002-06-13  David S. Miller  <davem@redhat.com>
1251         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
1253 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1255         * cpplib.c (end_directive): Handle line skipping.  Only remove
1256         the rest of the line if the directive was valid.
1257         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
1258         expanding a traditional macro.
1259         * cpptrad.c (recursive_macro): New.
1260         (read_logical_line_trad): Handle skipping.
1261         (scan_out_logical_line): Continue after a successful directive.
1262         Don't expand macros whilst skipping, or if recursing.
1263         (_cpp_create_trad_definition): scan_out_logical_line now sets
1264         the output current position.
1266 2002-06-12  Eric Christopher  <echristo@redhat.com>
1268         From Chris Demetriou  <cgd@broadcom.com>
1269         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
1270         comment.
1271         (ISA_HAS_MADD_MSUB): Ditto.
1272         (ISA_HAS_NMADD_NMSUB): Ditto.
1274 2002-06-12  Eric Christopher  <echristo@redhat.com>
1276         * config.gcc: Consolidate little endian handling and
1277         little/big endian targets.
1278         * config/mips/elfl.h: Remove file.
1279         * config/mips/elfl64.h: Ditto.
1280         * config/mips/ecoffl.h: Ditto.
1281         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
1283 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
1285         * gengtype.h (xvasprintf): New prototype.
1286         (xasprintf): New prototype.
1287         (struct outf): New.
1288         (get_output_file): Return an outf_p.
1289         (header_file): Is now an outf_p.
1290         (base_files): Now are outf_p.
1291         (oprintf): New.
1292         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
1293         rather than stdio operations.  Use xasprintf in a few places,
1294         when appropriate.
1295         (xvasprintf): New.
1296         (xasprintf): New.
1297         (struct filemap): Delete.
1298         (files): Delete.
1299         (output_files): New.
1300         (oprintf): New.
1301         (create_file): Create an outf_p.  Add parameter to indicate output
1302         file name, change all callers.
1303         (open_base_files): Create gtype-desc.c here.
1304         (get_output_file_with_visibility): Rewrite.
1305         (get_output_file_name): Just look at 'name' field in struct outf.
1306         (close_output_files): Rewrite.
1308 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
1310         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
1311         (MASK_G_FLOAT): Define.
1312         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
1313         (TARGET_SWITCHES): Likewise.
1314         (TARGET_DEFAULT): Likewise.
1316 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
1318         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
1319         * config/mips/mips.c (mips_output_filename): Don't print a
1320         ".file" directive if we are using DWARF-2.
1321         (mips_output_function_prologue): Do not emit source file
1322         name for TARGET_GAS.
1324 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
1326         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
1327         decide whether emit the short opcode.
1328         * i386.h (x86_shift1): Declare.
1329         (TARGET_SHIFT1): New macro.
1330         * i386.c (x86_shift1): New global variable.
1332         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
1333         unconditionally; make loop to rebuild CFG; kill unnecesary
1334         find_basic_block calls; kill compute_bb_for_insn call.
1335         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
1336         * haifa-sched.c (sched_init): Likewise.
1337         * ssa-ccp.c (ssa_const_prop): Likewise.
1338         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1340 2002-06-11  David S. Miller  <davem@redhat.com>
1342         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
1343         active_insn_p.
1345 2002-06-11  Richard Henderson  <rth@redhat.com>
1347         * c-common.c (builtin_define_type_max): New.
1348         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
1349         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
1351         From Joseph S. Myers:
1352         * glimits.h: Rewrite to expect the double underscore definitions
1353         from the compiler.
1355         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
1356         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
1357         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
1358         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
1359         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
1360         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
1361         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
1362         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
1364 2002-06-11  Richard Henderson  <rth@redhat.com>
1366         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
1367         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
1368         (code_for_builtns): Update.
1369         (alpha_init_builtins): Add __builtin_thread_pointer and
1370         __builtin_set_thread_pointer.
1371         (alpha_expand_builtin): Handle void builtins.
1372         * doc/extend.texi (Alpha Built-in Functions): Update.
1374 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
1376         PR target/6997
1377         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
1379 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
1381         * config.gcc: Make the name of the extra-modes file adjustable
1382         by target stanzas.
1383         (s390x, strongarm, xscale stanzas): Use this facility.
1384         * configure.in: Update to match.
1385         * configure: Regenerate.
1387 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
1389         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
1390         max/mins as unsigned GE compares.
1392 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
1394         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
1395         * config/vax/bsd.h: New file.
1396         * config/vax/netbsd.h: Add missing notice.
1397         (CPP_PREDEFINES): Remove.
1398         (TARGET_OS_CPP_BUILTINS): Define.
1399         (CPP_SPEC): Use NETBSD_CPP_SPEC.
1400         * config/vax/openbsd.h: Update copyright years.
1401         (CPP_PREDEFINES): Remove.
1402         (TARGET_OS_CPP_BUILTINS): Define.
1403         * config/vax/ultrix.h: Likewise.
1404         * config/vax/vaxv.h: Likewise.
1405         * config/vax/vms.h: Likewise.
1406         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
1407         (CPP_PREDEFINES, CPP_SPEC): Remove.
1409 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
1411         * i386.md (addqi_1_slp, subqi_1_slp
1412         (andqi_ext0, testqi_ext0): Remove unnecesary check.
1413         (addhi*, addqi*): Simplify "dec" condition.
1414         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
1415         (and, or, xor to QImode splitters): New.
1416         (iorqi_ext*): New.
1417         (xorqi_ext_0): New.
1418         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
1419         (andqi_ext_1_rex64): New.
1420         (ashrqi*_slp): New.
1421         (ashlqi*_slp): New.
1422         (lshlqi*_slp): New.
1423         (rotrqi3*_slp): New.
1424         (rotlqi3*_slp): New.
1426 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
1428         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
1429         softfloat.h.
1430         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
1431         (CPP_ENDIAN_LITTLE_SPEC): Delete.
1432         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
1433         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
1434         __LONG_DOUBLE_128__ setting, _CALL_* setting.
1435         (CPP_DEFAULT_SPEC): Delete.
1436         (CPP_FLOAT_DEFAULT_SPEC): Delete.
1437         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
1438         (CPP_SYSV_DEFAULT_SPEC): Delete.
1439         (CPP_ENDIAN_BIG_SPEC): Delete.
1440         (CPP_ENDIAN_LITTLE_SPEC): Delete.
1441         (CPP_ENDIAN_SPEC): Delete.
1442         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
1443         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
1444         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
1445         cpp_longdouble_default.
1446         * config/rs6000/softfloat.h: Delete.
1447         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
1448         (EXTRA_SPECS): Delete cpp_cpu.
1449         (TARGET_CPU_CPP_BUILTINS): New.
1450         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
1451         prototype.
1452         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
1453         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
1454         (CPP_DEFAULT_SPEC): Delete.
1455         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
1456         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
1457         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
1458         (CPP_DEFAULT_SPEC): Delete.
1459         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1460         (CPLUSPLUS_CPP_SPEC): Likewise.
1461         (CPP_CPU_SPEC): Delete.
1462         (CPP_DEFAULT_SPEC): Delete.
1463         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1464         (CPLUSPLUS_CPP_SPEC): Likewise.
1465         (CPP_CPU_SPEC): Delete.
1466         (CPP_DEFAULT_SPEC): Delete.
1467         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
1468         (CPP_DEFAULT_SPEC): Delete.
1469         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
1470         (CPP_DEFAULT_SPEC): Delete.
1472         * doc/gty.texi: Small updates.
1474 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
1476         * objc/objc-act.c (warn_with_ivar): Adjust calls to
1477         diagnostic_count_error.
1478         (warn_with_method): Likewise.
1480         * diagnostic.h (warnings_are_errors_message): New field of
1481         diagnostic_context.
1482         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
1483         match semantics.
1484         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
1485         (diagnostic_count_diagnostic): Make aware of other kinds of
1486         diagnostics.
1487         (diagnostic_initialize): Initialize warnings_are_errors_message field.
1489 2002-06-11  Tom Tromey  <tromey@redhat.com>
1491         For PR java/6520:
1492         * fold-const.c (fold_convert): Don't modify existing tree's type.
1494 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
1496         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
1498 2002-06-11  Richard Henderson  <rth@redhat.com>
1500         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
1502 2002-06-11  Richard Henderson  <rth@redhat.com>
1504         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
1505         DWARF2_UNWIND_INFO is false.
1507 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
1509         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
1511         * config/s390/s390.c (emit_prologue): gen_store_multiple
1512         returns an insn now, not a pattern.
1514 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1516         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
1517         $(TEXI2DVI) -o.
1519 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
1521         * i386.c (x86_promote_QImode): Set for Athlon
1522         (x86_fast_prefix): New global variable.
1523         (x86_arch_always_fancy_math_387): Fix formating.
1524         * i386.h (x86_fast_prefix): Declare
1525         (TARGET_FAST_PREFIX): define.
1526         * i386.md (and to strict_low_part, HI to SI
1527         promoting splitter): Use new macro.
1529         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
1531 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
1533         * Makefile.in (distclean): Delete junk left in testsuite
1534         directory, too.
1536 2002-06-11  Jeffrey Law <law@redhat.com>
1538         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
1539         last insn created by the splitter.
1541         * caller-save.c (init_caller_save): Move creation of SAVEINSN
1542         and RESTINSN into into the scope of the sequence.
1544         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
1545         RETURN insns.
1547         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
1549         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
1550         not the pattern.  So extract the pattern from the insn.
1552         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
1554 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
1556         * config/s390/s390.md (movsi): Only use floating point
1557         register alternatives when operands are already fprs.
1558         (movdi_31, movdi_64): Likewise.
1560 2002-06-11  David S. Miller  <davem@redhat.com>
1562         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
1563         Only run RTX equality checks on INSN_P rtl.
1565 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
1567         * config/s390/s390.md (reload_base, ltorg): Remove.
1568         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
1569         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
1570         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
1571         s390_asm_output_pool_prologue): Likewise.
1572         * s390.h (s390_pool_start_insn): Likewise.
1574         * s390.c (s390_output_symbolic_const): Remove support for
1575         old-style pool chunks.
1576         (s390_function_epilogue): Likewise.
1577         (s390_output_constant_pool): Likewise.  Also, fix incorrect
1578         alignment for 64-bit literal pools.
1579         (print_operand_address): Remove 'y' and 'Y' format flags.
1580         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
1581         old-style pool chunks.
1582         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
1583         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
1584         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
1586         * s390.c (consttable_operand): New function.
1587         * s390-protos.h (consttable_operand): Declare it.
1588         * s390.h (PREDICATE_CODES): Add consttable_operand.
1589         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
1590         consttable_sf, consttable_df, pool_start_31, pool_end_31,
1591         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
1592         * s390.c (struct constant, struct constant_pool): New data types.
1593         (constant_modes, gen_consttable): New variables.
1594         (s390_start_pool, s390_end_pool, s390_add_pool,
1595         s390_dump_pool, s390_free_pool): New functions.
1596         (s390_chunkify_pool): Completely reimplement literal pool
1597         overflow handling.
1599         * s390.c (s390_pool_overflow): New variable.
1600         * s390.h (s390_pool_overflow): Declare it.
1601         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
1602         jumps in literal pool overflow situations.
1604         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
1605         (s390_frame_info): Account for possible use of RETURN_REGNUM
1606         by new literal pool overflow code.
1607         (s390_emit_prologue): Likewise.
1609 2002-06-05  David S. Miller  <davem@redhat.com>
1611         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
1612         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
1613         emit_insns_before_scope, emit_insns_after,
1614         emit_insns_after_scope): Delete declaration.
1615         * ada/misc.c (insert_code_for): Use emit_insn* instead of
1616         emit_insns_foo.
1617         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
1618         (alpha_set_memflags): Fix comment.
1619         (set_frame_related_p): Use get_insns instead of gen_sequence.
1620         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
1621         emitting no insns.
1622         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
1623         gen_sequence.
1624         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
1625         * config/fr30/fr30.c (fr30_move_double): Likewise.
1626         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
1627         Likewise.
1628         * config/ia64/ia64.c (spill_restore_mem): Likewise.
1629         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
1630         no insns.
1631         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
1632         instead of gen_sequence.
1633         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
1634         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
1635         * config/sh/sh.c (sh_need_epilogue): Likewise.
1636         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
1637         attributes.
1638         (setjmp pattern and split): Use them to avoid splitter which emits
1639         no RTL.
1640         * genattrtab.c (main): Emit include of function.h
1641         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
1642         get_insns instead of gen_sequence.
1643         * config/cris/cris.c (cris_split_movdx): Likewise.
1644         * emit-rtl.c (emit_insns*): Kill.
1645         (try_split): Expect insn list instead of SEQUENCE.
1646         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
1647         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
1648         Make them abort if a SEQUENCE is given and RTL checking is
1649         enabled.
1650         (emit_*_scope): Don't forget to set scope on final insn.
1651         (gen_sequence): Move from here...
1652         * ssa.c (gen_sequence): To here as private function.
1653         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
1654         comments.
1655         (expand_builtin_return, expand_builtin_mathfn): Likewise.
1656         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
1657         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
1658         (expand_builtin_expect_jump): Use get_insns and fix comments.
1659         * calls.c (try_to_integrate): Use emit_insn_foo.
1660         (expand_call, emit_library_call_value_1): Likewise.
1661         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
1662         (emit_move_insn_1): Use get_insns instead of gen_sequence.
1663         (expand_expr): Use emit_insn_foo.
1664         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
1665         * except.c (build_post_landing_pads): Likewise.
1666         * flow.c (attempt_auto_inc): Likewise.
1667         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
1668         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
1669         * function.c (fixup_var_refs_insn): Use get_insns instead of
1670         gen_sequence.
1671         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
1672         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
1673         (fixup_stack_1, purge_addressof_1, expand_main_function,
1674         get_arg_pointer_save_area): Likewise.
1675         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
1676         expand_function_end): Use emit_insn_foo.
1677         (record_insns, keep_stack_depressed): Work with insn list instead
1678         of SEQUENCE, fix comments.
1679         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
1680         noce_try_store_flag_constants, noce_try_store_flag_inc,
1681         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
1682         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
1683         (noce_process_if_block): Use get_insns instead of gen_sequence.
1684         * optabs.c (add_equal_note): Work with insn list, fix comments.
1685         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
1686         (expand_unop, expand_complex_abs, expand_unop_insn,
1687         expand_no_conflict_block): Likewise.
1688         (gen_move_insn): Use get_insns instead of gen_sequence.
1689         (gen_cond_trap): Likewise.
1690         * integrate.c (copy_rtx_and_substitute): Likewise.
1691         (emit_initial_value_sets): Use emit_insn_foo.
1692         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
1693         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
1694         now that RTL generators give insn lists.
1695         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
1696         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
1697         instead of gen_sequence.
1698         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
1699         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
1700         instead of gen_sequence.
1701         * loop.c (move_movables, emit_prefetch_instructions,
1702         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
1703         Likewise.
1704         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
1705         (product_cheap_p): Likewise, and add commentary about RTL wastage
1706         here.
1707         * lcm.c (optimize_mode_switching): Use get_insns instead of
1708         gen_sequence.
1709         * profile.c (gen_edge_profiler): Likewise.
1710         * regmove.c (copy_src_to_dest): Likewise.
1711         * reg-stack.c (compensate_edge): Likewise and fix comment.
1712         * gcse.c (process_insert_insn): Likewise.
1713         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
1714         * jump.c (delete_prior_computation): Update comment.
1715         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
1716         of gen_sequence, update comments to match.
1717         * recog.c (peephole2_optimize): Work with insn lists instead of
1718         SEQUENCE rtl.
1719         * sched-vis.c (print_pattern): Abort on SEQUENCE.
1720         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
1721         Use get_insns instead of gen_sequence.
1722         (copy_loop_body): Likewise and don't emit dummy NOTE.
1723         * genrecog.c: Don't mention SEQUENCE rtl in comments.
1724         * combine.c (try_combine): Expect insn lists from split generator.
1725         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
1726         hand.
1728 2002-06-11  Roger Sayle  <roger@eyesopen.com>
1729             Andreas Jaeger <aj@suse.de>
1731         * cfgbuild.c: Update copyright years.
1733 2002-06-11  Andreas Schwab  <schwab@suse.de>
1735         * config/m68k/m68k.h (PREDICATE_CODES): Define.
1737 2002-06-11  Eric Christopher  <echristo@redhat.com>
1739         * doc/tm.texi (Run-time Target): Add comment about flag_iso
1740         and strict ANSI.
1741         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
1742         * config/mips/ecoffl.h: Ditto.
1743         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
1744         (CPP_PREDEFINES): Ditto.
1745         * config/mips/elfl64.h: Ditto.
1746         * config/mips/elfl.h: Ditto.
1747         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
1748         out until irix header consolidation.
1749         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
1750         with SUBTARGET_OS_CPP_BUILTINS.
1751         * config/mips/iris6.h: Ditto.
1752         (CPLUSPLUS_CPP_SPEC): Remove.
1753         * config/mips/linux.h: Ditto.
1754         * config/mips/netbsd.h: Ditto.
1755         * config/mips/openbsd.h: Ditto.
1756         * config/mips/rtems.h: Ditto.
1757         * config/mips/rtems64.h: Ditto.
1758         * config/mips/sni-svr4.h: Ditto.
1759         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
1760         ISA_MIPS32, ISA_MIPS64): New defines.
1761         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
1762         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
1763         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1764         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
1765         (TARGET_CPU_CPP_BUILTINS): Define.
1766         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
1767         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
1768         (movdicc): Remove check for ISA_MIPS32.
1769          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
1770         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
1771         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
1772         sunge_sf, sunle_df, sunle_sf): New patterns.
1774 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
1776         * Makefile.in: Update cppmain.o.
1777         * cpphash.h (struct cpp_reader): Move some members to a
1778         nested structure.
1779         (trad_line): Rename saved_line.
1780         (_cpp_read_logical_line_trad): Update.
1781         (_cpp_remove_overlay): New.
1782         * cppinit.c (cpp_create_reader): No need to set saved_line.
1783         (cpp_destroy): Update.
1784         (cpp_read_main_file): Only overlay if compiling.
1785         * cpplex.c (continue_after_nul): Return false if in directive.
1786         * cpplib.c (EXPAND): New.
1787         (directive_table, SEEN_EOL): Update.
1788         (end_directive): Remove overlay if traditional; don't skip
1789         line in traditional #define.
1790         (prepare_directive_trad): New.
1791         (_cpp_handle_directive, run_directive): Update for traditional
1792         directives.
1793         (lex_macro_node): Simplify, don't use lex_identifier_trad.
1794         * cpplib.h (struct options): Add preprocess_only.
1795         * cppmain.c: Don't include intl.h.
1796         (cpp_preprocess_file): Set options->preprocess_only.
1797         (scan_translation_unit_trad): Fix, and print line numbers.
1798         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
1799         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
1800         save_replacement_text, _cpp_create_trad_definition): Update for
1801         variable renaming.
1802         (_cpp_overlay_buffer): Save line number.
1803         (_cpp_remove_overlay): Rename from restore_buff, restore line.
1804         (_cpp_read_logical_line_trad): Don't handle overlays here.
1805         (scan_out_logical_line): Process directives.
1807 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
1809         * gthr-win32.h: Wrap functions in extern "C".
1810         (__gthread_key_t): Typedef as unsigned long,
1811         not win32 DWORD.
1812         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
1813         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
1814         (__gthr_win32_once, __gthr_win32_key_create,
1815         __gthr_win32_key_delete, __gthr_win32_getspecific,
1816         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
1817         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
1818         __gthr_win32_mutex_unlock): Declare.
1819         (__gthread_once,__gthread_key_create,
1820         __gthread_key_delete, __gthread_getspecific,
1821         __gthread_setspecific, __gthread_mutex_init_function,
1822         __gthread_mutex_lock,__gthread_mutex_trylock,
1823         __gthread_mutex_unlock): Call corresponding
1824         __gthr_win32_* extern implementations if #defined
1825         __GTHREAD_HIDE_WIN32API.
1826         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
1827         $(srcdir)/config/i386/gthr-win32.c
1828         * config/i386/gthr-win32.c: New implementation file.
1829         (__gthr_win32_once, __gthr_win32_key_create,
1830         __gthr_win32_key_delete, __gthr_win32_getspecific,
1831         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
1832         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
1833         __gthr_win32_mutex_unlock): New functions, based on
1834         static inlines in gthr-win32.h.
1836 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
1838         * config/xtensa/xtensa.c (override_options): Don't warn about
1839         using -fpic or -fPIC when PIC is enabled by default.
1841 2002-06-10  Roger Sayle  <roger@eyesopen.com>
1843         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
1845 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
1847         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
1848         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
1849         exists, substitute its pathname as @extra_modes_file@, define
1850         EXTRA_MODES_FILE to be an appropriate string to #include it
1851         with, and define EXTRA_CC_MODES to 1.
1853         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
1854         it's defined.  Get rid of redundancy in calling sequence for
1855         CC; don't use it to define CCmode, to avoid a warning.
1856         * libgcc2.c: Include symcat.h for the sake of machmode.def.
1858         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
1859         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
1860         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
1861         New files.
1862         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
1863         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
1865         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
1866         defining extra CC modes.
1868 2002-06-10  Roger Sayle  <roger@eyesopen.com>
1869             Andreas Jaeger <aj@suse.de>
1871         * cfgrtl.c (create_basic_block_structure):  Remove index argument
1872         and use last_basic_block++ instead.  (create_basic_block): Update.
1873         * cfgbuild.c (find_basic_blocks_1): Likewise.
1875         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
1876         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
1877         * sched-ebb.c (schedule_ebbs): Likewise.
1878         * sched-rgn.c (schedule_insns): Likewise.
1879         * ssa-ccp.c (ssa_const_prop): Likewise.
1880         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
1881         * toplev.c (rest_of_compilation): Likewise.
1882         * config/ia64/ia64.c (ia64_reorg): Likewise.
1884 2002-06-10  Roger Sayle  <roger@eyesopen.com>
1886         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
1887         of matching registers.
1889 2002-06-10  Roger Sayle  <roger@eyesopen.com>
1891         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
1892         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
1894 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
1896         * config/mmix/mmix.h: Improve comments.
1897         (CPP_SPEC, CPP_PREDEFINES): Don't define.
1898         (TARGET_CPU_CPP_BUILTINS): Define.
1899         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
1900         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
1901         unused predicate.
1902         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
1903         compiler warning.
1904         (mmix_constant_address_p): Remove another
1905         redundant test before case.
1906         (mmix_canonicalize_comparison): Remove unused function.
1907         (mmix_print_operand_address): Don't test and adjust for operand in
1908         non-canonical format.
1909         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
1910         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
1912 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
1914         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
1915         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
1916         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
1917         (gen_compare): Use CCmode unconditionally.
1919 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
1921         PR optimization/6759
1922         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
1923         the REQ_EQUAL note.
1925 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
1927         PR c/6660
1928         * c-decl.c (grokfield): Allow user defined types if they declare
1929         structs or unions for unnamed fields.
1931 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
1933         PR c/6809
1934         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
1936 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
1938         PR optimization/6842
1939         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
1940         operand subreg cannot be simplified.
1942 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
1944         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
1945         (compare_constant): Likewise.
1946         (output_addressed_constants): Likewise.
1948 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
1950         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
1951         merge bb with itself.
1953 2002-06-10  Richard Henderson  <rth@redhat.com>
1955         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
1956         (builtin_zapnot): Likewise.
1958         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
1959         reservation.
1961 2002-06-10  Eric Christopher  <echristo@redhat.com>
1963         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
1964         prototype and function.
1965         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
1966         (call_insn_operand): Remove half pic references.
1967         (legitimate_address_p): Ditto.
1968         * config/i386/i386.h: Remove half pic defines.
1970 2002-06-10  Eric Christopher  <echristo@redhat.com>
1972         * doc/extend.texi (Return Address): Add note explaining the side-
1973         effects of inlining on __builtin_return_address.
1975 2002-06-10  Tom Tromey  <tromey@redhat.com>
1977         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
1978         (c-common.o): Depend on langhooks.h.
1980 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
1982         * cpphash.h (_cpp_read_logical_line_trad,
1983         _cpp_expansions_different_trad): Update prototypes.
1984         * cpplex.c (continue_after_nul): New.
1985         * cppmain.c: Include cpphash.h.
1986         (scan_translation_unit_trad): New.
1987         (cpp_preprocess_file): Call it.
1988         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
1989         overlay.
1990         (_cpp_expansions_different_trad): Update prototype.
1992 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
1994         Fix cfi generation for SH[1-4]:
1996         * sh.c (frame_insn): New function.
1997         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
1998         (push): Now returns rtx.  Use frame_insn.
1999         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
2000         of a DF register.
2001         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
2003 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
2005         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
2006         and gtype-desc.c.
2007         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
2008         (distclean): ... not here.  But do delete all testsuite/*.log,
2009         testsuite/*.sum files here.  Delete mkheaders.  Delete
2010         po/*.gmo and the testsuite directory in a split tree build.
2012 2002-06-10  Jeffrey Law  <law@redhat.com>
2014         * alias.c (static_reg_base_value): New to hold RTL for
2015         items allocated once per function for the aliasing code.
2016         (init_alias_once_per_function): Initialize static_reg_base_value.
2017         (init_alias_analysis): Avoid throw-away allocations of RTL by
2018         using pre-computed values in static_reg_base_value.
2019         * function.c (prepare_function_start): Call
2020         init_alias_once_per_function appropriately.
2021         * rtl.h (init_alias_once_per_function): Declare.
2022         * caller-save (init_caller_save): Restructure slightly to
2023         avoid lots of silly RTL generation.
2024         * expr.c (init_expr_once): Likewise.
2025         * reload1.c (reload_cse_regs_1): Allocate throw-away register
2026         RTL object here.  Pass it into children.
2027         (reload_cse_simplify_operands): Use passed-in register RTL
2028         object.
2029         (reload_cse_simplify): Pass through throw-away register
2030         RTL object.
2032 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
2034         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
2036 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
2038         * gcc.c (process_command): Avoid assignment to read-only location.
2039         Fix sizeof calculation.
2041 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
2043         * cpphash.h (struct cpp_macro): Put comments on their own lines.
2044         (_cpp_expansions_different_trad): New.
2045         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
2046         * cpptrad.c (canonicalize_text): New.
2047         (scan_out_logical_line): Handle no arguments correctly.
2048         (save_replacement_text): Commit memory when finished.
2049         (_cpp_expansions_different_trad): New.
2051 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2053         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
2054         TREELANG and COBOL.
2055         (lang_names): Add treelang and cobol.
2056         (get_file_basename): Add code to support treelang and cobol as
2057         4th and 5th users of c-common.c.
2059 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
2061         * Makefile.in (install-driver): Install driver as
2062         $(target_alias)-gcc-$(version).
2063         * gcc.c (spec_version): Make const.
2064         (process_command): Handle -V and -b by using exec.
2065         * doc/invoke.texi (Target Options): Restore -V option,
2066         update docs for -b option.
2068 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2070         * configure.in (remaining_languages_check):
2071         Added check that all languages specified were found.
2072         Exit if not found. Previous behaviour was silent failure.
2073         * configure: Regenerated.
2075 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2077          First steps to making treelang documentation compliant, based on
2078          instructions in sourcebuild.texi. Also add to gcc.c list of
2079          default languages.
2081         * doc/contrib.texi: Add self as contributor of treelang.
2083         * doc/frontends.texi: Add mention of treelang.
2085         * doc/invoke.texi (Overall Options): Add mention of treelang.
2087         * doc/standards.texi:  Add mention of treelang.
2089 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
2091         * config/cris/cris.c: Include ggc.h
2093 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2095         * cpphash.h (_cpp_push_text_context): Update.
2096         (_cpp_arguments_ok): New.
2097         * cppmacro.c (_cpp_arguments_ok): New, split out from...
2098         (collect_args): ...here.
2099         (_cpp_push_text_context): Change inputs.
2100         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
2101         replace_args_and_push): New.
2102         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
2103         Don't use IS macros directly.
2104         (scan_out_logical_line): Handle function-like macro argument
2105         collection.
2106         (push_replacement_text): Update.
2107         (replacement_length): Remove.
2108         (_cpp_create_trad_definition): Don't skip whitespace before
2109         checking for '('.
2111 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2113         * config/avr/avr.c (avr_mcu_types): Update for new devices.
2114         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
2115         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
2116         * config/avr/avr.md ("type" and "length" attributes): New type
2117         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
2118         output a single "call" or "rcall" insn depending on device size.
2119         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
2121 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
2123         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
2124         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
2125         assembler option.
2126         (CPP_CPU_SPEC): Add power3 and power4.
2127         (PROCESSOR_DEFAULT): Change to 604e.
2128         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
2129         (CPP_CPU_SPEC): Similar additions.
2130         (enum process_type): Add POWER4.
2131         (RTX_COSTS): Add POWER4.
2132         (CPP_CPU_SPEC): Similar additions.
2133         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
2134         (PROCESSOR_DEFAULT64): Define.
2135         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
2136         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
2137         branch adjustment.
2138         (rs6000_issue_rate): Add Power4.
2139         * config/rs6000/rs6000.md (cpu attr): Add power4.
2140         (iu compare): Remove 604, 604e, 620, 630.
2141         Add basic Power4 scheduling information.
2142         (mfcr/mtcrf): Change type attribute to cr_logical.
2144 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2146         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
2147         ATTRIBUTE_PRINTF_2.
2148         * gengtype-lex.l: Fix format specifier warning.
2150         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
2151         not isspace.
2152         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
2153         lieu of isspace/IDchar.
2154         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
2155         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
2156         ISSPACE.
2158 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
2160         * Makefile.in (LIBCPP_OBJS): Take out version.o.
2161         * cpphash.h (cpp_reader): Take out print_version member.
2162         * cppinit.c: (cpp_handle_option): Don't do anything with
2163         -version.  Just set help_only for --version, --target-help.
2164         Just set verbose option for -v.
2165         (cpp_post_options): Don't print a version string.
2167 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2169         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
2170         (avr_section_type_flags): New, handle .noinit* sections.
2172 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2174         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
2175         and include netbsd_entry_point.
2176         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
2177         (NETBSD_ENTRY_POINT): Define.
2179 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2181         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
2182         if not already defined.
2183         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
2185 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2187         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
2188         in a noreturn function.
2189         (avr_output_function_prologue, avr_output_function_epilogue):
2190         Correct function size calculation.  Do not crash on empty function.
2191         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
2193 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2195         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
2196         netbsd_link_spec and netbsd_entry_point.
2197         (LINK_SPEC): Use %(netbsd_link_spec).
2198         (NETBSD_ENTRY_POINT): Define.
2200 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2202         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
2203         linker emulation.
2204         (LINK_ARCH64_SPEC): Likewise.
2205         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
2206         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
2208 2002-06-08  Marc Espie  <espie@openbsd.org>
2210         * lists.c (free_list):  Fix typo in comment.
2212 2002-06-08  Andreas Jaeger  <aj@suse.de>
2214         * lcm.c (optimize_mode_switching): Add unused attribute for
2215         variable.
2217         * sched-deps.c (sched_analyze): Remove unused variable.
2219 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
2221         * diagnostic.def: Don't capitalize diagnostict descriptors.
2223 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2225         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
2226         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
2227         (NETBSD_ENTRY_POINT): Define.
2229 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2231         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
2232         NETBSD_LINK_SPEC_ELF.
2233         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
2234         (NETBSD_ENTRY_POINT): Define.
2235         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
2236         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
2237         netbsd_entry_point.
2238         (NETBSD_ENTRY_POINT): Define.
2240 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2242         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
2243         netbsd_link_spec and netbsd_entry_point.
2244         (LINK_SPEC): Use %(netbsd_link_spec).
2245         (NETBSD_ENTRY_POINT): Define.
2247 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2249         * config/netbsd-elf.h (LINK_SPEC): Rename to...
2250         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
2251         to specify program entry point.
2253 2002-06-07  Jeff Law <law@redhat.com
2255         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
2256         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
2257         than creating a new register.
2258         (distribute_notes): Likewise.
2259         * df.c (df_reg_use_gen): Likewise.
2260         (df_reg_clobber_gen): Likewise.
2261         (df_ref_record): Likewise.
2262         * expr.c (use_regs): Likewise.
2263         * flow.c (propagate_one_insn): Likewise.
2264         (mark_set_1): Likewise.
2265         (mark_used_reg): Likewise.
2266         * reload.c (emit_reload_insns): Likewise.
2268 2002-06-07  Roger Sayle  <roger@eyesopen.com>
2270         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
2271         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
2272         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
2273         comparison code comp can be reversed.
2275 2002-06-07  Roger Sayle  <roger@eyesopen.com>
2277         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
2278         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
2279         equivalent x > -1.0 when -ffast-math.
2281 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2283         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
2284         * config/mips/t-netbsd: New file.
2286 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
2288         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
2289         options their own entries.
2290         (parse_option): Clarify comment.
2291         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
2292         special case.  Replace if/strcmp chain for -W options with
2293         use of new OPT_* entries for them.
2294         (cpp_handle_options): Update to match.
2295         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
2296         * c-decl.c: Update call to cpp_handle_option.
2298 2002-06-07  Akim Demaille  <akim@epita.fr>
2300         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
2301         Whitespace changes.
2303 2002-06-07  Jeffrey Law  <law@redhat.com>
2305         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
2306         on empty lists.
2308 2002-06-07  H.J. Lu  (hjl@gnu.org)
2310         * configure.in: Add --enable-__cxa_atexit.
2311         * configure: Regenerated.
2312         * config.in: Likewise.
2314         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
2315         not defined.
2317 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
2319         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
2321 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2323         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
2325 2002-06-07  Jason Merrill  <jason@redhat.com>
2327         * cppexp.c (num_equality_op): Use a temporary variable to work
2328         around gcc 3.0.4 bug.
2330 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
2332         * diagnostic.c (diagnostic_build_prefix): Tidy.
2334 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
2336         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
2337         scan_parameters, save_replacement_text, replacement_length): New.
2338         (scan_out_logical_line): Take a macro and save parameters if
2339         non-NULL.
2340         (_cpp_logical_line_trad): Update.
2341         (_cpp_create_trad_definition): Update to handle function-like
2342         macros.
2343         * cpplex.c (new_buff): Update.
2344         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
2345         * cpphash.h: ...here.
2346         (CPP_ALIGN2, _cpp_save_parameter): New.
2347         * cppmacro.c (save_parameter): Rename, export.
2348         (parse_params): Update.
2350 2002-06-07  Andreas Jaeger  <aj@suse.de>
2352         * config/mmix/mmix.c: Remove extra broken prototype for
2353         mmix_init_machine_status.
2355 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
2357         * gengtype.c: Add comments before all the routines.
2359 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2361         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
2362         from and add t-sh64 to ${tmake_file}.
2363         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
2364         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
2365         * config/sh/t-netbsd-sh5-32: Remove.
2366         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
2367         MULTILIB_ENDIAN.
2368         (MULTILIB_DIRNAMES): Define.
2370 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
2372         * i386.md (and promoting splitters): Disable QI to SImode promoting
2373         when doing so changes immediate to be 32bit.
2375         * rtl.h (emit_*_scope): Declare.
2376         * emit-rtl.c (emit_*_scope): New global functions.
2377         (try_split): Copy scope.
2378         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2379         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2380         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
2381         noce_process_if_block, find_cond_trap): Copy scopes.
2382         * recog.c (peephole2_optimize): likewise.
2384 2002-06-06  Jeffrey Law  <law@redhat.com>
2386         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
2388 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
2390         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
2392 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2394         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
2395         ($(docdir)/gccinstall.info): New target.
2396         (info): Depend on it.
2397         (gccinstall.dvi): New target.
2398         (dvi): Depend on it.
2399         * doc/.cvsignore: Ignore new info files.
2400         * doc/install.texi (@setfilename): Reflect new info filename.
2402 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
2404         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
2405         on an UNSPEC.
2407 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2409         PR objc/6834
2410         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
2411         c_common_get_alias_set.
2412         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
2414 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2416         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
2417         functions.
2418         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
2419         * avr/avr.c (avr_output_function_epilogue): Use above to determine
2420         function size.
2421         * pa/pa.c (pa_output_function_prologue): Likewise.
2423 2002-06-05  David S. Miller  <davem@redhat.com>
2425         * integrate.c (subst_constants): Handle 'B' RTL format.
2427 2002-06-05  Eric Christopher  <echristo@redhat.com>
2429         * varasm.c (make_decl_rtl): Fix comment for removed
2430         halfpic.c.
2432 2002-06-05  Eric Christopher  <echristo@redhat.com>
2434         * Makefile.in: Remove missed halfpic bits.
2436 2002-06-05  Eric Christopher  <echristo@redhat.com>
2438         * toplev.c: Remove half-pic.
2439         * config/mips/mips.c: Ditto.
2440         * config/mips/mips.h: Ditto. Remove unused defines.
2441         * config/mips/openbsd.h: Update comment to reflect above.
2442         * config/mips/mips.md: Remove half-pic constraints.
2443         * halfpic.h: Delete.
2444         * halfpic.c: Ditto.
2446 2002-06-05  Jeffrey Law  <law@redhat.com>
2448         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
2449         rejects (mem (lo_sum (reg) (unspec))), but will allow
2450         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
2452 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2454         * cpphash.h (_cpp_create_definition): Update prototype.
2455         (_cpp_push_text_context, _cpp_create_trad_definition): New.
2456         ( cpp_lex_identifier_trad): New.
2457         (_cpp_set_trad_context): New.
2458         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
2459         * cpplib.c (SEEN_EOL): Update.
2460         (lex_macro_node): Update for -traditional.
2461         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
2462         * cppmacro.c (_cpp_create_definition): Split into
2463         create_iso_definition() and _cpp_create_trad_definition().
2464         (warn_of_redefinition): Update prototype; handle traditional
2465         macros.
2466         (_cpp_push_text_context): New.
2467         * cpptrad.c (skip_whitespace, push_replacement_text): New.
2468         (lex_identifier): Call ht_lookup with correct start.
2469         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
2470         _cpp_set_trad_context): New.
2471         (scan_out_logical_line): Update to handle changing contexts.
2473 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
2475         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
2476         (shl*-*-elf*): Add.
2477         * config/sh/t-be (MULTILIB_ENDIAN): Set.
2478         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
2479         * t-sh (MULTILIB_ENDIAN): Set.
2480         (MULTILIB_OPTIONS): Use it.
2481         * t-sh64 (MULTILIB_OPTIONS): Likewise.
2482         (MULTILIB_DIRNAMES): Likewise.
2484 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
2486         * toplev.h (report_error_function): Remove.
2488         * diagnostic.h (location_t): New datatype.
2489         (text_info): Likewise.
2490         (diagnostic_info): Likewise.
2491         (output_prefix): New macro.
2492         (diagnostic_last_function_changed): Likewise.
2493         (diagnostic_set_last_function): Likewise.
2494         (diagnostic_last_module_changed): Likewise.
2495         (diagnostic_set_last_module): Likewise.
2496         (report_diagnostic): Now macro.
2497         (diagnostic_set_info): Declare.
2499         * diagnostic.c (report_problematic_module): Rename to
2500         diagnostic_repor_current_module.
2501         (set_diagnostic_context): Remove.
2502         (count_error): Rename to diagnostic_error_count.
2503         (error_function_changed): Remove.
2504         (record_last_error_function): Likewise.
2505         (error_module_changed): Likewise.
2506         (record_last_error_module): Likewise.
2507         (context_as_prefix): Rename to diagnostic_build_prefix.
2508         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
2509         (diagnostic_set_info): New function.
2511         * objc/objc-act.c: #include diagnostic.h
2512         (error_with_ivar): Adjust call to count_error.
2513         (warn_with_method): Likewise.
2514         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
2516 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
2518         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
2519         lang_hooks.types.make_type instead of make_node; set up
2520         __va_list_tag type decl.
2521         (xtensa_builtin_saveregs): Remove broken use of
2522         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
2523         for saved registers; add varargs alias set.
2525 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2527 config:
2528         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
2529         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
2530         CPP_PREDEFINES and part of CPP_SPEC.
2531         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
2532         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
2534 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
2536         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
2538 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
2540         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
2542 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
2544         * gengtype-yacc.y: Make sure all rules end with a semicolon.
2546 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
2548         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
2549         typo in function prototype and include "ggc.h" header.
2551 2002-06-04  Richard Henderson  <rth@redhat.com>
2553         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
2554         (print_operand) ['U']: Likewise.
2555         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
2556         (alpha_expand_unaligned_store_words): Likewise.
2557         (alpha_expand_builtin_vector_binop): Fix typo.
2558         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
2559         umulh, and cix insns.
2560         (one_arg_builtins): Add cix builtins.
2561         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
2562         (alpha_expand_builtin): Fix typo in arity.
2563         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
2564         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
2565         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
2566         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
2567         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
2568         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
2569         builtin_ctlz, builtin_ctpop): New.
2570         * doc/extend.texi (Alpha Built-in Functions): Update.
2572 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
2574         * gengtype.c (write_gc_root): Don't unnecessarily prevent
2575         global variable-length arrays being roots.
2577         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
2578         * configure.in (config_gtfiles): New variable.
2579         (all_gtfiles): Initialise from config_gtfiles.
2580         * configure: Regenerate.
2582 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2584 config/i386:
2585         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
2586         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
2587         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
2588         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
2589         win32.h (CPP_SPEC): Remove cpp_cpu.
2590         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
2591         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
2593 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
2595         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
2597 2002-06-04  Jeff Law <law@redhat.com.
2598             David Edelsohn <edelsohn@gnu.org>
2599             Michael Matz <matz@kde.org>
2601         * sched-int.h (struct deps): New field libcall_block_tail_insn.
2602         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
2603         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
2604         is set, then mark the current insn as being part of a libcall
2605         scheduling group.
2606         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
2608         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
2609         insns against the issue rate.
2611 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
2613         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
2614         * final.c (final_scan_insn): Likewise.
2615         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
2616         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
2617         * haifa-sched.c (unlink_other_notes): Likeewise.
2618         (reemit_notes): Likewise.
2619         * print-rtl.c (print_rtx): Likewise.
2620         * sched-deps (sched-analyze): Likewise.
2621         * rtl.c (note_insn_name): Likewise.
2622         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
2623         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
2624         (RANGE_*): Kill.
2626 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
2628         * varasm.c (mark_constants): Handle RTX format 'B'.
2630 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2632         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
2633         (struct cpp_context): Add traditional fields.
2634         * cppmacro.c (paste_all_tokens, push_ptoken_context,
2635         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
2636         * cpptrad.c (skip_comment, lex_identifier,
2637         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
2639 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
2641         * gbl-ctors.h: Fix formatting.
2642         * gcc.c: Likewise.
2643         * gccspec.c: Likewise.
2644         * gcov.c: Likewise.
2645         * gcov-io.h: Likewise.
2646         * gcse.c: Likewise.
2647         * ggc-common.c: Likewise.
2648         * ggc.h: Likewise.
2649         * ggc-page.c: Likewise.
2650         * ggc-simple.c: Likewise.
2651         * global.c: Likewise.
2652         * graph.h: Likewise.
2653         * gthr-dce.h: Likewise.
2654         * gthr.h: Likewise.
2655         * gthr-posix.h: Likewise.
2656         * gthr-rtems.h: Likewise.
2657         * gthr-solaris.h: Likewise.
2658         * gthr-win32.h: Likewise.
2660 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
2662         Merge from pch-branch:
2664         * gengtype.h (UNION_OR_STRUCT_P): New macro.
2665         * gengtype.c (write_gc_structure_fields): Use it.
2666         (write_gc_root): Use it here too.
2668         * gengtype.c (write_gc_structure_fields): Assume that lengths
2669         of typenames fit into an 'int'; don't pass a size_t to "%d" in
2670         printf.
2671         (write_gc_marker_routine_for_structure): Likewise.
2672         (write_gc_types): Likewise.
2673         (write_gc_root): Likewise.
2675         * varray.h (VARRAY_CLEAR): New.
2676         (varray_clear): Prototype.
2677         * varray.c (varray_clear): New.
2678         * cselib.c (reg_values_old): New.
2679         (used_regs_old): New.
2680         (cselib_init): Use cached varrays if available to avoid
2681         generating large amounts of garbage.
2682         (cselib_finish): Don't throw away old varrays.
2684         * final.c (insn_addresses_): Move out of ifdef.
2686         * varray.c (uses_ggc): Make more varray kinds GCable.
2687         * varray.h (union varray_data_tag): Let gengtype see
2688         fields 'generic' and 'te'.
2689         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
2690         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
2691         (reg_to_stack): Don't call VARRAY_FREE.
2692         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
2693         (insn_addresses_): Use gengtype to mark.
2694         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
2695         pointers; handle generic pointers in unused union fields.
2696         (get_output_file_with_visibility): Include cselib.h,
2697         insn-addr.h in gtype-desc.c.
2698         * function.c (prologue): Use gengtype to mark.
2699         (epilogue): Likewise.
2700         (sibcall_epilogue): Likewise.
2701         * dependence.c: Include gt-dependence.h, ggc.h.
2702         (struct def_use): Use gengtype to mark.
2703         (struct loop): Likewise.
2704         (struct induction): Likewise.
2705         (struct dependence): Likewise.
2706         (def_use_chain): Likewise.
2707         (dep_chain): Likewise.
2708         (loop_chain): Likewise.
2709         (induction_chain): Likewise.
2710         (init_dependence_analysis): Don't free anything, just clear pointers.
2711         (build_def_use): Use GGC to allocate def_use.
2712         (add_loop): Use GGC to allocate loop.
2713         (find_induction_variable): Use GGC to allocate induction.
2714         (check_node_dependence): Use GGC to allocate induction, dependence.
2715         (dump_node_dependence): Don't free varrays.
2716         (end_dependence_analysis): Likewise.
2717         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
2718         (struct elt_loc_list): Likewise.
2719         (struct elt_list): Likewise.
2720         * cselib.c: Don't include obstack.h.
2721         (hash_table): Use gengtype to mark.
2722         (reg_values): Use gengtype to mark.
2723         (used_regs): Use gengtype to mark.
2724         (cselib_obstack): Delete.
2725         (cselib_startobj): Delete.
2726         (empty_vals): Mark as deletable.
2727         (empty_elt_lists): Mark as deletable.
2728         (empty_elt_loc_lists): Mark as deletable.
2729         (new_elt_list): Use GGC to allocate struct elt_list.
2730         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
2731         (clear_table): Don't delete obstack; don't unnecessarily clear
2732         deletable variables.
2733         (new_cselib_val): Use GGC to allocate struct cselib_val.
2734         (cselib_init): Don't set up obstacks.  Use GGC to allocate
2735         hash table.
2736         (cselib_finish): Just clear variables, don't free anything.
2737         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
2738         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
2739         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
2740         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
2741         (gt-reg-stack.h): New rule.
2742         (gt-dependence.h): New rule.
2743         (gtype-desc.o): Add cselib.h, insn-addr.h.
2745         * varray.c: Use only necessary headers.
2746         (element_size): New.
2747         (uses_ggc): New.
2748         (varray_init): Take type, not size.  Use GGC if appropriate.
2749         (varray_grow): Update for change to struct varray_head_tag.
2750         Use GGC if appropriate.
2751         * varray.h (struct const_equiv_data): Use gengtype.
2752         (enum varray_data_enum): New.
2753         (union varray_data_tag): Use gengtype.
2754         (struct varray_head_tag): Use gengtype.  Replace size field with
2755         enum varray_data_enum.
2756         (varray_init): Update prototype.
2757         (VARRAY_SCHED_INIT): Delete.
2758         (VARRAY_*_INIT): Update for change to varray_init.
2759         (VARRAY_SCHED): Delete.
2760         (VARRAY_PUSH_SCHED): Delete.
2761         (VARRAY_TOP_SCHED): Delete.
2762         * tree.h: Update for change to length specifier.
2763         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
2764         (clone_body): Likewise.
2765         * ssa.h (ssa_definition): Use gengtype to mark.
2766         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
2767         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
2768         * rtl.h (struct rtvec_def): Update for change to length specifier.
2769         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
2770         (struct initial_value_struct): Update for change to length specifier.
2771         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
2772         (ggc_add_tree_varray_root): Delete prototype.
2773         (ggc_mark_rtx_varray): Delete prototype.
2774         (ggc_mark_tree_varray): Delete prototype.
2775         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
2776         (ggc_add_tree_varray_root): Delete.
2777         (ggc_mark_rtx_varray): Delete.
2778         (ggc_mark_tree_varray): Delete.
2779         (ggc_mark_rtx_varray_ptr): Delete.
2780         (ggc_mark_tree_varray_ptr): Delete.
2781         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
2782         (create_varray): Delete prototype.
2783         * gengtype.c (varrays): Delete.
2784         (create_varray): Delete.
2785         (adjust_field_type): Detect array of string pointers.
2786         (process_gc_options): Remove code to handle varray_type option.
2787         (set_gc_used_type): Remove TYPE_VARRAY case.
2788         (output_escaped_param): New.
2789         (write_gc_structure_fields): Use output_escaped_param on all
2790         parameters.  Handle 'skip' with 'use_param' option.  Handle
2791         arrays of strings.  Remove TYPE_VARRAY handling.
2792         (write_gc_roots): Use boolean to detect 'length' option.
2793         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
2794         (struct_fields): Call adjust_field_type on array fields.
2795         (type): Remove VARRAY_TYPE case.
2796         (type_option): Likewise.
2797         * gengtype-lex.l: Don't consider varray_type a keyword.
2798         * function.h: Update for change to length specifier.
2799         (free_eh_status): Delete prototype.
2800         * function.c (free_after_compilation): Don't call free_eh_status.
2801         (reorder_blocks): Don't use VARRAY_FREE.
2802         * except.c (struct eh_status): Update for change to length specifier.
2803         remove varray_type specifier.
2804         (free_eh_status): Delete.
2805         * dwarf2out.c: Include gt-dwarf2out.h.
2806         (used_rtx_varray): Use gengtype to mark, move
2807         outside ifdefs.
2808         (incomplete_types): Likewise.
2809         (decl_scope_table): Likewise.
2810         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
2811         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
2812         * c-tree.h (struct lang_type): Update for change to length specifier.
2813         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
2814         * c-objc-common.c: Include gt-c-objc-common.h.
2815         (deferred_fns): Mark for gengtype.
2816         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
2817         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
2818         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
2819         (gtype-desc.o): Update dependencies.
2820         (dwarf2out.o): Add gt-dwarf2out.h.
2821         (varray.o): Update dependencies.
2822         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
2823         (gt-c-objc-common.h): New rule.
2824         (gt-dwarf2out.h): New rule.
2825         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
2827         * doc/gty.texi (GTY Options): Correct spelling.
2828         (GGC Roots): Likewise.
2829         * Makefile.in (TEXI_CPP_FILES): New.
2830         (TEXI_GCC_FILES): New.
2831         (TEXI_GCCINT_FILES): New.
2832         (TEXI_CPPINT_FILES): New.
2833         ($(docdir)/cpp.info): Use new macros.
2834         ($(docdir)/gcc.info): Likewise.
2835         ($(docdir)/gccint.info): Likewise.
2836         ($(docdir)/cppinternals.info): Likewise.
2837         (cpp.dvi): Likewise.
2838         (gcc.dvi): Likewise.
2839         (gccint.dvi): Likewise.
2840         (cppinternals.dvi): Likewise.
2842         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
2843         * doc/gccint.texi (Top): Include gty.texi.
2844         * doc/gty.texi: New file.
2846         * bitmap.c: Include ggc.h, gt-bitmap.h.
2847         (bitmap_ggc_free): New.
2848         (bitmap_elem_to_freelist): New.
2849         (bitmap_element_free): Use bitmap_elem_to_freelist.
2850         (bitmap_element_allocate): Allow use of GGC.
2851         (bitmap_clear): Use bitmap_elem_to_freelist.
2852         (bitmap_copy): Update for change to bitmap_element_allocate.
2853         (bitmap_set_bit): Likewise.
2854         (bitmap_operation): Update for changes elsewhere.
2855         (bitmap_initialize): Allow to create bitmaps that will use GGC.
2856         * bitmap.h (struct bitmap_element_def): Use gengtype.
2857         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
2858         (bitmap_initialize): Add extra parameter.
2859         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
2860         (BITMAP_ALLOCA): Delete.
2861         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
2862         (BITMAP_GGC_ALLOC): New.
2863         * Makefile.in (gtype-desc.o): Add bitmap.h.
2864         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
2865         (GTFILES): Add bitmap.c.
2866         (gt-bitmap.h): New rule.
2867         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
2868         * basic-block.h: Update for changes to bitmap_initialize.
2869         * except.c (exception_handler_label_map): Move into...
2870         (struct eh_status): Here.
2871         (struct eh_region): Make 'aka' GCable.
2872         (free_eh_status): Don't need to specially handle
2873         exception_handler_label_map.
2874         (add_ehl_entry): Update for changes to exception_handler_label_map.
2875         (find_exception_handler_labels): Likewise.
2876         (remove_exception_handler_label): Likewise.
2877         (maybe_remove_eh_handler): Likewise.
2878         (for_each_eh_label): Likewise.
2879         (remove_eh_handler): Allocate 'aka' using GGC.
2880         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
2881         to list of includes.
2883         * gengtype.c (write_gc_marker_routine_for_structure): Name
2884         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
2885         (write_gc_types): Arrange for the tests with NULL to be inlined.
2886         (write_gc_roots): Update uses of procedure pointers.
2887         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
2889         * Makefile.in (explow.o): Add dependency on gt-explow.h.
2890         (sdbout.o): Add dependency on gt-sdbout.h.
2892         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
2893         (mem_attrs_htab): Likewise.
2894         (init_emit_once): Don't call ggc_add_deletable_htab.
2895         * fold-const.c (size_htab): Use gengtype to clear unused entries.
2896         (size_int_type_wide): Don't call ggc_add_deletable_htab.
2897         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
2898         parameters, use them, change callers.
2899         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
2900         (write_gc_roots): Handle 'if_marked' option.
2901         (main): Don't need to call set_gc_used_type any more.
2902         * ggc.h (ggc_htab_marked_p): Delete.
2903         (ggc_htab_mark): Delete.
2904         (struct ggc_cache_tab): New.
2905         (gt_ggc_cache_rtab): New declaration.
2906         * ggc-common.c (struct d_htab_root): Delete.
2907         (d_htab_roots): Delete.
2908         (ggc_add_deletable_htab): Delete.
2909         (ggc_htab_delete): Handle new htab-deleting mechanism.
2910         (ggc_mark_roots): Use new htab-deleting mechanism.
2911         * tree.c (type_hash_table): Use gengtype to clear unused entries.
2912         Make static.
2913         (init_obstacks): Don't call ggc_add_deletable_htab.
2915         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
2916         (struct hashed_entry): Likewise.
2917         (nst_method_hash_list): Likewise.
2918         (cls_method_hash_list): Likewise.
2919         (HASH_ALLOC_LIST_SIZE): Delete.
2920         (ATTR_ALLOC_LIST_SIZE): Delete.
2921         * objc/objc-act.c (hash_init): Use ggc to allocate
2922         nst_method_hash_list, cls_method_hash_list.
2923         (hash_enter): Use ggc to allocate; allocate one entry at a time.
2924         (hash_add_attr): Likewise.
2925         (ggc_mark_hash_table): Delete.
2926         (objc_act_parse_init): Delete.
2927         (objc_init): Delete reference to objc_act_parse_init.
2928         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
2929         obstack.h.  Replace references to 'struct hash_table' with htab_t.
2930         (struct symbol_hash_entry): Replace hash header with key field.
2931         (struct file_hash_entry): Replace hash header with key field.
2932         (struct demangled_hash_entry): Replace hash header with key field.
2933         (hash_string_eq): New.
2934         (hash_string_hash): New.
2935         (symbol_hash_newfunc): Delete.
2936         (symbol_hash_lookup): Modify to use htab_t.
2937         (file_hash_newfunc): Delete.
2938         (file_hash_lookup): Modify to use htab_t.
2939         (demangled_hash_newfunc): Delete.
2940         (demangled_hash_lookup): Modify to use htab_t.
2941         (tlink_init): Modify to use htab_t.
2942         * hash.h: Delete.
2943         * hash.c: Delete.
2944         * ggc.h: Delete forward structure declarations.
2945         Delete prototypes for deleted functions.
2946         * ggc-common.c: Don't include hash.h.
2947         (ggc_add_tree_hash_table_root): Delete.
2948         (ggc_mark_tree_hash_table_entry): Delete.
2949         (ggc_mark_tree_hash_table): Delete.
2950         (ggc_mark_tree_hash_table_ptr): Delete.
2951         * gengtype.c (write_gc_structure_fields): Allow param_is option.
2952         (write_gc_marker_routine_for_structure): Use visibility of
2953         the parameter if there is one.
2954         * function.c: Replace hash.h with hashtab.h.  Replace references
2955         to 'struct hash_table *' with htab_t.
2956         (struct insns_for_mem_entry): Include a plain key.
2957         (fixup_var_refs_insns_with_hash): Update to use htab_t.
2958         (insns_for_mem_newfunc): Delete.
2959         (insns_for_mem_hash): Update to use htab_t.
2960         (insns_for_mem_comp): Likewise.
2961         (insns_for_mem_walk): Likewise.
2962         * c-lang.c: Include ggc.h.
2963         * Makefile.in (OBJS): Remove hash.o.
2964         (c-lang.o): Add GGC_H.
2965         (COLLECT2_OBJS): Remove hash.o.
2966         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
2967         (ggc-common.o): Remove hash.h.
2968         (function.o): Remove hash.h, add HASHTAB_H.
2969         (genautomata.o): Remove hash.h, add HASHTAB_H.
2971         * varasm.c (mark_const_str_htab_1): Delete.
2972         (mark_const_str_htab): Delete.
2973         (const_str_htab_del): Delete.
2974         (const_str_htab): Use gengtype to mark.
2975         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
2976         allocate them.
2977         * tree.c (mark_tree_hashtable_entry): Delete.
2978         (mark_tree_hashtable): Delete.
2979         * tree.h (mark_tree_hashtable): Delete prototype.
2980         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
2981         (ggc_mark): Likewise.
2982         (ggc_calloc): New.
2983         (htab_create_ggc): New.
2984         * ggc-common.c (ggc_calloc): New.
2985         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
2986         (struct type): Add param_struct structure.
2987         * gengtype.c (param_structs): New.
2988         (adjust_field_type): Handle param_is option.
2989         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
2990         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
2991         (write_gc_structure_fields): Add new PARAM parameter.  Update
2992         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
2993         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
2994         Use it to generate function name.  Update callers.
2995         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
2996         Process them.
2997         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
2998         option.
2999         (main): Define PTR as pointer-to-scalar.  Don't specially
3000         mark deferred_string or ehl_map_entry.
3001         * gengtype-yacc.y (PARAM_IS): Add new token.
3002         (externstatic): Use adjust_field_type.
3003         (type_option): Add PARAM_IS.
3004         * gengtype-lex.l: Add rule for typedef of function pointers.
3005         Add rule for PARAM_IS.
3006         (IWORD): Add size_t.
3007         * except.c (exception_handler_label_map): Use gengtype to mark.
3008         (type_to_runtime_map): Likewise.
3009         (mark_ehl_map_entry): Delete.
3010         (mark_ehl_map): Delete.
3011         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
3012         (t2r_mark_1): Delete.
3013         (t2r_mark): Delete.
3014         * Makefile.in (gtype-desc.o): Correct dependencies.
3015         (GTFILES): Add hashtab.h.
3016         (genautomata.o): Actually uses hashtab.h.
3018         * Makefile.in (stringpool.o): Add $(GGC_H).
3019         (dwarf2asm.o): Likewise.
3020         (GTFILES): Add hashtable.h.
3021         * c-common.h (struct c_common_identifier): Use gengtype.
3022         * c-decl.h (c_mark_tree): Delete.
3023         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3024         * c-tree.h (struct lang_identifier): Use gengtype.
3025         (union lang_tree_node): New.
3026         (c_mark_tree): Delete prototype.
3027         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
3028         dwarf2_debug_hooks.
3029         * gengtype-lex.l (IWORD): Allow 'bool'.
3030         (ptr_alias): Match.
3031         * gengtype-yacc.y (ALIAS): New token.
3032         (type_option): New rule.
3033         (option): Use type_option.
3034         * gengtype.c (process_gc_options): New.
3035         (set_gc_used_type): Use it.
3036         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
3037         Add new variable 't' to hold the type of the field being processed.
3038         Add more error checking.  Use UNION_P when looking at 'desc' option.
3039         Handle language-specific structures containing other
3040         language-specific structures.
3041         (write_gc_types): Handle 'ptr_alias' option.
3042         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
3043         * ggc-common.c (ggc_pending_trees): Delete.
3044         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
3045         (ggc_mark_trees): Delete.
3046         (gt_ggc_m_tree_node): Delete.
3047         * ggc.h (ggc_pending_trees): Delete.
3048         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
3049         * hashtable.h (ht_identifier): Use gengtype.
3050         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
3051         * langhooks.h (struct lang_hooks): Delete mark_tree.
3052         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
3053         anyway.
3054         * system.h: Poison LANG_HOOKS_MARK_TREE.
3055         * tree.c (tree_node_structure): New.
3056         * tree.h (struct tree_common): Use gengtype.
3057         (struct tree_int_cst): Likewise.
3058         (struct tree_real_cst): Likewise.
3059         (struct tree_string): Likewise.
3060         (struct tree_complex): Likewise.
3061         (struct tree_vector): Likewise.
3062         (struct tree_identifier): Likewise.
3063         (struct tree_list): Likewise.
3064         (struct tree_vec): Likewise.
3065         (struct tree_exp): Likewise.
3066         (struct tree_block): Likewise.
3067         (struct tree_type): Likewise.
3068         (struct tree_decl): Likewise.
3069         (enum tree_structure_enum): New.
3070         (union tree_node): Use gengtype, with an alias.
3071         (tree_node_structure): Prototype.
3072         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3074         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
3075         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
3076         to LANG_HOOKS_FUNCTION_FINAL.
3077         * Makefile.in (GTFILES): Add bitmap.h.
3078         * except.c (struct eh_region): Mark field 'aka' to be skipped.
3080         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
3081         (alpha_init_machine_status): Give proper type.
3082         * Makefile.in (c-lang.o): Depend on gtype-c.h.
3083         (optabs.o): Depend on gt-optabs.h.
3084         (GTFILES): Add optabs.o.
3085         (gt-optabs.h): Add rule.
3086         * optabs.c: Include gt-optabs.h.
3088         * gengtype.c (set_gc_used_type): Correct some errors in last change.
3089         (write_gc_structure_fields): If a field which should be NULL is
3090         not, abort.
3091         * c-pragma.c: Move struct align_stack and variable alignment_stack
3092         out from the ifdef.
3094         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
3095         * config/xtensa/xtensa.c: Include gt-cris.h.
3096         (struct machine_function): Use gengtype to mark.
3097         * config/mmix/mmix.h (struct machine_function): Use gengtype
3098         to mark.
3099         * config/cris/t-cris: Add dependencies for gt-cris.h.
3100         * config/cris/cris.c: Include gt-cris.h.
3101         (struct machine_function): Use gengtype to mark.
3102         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
3103         to mark.
3104         * doc/tm.texi (Per-Function Data): Delete references to
3105         mark_machine_status.
3106         * config/ia64/ia64.c (ia64_override_options): Don't set
3107         mark_machine_status.
3108         * config/i386/i386.c (override_options): Likewise.
3109         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
3110         * config/arm/arm.c (arm_init_expanders): Likewise.
3111         * config/alpha/alpha.c (override_options): Likewise.
3112         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
3113         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
3114         (write_gc_structure_fields): Don't handle 'really' option.
3115         Handle 'maybe_null' option.
3116         (write_gc_types): Handle 'maybe_null' option.
3117         * function.h (struct function): Don't use "really".
3118         (mark_machine_status): Delete declaration.
3119         (mark_lang_status): Delete declaration.
3120         (gt_ggc_mr_machine_function): Delete prototype.
3121         (gt_ggc_mr_language_function): Delete prototype.
3122         * function.c (mark_machine_status): Delete.
3123         (mark_lang_status): Delete.
3124         (gt_ggc_mr_machine_function): Delete.
3125         (gt_ggc_mr_language_function): Delete.
3126         * c-tree.h (mark_c_function_context): Delete prototype.
3127         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
3128         * c-decl.c (struct language_function): Rename from struct
3129         c_language_function.  Update uses.  Use gengtype to mark.
3130         (mark_c_function_context): Delete.
3131         * c-common.h (struct c_language_function): Rename from struct
3132         language_function.
3133         (mark_stmt_tree): Delete prototype.
3134         (c_mark_lang_decl): Delete prototype.
3135         (mark_c_language_function): Delete prototype.
3136         * c-common.c (mark_stmt_tree): Delete.
3137         (c_mark_lang_decl): Delete.
3138         (mark_c_language_function): Delete.
3140         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
3141         (lang_bitmap): New typedef.  Use where appropriate.
3142         (struct type): Add gc_used field, lang_struct field.
3143         (UNION_P): New macro.
3144         (new_structure): New prototype.
3145         (find_structure): Remove 'pos' parameter.  Change all callers.
3146         * gengtype-lex.l: Update for changes to find_structure.
3147         * gengtype-yacc.y (typedef_struct): Use new_structure.
3148         (yacc_ids): Suppress warning.
3149         (type): Use new_structure.
3150         * gengtype.c (string_type): Update for changes to struct type.
3151         (find_structure): Just find a structure, don't worry about
3152         creating one.
3153         (new_structure): New.
3154         (note_yacc_type): Use new_structure.
3155         (set_gc_used_type): New.
3156         (set_gc_used): New.
3157         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
3158         (write_gc_types): Handle TYPE_LANG_STRUCT.
3159         (write_gc_marker_routine_for_structure): New.
3160         (main): Call set_gc_used.  Add some calls to set_gc_used_type
3161         for places where GCC doesn't use gengtype properly yet.
3162         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
3163         (gt_ggc_m_tree_node): Likewise.
3165         * varasm.c (copy_constant): Call expand_constant if we hit
3166         something we can't recognise.
3168         * ggc-common.c (ggc_mark_rtvec_children): Delete.
3169         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
3170         (lang_mark_false_label_stack): Delete.
3171         * rtl.h (struct rtvec_def): Use gengtype to mark.
3172         * ggc.h (ggc_mark_rtvec): Delete.
3173         (gt_ggc_m_rtvec_def): Delete.
3174         (ggc_mark_nonnull_tree): Delete.
3175         (ggc_mark_rtvec_children): Delete prototype.
3176         (lang_mark_false_label_stack): Delete declaration.
3178         * gengtype.h (note_yacc_type): Add prototype.
3179         * gengtype.c (note_yacc_type): New function.
3180         * gengtype-lex.l: Add lexer support for yacc files.
3181         * gengtype-yacc.y (start): Extract union from yacc files.
3182         (yacc_union): New rule.
3183         (yacc_typematch): New rule.
3184         (yacc_ids): New rule.
3185         (enum_items): Tweak for efficiency.
3186         (optionseq): Likewise.
3188         * c-common.h (struct language_function): Use gengtype.
3189         (struct c_lang_decl): Likewise.
3190         * c-tree.h (struct lang_decl): Likewise.
3191         (struct lang_type): Likewise.
3192         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
3193         tree language substructures.
3195         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
3196         ggc_mark_tree.
3197         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
3199         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
3201         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
3202         mark. Remove 'data.block.cleanup_ptr' field.
3203         (struct stmt_status): Use usual technique to mark struct nesting.
3204         (gt_ggc_mr_nesting_cond): Delete.
3205         (gt_ggc_mr_nesting_loop): Delete.
3206         (gt_ggc_mr_nesting_block): Delete.
3207         (gt_ggc_mr_nesting_case_stmt): Delete.
3208         (expand_start_cond): Set discriminator.
3209         (expand_start_loop): Likewise.
3210         (expand_start_null_loop): Likewise.
3211         (expand_start_bindings_and_block): Set discriminator.  Don't set
3212         deleted fields.
3213         (expand_decl_cleanup): Replace 'cleanup_ptr' with
3214         &thisblock->data.block.cleanups.
3215         (expand_start_case): Set discriminator.
3216         (expand_start_case_dummy): Set discriminator.
3218         * ggc-callbacks.c: Remove.
3220         * gengtype.h (struct type): Add 'u.s.bitmap' field.
3221         (find_structure): Add 'pos' parameter.
3222         * gengtype-lex.l: Update callers to find_structure.
3223         * gengtype-yacc.y: Likewise.
3224         * gengtype.c (find_structure): Allow for structures to be defined
3225         in multiple language backends.
3226         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
3227         (counter): Rename to gc_counter.
3228         (write_gc_structure_fields): Fail when writing out fields for
3229         an incomplete structure.  Ignore arrays of scalars.  Handle
3230         'tree_vec' special.
3231         (write_gc_types): Reset counter for each procedure written.
3233         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
3234         (free_case_nodes): Delete.
3235         (expand_end_case_type): Delete call to free_case_nodes.
3237         * Makefile.in (cselib.o): Include gt-<filename>.h.
3238         (gcse.o): Likewise.
3239         (profile.o): Likewise.
3240         (alias.o): Likewise.
3241         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
3242         alphabetize backend files.
3243         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
3244         * alias.c: Use gengtype for roots.
3245         * c-common.h (struct stmt_tree_s): Use gengtype.
3246         * c-decl.c: Use gengtype for roots.
3247         * cselib.c: Use gengtype for roots.
3248         * expr.c: Use gengtype for roots.
3249         * fold-const.c: Use gengtype for roots.
3250         * gcse.c: Use gengtype for roots.
3251         * gengtype-lex.l: Handle typedefs of function types.
3252         Allow for empty array bounds.
3253         Allow processing to stop on initialisers.
3254         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
3255         (semiequal): New rule.
3256         * gengtype.c (create_file): Tidy output files.
3257         (get_output_file_with_visibility): Fix paren warning.  Fix bug
3258         involving multiple input files mapping to one output file.
3259         (write_gc_structure_fields): Skip arrays of scalars.
3260         (write_gc_types): Tidy output files.
3261         (write_gc_root): New function.
3262         (write_gc_roots): Fix bugs, add support for roots that are
3263         structures.
3264         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
3265         (ggc_mark_tree_ptr): Delete.
3266         (ggc_add_rtx_root): Delete.
3267         (ggc_add_tree_root): Delete.
3268         (ggc_del_root): Delete.
3269         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
3270         allocate struct initial_value_struct.
3271         * profile.c: Use gengtype for roots.
3272         * sdbout.c: Use gengtype for roots.
3273         * varasm.c (mark_weak_decls): Delete unused prototype.
3274         (mark_const_hash_entry): Delete unused function.
3275         * config/darwin-protos.h: Use gengtype for roots.
3276         (machopic_add_gc_roots): Delete.
3277         * config/arm/arm.c: Use gengtype for roots.
3278         * config/arm/arm.h: Use gengtype for roots.
3279         * config/c4x/c4x-protos.h: Use gengtype for roots.
3280         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
3281         * config/d30v/d30v-protos.h: Use gengtype for roots.
3282         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
3283         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
3284         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
3285         * config/ia64/ia64-protos.h: Use gengtype for roots.
3286         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
3287         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
3288         * config/m68hc11/m68hc11.c (z_reg): Make global.
3289         (z_reg_qi): Make global.
3290         (m68hc11_add_gc_roots): Delete.
3291         * config/mcore/mcore-protos.h: Use gengtype for roots.
3292         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
3293         * config/mips/mips.c (mips_add_gc_roots): Delete.
3294         * config/mips/mips.h: Use gengtype for roots.
3295         * config/mmix/mmix.c (override_options): Use gengtype for roots.
3296         * config/mmix/mmix.h: Use gengtype for roots.
3297         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
3298         * config/mn10200/mn10200.h: Use gengtype for roots.
3299         * config/pa/pa.c: Use gengtype for roots, marking.
3300         (struct deferred_plabel): Use GGC, gengtype.
3301         (pa_add_gc_roots): Delete.
3302         (mark_deferred_plabels): Delete.
3303         * config/pj/pj-protos.h: Use gengtype for roots.
3304         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
3305         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
3306         machopic_add_gc_roots.
3307         * config/rs6000/rs6000.h: Use gengtype for roots.
3308         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
3309         (gt-darwin.h): Add rule.
3310         * config/sh/sh.c: Use gengtype for roots.
3311         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
3312         (gt-sh.h): Add rule.
3313         * config/sparc/sparc.c: Use gengtype for roots.
3314         (sparc_add_gc_roots): Delete.
3315         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
3316         (mark_ultrasparc_pipeline_state): Delete.
3317         * config/sparc/sparc.h: Use gengtype for roots.
3319         * Makefile.in (c-parse.o): Update dependencies.
3320         (c-common.o): Likewise.
3321         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
3322         Add dependencies for the files they generate.
3323         * c-common.c: Replace ggc_add_* uses with GTY annotations.
3324         * c-common.h: Likewise.
3325         * c-decl.c: Likewise.
3326         (gt_ggc_mp_binding_level): Delete.
3327         * c-lang.c: Include gtype-c.h.
3328         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
3329         gt-c-parse.h.
3330         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
3331         (gt_ggc_mp_align_stack): Delete.
3332         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
3333         * function.c: Replace ggc_add_* uses with GTY annotations.
3334         (gt_ggc_mp_function): Delete.
3335         * function.h: Replace ggc_add_* uses with GTY annotations.
3336         * gengtype.c (lang_names): New.
3337         (NUM_BASE_FILES): New.
3338         (open_base_files): Create language base files.
3339         (startswith): New.
3340         (get_file_basename): New.
3341         (get_base_file_bitmap): New.
3342         (get_output_file_with_visibility): Rename from get_output_file.
3343         Add more mappings for various C/Objc filenames.
3344         (finish_root_table): New.
3345         (write_gc_roots): Handle dependencies and scoping properly.
3346         * gengtype.h: Add prototypes for new functions.
3347         * ggc-common.c (struct deletable_root): Delete.
3348         (deletables): Delete.
3349         (ggc_add_deletable_root): Delete.
3350         (ggc_mark_roots): No need to deal with deleted functionality.
3351         * ggc.h (ggc_add_deletable_root): Delete prototype.
3352         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
3353         (gtype-objc.h): Add rule to create.
3354         * objc/config-lang.in (gtfiles): New.
3355         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
3356         ggc_add_* with GTY markers.  Include gtype-objc.h.
3357         (ggc_mark_imp_list): Delete.
3358         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
3359         * objc/objc-lang.c: Random Whitespace Change.
3361         * except.h (exception_handler_labels): Delete.
3362         (get_exception_handler_labels): New.
3363         * except.c (exception_handler_labels): Delete.
3364         (struct eh_status): Add exception_handler_labels field.
3365         (doing_eh): Don't add exception_handler_labels as root.
3366         (free_eh_status): Don't need to free exception_handler_labels.
3367         (get_exception_handler_labels): New.
3368         (find_exception_handler_labels): Update for move of
3369         exception_handler_labels.
3370         (remove_exception_handler_label): Likewise.
3371         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
3372         * jump.c (rebuild_jump_labels): Likewise.
3373         * loop.c (find_and_verify_loops): Likewise.
3374         * sched-rgn.c (is_cfg_nonregular): Likewise.
3376         * gengtype.c (write_gc_structure_fields): Handle variable-length
3377         TYPE_ARRAYs.
3379         * varasm.c (struct weak_syms): Use GGC, gengtype.
3380         (mark_weak_decls): Delete.
3381         (weak_decls): Likewise.
3382         (add_weak): Likewise.
3383         (remove_from_pending_weak_list): Likewise.
3384         (init_varasm_once): Likewise.
3386         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
3387         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
3388         stor-layout.c, regclass.c, and lists.c.
3389         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
3390         gt-regclass.h and gt-lists.h on s-gtype.
3391         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
3392         * except.c: Use gengtype for roots.
3393         * explow.c: Use gengtype for roots.  Include gt-explow.h.
3394         * expr.h (init_stor_layout_once): Delete prototype.
3395         * function.c: Use gengtype for roots.
3396         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
3397         * gengtype-yacc.y (start): Can also be an externstatic.
3398         (externstatic): New production.
3399         (struct_fields): Correct array bounds inversion for 2-d arrays.
3400         * gengtype.c (variables): New variable.
3401         (note_variable): New function.
3402         (get_output_file): Include libfuncs.h into gtype-desc.c.
3403         (get_output_file_name): New function.
3404         (write_gc_structure_fields): Suppress warnings.
3405         (write_gc_types): Make static.
3406         (put_mangled_filename): New function.
3407         (write_gc_roots): New function.
3408         (main): Call write_gc_roots.
3409         * gengtype.h (note_variable): Prototype.
3410         (get_output_file_name): Prototype.
3411         (write_gc_types): Delete prototype.
3412         * ggc.h: Clean up unnecessary structure predefinitions.
3413         (struct ggc_root_tab): Define.
3414         (gt_ggc_m_rtx_def): Make function, not macro.
3415         (gt_ggc_m_tree_node): Likewise.
3416         * libfuncs.h: Use gengtype for roots.
3417         * lists.c: Use gengtype for roots.  Include gt-lists.h.
3418         (init_EXPR_INSN_LIST_cache): Delete.
3419         * optabs.c: Use gengtype for roots.
3420         (gt_ggc_mp_optab): Delete.
3421         * optabs.h: Use gengtype for roots.
3422         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
3423         * rtl.h: Use gengtype for roots.
3424         (init_EXPR_INSN_LIST_cache): Delete prototype.
3425         * stor-layout.c: Use gengtype for roots.
3426         Include gt-stor-layout.h.
3427         (init_stor_layout_once): Delete.
3428         * toplev.c: Use gengtype for roots.  Delete calls to deleted
3429         routines.
3430         * tree.c: Use gengtype for roots.
3431         * tree.h: Use gengtype for roots.
3432         * varasm.c: Use gengtype for roots.
3434         * Makefile.in (GTFILES): Add @all_gtfiles@.
3435         * configure: Regenerate.
3436         * configure.in: Construct all_gtfiles from the gtfiles definitions
3437         in config-lang.in.
3438         * gengtype-yacc.y (type): Warn about duplicate structure names.
3439         * gengtype.c (get_output_file): Handle .c files in language
3440         subdirectories.
3442         * Makefile.in (GTFILES): Run gengtype on all the config files
3443         and on the target .c file.
3444         * except.c (mark_eh_region): Delete.
3445         (init_eh_for_function): Use GGC on struct eh_status.
3446         (mark_eh_status): Delete.
3447         (free_eh_status): Use GGC.
3448         (expand_eh_region_start): Use GGC to
3449         (collect_eh_region_array): Allocate last_region_number using GGC.
3450         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
3451         (remove_eh_handler): Let GGC free struct eh_region.
3452         (add_call_site): Use GGC to reallocate call_site_record array.
3453         * function.c (init_machine_status): Update calling sequence.
3454         (mark_machine_status): Likewise.
3455         (mark_lang_status): Likewise.
3456         (prepare_function_start): Update init_machine_status call.
3457         (mark_function_status): Delete.
3458         (maybe_mark_struct_function): Delete.
3459         (ggc_mark_struct_function): Delete.
3460         (gt_ggc_mp_function): New.
3461         (gt_ggc_mr_machine_function): New.
3462         (gt_ggc_mr_language_function): New.
3463         (init_function_once): Use canonical names.
3464         * function.h (struct function): Use gengtype.
3465         (init_machine_status): Return the structure.
3466         (mark_machine_status): Take a 'void *'.
3467         (mark_lang_status): Likewise.
3468         * ggc-common.c (ggc_mark_trees): Use canonical name for
3469         ggc_mark_struct_function.
3470         * tree.h (ggc_mark_struct_function): Delete prototype.
3471         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
3472         (alpha_init_machine_status): Likewise.
3473         (override_options): Use canonical name for alpha_mark_machine_status.
3474         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
3475         * config/arm/arm.h (struct machine_function): Use gengtype.
3476         * config/arm/arm.c (arm_mark_machine_status): Delete.
3477         (arm_init_machine_status): Update calling sequence.
3478         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
3479         * config/cris/cris.c (cris_init_machine_status): Update
3480         calling sequence.
3481         * config/d30v/d30v.h (struct machine_function): Use gengtype.
3482         * config/d30v/d30v.c (d30v_init_machine_status): Update
3483         calling sequence.
3484         (d30v_mark_machine_status): Delete.
3485         * config/i386/i386.c: Include gt-i386.h.
3486         (struct machine_function): Use gengtype.
3487         (ix86_init_machine_status): Update calling sequence.
3488         (ix86_mark_machine_status): Delete.
3489         (override_options): Use canonical namke for ix86_mark_machine_status.
3490         * config/ia64/ia64.h (struct machine_function): Use gengtype.
3491         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
3492         sequence.
3493         (ia64_mark_machine_status): Delete.
3494         (ia64_override_options): Use canonical name for
3495         ia64_mark_machine_status.
3496         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
3497         sequence.
3498         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
3499         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3500         * gengtype.c (get_output_file): Fix warning.
3501         (main): Add prototype to suppress warning.
3502         * tree.c: Remove tree_hash_mark prototype.
3504         * tree.h (init_stmt): Delete prototype.
3505         * toplev.c (lang_independent_init): Don't call init_stmt.
3506         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
3507         (stmt_obstack): Delete.
3508         (POPSTACK): No need to free 'struct nesting'.
3509         (gt_ggc_mr_nesting_cond): Use canonical names.
3510         (gt_ggc_mr_nesting_loop): Use canonical names.
3511         (gt_ggc_mr_nesting_block): Use canonical names.
3512         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
3513         (mark_stmt_status): Delete.
3514         (init_stmt): Delete.
3515         (clear_last_expr): Clear both last_expr_type and last_expr_value.
3516         Use it everywhere that last_expr_type was cleared.
3517         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
3518         (zap_lists): Delete.
3519         * ggc.h (ggc_add_deletable_root): Prototype.
3520         (mark_stmt_status): Remove prototype.
3521         * ggc-common.c (ggc_add_deletable_root): New.
3522         (ggc_mark_roots): Handle deletable roots.
3523         * function.c (ggc_mark_struct_function): Use canonical name
3524         for mark_stmt_status.
3525         * emit-rtl.c (free_sequence_stack): New.
3526         (start_sequence): Use a freelist for sequences.
3527         (end_sequence): Likewise.
3528         (init_emit_once): Add free_sequence_stack as a deleteable root.
3529         * c-pragma.c Include gt-c-pragma.h.
3530         (struct align_stack): Use gengtype.
3531         (push_alignment): Use GGC for struct align_stack.
3532         (mark_align_stack): Delete.
3533         (gt_ggc_mp_align_stack): New.
3534         (init_pragma): Use canonical name for mark_align_stack.
3535         * c-decl.c: Include gt-c-decl.h.
3536         (struct binding_level): Use gengtype.
3537         (make_binding_level): Use GGC; handle the freelist here.
3538         (pop_binding_level): New.
3539         (pushlevel): Move code into make_binding_level.
3540         (push_label_level): Likewise.
3541         (poplevel): Move code into pop_binding_level.
3542         (pop_label_level): Likewise.
3543         (mark_binding_level): Delete.
3544         (gt_ggc_mp_binding_level): New.
3545         (c_init_decl_processing): Use canonical name for mark_binding_level.
3546         Add free_binding_level as deletable root.
3547         (mark_c_function_context): Use canonical name for mark_binding_level.
3548         * Makefile.in (c-decl.o): Add gt-c-decl.h.
3549         (c-pragma.o): Add gt-c-pragma.h.
3550         (GTFILES): Add c-decl.c and c-pragma.c.
3551         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
3553         * tree.c (struct type_hash): Use gengtype.
3554         (init_obstacks): Use canonical name for type_hash_mark.
3555         (type_hash_mark): Delete.
3556         Include gt-tree.h.
3557         * rtl.h (struct mem_attrs): Use gengtype.
3558         * optabs.h (struct optab): Use gengtype.
3559         * optabs.c (expand_binop): Squish signed/unsigned warning.
3560         (mark_optab): Make local, use canonical name, use autogenerated
3561         marker procedure.
3562         (init_optabs): Use canonical name for mark_optab.
3563         (new_optab): Use GGC to allocate optabs.
3564         * ggc.h: Delete mark_optab prototype.
3565         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
3566         mem_attrs marker procedure.
3567         * gengtype.c (get_output_file): Include headers in gtype-desc.c
3568         explicitly rather than deducing them from file names.
3569         (write_gc_structure_fields): Handle arrays of structures.
3570         (main): Return non-zero exit code if errors occur during output.
3571         * emit-rtl.c (mem_attrs_mark): Delete.
3572         (init_emit_once): Use canonical name for mem_attrs marker procedure.
3573         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
3574         (tree.o): Depend on gt-tree.h.
3575         (GTFILES): Add rtl.h, optabs.h, tree.c.
3576         (gt-tree.h): Add it to s-gtype rule.
3578         * .cvsignore: Ignore gengtype flex/bison generated files.
3579         * Makefile.in (GGC_H): Add gtype-desc.h.
3580         (OBJS): Add gtype-desc.o.
3581         (GEN): Add gengtype.
3582         (STAGESTUFF): Add gengtype.
3583         (varasm.o): Add gt-varasm.h.
3584         (stmt.o): Add gt-stmt.h.
3585         (except.o): Add gt-except.h.
3586         (integrate.o): Add gt-integrate.h.
3587         (GTFILES): New.
3588         Add new rules for new files.
3589         * configure: Regenerate.
3590         * configure.in: Correct defaults.h paths.
3591         * emit-rtl.c (mark_sequence_stack): Delete.
3592         (mark_emit_status): Delete.
3593         (start_sequence): Allocate sequence structures using GGC.
3594         (end_sequence): Allocate sequence structures using GGC.
3595         * except.c: Use gengtype for various structures.  Include
3596         gt-except.h.
3597         * expr.c (mark_expr_status): Delete.
3598         * function.c: Use gengtype for various structures.  Include
3599         gt-function.h.
3600         (mark_function_status): Use standard gt_ggc names for marker functions.
3601         (ggc_mark_struct_function): Likewise.
3602         * function.h: Use gengtype for various structures.
3603         * gengtype-lex.l: New file.
3604         * gengtype-yacc.y: New file.
3605         * gengtype.c: New file.
3606         * gengtype.h: New file.
3607         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
3608         the standard names.  Remove some now-unnecessary prototypes.
3609         * integrate.c: Use gengtype for various structures.  Include
3610         gt-integrate.h.
3611         (mark_hard_reg_initial_vals): Delete.
3612         * integrate.h (mark_hard_reg_initial_vals): Delete.
3613         * stmt.c: Use gengtype for various structures.  Include
3614         gt-stmt.h.
3615         (mark_case_node): Delete.
3616         (mark_goto_fixup): Delete.
3617         (mark_stmt_status): Use standard gt_ggc names for marker functions.
3618         * system.h: Define GTY to empty.   In flex/bison files,
3619         don't poison malloc or realloc, instead just define them to
3620         xmalloc and xrealloc.
3621         * varasm.c: Use gengtype for various structures.  Include
3622         gt-varasm.h.  Use standard gt_ggc names for marker functions.
3623         (mark_pool_constant): Delete.
3624         (mark_varasm_status): Delete.
3625         (decode_rtx_const): #if 0 out non-typesafe hack.
3627         * function.h (free_lang_status): Mark as obsolete.
3628         * function.c (free_lang_status): Mark as obsolete.
3629         * c-decl.c (push_c_function_context): Use GC to allocate and free
3630         struct language_function.
3631         (pop_c_function_context): Likewise.
3632         * c-common.c (mark_c_language_function): Mark struct
3633         language_function.
3635         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
3636         Document that the machine_function structures must be allocated
3637         using GC.  Update mark_machine_status documentation.
3638         * function.h: Don't declare free_machine_status.
3639         * function.c (free_machine_status): Don't define.
3640         (free_after_compilation): Don't call free_machine_status.
3641         (ggc_mark_struct_function): Mark f->machine.  Call
3642         mark_machine_status only on non-NULL pointers.
3643         * system.h: Poison free_machine_status.
3644         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
3645         struct machine_function.
3646         (xtensa_free_machine_status): Delete.
3647         (override_options): Don't set free_machine_status.
3648         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
3649         free_machine_status.
3650         (rs6000_init_machine_status): Use GC on struct machine_function.
3651         (rs6000_free_machine_status): Delete.
3652         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
3653         machine_function.
3654         (ia64_mark_machine_status): Likewise.
3655         (ia64_free_machine_status): Delete.
3656         (ia64_override_options): Don't set free_machine_status.
3657         * config/i386/i386.c (override_options): Don't set
3658         free_machine_status.
3659         (ix86_init_machine_status): Use GC on struct machine_function.
3660         (ix86_mark_machine_status): Likewise.
3661         (ix86_free_machine_status): Delete.
3662         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
3663         machine_function.
3664         (d30v_mark_machine_status): Likewise.
3665         (d30v_free_machine_status): Delete.
3666         (d30v_init_expanders): Don't set free_machine_status.
3667         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
3668         machine_function.
3669         (arm_init_machine_status): Likewise.
3670         (arm_free_machine_status): Delete.
3671         (arm_init_expanders): Don't set free_machine_status.
3672         * config/alpha/alpha.c (override_options): Don't set
3673         free_machine_status.
3674         (alpha_init_machine_status): Use GC on struct machine_function.
3675         (alpha_mark_machine_status): Likewise.
3676         (alpha_free_machine_status): Delete.
3678         * varasm.c (compare_constant): Fix typo.
3680         * varasm.c: Don't include obstack.h.
3681         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
3682         (struct rtx_const): Give substructures names, improve formatting.
3683         (struct constant_descriptor): Delete.
3684         (struct constant_descriptor_tree): New, based on constant_descriptor.
3685         (const_hash_table): Is a hash table of trees.
3686         (mark_const_hash_entry): Is used for hashes of trees.  Mark
3687         constant_descriptor_tree structure.
3688         (mark_const_str_htab_1): Mark deferred_string structure.
3689         (compare_constant): Rewrite to compare trees.
3690         (compare_constant_1): Delete.
3691         (record_constant): Delete.
3692         (record_constant_1): Delete.
3693         (output_constant_def): Use struct constant_descriptor_tree.
3694         Don't duplicate trees twice.
3695         (struct constant_descriptor_rtx): New.
3696         (struct pool_constant): Used for rtx constants.
3697         (init_varasm_status): Update for change to struct varasm_status.
3698         (mark_varasm_status): Likewise.
3699         (free_varasm_status): Delete.
3700         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
3701         (record_constant_rtx): Likewise.
3702         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
3703         (force_const_mem): Likewise.
3704         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
3705         * function.c (free_after_compilation): Don't use free_varasm_status.
3706         * function.h: Don't prototype free_varasm_status.
3708         * ggc-common.c (ggc_realloc): Handle X being NULL.
3710         * ggc-common.c (ggc_realloc): New function.
3711         * ggc.h: Prototype it.
3712         * emit-rtl.c (free_emit_status): Delete.
3713         (init_emit): Allocate emit subarrays using GC.
3714         (gen_reg_rtx): Reallocate subarrays using GC.
3715         (init_emit): Use GC to allocate 'struct emit_status' and its
3716         subarrays.
3717         (mark_emit_status): Mark structure and its subarrays.
3718         * stmt.c (free_stmt_status): Delete.
3719         * expr.c (free_expr_status): Delete.
3720         * function.h: Remove prototypes for deleted functions.
3721         * function.c (free_after_compilation): Don't use deleted functions.
3722         Don't call free() on x_parm_reg_stack_loc.
3723         (free_after_parsing): Don't use free_stmt_status.
3724         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
3725         (mark_function_status): Mark x_parm_reg_stack_loc.
3727         * varasm.c (init_varasm_status): Use GC to allocate
3728         'struct varasm_status' and its fields x_const_rtx_hash_table
3729         and x_const_rtx_sym_hash_table.
3730         (mark_varasm_status): Mark them.
3731         (free_varasm_status): Use GC to free them.
3732         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
3733         (mark_expr_status): Mark the structure itself.
3734         (free_expr_status): Use GC to free the structure.
3735         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
3736         (mark_stmt_status): Mark the 'struct stmt_status' itself.
3737         (init_stmt_for_function): Allocate the structure for GC.
3739         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
3740         (equate_type_number_to_die): Likewise.
3741         * tree.h (TYPE_SYMTAB_DIE): New macro.
3742         (struct die_struct): Predeclare.
3743         (struct tree_type): Add field symtab.die.   Add a tag
3744         to the union type of field symtab.
3746         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
3747         'struct rtvec_def *', not 'struct rtvec_def'.
3749         * function.h (original_arg_vector): Make a real rtvec.
3750         * function.c (ggc_mark_struct_function): Adjust.
3751         * integrate.c (expand_inline_function): Adjust.
3753 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
3755         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
3756         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
3757         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
3758         (TARGET_VERSION_CPU): Define according to the
3759         default target.
3760         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
3761         TARGET_VERSION_CPU.
3762         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
3763         if TARGET_SHMEDIA64.
3764         (LINK_DEFAULT_CPU_EMUL): Define according to the
3765         default target.
3766         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
3767         (SUBTARGET_LINK_SPEC): Define.
3768         (LINK_SPEC): Use SH_LINK_SPEC.
3769         (ASM_SPEC): Remove.
3770         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
3771         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
3772         and TARGET_SHMEDIA64 which abort, for now.
3773         * config/sh/t-netbsd-sh5: New file.
3774         * config/sh/t-netbsd-sh5-32: New file.
3775         * config/sh/t-netbsd-sh5-64: New file.
3777 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
3778             Richard Henderson  <rth@redhat.com>
3780         * config/alpha/alpha.c (reg_or_const_int_operand): New.
3781         (some_operand, input_operand): Accept CONST_VECTOR.
3782         (alpha_extra_constraint): Add 'W'.
3783         (alpha_expand_zap_mask): New.
3784         (alpha_expand_builtin_vector_binop): New.
3785         (enum alpha_builtin): New.
3786         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
3787         (alpha_init_builtins, alpha_expand_builtin): New.
3788         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
3789         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
3790         (PREDICATE_CODES): Update.
3791         * config/alpha/alpha-protos.h: Update.
3792         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
3793         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
3794         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
3795         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
3796         (movv2si, movv2si_fix, movv2si_nofix): New.
3797         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
3798         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
3799         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
3800         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
3801         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
3802         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
3803         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
3804         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
3805         builtin_unpkbw, unpkbw): New.
3806         * doc/extend.texi (Alpha Built-in Functions): New.
3808 2002-06-03  Richard Henderson  <rth@redhat.com>
3810         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
3811         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
3813 2002-06-03  Richard Henderson  <rth@redhat.com>
3815         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
3817         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
3818         (const0_operand): New.
3819         (reg_or_fp0_operand, fp0_operand): Remove.
3820         * config/alpha/alpha.h (PREDICATE_CODES): Update.
3821         * config/alpha/alpha-protos.h: Update.
3822         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
3823         and fp0_operand with reg_or_0_operand and const0_operand.
3825 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
3827         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
3829 2002-06-03  Roger Sayle  <roger@eyesopen.com>
3831         * gcse.c (cprop_jump): Use single_set to get the pattern
3832         from the setcc argument.
3834 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
3836         * diagnostic.h (diagnostic_count): Move from output_buffer to
3837         diagnostic_context.
3838         (diagnostic_kind_count): Adjust definition.
3840 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
3842         * except.c (except.c): Do not rebuild CFG.
3843         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
3844         optimization.
3846 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
3848         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
3849         * toplev.c: Include cfglahout.h
3850         * Makefile.in (toplev.c): Add dependnecy.
3852 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
3854         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
3855         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
3856         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
3858 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
3860         * config/ns32k/netbsd.h: Update copyright years.
3861         (TARGET_OS_CPP_BUILTINS): Define.
3862         (CPP_PREDEFINES): Remove.
3863         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
3864         (TARGET_CPU_CPP_BUILTINS): Define.
3866 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
3868         * emit-rtl.c: Fix formatting.
3869         * errors.h: Likewise.
3870         * except.c: Likewise.
3871         * explow.c: Likewise.
3872         * expmed.c: Likewise.
3873         * expr.c: Likewise.
3874         * expr.h: Likewise.
3876 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
3878         * config/h8300/elf.h: Fix formatting.
3879         * config/h8300/rtems.h: Likewise.
3881 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
3883         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
3885 2002-06-02  Tom Tromey  <tromey@redhat.com>
3887         * fixinc/fixincl.x: Rebuilt.
3888         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
3890 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3892 config/i370:
3893         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
3894         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
3895         * mvs.h: Similarly.
3896         * oe.h: Similarly.
3898 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
3900         * final.c (final):  Allow notes to not have computed addresses;
3901         kill no longer needed STACK_REGS ifdef.
3903 2002-06-02  Richard Henderson  <rth@redhat.com>
3905         * gcse.c (bypass_conditional_jumps): Fix typo last change.
3907 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
3909         * loop.c (emit_prefetch_instructions): Properly place the address
3910         computation.
3912 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
3914         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
3915         (set_block_for_insn): Turn into macro.
3916         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
3917         * cfglayout.c (insn_scopes): Kill.
3918         (scope_to_insns_initialize): Do not use insn_scopes.
3919         (scope_to_insns_finalize): Likewise.
3920         (duplicate_insn_chain): Likewise.
3921         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
3922         * cfgrtl.c (basic_block_for_insn): Kill.
3923         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
3924         (create_basic_block_structure): Use reorder_insns.
3925         (compute_bb_for_insn): Do not use basic_block_for_insn.
3926         (merge_blocks_nomove): Likewise.
3927         (update_bb_for_insn): Likewise.
3928         (verify_flow_info): Likewise.
3929         (set_block_for_insn): Kill.
3930         * combine.c (try_combine): Update gen_rtx_INSN call.
3931         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
3932         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
3933         scopes and BBs.
3934         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
3935         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
3936         Clear BB.
3937         (emit_insns_after): Simplify.
3938         (emit_copy_of_insn_after): Copy scope.
3939         * final.c (final_start_function): Lower scopes.
3940         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
3941         * integrate.c (copy_insn_list): Cope scopes.
3942         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
3943         * loop.c (loop_optimize): Do not care block notes.
3944         * print-rtl.c (print_rtx): Print BB.
3945         * recog.c (apply_change_group): Simplify.
3946         * rtl.c (copy_rtx): Handle 'B'.
3947         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
3948         * rtl.h (Field accessors): Update indexes.
3949         * sched-ebb.c (schedule_ebbs): Do not lower notes.
3950         * sched-rgn.c (schedule_insns): Likewise.
3951         * toplev.c (rest_of_compilation): Lower notes.
3952         * unroll.c (unroll_loop): Do not care scoping notes.
3953         (copy_loop_body): Copy scopes.
3955 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3957 config/h8300:
3958         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
3959         SUBTARGET_SPEC.
3960         * rtems.h: Similarly.
3961         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
3962         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
3963         (TARGET_CPU_CPP_BUILTINS): Use.
3965 2002-06-02  Richard Henderson  <rth@redhat.com>
3967         * alias.c: Include target.h.
3968         (mark_constant_function): Use targetm.binds_local_p instead
3969         of checking TREE_PUBLIC ourselves.
3970         * Makefile.in (alias.o): Add TARGET_H.
3972 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3974         * c-lex.c: Update copyright and file description.
3976 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3978         * config/fr30/fr30.h: Update to new CPP macros.
3980 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3982         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
3984 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3985             Zack Weinberg <zack@codesourcery.com>
3987         * c-common.c (c_common_init): Override cpplib's default
3988         warn_long_long setting.
3989         * c-lex.c (lex_number): Replace with interpret_integer,
3990         interpret_float, narrowest_unsigned_type and
3991         narrowest_signed_type, taking advantage of the new
3992         cpplib functionality.
3993         * cpperror.c (_cpp_begin_message): If a warning is turned
3994         into an error, avoid printing "warning:".
3995         * cppexp.c (cpp_num_sign_extend): New.
3996         * cppinit.c: Update comment.
3997         * cpplib.h (cpp_num_sign_extend): New.
3998         * tree.h: Update comment.
4000 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
4002         * diagnostic.h (struct diagnostic_context):  Add new member
4003         internal_error.
4004         (internal_error_function): Remove declaration.
4005         * diagnostic.c (internal_error_function): Remove definition..
4006         (internal_error): Adjust use.
4008 2002-06-02  Richard Henderson  <rth@redhat.com>
4010         * rtl.h (CC0_P): New.
4011         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
4012         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
4013         (bypass_block): Save old dest block for dump text.
4014         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
4015         Allow only true SET insns, not single_set.
4017 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
4019         * diagnostic.c (diagnostic_finish): Rename to output_flush.
4020         (clear_disgnostic_info): Rename to output_clear_data.  Use false
4021         instead of 0 for boolean value.
4022         Adjust function call throughout.
4024 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
4026         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
4027         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
4029 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4031         * d30v.h (CPP_PREDEFINES): Replace with
4032         (TARGET_CPU_CPP_BUILTINS): New.
4034 2002-06-02  Roger Sayle  <roger@eyesopen.com>
4036         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
4038 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
4040         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
4042 2002-06-02  Richard Henderson  <rth@redhat.com>
4044         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
4046 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4048         Support for C++ constructors/destructors.
4049         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
4050         instead of looping if main() returns.
4051         (asm_file_start): Output global symbols that cause .data and .bss
4052         initialization code to be linked in, unconditionally for now.
4053         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
4054         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
4055         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
4056         (LIBSTDCXX): New.
4057         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
4058         (__tablejump__): New.
4059         (__do_copy_data, __do_clear_bss): New.
4060         (__do_global_ctors, __do_global_dtors): New.
4061         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
4062         _ctors, _dtors.
4064 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4066         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
4067         (CPP_SPEC, CPP_PREDEFINES): Kill.
4068         * c4x/rtems.h (CPP_PREDEFINES): Kill.
4069         (TARGET_OS_CPP_BUILTINS): New.
4071 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
4073         * Makefile.in (tracer.o): New.
4074         * params.def (TRACER_*): New options.
4075         * rtl.h (tracer): Declare.
4076         * timevar.def (TV_TRACER): New.
4077         * toplev.c (dump_file_index): Add DFI_tracer.
4078         (dump_file_info): Add tracer.
4079         (flag_tracer): New.
4080         (lang_indepdenent_options): Add tracer.
4081         (rest_of_compilation): Call tracer.
4082         * tracer.c: New file.
4083         * invoke.texi (-ftracer): Document.
4084         (--param tracer-*): Document.
4086 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
4088         * tree-inline.c (expand_call_inline): Make the statement
4089         expression we generate have a COMPOUND_STMT.
4091 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4093         * gcse.c (cprop_cc0_jump): Function deleted.
4094         (cprop_jump): Take an additional argument which is the possibly
4095         NULL cc setting insn immediately before the conditional jump.
4096         When a MODE_CC set is present, substitute it into the JUMP_INSN
4097         before attempting the constant propagation.
4098         (cprop_insn):  Recognize cc setters followed by conditional jumps
4099         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
4100         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
4101         (find_bypass_set): New function based upon find_avail_set used by
4102         cprop, but finds constant expressions available at the end of
4103         basic blocks.
4104         (bypass_block): New function.  Given a basic block that begins
4105         with a conditional jump and multiple incoming edges, perform
4106         the jump bypass optimization.
4107         (bypass_conditional_jumps): New function.  Call bypass_block with
4108         each suitable basic block in the CFG using a simple single pass.
4110 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4112         * tree.c (real_minus_onep): New function to test for -1.0.
4113         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
4115 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4117         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
4118         and "!p && !q" into "(p|q) == 0" under suitable conditions.
4120 2002-06-01  Andreas Jaeger  <aj@suse.de>
4122         * cppexp.c (cpp_classify_number): Cast precission to int for
4123         correct printf format.
4125 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4127         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
4128         expected, but don't really exist: atmega83, atmega85, attiny10.
4129         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
4130         emulations for all devices.
4131         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
4132         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
4134 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
4136         * config/h8300/h8300-protos.h: Add a prototype for
4137         h8300_shift_needs_scratch_p.
4138         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
4139         * config/h8300/h8300.h (OK_FOR_R): New.
4140         (OK_FOR_S): Likewise.
4141         (OK_FOR_T): Likewise.
4142         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
4143         * config/h8300/h8300.md (anonymous shift patterns): Use
4144         constraints R, S, and T.
4146 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4148         * basic-block.h (struct basic_block_def): New field loop_father.
4149         (BB_VISITED): New flag.
4150         (struct loop): New field pred, removed field shared.
4151         (struct loops): New field parray.
4152         (LOOP_EXITS_DOMS): Removed.
4153         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
4154         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
4155         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
4156         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
4157         verify_loop_structure): Declare.
4158         * cfg.c (entry_exit_blocks): Initialize loop_father field.
4159         * cfganal.c (dfs_enumerate_from): New function.
4160         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
4161         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
4162         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
4163         flow_loop_dump, flow_loops_dump, flow_loops_free,
4164         flow_loop_tree_node_add, flow_loop_level_compute,
4165         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
4166         flow_loop_outside_edge_p): Modified for new infrastructure.
4167         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
4168         redirect_edge_with_latch_update, flow_loop_free): New static functions.
4169         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
4170         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
4171         find_common_loop, verify_loop_structure, loop_latch_edge,
4172         loop_preheader_edge): New functions.
4173         (flow_loops_cfg_dump): Do not show dominators, as this information
4174         does not remain up to date long.
4175         (flow_loops_find): Store results in new format.
4176         * predict.c (propagate_freq, estimate_probability,
4177         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
4178         infrastructure.
4180 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
4182         * except.c (nothrow_function_p): Walk epilogue delay list
4183         checking the insn, not the chain for potential throws.
4185 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
4187         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
4188         (install): Refer to install-cpp directly.
4189         (uninstall-cpp): Folded into uninstall rule.
4190         * configure.in: Delete all code relating to --disable-cpp.
4191         * configure: Regenerate.
4192         * config/t-install-cpp: Delete.
4194 2002-05-31  Richard Henderson  <rth@redhat.com>
4196         * configure.in (HAVE_AS_TLS): Add alpha tests.
4197         * configure: Rebuild.
4198         * config/alpha/alpha.c (TARGET_AS_TLS): New.
4199         (alpha_tls_size, alpha_tls_size_string): New.
4200         (overide_options): Set it.  Always install machine_status hooks.
4201         (input_operand): Accept got tls predicates.
4202         (local_symbol_p): Merge into ...
4203         (local_symbolic_operand): ... here.  Reject tls symbols.
4204         (global_symbolic_operand): Likewise.
4205         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
4206         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
4207         (tp16_symbolic_operand, tp32_symbolic_operand): New.
4208         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
4209         (alpha_encode_section_info): Handle TLS symbols.
4210         (alpha_strip_name_encoding): Likewise.
4211         (alpha_legitimate_address_p): Likewise.
4212         (alpha_legitimize_address): Likewise.
4213         (alpha_expand_mov): Early exit to avoid nop moves.
4214         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
4215         (alpha_init_machine_status, alpha_mark_machine_status,
4216         alpha_free_machine_status): Always define.
4217         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
4218         (print_operand, print_operand_address): Add TLS relocs.
4219         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
4220         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
4221         (TARGET_SWITCHES): Add -mtls-kernel.
4222         (alpha_tls_size, alpha_tls_size_string): New.
4223         (TARGET_OPTIONS): Add -mtls-size=.
4224         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
4225         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
4226         (ASM_OUTPUT_LABELREF): Skip %.
4227         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
4228         (PREDICATE_CODES): Update.
4229         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
4230         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
4231         UNSPEC_TP, UNSPECV_SET_TP): New.
4232         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
4233         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
4234         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
4235         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
4236         (call_value_osf_2_er): Accept anything as op4.
4237         * config/alpha/alpha-protos.h: Update.
4238         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
4240 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
4242         * cppinit.c (append_include_chain): Always pay attention to
4243         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
4244         marker on argument.
4246 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
4248         * target.h: Fix formatting.
4249         * timevar.h: Likewise.
4250         * tlink.c: Likewise.
4251         * toplev.c: Likewise.
4252         * toplev.h: Likewise.
4253         * tree.c: Likewise.
4254         * tree-dump.h: Likewise.
4255         * tree.h: Likewise.
4256         * tree-inline.h: Likewise.
4257         * unroll.c: Likewise.
4258         * unwind-dw2.c: Likewise.
4259         * unwind-dw2-fde.c: Likewise.
4260         * unwind-dw2-fde-glibc.c: Likewise.
4261         * unwind-dw2-fde.h: Likewise.
4262         * unwind.h: Likewise.
4263         * unwind-sjlj.c: Likewise.
4264         * varasm.c: Likewise.
4265         * varray.h: Likewise.
4266         * vmsdbg.h: Likewise.
4267         * vmsdbgout.c: Likewise.
4268         * xcoffout.h: Likewise.
4270 2002-05-31  Igor Shevlyakov <igor@microunity.com>
4272         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
4273         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
4275 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
4277         * gcc.c (cpp_unique_options): Remove "-d" options.
4278         (cpp_debug_options): New spec string.
4279         (default_compilers): Use it.
4280         * objc/lang-specs.h: Likewise.
4282 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
4284         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
4285         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
4286         * gcc/mklibgcc.in: Likewise.
4287         * gcc/config/arc/t-arc: Likewise.
4288         * gcc/configure.in: Likewise.
4289         * gcc/configure: Regenerate.
4291 2002-05-31  Stan Shebs  <shebs@apple.com>
4292             Turly O'Connor  <turly@apple.com>
4294         * c-decl.c (struct binding_level): Change int field n_incomplete
4295         to tree list incomplete_list.
4296         (clear_binding_level): Init field with NULL.
4297         (pushdecl): Add incomplete type to list.
4298         (mark_binding_level): Mark the incomplete list.
4299         (finish_struct): Scan the incomplete list for types instead
4300         of all decls in the current binding level.
4302 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4304         * pa.c (output_millicode_call): Add missing '%' characters.
4305         (output_call): Likewise.
4307 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
4309         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
4310         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
4312 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
4314         * varasm.c (mark_constant_pool): Walk epilogue delay list
4315         checking the insn, not the chain for potential constants.
4317 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
4319         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
4321 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
4323         * i386.c (classify_argument): Properly handle base types.
4325         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
4326         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
4327         registers.
4329 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4331         * gcse.c (gcse_emit_move_after): New.
4332         (pre_delete, hoist_store): Use it.
4334         * reload1.c (emit_input_reload_insns): Use constrain_operands
4335         instead of constraint_accepts_reg_p to verify optimization.
4336         (constraint_accepts_reg_p): Kill
4338         * reload1.c (reload_cse_delete_noop_set): Kill.
4339         (reload_cse_simplify): use delte_insn_and_edges.
4341 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4343         * cfgloop.c (flow_loops_find): Initialize first and last fields
4344         correctly.
4346 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
4348         * c-common.c (builtin_define_std): Correct logic.
4350 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4352         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
4353         (output_call): Likewise.
4355 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4357         * pa.c: Move output.h include after tree.h include.
4358         (pa_asm_output_mi_thunk): Constify identifier lab.
4360 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4362         * config/ns32k/ns32k.h: Define named constants for the
4363         bits in target_flags and use them.
4364         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
4366 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4368         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
4369         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
4370         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
4371         default scheduling model.
4372         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
4373         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
4374         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
4375         * doc/install.texi (hppa*-*-*): Document default scheduling.
4377 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4379         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
4381 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4383         * config.gcc (ns32k-*-netbsd*): Set tm_file to
4384         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
4385         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
4386         netbsd.h, or netbsd-aout.h.
4388 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4390         * longlong.h (count_trailing_zeros): Add missing \, and clean up
4391         whitespace in __ns32000__ case.
4393 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
4395         * expr.c (expand_expr): Output partially zeroed out vectors with
4396         output_constant_def.
4398 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4400         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
4401         (sh-*-netbsdelf*)
4402         (shl*-*-netbsdelf*): New targets.
4403         * config/sh/netbsd-elf.h: New file.
4404         * config/sh/t-netbsd: New file.
4406 2002-05-30  Richard Henderson  <rth@redhat.com>
4407             Eric Botcazou  <ebotcazou@multimania.com>
4409         PR optimization/6822
4410         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
4411         to unsigned int for op1 comparisons.  Use gen_int_mode.
4413 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
4415         * expmed.c (const_mult_add_overflow_p): New.
4416         * expr.h: Declare it.
4417         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
4418         Don't eliminate the biv if the giv has a constant multiplier and
4419         the rhs argument of the comparison does satisfy the predicate.
4420         Use expand_mult_add to compute the replacement constant.
4422 2002-05-30  Osku Salerma  <osku@iki.fi>
4424         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
4425         (c_common_get_alias_set): Handle it.
4426         * doc/extend.texi: Document it.
4428 2002-05-30  Richard Henderson  <rth@redhat.com>
4430         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4431         * toplev.c (process_options): Don't check it.
4432         * doc/tm.texi: Don't document it.
4433         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
4434         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4435         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
4436         frame pointer optimization if current_function_profile.
4438 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
4440         * langhooks.c: Fix formatting.
4441         * langhooks.h: Likewise.
4442         * lcm.c: Likewise.
4443         * libgcc2.c: Likewise.
4444         * lists.c: Likewise.
4445         * local-alloc.c: Likewise.
4446         * loop.c: Likewise.
4447         * loop.h: Likewise.
4449 2002-05-30  Marc Espie <espie@openbsd.org>
4451         * config.gcc (sparc64-*-openbsd*): New.
4452         * config/sparc/openbsd1-64.h: New.
4453         * config/sparc/openbsd64.h: New.
4455 2002-05-30  Jeff Law <law@redhat.com>
4457         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
4458         a dead insn with a REG_RETVAL note when the entire libcall is not
4459         dead and remove the associated REG_LIBCALL note at the same time.
4461 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
4463         * lcm.c (output.h): #include.
4464         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
4465         as an ordinary block.
4466         (optimize_mode_switching): Don't pretend that the exit block is
4467         an ordinary block, or handle sucessors of entry block specially.
4468         Instead, split edges from entry block and to exit block, and
4469         put a computing definition on the thus gained post-entry-block,
4470         and a need on the pre-exit-block.
4472 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
4474         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
4475         * rtl.texi: Document 'B'
4477 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4479         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
4480         at run-time.
4481         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
4483 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
4485         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
4486         const0_rtx instead of NULL_RTX when in error.
4487         (altivec_expand_abs_builtin): Same.
4488         (rs6000_expand_binop_builtin): Same.
4489         (altivec_expand_predicate_builtin): Same.
4490         (altivec_expand_stv_builtin): Same.
4491         (rs6000_expand_ternop_builtin): Same.
4492         (altivec_expand_builtin): Same.
4494 2002-05-29  David S. Miller  <davem@redhat.com>
4496         * rtl.h (clear_emit_caches): Delete.
4497         * integrate.c (output_inline_function): Don't call it.
4498         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
4499         (clear_emit_caches): Delete definition.
4500         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
4502 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
4504         * config/mmix/mmix.c: Include real.h.
4505         (mmix_constant_address_p): Remove redundant test before switch.
4507 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4509         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
4510         only if not already defined.
4512 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
4514         * config/h8300/h8300-protos.h: Remove prototypes for
4515         ok_for_bclr and small_power_of_two.
4516         * config/h8300/h8300.c (small_power_of_two): Remove.
4517         (ok_for_blcr): Likewise.
4518         (fix_bit_operand): Make WHAT deal with an integer instead of a
4519         constraint character.
4520         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
4521         (CONST_OK_FOR_P): Likewise.
4522         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
4523         CONST_OK_FOR_P any more.
4524         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
4525         of fix_bit_operand.
4526         (iorqi3): Likewise.
4527         (xorqi3): Likewise.
4529 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4531         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4532         (CPP_PREDEFINES): Make sure this is undefined.
4533         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
4534         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
4535         or -U__MIPSEB__ before defining one or the other.  Instead,
4536         use %(subtarget_endian_default) if neither -EB nor -EL are
4537         specified.
4538         (SUBTARGET_EXTRA_SPECS): Define.
4539         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
4540         %(netbsd_cpp_spec).
4542 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
4544         * doc/md.texi (Patterns): Note pattern condition pitfall
4545         for unnamed insn.
4547 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
4549         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
4550         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
4551         ternary operations from here...
4552         (rs6000_expand_builtin): ...to here.
4553         New argument expandedp.
4554         Change all instances of altivec_expand_binop_builtin to
4555         rs6000_expand_binop_builtin.
4556         (altivec_expand_unop_builtin): Rename to
4557         rs6000_expand_unop_builtin.
4558         (altivec_expand_binop_builtin): Rename to
4559         rs6000_expand_binop_builtin.
4560         (altivec_expand_ternop_builtin): Rename to
4561         rs6000_expand_ternop_builtin.
4563 2002-05-29  Richard Henderson  <rth@redhat.com>
4565         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
4566         (TARGET_BI_ARCH): Likewise.
4567         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
4568         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
4569         (TARGET_64BIT_DEFAULT): Default to 0.
4570         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
4572 2002-05-29  Richard Henderson  <rth@redhat.com>
4574         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
4575         (get_pc_thunk_name): New.
4576         (output_set_got): Use it.
4577         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
4578         into linkonce sections.
4580 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4582         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4583         (CPP_PREDEFINES): Make sure this is undefined.
4584         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
4585         (CPP_SUBTARGET_SPEC): Don't provide different versions for
4586         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
4587         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
4588         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
4589         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4590         (CPP_PREDEFINES): Make sure this is undefined.
4591         (SUBTARGET_EXTRA_SPECS): Define.
4592         (CPP_SPEC): Use %(netbsd_cpp_spec).
4594 2002-05-29  Jeff Law <law@redhat.com>
4596         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
4598         * flow.c (propagate_one_insn): Do not remove a dead insn if it
4599         contains a REG_RETVAL note.
4601         * haifa-sched (sched_analyze): Remove another useless clearing
4602         of SCHED_GROUP_P I missed yesterday.
4604         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
4605         * pa.c (pa_asm_output_mi_thunk): New function.
4606         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
4608 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4609             Marek Michalkiewicz  <marekm@amelek.gda.pl>
4611         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
4612         (avr_asm_only_p): Make non-static.
4613         (enum avr_arch): Remove.
4614         (avr_arch_types): New.
4615         (avr_mcu_types): Update.
4616         (avr_override_options): Use avr_arch_types table instead of switch.
4617         * avr.h (CPP_PREDEFINES): Die.
4618         (avr_base_arch_macro, avr_extra_arch_macro): New.
4619         (TARGET_CPU_CPP_BUILTINS): New.
4620         (CPP_SPEC, EXTRA_SPECS): Simplify.
4621         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
4622         CPP_AVR5_SPEC): Die.
4624 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4626         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4627         NETBSD_OS_CPP_BUILTINS_AOUT.
4628         (SUBTARGET_EXTRA_SPECS): Define.
4629         (CPP_SPEC): Use %(netbsd_cpp_spec).
4631 2002-05-29  Richard Henderson  <rth@redhat.com>
4633         * config/i386/i386.c (ix86_output_function_epilogue): New.
4634         (TARGET_ASM_FUNCTION_EPILOGUE): New.
4635         (pic_label_name): Remove.
4636         (pic_labels_used): New.
4637         (ix86_asm_file_end): Emit one pc load stub for each register used.
4638         (output_set_got): Generate deep pc load to any register.
4639         (ix86_select_alt_pic_regnum): New.
4640         (ix86_save_reg): Don't save pic register if we can find a valid
4641         call-clobbered replacement.
4642         (ix86_expand_prologue): If we found a valid replacement, renumber
4643         pic_offset_table_rtx.
4644         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
4645         pic_offset_table_rtx after reload.
4646         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
4647         * config/i386/i386.md (set_got): Make insn, not expander.
4648         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
4650 2002-05-29  Richard Henderson  <rth@redhat.com>
4652         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
4653         alignment for alloca.
4655 2002-05-29  Richard Henderson  <rth@redhat.com>
4657         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
4658         (print_operand_address): Only add rip for symbolic addresses
4659         for which we do not have another relocation type.
4661 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4663         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4664         (EXTRA_SPECS): Add netbsd_cpp_spec.
4665         (CPP_SPEC): Use %(netbsd_cpp_spec).
4666         (CPP_PREDEFINES): Remove.
4667         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4668         (EXTRA_SPECS): Define.
4669         (CPP_SPEC): Use %(netbsd_cpp_spec).
4670         (CPP_PREDEFINES): Remove.
4672 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4674         PR preprocessor/6844
4675         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
4676         NUL.
4678 2002-05-29  Eric Christopher  <echristo@redhat.com>
4680         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
4681         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
4683 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
4685         * config/fr30/fr30.md: Remove previous restriction on splits.
4686         Enforce conformance through gen_lowpart and cont_int_operand.
4687         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
4688         as the assembler does not support ".bss".
4690 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4692         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4693         (CPP_PREDEFINES): Remove.
4694         (SUBTARGET_EXTRA_SPECS): Define.
4695         (CPP_SPEC): Use %(netbsd_cpp_spec).
4696         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4697         (CPP_PREDEFINES): Remove.
4698         (SUBTARGET_EXTRA_SPECS): Define.
4699         (CPP_SPEC): Use %(netbsd_cpp_spec).
4700         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
4701         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
4702         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
4703         Add netbsd_cpp_spec.
4704         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
4706 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4707             Zack Weinberg <zack@codesourcery.com>
4709         * cppexp.c (cpp_num): Move to cpplib.h.
4710         (CPP_ERROR): Remove.
4711         (interpret_float_suffix, interpret_int_suffix): New.
4712         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
4713         (cpp_classify_number, cpp_interpret_integer): New.
4714         (interpret_number): Remove.
4715         (eval_token): Update to use new routines.
4716         * cpphash.h (cpp_num_part): Move to cpplib.h.
4717         * cppinit.c (cpp_post_options): Set warn_long_long.
4718         * cpplib.h (struct cpp_options): Add warn_long_long.
4719         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
4720         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
4721         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
4722         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
4723         cpp_interpret_integer): New.
4725 2002-05-29  Joel Sherrill <joel@OARcorp.com>
4727         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
4729 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4731         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4732         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
4733         (CPP_SUBTARGET_SPEC): Define.
4734         (SUBTARGET_EXTRA_SPECS): Define.
4735         (CPP_SPEC): Remove.
4737 2002-05-29  Chris Lattner  <sabre@nondot.org>
4739         * ssa.c (rename_insn_1): Rename uses of undefined registers to
4740         prevent confusion if/when the register is defined.
4742 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
4744         PR target/6838
4745         * config/cris/cris.md: Fix typos and thinkos in comments.
4746         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
4747         second alternative.
4748         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
4749         ("*mov_sideqi_mem"): Similar, but for operand 3.
4750         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
4751         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
4752         Remove spurious mode specifier on operand 2.
4754 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
4756         * config/h8300/h8300-protos.h: Remove the prototype for
4757         o_operand.
4758         Add prototypes for single_one_operand and single_zero_operand.
4759         * config/h8300/h8300.c (o_operand): Remove.
4760         (single_one_operand): New.
4761         (single_zero_operand): Likewise.
4762         (print_operand): For 'V' operand, and the operand with 0xff.
4763         For 'V' and 'W' operands, do not and the bit position with 7.
4764         * config/h8300/h8300.md (various anonymous patterns): Replace
4765         use of exact_log2 with single_one_operand/single_zero_operand.
4767 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
4769         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
4771 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
4773         * config/s390/s390.c (legitimate_pic_operand_p): Do not
4774         accept symbolic LARL operands.
4775         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
4776         epilogue insns.
4778 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
4780         * config/s390/s390.md (cmpstr_64/31): Mark whole
4781         input registers as used.
4783 2002-05-28  Richard Henderson  <rth@redhat.com>
4785         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
4786         not current_function_uses_pic_offset_table and
4787         current_function_uses_const_pool; examine current_function_profile.
4788         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
4789         input to blockage if needed.
4790         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
4791         (legitimize_pic_address): Likewise.  Set regs_ever_live for
4792         pic_offset_table_rtx when invoked during reload.
4793         * config/i386/i386.h (FINALIZE_PIC): Remove.
4794         * config/i386/i386.md (tablejump): Reformat.  Do not set
4795         current_function_uses_pic_offset_table.
4796         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
4797         (blockage): Accept anything as operand 0.
4799 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
4801         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
4802         common CPP built-ins for all NetBSD a.out targets.
4803         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
4804         common CPP built-ins for all NetBSD ELF targets.
4805         * config/netbsd.h: Add missing notice.
4806         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
4807         for all NetBSD targets.
4808         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
4809         for all NetBSD targets using an LP64 code model.
4810         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
4811         NetBSD targets.
4813 2002-05-28  Richard Henderson  <rth@redhat.com>
4815         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
4816         update if UPDATE_LIFE_LOCAL.
4818 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
4820         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
4822 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
4823                           Jason R. Thorpe <thorpej@wasabisystems.com>
4825         config/sh reorganization to factor out endianness and coff:
4827         * config/sh/little.h: New file.
4828         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
4829         defined, define to 0 to select big-endian.
4830         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
4831         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4832         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4833         * config/sh/t-be: New file.
4834         * config/sh/t-le: New file.
4836         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
4837         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
4838         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
4839         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
4840         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
4841         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
4842         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
4843         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
4844         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
4845         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
4846         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
4847         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
4848         (LINK_SPEC): Define to SH_LINK_SPEC.
4849         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
4850         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
4851         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
4852         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
4853         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
4854         * config/sh/coff.h: New file.
4855         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
4856         (TARGET_OBJFMT_CPP_BUILTINS): Define.
4857         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
4858         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
4859         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
4860         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
4861         (PTRDIFF_TYPE): Likewise.
4862         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
4863         (CPP_PREDEFINES): Don't define.
4864         (TARGET_OBJFMT_CPP_BUILTINS): Define.
4865         (LINK_SPEC): Define to SH_LINK_SPEC.
4866         (LINK_EMUL_PREFIX): Redefine.
4867         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
4868         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
4869         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
4870         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
4871         (TARGET_OS_CPP_BUILTINS): Define.
4872         (TARGET_DEFAULT): Redefine.
4873         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
4874         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
4875         (LINK_SPEC): Don't redefine.
4876         (LINK_DEFAULT_CPU_EMUL): Redefine.
4877         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4878         * sh.c (sh_asm_named_section): Don't declare / define.
4879         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
4880         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
4881         (sh64-*-elf* tm_file): Likewise.
4882         (sh-*-rtemself* tm_file): Likewise.
4883         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
4884         (sh-*-linux* tmake_file): Add sh/t-le.
4885         (sh-*-rtems* tm_file): Add sh/coff.h
4886         (sh-*-* tm_file): Likewise.
4888 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
4890         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
4891         CONSTANT_POOL_ADDRESS_P.
4893         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
4895 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
4896             Jeff Law <law@redhat.com>
4898         * optabs.c (expand_binop): Fix nwords sign warnings.
4899         generate pseudo for add_optab.
4901         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
4902         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
4904 2002-05-28      Marc Espie <espie@openbsd.org>
4906         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
4907         inherited from gas.h.
4908         (ASM_QUAD):  Undef.  OpenBSD does not support it.
4910 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
4912         * doc/install.texi (binaries): Change mingw binaries
4913         link to www.mingw.org.
4915 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4917         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
4919 2002-05-28  Richard Henderson  <rth@redhat.com>
4921         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
4922         bottom alignment for leaf functions.
4924 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
4926         * config/pa/milli32.S, config/pa/lib1funcs.asm,
4927         config/sparc/sol2-g1.asm: Delete unused files.
4929 2002-05-28  Richard Henderson  <rth@redhat.com>
4931         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
4933         * flow.c (calculate_global_regs_live): Rename call_used to
4934         invalidated_by_call.  Initialize from regs_invalidated_by_call
4935         instead of call_used_regs.
4937         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
4938         DECL_EXTERNAL.
4940 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
4942         * tree.h: Don't include real.h.
4943         Forward-declare struct realvaluetype.
4944         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
4945         contain it.
4946         (TREE_REAL_CST_PTR): New accessor.
4947         (TREE_REAL_CST): Update.
4948         * real.h: Include machmode.h.
4949         (realvaluetype): Make it struct realvaluetype, not a typedef.
4950         (build_real): Prototype here.
4952         * tree.c: Include real.h.
4953         (build_real): Allocate the REAL_VALUE_TYPE as a separate
4954         object in GC memory, set TREE_REAL_CST_PTR to point to it.
4955         (build_real_from_int_cst): Use build_real.
4956         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
4957         REAL_CST.
4959         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
4960         fold-const.c, print-tree.c, real.c: Include real.h.
4961         * Makefile.in: Update dependency lists.
4963 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4965         * basic-block.h (last_basic_block): Declare.
4966         (expunge_block_nocompact): Declaration removed.
4967         (compact_blocks): Declare.
4968         * cfg.c (last_basic_block): New variable.
4969         (expunge_block_nocompact): Removed.
4970         (expunge_block): Do not compact basic blocks.
4971         (compact_blocks): New.
4972         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
4973         longer change.
4974         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
4975         last_basic_block.
4976         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
4977         real positions of blocks.
4978         (delete_unreachable_blocks): Simplified -- quadratic behavior now
4979         cannot occur.
4980         (cleanup_cfg): Compact blocks.
4981         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
4982         basic_block_info varray.
4983         (flow_delete_block): Comment update.
4984         (back_edge_of_syntactic_loop_p): Modify position check code.
4985         (verify_flow_info): Update checking.
4986         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
4987         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
4988         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
4989         indices no longer change.
4990         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
4991         last_basic_block.
4992         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
4993         * profile.c (branch_prob): Compact blocks.
4994         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
4995         last_basic_block.
4997 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
4999         * config/h8300/h8300.md (two anonymous patterns): New.
5001 2002-05-28  David S. Miller  <davem@redhat.com>
5003         * config/sparc/sparc.md (cpu): Tidy.
5004         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
5005         'trap'.
5006         (in_call_delay): Delete reference to 'return' type.
5007         (eligible_for_return_delay, in_return_delay, define_delay
5008         referencing those): Delete.
5009         (rest of file): Use new type attributes as appropriate.
5010         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
5011         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
5012         * config/sparc/ultra1_2.md (us1_single): New reservation.
5013         (us1_ialuX): Likewise.
5014         * config/sparc/ultra3.md (us3_single): Likewise.
5015         (us3_ialuX): Likewise.
5016         (us3_imul, us3_idiv): Tweak.
5018 2002-05-28  Richard Henderson  <rth@redhat.com>
5020         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
5021         STRING_CST.
5023 2002-05-28  Richard Henderson  <rth@redhat.com>
5025         * config.gcc: Obsolete mn10200.
5027 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5029         * cppexp.c (interpret_number): Optimize for single-digit
5030         and less-than-half-precision cases.
5031         (num_trim, num_positive, num_div_op): Cast constants.
5033 2002-05-27  Bo Thorsen  <bo@suse.de>
5035         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
5036         3.1 branch. The file was made by Jakub Jelinek.
5037         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
5038         support so multilib doesn't break. And don't define this at all
5039         when -Dinhibit_libc is used.
5040         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
5041         * config/i386/t-linux64: Implement full multilib support. Patch
5042         originally done by Andreas Jaeger and Jakub Jelinek.
5044 2002-05-27  Roger Sayle  <roger@eyesopen.com>
5046         * c-common.c: Add support for __attribute__((nothrow)) to specify
5047         that a function cannot throw an exception (using TREE_NOTHROW).
5048         (handle_nothrow_attribute): New function to process this attribute.
5050         * doc/extend.texi: Document the new nothrow function attribute.
5052 2002-05-27  H.J. Lu  (hjl@gnu.org)
5054         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
5055         (num_positive): Likewise.
5056         (num_div_op): Likewise.
5058 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5060         * c-common.c (c_common_init): Always use intmax_t.
5062 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5064         * c-common.c (c_common_init): Use intmax_t for now.
5066 2002-05-24  Andrew Haley  <aph@redhat.com>
5068         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
5069         if T is a boolean type.
5071 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5073         * basic-block.h (last_basic_block): Defined as synonym for
5074         n_basic_blocks.
5075         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
5076         flow_depth_first_order_compute, flow_preorder_transversal_compute,
5077         flow_dfs_compute_reverse_init): Replaced relevant occurences of
5078         n_basic_blocks with last_basic_block.
5079         * cfgbuild.c (make_edges): Likewise.
5080         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
5081         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
5082         * combine.c (combine_instructions): Likewise.
5083         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
5084         iterative_dataflow_bitmap): Likewise.
5085         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5086         calc_idoms, idoms_to_doms): Likewise.
5087         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
5088         Likewise.
5089         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
5090         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
5091         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
5092         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
5093         delete_null_pointer_checks, compute_code_hoist_vbeinout,
5094         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5095         compute_store_table, build_store_vectors): Likewise.
5096         * haifa-sched.c (sched_init): Likewise.
5097         * ifcvt.c (if_convert): Likewise.
5098         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5099         pre_edge_lcm, compute_available, compute_nearerout,
5100         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
5101         Likewise.
5102         * predict.c (estimate_probability, process_note_prediction,
5103         note_prediction_to_br_prob): Likewise.
5104         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
5105         * recog.c (split_all_insns, peephole2_optimize): Likewise.
5106         * regrename.c (copyprop_hardreg_forward): Likewise.
5107         * resource.c (init_resource_info): Likewise.
5108         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
5109         init_regions, schedule_insns): Likewise.
5110         * ssa-ccp.c (ssa_const_prop): Likewise.
5111         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5112         * ssa.c (compute_dominance_frontiers,
5113         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
5115         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
5116         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
5117         sizes consistently.
5119 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
5121         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
5122         new.
5123         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
5124         hoist_insn_after, hoist_insn_to_edge): New.
5126 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
5128         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
5129         (PROP_FINAL): Include.
5130         * flow.c (life_analysis, update_life_info,
5131         init_propagate_block_info, mark_set_1, mark_used_rgs):
5132         Support SCAN_DEAD_STORE.
5134 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5136         * c-common.c (c_common_init): Set CPP arithmetic precision.
5137         * cppexp.c (cpp_num_part): Move typedef ...
5138         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
5139         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
5140         (sanity_checks): Update.
5142 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
5144         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
5145         (mkheaders): New rule.
5146         (install-mkheaders): New rule.
5147         * configure.in (all_outputs): Add mkheaders.
5148         * configure: Regenerate.
5149         * mkheaders.in: New file.
5151 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
5153         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
5155 2002-05-26  Andreas Jaeger  <aj@suse.de>
5157         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
5159 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5161         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
5162         right_shift): Remove.
5163         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
5164         HIGH_PART): New.
5165         (struct op): Use cpp_num.
5166         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
5167         num_part_mul, num_unary_op, num_binary_op, num_negate,
5168         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
5169         num_div_op, num_lshift, num_rshift, append_digit): New.
5170         (interpret_number, parse_defined, eval_token, reduce): Update
5171         for two-integer arithmetic.
5172         (binary_handler): New typedef.
5173         (optab): Update.
5174         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
5175         (_cpp_parse_expr, reduce): Update to handle two-integers.
5176         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
5178 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5180         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
5181         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
5182         branch insn into account, do not assume 1.
5183         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
5184         over single word insn.  Handle upper half of I/O space too.
5185         * config/avr/avr.md (*sbrx_branch): Use it.
5186         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
5187         (*sbix_branch, *sbix_branch_bit7): Likewise.
5188         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
5189         Use RTL peepholes to optimize register operand sign tests.
5191 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5193         * config/avr/avr.c (avr_asm_only_p): New variable.
5194         (avr_override_options): Set it here if AVR1.
5195         (asm_file_start): Test it here, report an error if set.
5197 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
5199         * alias.c: Fix formatting.
5200         * attribs.c: Likewise.
5201         * bb-reorder.c: Likewise.
5202         * bitmap.c: Likewise.
5203         * bitmap.h: Likewise.
5204         * builtins.c: Likewise.
5206 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
5208         * reload.c (find_valid_class): Accept new argument DEST,
5209         choose class accordingly.
5210         (push_reload): Update callers.
5212 2002-05-26  Andreas Jaeger  <aj@suse.de>
5214         * combine.c (combine_instructions): Do not indent #if for
5215         traditional C.
5217 2002-05-25  Richard Henderson  <rth@redhat.com>
5219         * c-pragma.c (apply_pragma_weak): Convert value identifier to
5220         string for decl_attributes.
5221         (handle_pragma_weak): Call assemble_alias if we're modifying
5222         an existing decl.
5224 2002-05-25  Richard Henderson  <rth@redhat.com>
5226         PR target/6788
5227         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
5228         using rtl instead of fprintf.
5229         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
5230         * config/sparc/sparc-protos.h: Update.
5232 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5234         * Makefile.in (C_COMMON_H): Fix.
5235         Update other targets.
5236         * c-common.c: Don't include c-lex.h.
5237         (builtin_define_with_value): Make static and prototype.
5238         (builtin_define_std): Move from c-lex.h.
5239         * c-common.h (init_c_lex): Move from c-lex.h.
5240         * c-decl.c: Don't include c-lex.h.
5241         (make_pointer_declarator): Move from c-parse.in.
5242         * c-lex.c: Don't include c-lex.h.
5243         * c-lex.h: Remove.
5244         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
5245         (make_pointer_declarator): Move to c-decl.c.
5246         * c-pragma.c: Don't include c-lex.h.
5247         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
5248         * c-tree.h (make_pointer_declarator): New.
5249 doc:
5250         * passes.texi, tm.texi: Update.
5251 objc:
5252         * Make-lang.in: Update and correct.
5253         * objc-act.c: Don't include c-lex.h or cpplib.h.
5254 treelang:
5255         * treetree.c: Don't include c-lex.h.
5256 config:
5257         * darwin-c.c: Don't include c-lex.h.
5258         * c4x/c4x-c.c: Don't include c-lex.h.
5259         * c4x/t-c4x: Update.
5260         * i370/i370-c.c: Don't include c-lex.h.
5261         * i370/t-i370: Update.
5262         * i960/i960-c.c: Don't include c-lex.h.
5263         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
5264         * i960/t-960bare: Update.
5265         * i960/t-vxworks: Update.
5266         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
5267         * rs6000/t-darwin: Update.
5268         * rs6000/t-rs6000-c-rule: Update.
5269         * v850/v850-c.c: Don't include c-lex.h.
5270         * v850/v850.c: Don't include c-lex.h or cpplib.h.
5273 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
5275         * tree.def: Fix typos.
5276         * doc/install.texi: Likewise.
5278 2002-05-25  Richard Henderson  <rth@redhat.com>
5280         * configure.in (HAVE_AS_TLS): Add ia64 test.
5281         * configure: Rebuild.
5282         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
5283         (override_options): Set it.
5284         (TARGET_HAVE_TLS): New.
5285         (sdata_symbolic_operand): Look for 's'.
5286         (tls_symbolic_operand): New.
5287         (ia64_expand_load_address): Abort for tls symbols.
5288         (gen_tls_get_addr): New.
5289         (gen_thread_pointer): New.
5290         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
5291         (rtx_needs_barrier): Add new unspecs.
5292         (ia64_encode_section_info): Handle tls symbols.
5293         (ia64_strip_name_encoding): Strip two encoding chars.
5294         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
5295         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
5296         (TARGET_OPTIONS): Add tls-size.
5297         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
5298         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
5299         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
5300         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
5301         (movsf, movdf): Likewise.
5302         (movdi_symbolic): Use match_scratch.  Don't split if we won't
5303         have a scratch availiable.
5304         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
5305         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
5306         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
5307         * config/ia64/ia64-protos.h: Update.
5308         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
5309         sdata_symbolic_operand.
5310         (ASM_OUTPUT_LABELREF): Strip two characters.
5312 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
5314         * combine.c (simplify_set): Remove an unnecessary subreg.
5316 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5318         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
5320         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
5322 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
5324         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
5326 2002-05-25  Roger Sayle  <roger@eyesopen.com>
5328         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
5329         (cond (compare x y) 0) into the equivalent (cond x y).
5331 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
5333         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
5335 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
5337         * config.gcc: Remove all stanzas for previously obsoleted
5338         systems.  Where necessary, add explicit error stanzas to
5339         prevent removed systems from being misidentified as something
5340         else.  Begin a fresh obsoletions list, with the systems that
5341         were reprieved last round.
5342         * doc/install.texi: Remove all mention of dead targets.
5343         * fixinc/mkfixinc.sh: Likewise.
5345         * config/arm/arm.h: Bit 31 of target_flags is no longer
5346         reserved.
5348         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
5349         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
5350         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
5351         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
5352         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
5353         config/alpha/osf12.h, config/alpha/osf2or3.h,
5354         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
5355         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
5356         config/clipper/clipper-protos.h, config/clipper/clipper.c,
5357         config/clipper/clipper.h, config/clipper/clipper.md,
5358         config/clipper/clix.h, config/convex/convex-protos.h,
5359         config/convex/convex.c, config/convex/convex.h,
5360         config/convex/convex.md, config/convex/fixinc.convex,
5361         config/convex/proto.h, config/elxsi/elxsi-protos.h,
5362         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
5363         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
5364         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
5365         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
5366         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
5367         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
5368         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
5369         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
5370         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
5371         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
5372         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
5373         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
5374         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
5375         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
5376         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
5377         config/m68k/altos3068.h, config/m68k/apollo68.h,
5378         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
5379         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
5380         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
5381         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
5382         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
5383         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
5384         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
5385         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
5386         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
5387         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
5388         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
5389         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
5390         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
5391         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
5392         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
5393         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
5394         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
5395         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
5396         config/mips/dec-osf1.h, config/mips/elflorion.h,
5397         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
5398         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
5399         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
5400         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
5401         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
5402         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
5403         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
5404         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
5405         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
5406         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
5407         config/ns32k/sequent.h, config/ns32k/tek6000.h,
5408         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
5409         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
5410         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
5411         config/sparc/rtems.h, config/we32k/we32k-protos.h,
5412         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
5413         Delete file.
5415 2002-05-24  Richard Henderson  <rth@redhat.com>
5417         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
5418         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
5419         * config/i386/i386.c (tls_model_chars): Add leading space.
5420         (tls_symbolic_operand): Don't bias by 1.
5421         (legitimize_address): Don't unbias by 1.
5423 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
5425         * lcm.c (optimize_mode_switching): Change bb used as indices
5426         to bb->index.
5428 2002-05-24  Richard Henderson  <rth@redhat.com>
5430         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
5431         of update_life_info_in_dirty_blocks.
5433 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
5435         PR other/6782
5436         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
5438 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5440         PR preprocessor/6780
5441         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
5443 2002-05-24  Jim Blandy  <jimb@redhat.com>
5445         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
5446         entry with a type code of zero, marking the end of the compilation
5447         unit's macro info.
5449 2002-05-24  Richard Henderson  <rth@redhat.com>
5451         * varasm.c (asm_output_bss): Always output one byte.
5452         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
5454 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5456         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
5457         namespace.
5459 2002-05-24  Andreas Jaeger  <aj@suse.de>
5461         * ggc-page.c (alloc_page): Cast variables of type size_t to
5462         unsigned long, adjust printf format string.
5463         (ggc_alloc): Likewise.
5464         (ggc_print_statistics): Likewise.
5465         (ggc_print_statistics): Correct printf format string for SCALE to
5466         use unsigned long.
5468 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
5470         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
5472 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
5473             Zack Weinberg     <zack@codesourcery.com>
5475         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
5476         quoted strings.
5477         * dwarf2out.c (lookup_filename): Properly quote filename in .file
5478         directive in assembly file.
5479         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5480         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5481         * config/pj/pj.h (ASM_FILE_START): Likewise.
5482         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5483         * config/avr/avr.c (asm_file_end): Likewise.
5484         * toplev.c (output_quoted_string): Handle possibly signed plain
5485         char.
5486         * toplev.h (output_clean_symbol_name): Declare
5487         * toplev.c (output_clean_symbol_name): Define.
5488         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
5489         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
5491 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
5493         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
5495 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
5497         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
5498         of size of unsigned.
5500 2002-05-23  Richard Henderson  <rth@redhat.com>
5502         * configure.in (HAVE_AS_TLS): New test.
5503         * config.in, configure: Rebuild.
5504         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
5505         (ix86_tls_dialect_string, ix86_tls_dialect): New.
5506         (override_options): Set it.
5507         (tls_model_chars, tls_symbolic_operand): New.
5508         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
5509         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
5510         (local_exec_symbolic_operand): New.
5511         (get_pic_label_name): Merge into output_set_got.
5512         (ix86_asm_file_end): Emit pic_label_name if defined.
5513         (legitimate_constant_p, constant_address_p): New.
5514         (legitimate_pic_operand_p): New.
5515         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
5516         (legitimate_address_p): Likewise.
5517         (ix86_encode_section_info): Rename from i386_; handle tls decls.
5518         (ix86_strip_name_encoding): New.
5519         (get_thread_pointer): New.
5520         (legitimize_address): Handle tls symbols.
5521         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
5522         Remove UNSPEC_PLT.
5523         (struct machine_function): Add some_ld_name.
5524         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
5525         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
5526         (output_addr_const_extra): New.
5527         (maybe_get_pool_constant): New.
5528         (ix86_split_to_parts): Use it.
5529         (ix86_expand_move): Handle tls symbols.
5530         (ix86_tls_get_addr): New.
5531         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
5532         (TARGET_OPTIONS): Add tls-dialect.
5533         (CONSTANT_ADDRESS_P): Use new out-of-line function.
5534         (LEGITIMATE_CONSTANT_P): Likewise.
5535         (LEGITIMATE_PIC_OPERAND_P): Likewise.
5536         (TARGET_STRIP_NAME_ENCODING): New.
5537         (ASM_OUTPUT_LABELREF): New.
5538         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
5539         (OUTPUT_ADDR_CONST_EXTRA): New.
5540         (PREDICATE_CODES): Update.
5541         (ix86_tls_dialect, ix86_tls_dialect_string): New.
5542         * config/i386/i386.md: Regroup and renumber unspec constants.
5543         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
5544         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
5545         (tls_global_dynamic, tls_local_dynamic_base): New.
5546         (tls_local_dynamic_once): New.
5547         * config/i386/i386-protos.h: Update.
5549 2002-05-23  Richard Henderson  <rth@redhat.com>
5551         * genemit.c (gen_insn): Print file:lineno comment before function.
5552         (main): likewise.
5553         * gensupport.c (struct queue_elem): Add filename member.
5554         (queue_pattern): Initialize it; update all callers.
5555         (process_include): Don't free filename.
5556         (read_md_rtx): Set read_rtx_filename.
5558 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
5560         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
5562 2002-05-23  Richard Henderson  <rth@redhat.com>
5564         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
5566 2002-05-23  Richard Henderson  <rth@redhat.com>
5568         * doc/extend.texi (C++98 Thread-Local Edits): Update with
5569         commentary from Mark.
5571 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5573         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
5574         Use FOR_EACH_BB macros to iterate over basic block chain.
5575         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
5576         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
5577         Likewise.
5578         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
5579         find_unreachable_blocks, create_edge_list, verify_edge_list,
5580         remove_fake_edges, add_noreturn_fake_exit_edges,
5581         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
5582         Likewise.
5583         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
5584         find_sub_basic_blocks): Likewise.
5585         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
5586         Likewise.
5587         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
5588         Likewise.
5589         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
5590         Likewise.
5591         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
5592         commit_edge_insertions, commit_edge_insertions_watch_calls,
5593         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
5594         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
5595         * conflict.c (conflict_graph_compute): Likewise.
5596         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5597         df_modified_p, df_refs_unlink, df_dump): Likewise.
5598         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
5599         * final.c (compute_alignments): Likewise.
5600         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
5601         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
5602         count_or_remove_death_notes): Likewise.
5603         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
5604         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
5605         classic_gcse, compute_transp, cprop, compute_pre_data,
5606         compute_transpout, invalidate_nonnull_info,
5607         delete_null_pointer_checks_1, delete_null_pointer_checks,
5608         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
5609         compute_store_table, build_store_vectors, store_motion): Likewise.
5610         * global.c (global_conflicts, mark_elimination): Likewise.
5611         * graph.c (print_rtl_graph_with_bb): Likewise.
5612         * haifa-sched.c (sched_init): Likewise.
5613         * ifcvt.c (if_convert): Likewise.
5614         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5615         compute_available, compute_nearerout, compute_rev_insert_delete,
5616         optimize_mode_switching): Likewise.
5617         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
5618         * predict.c (estimate_probability, note_prediction_to_br_prob,
5619         propagate_freq, counts_to_freqs, expensive_function_p,
5620         estimate_bb_frequencies): Likewise.
5621         * profile.c (instrument_edges, get_exec_counts,
5622         compute_branch_probabilities, compute_checksum, branch_prob,
5623         find_spanning_tree): Likewise.
5624         * recog.c (split_all_insns, peephole2_optimize): Likewise.
5625         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
5626         Likewise.
5627         * regclass.c (scan_one_insn, regclass): Likewise.
5628         * regmove.c (mark_flags_life_zones, regmove_optimize,
5629         record_stack_memrefs): Likewise.
5630         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
5631         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
5632         * resource.c (find_basic_block): Likewise.
5633         * sched-ebb.c (schedule_ebbs): Likewise.
5634         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
5635         find_single_block_region, find_rgns, schedule_insns)
5636         * sibcall.c (optimize_sibling_and_tail_recursive_call)
5637         * ssa-ccp.c (optimize_unexecutable_edges,
5638         ssa_ccp_df_delete_unreachable_insns): Likewise.
5639         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5640         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
5641         rename_block, convert_to_ssa, compute_conservative_reg_partition,
5642         compute_coalesced_reg_partition, rename_equivalent_regs,
5643         convert_from_ssa): Likewise.
5644         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
5645         process_for_unwind_directive): Likewise.
5647         * df.c (FOR_ALL_BBS): Removed.
5648         * gcse.c (struct null_pointer_info): Type of current_block field
5649         changed.
5650         (struct reg_avail_info): Type of last_bb field changed.
5651         * config/ia64/ia64.c (block_num): Removed.
5652         (need_copy_state): Type changed.
5653         (last_block): New.
5655 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5657         * cppinit.c (mark_named_operators): Split out from init_builtins.
5658         (cpp_finish_options): Call it from here instead.
5660 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
5662         * builtin-attrs.def: Update copyright years.
5663         (ATTR_NONNULL): New attribute identifier.
5664         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
5665         attribute tree lists.
5666         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
5667         format operand.
5668         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
5669         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
5670         attribute lists.  Chain the appropriate nonnull attribute.
5671         * c-format.c (check_format_arg): Remove null format string
5672         warning.
5673         * testsuite/gcc.dg/format/null-1.c: New test.
5675 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5677         * Makefile.in (ADAC): Define.
5678         (SYSLIBS): Define.
5679         (.SUFFIXES): Move before language makefile fragments.
5680         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
5682 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
5684         * varasm.c (make_decl_rtl): Don't allow weak variables to be
5685         placed in common.
5687 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5689         * cfg.c (dump_flow_info): Print results of
5690         maybe_hot/probably_never_executed predicates.
5691         * toplev.c (open_dump_file): Print function frequency.
5693 2002-05-23  David S. Miller  <davem@redhat.com>
5695         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
5696         regsets.
5698 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
5700         * c-common.c (warn_nonnull): Declare.
5701         (c_common_attribute_table): Add "nonnull" attribute.
5702         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
5703         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
5704         check_function_arguments_recurse): New functions.
5705         * c-common.h (warn_nonnull): Declare extern.
5706         (check_function_arguments, check_function_arguments_recurse): New
5707         prototypes.
5708         * c-decl.c (c_decode_option): Add -Wnonnull option.
5709         * c-format.c (set_Wformat): Set warn_nonnull if enabling
5710         format checking.
5711         (format_check_context): New structure.
5712         (check_format_info_recurse): Remove recursion and rename to...
5713         (check_format_arg): ...this.  Update comment.
5714         (check_format_info): Use check_function_arguments_recurse.
5715         * c-typeck.c (build_function_call): Call check_function_arguments
5716         instead of check_function_format.
5717         * doc/extend.texi: Document "nonnull" attribute.
5718         * doc/invoke.texi: Docuemnt -Wnonnull option.
5719         * testsuite/gcc.dg/nonnull-1.c: New test.
5720         * testsuite/gcc.dg/nonnull-2.c: New test.
5722 2002-05-23  David S. Miller  <davem@redhat.com>
5724         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
5725         * cfgcleanup.c (cleanup_cfg): If it is set do not
5726         attempt to delete trivially dead insns.
5727         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
5728         * toplev.c (rest_of_compilation): Document non-trivial aspect
5729         the RTL before optimize_save_area_alloca is run.
5731 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5733         * c-lex.c (indent_level): Remove.
5734         (cb_file_change, c_lex): Remove indent level handling.
5735         * c-lex.h (indent_level): Remove.
5736         * input.h (struct file_stack): Remove indent_level.
5737         * toplev.c (push_srcloc): Remove indent_level handling.
5739 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5741         PR target/6753
5742         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
5743         of x in constraints for clarity.
5744         (sse_mov?fcc split): abort if op2 == op3.
5745         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
5746         sse_movsfcc_const0_4): Add earlyclobber.
5747         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
5748         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
5749         Use Y instead of x in constraints.
5751 2002-05-23  Richard Henderson  <rth@redhat.com>
5753         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
5754         (C++98 Thread-Local Edits): New subsection.
5756         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
5757         (ix86_arch): Set type to enum processor_type.
5759         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
5760         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
5762 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5764         * configure.in: Fix as version test for binutils 2.12.1 releases
5765         (without dates).
5766         * configure: Rebuilt.
5768 2002-05-23  Richard Henderson  <rth@redhat.com>
5770         * config/i386/i386.c (get_pic_label_name): New.
5771         (load_pic_register): Remove.
5772         (output_set_got): New.
5773         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
5774         * config/i386/i386.md (UNSPEC_SET_GOT): New.
5775         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
5776         (prologue_set_got, prologue_get_pc): Remove.
5777         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
5778         (builtin_setjmp_receiver): Use gen_set_got.
5779         * config/i386/i386-protos.h: Update.
5781 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
5783         * gcse.c (hash_expr): Do not use alias set for hashing.
5785 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
5787         * dbxout.c (dbxout_class_name_qualifiers): New function.
5788         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
5790 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5792         * cpperror.c (_cpp_begin_message): No special casing
5793         of CPP_FATAL_LIMIT.
5794         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
5795         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
5796         * cpplib.c (do_include_common): Use DL_ERROR.
5797         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
5798         (DL_ICE): Renumber.
5799         * fix-header.c (read_scan_file): Update.
5801 2002-05-22  Richard Henderson  <rth@redhat.com>
5803         * config/i386/i386.c (ix86_expand_call): New function, extracted
5804         from md call patterns.  Add pic_offset_table_rtx to
5805         CALL_INSN_FUNCTION_USAGE when needed.
5806         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
5807         (call_value_pop, call_value, untyped_call): Likewise.
5808         (call_exp, call_value_exp): Remove.
5809         * config/i386/i386-protos.h: Update.
5811 2002-05-22  Richard Henderson  <rth@redhat.com>
5813         * varasm.c (default_section_type_flags): Check for VAR_DECL
5814         before using DECL_THREAD_LOCAL.
5816 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
5818         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
5819         (STARTFILE_SPEC): Delete PE crt0.o.
5820         * config/rs6000/aix51.h: Same.
5821         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
5822         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
5823         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
5824         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
5825         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
5827 2002-05-22  Richard Henderson  <rth@redhat.com>
5829         * varasm.c (default_section_type_flags): Handle tls data and
5830         default sections.
5831         (default_unique_section): Handle tls sections.
5833 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
5835         * configure.in (CROSS): Define NATIVE_CROSS.
5836         * configure: Regenerate.
5837         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
5838         (startfile_prefix_spec): New var.
5839         (static_specs): Add startfile_prefix_spec.
5840         (do_spec_2): Split out from..
5841         (do_spec): ..here.
5842         (main): Process startfile_prefix_spec.
5843         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
5844         dynamic linker.
5845         (STARTFILE_PREFIX_SPEC): Define.
5846         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
5847         absolute paths.
5849 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
5851         * cpperror.c: Fix formatting.
5852         * cppexp.c: Likewise.
5853         * cppfiles.c: Likewise.
5854         * cpphash.c: Likewise.
5855         * cpphash.h: Likewise.
5856         * cppinit.c: Likewise.
5857         * cpplex.c: Likewise.
5858         * cpplib.c: Likewise.
5859         * cppmacro.c: Likewise.
5860         * cppmain.c: Likewise.
5861         * cppspec.c: Likewise.
5863 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
5865         * combine.c (force_to_mode): Use gen_int_mode.
5866         Don't clear CONST_INT bits outside of mode.
5868 2002-05-22  Richard Henderson  <rth@redhat.com>
5870         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
5871         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
5873 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
5875         PR c/6643
5876         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
5877         if DECL_SIZE_UNIT is INTEGER_CST.
5879 2002-05-22  Richard Henderson  <rth@redhat.com>
5881         * flow.c (life_analysis): Delete broken reg_label check.
5883 2002-05-22  Richard Henderson  <rth@redhat.com>
5885         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
5886         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
5888 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
5890         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
5891         (embed-bb.c): New rule.
5892         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
5893         * config/sh/embed_bb.c: Delete.
5895 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
5897         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
5899 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
5901         * config/h8300/h8300.md (*andorqi3): New.
5903 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5905         PR preprocessor/6517
5906         * Makefile.in: Update.
5907         * c-common.c (c_common_post_options): Add preprocessor
5908         errors to the error count.
5909         * c-lang.c (c_post_options): Kill.
5910         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
5911         * hooks.h: Add header guards.
5912         * langhooks-def.h: Include hooks.h.
5913         (LANG_HOOKS_POST_OPTIONS): Update.
5914         * langhooks.h (struct lang_hooks): Update post_options.
5915         * toplev.c (parse_options_and_default_flags): Update.
5916 objc:
5917         * objc-lang.c (objc_post_options): Kill.
5918         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
5920 2002-05-21  Bruce Korb  <bkorb@gnu.org>
5922         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
5923         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
5924         * fixinc/fixincl.x: regen.
5926 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
5928         * cfgbuild.c: Fix formatting.
5929         * cfg.c: Likewise.
5930         * cfgcleanup.c: Likewise.
5931         * cfglayout.c: Likewise.
5932         * cfgloop.c: Likewise.
5933         * cfgrtl.c: Likewise.
5935 2002-05-21  Richard Henderson  <rth@redhat.com>
5937         * c-common.h (enum rid): Add RID_THREAD.
5938         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
5939         (grokdeclarator): Grok __thread.
5940         * c-parse.in (reswords): Add __thread.
5941         (rid_to_yy): Add RID_THREAD.
5943         * tree.h (DECL_THREAD_LOCAL): New.
5944         (struct tree_decl): Add thread_local_flag.
5945         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
5946         * tree.c (staticp): TLS variables are not static.
5948         * target-def.h (TARGET_HAVE_TLS): New.
5949         * target.h (have_tls): New.
5950         * output.h (SECTION_TLS): New.
5951         * varasm.c (assemble_variable): TLS variables can't be common for now.
5952         (default_section_type_flags): Handle .tdata and .tbss.
5953         (default_elf_asm_named_section): Handle SECTION_TLS.
5954         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
5956         * flags.h (flag_tls_default): Declare.
5957         * toplev.c (flag_tls_default): Define.
5958         (display_help): Display help for it.
5959         (decode_f_option): Set it.
5961         * doc/extend.texi (Thread-Local): New node describing language-level
5962         thread-local storage.
5963         * doc/invoke.texi (-ftls-model): Document.
5965         * fixinc/inclhack.def (thread_keyword): New.
5966         * fixinc/fixincl.x: Rebuild.
5968 2002-05-21  Jeffrey A Law  <law@redhat.com>
5970         * optabs.c (expand_binop): For double-word integer multiplies,
5971         do not compute intermediate results into something that is
5972         not a register (such as a SUBREG or MEM).
5974         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
5975         (ix86_sched_reorder): Make sure to initialize scheduling
5976         data even when there's only one insn in the ready queue.
5978 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
5980         * genautomata.c (reserv_sets_hash_value): Fix a typo.
5982 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
5984         * genautomata.c (reserv_sets_hash_value): Define hash_value as
5985         set_el_t.  Transform the hash value into unsigned.
5986         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
5987         (transform_3): Add code to process `(A,B)+(D,E)'.
5989 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
5991         * reload1.c (do_output_reload): Run delete_output_reload
5992         only if optimizing.
5994 2002-05-21  Roger Sayle  <roger@eyesopen.com>
5996         PR middle-end/6600
5997         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
5998         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
5999         (can_store_by_pieces): ... and here to limit the largest mode used.
6000         Add a comment to document this function.
6002 2002-05-21  Richard Henderson  <rth@redhat.com>
6004         * flow.c (life_analysis): Fix test for deleted label.
6006 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6008         * doc/tm.texi: Fix typo.
6010 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
6012         * c-common.c (c_common_init): Set options->unsigned_char from
6013         flag_signed_char.
6014         (cb_register_builtins): Define __STRICT_ANSI__ and
6015         __CHAR_UNSIGNED__ here...
6016         * cppinit.c (init_builtins): Not here.
6017         (cpp_create_reader): unsigned_char option defaults to 0, not
6018         !DEFAULT_SIGNED_CHAR.
6019         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
6020         and -funsigned-char.
6022         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
6023         * cpphash.c (_cpp_init_hashtable): Don't set it.
6024         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
6025         directly.  Clarify comment.
6027 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6029         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
6030         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
6031         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
6032         BASIC_BLOCK (n_basic_blocks - 1).
6033         * cfganal.c (can_fallthru, flow_call_edges_add,
6034         flow_preorder_transversal_compute): Too.
6035         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
6036         find_sub_basic_blocks): Too.
6037         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
6038         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
6039         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
6040         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
6041         * combine.c (this_basic_block): Type changed to basic_block.
6042         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
6043         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
6044         get_last_value, distribute_notes, distribute_links): Too.
6045         * final.c (compute_alignments): Too.
6046         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
6047         * function.c (thread_prologue_and_epilogue_insns): Too.
6048         * gcse.c (compute_code_hoist_vbeinout): Too.
6049         * global.c (build_insn_chain): Too.
6050         * ifcvt.c (find_if_block, find_cond_trap): Too.
6051         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
6052         * regmove.c (regmove_optimize): Too.
6053         * resource.c (find_basic_block): Too.
6054         * sched-ebb.c (schedule_ebbs): Too.
6055         * ssa-dce.c (find_control_dependence, find_pdom): Too.
6057 2002-05-21  Andreas Jaeger  <aj@suse.de>
6059         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
6061 2002-05-21  Richard Henderson  <rth@redhat.com>
6063         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
6064         unspec names, not numbers.
6066 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6068         * doc/sourcebuild.texi: Mention snapshot-README and
6069         snapshot-index.html as needing updating for new front ends.
6071 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6073         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
6074         disabling checking, and avoid multiple evaluation of RTX.
6076 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
6078         * bitmap.c (bitmap_find_bit): Return early if we have the correct
6079         element cached.
6081 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
6083         * profile.c (gen_edge_profiler):  Set alias set before the memory is
6084         used.
6086 2002-05-20  David S. Miller  <davem@redhat.com>
6088         * cselib.c (max_value_regs): New.
6089         (cselib_lookup, cselib_invalidate_regno): Initialize it when
6090         adding new entries to the REG_VALUES table and we are dealing with
6091         a hard register.
6092         (clear_table): Initialize it.
6093         (cselib_invalidate_regno): Use it to determine which hard
6094         registers to scan when mode is not VOIDmode.
6096 2002-05-20  Duraid Madina   <duraid@fl.net.au>
6098         * tradcpp.c (fixup_newlines): Use old-style function header.
6100 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
6102         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
6104 2002-05-20  H.J. Lu  (hjl@gnu.org)
6106         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
6108         * config/mips/mips.h (DFMODE_NAN): Defined.
6109         (SFMODE_NAN): Likewise.
6111 2002-05-20  Dale Johannesen  <dalej@apple.com>
6113         * combine.c (cant_combine_insn_p):  Back out my
6114         previous patch.
6116 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
6118         * params.c: Fix formatting.
6119         * params.h: Likewise.
6120         * predict.c: Likewise.
6121         * prefix.c: Likewise.
6122         * print-rtl.c: Likewise.
6123         * print-tree.c: Likewise.
6124         * profile.c: Likewise.
6126 2002-05-20  H.J. Lu  (hjl@gnu.org)
6128         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
6130 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
6132         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
6133         switches straight on to the assembler, do not abbreviate them.
6134         * config/arm/elf.h (ASM_SPEC): As above.
6135         * config/arm/semi.h (ASM_SPEC): As above.
6136         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
6137         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
6138         -mcpu=xscale on to the assembler by default.
6139         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
6141 2002-05-20  Richard Henderson  <rth@redhat.com>
6143         * cse.c (canon_hash): Reorder do_not_record test.  Always
6144         allow pic_offset_table_rtx.
6146 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
6148         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
6149         (expand_binop): Ditto (3 times).
6151 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
6153         * Makefile.in (distclean): Remove QMTest stuff.
6154         (QMTEST_PATH): New variable.
6155         (QMTESTFLAGS): Likewise.
6156         (QMTESTRUNFLAGS): Likewise.
6157         (QMTEST): Likewise.
6158         (QMTEST_GPP_TESTS): Likewise.
6159         (QMTEST_DIR): Likewise.
6160         (QMTEST_DIR/context): New target.
6161         (qmtest-g++): Likeise.
6162         (qmtest-gui): Likewise.
6163         (QMTEST_DIR/gpp-expected.qmr): Likewise.
6165 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
6167         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
6168         an altivec register if TARGET_ALTIVEC.
6170         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
6171         to ALTIVEC_VECTOR_MODE.
6172         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
6173         (rs6000_va_arg): Vectors may go in registers if they are not
6174         altivec vectors.
6176 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
6178         * protoize.c: Fix formatting.
6180 2002-05-19  Richard Henderson  <rth@redhat.com>
6182         * gensupport.c (init_include_reader): Merge into ...
6183         (process_include): ... here.  Simplify composite path creation.
6184         Plug memory leaks.  Fix file/line number tracking.  Do not
6185         process_define_cond_exec.  Return void.
6186         (process_rtx): Don't check process_include return value.
6188 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6190         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
6191         fields.
6192         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
6193         traversing basic block chain.
6194         (create_basic_block_structure, create_basic_block): Declaration changed.
6195         (link_block, unlink_block): Declare.
6196         * cfg.c (entry_exit_blocks): Initialize new fields.
6197         (link_block, unlink_block): New.
6198         (expunge_block_nocompact): Unlink basic block.
6199         (dump_flow_info): Print prev_bb/next_bb fields.
6200         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
6201         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
6202         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
6203         * cfgrtl.c (create_basic_block_structure, create_basic_block,
6204         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
6205         (verify_flow_info): Check that list agrees with numbering.
6207 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6209         * c-common.c (preprocessing_asm): New macro.
6210         * c-lex.h (builtin_define, builtin_assert): Use pfile.
6211 doc:
6212         * tm.texi: Update.
6213 config/alpha:
6214         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
6215         (CPP_SPEC): Simplify.
6216         (TARGET_CPU_CPP_BUILTINS): Update.
6217         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
6218         (CPP_SPEC): Simplify.
6219         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
6220         (TARGET_OS_CPP_BUILTINS): Update.
6221         * osf.h (CPP_XFLOAT_SPEC): Kill.
6222         (TARGET_OS_CPP_BUILTINS): Update.
6223         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
6224         * osf5.h (CPP_XFLOAT_SPEC): Kill.
6225         * vms.h (CPP_SUBTARGET_SPEC): Kill.
6226         (TARGET_OS_CPP_BUILTINS): Update.
6228 2002-05-19  Richard Henderson  <rth@redhat.com>
6230         * varasm.c (default_binds_local_p): Fix typo.
6232 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6234         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
6235         CONST_INT operand to the correct mode after adding 1 to it.
6237 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
6239         * config.gcc (powerpc-wrs-windiss*): New target.
6241 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6243         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
6244         (ashrdi3): Use it.
6246 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
6248         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
6249         alphasort.
6250         * config.in: Regenerated.
6251         * configure: Regenerated.
6253 2002-05-19  Richard Henderson  <rth@redhat.com>
6255         * target-def.h (TARGET_BINDS_LOCAL_P): New.
6256         * target.h (struct gcc_target): Move boolean fields to the end.
6257         Add binds_local_p.
6258         * varasm.c (default_binds_local_p): New.
6259         * output.h: Declare it.
6261         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
6262         * config/cris/cris.c (cris_encode_section_info): Likewise.
6263         * config/i386/i386.c (i386_encode_section_info): Likewise.
6264         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
6265         * config/sh/sh.c (sh_encode_section_info): Likewise.
6267         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
6268         (TARGET_BINDS_LOCAL_P): New.
6270 2002-05-19  Richard Henderson  <rth@redhat.com>
6272         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
6273         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
6274         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
6276         * toplev.c (display_help): Kill -a -ax help.
6278         * config/1750a/1750a.h, config/alpha/alpha.h,
6279         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
6280         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
6281         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
6282         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
6284         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
6285         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
6287         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
6288         (ix86_output_function_block_profiler): Kill.
6289         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
6290         (m68hc11_function_block_profiler): Kill.
6291         * config/m68hc11/m68hc11-protos.h: Update.
6292         * config/m88k/m88k.c (output_block_profiler): Kill.
6293         (output_function_block_profiler): Kill.
6294         * config/m88k/m88k-protos.h: Update.
6296 2002-05-19  Richard Henderson  <rth@redhat.com>
6298         * system.h (STRIP_NAME_ENCODING): Poison it.
6299         * output.h (STRIP_NAME_ENCODING): Remove.
6300         (default_strip_name_encoding): Declare.
6301         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
6302         * target.h (strip_name_encoding): New.
6303         * varasm.c (default_strip_name_encoding): New.
6305         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
6306         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
6307         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
6308         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
6309         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
6310         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
6311         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
6312         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
6313         config/v850/v850.h: Use the hook, not the macro.
6315         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6316         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
6317         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
6318         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
6319         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
6320         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
6321         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
6322         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
6323         config/v850/v850.c, config/v850/v850.h:
6324         Move STRIP_NAME_ENCODING to out-of-line function and add
6325         TARGET_STRIP_NAME_ENCODING.
6327         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
6328         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
6329         with TARGET_STRIP_NAME_ENCODING referencing existing function;
6330         make function static.
6332         * xcoffout.c: Include target.h
6333         * Makefile.in (xcoffout.o): Update.
6335         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
6336         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
6337         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
6338         reloc argument unused.
6339         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
6341         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
6342         STRIP_NAME_ENCODING docs.
6344 2002-05-19  Andreas Jaeger  <aj@suse.de>
6346         * gengenrtl.c: Add prototype for excluded_rtx.
6348         * real.h: Add prototype for exact_real_truncate.
6350 2002-05-18  Richard Henderson  <rth@redhat.com>
6352         * system.h (ENCODE_SECTION_INFO): Poison it.
6353         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
6354         * target.h (encode_section_info): New.
6355         * varasm.c (make_decl_rtl, output_constant_def): Use it.
6356         * hooks.c (hook_tree_int_void): New.
6357         * hooks.h: Declare it.
6359         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6360         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
6361         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
6362         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
6363         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
6364         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
6365         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6366         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
6367         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
6368         config/mcore/mcore-protos.h, config/mcore/mcore.c,
6369         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
6370         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
6371         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
6372         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
6373         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
6374         referencing existing function.  Make function static.
6376         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
6377         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
6378         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
6379         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
6380         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
6381         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
6382         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
6383         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
6384         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
6385         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
6386         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
6387         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
6388         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
6389         Move ENCODE_SECTION_INFO to out-of-line function and add
6390         TARGET_ENCODE_SECTION_INFO.
6392         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
6393         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
6395         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
6396         from SUBTARGET_*
6397         (switch_to_section): Replace in_rdata case with in_readonly_data.
6399         * config/h8300/h8300.c (h8300_encode_label): Make static.
6400         * config/h8300/h8300-protos.h: Update.
6402         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
6403         from rs6000_encode_section_info; make static.
6404         (rs6000_xcoff_encode_section_info): New.
6406         * config/v850/v850.c (v850_encode_data_area): Make static.
6407         * config/v850/v850-protos.h: Update.
6409         * config/vax/vax.c: Include flags.h.
6410         (vms_select_section): Fix typo.
6412         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
6413         ENCODE_SECTION_INFO docs.
6415 2002-05-18  Richard Henderson  <rth@redhat.com>
6417         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
6418         REGISTER_TARGET_PRAGMAS.
6419         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
6421         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
6423 2002-05-18  Richard Henderson  <rth@redhat.com>
6425         * system.h (SELECT_RTX_SECTION): Poison.
6426         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
6427         * target.h (select_rtx_section): New.
6428         * varasm.c (output_constant_pool): Use it.
6429         (default_select_rtx_section, default_elf_select_rtx_section): New.
6430         * output.h: Declare them.
6432         * config/darwin.h (SELECT_RTX_SECTION): Move ...
6433         * config/darwin.c (machopic_select_rtx_section): ... here.
6434         * config/darwin-protos.h: Update.
6436         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
6437         * config/nextstep.c (machopic_select_rtx_section): ... here.
6438         (nextstep_select_section): Rename variable to avoid macro clash.
6439         * config/nextstep-protos.h: Update.
6441         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
6442         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
6443         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
6444         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
6445         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
6446         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
6447         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
6448         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
6449         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
6450         (SELECT_RTX_SECTION): Remove.
6452         * config/darwin.h, config/elfos.h, config/nextstep.h,
6453         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
6454         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
6455         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
6456         config/sparc/lynx.h, config/xtensa/xtensa.c
6457         (TARGET_ASM_SELECT_RTX_SECTION): New.
6459         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
6460         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
6461         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
6462         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
6463         (ia64_aix_select_rtx_section): New.
6464         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
6465         redefining.
6466         * config/mips/mips.c (mips_select_rtx_section): Make static.
6467         Support ELF SHF_MERGE features.
6468         * config/mips/mips-protos.h: Update.
6469         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
6470         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
6471         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
6472         make static, fall back to default_elf_select_rtx_section.
6473         * config/rs6000/rs6000-protos.h: Update.
6474         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
6475         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
6476         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
6477         * config/romp/romp.c (romp_select_rtx_section): New.
6478         * config/s390/s390.c (s390_select_rtx_section): New.
6479         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
6480         declarations before target macro definition.
6481         (xtensa_emit_call): Use static buffer.
6482         (xtensa_select_rtx_section): New.
6483         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
6484         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
6485         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
6487         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
6488         SELECT_RTX_SECTION docs.
6490 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
6492         * i386.md (movsi/movdi): Fix template.
6493         (sse2 patterns): Set attributes consistently.
6495         * i386.md (pushqi2, ashrqi_*): Fix constraint.
6497 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
6499         * optabs.c (complex_part_zero_p): New.
6500         * (expand_cmplxdiv_straight): Use it.
6501         * (expand_cmplxdiv_wide): Ditto.
6502         * (expand_binop): Ditto.
6504 2002-05-18  Richard Henderson  <rth@redhat.com>
6506         * final.c (HAVE_READONLY_DATA_SECTION): New.
6507         (shorten_branches): Use it instead of ifdefs.
6508         * varasm.c (enum in_section): Add in_readonly_data.
6509         (text_section, data_section): Tidy.
6510         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
6512         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
6513         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
6514         (READONLY_DATA_SECTION): Don't undef.
6516         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
6517         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
6518         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
6520         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
6521         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
6522         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
6523         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
6525         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
6526         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
6527         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6528         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
6529         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
6530         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
6531         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
6532         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
6533         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
6535         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
6536         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
6537         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
6538         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
6539         config/pa/pa64-hpux.h, config/sparc/litecoff.h
6540         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
6542         * config/elfos.h, config/netware.h, config/svr3.h,
6543         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6544         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6545         config/h8300/h8300.h, config/i386/i386-interix.h,
6546         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6547         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
6549         * config/elfos.h, config/netware.h, config/svr3.h,
6550         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6551         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
6552         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6553         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
6555         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
6556         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
6557         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
6558         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
6559         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
6560         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
6561         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
6562         config/rs6000/sysv4.h, config/v850/v850.h
6563         (EXTRA_SECTIONS): Remove in_const/in_rdata.
6564         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
6566         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
6567         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
6568         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
6569         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
6570         * config/alpha/alpha.c (alpha_start_function): Likewise.
6571         (alpha_write_linkage): Likewise.
6572         * config/m32r/m32r.c (m32r_select_section): Likewise.
6573         * config/m88k/m88k.c (m88k_select_section): Likewise.
6574         * config/mips/mips.c (mips_select_rtx_section): Likewise.
6575         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
6576         (rs6000_elf_select_section): Likewise.
6577         * config/v850/v850.c (v850_select_section): Likewise.
6579         * config/1750a/1750a.h, config/i860/sysv3.h
6580         (READONLY_DATA_SECTION_ASM_OP): New.
6581         READONLY_DATA_SECTION_ASM_OP.
6582         * config/i386/interix.c, config/i386/winnt.c
6583         (i386_pe_unique_section): Always use .rdata prefix.
6584         * config/pa/som.h (readonly_data): Always switch to read-only section.
6585         (READONLY_DATA_SECTION): Predicate on flag_pic.
6586         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
6587         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
6588         (READONLY_DATA_SECTION): Update.
6590 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
6592         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
6593         is used without -Wformat.
6594         * c-common.h (warn_format_zero_length): Declare extern.
6595         * c-decl.c (warn_options): Add "format-zero-length".
6596         * c-format.c (warn_format_zero_length): Declare.
6597         (set_Wformat): Set warn_format_zero_length for -Wformat.
6598         (check_format_info): Only warn about zero-length formats if
6599         warn_format_zero_length is true.  Include the format type
6600         name in the warning message.
6601         * doc/invoke.texi: Document -Wformat-zero-length.
6602         * testsuite/gcc.dg/format/zero-length-1.c: New test.
6604 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
6606         * timevar.c: Fix formatting.
6607         * tlink.c: Likewise.
6608         * toplev.c: Likewise.
6609         * tree-dump.c: Likewise.
6610         * tree-inline.c: Likewise.
6612 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6614         * cppinit.c (cpp_post_options): If preprocessed, turn off
6615         traditional.  If traditional, turn off column numbers.
6616         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
6617         * cpptrad.c (handle_newline): Update line_base.
6618         (skip_comment): Handle -Wcomment.
6620 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
6622         * cppinit.c (struct builtin): Remove unused fields.
6623         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
6624         (operator_array): New - was second half of builtin_array.
6625         (init_builtins): Simplify loop over builtin_array/operator_array.
6627 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6629         * defaults.h (UNIQUE_SECTION): Remove.
6630         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
6632 2002-05-17  Richard Henderson  <rth@redhat.com>
6634         * expr.c (init_expr_once): Don't use start/end_sequence.
6635         Use rtx_alloc instead of emit_insn.
6636         * toplev.c (lang_dependent_init): Run init_expr_once here ...
6637         (lang_independent_init): ... not here.
6639 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
6641         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
6643 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6645         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
6646         for fixed registers, possibly used for global register variables.
6647         (initial_elimination_offset, avr_output_function_prologue,
6648         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
6650 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6652         * Makefile.in: Update for cpptrad.c.
6653         * cpphash.h (struct cpp_buffer): New members for buffer
6654         overlays.
6655         (struct cpp_reader): New members for traditional output.
6656         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
6657         * cppinit.c (cpp_create_reader): Set trad_line.
6658         (cpp_destroy): Free trad_out_base if used.
6659         (cpp_read_main_file): Overlay an empty buffer if traditional.
6660         (cpp_finish_options): Don't do builtins.
6661         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
6662         (cpp_handle_option): Handle it.
6663         * cpplex.c (continue_after_nul): New.
6664         (_cpp_lex_direct): Use handle_nul.
6665         * cpplib.h (struct cpp_options): New traditional option.
6666         * cpptrad.c: New file.
6668 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6670         * c-common.c (c_common_init_options): Use C89 for Objective-C,
6671         and set the options flag.
6672         * cppinit.c (lang_flags): Remove objc.
6673         (lang_defaults): Remove OBJC and OBJCXX.
6674         (set_lang): Update.
6675         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
6676         (cpp_handle_option): Remove -+ and -lang-objc++.
6677         For ObjC, just set a flag.
6678         (print_help): Update.
6679         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
6681 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6683         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
6684         bootstrap with -mips3.
6686 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
6688         * final.c: Fix formatting.
6689         * fix-header.c: Likewise.
6690         * flow.c: Likewise.
6691         * fold-const.c: Likewise.
6692         * function.c: Likewise.
6694 2002-05-17  David S. Miller  <davem@redhat.com>
6696         PR c/6689, PR optimization/6615
6697         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
6698         and make it a pointer to rtx.  Update comments.
6699         (update_equiv_regs): When scanning for equivalences, record
6700         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
6701         it while making the equiv replacements.
6703 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6705         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
6707 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6709         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
6710         when encoding visibility into SYMBOL_REF_FLAG.
6712 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
6714         * expr.c (force_operand): Fix reversed move.
6716 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
6718         * doc/install.texi (Testing): Mention two common DejaGnu warnings
6719         that can be ignored.
6721 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6723         * doc/install.texi (Final install): Recommend to install into a
6724         "clean" target directory.
6726 2002-05-17  Richard Henderson  <rth@redhat.com>
6728         * config/ia64/ia64.md: Use braced strings instead of quoted strings
6729         for code blocks.  Tidy whitespace.
6731 2002-05-17  Richard Henderson  <rth@redhat.com>
6733         * hooks.c (hook_tree_bool_false): New.
6734         * hooks.h: Declare it.
6735         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
6736         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
6737         * target.h (select_section, unique_section): New.
6738         (in_small_data_p): New.
6739         * varasm.c (resolve_unique_section): Use hooks instead of macros.
6740         (variable_section, output_constant_def_contents): Likewise.
6741         (default_select_section, default_unique_section): New.
6742         (categorize_decl_for_section, default_elf_select_section): New.
6743         * output.h: Declare them.
6745         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
6746         (TARGET_ASM_SELECT_SECTION): New.
6747         (SELECT_SECTION): Move ...
6748         * config/darwin.c (machopic_select_section): ... here.
6749         * config/darwin-protos.h: Update.
6751         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
6752         (SELECT_SECTION): Move ...
6753         * config/nextstep.c (nextstep_select_section): ... here.
6754         * config/nextstep-protos.h: Update.
6756         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
6757         (TARGET_ASM_SELECT_SECTION): New.
6758         * config/svr3.h (SELECT_SECTION): Remove.
6760         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
6761         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
6762         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
6763         (alpha_encode_section_info): Use it.
6764         * config/alpha/alpha-protos.h: Update.
6765         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
6766         (SELECT_SECTION, UNIQUE_SECTION): Remove.
6767         (TARGET_ASM_SELECT_SECTION): New.
6768         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
6770         * config/arm/pe.h (UNIQUE_SECTION): Remove.
6771         (TARGET_ASM_UNIQUE_SECTION): New.
6773         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
6774         (avr_unique_section): Rename from unique_section; make static.
6775         * config/avr/avr-protos.h: Update.
6776         * config/avr/avr.h (UNIQUE_SECTION): Remove.
6778         * config/c4x/c4x.h (SELECT_SECTION): Remove.
6780         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
6781         (TARGET_ASM_UNIQUE_SECTION): New.
6782         * config/i386/i386-interix.h: Likewise.
6783         * config/i386/win32.h: Likewise.
6784         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
6785         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
6786         * config/i386/sco5.h (SELECT_SECTION): Remove.
6787         (TARGET_ASM_SELECT_SECTION): New.
6788         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
6790         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
6791         instead of SELECT_SECTION.
6792         * config/m68k/dpx2.h: Likewise.
6793         * config/rs6000/lynx.h: Likewise.
6795         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6796         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
6797         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
6798         (ia64_in_small_data_p): New.
6799         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
6800         (ia64_aix_select_section, ia64_aix_unique_section): New.
6801         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
6802         (SELECT_SECTION, UNIQUE_SECTION): Remove.
6804         * config/m32r/m32r.h (SELECT_SECTION): Remove.
6805         (TARGET_ASM_SELECT_SECTION): New.
6806         * config/m32r/m32r.c (m32r_select_section): Take align argument.
6807         * config/m32r/m32r-protos.h: Update.
6809         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
6810         (SELECT_SECTION): Move ...
6811         * config/m88k/m88k.c (m88k_select_section): ... here.
6813         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
6814         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
6815         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
6816         (mcore_unique_section): Make static.
6817         * config/mcore/mcore-protos.h: Update.
6819         * config/mips/elf.h (UNIQUE_SECTION): Remove.
6820         (TARGET_ASM_UNIQUE_SECTION): New.
6821         * config/mips/elf64.h: Likewise.
6822         * config/mips/iris6gld.h: Likewise.
6823         * config/mips/linux.h: Likewise.
6824         * config/mips/mips-protos.h: Update.
6825         * config/mips/mips.c (mips_select_section): Add align argument.
6826         * config/mips/mips.h (SELECT_SECTION): Remove.
6827         (TARGET_ASM_SELECT_SECTION): New.
6829         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6830         * config/mmix/mmix.c (mmix_select_section): Remove.
6831         (mmix_unique_section): Remove.
6832         * config/mmix/mmix-protos.h: Update.
6834         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
6835         (SELECT_SECTION): Move ...
6836         * config/pa/pa.c (pa_select_section): ... here.
6837         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
6839         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
6840         from rs6000_select_section and make static.
6841         (rs6000_elf_unique_section): Similarly.
6842         (rs6000_xcoff_select_section): From xcoff.h.
6843         (rs6000_xcoff_unique_section): Likewise.
6844         * config/rs6000/rs6000-protos.h: Update.
6845         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6846         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
6847         * config/rs6000/xcoff.h: Likewise.
6849         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
6850         (SELECT_SECTION): Move ...
6851         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
6853         * config/v850/v850.h (SELECT_SECTION): Move ...
6854         * config/v850/v850.c (v850_select_section): ... here.
6855         (TARGET_ASM_SELECT_SECTION): New.
6857         * config/vax/vms.h (SELECT_SECTION): Move ...
6858         * config/vax/vax.c (vms_select_section): ... here.
6859         (TARGET_ASM_SELECT_SECTION): New.
6861         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
6862         for the target hooks.
6864 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
6866         * config/arm/arm.c (emit_multi_reg_push): Do not set
6867         RTX_FRAME_RELATED_P on the SEQUENCE.
6869 2002-05-16  Richard Henderson  <rth@redhat.com>
6871         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
6872         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
6874 2002-05-16  Richard Henderson  <rth@redhat.com>
6876         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
6878         * config/ia64/ia64.c (saveable_obstack): Do not declare.
6880 2002-05-16  Richard Henderson  <rth@redhat.com>
6882         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
6883         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
6884         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
6885         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
6886         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
6887         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
6888         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
6889         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
6890         Revert "Basic block renumbering removal", and two followup patches.
6892 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
6894         * lcm.c (optimize_mode_switching): Revert previous change.
6896 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6898         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
6899         with only extant block numbers.
6901 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
6903         * lcm.c (optimize_mode_switching): Fix typo.
6905 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6907         * flow.c (calculate_global_regs_live): Queue blocks in program order.
6909 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6911         * doc/install.texi (Configuration): Document PWDCMD.
6913 2002-05-16  Dale Johannesen  <dalej@apple.com>
6915         * combine.c (cant_combine_insn_p):  Reenable combinations
6916         involving hard regs unless CLASS_LIKELY_SPILLED_P.
6918 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
6920         * c-common.c (cb_register_builtins): Handle more built-ins
6921         here rather than in gcc.c specs.
6922         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
6923         (cpp_options): Pass -O flags even when only preprocessing.
6924         * toplev.c (set_fast_math_flags): New prototype.
6925         (fast_math_flags_set_p): New.
6926         (set_no_fast_math_flags): Remove.
6927         (decode_f_option): Update.
6928         * toplev.h (set_fast_math_flags): Update.
6929         (fast_math_flags_set_p): New.
6930         (set_no_fast_math_flags): Remove.
6931 config:
6932         * c4x/c4x.c (c4x_override_options): Update.
6934 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
6936         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
6937         Default-define here.
6938         (builtin_define_with_value): Can now wrap the expansion in
6939         quotation marks if such is wanted.
6940         (cb_register_builtins): Update calls to builtin_define_with_value.
6941         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
6942         here.
6943         (c_common_init): Set options->stdc_0_in_system_headers.
6944         * c-lex.h: Update prototype of builtin_define_with_value.
6945         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
6946         and REGISTER_PREFIX.
6948         * cppinit.c (VERS, ULP, C, X): Kill.
6949         (builtin_array): Remove entries for __VERSION__,
6950         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
6951         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
6952         a constant.
6953         (init_builtins): Kill off a bunch of now-dead code.
6954         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
6955         -fno-leading-underscore.
6956         (cpp_handle_option): Remove code to set user_label_prefix.
6957         (cpp_post_options): Likewise.
6959         * cpplib.h (struct cpp_options): Remove user_label_prefix.
6960         (stdc_0_in_system_headers): New.
6961         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
6962         stdc_0_in_system_headers) too to decide the value of __STDC__.
6964         * tradcpp.c (user_label_prefix): Kill.
6965         (main): Remove code handling -f(no-)leading-underscore.
6966         (initialize_builtins): Don't define __REGISTER_PREFIX__
6967         or __USER_LABEL_PREFIX__.
6968         (install_value): Wrap compound statement in dummy loop so the
6969         macro works properly in an if statement.
6972 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
6974         * loop.h (struct loop_info): Add member has_prefetch.
6975         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
6976         (prescan_loop): Initialize has_prefetch.
6977         (struct prefetch_info): Change prefetch_in_loop and
6978         prefetch_before_loop from bit fields to ints.
6979         (emit_prefetch_instructions): Several small fixes.
6980         (check_dbra_loop): Don't reverse loop that uses prefetch.
6982 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6984         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
6985         * configure.in: Likewise.
6986         * fixinc/check.tpl: Likewise.
6987         * fixinc/fixinc.dgux: Likewise.
6988         * fixinc/fixinc.svr4: Likewise.
6989         * fixinc/fixinc.winnt: Likewise.
6990         * fixinc/fixincl.sh: Likewise.
6991         * fixproto: Likewise.
6992         * configure: Regenerate.
6994 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6996         Basic block renumbering removal:
6997         * basic_block.h (struct basic_block_def): Renamed index to sindex,
6998         added prev_bb and next_bb fields.
6999         (n_basic_blocks): Renamed to num_basic_blocks.
7000         (last_basic_block): New, index of last basic block.
7001         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
7002         traversing basic block chain.
7003         (BLOCK_NUM): index -> sindex.
7004         (create_basic_block_structure, create_basic_block): Declaration changed.
7005         (debug_num2bb): Declare.
7006         (expunge_block_nocompact): Declaration removed.
7007         (link_block, unlink_block, compact_blocks): Declare.
7008         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
7009         * cfg.c (entry_exit_blocks): Initialize new fields.
7010         (clear_edges, alloc_block, expunge_block, cached_make_edge,
7011         redirect_edge_pred, dump_flow_info, dump_edge_info,
7012         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
7013         free_aux_for_edges): Modified.
7014         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
7015         (expunge_block_nocompact): Removed.
7016         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
7017         find_unreachable_blocks, create_edge_list, print_edge_list,
7018         verify_edge_list, flow_edge_list_print, remove_fake_successors,
7019         remove_fake_edges, flow_reverse_top_sort_order_compute,
7020         flow_depth_first_order_compute, flow_preorder_transversal_compute,
7021         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
7022         flow_dfs_compute_reverse_execute): Modified.
7023         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
7024         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
7025         Modified.
7026         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
7027         merge_blocks_move_predecessor_nojumps,
7028         merge_blocks_move_successor_nojumps, merge_blocks,
7029         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
7030         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
7031         * cfglayout.c (skip_insns_after_block, label_for_bb,
7032         record_effective_endpoints, scope_to_insns_finalize,
7033         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
7034         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
7035         cfg_layout_duplicate_bb): Modified.
7036         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
7037         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
7038         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
7039         flow_loops_find, flow_loop_outside_edge_p): Modified.
7040         * cfgrtl.c (create_basic_block_structure, create_basic_block,
7041         flow_delete_block, compute_bb_for_insn, split_block,
7042         try_redirect_by_replacing_jump, redirect_edge_and_branch,
7043         force_nonfallthru_and_redirect, tidy_fallthru_edge,
7044         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
7045         commit_edge_insertions, commit_edge_insertions_watch_calls,
7046         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
7047         purge_all_dead_edges): Modified.
7048         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
7049         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
7050         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
7051         Modified.
7052         * conflict.c (conflict_graph_compute): Modified.
7053         * df.c (FOR_ALL_BBS): Removed.
7054         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7055         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
7056         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
7057         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
7058         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
7059         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
7060         * final.c (compute_alignments, final_scan_insn): Modified.
7061         * flow.c (verify_local_live_at_start, update_life_info,
7062         update_life_info_in_dirty_blocks, free_basic_block_vars,
7063         delete_noop_moves, calculate_global_regs_live,
7064         initialize_uninitialized_subregs, allocate_bb_life_data,
7065         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
7066         mark_used_reg, count_or_remove_death_notes): Modified.
7067         * function.c (thread_prologue_and_epilogue_insns): Modified.
7068         * gcse.c (struct null_pointer_info): Change typo of current_block
7069         to basic_block.
7070         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
7071         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
7072         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
7073         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
7074         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
7075         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
7076         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
7077         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
7078         pre_delete, one_pre_gcse_pass, compute_transpout,
7079         invalidate_nonnull_info, delete_null_pointer_checks_1,
7080         free_code_hoist_mem, compute_code_hoist_vbeinout,
7081         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
7082         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
7083         compute_store_table, build_store_vectors, insert_insn_start_bb,
7084         insert_store, replace_store_insn, free_store_memory, store_motion):
7085         Modified.
7086         * global.c (global_alloc, global_conflicts, mark_elimination,
7087         build_insn_chain): Modified.
7088         * graph.c (print_rtl_graph_with_bb): Modified.
7089         * haifa-sched.c (sched_init): Modified.
7090         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
7091         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
7092         if_convert): Modified.
7093         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
7094         compute_insert_delete, pre_edge_lcm, compute_available,
7095         compute_farthest, compute_nearerout, compute_rev_insert_delete,
7096         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
7097         Modified.
7098         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
7099         * loop.c (loop_dump_aux): Modified.
7100         * predict.c (combine_predictions_for_insn, estimate_probability,
7101         last_basic_block_p, process_note_prediction, process_note_predictions,
7102         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
7103         expensive_function_p, estimate_bb_frequencies,
7104         compute_function_frequency): Modified.
7105         * print-rtl.c (print_rtx): Modified.
7106         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
7107         get_exec_counts, compute_branch_probabilities, compute_checksum,
7108         branch_prob, find_spanning_tree): Modified.
7109         * recog.c (split_all_insns, peephole2_optimize): Modified.
7110         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
7111         convert_regs_1, convert_regs_2, convert_regs): Modified.
7112         * regclass.c (scan_one_insn, regclass): Modified.
7113         * regmove.c (mark_flags_life_zones, regmove_optimize,
7114         combine_stack_adjustments): Modified.
7115         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
7116         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
7117         * reorg.c (dbr_schedule): Modified.
7118         * resource.c (find_basic_block, init_resource_info): Modified.
7119         * sbitmap.c (sbitmap_intersection_of_succs,
7120         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
7121         sbitmap_union_of_preds): Modified.
7122         * sched-deps.c (init_dependency_caches): Modified.
7123         * sched-ebb.c (schedule_ebbs): Modified.
7124         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
7125         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
7126         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
7127         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
7128         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
7129         ssa_const_prop): Modified.
7130         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
7131         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
7132         * ssa.c (remove_phi_alternative, find_evaluations,
7133         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
7134         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
7135         make_regs_equivalent_over_bad_edges,
7136         make_equivalent_phi_alternatives_equival,
7137         compute_conservative_reg_partition,
7138         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
7139         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
7140         Modified.
7142 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
7144         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
7146 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
7148         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
7149         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7150         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
7151         calling CONSTANT_POOL_ADDRESS_P.
7152         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
7153         to decide whether to define __arm__ or __thumb.
7154         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
7155         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7157 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7159         * config/arc/arc.h (CPP_PREDEFINES): Remove.
7160         (CPP_SPEC): Update.
7161         (TARGET_CPU_CPP_BUILTINS): New.
7163 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7165         * cpphash.h (cpp_macro): Move here, and make expansion a union.
7166         * cppmacro.c (cpp_macro): Remove.
7167         (enter_macro_context, replace_args, warn_of_redefinition,
7168         _cpp_create_definition, cpp_macro_definition): Update.
7170 2002-05-16  Jason Merrill  <jason@redhat.com>
7172         * config/mips/mips.c (mips_output_external): Don't do sdata
7173         optimization for a variable with DECL_COMDAT set.
7175 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7177         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
7178         Cleanups for accepting modifiers on pointers.
7179         Fix predicate typos.
7180         Allow long pointers as well as int pointers.
7182 2002-05-15  Richard Henderson  <rth@redhat.com>
7184         * varasm.c (merge_weak): Remove special case for extern and common.
7186 2002-05-15  Matt Hiller  <hiller@redhat.com>
7188         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
7189         XFAILing.
7190         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
7191         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
7192         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
7193         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
7194         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
7195         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
7197 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7199         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
7201 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7203         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
7204         ("altivec_mfvscr"): Read from VSCR.
7206         Add vscr sets for the following insns: altivec_vctuxs,
7207         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
7208         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
7209         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
7210         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
7211         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
7212         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
7213         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
7214         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
7215         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
7216         altivec_vsum2sws, altivec_vsumsws.
7218         * config/rs6000/rs6000.h: Add VSCR fixed register.
7219         (CALL_REALLY_USED_REGISTERS): Add vscr.
7220         (CALL_USED_REGISTERS): Same.
7221         (FIXED_REGISTERS): Same.
7222         (REG_ALLOC_ORDER): Same.
7223         (reg_class): Add VSCR_REGS.
7224         (REG_CLASS_NAMES): Same.
7225         (REG_CLASS_CONTENTS): Same.
7226         (VSCR_REGNO): New.
7227         (REGISTER_NAMES): Add vscr.
7228         (DEBUG_REGISTER_NAMES): Same.
7229         (ADDITIONAL_REGISTER_NAMES): Same.
7230         (FIRST_PSEUDO_REGISTER): Increment.
7231         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
7233 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
7235         * fold-const.c (fold): Fix a typo.
7237 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
7239         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
7240         comparison against the highest or lowest integer value before
7241         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
7242         transformation and that of an unsigned comparison against 0
7243         right after.
7245 2002-05-15  Richard Henderson  <rth@redhat.com>
7247         * varasm.c (merge_weak): Error for any weakening after definition.
7248         Adjust weakening after use warning to catch more cases.
7249         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
7250         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
7252 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
7254         * invoke.texi (-malign-double): Re-add lost warning.
7256         * i386-protos.h (x86_output_mi_thunk): Declare.
7257         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
7258         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
7260         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
7261         when flag_asynchronous_unwind_tables is set.
7263         * flags.h (flag_reorder_functions): Declare.
7264         * function.c (prepare_function_start): Initialize frequnecy.
7265         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
7266         * Makefile.in (predict.o): Add dependency on target.h and params.h
7267         * defaults.h (HOT_TEXT_SECTION_NAME,
7268         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
7269         * predict.c (choose_function_section): New function.
7270         (estimate_bb_frequencies): Use it.
7271         * toplev.c (flag_reorder_functions): New global variable.
7272         (lang_independent_options): New.
7273         (parse_options_and_default_flags): Set.
7274         * varasm.c (assemble_start_function): Bypass functdion alignment
7275         for never executed functions.
7276         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
7277         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
7278         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
7279         Document.
7281         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
7283         * predict.c: Inlude profile.h
7284         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
7285         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
7286         Use the information about maximal counter in the program.
7288         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
7290         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
7291         probably_never_executed_bb_p): New functions.
7292         * cfgcleanup.c (outgoing_edges_match): Use them.
7293         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
7294         (maybe_hot_bb_p, probably_cold_bb_p,
7295         probably_never_executed_bb_p): New functions.
7297         * function.h (function): Add new field function_frequency.
7298         * predict.c (compute_function_frequency): New function.
7299         (estimate_probability): Call it.
7301 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
7303         PR optimization/5172, optimization/5200
7304         * gcse.c (gcse_main): Disable store_motion.
7306 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
7308         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
7309         (c_common_nodes_and_builtins): Use it.
7310         (builtin_define_with_value): New function.
7311         (cb_register_builtins): Define __SIZE_TYPE__,
7312         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
7313         using builtin_define_with_value.  Use consistent notation when
7314         defining __GXX_WEAK__.
7315         (WCHAR_TYPE_SIZE): Don't redefine.
7316         (combine_strings): Don't use WCHAR_TYPE_SIZE.
7318         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
7319         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
7320         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
7321         * tradcpp.c (initialize_builtins): Likewise.
7322         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
7324         * c-lex.h (builtin_define_with_value): Prototype.
7325         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
7326         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
7327         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
7329         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
7330         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
7331         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
7332         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
7333         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
7334         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
7335         config/sparc/sol2-bi.h, config/sparc/sparc.h:
7336         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
7337         to __SIZE_TYPE__ etc from all spec strings. When this makes
7338         extra specs empty, delete them.
7340 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7342         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
7343         for PA8000 or generating dwarf2 call frame information.
7344         (output_call): Remove DO_FRAME_NOTES check from return pointer
7345         optimization.
7346         (following_call): Return 0 when scheduling for PA8000 or generating
7347         dwarf2 call frame information.  Revise comment.
7349 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7351 config/alpha:
7352         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
7353         and __IEEE_FP_INEXACT as appropriate.
7354         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
7355         (CPP_SPEC): Remove ieee defines.
7356         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
7358 2002-05-14  Richard Henderson  <rth@redhat.com>
7360         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
7361         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
7363 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7365         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
7366         (CPP_SPEC): Update.
7367         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
7368         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
7369         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
7370         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
7371         (EXTRA_SPECS): Update.
7372         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
7373         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
7374         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
7375         define TARGET_OS_CPP_BUILTINS if necessary.
7377 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7379         * gcc.c (cpp_options): Must pass -m* and -f* options
7380         to the front end even when only preprocessing.
7381         (cc1_options): Remove redundant -lang-c.
7382         * tradcpp.c (main): Ignore -m options.
7383 objc:
7384         * lang-specs.h: Similarly.
7386 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
7388         * genautomata.c (transform_3): Add code for transformation
7389         `(A,B,...)+C -> A+C,B,...'.
7391 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
7393         * final.c (end_final): Do not output profile_arcs constructor, when
7394         no functions are instrumented.
7396 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
7398         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
7400 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7402         * doc/install.texi: Remove special markup originally required for
7403         HTML generation with texi2html.
7405 2002-05-14  Andreas Schwab  <schwab@suse.de>
7407         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
7408         SELECT_SECTION.
7409         (UNIQUE_SECTION): Define to get small data correctly.
7411         * varasm.c (resolve_unique_section): Add third parameter
7412         flag_function_or_data_sections and use it instead of
7413         flag_function_sections.
7414         (assemble_start_function): Pass flag_function_sections.
7415         (asm_emit_uninitialised): Pass flag_data_sections.
7416         (assemble_variable): Likewise.
7418 2002-05-14  Richard Henderson  <rth@redhat.com>
7420         * config/i386/i386.md: Use define_constants for unspec numbers.
7421         * config/i386/i386.c: Likewise.
7423 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7425         * doc/contrib.texi: Update my entry.
7427 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
7429         * fixinc/inclhack.def (winidss_valist): Limit applicability.
7430         * fixinc/fixincl.x: Regenerated.
7431         * fixinc/tests/base/math.h: Update.
7432         * fixinc/tests/base/testing.h: Likewise.
7434 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
7436         * genattr.c (gen_attr): Don't emit a comma after the last
7437         enumerator.
7439 2002-05-13  Richard Henderson  <rth@redhat.com>
7441         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
7442         by non-local gotos.
7443         * recog.c (peephole2_optimize): Likewise.
7445 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
7447         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
7448         input to O_BINARY.
7450 2002-05-13  Jeffrey A Law  (law@redhat.com)
7452         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
7453         Update prototype and callers.
7454         (propagate_one_insn): Stack pointer adjustments kill MEMs on
7455         the mem_set_list which reference the stack pointer, as do
7456         calls to constant functions as they may clobber outgoing
7457         argument space.
7459         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
7461         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7462         (ia32_multipass_dfa_lookahead): New function.
7464 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7466         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
7467         (translate_options): Remove 'V'.
7468         (process_command): Similarly.
7469 doc:
7470         * invoke.texi: Remove documentation of 'V'.
7472 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
7474         * config/s390/linux.h: Revert 2002-04-22 changes.
7476 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
7478         * config/fr30/fr30.md: Only allow splits of immediate loads
7479         if the destination is a register.
7481 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7483         * Makefile.in (c-common.o, cppinit.o): Update.
7484         * c-common.c: Include except.h.
7485         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
7486         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
7487         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
7488         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
7489         CPP_PREDEFINES): Handle here.
7490 config:
7491         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
7492         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
7493         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
7494         TARGET_OS_CPP_BUILTINS.
7495         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
7496         (CPP_SPEC, EXTRA_SPECS): Update.
7497         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
7498         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
7499         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
7500         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
7501         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
7502 doc:
7503         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
7504         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
7506 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
7508         * emit-rtl.c (global_rtl): Update comment.
7509         (const_double_htab, const_double_htab_hash,
7510         const_double_htab_hash, lookup_const_double): New.
7511         (const_int_htab_hash, const_int_htab_eq): Remove const
7512         qualifiers, which cause tons of warnings with RTL checking on.
7513         (gen_rtx_CONST_DOUBLE): Deleted.
7514         (const_double_from_real_value): New function - bears some
7515         resemblance to the former immed_real_const_1.
7516         (immed_double_const): Moved here from varasm.c and
7517         simplified.
7518         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
7519         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
7520         (gen_rtx): Use immed_double_const.
7521         (init_emit_once): Initialize the const_double_htab.  Use
7522         REAL_VALUE_FROM_INT where possible.  Can now use
7523         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
7524         * varasm.c (struct varasm_status): Remove x_const_double_chain.
7525         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
7526         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
7527         (init_varasm_status, mark_varasm_status): Don't touch
7528         x_const_double_chain.
7530         * output.h: Delete prototype for clear_const_double_mem.
7531         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
7532         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
7533         const_double_from_real_value, not immed_real_const_1, and use
7534         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
7535         CONST_DOUBLE_ATOF.
7536         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
7537         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
7538         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
7539         (gen_rtx_REG): Second arg is unsigned.
7541         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
7542         (excluded_rtx): New, return true for CONST_DOUBLE.
7543         (genmacro): Write nothing for excluded codes.
7544         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
7545         * expr.c (expand_expr): Likewise.
7546         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
7547         CONST_DOUBLE_CHAIN.
7548         * toplev.c (rest_of_compilation): Don't call
7549         clear_const_double_mem.
7551         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
7552         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
7553         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
7554         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
7555         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
7556         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
7557         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
7558         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
7560 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7562         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
7564 2002-05-12  Tom Tromey  <tromey@redhat.com>
7566         * tree.h (copy_node): Don't mention TREE_PERMANENT.
7568 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
7570         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
7571         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
7572         * gensupport.h: Prototype new routines.
7573         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
7574         use of printf.
7575         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
7576         (next_comma_elt): Use scan_comma_elt.
7578         * config/i386/i386.md: Use new attribute notation to break up
7579         long lines in define_attr forms.
7581 2002-05-12  Richard Henderson  <rth@redhat.com>
7583         * expr.c (compress_float_constant): New.
7584         (emit_move_insn): Use it.
7585         (float_extend_from_mem): New.
7586         (init_expr_once): Initialize it.
7587         * real.c (exact_real_truncate): New.
7589         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
7590         dropped into memory; penalize for size.
7591         (RTX_COSTS): FLOAT_EXTEND is free.
7592         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
7593         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
7595 2002-05-12  Richard Henderson  <rth@redhat.com>
7597         * profile.h (profile_info): Add missing extern to declaration.
7598         * profile.c (profile_info): Define it.
7600 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7602         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
7603         used for DImode and TImode.
7605 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
7607         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
7608         fake a newline.
7610 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
7612         * config/rs6000/rs6000.c (rs6000_default_long_calls,
7613         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
7614         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
7615         (rs6000_override_options): Handle -m(no-)longcall.
7616         (init_cumulative_args, output_mi_thunk): Check for both
7617         longcall and shortcall attributes on the function.
7618         (rs6000_attribute_table): Add "shortcall".
7619         (rs6000_handle_longcall_attribute): Update comment.
7620         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
7621         altivec_expand_ternop_builtin): Add default clauses to switches
7622         to silence warnings.
7624         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
7625         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
7626         (TARGET_OPTIONS): Add longcall and no-longcall.
7628         * config/rs6000/rs6000.md (call_nonlocal_sysv,
7629         call_value_nonlocal_sysv): Split by alternatives.  One pair
7630         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
7631         the call cookie.  The other pair accepts only LR/CTR and has
7632         no restriction.
7634         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
7635         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
7636         tmake_file.
7637         * config/rs6000/rs6000-c.c: New file.
7638         * config/rs6000/t-rs6000-c-rule: New file.
7639         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
7640         Prototype rs6000_pragma_longcall.
7642         * doc/extend.texi: Document shortcall attribute.
7643         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
7645 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7647         * reorg.c (dbr_schedule): Remove unnecessary test.
7649 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
7651         * i386.md (testsi to testqi spliters): New.
7653         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
7655         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
7657         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
7659         * basic-block.h: New flag EDGE_CAN_FALLTHRU
7660         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
7661         that can be made fallthru.
7663         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
7665         * cfglayout.c (cleanup_unconditional_jumps): New static function.
7666         (cfg_layout_initialize): Use it.
7668 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7670         * config/avr/avr.c (avr_mcu_types): Update supported devices.
7671         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7672         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7674 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
7676         * dbxout.c: Fix formatting.
7677         * dependence.c: Likewise.
7678         * df.c: Likewise.
7679         * diagnostic.c: Likewise.
7680         * doloop.c: Likewise.
7681         * dominance.c: Likewise.
7682         * doschk.c: Likewise.
7683         * dwarf2asm.c: Likewise.
7684         * dwarf2out.c: Likewise.
7685         * dwarfout.c: Likewise.
7687 2002-05-10  Richard Henderson  <rth@redhat.com>
7689         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
7690         Convert integers constants as needed.  Replace "nwords" field with
7691         "sizeof_bb".
7692         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
7693         * function.h: Fix typo in comment.
7694         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
7696 2002-05-10  Roger Sayle  <roger@eyesopen.com>
7698         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
7699         into the equivalent (signed char)c > 0.
7701 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
7703         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
7704         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
7705         (struct prefetch_info): Fix spelling of member bytes_accessed.
7706         (emit_prefetch_instructions): Make dump messages more regular;
7707         restructure code to add more dump messages; use new macros for
7708         heuristics. (There are no code generation changes in any of this).
7710 2002-05-10  David S. Miller  <davem@redhat.com>
7712         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
7713         (struct rtx_def): Update unchanging flag comment.
7714         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
7715         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
7716         to be handled to INSN too.
7717         (dbr_schedule): Likewise.
7718         * resource.c (next_insn_no_annul): Likewise.
7720         * cse.c (rtx_cost): Remove multiplication by power of 2 special
7721         casing.
7723 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7725         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
7726         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
7727         (possibly) work around broken /bin/sh.
7729 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7731         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
7732         . as N64/N32 libgcc_s.so subdirs.
7734 2002-05-10  David S. Miller  <davem@redhat.com>
7736         * config/sparc/sparc.md: Use define_constants for unspec numbers.
7738         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
7739         more accurately.
7740         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
7741         comment.
7742         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
7743         * doc/rtl.texi: Document these macros more accurately.
7744         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
7745         JUMP_INSNs and CALL_INSNs.
7746         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
7747         or INSN_FROM_TARGET_P if the code is appropriate.
7749 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7751         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
7752         before using SYMBOL_REF_FLAG (addr).
7754         * config/avr/avr-protos.h (avr_io_address_p): Declare.
7755         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
7756         Make non-static.  Update all callers.
7757         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
7758         New insns to clear/set/test a single bit in I/O address space.
7760 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7762         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
7764 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
7766         * Makefile.in: Update.
7767         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
7768         builtin_define_std): New.
7769         (c_common_init): Register CPP builtins callback.
7770         * c-common.h (flag_iso, flag_undef): New.
7771         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
7772         * c-lex.c: Don't include target.h.
7773         (cb_register_builtins): Move to c-common.c.
7774         (init_c_lex): Don't register hook here.
7775         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
7776         (cpp_define, cpp_assert): Remove.
7777         * gcc.c (cc1_options): Pass -undef to front end.
7778         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
7779         (TARGET_INITIALIZER): Update.
7780         * target.h (struct cpp_reader): Don't predeclare.
7781         (struct gcc_target): Remove cpp builtin hook.
7782         * tree.c (default_register_cpp_builtins): Remove.
7783 doc:
7784         * tm.texi: Update.
7786 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
7788         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
7790 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7792         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
7793         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
7795 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
7797         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
7798         * config/sparc/libgcc-sparc-glibc.ver: New file.
7799         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
7800         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
7802 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
7804         PR target/6429
7805         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
7806         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
7807         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
7808         base multilibs.
7809         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
7810         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
7811         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
7812         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
7814 2002-05-09  Richard Henderson  <rth@redhat.com>
7816         * config/ia64/ia64.md: Use define_constants for unspec numbers.
7817         * config/ia64/ia64.c: Likewise.
7819 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
7821         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
7822         (save_restore_insns): Likewise.
7823         (mips_expand_prologue, mips_expand_epilogue): Update callers.
7824         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
7826 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
7828         * athlon.md, k6.md, pentium.md, ppro.md): New files.
7829         * i386.md: Move scheduling information into new files.
7831         * i386.md (type attribute): Add "rotate" for rotate insns.
7832         (rotate insns): Set type to "rotate".
7833         (various attributes and function units): Treat rotate like shift.
7834         (pent_pair attribute): Only rotates by one bit position are
7835         pairable.
7836         (sbb insns): Explicitly set pent_pair attribute on a couple
7837         that were missing it.
7839 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
7841         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
7842         make sure that buffer starts on odd word address.
7843         (sh_va_arg): Skip odd fp registers when reading a double precision
7844         value.
7846 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
7848         * tree.h (preserve_data, object_permanent_p, type_precision):
7849         Remove.
7851 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
7853         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
7854         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
7855 doc:
7856         * cpp.texi: Update for removal of obsolete features.
7858 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
7859                           Jeffrey A Law  (law@redhat.com)
7861         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
7862         the DFA interface for Pentium processors.
7863         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
7864         (attr_pent_pair, ix86_pent_find_pair): Remove.
7865         (ix86_sched_reorder_pentium): Remove.
7866         (ix86_sched_reorder): Remove reordering for Pentium.
7867         * i386.md (Pentium scheduling): Rewrite using DFA description.
7869 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
7871         * cfganal.c (can_fallthru): Fix fast path.
7872         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
7873         with edges to the next block.
7875 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
7876                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
7878         * final.c (end_final): Use C trees to output data structures for profiling.
7880         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
7881         (profile.o): New dependency profile.h
7882         (final.o): New dependency profile.h
7883         * profile.h: New file. New global structure profile_info.
7884         * final.h (count_edges_instrumented_now): Declare.
7885         (current_function_cfg_checksum): Declare.
7886         (function_list): New structure.
7887         (functions_head, functions_tail): New static variables.
7888         (end_final): Emits more data, removed some -ax stuff.
7889         (final): Stores function names and chcksums.
7890         * gcov-io.h (__write_gcov_string): New function.
7891         (__read_gcov_string): New function.
7892         * gcov.c (read_profile): New function.
7893         (create_program_flow_graph): Uses read_profile instead of reading
7894         da_file.
7895         (read_files): Removed da_file checking, it's done by read_profile now.
7896         * libgcc2.c (bb_function_info): New structure.
7897         (bb): New field in structure, removed some -ax stuff.
7898         (__bb_exit_func): Changed structure of da_file.
7899         * profile.c (count_edges_instrumented_now): New global variable.
7900         (current_function_cfg_checksum): New global variable.
7901         (max_counter_in_program): New global variable.
7902         (get_exec_counts): New function.
7903         (compute_checksum): New function.
7904         (instrument_edges): Sets count_edges_instrumented_now.
7905         (compute_branch_probabilities): Uses get_exec_counts instead of
7906         reading da_file.
7907         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
7908         (init_branch_prob): Removed da_file checking, done in get_exec_counts
7909         now.
7910         (end_branch_prob): Removed da_file checking, done in get_exec_counts
7911         now.
7912         * gcov.texi: Updated information about gcov file format.
7914 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
7916         * sbitmap.c: Fix formatting.
7917         * scan.c: Likewise.
7918         * scan-decls.c: Likewise.
7919         * sched-deps.c: Likewise.
7920         * sched-ebb.c: Likewise.
7921         * sched-rgn.c: Likewise.
7922         * sched-vis.c: Likewise.
7923         * sdbout.c: Likewise.
7924         * sibcall.c: Likewise.
7925         * simplify-rtx.c: Likewise.
7926         * ssa.c: Likewise.
7927         * ssa-ccp.c: Likewise.
7928         * ssa-dce.c: Likewise.
7929         * stmt.c: Likewise.
7930         * stor-layout.c: Likewise.
7931         * stringpool.c: Likewise.
7933 2002-05-09  David S. Miller  <davem@redhat.com>
7935         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
7937 2002-05-07  David S. Miller  <davem@redhat.com>
7939         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
7940         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
7941         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
7942         library implementation clobbers the output before the inputs
7943         are fully consumed, use stack temporary for the output.
7945 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
7947         * config/netbsd.h (CPP_SPEC): Remove.
7948         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
7949         * config/i386/netbsd.h (CPP_SPEC): Define.
7950         * config/ns32k/netbsd.h (CPP_SPEC): Define.
7951         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
7952         * config/sparc/netbsd.h (CPP_SPEC): Define.
7953         * config/vax/netbsd.h (CPP_SPEC): Define.
7955 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
7957         * read-rtl.c: Fix formatting.
7958         * real.c: Likewise.
7959         * recog.c: Likewise.
7960         * regclass.c: Likewise.
7961         * regmove.c: Likewise.
7962         * reg-stack.c: Likewise.
7963         * reload1.c: Likewise.
7964         * reload.c: Likewise.
7965         * resource.c: Likewise.
7966         * rtlanal.c: Likewise.
7967         * rtl.c: Likewise.
7968         * rtl-error.c: Likewise.
7970 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7972         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
7973         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
7975 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
7977         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
7978         use __SSE2__ macro instead.
7979         * config/i386/xmmintrin.h: Likewise.
7981 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
7983         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
7984         and use it in all invocations of these macros.  Clean up comments.
7985         * rtl.c (rtl_check_failed_flag): Add an argument for the name
7986         of the flag access macro whose check failed.
7987         * doc/rtl.texi (Flags): Document additional flag uses.
7989 2002-05-08  Robert Spier <rspier@pobox.com>
7990             Neil Booth  <neil@daikokuya.demon.co.uk>
7992         PR preprocessor/6521
7993         * cppfiles.c (handle_missing_header): Don't do anything
7994         different for <> includes.
7995 doc:
7996         * cppopts.texi: Update documentation for -MG.
7998 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
8000         * cpplex.c (cpp_interpret_charconst): Truncate as well as
8001         sign-extend.
8002 doc:
8003         * cpp.texi: Clarify multichar charconst valuation.
8005 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
8007         * doc/invoke.texi: Document -mwindiss option.
8009 2002-05-08  Jason Merrill  <jason@redhat.com>
8011         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
8013         * dwarf2out.c (gen_type_die): Abort on broken recursion.
8015         PR c++/6381
8016         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
8017         REAL_CST.
8019 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
8021         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
8022         little-endian multilibs to override arm/thumb multilibs.
8023         Do not build hardware floating point multilibs, nor apcs-26
8024         multilibs for the Thumb.
8026 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
8028         PR c/6569.
8029         * varasm.c (mark_weak): New function.
8030         (merge_weak): Use it.  Do not call declare_weak.
8031         (declare_weak): Use merge_weak.
8033 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
8035         * cse.c (dead_libcall_p): Update counts.
8036         (delete_trivially_dead_insns): Update call of dead_libcall_p.
8038 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
8040         * cfglayout.c (function_tail_eff_head): Rename to ...
8041         (function_footer): ... this one.
8042         (unlink_insn_chain): New functions.
8043         (label_for_bb): Only call block_label and emit debug message.
8044         (record_effective_endpoints): Actually unlink the headers and footers.
8045         (fixup_reorder_cahin): Re-insert the unlinked sequences.
8046         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
8047         * cfglayout.h (struct reorder_block_def): New fields footer/header;
8048         remove eff_head/eff_end.
8049         * rtl.h (set_first_insn): Declare.
8050         * emit-rtl.c (set_first_insn): New function.
8052         * cfglayout.c (fixup_reorder_chain): Dump duplicated
8053         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8054         cfg_layout_duplicate_bb): New global function.
8055         (duplicate_insn_chain): New static function.
8056         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8057         cfg_layout_duplicate_bb): Declare.
8058         (struct reorder_block_def): Add "original" field.
8059         * emit-rtl.c (emit_copy_of_insn_after): New function.
8060         * rtl.h (emit_copy_of_insn_after): Declare.
8062         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
8063         (fixup_reorder_chain): properly handle edges to exit block.
8065 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8066                                Jan Hubicka  <jh@suse.cz>
8068         * basic-block.h (note_prediction_to_br_prob): declare.
8069         * c-semantics.c: Inlucde predit.h
8070         (expand_stmt): predict GOTO_STMT as not taken.
8071         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
8072         (cleanup_cfg): Do not free tail_recursion_list.
8073         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
8074         (flow_delete_block): Kill predictions past end of basic block.
8075         * output.h (delete_unreachable_blocks): Declare.
8076         * predict.c (predicted_by_p, process_note_predictions,
8077         process_note_prediction, last_block_p): New function.
8078         (estimate_probability): Bypass loop on PRED_CONTINUE;
8079         do not handle noreturn heuristics; kill PRED_RETURN; add
8080         PRED_EARLY_RETURN.
8081         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
8082         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
8083         * predict.h (IS_TAKEN): New constant.
8084         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
8085         * rtl.c (NOTE_INSN_PREDICTION): New.
8086         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
8087         New macro.
8088         (insn_note): add NOTE_INSN_PREDICTION.
8089         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
8090         CFG; free tail_recursion_label_list.
8091         * stmt.c: Include predict.h;
8092         (return_prediction): New.
8093         (expand_value_return): Use it.
8094         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
8096 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
8098         * config/mips/mips.md: Name the unspecs with define_constant.
8099         (*HILO_delay): Rename to 'hilo_delay' (no star).
8100         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
8101         (reload_outdi, reload_outsi): Likewise.
8103 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
8105         * toplev.c: Fix formatting.
8107 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
8109         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
8110         * configure.in (ac_rtlflag_checking): New.
8111         * doc/install.texi (--enable-checking): Document RTL flag checking.
8113 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
8115         * c-common.c (c_common_init): Set options->unsigned_wchar.
8116         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
8117         group target dependencies.
8118         (init_builtins, cpp_handle_option): Update.
8119         * cpplex.c (cpp_interpret_charconst): Update.
8120         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
8121         signed_char to unsigned_char, group target dependencies.
8122         * defaults.h (WCHAR_UNSIGNED): Remove.
8123         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
8124 config:
8125         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
8126         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
8127         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
8128         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
8129         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
8130 doc:
8131         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
8133 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
8135         * fixinc/inclhack.def (windiss_math1): New fix.
8136         (windiss_math2): Likewise.
8137         (windiss_valist): Likewise.
8138         * fixinc/fixincl.x: Regenerated.
8140 2002-05-07  Andreas Jaeger  <aj@suse.de>
8142         * genautomata.c (output_internal_min_issue_delay_func): Add
8143         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
8144         (output_internal_trans_func): Likewise.
8146 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
8148         * pa.c (hppa_profile_hook): Use force_reg to get the address
8149         of the profile hook into an appropriate pseudo register.
8151 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
8153         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
8154         (LINK_START_SPEC): Handle it.
8155         (LINK_OS_SPEC): Likewise.
8156         (CPP_SPEC): Likewise.
8157         (STARTFILE_SPEC): Likewise.
8158         (LIB_SPEC): Likewise.
8159         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
8160         all platforms.
8161         (CRTSAVRES_DEFAULT_SPEC): New macro.
8162         (LIB_WINDISS_SPEC): New macro.
8163         (CPP_OS_WINDISS_SPEC): Likewise.
8164         (STARTFILE_WINDISS_SPEC): Likewise.
8165         (ENDFILE_WINDISS_SPEC): Likewise.
8166         (LINK_START_WINDISS_SPEC): Likewise.
8167         (LINK_OS_WINDISS_SPEC): Likewise.
8168         * config/rs6000/windiss.h: New file.
8170 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
8172         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
8174 2002-05-06  David S. Miller  <davem@redhat.com>
8176         * config/sparc/sparc.md (shift insns): Do not mask off
8177         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
8178         take care of it.
8180 2002-05-06  Richard Henderson  <rth@redhat.com>
8182         PR c++/6212
8183         * expr.c (highest_pow2_factor_for_type): New.
8184         (expand_assignment): Use it.
8186 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
8188         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
8189         unspec_volatile.
8190         ("altivec_mfvscr"): Same.
8192 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
8194         * rtl.h (struct rtx_def): Update comments.
8195         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
8196         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
8197         RTL_FLAG_CHECK macros with list of expected RTL codes.
8198         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
8199         (rtl_check_failed_flag): New.
8200         * reload1.c (reload): Use REG macro before changing rtx to MEM.
8201         (reload_cse_noop_set_p): Check rtx code before using access macro.
8202         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
8203         before using access macro.
8205 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
8207         * doc/rtl.texi (Flags): Update to reflect current usage.
8209 2002-05-06  Roger Sayle  <roger@eyesopen.com>
8211         PR opt/3995
8212         * fold-const.c (sign_bit_p): New function.
8213         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
8214         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
8215         Reapply fold when converting (A & C) == C into (A & C) != 0.
8216         (fold_binary_op_with_conditional_arg): Fix typo in comment.
8218 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
8220         * c-common.c (warn_multichar): New.
8221         (c_common_init): Set CPP's warn_multichar.
8222         * c-common.h (warn_multichar): New.
8223         * c-decl.c (warn_multichar): Remove.
8224         * c-lex.c (lex_charconst): Update.
8225         * c-tree.h (warn_multichar): Remove.
8226         * cppexp.c (eval_token): Sign-extend charconst value.
8227         * cppinit.c (cpp_create_reader): Set warn_multichar.
8228         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
8229         each character.  Update prototype.  Sign-extend the result.
8230         * cpplib.h: Fix conditions.
8231         (struct cpp_options): Add new warning flag.
8232         (cpp_interpret_charconst): Update prototype.
8233 doc:
8234         * cpp.texi: Update documentation.
8236 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
8238         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
8239         Fix typo in usage of allof instead of unit.
8241 2002-05-06  Richard Henderson  <rth@redhat.com>
8243         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
8244         and any jump or call for IN.
8246 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
8248         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
8249         -msse2.
8250         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
8252 2002-05-06  Roger Sayle  <roger@eyesopen.com>
8254         * fold-const.c (lshift-double): Cast the high word to an unsigned
8255         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
8256         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
8257         avoid compiler warning.  (fold): Remove redundant code from
8258         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
8260 2002-05-06  Jeff Law  <law@redhat.com>
8262         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
8263         * pa.c (pa_adjust_cost): Remove all true dependency cost
8264         adjustments.  Also remove support for non-DFA scheduling.
8265         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
8266         to adjust true dependency costs.  Update various comments.
8267         (7100lc, 7200, 7300 scheduling): Simplify by combining the
8268         FP ALU & MPY units into a single unit.
8270 2002-05-06  Catherine Moore  <clm@redhat.com>
8272         * config/v850/v850.c (compute_register_save_size): Make sure
8273         to count all of the registers that will be saved.
8275 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
8277         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
8279 2002-05-06  David S. Miller  <davem@redhat.com>
8281         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
8282         allow result to overlap input operands in memory.
8284 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
8286 doc:
8287         * cpp.texi: Update multichar charconst docs.
8289 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
8291         * cpplex.c (cpp_interpret_charconst): Sign-extend each
8292         character.  Don't ignore excess characters.  Treat
8293         multicharacter character constants as signed.
8294         (cpp_parse_escape): Clarify diagnostic.
8296 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
8298         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
8299         use add instead of shift.
8300         (ashldi3_sp64): Likewise.
8301         (ashlsi3_const1, ashldi3_const1): Remove.
8302         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
8303         * config/sparc/sparc.c (const1_operand): New.
8305 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
8307         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
8309 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
8311         PR target/6561
8312         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
8314 2002-05-05  Richard Henderson  <rth@redhat.com>
8316         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
8317         memory latency adjustments.
8318         (alpha_variable_issue): Remove.
8319         (alpha_use_dfa_pipeline_interface): New.
8320         (alpha_multipass_dfa_lookahead): New.
8321         * config/alpha/alpha.md: Remove define_function_unit scheduling;
8322         include new dfa scheduling.
8323         (attr type): Add none.
8324         (blockage): Use it.
8325         * config/alpha/ev4.md: New.
8326         * config/alpha/ev5.md: New.
8327         * config/alpha/ev6.md: New.
8329 2002-05-05  David S. Miller  <davem@redhat.com>
8331         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
8333 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
8335         * cse.c: Fix formatting.
8336         * emit-rtl.c: Likewise.
8338 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
8340         * genautomata.c (initiate_states): Add additional guard to
8341         initialize `units_array'.
8343 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
8345         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
8346         process_unit_to_form_the_same_automaton_unit_lists,
8347         form_the_same_automaton_unit_lists
8348         check_unit_distributions_to_automata): New prototypes and
8349         functions.
8350         (check_automata): Rename it into `check_automata_insn_issues'.
8351         (unit_decl): New fields `the_same_automaton_unit' and
8352         `the_same_automaton_message_reported_p'.
8353         (unit_decl_t): New typedef.
8354         (the_same_automaton_lists): New gloval variable.
8355         (unit_regexp, unit_set_el, units_array, units_cmp,
8356         output_get_cpu_unit_code_func): Use the typedef.
8357         (evaluate_max_reserv_cycles): Increment
8358         `description->max_insn_reserv_cycles'.
8359         (initiate_states): Don't increment `max_cycles_num'.
8360         (transform_insn_regexps): Move code around transformation of
8361         regexps from `generate'.
8362         (generate): Remove call of `transform_insn_regexps'.
8363         (expand_automata): Call `transform_insn_regexps' and
8364         `check_unit_distributions_to_automata'.  Check errors before
8365         `generate'.
8367         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
8368         automaton `ultrasparc3_1'.
8370 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
8372         * c-common.c (c_common_init): Set up CPP arithmetic.
8373         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
8374         something reasonable for the host.
8375         (sanity_checks): Add checks.
8376         (cpp_read_main_file): Call sanity_checks() from here...
8377         (cpp_post_options): ... not here.
8378         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
8379         * cpplib.h (struct cpp_options): New member int_precision.
8381 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8383         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
8385 2002-05-04  David S. Miller  <davem@redhat.com>
8387         * config/sparc/linux.h, config/sparc/linux64.h
8388         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
8390         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
8391         more RTX codes.
8392         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
8394         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
8395         of SETs.
8397 2002-05-05  Tim Josling  <tej@melbpc.org.au>
8399         * treelang; New directory for new sample language treelang.
8401 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8403         * Makefile.in (c-lex.o): Update.
8404         * c-lex.c: Include target.h.
8405         (cb_register_builtins): New.
8406         (init_c_lex): Set builtins callback.
8407         * c-lex.h (cpp_define, cpp_assert): New prototypes.
8408         * cppinit.c (init_builtins): Use callback, including for
8409         GXX_WEAK.
8410         * cpplib.h (struct cpp_callbacks): New member.
8411         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
8412         (TARGET_INITIALIZER): Update.
8413         * target.h (struct gcc_target): New hook.
8414         * tree.c (default_register_cpp_builtins): New.
8415         * tree.h (default_register_cpp_builtins): New.
8416 doc:
8417         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
8419 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8421         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
8422         (cpp_post_options): Move sanity checks to...
8423         (sanity_checks): New.
8424         * cpplex.c (maybe_read_ucs): Fix prototype.
8425         (parse_string, cpp_parse_escape): Cast for %c format specifier.
8426         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
8427         if necessary.
8429 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
8431         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
8432         builtins.  Use V2DI patterns instead of TI for logical operations.
8433         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
8434         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
8435         (ix86_expand_builtins): Change the pattern used for movntdq.
8436         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
8437         sse2_nandv2di3): New patterns.
8438         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
8439         on operands.
8440         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
8441         (cvtdq2pd): Correct mode on operand 1.
8442         (sse2_umulsidi3): Describe without unspec.
8443         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
8444         machine modes.
8445         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
8446         (ashlv2di3): Likewise, from sse2_ashlv2di3.
8447         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
8448         ashlv4si3, ashlv2di3): Use SImode for shift count.
8449         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
8450         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
8451         New patterns.
8452         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
8453         New typedefs.
8454         (__m128i, __m128d): New macros.
8455         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
8456         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
8457         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
8458         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
8459         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
8460         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
8461         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
8462         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
8463         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
8464         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
8465         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
8466         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
8467         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
8468         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
8469         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
8470         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
8471         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
8472         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
8473         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
8474         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
8475         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
8476         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
8477         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
8478         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
8479         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
8480         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
8481         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
8482         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
8483         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
8484         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
8485         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
8486         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
8487         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
8488         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
8489         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
8490         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
8491         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
8492         functions.
8493         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
8494         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
8496 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
8498         * dwarf2out.c: Fix formatting.
8499         * varasm.c: Likewise.
8501 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
8503         PR c/6543
8504         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
8505         clobber and use result as temporary value.
8507 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
8509         * expr.c (force_operand): Use expand_simple_* to handle more
8510         cases.
8512 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8514         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
8515         and sign-extension.
8516         (lex_charconst): Update for change in prototype of
8517         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
8518         appropriately.
8519         * cpphash.h (BITS_PER_CPPCHAR_T): New.
8520         * cppinit.c (cpp_create_reader): Initialize them for no
8521         change in semantics.
8522         (cpp_post_options): Add sanity checks.
8523         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
8524         and truncation issues.  Calculate in type cppchar_t.
8525         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
8526         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
8527         run-time dependent precision correctly.  Return whether the
8528         result is signed or not.
8529         * cpplib.c (dequote_string): Use cppchar_t; update.
8530         * cpplib.h (cppchar_signed_t): New.
8531         struct cpp_options): New precision members.
8532         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
8533         * cppexp.c (eval_token): Update.
8535 2002-05-03  David S. Miller  <davem@redhat.com>
8537         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
8538         * config/sparc/sparc.c (sparc_rtx_costs): New function
8539         implementing RTX_COSTS and CONST_COSTS.
8540         * config/sparc/sparc.h (CONST_COSTS): Delete.
8541         (RTX_COSTS_CASES): Define.
8542         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
8543         the work.
8545         * config/sparc/sparc.md (DFA schedulers): Split out...
8546         * config/sparc/cypress.md, config/sparc/hypersparc.md,
8547         config/sparc/sparclet.md, config/sparc/supersparc.md,
8548         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
8550         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
8551         checks on it, always defined for Sparc.
8553         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
8554         Tweak, and add more detailed comments.
8556 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
8558         * Re-apply patch accidentally reverted with
8559         DFA scheduler merge: remove all rules and variables to slurp
8560         source files out of libiberty and rebuild them with HOST_CC.
8561         ($(HOST_PREFIX_1)varray.o): New rule.
8562         (genattrtab rule): Word wrap.
8564 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
8566         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
8567         (CPP_SUBTARGET_SPEC): Define.
8568         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
8569         cpp_subtarget specs.
8570         (CPP_SPEC): Redefine to include %(cpp_subtarget).
8572 2002-05-03  David S. Miller  <davem@redhat.com>
8574         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
8575         * target.h (struct gcc_target): Delete cycle_display member.
8577         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
8578         (rtx_needs_barrier): Delete reference to cycle_display unspec.
8579         (ia64_sched_reorder2): Mention need for cycle display handling
8580         once such notes exist.
8582 2002-05-03  Richard Henderson  <rth@redhat.com>
8584         * real.c (etoasc): Strip most trailing zeros for clarity.
8585         * sched-vis.c: Include real.h.
8586         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
8587         * Makefile.in (sched-vis.o): Add real.h.
8589 2002-05-03  David S. Miller  <davem@redhat.com>
8591         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
8592         no longer needed.
8594 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
8596         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
8597         when we get an out of range literal.
8598         (altivec_expand_ternop_builtin): Same.
8599         (altivec_expand_unop_builtin): Same.
8600         (altivec_expand_builtin): Same, for dss.
8601         (altivec_expand_builtin): Use trees instead of rtl when
8602         determining literal argument validity.
8604 2002-05-03  David S. Miller  <davem@redhat.com>
8606         Delete cycle display scheduling hook.
8607         * config/ia64/ia64.c (ia64_cycle_display,
8608         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
8609         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
8610         and use emit_insn_before instead of ia64_emit_insn_before.
8611         * config/ia64/ia64.md (unspec usage): Delete cycle display.
8612         (cycle_display): Delete insn pattern.
8613         * config/sparc/sparc.md (unspec usage): Delete cycle display.
8614         (cycle_display): Delete insn pattern.
8615         * config/sparc/sparc.c (sparc_cycle_display,
8616         TARGET_SCHED_CYCLE_DISPLAY): Delete.
8617         * doc/md.texi (cycle_display): Don't mention.
8618         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
8620 2002-05-03  Richard Henderson  <rth@redhat.com>
8622         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
8623         * recog.h: Declare them.
8625         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
8626         * config/sparc/sparc.md: Use store_data_bypass_p instead.
8627         * config/sparc/sparc-protos.h: Update.
8629 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
8631         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
8632         -D__arch64__.  Add -D_LP64.
8633         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
8634         from sparc.h.
8635         (CPP_ARCH64_SPEC): Likewise.
8636         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
8637         (NO_BUILTIN_SIZE_TYPE): Undef.
8639 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
8641         * genautomata.c (min_issue_delay_pass_states): Change return type
8642         in the prototype.
8643         (min_issue_delay_pass_states): Change the algorithm.
8644         (min_issue_delay): Set up min_insn_issue_delay for the state.
8645         (output_min_issue_delay_table): Interchange the nested loops and
8646         and initiate min_insn_issue_delay for states.
8648 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
8650         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
8651         jump is simplejump.
8653 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
8655         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
8656         sequence.
8658 2002-05-03  Richard Henderson  <rth@redhat.com>
8660         PR opt/6534
8661         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
8662         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
8663         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
8664         code before JUMP, not EARLIEST.
8666 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
8668         * c-format.c (check_format_info_main): Don't check for presence of
8669         parameter for * width until after operand number has been read,
8670         and only check for it if format parameters are available.
8671         Fixes PR c/6547.
8673 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
8675         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
8676         (LINK_SPEC): Undef before defining.
8678 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
8680         PR preprocessor/6489
8681         * tradcpp.c (fixup_newlines): New.
8682         (main, finclude): Use it.
8684 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
8686         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
8687         * config/mips/mips.c (mips_unique_section): Strip encoding from
8688         decl name.
8690 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
8692         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
8693         mode.
8695 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8697         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
8698         (Specific): Removed buildstats references.
8699         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
8700         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
8701         Accomodate Solaris versions beyond 8.
8702         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
8703         (Specific, *-*-solaris2.8): Removed, obsolete.
8705 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
8707         PR target/6542
8708         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
8709         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
8710         fill leaf_reg_remap with identity.
8711         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
8713 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
8715         * config/h8300/crti.asm: Remove trailing spaces.
8716         * config/h8300/h8300.c: Likewise.
8717         * config/h8300/lib1funcs.asm: Likewise.
8719 2002-05-02  Jason Merrill  <jason@redhat.com>
8721         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
8722         * c-decl.c (c_init_decl_processing): Use it.
8723         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
8724         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
8725         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
8727 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
8729         * regrename.c: Fix formatting.
8730         * tree.c: Likewise.
8732 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
8734         * i386.md (attribute memory): Handle compares properly.
8736 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
8738         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
8739         to none.
8741 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
8743         * function.c: Fix formatting.
8745 2002-05-02  Jan Hubicka  <jh@suse.cz>
8747         * haifa-sched.c (schedule_insn): Print table of instructions and
8748         reservations.
8749         (sched_block): Do not print ready list at verbosity level 1.
8750         * sched-vis.c (print_insn): Make global.
8751         * sched-ebb.c (ebb_print_insn): Rename from...
8752         (print_insn): ... this one.
8753         * sched-int.h (print_insn): Declare
8755 2002-05-02  Richard Henderson  <rth@redhat.com>
8757         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
8758         emitted by cycle_display.
8760 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
8762         * doc/install.texi (*-*-freebsd*): Update to latest status.
8764 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
8766         PR target/6540
8767         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
8768         * config/float-sparc.h: Assume 128-bit long double if
8769         __LONG_DOUBLE_128__ is defined.
8771 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
8773         * genattrtab.c (write_function_unit_info): Add a dummy element
8774         when num_units == 0.
8776 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8778         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
8779         TYPE_MODE (double_type_node) instead of DFmode.
8781 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
8783         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
8784         jumps post reload.
8785         * toplev.c (rest_of_compilation): Revert Richard's patch.
8787 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8789         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
8791 2002-05-02  Catherine Moore  <clm@redhat.com>
8793         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
8795 2002-05-02  Kazu Hirata  <kazu@hxi.com>
8797         * combine.c: Fix comment typos.
8798         * expr.c: Likewise.
8799         * genautomata.c: Likewise.
8800         * stmt.c: Likewise.
8801         * tree.h: Likewise.
8803 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
8805         * doc/install.texi: State GNAT version requirements.
8807 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
8809         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
8810         of the frame pointer or arg pointer register which strict register
8811         checking is not enabled.
8813 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
8815         * gcc.dg/altivec-8.c: New.
8817         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
8818         PRE_INC and PRE_DEC for altivec modes.
8820 2002-05-01  Bruce Korb  <bkorb@gnu.org>
8822         * fixinc/check.tpl(set-writable): make sure the function exists first
8823         * fixinc/inclhack.def(alpha_assert): fix test_text
8824         * fixinc/tests/base/assert.h: add in missing result
8826 2002-05-01  Jeff Law  <law@redhat.com>
8828         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
8829         'T' constraint.
8831 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
8833         * dbxout.c (dbxout_type): Emit size information for range types,
8834         as well, but only when using GDB extensions.
8836 2002-05-01  Richard Henderson  <rth@redhat.com>
8838         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
8839         target-independent gnu binutils date test.
8841 2002-05-01  Richard Henderson  <rth@redhat.com>
8843         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
8844         info before expunging the block.
8846 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
8848         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
8849         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
8850         -M -or -MM is in effect.
8852 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
8854         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
8855         A29k configurations.
8856         * doc/install.texi: Update to match.
8858 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8860         PR bootstrap/6514
8861         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
8862         for duplicates. Always loop over whole list.
8864 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8866         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
8868 2002-05-01      Joel Sherrill <joel@OARcorp.com>
8870         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
8871         support routines.
8873 2002-05-01      Joel Sherrill <joel@OARcorp.com>
8875         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
8877 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
8879         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
8880         (nabs_nopower): Same.
8881         (floatdisf2): New pattern.
8882         (absdi2): Convert to define_insn_and_split.
8883         (nabsdi2): Same.
8884         (trunctfsf2): Same.
8885         (floatditf2): Same.
8886         (floatsitf2): Same.
8887         (fix_trunctfdi2): Same.
8888         (fix_trunctfsi2): Same.
8890 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
8892         * doc/install.texi: Update Texinfo version requirement
8893         documentation.
8895 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
8897         PR target/6512, PR target/5628
8898         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
8899         when memory is not aligned.
8900         (movdf_insn_v9only_vis): Likewise.
8901         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
8902         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
8903         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
8905 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
8907         * gcc.dg/altivec-7.c: New.
8909         * config/rs6000/altivec.h: Cleanup.
8911 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
8913         * doc/invoke.texi (Option Summary): Add -mvrsave=.
8914         (RS/6000 and PowerPC Options): Document -mvrsave=.
8916         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
8917         (rs6000_altivec_vrsave_string): Same.
8918         (rs6000_override_options): Call rs6000_parse_vrsave_option.
8919         (rs6000_parse_vrsave_option): New.
8920         (rs6000_stack_info): Only generate vrsave instructions when
8921         TARGET_ALTIVEC_VRSAVE.
8923         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
8924         (rs6000_altivec_vrsave_string): Define extern.
8925         (rs6000_altivec_vrsave): Same.
8926         (TARGET_ALTIVEC_VRSAVE): New.
8928 2002-04-30  Richard Henderson  <rth@redhat.com>
8930         PR opt/6516
8931         * toplev.c (rest_of_compilation): Don't run cross-jump before
8932         bb-reorder.
8934 2002-04-30  Tom Rix  <trix@redhat.com>
8936         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
8937         check which_alternative.
8939 2002-04-30  Kazu Hirata  <kazu@hxi.com>
8941         * cpplex.c: Fix comment formatting.
8942         * function.c: Likewise.
8943         * integrate.c: Likewise.
8944         * regrename.c: Likewise.
8945         * sibcall.c: Likewise.
8946         * simplify-rtx.c: Likewise.
8947         * tree-inline.c: Likewise.
8949 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8951         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
8952         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
8953         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
8954         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
8955         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
8956         * pa/x-ada: New file.  Define ADA_CFLAGS.
8958 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
8960         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
8961         from MMIX_LAST_REGISTER_FILE_REGNUM.
8962         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
8963         (struct machine_function): New member highest_saved_stack_register
8964         previously static variable in mmix.c.
8965         (MACHINE_DEPENDENT_REORG): Define.
8966         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
8967         (MMIX_OUTPUT_REGNO): New.
8968         (mmix_target_asm_function_prologue): Move calculation of last used
8969         saved-stack-register into...
8970         (mmix_machine_dependent_reorg): New function.  Update to also handle
8971         !TARGET_ABI_GNU.
8972         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
8973         register names, simplify somewhat by new variable regno.
8974         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
8975         register.
8976         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
8977         emitting register names.
8978         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
8979         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
8980         Remove fixed FIXME.
8981         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
8982         Declare.
8984         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
8986 2002-04-30  Richard Henderson  <rth@redhat.com>
8988         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
8989         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
8990         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
8991         emit_tfmode_cvt): New.
8992         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
8993         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
8994         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
8995         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
8996         * config/sparc/sparc-protos.h: Update.
8998 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
9000         * install.texi (Final install): Add to the list of info to include
9001         in a report of a successful bootstrap, and add link to 3.1 list.
9003 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
9005         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
9006         (mode): Add vector modes
9007         (i387): Kill attribute.
9008         (unit): New attribute.
9009         (length_immediate): Grok new types.
9010         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
9011         (modrm): Use "unit".
9012         (memory): Handle MMX/SSE properly.
9013         (scheduling descriptions): Kill uses of fop1.
9014         (sse, mmx, fp patterns): Set type and mode properly.
9016 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
9018         * pa.c (override_options): Default to PA8000 scheduling.
9019         * doc/invoke.texi (HP-PA options): Mention newly added 7300
9020         scheduling parameter.
9022         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
9023         handling of double precision multiplies.
9025         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
9026         fpdiv and fpsqrt instructions.
9027         (7200 & 7300 scheduling): Fix typo in handling of
9028         store-load and store-store penalties.
9030 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9032         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
9033         mips.  Add two missing commas.
9035 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
9037         * doc/contrib.texi (Contributors): Update Paolo Carlini's
9038         and Benjamin Kosnik's entries.
9040 2002-04-29  David S. Miller  <davem@redhat.com>
9042         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
9043         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
9044         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
9045         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9047 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9049         * combine.c (find_split_point): Use gen_int_mode.
9051 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
9053         Merging code from dfa-branch:
9055         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
9057         * genautomata.c (output_reserv_sets): Fix typo.
9059         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
9061         * genautomata.c (output_reserv_sets): Remove
9062         next_cycle_output_flag.
9064         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
9066         * sched-rgn.c (init_ready_list): Make the DFA code handle
9067         USE/CLOBBER insns in the same way as the traditional
9068         scheduler.
9069         (new_ready): Similarly..
9071         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
9073         * haifa-sched.c (schedule_block): Change the DFA state only after
9074         issuing insn.
9076         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
9078         * pa.c (hppa_use_dfa_pipeline_interface): New function.
9079         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
9080         (override_options): Add PA7300 scheduling support.
9081         (pa_adjust_cost): Update various comments.  Properly
9082         handle anti and output dependencies when using the
9083         DFA scheduler.
9084         (pa_issue_rate): Add PA7300 scheduling support.
9085         (pa_can_combine_p): Call extract_insn before calling
9086         constrain_operands (taken from mainline tree).
9087         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
9088         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
9089         descriptions using DFA descriptions.  Add PA7300
9090         scheduling support.
9092         2002-03-30  David S. Miller  <davem@redhat.com>
9094         Add UltraSPARC-III DFA scheduling support.
9095         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
9096         Update FP conditional move on register insn patterns to use it, as
9097         appropriate.
9098         (define_attr cpu): Add ultrasparc3.
9099         (define_attr us3load_type): New, update integer load patterns to
9100         set it, as appropriate.
9101         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
9102         (rest): Add UltraSPARC3 scheduling description.
9103         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
9104         (PROCESSOR_ULTRASPARC3): New.
9105         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
9106         ({ASM,CPP}_CPU_SPEC): Likewise.
9107         (REGISTER_MOVE_COST): Likewise.
9108         (RTX_COSTS): Likewise.
9109         * config/sparc/sparc.c (sparc_override_options,
9110         sparc_initialize_trampoline, sparc64_initialize_trampoline,
9111         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9112         sparc_issue_rate): Likewise.
9113         * config/sparc/sol2.h: Likewise.
9114         * config/sparc/sol2-sld-64.h: Likewise.
9115         * config/sparc/linux64.h: Likewise.
9117         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
9119         * doc/md.texi: Add comments about usage the latency time for the
9120         different dependencies and about case when two or more conditions
9121         in different define_insn_reservations returns TRUE for an insn.
9123         * doc/md.texi: Add reference for automaton based pipeline
9124         description.
9126         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
9128         * doc/passes.texi: Add missed information about genattrtab.
9130         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
9132         * genautomata.c (output_automata_list_transition_code): Check
9133         automata_list on NULL.
9135         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
9137         * genautomata.c (output_insn_code_cases,
9138         output_automata_list_min_issue_delay_code,
9139         output_automata_list_transition_code,
9140         output_automata_list_state_alts_code): Comment the functions.
9142         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
9144         * genautomata.c (automata_list_el_t): New typedef.
9145         (get_free_automata_list_el,free_automata_list_el,
9146         free_automata_list, automata_list_hash, automata_list_eq_p,
9147         initiate_automata_lists, automata_list_start, automata_list_add,
9148         automata_list_finish, finish_automata_lists,
9149         output_insn_code_cases, output_automata_list_min_issue_delay_code,
9150         output_automata_list_transition_code,
9151         output_automata_list_state_alts_code, add_automaton_state,
9152         form_important_insn_automata_lists): New functions and prototypes.
9153         (insn_reserv_decl): Add members important_automata_list and
9154         processed_p.
9155         (ainsn): Add members important_p.
9156         (automata_list_el): New structure.
9157         (first_free_automata_list_el, current_automata_list,
9158         automata_list_table): New global variables.
9159         (create_ainsns): Initiate member important_p.
9160         (output_internal_min_issue_delay_func): Generate the switch and
9161         call output_insn_code_cases.
9162         (output_internal_trans_func, output_internal_state_alts_func):
9163         Ditto.
9164         (generate): Call initiate_automata_lists.
9165         (automaton_states): New global variable.
9166         (expand_automata): Call form_important_insn_automata_lists.
9167         (write_automata): Call finish_automata_lists.
9169         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
9171         * genautomata.c (add_excls, add_presence_absence): Check that
9172         cpu units in the sets belong the same automaton.
9174         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
9175         about that cpu units in the sets belong the same automaton.
9177         * doc/md.texi: Ditto.
9179         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
9180                     Nitin Gupta  <niting@noida.hcltech.com>
9182         * config/sh/sh.c (sh_use_dfa_interface): New function.
9184         (sh_issue_rate): New Function.
9185         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
9186         TARGET_SCHED_ISSUE_RATE: define.
9188         * config/sh/sh.md: Add DFA based pipeline description for SH4.
9190         (define_attr insn_class): New attribute used for DFA
9191          scheduling.
9192         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
9193         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
9194          cmpeqdi_t): Likewise.
9196         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
9197          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
9198          ex_group.
9199         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
9201         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
9203         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
9204         break.
9206         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
9208         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
9209         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
9210         necessary.
9211         (output_dfa_start_func): Initiate new variable insn_codes_length,
9212         (write_automata): Output definition of the new variable.
9214         2001-10-02  David S. Miller  <davem@redhat.com>
9216         * haifa-sched.c (advance_one_cycle): New function.
9217         (schedule_block): Use it.
9218         (queue_to_ready): Use it, and also make sure to advance the DFA
9219         state on all stall cycles, not just those where insn_queue links
9220         are found.
9222         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
9224         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
9225         non-zero if the highest-priority instruction could be scheduled.
9226         (choose_ready): Remove last argument from max_issue call.
9228         2001-09-28  David S. Miller  <davem@redhat.com>
9230         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
9231         ultrasparc and 3 for other multi-issue sparcs.
9233         2001-09-27  David S. Miller  <davem@redhat.com>
9235         * config/sparc/sparc.md (cycle_display): New pattern.
9236         * config/sparc/sparc.c (sparc_cycle_display): New.
9237         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
9239         2001-09-25  David S. Miller  <davem@redhat.com>
9241         Convert all of Sparc scheduling to DFA
9242         * config/sparc/sparc.md: Kill all define_function_unit
9243         directives and replace with DFA equivalent.
9244         * config/sparc/sparc.c (ultrasparc_adjust_cost,
9245         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
9246         ultra_fpmode_conflict_exists, ultra_find_type,
9247         ultra_build_types_avail, ultra_flush_pipeline,
9248         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
9249         ultrasparc_variable_issue, ultrasparc_sched_init,
9250         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
9251         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
9252         ultra_cur_hist, ultra_cycles_elapsed): Kill.
9253         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9254         ultrasparc_store_bypass_p): New.
9255         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
9256         Declare.
9258         2001-09-24  David S. Miller  <davem@redhat.com>
9260         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
9261         ready->vec[foo] not ready[foo].
9263         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
9265         * doc/md.texi: Correct examples for define_insn_reservations
9266         `mult' and `div'.
9268         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
9270         * genautomata.c (create_automata): Print message about creation of
9271         each automaton.
9272         (generate): Remove printing meease about creation of
9273         automata.
9275         2001-09-05  David S. Miller  <davem@redhat.com>
9277         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
9278         * config/sparc/linux64.h: Likewise.
9280         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
9282         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
9283         schedule_block, sched_init, sched_finish): Add missed calls of
9284         use_dfa_pipeline_interface.
9286         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
9287         Ditto.
9289         * sched-vis.c (get_visual_tbl_length): Ditto.
9291         2001-08-27  Richard Henderson  <rth@redhat.com>
9293         * genattr.c (main): Emit state_t even when not doing scheduling.
9295         2001-08-27  Richard Henderson  <rth@redhat.com>
9297         * genautomata.c (expand_automata): Always create a description.
9299         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
9301         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
9302         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
9303         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
9304         RTL constructions.
9306         * genattr.c (main): New variable num_insn_reservations.  Increase
9307         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
9308         pipeline hazard recognizer interface.
9310         * genattrtab.h: New file.
9312         * genattrtab.c: Include genattrtab.h.
9313         (attr_printf, check_attr_test, make_internal_attr,
9314         make_numeric_value): Move protypes into genattrtab.h.  Define them
9315         as external.
9316         (num_dfa_decls): New global variable.
9317         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
9318         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
9319         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
9320         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
9322         * genautomata.c: New file.
9324         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
9326         * sched-int.h: (curr_state): Add the external definition for
9327         automaton pipeline interface.
9328         (haifa_insn_data): Add comments for members blockage and units.
9330         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9331         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9332         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9333         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9334         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9335         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9336         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
9337         macros.
9338         (TARGET_SCHED): Use the new macros.
9340         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
9341         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
9342         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
9343         dfa_bubble): New members in gcc_target.sched.
9345         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
9346         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
9347         (insn_queue): Redefine it as pointer to array.
9348         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
9349         INSN_QUEUE_SIZE.
9350         (max_insn_queue_index_macro_value): New variable.
9351         (curr_state, dfa_state_size, ready_try): New varaibles for
9352         automaton interface.
9353         (ready_element, ready_remove, max_issue): New function prototypes
9354         for automaton interface.
9355         (choose_ready): New function prototype.
9356         (insn_unit, blockage_range): Add comments.
9357         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
9358         FUNCTION_UNITS_SIZE == 0.
9359         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
9360         actual_hazard, potential_hazard): Add comments.
9361         (insn_cost): Use cost -1 as undefined value.  Remove
9362         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
9363         pipeline interface.
9364         (ready_element, ready_remove): New functions for automaton
9365         interface.
9366         (schedule_insn): Add new code for automaton pipeline interface.
9367         (queue_to_ready): Add new code for automaton pipeline interface.
9368         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
9369         (debug_ready_list): Print newline when the queue is empty.
9370         (max_issue): New function for automaton pipeline interface.
9371         (choose_ready): New function.
9372         (schedule_block): Add new code for automaton pipeline interface.
9373         Print ready list before scheduling each insn.
9374         (sched_init): Add new code for automaton pipeline interface.
9375         Initiate insn cost by -1.
9376         (sched_finish): Free the current automaton state and finalize
9377         automaton pipeline interface.
9379         * sched-rgn.c: Include target.h.
9380         (init_ready_list, new_ready, debug_dependencies): Add new code for
9381         automaton pipeline interface.
9383         * sched-vis.c: Include target.h.
9384         (get_visual_tbl_length): Add code for automaton interface.
9385         (target_units, print_block_visualization):  Add comments.
9387         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
9388         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
9389         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
9390         (getruntime.o, genautomata.o): New entries.
9391         (genattrtab.o): Add new dependency file genattrtab.h.
9392         (genattrtab): Add new dependencies.  Link it with `libm.a'.
9393         (getruntime.o, hashtab.o): New entries for canadian cross.
9395         * doc/md.texi: Description of automaton based model.
9397         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
9398         Add comments.
9399         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9400         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9401         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9402         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9403         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9404         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9405         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
9406         hook descriptions.
9407         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
9408         MAX_DFA_ISSUE_RATE): New macro descriptions.
9410         * doc/contrib.texi: Add dfa based scheduler contribution.
9412         * doc/gcc.texi: Add more information about genattrtab.
9414 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9416         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
9417         adjust_address_nv call.
9419 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
9421         * doc/install.texi (Testing): Provide additional information, and
9422         a stronger encouragement, for running the testsuites.
9424 2002-04-29  DJ Delorie  <dj@redhat.com>
9426         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
9427         given in upper case.
9429 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9431         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
9432         Solaris 2 <widec.h> if missing.
9433         * fixinc/fixincl.x: Regenerate.
9434         * fixinc/tests/base/widec.h: New file.
9436 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
9438         * toplev.c (f_options): Add "profile" switch so that
9439         -fno-profile can be used to disable -p.
9441 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
9443         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
9444         UV2DImode.
9445         * tree.c (build_common_tree_nodes_2): Likewise.
9446         * tree.h (enum tree_index): Likewise.
9447         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
9449         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
9450         entries.
9451         (init_mmx_sse_builtins): Initialize SSE2 builtins.
9452         (ix86_expand_builtin): Add support for SSE2 builtins.
9453         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
9454         (VALID_SSE_REG_MODE): Use it.
9455         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
9456         (enum ix86_builtins): Add SSE2 builtins.
9457         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
9458         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
9459         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
9460         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
9461         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
9462         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
9463         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
9464         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
9465         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
9466         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
9467         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
9468         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
9469         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
9470         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
9471         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
9472         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
9473         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
9474         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
9475         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
9476         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
9477         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
9478         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
9479         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
9480         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
9481         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
9482         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
9483         lfence_insn): New patterns.
9484         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
9485         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
9487 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
9489         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
9491 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9493         * doc/contrib.texi (Contributors): Add Paolo Carlini and
9494         Janis Johnson.
9495         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
9496         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
9497         and CPU instead of cpu.
9499 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
9501         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
9502         variables.
9503         (lang_independent_options): Add -fif-conversion, -fif-conversion2
9504         (rest_of_compilation): Do if conversion only when asked for.
9505         (parse_options_and_default_flags): Set new variables to 1 for -O1
9506         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
9508 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
9510         * i386.c (dbx64_register_map): Fix typo.
9512 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
9514         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
9515         real_one_half, real_bb_freq_max): New static variables.
9516         (debug_profile_bbauxs): Kill.
9517         (process_note_predictions): Kill unused variable.
9518         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
9519         volatile double.
9520         (propagate_freq): Use REAL_ARITHMETICS.
9521         (estimate_bb_frequencies): Likevise; init new static variables.
9522         * Makefile.in (predict.o): Add dependency on real.h
9524 2002-04-28  David S. Miller  <davem@redhat.com>
9526         PR target/6500
9527         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
9528         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
9529         several {reads,writes} instead.
9530         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
9531         Define.
9533 2002-04-27  David S. Miller  <davem@redhat.com>
9535         PR target/6494
9536         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
9537         of the stack bias.
9539         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
9540         including signal.h and sys/ucontext.h, not needed.
9542 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
9544         * varasm.c (output_constant_def): Correct test for not calling
9545         ENCODE_SECTION_INFO for INTEGER_CST.
9547 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9549         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
9550         keep most cases as function eval_token.
9551         (eval_token): New function.
9552         (_cpp_parse_expr): Read token here for improved diagnostics.
9553         Don't use op_as_text.  Detect bad ':' here.
9554         (reduce): Don't detect bad ':' here.
9555         (op_as_text): Remove.
9556         * cpphash.h (_cpp_test_assertion): Change prototype.
9557         * cpplib.c (_cpp_test_assertion): Change prototype.
9559 2002-04-28  Richard Henderson  <rth@redhat.com>
9561         PR c/5154
9562         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
9563         (ggc_mark_rtx_children): New.
9565 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
9567         PR target/6496
9568         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
9569         after call peepholes for UltraSPARC.
9570         (call + jump 64-bit peepholes): Remove.
9572 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9574         PR c/6497
9575         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
9576         result as temporary value.
9578 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
9580         PR c++/6396
9581         * toplev.c (rest_of_compilation): Only run regrename and copy
9582         propagation if optimizing.
9584 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
9586         PR optimization/6475
9587         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
9588         register of REGNO_DECL (i).
9589         * Makefile.in (reload1.o): Add $(TREE_H).
9591 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
9593         * cppexp.c (lex): Update to use state.skip_eval.
9594         (struct op): Remove prio and flags members.
9595         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
9596         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
9597         (LEFT_ASSOC): New macro.
9598         (optab): New table of operator priorities and flags.
9599         (SHIFT): Update.
9600         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
9601         malloc-ed parser stack.
9602         (reduce): New; reduce the operator stack.
9603         (_cpp_expand_op_stack): Expand the operator stack as necessary.
9604         * cpphash.h (struct op): Predeclare.
9605         (struct cpp_reader): New members op_stack, op_limit.
9606         (struct lexer_state): New member skip_eval.
9607         (_cpp_parse_expr): Update.
9608         (_cpp_expand_op_stack): New.
9609         * cpplib.c (do_if): Update.
9610         * cppinit.c (cpp_create_reader): Create op stack.
9611         (cpp_destroy): And destroy it.
9612         * cpplib.h (CPP_LAST_CPP_OP): Correct.
9613         (TTYPE_TABLE): Correct.
9615 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9617         PR c/6343
9618         * c-decl.c (duplicate_decls): Call merge_weak.
9619         * c-pragma.c (apply_pragma_weak): Warn about misuse.
9620         * output.h (merge_weak): Prototype merge_weak.
9621         * varasm.c (merge_weak): New function.
9622         (declare_weak): Make sure we don't give an error on VAR_DECLs.
9623         Mark RTL with SYMBOL_REF_WEAK.
9625 2002-04-27  Kurt Garloff <garloff@suse.de>
9627         * tree-inline.c (inlinable_function_p): Improve heuristics
9628         by using a smoother function to cut down allowable inlinable size.
9629         * param.def: Add parameters max-inline-insns-single,
9630         max-inline-slope, min-inline-insns that determine the exact
9631         shape of the above function.
9632         * param.h: Likewise.
9634 2002-04-26  Richard Henderson  <rth@redhat.com>
9636         * c-parse.in (malloced_yyss, malloced_yyvs): New.
9637         (yyoverflow): Re-add.  Set them.
9638         (free_parser_stacks): New.
9639         * c-common.h: Declare it.
9640         * c-lex.c (c_common_parse_file): Call it.
9642 2002-04-26  Richard Henderson  <rth@redhat.com>
9644         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
9645         for fallthru search.
9647 2002-04-26  Eric Christopher  <echristo@redhat.com>
9649         PR optimization/3700
9650         * config/mips/mips.c (mips_issue_rate): Define.  New function.
9651         (TARGET_SCHED_ISSUE_RATE): Use.
9653 2002-04-25  David S. Miller  <davem@redhat.com>
9655         PR target/6422
9656         * reorg.c (optimize_skip): Do not allow exception causing
9657         instructions to be considered for delay slots.
9658         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
9659         (relax_delay_slots): Do not try to consider exception causing
9660         instructions as redundant.
9662 2002-04-26  Richard Henderson  <rth@redhat.com>
9664         PR c/5225
9665         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
9667 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
9669         PR bootstrap/6445
9670         * config/i386/i386.md (untyped_call): Return the value in a float
9671         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
9672         TARGET_80387.
9674 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
9676         * tree.c (tree_int_cst_lt): Compare constants whose types differ
9677         in unsigned-ness correctly.
9679 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9681         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
9682         portable runtime model.
9684 2002-04-26  Richard Henderson  <rth@redhat.com>
9686         * c-parse.in (yyoverflow): Revert.
9688 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
9689             Richard Henderson  <rth@redhat.com>
9691         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
9692         result as temporary value.
9694 2002-04-26  Richard Henderson  <rth@redhat.com>
9696         PR c/3581
9697         * c-common.c (fix_string_type): Split out of ...
9698         (combine_strings): ... here.  Take a varray, not a tree list.
9699         (c_expand_builtin_printf): Use fix_string_type.
9700         * c-common.h: Update decls.
9701         * c-parse.in (string): Remove.  Update all uses to use STRING
9702         instead, and not call combine_strings.
9703         (yylexstring): New.
9704         (_yylex): Use it.
9705         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
9706         (build_asm_stmt): Likewise.
9707         * objc/objc-act.c (my_build_string): Use fix_string_type.
9708         (build_objc_string_object): Build varray for combine_strings.
9710 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
9712         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
9713         x86-64.
9715 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
9717         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
9718         (HAVE_NO_R_OPERAND): Remove.
9719         (HAVE_VALUE): Remove.
9720         (op_to_prio): Update.
9721         (UNARY): Don't alter flags.
9722         (_cpp_parse_expr): want_value used to indicate whether
9723         a number or unary operator is expected next.  Distinguish
9724         unary and binary +/-.
9725         (op_as_text): Update for unary operators.
9727 2002-04-25  Richard Henderson  <rth@redhat.com>
9729         PR c/2161
9730         * c-parse.in (yyoverflow): New.
9732 2002-04-25  Richard Henderson  <rth@redhat.com>
9734         PR c/2098
9735         * c-common.c (shorten_compare): Simplfy conditions leading to
9736         the generation of a warning.
9738 2002-04-25  Richard Henderson  <rth@redhat.com>
9740         PR c/2035
9741         * expmed.c (extract_bit_field): Fall through to generic code rather
9742         than aborting on subreg special case.
9744 2002-04-25  David S. Miller  <davem@redhat.com>
9746         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
9747         for DECL being NULL.
9749 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
9751         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
9753 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
9755         * c-decl.c (grokdeclarator): Remove outdated ??? note
9756         on invalid declaration of flexible array members.
9758 2002-04-25  Richard Henderson  <rth@redhat.com>
9760         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
9762 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
9764         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
9765         needed by the compiler, even if they are used as global regs.
9767 2002-04-25  Matt Hiller  <hiller@redhat.com>
9769         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
9770         functions.
9771         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
9772         of the corresponding functions.
9773         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
9774         New prototypes.
9776 2002-04-25  Matt Hiller  <hiller@redhat.com>
9778         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
9780         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
9781         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
9782         registers, adjust comment accordingly.
9783         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
9784         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
9785         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
9786         for coprocessor registers.
9787         (ADDITIONAL_REGISTER_NAMES): Include
9788         ALL_COP_ADDITIONAL_REGISTER_NAMES.
9790         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
9791         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
9792         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
9793         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
9794         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
9796         (mips_char_to_class): Adjust comment to include coprocessor
9797         constraint letters.
9799         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
9800         New functions.
9801         (mips_reg_names, mips_regno_to_class): Include coprocessor
9802         information.
9803         (mips_sw_reg_names): Ditto, make non-static.
9804         (mips_move_1word): Handle moves to and from coprocessor registers.
9805         (mips_move_2words): Handle moves to and from coprocessor
9806         registers.
9807         (mips_class_max_nregs, mips_register_move_cost): Handle
9808         coprocessor register classes.
9809         (override_options): Initialize mips_char_to_class and
9810         mips_hard_regno_mode_ok properly for coprocessor registers.
9812         * config/mips/mips.md (movdi_internal, movdi_internal2,
9813         movsi_internal1, movsi_internal2): Add constraint-sets for
9814         coprocessor registers.
9815         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
9816         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
9817         isn't mips.
9818         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
9819         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
9820         isn't mips.
9821         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
9822         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
9823         isn't mips.
9824         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
9825         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
9826         isn't mips.
9828         * doc/tm.texi: Document feature.
9830 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
9832         * integrate.c (function_attribute_inlinable_p): Simplify.
9833         Check the table pointer is not NULL.
9835 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
9837         * doc/c-tree.texi: Fix typo in introduction.
9839 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
9841         * c-common.h (c_common_parse_file): Update.
9842         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
9843         * c-lex.c (YYDEBUG): Get from c-lex.h.
9844         (c_common_parse_file): Update.
9845         * c-lex.h (YYDEBUG, yydebug): New.
9846         * c-parse.in (YYDEBUG): Get from c-lex.h.
9847         (c_set_yydebug): Remove.
9848         * c-tree.h (c_set_yydebug): Remove.
9849         * langhooks-def.h (lhd_do_nothing_i): New.
9850         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
9851         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
9852         * langhooks.c  (lhd_do_nothing_i): New.
9853         (lhd_set_yydebug): Remove.
9854         * langhooks.h (struct lang_hooks): Update.
9855         * toplev.c (set_yydebug): New.
9856         (compile_file): Update call to parse_file hook.
9857         (decode_d_option): Update.
9858 objc:
9859         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
9861 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
9863         * loop.c (load_mems): Don't change the interface of called functions.
9865         * calls.c (expand_call): Take current_function_pretend_args_size
9866         into account when setting argblock for sibcalls.
9868 2002-04-24  Matt Hiller  <hiller@redhat.com>
9870         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
9871         * c-lex.c: Ditto.
9873         * cpplex.c (skip_line_comment): Process comment one multibyte
9874         character at a time rather than one char at a time, if
9875         appropriate.
9876         (parse_string): Process string one multibyte character at a time
9877         rather than one char at a time, if appropriate.
9878         * c-lex.c (lex_string): Lex and copy multibyte strings
9879         appropriately.
9880         * cpplib.h (cppchar_t): Change to unsigned.
9882 2002-04-24  Richard Henderson  <rth@redhat.com>
9884         PR c/3467
9885         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
9886         for c99.
9888 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
9890         * sh.c (sh_va_arg): If argument was passed by reference,
9891         dereference the pointer.
9893         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9895         * sh.md (divsi3_i4_media): Use match_operand for input values
9896         rather than hard registers.
9897         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
9898         unnecessarily through hard registers.  Keep copies of pseudo
9899         registers outside of the libcall sequence.
9901         * sh.md (casesi_shift_media): Add modes.
9903         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
9904         values in memory.
9906 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
9908         * attribs.c (c_common_attribute_table): Move table and handlers
9909         to c-common.c.
9910         (format_attribute_table, lang_attribute_table,
9911         lang_attribute_common): Remove.
9912         (init_attributes): Replace NULL pointers with pointers to the
9913         empty table.
9914         (handle_packed_attribute, handle_nocommon_attribute,
9915         handle_common_attribute, handle_noreturn_attribute,
9916         handle_noinline_attribute, handle_always_inline_attribute,
9917         handle_used_attribute, handle_unused_attribute,
9918         handle_const_attribute, handle_transparent_union_attribute,
9919         handle_constructor_attribute, handle_destructor_attribute,
9920         handle_mode_attribute, handle_section_attribute,
9921         handle_aligned_attribute, handle_weak_attribute,
9922         handle_alias_attribute, handle_visibility_attribute,
9923         handle_no_instrument_function_attribute, handle_malloc_attribute,
9924         handle_no_limit_stack_attribute, handle_pure_attribute,
9925         handle_deprecated_attribute, handle_vector_size_attribute,
9926         vector_size_helper): Move to c-common.c.
9927         * c-common.c (c_common_attribute_table,
9928         handle_packed_attribute, handle_nocommon_attribute,
9929         handle_common_attribute, handle_noreturn_attribute,
9930         handle_noinline_attribute, handle_always_inline_attribute,
9931         handle_used_attribute, handle_unused_attribute,
9932         handle_const_attribute, handle_transparent_union_attribute,
9933         handle_constructor_attribute, handle_destructor_attribute,
9934         handle_mode_attribute, handle_section_attribute,
9935         handle_aligned_attribute, handle_weak_attribute,
9936         handle_alias_attribute, handle_visibility_attribute,
9937         handle_no_instrument_function_attribute, handle_malloc_attribute,
9938         handle_no_limit_stack_attribute, handle_pure_attribute,
9939         handle_deprecated_attribute, handle_vector_size_attribute,
9940         vector_size_helper): Move from attribs.c.
9941         * c-common.h (c_common_attribute_table,
9942         c_common_format_attribute_table): New.
9943         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
9944         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
9945         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
9946         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
9947         (LANG_HOOKS_INITIALIZER): Update.
9948         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
9949         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
9950         * target.h: Update comment.
9951         * tree.c (default_target_attribute_table): Remove.
9952         * tree.h (default_target_attribute_table, format_attribute_table,
9953         lang_attribute_table, lang_attribute_common): Remove.
9954 objc:
9955         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
9956         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
9958 2002-04-24  Jason Merrill  <jason@redhat.com>
9960         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
9961         * dwarf2out.c (dwarf_attr_name): Support it.
9962         (gen_array_type_die): Emit it.
9963         (lookup_type_die): No special handling for VECTOR_TYPE.
9964         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
9966 2002-04-24  Richard Henderson  <rth@redhat.com>
9968         * config/mips/mips.md (movdi_usd): Renumber.
9970 2002-04-24  David S. Miller  <davem@redhat.com>
9972         PR target/6420
9973         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
9974         32-bit Sparc and current_function_returns_struct is true.
9976 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
9978         * loop.c (canonicalize_condition): Use gen_int_mode.
9980 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
9982         * config/rs6000/altivec.h: Cleanup file.  Add non individual
9983         variants.
9984         (vec_vaddubm): New.
9985         (vec_vadduhm): New.
9986         (vec_vadduwm): New.
9987         (vec_vaddfp): New.
9988         (vec_vaddcuw): New.
9989         (vec_vaddubs): New.
9990         (vec_vaddsbs): New.
9991         (vec_vadduhs): New.
9992         (vec_vadduws): New.
9993         (vec_vaddsws): New.
9994         (vec_vand): New.
9995         (vec_vandc): New.
9996         (vec_vavgub): New.
9997         (vec_vavgsb): New.
9998         (vec_vavguh): New.
9999         (vec_vavgsh): New.
10000         (vec_vavguw): New.
10001         (vec_vavgsw): New.
10002         (vec_vrfip): New.
10003         (vec_vcmpbfp): New.
10004         (vec_vcmpequb): New.
10005         (vec_vcmpequh): New.
10006         (vec_vcmpequw): New.
10007         (vec_vcmpeqfp): New.
10008         (vec_vcmpgefp): New.
10009         (vec_vcmpgtub): New.
10010         (vec_vcmpgtsb): New.
10011         (vec_vcmpgtuh): New.
10012         (vec_vcmpgtsh): New.
10013         (vec_vcmpgtuw): New.
10014         (vec_vcmpgtsw): New.
10015         (vec_vcmpgtfp): New.
10016         (vec_vcmpgefp): New.
10017         (vec_vcfux): New.
10018         (vec_vcfsx): New.
10019         (vec_vctsxs): New.
10020         (vec_vctuxs): New.
10021         (vec_vexptefp): New.
10022         (vec_vrfim): New.
10023         (vec_lvx): New.
10024         (vec_lvebx): New.
10025         (vec_lvehx): New.
10026         (vec_lde): Add vector float variant.
10027         (vec_lvewx): New.
10028         (vec_lvxl): New.
10029         (vec_vlogefp): New.
10030         (vec_vmaddfp): New.
10031         (vec_vmhaddshs): New.
10032         (vec_vmaxub): New.
10033         (vec_vmaxsb): New.
10034         (vec_vmaxuh): New.
10035         (vec_vmaxsh): New.
10036         (vec_vmaxuw): New.
10037         (vec_vmaxsw): New.
10038         (vec_vmaxsw): New.
10039         (vec_vmaxfp): New.
10040         (vec_vmrghb): New.
10041         (vec_vmrghh): New.
10042         (vec_vmrghw): New.
10043         (vec_vmrglb): New.
10044         (vec_vmrglh): New.
10045         (vec_vmrglw): New.
10046         (vec_vminub): New.
10047         (vec_vminsb): New.
10048         (vec_vminuh): New.
10049         (vec_vminsh): New.
10050         (vec_vminuw): New.
10051         (vec_vminsw): New.
10052         (vec_vminfp): New.
10053         (vec_vmladduhm): New.
10054         (vec_vmhraddshs): New.
10055         (vec_msumubm): New.
10056         (vec_vmsummbm): New.
10057         (vec_vmsumuhm): New.
10058         (vec_vmsumshm): New.
10059         (vec_vmsumuhs): New.
10060         (vec_vmsumshs): New.
10061         (vec_vmuleub): New.
10062         (vec_vmulesb): New.
10063         (vec_vmuleuh): New.
10064         (vec_vmulesh): New.
10065         (vec_vmuloub): New.
10066         (vec_mulosb): New.
10067         (vec_vmulouh): New.
10068         (vec_vmulosh): New.
10069         (vec_vnmsubfp): New.
10070         (vec_vnor): New.
10071         (vec_vor): New.
10072         (vec_vpkuhum): New.
10073         (vec_vpkuwum): New.
10074         (vec_vpkpx): New.
10075         (vec_vpkuhus): New.
10076         (vec_vpkshss): New.
10077         (vec_vpkuwus): New.
10078         (vec_vpkswss): New.
10079         (vec_vpkshus): New.
10080         (vec_vpkswus): New.
10081         (vec_vperm): New.
10082         (vec_vrefp): New.
10083         (vec_vrlb): New.
10084         (vec_vrlh): New.
10085         (vec_vrlw): New.
10086         (vec_vrfin): New.
10087         (vec_vrsqrtefp): New.
10088         (vec_vsel): New.
10089         (vec_vslb): New.
10090         (vec_vslh): New.
10091         (vec_vslw): New.
10092         (vec_vsldoi): New.
10093         (vec_vsl): New.
10094         (vec_vslo): New.
10095         (vec_vspltb): New.
10096         (vec_vsplth): New.
10097         (vec_vspltw): New.
10098         (vec_vspltisb): New.
10099         (vec_vspltish): New.
10100         (vec_vspltisw): New.
10101         (vec_vsrb): New.
10102         (vec_vsrh): New.
10103         (vec_vsrw): New.
10104         (vec_vsrab): New.
10105         (vec_vsrah): New.
10106         (vec_vsraw): New.
10107         (vec_vsr): New.
10108         (vec_vsro): New.
10109         (vec_stvx): New.
10110         (vec_stvebx): New.
10111         (vec_stvehx): New.
10112         (vec_stvewx): New.
10113         (vec_stvxl): New.
10114         (vec_vsububm): New.
10115         (vec_vsubuhm): New.
10116         (vec_vsubuwm): New.
10117         (vec_vsubfp): New.
10118         (vec_vsubcuw): New.
10119         (vec_vsububs): New.
10120         (vec_vsubsbs): New.
10121         (vec_vsubuhs): New.
10122         (vec_vsubshs): New.
10123         (vec_vsubuws): New.
10124         (vec_vsubsws): New.
10125         (vec_vsum4ubs): New.
10126         (vec_vsum4sbs): New.
10127         (vec_vsum4shs): New.
10128         (vec_vsum2sws): New.
10129         (vec_vsumsws): New.
10130         (vec_vrfiz): New.
10131         (vec_vupkhsb): New.
10132         (vec_vupkhpx): New.
10133         (vec_vupkhsh): New.
10134         (vec_vupklsb): New.
10135         (vec_vupklpx): New.
10136         (vec_vupklsh): New.
10137         (vec_vxor): New.
10139 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
10141         PR c/5430
10142         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
10143         added literals from substracted literals.
10144         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
10145         (fold) [associate]: Preserve MINUS_EXPR if needed.
10147 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
10149         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
10150         are obsoleted.
10152 2002-04-23  Tom Tromey  <tromey@redhat.com>
10154         * gcc.c: Added --resource.  For PR java/6314.
10156 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
10158         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
10159         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
10160         these libraries.
10162 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
10164         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
10166 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
10168         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
10169         workaround.
10170         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
10171         (ix86_expand_clrstr): Fix typo.
10172         * loop.c (gen_load_of_final_value): New.
10173         (loop_givs_rescan, strength_reduce, check_dbra_loop):
10174         Use it.
10176 2002-04-23  Roger Sayle  <roger@eyesopen.com>
10178         * builtins.c (builtin_memset_gen_str): New function.
10179         (expand_builtin_memset): Optimize the case of constant length, but
10180         unknown value.
10182 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
10184         * config/rs6000/altivec.h (vec_step): Remove extraneous
10185         parentheses.
10186         (vec_ctu): Cast return.
10188 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
10190         PR target/6413
10191         * function.h: (struct function): Add profile_label_no field.
10192         (current_function_profile_label_no): Define.
10193         * function.c: (profile_label_no): New static var.
10194         (expand_function_start): Increment it, and copy to
10195         current_function_profile_label_no.
10196         * output.h (profile_label_no): Delete.
10197         * final.c (profile_label_no): Delete.
10198         (profile_function): Use current_function_profile_label_no.
10199         (final_end_function): Don't increment profile_label_no here.
10200         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
10201         profile_label_no with current_function_profile_label_no.
10202         * config/pa/pa.c (current_function_number): Delete.
10203         (pa_output_function_prologue): Don't output profile label here.
10204         (hppa_profile_hook): Use label_no param rather than
10205         current_function_number.
10206         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
10207         * config/pa/pa.h: .. here.
10208         (FUNCTION_PROFILER): Output profile label here.
10210 2002-04-22  Eric Christopher  <echristo@redhat.com>
10212         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
10213         patch of 2002-04-09 due to binutils issues.
10214         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
10216 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
10218         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
10219         constraint to 'o' for m=r and r=m alternatives.
10220         ("*movv8hi_internal1"): Same.
10221         ("*movv16qi_internal1"): Same.
10222         ("*movv4sf_internal1"): Same.
10224 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
10226         * rtl.h (RTX_FLAG): New macro.
10227         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
10228         * final.c (alter_subreg): Use macro to access rtx flag.
10229         * integrate.c (copy_rtx_and_substitute): Use new access macro.
10230         * print-rtl.c (print_rtx): Use new access macro.
10232         * cse.c (insert): Check rtx code before accessing flag.
10234         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
10235         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
10236         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
10237         convert_const_symbol_ref, make_canonical, make_alternative_compare,
10238         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
10239         simplify_test_exp, optimize_attrs, simplify_by_exploding,
10240         find_and_mark_used_attributes, unmark_used_attributes,
10241         add_values_to_cover, simplify_with_current_value,
10242         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
10243         copy_rtx_unchanging, main): Use new access macros.
10245 2002-04-22  Tom Rix  <trix@redhat.com>
10247         * expmed.c (init_expmed): Generate shifted constant once.
10249 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
10251         * c-lex.c (lex_charconst): Call convert to get constant in
10252         proper type; don't just smash the type field.
10253         Fixes PR c/6300.
10255         * config.gcc: Add list of obsolete configurations.  Disallow
10256         building these without --enable-obsolete.
10257         * doc/install.texi: Document --enable-obsolete and obsoletion
10258         policy.  Mention obsoletion of individual targets in
10259         appropriate places.
10261 2002-04-22  Richard Henderson  <rth@redhat.com>
10263         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
10265 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
10267         PR f/6138.
10268         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
10269         (walk_fixup_memory_subreg): Likewise.
10270         (fixup_var_refs_insn): Adjust accordingly.
10271         (fixup_var_refs_1): Likewise.
10273 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
10275         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
10276         LIBPATH_ARCH64_SPEC): Define.
10277         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
10278         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
10279         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
10280         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
10282 2002-04-22      Joel Sherrill <joel@OARcorp.com>
10284         * gthr-rtems.h: Correct prototypes to remove warnings.
10286 2002-04-22  Richard Henderson  <rth@redhat.com>
10288         PR c/6344
10289         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
10291         * gcse.c (free_insn_expr_list_list): New.
10292         (clear_modify_mem_tables): Use it.  Fix bit set usage.
10293         (canon_list_insert): Use EXPR_LISTs for expressions.
10294         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
10296 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10298         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
10299         file change and include code to _cpp_pop_buffer.
10300         * cpphash.h (struct pending_option): Predeclare.
10301         (struct cpp_reader): New member next_include_file.
10302         (_cpp_pop_file_buffer): Update.
10303         (_cpp_push_next_buffer): Update, rename.
10304         * cppinit.c (cpp_destroy): Free include chain and pending here.
10305         (cpp_finish_options): Simplify.
10306         (_cpp_push_next_buffer): Rename and clean up.
10307         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
10308         Clarify.
10309         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
10311 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
10313         * config/rs6000/altivec.h (vec_xor): Add variant for both args
10314         being vector signed int.
10315         (vec_andc): Same.
10316         (vec_xor): Add variant for both args being vector signed char.
10317         Remove redundant variant.
10318         (vec_andc): Same.
10320 2002-04-21  David S. Miller  <davem@redhat.com>
10322         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
10323         compare mode in output RTL.
10325 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
10327         * config/rs6000/rs6000.c (rs6000_override_options): Correct
10328         style and formatting of previous patch.
10330 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
10332         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
10333         flag_pic for ABI_AIX.
10335 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10337         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
10338         * cppfiles.c (read_include_file): Similarly.
10339         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
10340         uxstrdup ustrchr, ufputs): Similarly.
10341         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
10342         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
10343         cpp_ideq, parse_identifier, parse_number): Similarly.
10344         * cpplib.c (struct directive, dequote_string, D, run_directive,
10345         cpp_push_buffer): Similarly.
10346         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
10347         _cpp_create_definition, check_trad_stringification,
10348         cpp_macro_definition): Similarly.
10350 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10352         * cppmacro.c (funlike_invocation_p): Don't step back
10353         over CPP_EOF.
10355 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
10357         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
10358         labelno.
10360 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
10362         * doc/invoke.texi: Remove Chill references.
10363         * doc/gcc.texi: Update last modified date.
10365 2002-04-20  Kazu Hirata  <kazu@hxi.com>
10367         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
10368         push and pop.  Replace add.l with add.w.
10370 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10372         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
10373         multiply instructions for H8/300H case.
10375 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10377         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
10378         Bum three instructions from each routine.
10380 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
10382         * Makefile.in: Update.
10383         * decl.c (push_c_function_context, pop_c_function_context,
10384         mark_c_function_context): Rename for consistency.
10385         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
10386         * c-tree.h (push_c_function_context, pop_c_function_context,
10387         mark_c_function_context): Rename for consistency.
10388         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10389         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10390         * function.c (init_lang_status, save_lang_status,
10391         restore_lang_status, mark_lang_status, free_lang_status):
10392         Move to langhooks.h.
10393         (push_function_context_to, pop_function_context_from,
10394         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
10395         Update.
10396         * function.h (init_lang_status, save_lang_status,
10397         restore_lang_status, mark_lang_status, free_lang_status):
10398         Move to langhooks.h.
10399         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
10400         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
10401         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
10402         LANG_HOOKS_FUNCTION_INITIALIZER): New.
10403         (LANG_HOOKS_INITIALIZER): Update.
10404         (lhd_do_nothing_f): New.
10405         * langhooks.h (struct lang_hooks_for_functions): New.
10406         (struct lang_hooks): New hooks.
10407         * langhooks.c (lhd_do_nothing_f): New.
10408 objc:
10409         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10410         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10412 2002-04-19  David S. Miller  <davem@redhat.com>
10414         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
10415         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
10417 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
10419         PR optimization/3756
10420         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
10421         x = ((int) y < 0) ? cst1 : cst2.
10423 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
10425         PR c/6358
10426         * function.c: Reapply patch for c/6358.
10427         (expand_function_end): Copy decl_rtl's mode, not
10428         current_function_return_rtx mode.
10430 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
10432         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
10433         targets.
10435 2002-04-19  Tom Tromey  <tromey@redhat.com>
10437         * doc/install.texi (Specific): Update status of Solaris 2.8.
10438         For PR libgcj/6158.
10440 2002-04-19  Andreas Schwab  <schwab@suse.de>
10442         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
10443         (PUT_REAL): Restore old definition.
10445 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
10446             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10448         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
10449         binutils 2.11.2 and higher generate smaller binaries than Sun's
10450         native tools.
10452 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
10454         PR c++/6352
10455         * toplev.c (rest_of_compilation): Do not defer functions for which
10456         TREE_SYMBOL_REFERENCED has already been set.
10458 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
10460         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
10461         alternative.
10463 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
10465         * builtins.c: Include langhooks.h.
10466         (lang_type_promotes_to): Remove.
10467         (expand_builtin_va_arg): Use new hook.
10468         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
10469         (simple_type_promotes_to): Move to c-typeck.c.
10470         * c-common.h (simple_type_promotes_to): Remove.
10471         * c-decl.c (duplicate_decls, grokdeclarator): Update.
10472         * c-format.c: Include langhooks.h.
10473         (check_format_types): Update.
10474         * c-tree.h (c_type_promotes_to): New.
10475         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
10476         (type_lists_compatible_p): Update.
10477         * langhooks-def.h (lhd_type_promotes_to): New.
10478         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
10479         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10480         * langhooks.c (lhd_type_promotes_to): New.
10481         * langhooks.h (struct lang_hooks_for_types): New hook.
10482         * tree.h (lang_type_promotes_to): Remove.
10483 objc:
10484         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
10486 2002-04-18  Richard Henderson  <rth@redhat.com>
10488         * function.c: Revert patch for c/6358.
10490 2002-04-18  Richard Henderson  <rth@redhat.com>
10492         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
10493         blocks.  Handle multiple references to the TRAP block.  Handle
10494         non-adjacent THEN and OTHER blocks.
10496 2002-04-18  Richard Henderson  <rth@redhat.com>
10498         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
10499         crash with no type for by-mode libcalls.
10501         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
10503 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
10505         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
10506         __xtensa_nonlocal_goto): Use a syscall instructions to flush
10507         the register windows.
10509 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
10511         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
10512         appropriate.  Document need for extended precision even when
10513         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
10514         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
10515         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
10516         instead of relying on later syntax error when REAL_WIDTH > 5.
10517         * real.c: Define NE based only on whether or not we have a
10518         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
10519         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
10520         define GET_REAL and PUT_REAL as simple memcpy operations; no
10521         need to byteswap or round.
10522         Use #error instead of #ifdef-ing out the entire file, for
10523         prompt error detection.
10525         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
10527 2002-04-18  David S. Miller  <davem@redhat.com>
10529         * config/sparc/sparc.h (BRANCH_COST): Define.
10531         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
10532         does it.
10534 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
10536         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
10537         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
10538         propagate_block calls after relaxation loop using new variable
10539         stabilized_prop_flags.
10541 2002-04-18  Richard Henderson  <rth@redhat.com>
10543         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
10544         (ia64_va_arg): Expect variable sized types by reference.
10545         * config/ia64/ia64-protos.h: Update.
10546         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
10547         ia64_function_arg_pass_by_reference.
10549 2002-04-18  Richard Henderson  <rth@redhat.com>
10551         * ifcvt.c: Include except.h.
10552         (block_has_only_trap): Break out from find_cond_trap.
10553         (find_cond_trap): Use it.  Always delete the trap block.
10554         (merge_if_block): Allow then block null.  Be less simplistic about
10555         what insns can end a block.
10556         * Makefile.in (ifcvt.o): Depend on except.h.
10558         * config/ia64/ia64.md (trap, conditional_trap): New.
10560 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
10562         PR c/6358
10563         * function.c (assign_parms): Assign hard current_function_return_rtx
10564         register here...
10565         (expand_function_end): ...not here.
10567 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
10569         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10570         * c-tree.h (c_incomplete_type_error): New.
10571         * c-typeck.c (require_complete_type, build_component_ref): Update.
10572         (incomplete_type_error): Rename.
10573         * langhooks-def.h (lhd_incomplete_type_error): New.
10574         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
10575         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10576         * langhooks.c (lhd_incomplete_type_error): New.
10577         * langhooks.h (struct lang_hooks_for_types): New hook.
10578         * tree.c (size_in_bytes): Use new hook.
10579         * tree.h (incomplete_type_error): Remove.
10580 objc:
10581         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10583 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
10585         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
10586         TARGET_FLOAT_FORMAT blocks.
10588 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10590         * doc/install.texi (Downloading the source): Do not mention Chill
10591         any longer, but mention Ada.
10592         (Configuration): Do not mention Chill any longer.
10594 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
10596         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
10598 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
10600         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
10601         in last patch.
10603 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
10605         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
10606         instead of unsigned_type.
10608 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
10610         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
10611         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
10612         later.
10614 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
10616         * attribs.c (vector_type_node_list): New static variable.
10617         (handle_vector_size_attribute): Use it to avoid generating a
10618         new type node each time we are called.
10620         * combine.c (subst): Avoid trying to make a vector mode subreg of
10621         an integer constant.
10622         (gen_lowpart_for_combine): Likewise.
10624 2002-04-18  Roger Sayle  <roger@eyesopen.com>
10625             Jakub Jelinek  <jakub@redhat.com>
10627         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
10628         for integer constant c (if x has unsigned type or sign bit is not
10629         set in c).  This folds the zero/sign extension into the bit-wise and
10630         operation.
10632 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
10634         PR middle-end/6205
10635         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
10636         otherwise xorps.
10638 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
10640         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
10642 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
10644         * gcc.c (read_specs): Detect and fail if an attempt is made to
10645         rename a spec string to an already existing string.
10647 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
10649         * config/s390/s390.c (legitimize_pic_address): Do not generate
10650         illegal address constant without CONST.
10652 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10654         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
10655         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10657 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
10659         PR optimization/6305
10660         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
10661         to make sure previous reloads are taken into account.  Generate
10662         better code if one operand is an in-range immediate constant.
10664 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
10666         * doc/install.texi (Building): libgcj requires GNU make.
10668 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
10670         PR bootstrap/6315
10671         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
10672         even if hard quad and register is not floating.
10673         (movtf reg<-mem split): Disallow splitting if hard quad and
10674         register is floating.
10675         (movtf mem<-reg split): Likewise.
10676         * config/sparc/sparc.c (fp_register_operand): New predicate.
10677         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
10679 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
10681         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
10682         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
10683         (unprotoize.o): Ditto.  Build from protoize.c.  Define
10684         UNPROTOIZE on command line.
10685         * protoize.c: Include cppdefault.h.  Delete include_defaults.
10686         (in_system_include_dir): Use cpp_include_defaults (defined in
10687         cppdefault.o).
10688         * unprotoize.c: Delete file.
10690 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
10692         * config/rs6000/altivec.h (vec_ld): Add array variants.
10693         (vec_lde): Same.
10694         (vec_ldl): Same.
10696 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
10697             Aldy Hernandez <aldyh@redhat.com>
10699         * config/rs6000/altivec.h: Define __ALTIVEC__.
10700         (bool): New.
10701         (__pixel): New.
10702         (pixel): New.
10703         (vec_cfux): New.
10704         (vec_vmaddfp): New.
10705         (vec_vsldoi): New.
10706         Add parentheses to all macro arguments.
10708 2002-04-16  Richard Henderson  <rth@redhat.com>
10710         PR c++/6320
10711         * except.c (remove_eh_handler): Insert inner regions at beginning
10712         of sibling chain.  Refactor expressions.
10714 2002-04-16  Richard Henderson  <rth@redhat.com>
10716         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
10717         * config/sparc/sol2-gas-bi.h: New file.
10718         * config.gcc (sparc*-solaris): Add it as needed.
10719         * configure.in (AS_SPARC64_FLAG): Remove check.
10720         * config.in, configure: Regenerate.
10722         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
10724 2002-04-16  Richard Henderson  <rth@redhat.com>
10726         * config/mips/mips.c (override_options): Don't override N32 for
10727         a 64-bit ISA.
10729         PR 6202
10730         * config/mips/mips.md (can_delay): Split out of existing define_delays.
10731         (HILO_delay): Set can_delay false.
10733 2002-04-16  Dale Johannesen <dalej@apple.com>
10735         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
10736         instruction addresses.
10737         (rs6000_output_function_epilogue): Likewise.
10739 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
10741         * c-parse.in (poplevel, compstmt_start,
10742         compstmt_primary_start): Add ending ';', in accordance
10743         with POSIX.
10745 2002-04-16  Richard Henderson  <rth@redhat.com>
10747         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
10748         Adjust tm_file order to get TARGET_DEFAULT set properly.
10749         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
10750         * doc/install.texi (sparc-solaris): Update.
10752 2002-04-16  Dale Johannesen <dalej@apple.com>
10754         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
10755         comparison operands do not match each other or if modes of
10756         conditions do not match result.
10758 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
10760         PR target/6305
10761         * config/s390/s390.md (mulsidi3): Set both subregs of the
10762         multiword register.
10764 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
10766         * config/rs6000/altivec.h (vec_addc): Type check.
10768 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
10770         PR middle-end/6279
10771         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
10773         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
10775 2002-04-15  Richard Henderson  <rth@redhat.com>
10777         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
10778         call_really_used_regs too.
10780 2002-04-15  Richard Henderson  <rth@redhat.com>
10782         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
10784 2002-04-15  David S. Miller  <davem@redhat.com>
10786         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
10787         as being CLOBBERed.
10789 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
10791         PR c/6290
10792         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
10793         CONST_VECTOR is { 0, ... 0 }.
10795 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
10797         * doc/install.texi (Installing GCC: Configuration): Clarify
10798         the only supported ways to configure gcc.
10800 2002-04-15  Roland McGrath  <roland@frob.com>
10802         * config.gcc (alpha*-*-gnu*): New target configuration.
10803         * config/alpha/gnu.h: New file for it.
10804         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
10806 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
10808         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
10809         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
10810         * tree.h (expand_start_stmt_expr): Update prototype.
10811         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
10812         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
10813         on the STMT_EXPR created for the inline function.
10815 2002-04-15  Richard Henderson  <rth@redhat.com>
10817         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
10818         config/i386/linux-aout.h, config/i386/linux-oldld.h,
10819         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
10820         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
10821         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
10822         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
10823         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
10824         Define __gnu_linux__, not gnu_linux.
10825         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
10827 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
10829         Remove Chill front end.
10830         * gcc.c (default_compilers): Remove Chill entries.
10831         * ch: Remove directory.
10832         * doc/frontends.texi: Remove information about Chill.
10833         * doc/sourcebuild.texi: Likewise.
10834         * doc/standards.texi: Likewise.
10836 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
10838         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
10839         (LONGLONG_STANDALONE): Define.
10841 2002-04-15  David S. Miller  <davem@redhat.com>
10843         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
10844         Call emit_library_call with LCT_NORMAL.
10845         (sparc_initialize_trampoline): Use LCT_foo instead of
10846         magic constant in emit_library_call invocations.
10847         (sparc64_initialize_trampoline): Likewise.
10848         (sparc_profile_hook): Likewise.
10849         * config/sparc/sparc.md: Likewise.
10851         * config/sparc/sparc.c (sparc_extra_constraint_check):
10852         Fix type of argument 'c'.
10853         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
10854         Likewise.
10856 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
10858         * diagnostic.h (output_buffer_state): Redefine.
10859         (output_format_decoder): New macro.
10860         (output_prefixing_rule): Likewise.
10861         (output_line_cutoff): Likewise.
10862         (diagnostic_format_decoder): Adjust.
10863         (diagnostic_prefixing_rule): Likewise.
10864         (diagnostic_line_cutoff): Likewise.
10865         (diagnostic_state): Likewise.
10866         (diagnostic_kind_count): Likewise.
10867         (diagnostic_buffer): Now a macro.
10869         * diagnostic.c (diagnostic_buffer): Remove definition.
10870         (output_is_line_wrapping): Adjust.
10871         (set_real_maximum_length): Likewise.
10872         (output_set_maximum_length): Likewise.
10873         (init_output_buffer): Likewise.
10874         (lhd_print_error_function): Likewise.
10875         (output_do_verbatim): Likewise.
10877 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
10879         * cpperror.c (print_location): Don't print include chain
10880         if line == 0.
10881         (cpp_begin_message): Update to use DL_ macros.
10882         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
10883         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
10884         cpp_notice, cpp_notice_from_errno): Remove.
10885         (cpp_error, cpp_error_with_line): Update to take a diagnostic
10886         level.
10887         (cpp_errno): New.
10888         * cppexp.c (CPP_ICE): Remove.
10889         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
10890         lex, integer_overflow, _cpp_parse_expr): Update.
10891         * cppfiles.c (read_include_file, find_include_file,
10892         handle_missing_header, _cpp_read_file, remap_filename): Update.
10893         * cpphash.h (enum error_type): Remove.
10894         (_cpp_begin_message): Update.
10895         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
10896         cpp_handle_option, cpp_post_options): Update.
10897         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
10898         skip_whitespace, parse_identifier, parse_slow, parse_string,
10899         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
10900         cpp_interpret_charconst): Update.
10901         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
10902         lex_macro_node, do_undef, glue_header_name, parse_include,
10903         do_include_common, read_flag, do_line, do_linemarker, do_ident,
10904         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
10905         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
10906         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
10907         _cpp_pop_buffer, do_diagnostic): Update.
10908         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
10909         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
10910         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
10911         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
10912         cpp_notice, cpp_notice_from_errno): Remove.
10913         (cpp_error, cpp_error_with_line): Update to take a diagnostic
10914         level.
10915         (cpp_errno): New.
10916         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
10917         collect_args, enter_macro_context, save_parameter, parse_params,
10918         _cpp_create_definition, check_trad_stringification,
10919         cpp_macro_definition): Update.
10920         * cppmain.c (cpp_preprocess_file): Update.
10921         * fix-header.c (read_scan_file): Update.
10923 2002-04-14  Andreas Schwab  <schwab@suse.de>
10925         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
10927 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10929         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
10931 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
10933         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
10934         not gnu_hurd.
10936 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
10938         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
10940 2002-04-13      Joel Sherrill <joel@OARcorp.com>
10942         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
10943         sparc-elf and sparc-rtems targets.
10945 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
10947         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
10948         defined, and __gnu_hurd__ wherever __GNU__ is defined.
10949         * arm/linux-elf.h: Likewise.
10950         * cris/aout.h: Likewise.
10951         * cris/linux.h: Likewise.
10952         * i370/linux.h: Likewise.
10953         * i386/gnu.h: Likewise.
10954         * i386/linux-aout.h: Likewise.
10955         * i386/linux-oldld.h: Likewise.
10956         * i386/linux.h: Likewise.
10957         * i386/linux64.h: Likewise.
10958         * ia64/linux.h: Likewise.
10959         * m68k/linux-aout.h: Likewise.
10960         * m68k/linux.h: Likewise.
10961         * mips/linux.h: Likewise.
10962         * pa/pa-linux.h: Likewise.
10963         * pj/linux.h: Likewise.
10964         * rs6000/sysv4.h: Likewise.
10965         * s390/linux.h: Likewise.
10966         * sh/linux.h: Likewise.
10967         * sparc/linux-aout.h: Likewise.
10968         * sparc/linux.h: Likewise.
10969         * sparc/linux64.h: Likewise.
10970         * xtensa/linux.h: Likewise.
10972 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
10974         * stmt.c (check_unique_operand_names): Expect operand names to
10975         be strings rather than identifiers.  Use simple_cst_equal to
10976         compare them.
10977         (resolve_operand_name_1): Make same identifier to string change here.
10978         * c-parse.in (asm_operand): Convert a named operand into a string.
10979         * cp/parse.y (asm_operand): Likewise.
10981 2002-04-13  Andreas Schwab  <schwab@suse.de>
10983         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
10985 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
10987         Revert these changes:
10989         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
10991         PR c++/5571
10992         * stor-layout.c (layout_decl): Reset the RTL for the decl.
10994 2002-04-12  Richard Henderson  <rth@redhat.com>
10996         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
10997         (sparc*-*-solaris): Clean up header files.
10998         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
10999         and plan on generating 64-bit code.
11000         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
11001         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
11002         * config/sparc/sol2-sld-64.h: Rename ...
11003         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
11004         for AS_SPARC64_FLAG not defined.
11005         * config/sparc/sol2-gld-bi.h: New.
11006         * config/sparc/sol2-sld.h: Remove.
11007         * config/sparc/sol26-sld.h: New.
11008         * config/sparc/sol2.h: Tidy comments.
11009         * doc/install.texi: Document sparc-solaris configury changes.
11011 2002-04-12  Richard Henderson  <rth@redhat.com>
11013         * recog.c (offsettable_address_p): Match the logic in adjust_address.
11015         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
11016         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
11018 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11020         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
11022 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
11024         * pa.c (pa_can_combine_p): Call extract_insn before calling
11025         constrain_operands.
11027 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
11029         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
11030         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
11031         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
11032         (CPP_PREDEFINES): Handle __declspec.
11033         * config/i386/t-interix (USER_H): Remove.
11035 2002-04-12  DJ Delorie  <dj@redhat.com>
11037         * integrate.c (compare_blocks): Make comparisons safe for when
11038         sizeof(int) < sizeof(char *).
11039         (find_block): Likewise.
11041 2002-04-12  Jan Hubicka  <jh@suse.cz>
11042             David Edelsohn  <edelsohn@gnu.org>
11044         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
11045         registers.
11046         (symbol_ref_operand): New.
11047         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
11048         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
11050 2002-04-12  Andreas Schwab  <schwab@suse.de>
11052         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
11053         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
11054         overrides the definition in config/svr4.h.
11056 2002-04-12      Eric Norum <eric.norum@usask.ca>
11058         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
11059         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
11060         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
11061         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
11062         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
11063         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
11064         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
11065         definitions to config/rtems.h and make the targets more similar.
11067 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11069         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
11070         POINTERS_EXTEND_UNSIGNED.
11071         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
11072         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
11074         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
11075         not specified.
11077 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
11079         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
11080         depends on TARGET_SHMEDIA, not TARGET_SH5.
11082 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
11084         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
11085         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
11087 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
11089         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
11090         no r0 clobber.
11092 2002-04-12  Andreas Schwab  <schwab@suse.de>
11094         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
11096 2002-04-12  Richard Henderson  <rth@redhat.com>
11098         PR bootstrap/4191
11099         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
11101         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
11102         modes spanning multiple hard regs.
11104         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
11106 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11108         * pa.c (pa_output_function_prologue): Don't accumulate the total
11109         number of code bytes when using TARGET_64BIT, or gas, SOM and not
11110         the portable runtime.
11111         (output_deferred_plabels): Handle 64bit plabels.
11112         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
11113         generating pic code using the GAS assembler for object formats that
11114         are not SOM (ie., ELF32 and ELF64).
11115         (output_millicode_call): Check attribute type if attribute length is 28.
11116         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
11117         dbr_sequence_length once.
11118         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
11119         dbr_sequence_length once.
11120         * pa.h (TARGET_SOM): Define if not defined.
11121         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
11122         with GAS and not SOM.
11123         (jump, call_internal_reg, call_value_internal_reg): Likewise.
11124         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
11126 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11128         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
11129         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
11130         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
11131         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
11132         elfos.h and dbxelf.h values are fine now.
11133         * config/i386/freebsd.h, config/alpha/freebsd.h
11134         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
11136 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11138         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
11139         or set Acpu or Amachine.  Reformat.
11140         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11141         define.
11142         (LINK_SPEC): Do not need to undef.
11143         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
11144         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
11145         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11146         define.
11147         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
11148         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
11149         (LINK_SPEC): Do not need to undef.
11150         (DONT_USE_BUILTIN_SETJMP): Do not define.
11151         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
11152         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
11153         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
11154         Remove trailing spaces.
11155         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
11156         __ELF__, or set Acpu or Amachine.  Reformat.
11157         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11158         define.
11160 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11162         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
11163         all other *-*-freebsd* targets.
11165 2002-04-11  Richard Henderson  <rth@redhat.com>
11167         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
11169 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11171         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
11172         Include {cpu}/{cpu}.h thru tm_file.
11173         (alpha*-*-linux*ecoff): Remove target.
11174         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
11175         (LINK_SPEC): Remove, is not OS independent.
11176         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
11177         (LINK_SPEC): Do not need to #undef any longer.
11178         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
11179         any longer.
11180         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
11181         __ELF__.
11182         (LINK_SPEC): Moved here from alpha/elf.h.
11183         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
11184         SUB_CPP_PREDEFINES.
11185         * config/alpha/linux-ecoff.h: Remove.
11186         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
11187         (CPP_SPEC): Define _POSIX_SOURCE as needed.
11188         (CPP_SUBTARGET_SPEC): Do not define.
11189         (LINK_SPEC): Do not need to #undef any longer.
11190         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
11191         * config/alpha/vms.h: Likewise.
11193 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
11195         * doc/extend.texi: Remove old claim that typedefs cannot have
11196         an alignment attribute.
11198 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
11200         PR optimization/6177
11201         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
11202         bitpos is 0 and bitsize CONCAT size.
11204 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
11206         PR c/6223
11207         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
11209 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
11211         * config/alpha/freebsd.h: Minor reformatting.
11212         (CPP_SPEC): Define ELF and add cpp_subtarget.
11213         (ASM_SPEC): No longer needed.
11215 2002-04-11  Richard Henderson  <rth@redhat.com>
11217         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
11218         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
11219         (dimode mem/zero splitter): New.
11221 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
11223         * config/cris/cris.c (cris_override_options): Tweak error message
11224         for PIC not implemented.
11226         * config/cris/cris.h: Tweak comments related to parameter-passing.
11228         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
11230 2002-04-10  Richard Henderson  <rth@redhat.com>
11232         * except.c (add_ehl_entry): Allow duplicates after landing pad
11233         creation.
11235 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
11237         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
11239 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
11241         * c-decl.c (c_init_decl_processing): Move generation of
11242         decls for g77_integer_type_node and friends from here ...
11243         * c-common.c (c_common_nodes_and_builtins): ... to here.
11245 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
11247         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
11248         is only used as frame pointer when frame_pointer_needed is true.
11250 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
11252         PR target/817
11253         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
11254         for the fact that the pool entry uses two words.
11255         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
11256         1k bytes.
11257         (movdf_soft_insn): Similarly.
11258         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
11259         for the fact that the pool entry uses three words.
11261 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
11263         * config/mips/mips.c (mips_va_arg): When using the struct version
11264         of the EABI va_list, allow arguments in the register save area to
11265         take up less room than a stack argument.
11267 2002-04-10  Richard Henderson  <rth@redhat.com>
11269         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
11270         if EXPAND_INITIALIZER.
11272 2002-04-09  Richard Henderson  <rth@redhat.com>
11274         * config/alpha/alpha.md (movdi_er_maybe_g): New.
11275         * config/alpha/alpha.c (alpha_expand_mov): Use it.
11277 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
11279         PR optimization/6233
11280         * rtlanal.c (pure_call_p): New function.
11281         * rtl.h (pure_call_p): Declare.
11282         * loop.c (prescan_loop): Use it to set has_nonconst_call.
11283         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
11285 2002-04-09  Eric Christopher  <echristo@redhat.com>
11287         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
11288         information to .comm directive.
11290 2002-04-09  Richard Henderson  <rth@redhat.com>
11292         PR c/5078
11293         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
11295 2002-04-09  Richard Henderson  <rth@redhat.com>
11297         * basic-block.h (flow_delete_block_noexpunge): Declare.
11298         (expunge_block_nocompact): Declare.
11299         * cfg.c (expunge_block_nocompact): Split out from ...
11300         (expunge_block): ... here.
11301         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
11302         (flow_delete_block_noexpunge): Split out from ...
11303         (flow_delete_block): ... here.
11304         * cfgcleanup.c (delete_unreachable_blocks): Compact while
11305         removing dead blocks.
11306         * except.c (exception_handler_labels): Remove.
11307         (exception_handler_label_map): New.
11308         (struct eh_region): Add aka member.
11309         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
11310         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
11311         (for_each_eh_label, for_each_eh_label_1): New.
11312         (init_eh): Register exception_handler_label_map.
11313         (free_eh_status): Use free_region.
11314         (find_exception_handler_labels): Use the map, not the list.
11315         (remove_exception_handler_label): Likewise.
11316         (maybe_remove_eh_handler): Likewise.
11317         (remove_eh_handler): Use the region aka bitmap.
11318         * except.h (exception_handler_labels): Remove.
11319         (for_each_eh_label): Declare.
11320         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
11321         * loop.c (invalidate_loops_containing_label): New.
11322         (find_and_verify_loops): Use it.  Use for_each_eh_label.
11323         * sched-rgn.c (is_cfg_nonregular): Use
11324         current_function_has_exception_handlers.
11326 2002-04-09  Richard Henderson  <rth@redhat.com>
11328         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
11329         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
11330         Do not return changed status.
11331         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
11332         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
11333         New functions that do return changed status.
11334         * sbitmap.h: Update decls.
11335         * gcse.c, lcm.c: Use _cg functions as needed.
11337 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
11339         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
11340         (sh64-*-elf*, sh-*-rtemself*): Likewise.
11341         * config/sh/embed_bb.c: New file.
11342         * config/sh/embed-elf.h: New file.
11343         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
11344         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
11345         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11346         __PTRDIFF_TYPE__ .
11347         (SUBTARGET_CPP_PTR_SPEC): Don't define.
11348         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
11349         Add subtarget_asm_endian_spec.
11350         (ASM_SPEC): Use subtarget_asm_endian_spec.
11351         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
11352         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
11353         (WCHAR_UNSIGNED): Define.
11354         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
11355         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11356         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
11357         Fix value.
11358         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
11359         (sh_adjust_cost): Likewise.
11360         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11361         __PTRDIFF_TYPE__ .
11362         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
11363         (WCHAR_TYPE_SIZE): Likewise.
11364         (ASM_SPEC): Use subtarget_asm_endian_spec.
11365         (SH_ELF_WCHAR_TYPE): #undef/ #define.
11366         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
11367         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
11368         (MAX_WCHAR_TYPE_SIZE): Don't #define .
11369         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
11370         (USER_LABEL_PREFIX): Don't #undef /#define .
11371         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11372         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
11373         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
11374         (ASM_SPEC): Likewise.
11375         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
11376         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
11377         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
11378         (LIB2FUNCS_EXTRA): Define.
11379         * t-sh64 (LIB2FUNCS_EXTRA): Define.
11380         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
11381         (LIB1ASMFUNCS_CACHE): Define.
11382         (LIB2FUNCS_EXTRA): Redefine empty.
11384 2002-04-08  Richard Henderson  <rth@redhat.com>
11386         * reorg.c (get_branch_condition): Use reversed_comparison_code.
11388 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11390         * config/m68hc11/larith.asm (__map_data_section): Fix condition
11391         and optimize for size.
11392         (__do_global_ctors): Fix pointer comparison.
11393         (__do_global_dtors): Likewise.
11395 2002-04-09  David S. Miller  <davem@redhat.com>
11397         * config/sparc/sparc.c (sparc_extra_constraint_check): New
11398         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
11399         allow reloading pseudos.
11400         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
11401         * config/sparc/sparc-protos.h: Declare it.
11403         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
11404         unsigned comparison warning.
11405         (output_restore_regs): Mark leaf_function as unused.
11407 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11409         * expr.c (is_aligning_offset): New function.
11410         (expand_expr, case COMPONENT_EXPR): Call it.
11412 2002-04-08  David S. Miller  <davem@redhat.com>
11414         PR target/6082
11415         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
11417         Make init_priority work on Sparc when using GNU ld.
11418         * config/sparc/linux.h, config/sparc/linux64.h,
11419         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
11420         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
11421         * config/sparc/sol2-gld.h: New file to do the same.
11422         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
11423         sparc/sol2-gld.h to tm_file.
11425         PR optimization/4328
11426         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
11427         * doc/md.texi: Document it.
11428         * config/sparc/sparc.md (movdi_insn_sp64_novis,
11429         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
11430         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
11431         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
11432         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
11434 2002-04-08  Andreas Jaeger  <aj@suse.de>
11436         * stmt.c (expand_asm_operands): Revert last patch from Richard
11437         Henderson.
11439 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11441         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
11442         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
11444 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11446         * doc/contrib.texi (Contributors): Add David O'Brien.
11448 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
11450         * configure.in (auto-build.h): Use target_alias and build_alias
11451         when running configure.
11452         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
11453         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
11454         * configure: Regenerate.
11456 2002-04-07  David S. Miller  <davem@redhat.com>
11458         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
11460 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11462         PR 5933
11463         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
11464         generating 32-bit pic code.
11466 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
11468         * cppinit.c (cpp_create_reader): Initialize
11469         discard_comments_in_macro_exp.
11470         (COMMAND_LINE_OPTIONS): Add "-CC" option.
11471         (cpp_handle_option): Handle "-CC" option.
11472         * cpplex.c (save_comment): If saving a C++ comment in
11473         a directive, convert it to a C comment.
11474         (_cpp_lex_direct): Pass second comment start character to
11475         save_comment to indicate comment type.
11476         * cpplib.c (_cpp_handle_directive): If processing
11477         a "#define" directive and discard_comments_in_macro_exp
11478         is false,  re-enable saving of comments.
11479         (lex_macro_node): If discard_comments_in_macro_exp is false,
11480         discard any comments before the macro identifier.
11481         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
11482         member.
11483         * cppmacro.c (cpp_get_token): If expanding a macro while
11484         processing a directive, discard any comments we might encounter.
11485         (parse_params): If discard_comments_in_macro_exp is false,
11486         ignore comments in the macro parameter list.
11487         * gcc.c (cpp_unique_options): Add "-CC" option.
11488         (option_map): Map "--comments-in-macros" to "-CC".
11489         * doc/cppopts.texi: Document "-CC" option.
11490         * f/lang-specs.h: Add "-CC" option.
11491         * testsuite/gcc.dg/cpp/maccom1.c: New test.
11492         * testsuite/gcc.dg/cpp/maccom2.c: New test.
11493         * testsuite/gcc.dg/cpp/maccom3.c: New test.
11494         * testsuite/gcc.dg/cpp/maccom4.c: New test.
11495         * testsuite/gcc.dg/cpp/maccom5.c: New test.
11496         * testsuite/gcc.dg/cpp/maccom6.c: New test.
11498 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11500         PR middle-end/6180
11501         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
11503 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
11505         PR c++/5571
11506         * stor-layout.c (layout_decl): Reset the RTL for the decl.
11508         PR opt/5120
11509         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
11510         RTX_UNCHANGING_P for the functions arguments when a tail call
11511         is made.
11513 2002-04-06  Jason Merrill  <jason@redhat.com>
11515         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
11516         (parse_options_and_default_flags): Set them appropriately.
11517         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
11519 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
11521         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
11522         here.
11524         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
11525         semicolon.
11527         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
11528         types come in by-reference.  Fix typo in comment.
11530 2002-04-05  David S. Miller  <davem@redhat.com>
11532         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
11533         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
11534         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
11535         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
11537 2002-04-05  David S. Miller  <davem@redhat.com>
11539         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
11540         are not going to emit return instructions, emit at least a nop
11541         for the sake of sane backtraces.
11543 2002-04-05  Richard Henderson  <rth@redhat.com>
11545         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
11547 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
11549         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
11551 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
11553         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
11554         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
11555         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
11557 2002-04-05  Andreas Schwab  <schwab@suse.de>
11559         * c-convert.c: Include c-common.h.
11560         * Makefile.in (c-convert.o): Updated.
11562 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
11564         * mklibgcc.in: Use separate libgcc.map for each multilib.
11565         * Makefile.in (distclean): Don't remove libgcc.map here.
11567 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
11569         * Makefile.in (s-mlib): Handle --disable-multilib by separate
11570         genmultilib invocation.
11572 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
11574         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
11575         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
11576         to num_gprs for symmetry.
11577         * config/mips/mips.c: Adjust accordingly.
11579 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
11581         * c-common.c (truthvalue_conversion): Rename, update.
11582         * c-common.h (c_common_truthvalue_conversion): New.
11583         * c-convert.c (convert): Update.
11584         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11585         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
11586         * c-typeck.c (build_binary_op, build_unary_op,
11587         build_conditional_expr): Update.
11588         * fold-const.c (constant_boolean_node, fold): Use langhook.
11589         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
11590         * langhooks.h (struct lang_hooks): New hook.
11591         * stmt.c (expand_decl_cleanup): Use langhook.
11592         * tree.h (truthvalue_conversion): Remove.
11593 objc:
11594         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11596 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
11598         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
11599         Add rules to make null object file.
11601 2002-04-04  Jim Blandy  <jimb@redhat.com>
11603         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
11604         macro formal parameter names.
11606 2002-04-04  David S. Miller  <davem@redhat.com>
11608         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
11610 2002-04-04  Richard Henderson  <rth@redhat.com>
11612         PR middle-end/5099
11613         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
11614         Support copies into and out of memory.  Don't accept allows_reg
11615         and allows_mem as gospel.
11617 2002-04-04  Richard Henderson  <rth@redhat.com>
11619         PR opt/6165
11620         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
11621         (write_dependence_p): Likewise.
11623 2002-04-04  Richard Henderson  <rth@redhat.com>
11625         * predict.c (estimate_bb_frequencies): Do frequency calculation
11626         with a volatile temporary.
11628 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
11630         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
11632 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11634         PR c++/6119
11635         * final.c (final_start_function): Don't bump profile_label_no here...
11636         (final_end_function): ...but here.
11638 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11640         * config/sparc/sparc.md (pic): New attribute.
11641         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
11642         into stack slots.
11643         (split after do_builtin_setjmp_setup): New.
11645 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11647         PR fortran/6106
11648         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
11649         change.
11651 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11653         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
11654         UNITS_PER_WORD for zero sized aggregates.
11656 2002-04-03  David S. Miller  <davem@redhat.com>
11658         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
11659         one-character spec for this, just use %(link_gcc_c_sequence).
11661 2002-04-03  David S. Miller  <davem@redhat.com>
11663         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
11664         handling.
11666 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11668         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
11669         (DWARF_FRAME_RETURN_COLUMN): Move.
11670         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11671         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
11672         * pa.c (except.h, predict.h): Include.
11673         (FRP): Delete.
11674         (store_reg_modify, set_reg_plus_d): Revise prototypes.
11675         (output_ascii): Add cast.
11676         (store_reg_modify): Revise to add frame notes.
11677         (set_reg_plus_d): Likewise.
11678         (compute_frame_size): Include space for eh data registers in frame if
11679         the current function calls eh_return.
11680         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
11681         function calls eh_return.  Save eh data registers if the current
11682         function calls eh_return.  Fix code to add frame notes.  Emit
11683         blockage to prevent insns with frame notes being scheduled in the
11684         delay slot of calls.
11685         (hppa_expand_epilogue): Restore eh data registers and do final stack
11686         adjustment if the current function calls eh_return.  Don't add frame
11687         notes.
11688         (output_call): Revise for change in length of call insn.  Don't do
11689         return pointer adjustment for an unconditional jump in the delay slot
11690         of a call when using frame notes.
11691         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
11692         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
11693         (ARG_POINTER_CFA_OFFSET): Define.
11694         * pa.md (return_external_pic): New pattern.
11695         (prologue): Correct formatting.  Use return_external_pic if current
11696         function calls eh_return.
11697         (call_internal_symref, call_value_internal_symref,
11698         sibcall_internal_symref, sibcall_value_internal_symref): Change default
11699         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
11700         respectively.
11701         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
11703         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
11704         list of targets to check using "nop" insn.
11705         * configure: Rebuilt.
11707 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
11709         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
11711 2002-04-03  David S. Miller  <davem@redhat.com>
11713         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
11714         library sequence passed to the linker.
11715         (LINK_COMMAND_SPEC): Use it.
11716         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
11717         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
11718         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11720 2002-04-03  Jason Merrill  <jason@redhat.com>
11722         * except.c (struct eh_status): Remove protect_list.
11723         (begin_protect_partials, end_protect_partials): Remove.
11724         (add_partial_entry): Remove.
11725         * except.h: Remove prototypes.
11727         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
11728         expand_decl_cleanup_eh.
11730         PR c++/5636
11731         * tree.h (CLEANUP_EH_ONLY): New macro.
11732         * stmt.c (expand_decl_cleanup_eh): New fn.
11733         (expand_cleanups): Check CLEANUP_EH_ONLY.
11734         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
11735         Use expand_decl_cleanup_eh.
11736         (expand_stmt): Adjust.
11737         * c-common.h: Adjust prototype.
11739 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
11741         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
11742         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
11743         (cris_target_asm_function_epilogue): Ditto.
11744         (cris_initial_frame_pointer_offset): Ditto.
11745         (cris_simple_epilogue): Ditto.
11746         (cris_expand_builtin_va_arg): Variable-size types come in
11747         by-reference.
11749 2002-04-03  David S. Miller  <davem@redhat.com>
11751         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
11752         little-endian.
11753         (set_fast_math): Correct 'fsr' type.
11755 2002-04-03  Richard Henderson  <rth@redhat.com>
11757         PR opt/3569
11758         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
11759         * toplev.c (check_global_declarations): Use it.
11760         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
11761         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11762         (LANG_HOOKS_DECLS): Add it.
11763         * langhooks.c (lhd_warn_unused_global_decl): New.
11764         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11765         * c-objc-common.c (c_warn_unused_global_decl): New.
11766         * c-tree.h (c_warn_unused_global_decl): Declare.
11767         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11769 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
11771         * langhooks-def.h (lhd_set_decl_assembler_name,
11772         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
11773         (LANG_HOOKS_INITIALIZER): Update.
11774         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
11775         * langhooks.h (struct lang_hooks): New hook.
11776         * tree.c (set_decl_assembler_name): Move to langhooks.c.
11777         (lang_set_decl_assembler_name): Remove.
11778         (init_obstacks): Don't set hook.
11779         (decl_assembler_name): New function.
11780         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
11781         (decl_assembler_name): New.
11782         (lang_set_decl_assembler_name): Remove.
11784 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
11786         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
11787         works properly with .hidden symbols.
11788         * configure: Rebuilt.
11789         * config.in: Rebuilt.
11790         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
11791         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
11792         properly with .hidden symbols.
11794 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
11796         PR middle-end/6102
11797         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
11798         USE argument.
11800 2002-04-03  Richard Henderson  <rth@redhat.com>
11802         PR opt/4120
11803         * sched-rgn.c (sets_likely_spilled): New.
11804         (sets_likely_spilled_1): New.
11805         (add_branch_dependences): Use it.
11807 2002-04-02  Richard Henderson  <rth@redhat.com>
11809         PR opt/4311
11810         * loop.h (LOOP_FIRST_PASS): New.
11811         * loop.c (strength_reduce): Mind it when deciding to unroll.
11812         * toplev.c (rest_of_compilation): Set it.
11814 2002-04-02  David S. Miller  <davem@redhat.com>
11816         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
11817         mems_ok_for_ldd_peep when the order of the loads being examined
11818         is reversed.
11819         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
11820         existing comment to increase comprehension of this situation.
11822 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
11824         * config/sh/sh.md: Don't use union real_extract.
11826 2002-04-02  Richard Henderson  <rth@redhat.com>
11828         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
11830 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
11832         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
11833         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
11834         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
11835         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
11836         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
11837         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
11838         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
11839         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
11840         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
11841         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
11842         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
11843         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
11844         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
11845         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
11846         Include as many configury headers via tm_file as possible.  This
11847         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
11848         * config/openbsd-oldgas.h: New file.
11849         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
11850         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
11851         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
11852         config/i386/i386-coff.h, config/i386/i386-interix.h,
11853         config/i386/iscdbx.h, config/i386/linux-aout.h,
11854         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
11855         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
11856         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
11857         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
11858         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
11859         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
11860         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
11861         config/i386/vxi386.h: Do not directly include configury headers.
11862         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
11863         Directly include configury headers that are no longer automatically
11864         included by the above headers.
11865         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
11866         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
11867         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
11868         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
11869         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
11870         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
11871         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
11872         (TARGET_VERSION): Define.
11873         * config/i386/beos-elf.h, config/i386/freebsd.h,
11874         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
11875         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
11876         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
11877         config/i386/sco5.h, config/i386/sysv4.h
11878         (TARGET_VERSION): Do not need to protect.
11879         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
11880         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
11881         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
11882         config/i386/i386-interix.h, config/i386/linux-aout.h,
11883         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
11884         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
11885         (YES_UNDERSCORES): Do not define - not needed.
11886         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
11887         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
11888         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
11889         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
11890         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
11891         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
11892         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
11893         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
11895 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
11896             Richard Henderson  <rth@redhat.com>
11898         PR c/5484
11899         * function.c (assign_temp): Accept either type or decl argument.
11900         Detect variables whose size is too large to fit into an integer.
11901         * stmt.c (expand_decl): Pass the decl, not the type.
11903 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
11905         * protoize.c: Match include directory usage with cppdefault.c.
11907 2002-04-03  Jeffrey A Law  (law@redhat.com)
11908             Hans-Peter Nilsson  <hp@bitrange.com>
11910         * combine.c (simplify_comparison): Avoid narrowing a comparison
11911         with a paradoxical subreg when doing so would drop signficant bits.
11913 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
11915         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
11916         if POINTERS_EXTEND_UNSIGNED is defined.
11918 2002-04-02  Richard Henderson  <rth@redhat.com>
11920         PR opt/3967
11921         * local-alloc.c (contains_replace_regs): LO_SUM may contain
11922         replace regs.
11924 2002-04-02  Richard Henderson  <rth@redhat.com>
11926         * doc/standards.texi: Document required freestanding libc entry points.
11928 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
11930         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
11931         associated splitter.  Remove MQ constraint.
11932         (ctrdi_internal4): Correct CCmode clobber.
11934 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11936         * milli64.S ($$dyncall): New function.
11937         * t-linux (LIB1ASMFUNCS): Revise module list.
11938         (LIB1ASMSRC): Use pa/milli64.S.
11940 2002-04-02  Richard Henderson  <rth@redhat.com>
11942         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
11943         rename solaris_sys_varargs_h.
11945 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11947         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
11948         the same mode as its component.
11950 2002-04-02  Richard Henderson  <rth@redhat.com>
11952         PR opt/190
11953         * final.c (this_is_asm_operands): Export.
11954         * output.h (this_is_asm_operands): Declare.
11955         * config/i386/i386.c (print_operand): Error odd asm operands.
11957 2002-04-02  Richard Henderson  <rth@redhat.com>
11959         PR opt/420
11960         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
11962 2002-04-01  Richard Henderson  <rth@redhat.com>
11964         PR target/1538
11965         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
11966         * fixinc/fixincl.x: Rebuild.
11968 2002-04-01  Richard Henderson  <rth@redhat.com>
11970         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
11971         (atomic_alloc, atomic_free): New.
11972         (SIZE, MASK_FOR, PTR_IN): New.
11973         (emergency_reg_state, emergency_reg_state_free): New.
11974         (emergency_labeled_state, emergency_labeled_state_free): New.
11975         (reg_state_alloced, labeled_state_alloced): New.
11976         (alloc_reg_state, free_reg_state): New.
11977         (alloc_label_state, free_label_state, free_label_states): New.
11978         (push, pop, dup_state_stack, free_state_stack): Use them.
11979         (desc_label_state): Likewise.
11980         (uw_frame_state_for): Free label states and state stack.
11981         (uw_update_reg_address): Eliminate warnings.
11983 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
11985         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
11986         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
11988 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
11990         * c-decl.c (grokdeclarator): Update.
11991         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
11992         * c-tree.h (c_mark_addressable): New.
11993         * c-typeck.c (default_function_array_conversion, build_unary_op,
11994         build_array_ref, convert_for_assignment): Update.
11995         (mark_addressable): Rename.
11996         * calls.c (try_to_integrate, expand_call): Use langhook.
11997         * expr.c (expand_expr): Use langhook.
11998         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
11999         * langhooks.h (struct lang_hooks): New hook.
12000         * stmt.c (expand_asm_operands): Use langhook.
12001         * tree.h (mark_addressable): Remove.
12002 objc:
12003         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12005 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
12007         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
12008         in previous change.
12010 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
12012         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
12013         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
12015 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12017         * c-common.c (unsigned_conversion_warning, convert_and_check,
12018         unsigned_type, signed_type, shorten_compare,
12019         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
12020         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
12021         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
12022         New.
12023         * c-decl.c (grokdeclarator): Update.
12024         * c-format.c (check_format_types): Update.
12025         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12026         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12027         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
12028         * convert.c (convert_to_integer): Use new hooks.
12029         * expmed.c (make_tree): Use new hooks.
12030         * expr.c (store_expr): Use new hooks.
12031         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
12032         all_ones_mask_p, unextend, fold): Use new hooks.
12033         * langhooks.h (struct lang_hooks_for_types): New hooks.
12034         * tree.h (signed_or_unsigned_type, signed_type,
12035         unsigned_type): Remove.
12036 objc:
12037         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12038         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12040 2002-03-31  Richard Henderson  <rth@redhat.com>
12042         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
12043         (desc_frgr_mem): Fix reference to f16-f31.
12045 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12047         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
12048         RTVEC_ELT): Const-ify.
12049         * varray.h (VARRAY_CHECK): Const-ify.
12050         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
12051         ggc_mark_rtvec, ggc_mark): Const-ify.
12053 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12055         * diagnostic.c: Include langhooks-def.h.
12056         * Makefile.in (diagnostic.o): Update.
12058 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
12060         * c-common.c (c_unsafe_for_reeval): Rename.
12061         * c-common.h (c_unsafe_for_reeval): Rename.
12062         * c-decl.c (finish_incomplete_decl): Rename.
12063         (c_init_decl_processing): Don't set langhook.
12064         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12065         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12066         * c-objc-common.c (c_objc_common_init): Don't set langhook.
12067         * c-tree.h (finish_incomplete_decl): Rename.
12068         * langhooks-def.h (lhd_unsafe_for_reeval): New.
12069         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
12070         (LANG_HOOKS_INITIALIZER): Update.
12071         * langhooks.c (lhd_unsafe_For_reeval): New.
12072         * langhooks.h (struct langhooks): New hooks.
12073         * toplev.c (incomplete_decl_finalize_hook): Remove.
12074         (wrapup_global_declarations): Update.
12075         * tree.c (lang_unsafe_for_reeval): Remove.
12076         (unsafe_for_reeval): Update.
12077         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
12078         Remove.
12079 objc:
12080         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12081         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12083 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
12085         * diagnostic.c (print_error_function): Remove.
12086         (default_print_error_function): Rename.
12087         (report_error_function): Update.
12088         * diagnostic.h (print_error_function): Remove.
12089         (default_print_error_function): Remove.
12090         * langhooks-def.h (struct diagnostic_context): Predeclare.
12091         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
12092         (LANG_HOOKS_INITIALIZER): Update.
12093         * langhooks.h (struct diagnostic context): Predeclare.
12094         (struct lang_hooks): New hook.
12096 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12098         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
12099         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
12100         !flag_pic.
12101         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
12102         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
12103         of PIC_OFFSET_TABLE_REGNUM thruout.
12104         * config/rs6000/rs6000.md: Likewise.
12105         * config/rs6000/darwin.h: Likewise.
12107 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12109         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
12110         unsigned HOST_WIDE_INT, not unsigned int.
12112 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12114         PR middle-end/6096, middle-end/6098, middle-end/6099
12115         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
12116         CODE_LABELs.
12117         (fill_slots_from_thread): Likewise.
12119 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12121         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
12122         floating fields in float regs.
12123         (function_arg_record_value_2): Likewise.
12125 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
12127         * config/mmix/mmix.md (define_constants): Remove misleading
12128         FIXME.  Add MMIX_fp_rO_OFFSET.
12129         ("nonlocal_goto_receiver"): Don't have stack-frame address of
12130         saved rO as part of the pattern.  Remove FIXME.
12131         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
12132         here, at output-time.
12134 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12136         PR middle-end/6100
12137         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
12138         REG_BR_PRED.
12139         (output_v9branch): Likewise.
12141 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
12143         * gcc.c: Revert previous patch for now.
12144         * config/i386/djgpp.h: Likewise.
12146 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
12148         * config/mmix/crti.asm (_init): Register _fini with atexit.
12149         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
12151 2002-03-31  Richard Henderson  <rth@redhat.com>
12153         PR target/3997
12154         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
12155         (ASM_OUTPUT_DEF_FROM_DECLS): New.
12157 2002-03-31  Richard Henderson  <rth@redhat.com>
12159         * libgcc2.c (__bb_exit_func): Make static.
12161         * config/alpha/alpha.md (trap): New.
12163 2002-03-31  Richard Henderson  <rth@redhat.com>
12165         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
12166         promoted argument types; build trap.
12167         (expand_builtin_trap): New.
12168         (expand_builtin): Use it.
12169         * stmt.c (expand_nl_goto_receivers): Likewise.
12170         * expr.h (expand_builtin_trap): Declare.
12171         * libfuncs.h (LTI_abort, abort_libfunc): New.
12172         * optabs.c (init_optabs): Init abort_libfunc.
12174 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
12176         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
12177         (LINK_COMMAND_SPEC): ... from here.
12178         (init_gcc_specs): Duplicate it here too, omitting
12179         shared_name in the second copy.
12180         (init_spec): Test for duplicate
12181         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
12183 2002-03-30  David S. Miller  <davem@redhat.com>
12185         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12186         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
12188 2002-03-30  Roger Sayle <roger@eyesopen.com>
12189             Richard Henderson  <rth@redhat.com>
12191         * regmove.c (combine_stack_adjustments_for_block): Avoid
12192         emitting a stack adjustment of zero bytes.  Let delete_insn
12193         update bb->head.
12195 2002-03-30  Richard Henderson  <rth@redhat.com>
12197         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
12198         (sparc_emitting_epilogue): New.
12199         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
12200         * config/sparc/sparc-protos.h: Update.
12201         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
12202         (TARGET_SWITCHES): Update.
12203         * config/sparc/sparc.md (return): Remove.
12204         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
12205         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
12206         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
12207         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
12208         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
12209         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
12210         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
12211         Remove MASK_EPILOGUE.
12212         * doc/invoke.texi: Update.
12214 2002-03-30  Daniel Berlin  <dan@dberlin.org>
12216         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
12217         CPP will start the file for us.
12219 2002-03-30  Richard Henderson  <rth@redhat.com>
12221         PR target/5446
12222         * config/ia64/ia64.c (group_barrier_needed_p): Special case
12223         prologue_allocate_stack.
12224         (ia64_single_set): Use insn codes for recognition of special
12225         cases, not rtl matching.
12226         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
12228 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
12230         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
12232 2002-03-30  Richard Henderson  <rth@redhat.com>
12234         PR target/6032
12235         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
12236         or -fomit-frame-pointer with profiling.
12237         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
12238         (FUNCTION_PROFILER): Do nothing.
12239         (PROFILE_HOOK): New.
12240         * config/sparc/sparc.c (sparc_override_options): Don't check
12241         code models for profiling.
12242         (sparc_function_profiler): Remove.
12243         (sparc_profile_hook): New.
12244         * config/sparc/sparc-protos.h: Update.
12246 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
12248         PR optimization/6086
12249         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
12250         of SUBREG of volatile MEM or because the MEM was mode dependent,
12251         return CLOBBER instead of unmodified SUBREG.
12253 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
12255         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
12256         when not optimizing.
12258         * toplev.c (rest_of_compilation): Cann mark_constant_function
12259         only when optimizing.
12261         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
12262         are NULL.
12264         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
12265         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
12266         (try_optimize_cfg): clear all AUX fields.
12268         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
12269         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
12270         (ix86_address_cost): Be prepared for SUBREGed registers.
12271         (legitimate_address_p): Accept SUBREGed registers.
12273 2002-03-29  Richard Henderson  <rth@redhat.com>
12275         PR target/5672
12276         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
12278 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12280         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
12281         for aggregate and TFmode types.
12283 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
12285         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
12287 2002-03-29  Richard Henderson  <rth@redhat.com>
12289         PR target/5886
12290         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
12291         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
12293 2002-03-29  Richard Henderson  <rth@redhat.com>
12295         PR target/6041
12296         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
12297         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
12298         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
12299         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
12300         conditional.
12301         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
12303 2002-03-29  Dale Johannesen <dalej@apple.com>
12305         * loop.c (combine_movables): Do allow combination of pseudos.
12307 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
12309         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
12310         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
12311         No functional change except ...
12312         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
12313         * doc/install.texi (*-*-freebsd*): Document port configuration.
12315 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12317         * Makefile.in (convert.o, calls.o, expmed.o): Update.
12318         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
12319         Use new hooks.
12320         * builtin-types.def (BT_PTRMODE): Update.
12321         * c-common.c (type_for_size): Rename c_common_type_for_size.
12322         (type_for_mode): Similarly.
12323         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
12324         Use new hook.
12325         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
12326         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
12327         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
12328         Redefine.
12329         * c-typeck.c (common_type, comptypes, default_conversion):
12330         Use new hooks.
12331         * calls.c: Include langhooks.h.
12332         (emit_library_call_value_1): Use new hooks.  Avoid redundant
12333         calls.
12334         * convert.c: Include langhooks.h
12335         (convert_to_pointer, convert_to_integer): Use new hooks.
12336         * except.c (init_eh): Similarly.
12337         * expmed.c: Include langhooks.h.
12338         (expand_mult_add): Use new hooks.
12339         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
12340         try_casesi): Similarly.
12341         * fold-const.c (optimize_bit_field_compare, make_range,
12342         decode_field_reference, fold_truthop, fold): Similarly.
12343         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
12344         put_var_into_stack): Similarly.
12345         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
12346         LANG_HOOKS_TYPE_FOR_SIZE): New.
12347         (LANG_HOOKS_TYPES_INITIALIZER): Update.
12348         * langhooks.h (lang_hooks_for_types): New hooks.
12349         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
12350         * tree.c (get_unwidened, get_narrower): Similarly.
12351         * tree.h (type_for_mode, type_for_size): Remove.
12352         * varasm.c (force_const_mem): Use new hooks.
12353         * utils2.c (nonbinary_modular_operation): Update.
12354 objc:
12355         * objc-act.c (handle_impent): Update.
12356         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
12357         Redefine.
12359 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
12361         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
12362         * config/ia64/ia64.c (basereg_operand): New.
12363         * config/ia64/ia64-protos.h (basereg_operand): Declare.
12364         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
12366 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
12368         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
12369         unwind information when frame_pointer_needed.
12370         (mmix_assemble_integer): Tweak wording in comment.
12372 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12374         * Makefile.in (except.o): Update.
12375         * except.c: Include langhooks.h.
12376         (init_eh): Use langhook.
12377         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
12378         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
12379         (LANG_HOOKS_INITIALIZER): Update.
12380         * langhooks.h (lang_hooks_for_types): New.
12381         (struct lang_hooks): Add it.
12382         * tree.c (make_lang_type_fn, make_lang_type): Remove.
12383         * tree.h (make_lang_type_fn, make_lang_type): Remove.
12384 config:
12385         * alpha/alpha.c: Include langhooks.h.
12386         (alpha_build_va_list): Use langhook.
12387         * d30v/d30v.c: Include langhooks.h.
12388         (d30v_build_va_list): Use langhook.
12389         * i386/i386.c: Include langhooks.h.
12390         (ix86_build_va_list): Use langhook.
12391         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
12392         * s390/s390.c: Include langhooks.h.
12393         (s390_build_va_list): Use langhook.
12394         * stormy16/stormy16.c: Include langhooks.h.
12395         (stormy16_build_va_list): Use langhook.
12397 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
12399         PR c++/5964
12400         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
12401         attributes.
12402         (length): Compute variable length for branches/calls/jumps here.
12403         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
12404         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
12405         define branch_type attribute.
12406         (divsi3_sp32): Maximum length is 6 not 7.
12407         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
12408         call_address_untyped_struct_value_sp32,
12409         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
12410         * config/sparc/sparc.c (empty_delay_slot): New function.
12411         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
12412         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
12414 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
12416         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
12417         nonzero_bits if not needed.
12418         (nonzero_bits) [XOR]: Likewise.
12419         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
12420         reg_last_set_mode and mode are both MODE_INT, but not equal.
12421         (record_value_for_reg): Compute reg_last_set_nonzero_bits
12422         in nonzero_bits_mode for MODE_INT modes.
12424 2002-03-28  Richard Henderson  <rth@redhat.com>
12426         PR target/5715
12427         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
12428         to GAS.  Correct drift between alternatives.
12430 2002-03-28  Richard Henderson  <rth@redhat.com>
12432         PR target/6087
12433         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
12435 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
12437         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
12438         emulation to the linker.
12440 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
12442         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
12443         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
12445 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
12447         * combine.c (simplify_and_const_int): Make sure to apply mask
12448         when force_to_mode returns a constant integer.  PR3311.
12450 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12452         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
12454 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12456         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
12457         and Objective-C Dialect Options.
12459 2002-03-28  Richard Henderson  <rth@redhat.com>
12461         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
12462         comparison should be done vs !=0 not >0 return code.  Tidy cases.
12464 2002-03-28  Richard Henderson  <rth@redhat.com>
12466         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
12467         on to c_expand_body.
12468         * c-tree.h (finish_function): Update decl.
12469         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
12471 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
12473         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
12475 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
12477         * rtlanal.c: Include flags.h
12478         (may_trap_p): Do not mark FP operations if trapping
12479         if !flag_trapping_math
12480         * Makefile.in (rtlanal.o): Add dependency on flag.h
12481         * ifcvt.c (noce_operand_ok): Avoid the lameness.
12483 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
12485         * mips.md: Use dconst1, not 1.0, as first argument of
12486         REAL_VALUE_LDEXP.  Don't use union real_extract.
12488 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
12490         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
12491         rather than $target.  Heed program_prefix and
12492         program_transform_name.  Search for gas in cross-compiler case too.
12493         "test -x" rather than "test -f".
12494         (gcc_cv_ld): Likewise.
12495         (gcc_cv_nm): Heed program_prefix and program_transform_name.
12496         (gcc_cv_objdump): Likewise.
12497         * configure: Regenerate.
12499 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12501         * Makefile.in (attribs.o): Update.
12502         * attribs.c: Include langhooks.h.
12503         (decl_attributes): Use langhook.
12504         * c-decl.c (insert_default_attributes): Rename.
12505         * c-tree.h (c_insert_default_attributes): New.
12506         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
12507         (LANG_HOOKS_INITIALIZER): Update.
12508         * langhooks.h (struct lang_hooks): New hook.
12509         * tree.h (insert_default_attributes): Remove.
12510 objc:
12511         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
12513 2002-03-27  Andreas Schwab  <schwab@suse.de>
12515         * config/i386/i386.c (classify_argument): Also check for
12516         QUAL_UNION_TYPE.
12518 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12520         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
12521         any more.
12523 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12525         * i960.md (ret): Set PC.
12526         (nonlocal_goto): Fix expander.
12527         * builtins.c (epxand_builin_longjmp): Check that we've emitted
12528         some jump or call.
12530 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
12532         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
12533         of libcall regions.
12535 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12537         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
12538         assigning to BLOCK_FOR_INSN directly.
12540 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
12542         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
12544 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12546         * c-common.c (c_expand_expr): Fix prototype.
12547         * c-common.h (c_expand_expr): Always declare, update.
12548         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12549         * c-objc-common.c (c_objc_common_init): No global hook.
12550         * expr.c (expand_expr): Use langhook.
12551         * expr.h (enum expand_modifier): Conditionally declare.
12552         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
12553         (LANG_HOOKS_INITIALIZER): Update.
12554         * langhooks.c (lhd_expand_expr): New.
12555         * langhooks.h (struct lang_hooks): New hook.
12556         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
12557         (lang_independent_init): Don't default hook.
12558 objc:
12559         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12561 2002-03-27  Richard Henderson  <rth@redhat.com>
12563         PR target/6054
12564         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
12565         TARGET_CONST_GP.  Simplify conditions.
12567 2002-03-27  Richard Henderson  <rth@redhat.com>
12569         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12570         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
12571         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
12573 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
12575         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
12576         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
12577         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
12578         Remove unnecessary masks.
12579         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
12580         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
12581         -mwindows, -mdll switches and their negations.
12583 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12585         * gcc-common.c (lang_mark_false_label_stack): Remove.
12586         * ggc.h (lang_mark_false_label_stack): Similarly.
12588 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
12590         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
12592         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
12593         or __rtems_ is defined.
12595 2002-03-26  Richard Henderson  <rth@redhat.com>
12597         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
12598         if a non-trivial load was emitted.
12599         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
12600         in high+extra+low case.
12602 2002-03-26  Richard Henderson  <rth@redhat.com>
12604         * config.gcc (sparc*-solaris): Use float_format=sparc.
12606 2002-03-26  Richard Henderson  <rth@redhat.com>
12608         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12609         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
12610         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
12611         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
12612         (WINT_TYPE_SIZE): Fix at 32.
12614 2002-03-26  Richard Henderson  <rth@redhat.com>
12616         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
12617         until after eh landing pad generation.
12618         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
12619         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
12621 2002-03-26  Richard Henderson  <rth@redhat.com>
12623         * expr.h (ADD_PARM_SIZE): One more convert for INC.
12625 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
12627         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
12628         and warning switches.
12629         (cc1_options):  Likewise.
12631 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
12633         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
12634         Restore more of the signal context.  Set no_reg_stack_frame.
12635         * config/ia64/unwind-ia64.c (unw_state_record):
12636         Add no_reg_stack_frame, comments.
12637         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
12638         (uw_update_context): Adjust bsp when unwinding from leaf,
12639         but not signal frame.
12641 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
12643         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
12645 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
12647         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
12649 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
12651         PR target/5621
12652         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
12653         "Add a pool_range attribute", which was lost during the ARM/Thumb
12654         merge.
12656 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
12658         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
12659         a register into the MAC16 accumulator.
12661 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
12663         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
12664         (Warning Options): Document -Wswitch-enum.
12665         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
12666         -Wswitch.
12667         (warn_switch_enum): Define variables.
12668         * flags.h (warn_switch_enum): Declare variables.
12669         * stmt.c (expand_end_case_type): When warn_switch_enum /
12670         -Wswitch-enum, perform switch checks.
12671         Fix PR c/5044.
12673 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
12675         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
12676         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
12677         (reload_muladdsi_compare0_scratch): Delete.
12679 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
12681         * doc/install.texi (*-*-freebsd*): Update.
12683 2002-03-26  Richard Henderson  <rth@redhat.com>
12685         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
12686         (SUB_PARM_SIZE): Cast DEC to ssizetype.
12688         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
12689         types from the normal argument frame.
12691         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
12692         variable sized objects by reference.
12693         (sparc_va_arg): Receive them by reference too.
12695 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
12697         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
12698         code to not restoring global registers.
12700 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
12702         * Makefile.in (ggc-common.o): Update.
12703         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
12704         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12705         * c-tree.h (c_mark_tree): New.
12706         * ggc-common.c: Include langhooks.h.
12707         (gcc_mark_trees): Use new langhook.
12708         * ggc-callbacks.c: Delete file.
12709         * ggc.h (lang_mark_tree): Remove.
12710         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
12711         (LANG_HOOKS_INITIALIZER): Update.
12712         * langhooks.h (struct lang_hooks): New hook.
12713 objc:
12714         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12716 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
12718         * doc/cpp.texi: Exclude entire Top node from printed manual.
12719         Move option index after directive index.  Insert page breaks
12720         before GFDL and concept index.  Index environment variables
12721         with command line options.
12722         * doc/cppenv.texi: Use @vtable for environment variable list.
12723         Add paragraph explaining semantics of empty elements in path
12724         variables.  Exclude a cross-reference to Fishkill from the
12725         manpage.  Remove an unnecessary cross-reference of the entry
12726         right above the referer.  Don't use @anchor in text that goes
12727         into manpage.
12728         * doc/cppopts.texi: Cross-reference the environment variables
12729         section, not the specific environment variable, for consistency.
12731 2002-03-25  Richard Henderson  <rth@redhat.com>
12733         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
12734         anywhere in the block.  Don't refer to insns that have been
12735         removed from the chain.  Iterate backward through the new insns.
12736         Don't refer to edges that have been removed.
12738 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
12740         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
12741         test for overflow of constant.
12743 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
12745         PR target/2623
12746         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
12747         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
12748         these patterns on arm_archv4.
12750 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
12752         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
12753         int".
12755 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
12757         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
12758         float_handled, float_handler, float_signal, set_float_handler,
12759         and do_float_handler.  Set handler for SIGFPE to crash_signal.
12760         * toplev.h: Don't prototype do_float_handler.
12762         * c-lex.c: Fold parse_float into lex_number.  Make warning
12763         about portability of hex float constants more informative, and
12764         don't issue it on top of a syntax error.
12765         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
12766         their callers.
12767         * real.h: Define REAL_VALUE_ABS here...
12768         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
12769         simplify_unary_real, simplify_binary_real, and
12770         simplify_binary_is2orm1 into their callers.
12771         * tree.c: Fold build_real_from_int_cst_1 into caller.
12773         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
12775         * tsystem.h: Include float.h here...
12776         * libgcc2.c: ... not here.
12778 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
12780         Fixes for: PR bootstrap/3591, target/5676
12781         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
12782         defined.  Do not disable exceptions or rtti.
12783         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
12784         mcore.h.  Disable exceptions and rtti, since they are not
12785         supported by EPOC.
12787 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
12789         * c-decl.c (maybe_build_cleanup): Remove.
12790         * expr.c (expand_expr): Use langhook.
12791         * langhooks-def.h (lhd_return_null_tree,
12792         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
12793         (LANGHOOKS_INITIALIZER): Update.
12794         * langhooks.c (lhd_return_null_tree): New.
12795         * langhooks.h (struct lang_hooks): New hook.
12796         * tree-inline.c (initialize_inlined_parameters): Use langhook.
12797         * tree.h (maybe_build_cleanup): Remove.
12799 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
12801         * regrename.c (build_def_use): Move recog_memoized
12802         before extract_insn.
12804 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
12806         PR target/6043
12807         * expr.c (emit_group_store): Handle storing into CONCAT.
12809 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
12811         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
12812         corresponding MATCH_DUP.
12814 2002-03-24  Richard Henderson  <rth@redhat.com>
12816         * unroll.c (unroll_loop): Zero label_map.
12818         * gcse.c: Include except.h.
12819         * Makefile.in (gcse.o): Update.
12821 2002-03-24  Richard Henderson  <rth@redhat.com>
12823         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
12824         Do resolve_unique_section before shared data clause.
12826 2002-03-24  Richard Henderson  <rth@redhat.com>
12828         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
12830 2002-03-24  Richard Henderson  <rth@redhat.com>
12832         * recog.c (peephole2_optimize): Split blocks when EH insns are
12833         generated in the middle of a block.  Do global life update if
12834         zapped EH edges.
12836 2002-03-24  Richard Henderson  <rth@redhat.com>
12838         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
12840 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
12842         preprocessor/3951
12843         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
12844         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
12845         (init_dependency_output): Don't make no_output decision here.
12847 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
12849         * stmt.c (check_for_full_enumeration_handling): Remove tests of
12850         warn_switch.  Update description.
12851         (expand_end_case_type): Call check_for_full_enumeration_handling
12852         when warn_switch.
12854 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12856         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
12857         (m68hc11_split_move): Call it to see if the source and destination
12858         operands use the same direction auto inc/dec mode, otherwise make the
12859         source an offsetable memory operand and generate an add.
12861 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12863         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
12864         register for operand 2.
12865         ("*subsi3_zero_extendqi"): Likewise.
12866         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
12867         bits so that it is compatible with a pop.
12868         ("*andhi3_gen"): Likewise.
12869         ("xorhi3"): Likewise.
12871 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
12873         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
12874         -pedantic here...
12875         (cpp_post_options): ... not here.
12877 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
12878             Aldy Hernandez  <aldyh@redhat.com>
12880         Removal of separate preprocessor cpp0.
12882         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
12883         cpp0, install-common): Update.
12884         * c-common.c (flag_preprocess_only): New.
12885         (c_common_init): Preprocess for -E.
12886         * c-common.h (flag_preprocess_only): New.
12887         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
12888         * c-objc-common.c (c_init_decl_processing): Exit quickly
12889         for NULL return from c_common_init.
12890         * cpplib.h (cpp_preprocess_file): New.
12891         * cppmain.c (main, general_init, pfile, progname): Remove.
12892         (do_preprocessing): Rename cpp_preprocess_file, don't call
12893         cpp_finish.  Don't close stdout here.
12894         (setup_callbacks): Update prototype.
12895         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
12896         Update.
12897         * tradcpp.c (main): Ignore -quiet.
12898 objc:
12899         * lang-specs.h (default_compilers): Preprocess with cc1obj.
12901 2002-03-24  Richard Henderson  <rth@redhat.com>
12903         PR optimization/5742
12904         * machmode.def: Add inner mode field to complex modes.
12905         * config/mips/mips.c (mips_function_value): Always define.  Add
12906         new argument to handle libcalls.
12907         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
12908         (FUNCTION_VALUE): Likewise.
12909         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
12910         * config/mips/mips-protos.h: Update.
12912 2002-03-23  Richard Henderson  <rth@redhat.com>
12914         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
12915         * config/sparc/sparc-protos.h: Update.
12916         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
12918 2002-03-23  Richard Henderson  <rth@redhat.com>
12920         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
12921         _start or _init begins the text segment.
12923 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
12925         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
12926         not HOST_WIDEST_INT.
12927         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
12929 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
12931         PR java/5489
12932         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
12933         operand argument to output_return_instruction.
12934         * arm.c (arm_print_operand, case 'd'): If the operand is
12935         const_true_rtx then just return.
12936         (arm_print_operand, case 'D'): If the operand is const_true_rtx
12937         then abort.
12939 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12941         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
12942         (Warning Options): Document -Wswitch-default.
12943         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
12944         -Wswitch.
12945         (warn_switch_default): Define variable.
12946         (warn_switch): Update comment.
12947         * flags.h (warn_switch_default): Declare variable.
12948         (warn_switch): Update comment.
12949         * stmt.c (expand_end_case): Check for and, when
12950         warn_switch_no_default, warn of a missing default case.
12952 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
12954         * real.h (N): Special case 128 bit doubles.
12956         * combine.c (simplify_comparison): When widening modes, ignore
12957         sign extension on CONST_INTs.
12959 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
12961         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
12962         passed to adjust_address.  Fix comment formatting.
12965 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
12967         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
12968         Always make REAL_VALUE_TYPE a struct containing an array of
12969         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
12970         big it is.  Don't declare or use union real_extract.
12972         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
12973         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
12974         (print_operand), config/arm/arm.c (output_move_double),
12975         config/arm/arm.md (consttable_4, consttable_8),
12976         config/romp/romp.c (output_fpops), config/s390/s390.h
12977         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
12978         (xtensa_output_literal): Don't use union real_extract.
12980         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
12981         (sfmode_constant_to_ulong), config/ns32k/merlin.h
12982         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
12983         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
12984         (PRINT_OPERAND): Don't use local version of union
12985         real_extract.
12987         * config/convex/convex.c (check_float_value), config/vax/vax.c
12988         (vax_float_literal), config/m88k/m88k.md (divdf3),
12989         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
12990         config/pdp11/pdp11.c (output_move_quad): Don't do host
12991         arithmetic on target floating point quantities.
12993         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
12994         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
12996         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
12997         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
12999         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
13000         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
13001         INFINITY.
13002         * print-rtl.c (print_rtx): Disable code which needs
13003         floating-point emulator.
13004         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
13005         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
13006         depending on HOST_FLOAT_FORMAT to be defined properly.
13008         * config/1750a/1750a.c (get_double, float_label): Delete.
13009         (print_operand): Delete huge commented-out chunk.  Use
13010         REAL_VALUE_TO_DECIMAL.
13011         * config/1750a/1750a-protos.h: Delete prototypes of deleted
13012         functions.
13013         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
13014         IEEE_FLOAT_FORMAT.
13015         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
13016         Use REAL_VALUE_TO_DECIMAL as ELF version does.
13017         * config/m88k/m88k.c (real_power_of_2_operand,
13018         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
13019         real_extract out of the union; run the input through
13020         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
13021         from that into the union.
13022         * config/pdp11/pdp11.c (output_move_double): Rearrange
13023         parentheses to make automatic indenter happy.
13025         * doc/tm.texi (Cross-compilation): Rename node to "Floating
13026         Point" and rewrite to describe current situation.  Also adjust
13027         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
13028         match code.
13029         * doc/rtl.texi: Adjust cross reference.
13031 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
13033         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
13034         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
13035         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
13036         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
13037         prevent use of sp as a reload register.
13038         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
13039         non_acc_reg_operand.
13040         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
13041         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
13042         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
13043         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
13045 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
13047         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
13048         * cpplex.c (unterminated): Delete.
13049         (parse_string): No string literal may extend over multiple
13050         lines.  Suppress the error when preprocessing assembly.
13051         * cppmain.c (scan_translation_unit): Strings are single-line.
13053         * doc/cpp.texi: Update to match.
13055 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
13057         PR optimization/5854
13058         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
13059         Shut up warnings.
13060         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
13061         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
13062         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
13063         const0 if scratch register was not allocated.
13064         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
13065         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
13066         with GEN_INT (...).
13067         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
13068         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
13069         with GEN_INT (...) everywhere.  Remove constraints in define_split
13070         patterns.
13071         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
13072         require scratch register for setting 0 into regs/non-pushable memory.
13074 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
13076         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
13077         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
13079 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
13081         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
13082         * cppinit.c (cpp_create_reader):  On by default.
13083         (cpp_handle_option):  Handle -W[no-]endif-labels.
13084         (cpp_post_options):  Also enable if -pedantic.
13085         * cpplib.c (do_else):  Use it.
13086         (do_endif):  Likewise.
13087         * doc/cppopts.texi:  Document new option.
13088         * doc/invoke.texi:  Document new option.
13090 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
13092         * config/i386/i386.c, config/i386/i386.md: Change all occurences
13093         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
13095 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
13097         * flow.c (calculate_global_regs_live): Clear aux fields of
13098         ENTRY and EXIT.
13100 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
13102         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
13103         REG or MEM subregs, pass rtx * instead of rtx to it.
13104         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
13105         rtx * instead of rtx to alter_subreg.
13106         * config/m32r/m32r.c (gen_split_move_double): Likewise.
13107         * config/pj/pj.c (pj_output_rval): Likewise.
13109 2002-03-22  Richard Henderson  <rth@redhat.com>
13111         PR target/3177
13112         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
13113         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
13114         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
13115         (ia64_expand_prologue): Look at int_regs, not words, for number
13116         of incomming int regs.
13118 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
13120         * expr.c (expand_expr): A RESULT_DECL is part of a call.
13122 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
13124         * toplev.c (flag_loop_optimize, flag_crossjumping):
13125         New static variables.
13126         (rest_of_compilation): Conditionalize crossjumping and
13127         loop optimizer.
13128         (parse_options_and_default_flags): Default loop_optimize and
13129         crossjumping.
13130         (lang_independent_options): Add -fcrossjumping and -floop-optimize
13131         * invoke.texi (crossjumping, loop-optimize): Document.
13133 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13135         * real.c (eiisneg): Move outside #ifdef NANS.
13137 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
13139         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
13140         frequencies match; avoid match on different loop depths.
13141         (try_crossjump_to_bb): Kill tests that no longer brings time
13142         savings.
13143         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
13144         updating code.
13145         (split_edge): Likewise.
13147         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
13148         variable.
13150         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
13151         * cfgrtl.c: Include insn-config.h
13152         (split_block) Dirtify block in presence of conditional execution
13154 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13156         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
13157         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
13158         (function_arg): Constify CUMULATIVE_ARGS.
13159         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
13160         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
13161         (UNITS_PER_DOUBLE): New macro.
13162         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
13163         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
13164         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
13165         fp_regs and stack_words.
13166         (EABI_FLOAT_VARARGS_P): New macro.
13167         * config/mips/mips.c (struct mips_arg_info): New.
13168         (mips_arg_info): New function.
13169         (function_arg_advance): Use it.  Add adjustment instructions here
13170         rather than in function_arg.
13171         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
13172         for VOIDmode at the beginning of the function.
13173         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
13174         (function_arg_pass_by_reference): Likewise.
13175         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
13176         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
13177         (mips_va_start): Likewise.  Use the new stack_words field of
13178         CUMULATIVE_ARGS to set up overflow area.  Reformat.
13179         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
13180         doubles and other types, aligning the overflow pointer for non-doubles
13181         too.  Remove some code duplication.  Replace hard-coded constants.
13183 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13185         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
13186         (CLASS_UNITS): Undefine.
13187         (CLASS_MAX_NREGS): Use FP_INC.
13188         * config/mips/mips.c (compute_frame_size): Likewise.
13189         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
13191 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
13193         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
13194         prototype, and handle lexing numbers and identifiers.
13195         (parse_identifier): Update to new form of parse_slow.
13196         (parse_number): Fast path only, use parse_slow otherwise.
13197         (_cpp_lex_direct): Update calls to parse_number.
13199 2002-03-21  DJ Delorie  <dj@redhat.com>
13201         * bb-reorder.c (make_reorder_chain_1): Protect against
13202         when redundant edges are omitted.
13203         * predict.c (dump_prediction): Likewise.
13205 2002-03-21  Richard Henderson  <rth@redhat.com>
13207         PR target/5996
13208         * fixinc/inclhack.def (solaris_stdio_tag): New.
13209         * fixinc/fixincl.x: Regenerate.
13211 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
13213         PR c/5597
13214         * c-typeck.c (process_init_element): Flag non-static
13215         initialization of a flexible array member as illegal.
13217 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
13219         * config/rs6000/t-linux64: New.
13220         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
13221         t-ppccomm.  Use t-rs6000 and t-linux64.
13222         (powerpc64-*-gnu* <tmake_file>): Likewise.
13223         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
13224         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
13225         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
13227 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
13229         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
13230         flag_really_no_inline instead of optimize == 0.
13232         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
13234         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
13236         * flags.h (flag_really_no_inline): New.
13238         * c-common.c (c_common_post_options): Initialize
13239         flag_really_no_inline.
13241         * toplev.c (flag_really_no_inline): New.
13243 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
13245         * config/avr/avr.md (length): Fix length computation for
13246         conditional branches.
13248 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
13250         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
13251         sdbout.o, profile.o): Update.
13252         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
13253         langhook.
13254         * c-common.h (gettags): Move here from tree.h.
13255         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
13256         insert_block, getdecls, kept_level_p, global_bindings_p): New.
13257         * dbxout.c (dbxout_init): Use getdecls langhook.
13258         * expr.c (expand_expr): Use insert_block langhook.
13259         * fold-const.c: Include langhooks.h.
13260         (fold_range_test, fold_binary_op_with_conditional_arg,
13261         fold): Use global_bindings_p langhook.
13262         * integrate.c (expand_inline_function): Use insert_block langhook.
13263         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
13264         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
13265         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
13266         LANG_HOOKS_GETDECLS): New.
13267         (LANG_HOOKS_INITIALIZER): Update.
13268         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
13269         langhook.
13270         * langhooks.h (struct lang_hooks_for_decls): New.
13271         (struct lang_hooks): Update.
13272         * profile.c: Include langhooks.h.
13273         (output_func_start_profiler): Use new langhooks.
13274         * sdbout.c: Include langhooks.h.
13275         (sdbout_init, sdbout_finish): Use getdecls langhook.
13276         * stmt.c: Include langhooks.h.
13277         (expand_fixup, fixup_gotos): Use new langhooks.
13278         * stor-layout.c: Include langhooks.h.
13279         (variable_size): Use global_bindings_p langhook.
13280         * toplev.c (compile_file): Use getdecls langhook.
13281         * tree-inline.c (remap_block): Use insert_block langhook.
13282         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
13283         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
13285 2002-03-21  Richard Henderson  <rth@redhat.com>
13287         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
13288         constants in .data when -fpic.
13290 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13292         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
13293         where appropriate.
13295 2002-03-21  Tom Tromey  <tromey@redhat.com>
13297         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
13299 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13301         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
13303         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
13305 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
13306             Richard Henderson  <rth@redhat.com>
13308         PR c/5354
13309         * c-common.c (c_expand_expr): Preserve result of a statement
13310         expression if needed.
13312 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
13314         PR bootstrap/4195
13315         * genrecog.c (maybe_both_true_mode): Remove.
13316         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
13317         * machmode.def (Pmode): Likewise.
13319 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
13321         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
13322         (nonlocal_mentioned_p_1): New function.
13323         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
13324         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
13325         (mark_constant_function): Recognize pure functions.
13326         * rtl.h (global_reg_mentioned_p): New prototype.
13327         * rtlanal.c (global_reg_mentioned_p,
13328         global_reg_mentioned_p_1): New function.
13330 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13332         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
13333         UNIX assert.h.
13334         * fixinc/fixincl.x: Regenerate.
13336 2002-03-20  Jason Merrill  <jason@redhat.com>
13338         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
13340 2002-03-20  Michael Meissner  <meissner@redhat.com>
13342         * doc/invoke.texi (Optimize Options): Document that -O2 sets
13343         -fstrict-aliasing.
13345 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
13347         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
13348         ".literal_position" directive before the constant pool.
13350 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13352         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
13353         Add Craig Rodrigues.
13354         Add Brad Lucier to testers.
13356 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13358         PR target/4792
13359         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
13360         to if_then_else.
13361         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
13362         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
13363         instead of insn_extract.
13365 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13367         PR bootstrap/4192
13368         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
13370         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
13371         stmt if some case has been output.
13373 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13375         PR c/5972
13376         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
13377         movsfcc_1, movdfcc_1): Add %O2.
13378         * config/i386/i386.c (print_operand): Handle %ON.
13379         Print . before float condition codes in Sun as cmov syntax.
13380         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
13381         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
13382         no longer true.
13384 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
13386         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
13387         return instruction if PC was popped.
13389 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
13391         * config/xtensa/xtensa.md: Remove unused type attributes.
13392         (adddi_carry, subddi_carry): Change type attribute to "multi".
13394 2002-03-19  Dale Johannesen  <dalej@apple.com>
13396         PR optimization/5999, middle-end/5731
13397         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
13398         multiplications by reciprocals.
13400 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
13402         * Makefile.in: Update.
13403         * c-common.c: Include langhooks.h.
13404         (inline_forbidden_p): Use new hook.
13405         * diagnostic.c: Include langhooks.h.
13406         (format_with_decl, announce_function,
13407         default_print_error_function): Use new hook.
13408         * dwarf2out.c (dwarf2_name): Use new hook.
13409         * function.c: Include langhooks.h.
13410         (init_function_start): Use new hook.
13411         * langhooks-def.h (lhd_decl_printable_name): New.
13412         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
13413         (LANGHOOKS_INITIALIZER): Update.
13414         * langhooks.c (lhd_decl_printable_name): New.
13415         * langhooks.h (struct lang_hooks): New hook.
13416         * toplev.c (decl_name, decl_printable_name): Remove.
13417         (open_dump_file): Use new hook.
13418         (process_options): Remove old hook.
13419         * tree.h (decl_printable_name): Remove.
13420 objc:
13421         * objc-act.c (objc_init): Remove old hook.
13422         (objc_printable_name): Export.
13423         * objc-act.h (objc_printable_name): New.
13424         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
13426 2002-03-19  Jim Blandy  <jimb@redhat.com>
13428         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
13429         the start_source_file debug hook, not the current line number.
13431 2002-03-19  Richard Henderson  <rth@redhat.com>
13433         * flow.c (EH_USES): Provide default.
13434         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
13435         * doc/tm.texi (EH_USES): New.
13437         * config/ia64/ia64.c (ia64_eh_uses): New.
13438         * config/ia64/ia64-protos.h: Update.
13439         * config/ia64/ia64.h (EH_USES): New.
13441 2002-03-19  Richard Henderson  <rth@redhat.com>
13443         * varasm.c (output_constant_def): Fix stupid typo.
13445 2002-03-19  Richard Henderson  <rth@redhat.com>
13447         PR 5879
13448         * except.c (current_function_has_exception_handlers): New.
13449         * except.h: Declare it.
13450         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
13451         Combine tests that disable all sibcalls for the function.
13453 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
13455         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
13456         for INTEGER_CST.
13458 2002-03-19  Richard Henderson  <rth@redhat.com>
13460         PR 5977, 5991
13461         * config/ia64/ia64.c: Revert 2002-03-01 patch.
13462         * config/ia64/ia64.h (INIT_EXPANDERS): New.
13464 2002-03-19  Jim Blandy  <jimb@redhat.com>
13466         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
13467         name, even if the replacement list contains no tokens, as required
13468         by Dwarf.
13470 2002-03-19  Jason Merrill  <jason@redhat.com>
13472         * varasm.c (globalize_decl): Get the name from the RTL, not
13473         DECL_ASSEMBLER_NAME.
13475         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
13477 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
13479         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
13480         subdi_carry): Define.
13482 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
13484         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
13485         about -fpic/-fPIC if extra_warnings set.
13487 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
13489         * expr.c (expand_expr): Sign-extend CONST_INT generated from
13490         TREE_STRING_POINTER.
13491         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
13493 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13495         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
13496         in favor of SP if FRAME_POINTER_REQUIRED is false.
13498 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
13500         * emit-rtl.c (gen_int_mode): New function.
13501         * rtl.h: Prototype for it.
13502         * combine.c (make_extraction, simplify_comparison), expmed.c
13503         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
13504         (convert_modes, store_field), optabs.c (expand_fix),
13505         simplify-rtx.c (neg_const_int, simplify_unary_real),
13507         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
13508         Use it instead of GEN_INT (trunc_int_for_mode (...)).
13510 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
13512         PR c/5656
13513         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
13514         convert_parm_for_inlining.
13515         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
13516         Define.
13517         * langhooks-def.h: Likewise.
13518         * objc/objc-lang.c: Likewise.
13519         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
13520         function.
13521         * tree-inline.c (initialize_inlined_parameters):
13522         Call convert_parm_for_inlining lang hook if needed.
13523         * c-typeck.c (c_convert_parm_for_inlining): New function.
13524         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
13526 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
13528         * calls.c (precompute_arguments): Do not assume that temporaries
13529         can be destroyed after expanding the argument.
13530         (expand_call): Likewise.
13532 2002-03-15  Eric Christopher  <echristo@redhat.com>
13534         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
13535         Fix register preference on last change.
13536         * config/mips/mips.c (mips_return_in_memory): New function.
13537         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
13538         * config/mips/mips-protos.h: Declare.
13539         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
13540         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
13542 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
13544         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
13545         a register too.
13546         (anddi3, iorsi3): Likewise.
13548         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
13549         use %gprel for symbols that are going to be placed in linkonce
13550         sections.
13552         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
13553         RETURN_ADDRESS_POINTER_REGNUM to $ra.
13554         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
13555         not needed.  Disregard leaf_function_p().
13556         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
13557         mips16 frame pointer.
13558         * config/mips/mips.md (store ra): Only to small SP offsets.
13559         2001-08-22  Graham Stott  <grahams@redhat.com>
13560         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
13561         return a REG rtx for the return address register.
13563 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
13565         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
13566         constant-pool addresses as "mode-dependent".
13567         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
13569 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
13571         PR target/5740
13572         * expr.c (emit_group_load): Use extract_bit_field if
13573         needed for CONCAT arguments.
13575 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
13577         PR target/4863
13578         * arm.md (tablejump): Make this a define_expand.  For PIC add the
13579         offset to the base of the table.
13580         (thumb_tablejump): Matcher for Thumb tablejump insn.
13581         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
13582         as the difference of two labels.
13583         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13584         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
13585         tables in the code.
13586         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
13587         * arm.c (get_jump_table_size): If the table is not in the text
13588         section, return zero.
13590 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
13592         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
13593         of gen_rtx_SUBREG.
13594         (arm_reload_out_hi): Use gen_lowpart instead of
13595         gen_rtx_SUBREG to access QImode components.
13596         * config/arm/arm.md: Disable zero_extend split for QImode
13597         subregs in BIG_ENDIAN mode.
13598         (storehi_bigend): Match use of least significant byte.
13599         (storeinthi): Remove extraneous SUBREG.
13600         Add missing construction of operands[2].
13601         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
13602         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
13603         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
13605 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
13607         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
13608         any_operand.
13610 2002-03-17  Richard Henderson  <rth@redhat.com>
13612         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
13613         explicitly.
13615 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
13617         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
13618         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
13620 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13622         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
13624         * predict.c (estimate_bb_frequencies): Delete unused variables.
13626 2002-03-17  Richard Henderson  <rth@redhat.com>
13628         * config/ia64/ia64.c (ia64_attribute_table): Move before
13629         targetm definition.  Make static.
13631 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
13633         * c-common.h (yyparse, c_common_parse_file): New.
13634         * c-lang.c: Include c-common.h.
13635         (LANG_HOOKS_PARSE_FILE): Redefine.
13636         * c-lex.c: Include c-common.h.
13637         (yyparse): Rename c_common_parse_file.  Call yyparse.
13638         * c-parse.in (yyparse): Remove macro.
13639         * c-tree.h (yyparse_1): Remove.
13640         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
13641         (LANG_HOOKS_INITIALIZER): Update.
13642         * langhooks.h (struct lang_hoooks): New hook parse_file.
13643         * toplev.c (compile_file): Use parse_file hook.
13644         * tree.h (yyparse): Remove.
13645         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
13647 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
13649         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
13650         float_truncate, not fix.
13651         ("*truncdfsf2_real"): Ditto.
13652         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
13654         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
13656 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
13658         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
13659         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
13660         where appropriate.  Make the second reference to
13661         leaf_function_p a function call, as intended.  Reindented.
13663         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
13664         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
13666         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
13667         add register to non-constant into sp.
13669         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
13670         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
13671         (mips16_gp_pseudo_rtx): Lose.
13672         (INIT_EXPANDERS): Deleted.
13673         * config/mips/mips.c (mips_init_machine_status): New.
13674         (mips_free_machine_status): New.
13675         (mips_mark_machine_status): New.
13676         (override_options): Set them.
13677         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
13678         (struct machine_function): ... new.  Replaced all references.
13679         (mips_add_gc_roots): Don't mark them.
13680         (embedded_pic_fnaddr_reg): New, extracted from...
13681         (embedded_pic_offset): ... here.
13682         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
13683         (movsi): Likewise.
13685 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
13687         * cppinit.c: Revert -MD removal.
13689 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13691         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
13692         soft registers by default for 68HC12.
13693         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
13694         when compiling with -fomit-frame-pointer.
13695         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
13696         (expand_epilogue): Likewise.
13697         (m68hc11_gen_rotate): Use exg when rotating by 8.
13699 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13701         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
13702         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
13703         (splits): Remove unused add splits.
13704         ("*addhi3_68hc12"): Tune constraints.
13705         ("addhi_sp"): Try to use X instead of Y in all cases and if the
13706         constant fits in 8-bits and D is dead use abx/aby instructions.
13707         ("*addhi3"): Remove extern declaration of ix_reg.
13708         ("*subsi3"): Optimize and provide new split.
13709         ("subhi3"): Cleanup.
13710         ("*subhi3_sp"): Avoid saving X if we know it is dead.
13711         (arith splits): For 68hc12 save the address register on the stack
13712         and do the arithmetic operation with a pop.
13714 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13716         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
13717         allocating QImode in address registers.
13718         ("*movqi_m68hc11"): Likewise.
13720 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
13722         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
13724 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
13726         * cppinit.c (print_help): Display -MD and -MMD.
13727         Don't display usage string.  Update assertion syntax and
13728         typo.
13729         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
13730         (cpp_handle_option): Update.
13732 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
13734         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
13735         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
13736         and define it so that regardless of target CPU size,
13737         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
13738         of "int" rather than "long."
13740 2002-03-15  Richard Henderson  <rth@redhat.com>
13742         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
13743         size as a tree.
13745 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13747         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
13748         ("tstqi" split): Avoid using memory for tstqi on address register.
13749         (splits): Remove constraints.
13750         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
13751         ("cmpdf", "cmpsf"): Remove since not used.
13752         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
13753         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
13755 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13757         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
13758         ("neghi2"): Tighten constraints.
13759         ("one_cmplsi2"): Optimize and simplify split.
13760         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
13762 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13764         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
13765         and split of AND operation to clear the upper bits.
13766         ("*logicalsi3_zextqi"): Likewise.
13767         ("*logicallhi3_zexthi_ashift8"): Likewise.
13768         ("*logicalsi3_silshr16"): Likewise.
13769         ("logicalsi3_silshl16"): Likewise.
13770         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
13772 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13774         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
13775         (m68hc11_indirect_p): New function.
13776         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
13777         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
13778         TARGET_M6812.
13779         (asm_print_register): Likewise.
13780         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
13781         (m68hc11_indirect_p): Declare.
13782         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
13783         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
13784         (TARGET_SWITCHES): New option -mrelax.
13785         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
13786         destination.
13787         ("iorsi3", "xorsi3"): Likewise.
13788         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
13789         ("*andhi3_mem"): New to handle destination in memory with bclr
13790         and a scratch register.
13791         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
13792         ("*andhi3_const"): New when operand2 is constant.
13793         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
13794         ("*andhi3_gen"): Cleanup of the old "andhi3".
13795         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
13796         ("xorqi3"): Update constraints.
13798 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13800         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
13801         for reg_equiv_memory_loc when the operand is a register that does
13802         not get a hard register (stack location).
13803         (tst_operand): After reload, accept all memory operand.
13804         (symbolic_memory_operand): Fix detection of symbolic references.
13805         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
13806         accept symbols and any constant.
13808 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13810         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
13811         note on the insn that sets the soft frame register.
13812         (must_parenthesize): ix and iy are also reserved names.
13813         (print_operand_address): One more place where parenthesis are required
13814         to avoid confusion with register names.
13815         (m68hc11_gen_movhi): Allow push of stack pointer.
13816         (m68hc11_check_z_replacement): Fix handling of parallel with a
13817         clobber.
13818         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
13819         the replacement register is.
13820         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
13821         and D8_REGS classes.
13822         (MODES_TIEABLE_P): All modes are tieable except QImode.
13824 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13826         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
13827         (___subdi3): Likewise.
13828         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
13829         (__map_data_section): Optimize 68hc11 case.
13831 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13833         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
13834         than a shift to avoid adding a register with itself.
13835         (m68hc11_memory_move_cost): Take into account NO_REGS.
13836         (m68hc11_register_move_cost): Update and use memory move cost
13837         for soft registers.
13838         (m68hc11_address_cost): Make cost of valid offset not 0 so that
13839         it gives more opportunities to cse to optimize.
13840         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
13841         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
13843 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
13845         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
13846         * c-common.def (CLEANUP_STMT): New tree node.
13847         * c-common.h (CLEANUP_DECL): New macro.
13848         (CLEANUP_EXPR): Likewise.
13849         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
13850         * expr.c (expand_expr): Tidy.
13851         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
13852         * tree-inline.c (initialize_inlined_parameters): Clean up
13853         new local variables.
13855 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
13857         PR bootstrap/4128
13858         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
13859         before movrXX only, use reg_overlap_mentioned_p.
13860         Only special case NE if just one insn can be generated.
13862 2002-03-15  Jason Merrill  <jason@redhat.com>
13864         * varasm.c (assemble_variable): Call resolve_unique_section before
13865         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
13866         of error_mark_node.
13868 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
13870         PR target/5170
13871         * arm.md (split pattern for thumb shiftable immediates): Add comment
13872         explaining non-obvious test.
13874 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
13876         PR target/5712
13877         * arm.md (movaddr, movaddr_insn): Delete.
13879 2002-03-15  Jason Merrill  <jason@redhat.com>
13881         * toplev.c (wrapup_global_declarations): Clarify variable handling.
13882         -fkeep-static-consts doesn't apply to comdats.
13884 2002-03-14  Richard Henderson  <rth@redhat.com>
13886         * c-decl.c: Include c-pragma.h.
13887         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
13888         (finish_function): Tidy.
13889         * c-pragma.c: Include c-common.h.
13890         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
13891         (handle_pragma_weak): Use them.
13892         (init_pragma): Register pending_weaks.
13893         * c-pragma.h (maybe_apply_pragma_weak): Declare.
13894         * print-tree.c (print_node): Print DECL_WEAK.
13895         * varasm.c (mark_weak_decls): Remove.
13896         (remove_from_pending_weak_list): Remove.
13897         (add_weak): Remove.
13898         (asm_emit_uninitialised): Call globalize_decl for weak commons.
13899         (weak_decls): Make a tree_list.
13900         (declare_weak): Cons weak_decls directly.
13901         (globalize_decl): Remove weak_decls elements directly.
13902         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
13903         symbols.  Don't pretend to handle aliases.
13904         (init_varasm_once): Update weak_decls registry.
13905         * Makefile.in: Update dependencies.
13907 2002-03-14  Richard Henderson  <rth@redhat.com>
13909         PR target/5312
13910         * config/ia64/ia64.c: Include tm_p.h last.
13911         (gen_nop_type): Remove duplicate definition.
13912         (cycle_end_fill_slots): Set sched_data for second L slot.
13913         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
13914         (nop_cycles_until): Fix typos.
13916 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
13918         PR optimization/5891
13919         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
13921 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
13923         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
13924           descriptors correctly.
13926 2002-03-14  Michael Meissner  <meissner@redhat.com>
13928         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
13929         100, allowing MAX_UNROLLED_INSNS to be overridden.
13931         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
13932         --param.
13934         * unroll.c (params.h): Include.
13935         (MAX_UNROLLED_INSNS): Delete, now in params.h.
13937         * doc/invoke.texi (--param max-unroll-insns): Document.
13939         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
13941 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
13943         * arm.md: Fix warnings about constraints in peepholes and splits.
13945 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
13947         * cpphash.h (struct lexer_state): Remove line_extension member.
13948         * cpplib.c (dequote_string, do_linemarker): New functions.
13949         (linemarker_dir): New data object.
13950         (DIRECTIVE_TABLE): No longer need to interpret #line in
13951         preprocessed source.  Delete obsolete comment about return
13952         values of handlers.
13953         (end_directive, directive_diagnostics, _cpp_handle_directive):
13954         Don't muck with line_extension.
13955         (directive_diagnostics): No need to issue warnings for
13956         linemarkers here.
13957         (_cpp_handle_directive): Issue warnings for linemarkers here,
13958         when appropriate.  Dispatch linemarkers to do_linemarker, not
13959         do_line.
13960         (do_line): Code to handle linemarkers split out to do_linemarker.
13961         Convert escape sequences in filename argument, both places.
13963         * cppmacro.c (quote_string): Rename cpp_quote_string and
13964         export.  All callers changed.
13965         * cpplib.h (cpp_quote_string): Prototype.
13966         * cppmain.c (print_line): Call cpp_quote_string on to_file
13967         before printing it.
13969         * doc/cpp.texi: Document that escapes are now interpreted in
13970         #line and in linemarkers, and that non-printing characters are
13971         converted to octal escapes when linemarkers are generated.
13973 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
13975         * emit-rtl.c (try_split): Use delete_insns.
13976         * recog.c (split_all_insns): Fix terminating condition.
13978 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
13979             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
13981         PR target/5828
13982         * arm.c (arm_output_epilogue): Fix floating-point register save
13983         adjustment when using a frame pointer.
13985 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
13987         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
13988         * config/mips/mips.c (compute_frame_size): Retrofit them here.
13989         (save_restore_insns, mips_expand_epilogue): And here.
13990         (build_mips16_call_stub): And here.
13991         (mips_function_value): Use the new macros to decide whether a single
13992         or complex float can be returned in floating-point registers.  Return
13993         a parallel rtx in the complex case.
13995 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
13997         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
13998         call after liveness analysis.
14000         * recog.c (split_insn): Use delete_insn_and_edges.
14002         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
14003         instructions to have branch prediction notes.
14004         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
14006 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
14008         * configure.in: Don't pass -Wno-long-long to a ADA compiler
14009         that doesn't support it.
14010         * configure: Regenerate.
14012 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14014         PR target/5626
14015         * config/sparc/sparc.md (normal_branch, inverted_branch,
14016         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
14017         inverted_fp_branch): Adjust calls to output_cbranch.
14018         Set length attribute.
14019         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
14020         output_v9branch.  Set length attribute.
14021         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
14022         predicates.
14023         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
14024         (output_cbranch): Likewise.  Handle far branches.
14025         (output_v9branch): Handle far branches.
14026         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
14027         Adjust prototypes.
14028         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
14029         noov_compare64_op predicates.
14031 2002-03-13  Jason Merrill  <jason@redhat.com>
14033         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
14034         into the function and constify it.
14035         * gthr-dce.h, gthr-solaris.h: Likewise.
14037 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
14039         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
14040         * config/rs6000/rs6000.c (rs6000_va_arg): Use
14041         std_expand_builtin_va_arg if not ABI_V4.
14043 2002-03-13  Jason Merrill  <jason@redhat.com>
14045         * varasm.c (globalize_decl): New fn.
14046         (assemble_start_function): Use it.
14047         (asm_emit_uninitialized): Use it.
14048         (assemble_alias): Use it.
14049         (assemble_variable): Use it.
14051 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
14053         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
14054         2002-03-12 internal visibility change.
14055         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
14056         visibility into SYMBOL_REF_FLAG.
14058 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
14060         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
14061         VOIDmode operand.  Add compile-time optimization for constant results.
14063 2002-03-12  Jason Merrill  <jason@redhat.com>
14065         * c-typeck.c (convert_for_assignment): Don't allow conversions
14066         between pointers and references.  Only allow lvalues to convert to
14067         reference.
14069 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
14071         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
14072         before prologue, to avoid scheduling problems.
14074 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14076         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
14077         (ELIMINABLE_REGS): Add sfp->sp.
14078         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
14080 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14082         PR optimization/5892
14083         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
14085 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14087         * loop.c (basic_induction_var): Don't call convert_modes if mode
14088         classes are different.
14090 2002-03-12  Richard Henderson  <rth@redhat.com>
14092         PR optimization/5901
14093         * function.c (reposition_prologue_and_epilogue_notes): Position
14094         the markers after/before the last/first insn not deleted.
14096 2002-03-12  Richard Henderson  <rth@redhat.com>
14098         PR optimization/5878
14099         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
14100         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
14101         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
14103         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
14104         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
14105         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
14107         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
14108         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
14109         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
14110         also.  Don't set it if not flag_pic.
14111         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
14112         to be INVALID_REGNUM when not used.
14114 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
14116         * expmed.c (store_bit_field): Reset alias set for memory.
14117         (extract_bit_field): Same.
14119 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14121         * c-common.c (c_tree_code_type, c_tree_code_length,
14122         c_tree_code_name, add_c_tree_codes): Delete.
14123         * c-common.h (add_c_tree_codes): Delete.
14124         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
14125         Define.
14126         * c-objc-common.c (c_objc_common_init): Don't call
14127         add_c_tree_codes, instead set lang_unsafe_for_reeval.
14128         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
14129         objc_tree_code_name, add_objc_tree_codes): Delete.
14130         (objc_init): Don't call add_objc_tree_codes.
14131         * objc/objc-lang.c (tree_code_type, tree_code_length,
14132         tree_code_name): Define.
14133         * toplev.c (lang_independent_init): Don't set
14134         tree_code_length[IDENTIFIER_NODE].
14135         * tree.c (tree_code_type, tree_code_length, tree_code_name):
14136         Delete definitions, moved to language front-ends.
14137         * tree.def (IDENTIFIER_NODE): Hardwire the length.
14138         * tree.h (tree_code_type, tree_code_length, tree_code_name):
14139         Const-ify.
14140         (tree_code_length): Change type to unsigned char.
14142 2002-03-12  Richard Henderson  <rth@redhat.com>
14144         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
14145         internal visibility change.
14147 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14149         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
14150         validize_mem() instead of change_address to avoid clobbering
14151         memory attributes.
14153 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
14155         * c-lex.h (position_after_whitespace): Remove.
14157 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
14159         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
14160         (lex_string): Use unsigned char pointers.
14162 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
14164         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
14165         is not a valid memory_operand.
14167 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14169         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
14170         * config/xtensa/lib1funcs.asm: Fix copyright to include
14171         special case for libgcc files.
14172         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
14173         (__divsi3): Likewise.
14174         (__umodsi3): Likewise.
14175         (__modsi3): Likewise.
14176         * config/xtensa/lib2funcs.S: Fix copyright to include
14177         special case for libgcc files.
14179 2002-03-12  Tom Rix  <trix@redhat.com>
14181         * collect2.c (resolve_lib_name): Move outside of
14182         OBJECT_FORMAT_COFF ifdef.
14183         (ignore_library): Same.
14185 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14187         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
14189 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14191         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
14192         to function_section before writing out the constant pool.
14194 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
14196         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
14197         zero_constant.
14198         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
14200 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
14202         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
14203         (adddi3): Likewise.
14204         (movdf): Likewise.
14205         (movdi): Likewise.
14206         (cmpsi splitter): Likewise.
14207         (modsi3): Fail if <= 0.
14208         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
14209         redundant test when HOST_BITS_PER_WIDE_INT != 32.
14210         (reg_or_sub_cint64_operand): Likewise.
14211         (num_insns_constant_wide): Optimize sign extension.
14212         (rs6000_legitimize_address): Likewise.
14214 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
14216         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14217         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14219 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
14221         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
14222         address calculation.
14224 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
14226         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
14227         scratch register to DImode / TImode.
14228         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
14229         register used does not overlap the target.
14231 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14233         * Makefile.in (debug.o): Depend on debug.h.
14234         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
14235         * debug.c (do_nothing_debug_hooks): Likewise.
14236         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
14237         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
14238         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
14239         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
14240         * dwarfout.c (dwarf_debug_hooks): Likewise.
14241         * integrate.c (output_inline_function): Likewise.
14242         * objc/objc-act.c (synth_module_prologue): Likewise.
14243         * sdbout.c (sdb_debug_hooks): Likewise.
14244         * toplev.c (debug_hooks): Likewise.
14245         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14247 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14249         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
14250         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
14251         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
14252         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
14253         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
14254         * defaults.h (POINTER_SIZE): Define.
14255         * doc/tm.texi (POINTER_SIZE): Document default.
14257 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14259         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
14261 2002-03-11  Richard Henderson  <rth@redhat.com>
14263         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
14264         if rebuild_label_notes_after_reload.
14266 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
14268         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
14269         emit pic register load if "internal" visibility.
14270         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
14271         (cris_expand_builtin_va_arg): Do all computations on trees.
14273 2002-03-11  Richard Henderson  <rth@redhat.com>
14275         * rtlanal.c: Include recog.h.
14276         (keep_with_call_p): Fix thinko.
14277         * Makefile.in (rtlanal.o): Update dependencies.
14279 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
14281         * genflags.c (gen_insn): Use IS_VSPACE.
14282         * genoutput.c (output_insn_data): Likewise.
14283         (process_template): Likewise.
14285 2002-03-11  Richard Henderson  <rth@redhat.com>
14287         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
14289 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
14291         * Makefile.in: Update.
14292         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
14293         Update documentation.
14294         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
14295         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
14297 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
14299         * Makefile.in: Give texi2pod its input file as a command line
14300         argument, not on stdin.
14302 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
14303             Daniel Berlin  <dan@dberlin.org>
14305         C++ alias analysis improvement.
14306         * alias.c (record_component_aliases): Record aliases for base
14307         classes too.
14309 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
14311         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
14313 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
14315         * toplev.c (vms_fopen): Remove, not needed.
14317         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
14319         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
14321         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
14322         for FP, already done later.
14324         * toplev.c (debug_args): Add entry for VMS_DEBUG.
14325         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
14327 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
14329         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
14330         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
14331         LARGEST_EXPONENT_IS_NORMAL for the given mode.
14332         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
14333         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
14334         (ediv, emul, eldexp, esqrt): Likewise.
14335         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
14336         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
14337         (saturate): New function.
14338         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
14339         (make_nan): Use a saturation value instead of a NaN if
14340         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
14341         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
14342         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
14343         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
14344         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
14345         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
14346         !ROUND_TOWARDS_ZERO.
14347         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
14348         (ROUND_TOWARDS_ZERO): Document.
14350 2002-03-11  Andreas Jaeger  <aj@suse.de>
14352         * cfg.c (dump_flow_info): Remove unused variable.
14354 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
14356         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
14357         computations on trees.
14359 2002-03-10  Richard Henderson  <rth@redhat.com>
14361         PR 5693:
14362         * reload.c (copy_replacements_1): New.
14363         (copy_replacements): Use it to recurse through the rtx.
14365 2002-03-10  Richard Henderson  <rth@redhat.com>
14367         * loop.c (strength_reduce): Compute number of iterations as
14368         unsigned HOST_WIDE_INT.
14370 2002-03-10  Richard Henderson  <rth@redhat.com>
14372         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
14373         to move away from the end of the block.
14375 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
14377         PR preprocessor/5899
14378         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
14380 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14382         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
14384         * attribs.c (decl_attributes): Fix signed/unsigned warning.
14386 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
14388         * config/mmix/mmix.c: Improve comments.
14389         (mmix_target_asm_function_prologue): Drop variable
14390         empty_stack_frame.  Don't allocate unused slot above fp.
14391         (mmix_target_asm_function_epilogue): Mirror prologue changes.
14392         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
14393         brace in first column.
14394         (enum reg_class): Ditto.
14395         (FIRST_PARM_OFFSET): Now 0.
14396         (USER_LABEL_PREFIX): Remove #if 0:d definition.
14398 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14400         * combine.c (make_extraction): Fix error in last change.
14402 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14404         * c4x.c (c4x_fp_reglist): Const-ify.
14405         * cris.c (cris_print_operand): Likewise.
14406         * i386.c (ix86_va_arg): Likewise.
14407         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
14408         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
14409         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
14410         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
14411         * mcore.h (regno_reg_class): Likewise.
14412         * mips.c (gen_int_relational): Likewise.
14413         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
14414         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
14415         * pdp11.c (move_costs): Likewise.
14416         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
14417         * s390.c (s390_branch_condition_mnemonic, regclass_map):
14418         Likewise.
14419         * s390.h (regclass_map): Likewise.
14420         * sh.c (shift_amounts): Likewise.
14421         * sh.md (rotlsi3): Likewise.
14423 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
14425         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
14426         (ne0+5): Use new clobber to generate proper shift pattern.
14427         Patch by Michael Matz <matz@kde.org>.
14429 2002-03-09  Andreas Schwab  <schwab@suse.de>
14431         * gcc.c (validate_all_switches): Also handle `%W{...}'.
14433 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
14435         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
14437 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
14439         PR middle-end/5877
14440         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
14441         even for non-representable constants.
14443 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14445         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
14446         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
14447         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
14448         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
14449         (pop_function_context): Compute MAY_SHARE parameter for
14450         fixup_var_refs.
14451         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
14452         (gen_mem_addressof): Call fixup_var_refs with new parm.
14454         * combine.c (make_extraction): Don't make extension of CONST_INT.
14456 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
14458         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
14459         in o32 and o64 ABIs.
14460         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
14461         but getting fixed-size structs passed in registers regardless of
14462         padding in o32 and o64 ABIs.
14464         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
14465         offset before loading address of argument passed by transparent
14466         reference.
14468 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14470         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
14472 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
14474         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
14475         marker such that registers after it are saved.
14477 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14479         * sparc.c (arith_4096_operand): Fix error in last change.
14481 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
14483         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
14484         defaults for MEABI.
14486 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
14488         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
14489         vectors.
14491 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
14493         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
14495 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14497         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
14498         removed; fix return value.
14499         * combine.c (combine_instructions): Dirtify blocks where we failed to
14500         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
14501         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
14503 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14505         * gcse.c (insert_insn_end_bb): Fix typo in last change.
14507 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
14509         * recog.c (peephole2_optimize): Re-distribute EH edges.
14511 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
14513         * expr.c (expand_expr): Use unsave lang hook.
14514         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
14515         (LANG_HOOKS_INITIALIZER): Update.
14516         * langhooks.h (struct lang_hooks): New hook unsave.
14517         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
14518         (unsave_expr_1): Remove unused lang_unsave_expr_now.
14519         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
14520         (unsave_expr_now): Remove.
14521         * tree.h (unsave_expr_now, lang_unsave,
14522         lang_unsave_expr_now): Remove.
14523         (lhd_unsave): New.
14525 2002-03-08  Andreas Jaeger  <aj@suse.de>
14527         * flow.c (propagate_block_delete_insn): Remove unused variable.
14529 2002-03-08  Kazu Hirata  <kazu@hxi.com>
14531         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
14532         insn length for memory load/store.
14534 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14536         * doc/install.texi (--with-libiconv-prefix): Document.
14538 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
14540         * doc/sourcebuild.texi: Fix typo.
14542 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
14544         PR c/3711
14545         * builtins.c (std_expand_builtin_va_arg): Do all computations on
14546         trees.
14548 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14550         * rtl.c (copy_most_rtx): Move from here ...
14551         * emit-rtl.c (copy_most_rtx): ... to here.
14553 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
14555         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
14556         SUBTARGET_CPP_SIZE_SPEC.
14557         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
14559         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
14561 2002-03-07  Matt Hiller  <hiller@redhat.com>
14563         * gensupport.c (first_dir_md_include): Renamed from include;
14564         change all references.
14565         (last_dir_md_include): Renamed from last_include; change all
14566         references.
14567         (init_md_reader): Unconditionally initialize base_dir whether or
14568         not filename is a relative path.
14570 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
14572         * config/fp-bit.c (_unord_f2): Compile it in even if
14573         US_SOFTWARE_GOFAST is enabled.
14575         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
14576         NULL_RTX.  Set all HFmode operations as NULL_RTX.
14577         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
14578         NULL_RTX, try reversing the comparison and the operands.
14580 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
14582         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
14583         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
14584         and MATCH_OP_DUP.
14586 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
14588         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
14590 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
14592         * basic-block.h (fixup_abnormal_edges): Declare.
14593         * reload1.c (fixup_abnormal_edges): New function.
14594         * reg-stack.c (convert_regs): Use it.
14596         * gcse.c (insert_insn_end_bb): Handle trapping insns.
14598         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
14600 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
14602         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
14603         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
14604         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
14605         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
14606         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
14607         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
14608         unless x and y could be infinite.
14609         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
14610         Check that the common type of both arguments is a real, even for
14611         targets without unordered comparisons.  Allow an integer argument
14612         to be compared against a real.
14613         (expand_tree_builtin): Use expand_unordered_cmp.
14614         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
14615         * cse.c (fold_rtx): Likewise.  Fix indentation.
14616         * fold-const.c (fold_real_zero_addition_p): New.
14617         (fold): Use it, and the new HONOR_... macros.
14618         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
14619         * jump.c (reversed_comparison_code_parts): After searching for
14620         the true comparison mode, use HONOR_NANS to decide whether it
14621         can be safely reversed.
14622         (reverse_condition_maybe_unordered): Remove IEEE check.
14623         * simplify-rtx.c (simplify_binary_operation): Use the new macros
14624         to decide which simplifications are valid.  Allow the following
14625         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
14626         and (a - -b) to (a + b).
14627         (simplify_relational_operation): Use HONOR_NANS.
14628         * doc/tm.texi: Document the MODE_HAS_... macros.
14630 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
14632         * combine.c (simplify_comparison): If simplifying a logical shift
14633         right and compare with constant, force the comparison to unsigned.
14635 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
14637         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
14639         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
14640         -mabi=no-altivec
14641         (alt_reg_names): Remove % for vrsave.
14643 2002-03-06  Richard Henderson  <rth@redhat.com>
14645         PR optimization/5844
14646         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
14647         if used indicates we've already emitted one copy of an operand.
14648         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
14649         (gen_split): Supply a non-null used.
14651 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
14653         * reload1.c (reload): Unshare all rtl after reload is done.
14655         * simplify-rtx.c (simplify_plus_minus): Do not abort,
14656         but simply fail if the expression is too complex to simplify.
14657         (simplify_gen_binary): Handle simplify_plus_minus failures.
14659 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
14661         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
14662         consistently call delete_trivially_dead_insns after CSE and GCSE;
14663         fix DFI_life dumping; do jump threading after liveness; do crossjumping
14664         after liveness2; update comment in last crossjumping.
14665         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
14667 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
14669         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
14670         after completing fast dead code elimination.
14672         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
14673         COMPARE operator.
14675 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
14677         * version.c:  Fix misplaced leading blanks on first line.
14679 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
14681         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
14683 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
14685         * cfgcleanup.c (mentions_nonequal_regs): New function.
14686         (thread_jump): Use it.
14687         * toplev.c (rest_of_compilation): Run jump threading after
14688         liveness.
14690 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
14692         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
14693         patch.
14695 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
14697         * predict.c (estimate_bb_frequencies): Do not reload the
14698         frequencies from notes.
14700 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
14702         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
14703         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
14705         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
14706         delete_noop_moves): Return indeger.
14707         * flow.c (ndead): New variable.
14708         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
14709         BB argument; update callers.
14710         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
14711         (life_analysis): Do not call purge_all_dead_edges.
14712         (update_life_info): Return number of deleted insns; print statistics.
14713         (update_life_info_in_dirty_blocks): likewise.
14714         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
14715         return number of insns deleted.
14717         * cse.c: Include timevar.h
14718         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
14719         iterate until stabilizes; print statistics; return number of killed
14720         insns.
14721         * Makefile.in: (cse.o): Add timevar.h dependency
14722         * rtl.h (delete_trivially_dead_insns): New.
14723         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
14724         * toplev.c (rest_of_compilation): Update callers.
14726         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
14727         (try_optimize_cfg): Do not update liveness.
14728         (cleanup-cfg): Loop until try_optimize_cfg and dead code
14729         removal stabilizes; use delete_trivially_dead_insns.
14731         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
14733 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
14735         * cppmain.c (setup_callbacks): Disable #pragma and #ident
14736         callbacks when processing assembly language.
14738 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14740         * pa.h (ASM_FILE_END): Define.
14741         * som.h (ASM_FILE_END): Delete.
14743         * pa.c (function_arg): Don't pass floats in general registers in
14744         indirect calls if TARGET_ELF32.
14746 2002-03-05  Richard Henderson  <rth@redhat.com>
14748         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
14750 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
14752         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
14754 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
14756         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
14757         -r command line.  Don't hide any symbols if not building
14758         shared libgcc.
14760 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
14762         * cfg.c (dump_flow_info): Warn about profile mismatches.
14763         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
14764         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
14766 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
14768         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
14769         wide volatile memory by parts.
14771 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
14773         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
14774         is NULL.
14776 2002-03-05  Richard Henderson  <rth@redhat.com>
14778         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
14780 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
14782         * toplev.c (documented_lang_options): Document more
14783         language-specific options.
14784         * doc/invoke.texi (Warning Options): Correct documentation for
14785         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
14786         * c-decl.c (c_decode_option): Use a table to handle warning options.
14788 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
14790         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
14791         parameter to mmix_encode_section_info.
14792         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
14793         relocatably.  Always produce ELF, not mmo if linking relocatably.
14794         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
14795         first is non-zero, don't add symbol prefix.
14796         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
14797         prototype accordingly.
14799 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
14801         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
14803 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
14805         * configure.in: Increase required makeinfo version to 4.1.
14806         * configure: Regenerate.
14808 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
14810         * .cvsignore: Remove *.info* and genrtl*; these files are generated
14811         elsewhere now.
14813 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
14815         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
14816         * doc/invoke.texi: Fix @math uses.
14818 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
14820         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
14821         removal
14823 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
14825         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
14826         (powerpc-*-eabisimaltivec*): Same.
14828         * config/rs6000/t-ppcendian: New.
14830 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14832         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
14833         nonimmediate_src_operand and nonimmediate_lsrc_operand to
14834         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
14836 2002-03-03  Richard Henderson  <rth@redhat.com>
14838         * toplev.c (rest_of_decl_compilation): Revert last two changes.
14840 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
14842         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
14843         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
14844         tree.c, config/m68k/m68k.c:
14845         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
14846         REAL_ARITHMETIC blocks unconditional.  Delete some further
14847         #ifdef blocks predicated on REAL_ARITHMETIC.
14848         * flags.h, toplev.c: Delete remaining references to
14849         flag_pretend_float.
14851         * doc/invoke.texi: Remove documentation of -fpretend-float.
14852         * doc/tm.texi: Describe the various REAL_* macros as provided by
14853         real.h, not by the target configuration files.
14855         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
14856         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
14857         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14858         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
14859         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
14860         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
14861         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
14862         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
14863         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
14864         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
14865         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
14866         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14867         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
14868         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
14869         config/xtensa/xtensa.h:
14870         Do not define, undefine, or mention in comments any of
14871         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
14872         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
14873         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
14874         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
14875         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
14876         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
14877         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
14878         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
14879         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
14881 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14883         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
14884         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
14885         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
14886         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
14887         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
14888         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
14889         Delete.
14890         * defaults.h (BITS_PER_WORD): Define.
14891         * doc/tm.texi (BITS_PER_WORD): Document default value.
14893         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
14894         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
14895         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
14897 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14899         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
14900         lieu of explicit sizeof/sizeof.
14901         * i386.c (override_options, ix86_init_mmx_sse_builtins,
14902         ix86_expand_builtin): Likewise.
14903         * mips.c (mips_add_gc_roots): Likewise.
14904         * mmix.c (mmix_output_condition): Likewise.
14905         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
14906         altivec_init_builtins): Likewise.
14907         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
14908         * cppexp.c (Nsuff, parse_number): Likewise.
14909         * cppinit.c (builtin_array_end): Likewise.
14910         * gcc.c (n_default_compilers, process_command): Likewise.
14911         * genpreds.c (output_predicate_decls): Likewise.
14912         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
14913         * lcm.c (N_ENTITIES): Likewise.
14914         * stor-layout.c (set_sizetype): Likewise.
14916 2002-03-03  Richard Henderson  <rth@redhat.com>
14918         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
14919         for types or labels.
14921 2002-03-03  Richard Henderson  <rth@redhat.com>
14923         * c-decl.c (start_decl): Initialized variables are not common.
14925 2002-03-02  Per Bothner  <per@bothner.com>
14927         * gcc.c (option_map):  Suport new --bootclasspath option.
14928         --CLASSPATH is now just an alias for --classpath.
14930 2002-03-02  Richard Henderson  <rth@redhat.com>
14932         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
14933         load if "internal" visibility.
14934         * doc/extend.texi: Document visibility meanings.
14936 2002-03-02  Richard Henderson  <rth@redhat.com>
14938         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
14939         to functions as well.
14941 2002-03-02  Richard Henderson  <rth@redhat.com>
14943         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
14944         (handle_visibility_attribute): Don't call assemble_visibility.
14945         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
14946         without asmspec.  Invoke assemble_alias when needed.
14947         * varasm.c (maybe_assemble_visibility): New.
14948         (assemble_start_function, assemble_variable, assemble_alias): Use it.
14950 2002-03-02  Richard Henderson  <rth@redhat.com>
14952         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
14953         invoke ENCODE_SECTION_INFO with first call flag.
14955         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
14956         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
14957         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
14958         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
14959         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
14960         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
14961         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
14962         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
14963         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
14964         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
14965         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
14966         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
14967         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
14968         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
14969         config/mcore/mcore-protos.h, config/mcore/mcore.c,
14970         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
14971         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
14972         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
14973         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
14974         config/sh/sh.h, config/sparc/sparc.h,
14975         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
14976         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
14977         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
14978         FIRST argument.  As needed, examine it and do nothing.
14980         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
14981         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14982         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
14984         * config/arm/t-pe (pe.o): Add dependencies.
14986 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14988         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
14989         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
14990         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
14991         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
14992         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
14993         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
14994         * defaults.h (BITS_PER_UNIT): Define.
14995         * doc/tm.texi (BITS_PER_UNIT): Document default value.
14997 2002-03-02  Kazu Hirata  <kazu@hxi.com>
14999         * config/h8300/h8300-protos.h: Add a prototype for
15000         compute_a_shift_length.
15001         * config/h8300/h8300.c (h8300_asm_insn_count): New.
15002         (compute_a_shift_length): Likewise.
15003         (h8300_adjust_insn_length): Do not adjust insn length of shift
15004         insns.
15005         * config/h8300/h8300.md (anonymous shift patterns): Use
15006         compute_a_shift_length.
15008 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15010         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
15011         trunc_int_for_mode.
15013         * emit-rtl.c (offset_address): Call update_temp_slot_address.
15015 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15017         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
15018         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
15019         * flags.h (flag_zero_initialized_in_bss): Declare.
15020         * toplev.c (flag_zero_initialized_in_bss): New flag.
15021         (lang_independent_options): Add flag_zero_initialized_in_bss.
15022         * tree.c (initializer_zerop): New function.
15023         * tree.h (initializer_zerop): Declare.
15024         * varasm.c (assemble_variable): If we can emit bss, put zero
15025         initializers in the bss section.
15027 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
15029         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
15030         like more than one symbol per .weak directive.
15032 2002-03-01  Richard Henderson  <rth@redhat.com>
15034         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
15035         adjust argument_pointer by pretend_args_size.
15036         (ia64_va_start): Adjust va_start address by -pretend_args_size.
15038 2002-03-01  Kazu Hirata  <kazu@hxi.com>
15040         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
15042 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
15044         * toplev.c (rest_of_compilation): Delete dead jumptables before
15045         loop.
15046         * flow.c (delete_dead_jumptables): Make global.
15047         * rtl.h (delete_dead_jumptables): Declare.
15049 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
15051         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
15052         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
15053         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
15055 2002-03-01  Kazu Hirata  <kazu@hxi.com>
15057         * config/h8300/h8300-protos.h: Fix formatting.
15058         * config/h8300/h8300.c: Likewise.
15059         * config/h8300/h8300.h: Likewise.
15061 2002-03-01  Kazu Hirata  <kazu@hxi.com>
15063         * config/h8300/h8300.c (print_operand): Support 16-bit
15064         constant addresses.
15065         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
15067 2002-02-28  Richard Henderson  <rth@redhat.com>
15069         * expmed.c (store_bit_field): Prevent generation of CONCATs;
15070         pun complex values as integers; use gen_lowpart instead of
15071         gen_rtx_SUBREG.
15072         (extract_bit_field): Likewise.
15074 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
15075             David Edelsohn  <edelsohn@gnu.org>
15077         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
15078         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
15079         (SUPPORTS_WEAK): Likewise.
15080         * output.h (add_weak): Add tree param.
15081         * varasm.c (add_weak): Likewise.  Save decl.
15082         (struct weak_syms): Add decl field.
15083         (mark_weak_decls): New function.
15084         (init_varasm_once): ggc_add_root mark_weak_decls.
15085         (assemble_start_function): Use ASM_WEAKEN_DECL.
15086         (assemble_variable): Likewise.
15087         (assemble_alias): Likewise.
15088         (declare_weak): Pass decl to add_weak.
15089         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
15090         (remove_from_pending_weak_list): Declare and define for
15091         ASM_WEAKEN_DECL.
15092         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
15093         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
15094         * defaults.h (SUPPORTS_WEAK): Likewise.
15095         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15096         .weak for code sym.  Do emit .size for descriptor sym.
15097         (ASM_DECLARE_FUNCTION_SIZE): Define.
15098         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
15099         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
15100         .lglobl unless TARGET_XCOFF.  Formatting fixes.
15101         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15102         .weak for code sym.
15103         (HANDLE_PRAGMA_WEAK): Remove.
15104         (ASM_WEAKEN_LABEL): Remove.
15105         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
15107 2002-03-01  Jason Merrill  <jason@redhat.com>
15109         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
15110         (TARGET_EXPR_CLEANUP): New macro.
15112 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
15114         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
15115         to take ptr_extend into account as third type of extension.
15116         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
15117         fields used by SUBREG_PROMOTED_UNSIGNED_P.
15118         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
15119         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
15120         * calls.c (precompute_arguments): Use new macro.
15121         (expand_call): Ditto.
15122         * combine.c (nonzero_bits): Ditto.
15123         (record_promoted_value): Ditto.
15124         * expr.c (store_expr): Ditto.
15125         (expand_expr): Ditto.
15126         * function.c (assign_parms): Ditto.
15128 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
15130         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
15131         override -shared and -shared-libgcc.
15133 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
15135         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
15136         of "ultrasparc".
15137         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
15138         to be broken.
15140 2002-02-28  Richard Henderson  <rth@redhat.com>
15142         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
15143         4 cycle latency from MM producers.
15144         (ia64_internal_sched_reorder): Likewise with pipeline flush.
15146 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
15148         * mklibgcc.in: Don't use GNU make extension.
15150 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
15152         * c-parse.in (STATIC): New terminal.
15153         (scspec): New non-terminal.  Update productions accordingly.
15154         (program): Remove bogus ifc / end ifc.
15155         (array_declarator): Simplify production using STATIC.
15157 2002-02-28  Jim Meyering  <meyering@lucent.com>
15159         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
15160         \a still means TARGET_BELL.
15162 2002-02-28  Richard Henderson  <rth@redhat.com>
15164         * haifa-sched.c (sched_emit_insn): New.
15165         (schedule_block): Use last_scheduled_insn to track last insn.
15166         * sched-int.h (sched_emit_insn): Prototype.
15167         * config/ia64/ia64.c (last_issued): Remove.
15168         (ia64_variable_issue): Don't set it.
15169         (nop_cycles_until): Use sched_emit_insn.
15171 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
15173         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
15174         extended constants.
15176 2002-02-28  Kazu Hirata  <kazu@hxi.com>
15178         * config/h8300/h8300.c: Fix formatting.
15179         * config/h8300/h8300.h: Likewise.
15181 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
15183         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
15184         which may overwrite the high byte of the frame pointer.
15186 2002-02-28  Bo Thorsen  <bo@suse.de>
15188         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
15189         (STARTFILE_SPEC): Add 64 bit files.
15190         (ENDFILE_SPEC): Likewise.
15192 2002-02-28  Jason Merrill  <jason@redhat.com>
15194         * c-decl.c (finish_function): Only warn about missing return
15195         statement with -Wreturn-type.
15197 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
15199         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
15201         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
15202         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
15204 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
15206         * basic-block.h (BB_REACHABLE): Renumber.
15207         (BB_DIRTY, BB_NEW): New flags.
15208         (clear_bb_flags): Declare.
15209         (update_life_info_in_dirty_blocks): Declare.
15210         * cfg.c (clear_bb_flags): New function.
15211         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
15212         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
15213         reorder_insns, emit_insn_after): Mark block as dirty.
15214         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
15215         (update_life_info_in_dirty_blocks): New function.
15216         * recog.c (apply_change_group): Dirtify block.
15218         * cse.c (cse_insn): Reorder emitting of jump insn to keep
15219         cfg consistent.
15220         * gcse.c (delete_null_pointer_checks): Likewise.
15222         * toplev.c (dump_file_index): Move cse2 after bp,
15223         add DFI_null
15224         (dump_file_info): Similary.
15225         (rest_of_compilation): Avoid most of CFG rebuilds;
15226         do first if converision after null pointer checks, do cse2
15227         after branch prediction; avoid full liveness rebuild after
15228         initializing subregs.
15229         * invoke.texi (-d options): Document -du, renumber.
15231         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
15232         (notice_new_block): Do not set BB_UPDATE_LIFE.
15233         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
15234          merge_blocks_move_successor_nojumps, merge_blocks,
15235          try_crossjump_to_edge): Likewise.
15236         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
15237         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
15238         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
15239         (merge_of_block): Do not use life_data_ok.
15240         (find_if_case_1): Do not use SET_UPDATE_LIFE.
15241         (if_convert): Use BB_DIRTY mechanizm to update life.
15242         * lcm.c (optimize_mode_switching): Update
15243         update_life_info_in_dirty_blocks
15245 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
15247         * Makefile.in (integrate.o): Update.
15248         * c-decl.c (copy_lang_decl): Rename.
15249         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15250         * integrate.c: Include langhooks.h.
15251         (copy_decl_for_inlining): Update to use langhook.
15252         * langhooks-def.h (lhd_do_nothing_t,
15253         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
15254         (LANG_HOOKS_INITIALIZER): Update.
15255         * langhooks.c (lhd_do_nothing_t): New.
15256         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
15257         * tree.h (copy_lang_decl): Remove.
15258 objc:
15259         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15261 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
15263         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
15264         POST_DEC, and POST_MODIFY.
15266 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15268         * c-typeck.c (digest_init): Remove unused parameter; all
15269         callers changed.
15271 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
15273         * expmed.c (expand_shift): Correctly test for low part of a
15274         subreg.
15276 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
15278         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
15279         insn UIDs with insn addresses.
15281 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15283         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
15284         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
15285         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
15286         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
15287         gcc.c, toplev.c: Delete code implementing -traditional mode.
15289         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
15290         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
15291         Document removal of -traditional mode for compilation, and
15292         remove documentation only relevant to that mode.
15294         * config/nextstep.h, config/ptx4.h, config/svr4.h,
15295         config/convex/convex.h, config/d30v/d30v.h,
15296         config/i386/dgux.h, config/i386/osf1elf.h,
15297         config/i386/osfelf.h, config/i386/osfrose.h,
15298         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
15299         config/m68k/hp310.h, config/m88k/dgux.h,
15300         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
15301         config/m88k/m88k.h, config/m88k/openbsd.h,
15302         config/mips/abi64.h, config/mips/osfrose.h,
15303         config/mips/svr4-5.h, config/mips/svr4-t.h,
15304         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
15305         config/stormy16/stormy16.h: Remove all references to
15306         -traditional from target specs.  Delete all mention of the
15307         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
15308         delete a couple of commented-out definitions of
15309         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
15310         to -traditional.
15312         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
15313         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
15315 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15317         * mklibgcc.in: Don't use \n in a line subject to
15318         interpretation by echo.
15320 2002-02-27  Graham Stott  <grahams@redhat.com>
15322         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
15323         Constify NAME.
15325         * loop.c (prescan_loop): Handle PARALLEL.
15327         * unroll.c (loop_iterations): Return 0 if the add_val for
15328         a BIV is REG.
15330         * final.c (output_operand_lossage): Constify PFX_STR.
15332         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
15334 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15336         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
15337         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
15339 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
15341         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
15343 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
15345         * cpplex.c (_cpp_lex_token): Handle directives in macro
15346         arguments.
15347         * cpplib.c (_cpp_handle_directive): Save and restore state
15348         if parsing macro args when entering a directive.
15349         * cppmacro.c (collect_args): No need to handle directives
15350         in macro arguments.
15351         (enter_macro_context, replace_args): Use the original macro
15352         definition in case it was redefined whilst collecting arguments.
15353 doc:
15354         * cpp.texi: Update.
15356 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
15358         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
15359         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
15360         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
15361         method on AIX.
15362         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
15363         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
15364         (load_toc_v4_PIC_2): Same.
15366 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
15368         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
15370 2002-02-26  Richard Henderson  <rth@redhat.com>
15372         * config/alpha/alpha.md (ashldi_se): Re-enable.
15374 2002-02-26  Richard Henderson  <rth@redhat.com>
15376         * config/alpha/alpha.c (alpha_encode_section_info): Examine
15377         MODULE_LOCAL_P; improve commentary.
15379 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
15381         * doc/cpp.texi: Clarify documentation of relationship between
15382         #line and #include.
15384 2002-02-26  Kazu Hirata  <kazu@hxi.com>
15386         * config/h8300/h8300-protos.h: Update the prototype for
15387         compute_logical_op_length.  Add the prototype for
15388         compute_logical_op_cc.
15389         * config/h8300/h8300.c (compute_logical_op_length): Figure out
15390         code from operands.
15391         (compute_logical_op_cc): New.
15392         * config/h8300/h8300.md: Combine all the logical op patterns
15393         in HImode and SImode.  Use compute_logical_op_cc.
15395 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
15397         * config/i386/i386.c (print_operand): Don't append ATT-style
15398         length suffixs to x87 opcodes when in Intel mode.
15400 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
15402         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
15403         (init_emit_once): Update calls.
15404         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
15405         (init_syntax_once): Prototype.
15407 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15409         * pa-linux.h (LIB_SPEC): Update definition.
15410         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15412 2002-02-26  Richard Henderson  <rth@redhat.com>
15414         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
15415         if we emitted a stop bit.
15417 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15419         * configure.in (libgcc_visibility): Substitute.
15420         * configure: Rebuilt.
15421         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
15422         defined symbols .hidden.
15424 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15426         * attribs.c (c_common_attribute_table): Add visibility.
15427         (handle_visibility_attribute): New function.
15428         * varasm.c (assemble_visibility): New function.
15429         * output.h (assemble_visibility): Add prototype.
15430         * tree.h (MODULE_LOCAL_P): Define.
15431         * crtstuff.c (__dso_handle): Use visibility attribute.
15432         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
15433         for MODULE_LOCAL_P symbols too.
15434         * config/ia64/ia64.c (ia64_encode_section_info): Handle
15435         MODULE_LOCAL_P symbols the same way as local symbols.
15436         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
15437         into .sdata/.sbss by the user.
15438         * doc/extend.texi (Function Attributes): Document visibility
15439         attribute.
15441 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15443         PR debug/5770
15444         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
15445         STRING_CST initializer spanning the whole variable without
15446         embedded zeros.
15447         If expand_expr returned MEM, don't use it.
15449 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
15451         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
15452         generate a die for the lexical block.
15454 2002-02-26  Kazu Hirata  <kazu@hxi.com>
15456         * config/h8300/h8300-protos.h: Add a prototype for
15457         compute_logical_op_length.
15458         * config/h8300/h8300.c (compute_logical_op_length): New.
15459         * config/h8300/h8300.md (anonymous logical patterns): Use
15460         compute_logical_op_length for length.
15462 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15464         * dwarf2out.c (modified_type_die): Do not call type_main_variant
15465         for vectors.
15466         (gen_type_die): Same.
15468         * attribs.c (handle_vector_size_attribute): Set debug information.
15470 2002-02-26  Daniel Egger  <degger@fhm.edu>
15472         * config/rs6000/rs6000.md: Swap define_insn attributes to
15473         fix incorrect generation of merge high instructions instead
15474         of merge low.
15476 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15478         * c-typeck.c (really_start_incremental_init): Use
15479         bitsize_zero_node for vectors.
15481 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15483         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
15484         ("*set_vrsave_internal"): Same.
15486 2002-02-25  Richard Henderson  <rth@redhat.com>
15488         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
15489         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
15491 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
15493         PR target/5755
15494         * config/i386/i386.c (ix86_return_pops_args): Only pop
15495         fake structure return argument if it was passed on the stack.
15497 2002-02-25  Jason Merrill  <jason@redhat.com>
15499         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
15500         RESULT_DECL.
15502 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
15504         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
15505         link with shared_name only.
15506         * doc/invoke.texi (Link Options): Document new behavior.
15508 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
15510         * c-typeck.c (push_init_level): Handle vectors.
15512 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
15514         * config/sparc/sparc.c (const64_high_operand): Zero-extend
15515         operands of SPARC_SETHI_P.
15516         (input_operand): Likewise.
15517         (sparc_emit_set_const32): Likewise.
15518         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
15519         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
15520         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
15521         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
15522         (movdi_insn_sp64_vis): Likewise.
15523         (movdi split, movdf split): Use SETHI32.
15524         * doc/md.texi: Document SPARC constraints L, M and N.
15526 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
15528         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
15529         ("*set_vrsave_internal"): use mfspr for Darwin.
15531         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
15532         gen_get_vrsave_internal.
15534 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15536         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
15538 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
15540         * cpplex.c (cpp_interpret_charconst): Get signedness or
15541         otherwise of wide character constants correct.
15542         * cppexp.c (lex): Get signedness of wide charconsts correct.
15544 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15546         * optabs.c (widen_operand): Only call convert_modes for
15547         promoted SUBREG if signedness matches.
15548         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
15550 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15552         * cpplib.c (glue_header_name): Use local buffer to build up
15553         header name.
15555 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15557         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
15559 2002-02-23  Kazu Hirata  <kazu@hxi.com>
15561         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
15562         H8/300[HS] separately.
15563         * config/h8300/h8300.md: Remove the early clobber constraint
15564         from bit field patterns.
15566 2002-02-23  Kazu Hirata  <kazu@hxi.com>
15568         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
15569         register_operand.
15570         (mulhisi3): Likewise.
15571         (umulqisi3): Likewise.
15572         (umulhisi3): Likewise.
15574 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15576         * cppinit.c (output_deps): Correct test for stdout output.
15577         (init_dependency_output): Cure warning.
15579 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15581         * expr.c (store_expr): When converting expression to promoted
15582         equivalent type, allow using SUBREG_REG of TARGET as the target
15583         of the expansion of EXP.
15584         * loop.c (basic_induction_var, case SUBREG): Always look inside.
15585         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
15586         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
15587         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
15588         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
15590 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
15592         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
15593         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
15594         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
15596 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
15598         PR optimization/5747
15599         * loop.c (scan_loop): Update reg info if move_movables created new
15600         pseudos.
15602 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
15604         * gcc.c (init_gcc_spec): Revert last change.
15606 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
15608         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
15609         gpc_reg_operand constraint.
15611 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
15613         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
15614         Simplify comparison of `low'.
15615         (add_operand): Fix formatting.
15616         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
15617         (mask_operand): Disallow mask to wrap in 64-bit mode.
15618         (rs6000_stack_info): Remove redundant test setting push_p.
15619         (output_toc): Fix formatting.
15620         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
15621         cc_reg_not_cr0_operand constraint.
15622         (booldi3, boolcdi3 splitters): Same.
15624 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
15626         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
15628 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
15630         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
15631         gcc invoked with -shared-libgcc.
15633 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
15635         PR c++/5748
15636         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
15637         decl if any of elements was TREE_USED.
15639 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
15641         * config/sparc/sol2.h: Don't include sys/mman.h.
15642         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
15643         (arith_4096_operand): Don't throw high bits away.
15644         (const64_operand): Take sign extension of CONST_INTs into account.
15645         (const64_high_operand, sparc_emit_set_const32): Likewise.
15646         (GEN_HIGHINT64): Likewise.
15647         (sparc_emit_set_const64_quick1): Likewise.
15648         (const64_is_2insns): Likewise.
15649         (print_operand): Use trunc_int_for_mode for sign extension.
15650         * config/sparc/sparc.h (SMALL_INT32): Likewise.
15651         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
15652         chars.  Assume CONST_INT is already properly sign-extended.
15653         (movdi split): Sign-extend each SImode part.
15654         (andsi3 split): Don't mask high bits off, so that result
15655         remains properly sign-extend.
15656         (iorsi3 split): Likewise.
15657         (xorsi3 split): Likewise.
15659 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
15661         * fold-const.c (fold): Fix typo in comments.
15663 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
15665         * Makefile.in (langhooks.o): Update dependencies.
15667 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
15669         * langhooks.c: Include flags.h.
15671 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
15673         * testsuite/gcc.dg/attr-alwaysinline.c: New.
15675         * c-common.c (c_common_post_options): Set inline trees by
15676         default.
15678         * doc/extend.texi (Function Attributes): Document always_inline
15679         attribute.
15680         Update documentation about inlining when not optimizing.
15682         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
15684         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
15685         unless DECL_ALWAYS_INLINE.
15687         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
15688         unless DECL_ALWAYS_INLINE.
15689         (c_disregard_inline_limits): Disregard if always_inline set.
15691         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
15692         Disregard if always_inline set.
15693         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
15694         unless DECL_ALWAYS_INLINE.
15696         * attribs.c (handle_always_inline_attribute): New.
15697         (c_common_attribute_table): Add always_inline.
15699         * config/rs6000/altivec.h: Add prototypes for builtins
15700         requiring the always_inline attribute.
15702 2002-02-21  Eric Christopher  <echristo@redhat.com>
15704         * expmed.c (store_bit_field): Try to simplify the subreg
15705         before generating a new one when when the mode size of
15706         value is less than maxmode.
15708 2002-02-21  Richard Henderson  <rth@redhat.com>
15710         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
15711         than gen_rtx_PLUS to form the sum.
15712         * explow.c (force_reg): Rearrange to not allocate new pseudo
15713         when force_operand returns a register.
15714         * expr.c (expand_assignment): Allow offset_rtx expansion to
15715         return a sum.  Do not force addresses into registers.
15716         (expand_expr): Likewise.
15717         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
15718         to canonicalize arithmetic that didn't simpify.
15719         (simplify_plus_minus): New argument force; update
15720         all callers.  Don't split CONST unless we can do something with it,
15721         and wouldn't lose the constness of the operands.
15723         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
15724         that we generated earlier.
15726 2002-02-21  Tom Tromey  <tromey@redhat.com>
15728         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15729         (output_line_info): Use constant `1', with a long explanatory
15730         comment.
15731         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
15733 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
15735         * jump.c (redirect_jump): If old label has no UID, don't try to
15736         delete it.
15738 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
15740         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
15741         If input is constant, do shifts at compile time.
15743 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
15745         * doc/extend.texi: Fix some more overfull hboxes.
15747 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
15749         PR optimization/4994
15750         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
15751         register moves.
15753 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
15755         PR c++/4574
15756         * expr.h (expand_and): Add mode argument.
15757         * expmed.c (expand_and): Add mode argument.
15758         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
15759         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
15760         * except.c (expand_builtin_extract_return_addr): Likewise.
15761         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
15762         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
15763         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
15764         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
15765         * config/c4x/c4x.md: Use GEN_INT (x) instead of
15766         gen_rtx (CONST_INT, VOIDmode, x).
15768 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
15770         PR c/4697:
15771         * stmt.c (warn_if_unused_value): Move side effects test once more.
15773 2002-02-20  Torbjorn Granlund  <tege@swox.com>
15775         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
15776         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
15778 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
15780         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
15781         SUBREG or ZERO_EXTEND.
15783 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
15785         * sh.h (current_function_anonymous_args): Remove.
15786         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
15787         of current_function_varargs and current_function_stdarg is set.
15788         * sh.c (sh_expand_prologue): Check current_function_varargs /
15789         current_function_stdarg / TARGET_SH5 instead of
15790         current_function_anonymous_args.
15792         * sh64.h (TARGET_VERSION): Define.
15794 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
15796         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
15797         VRSAVE_REGNO on TARGET_ALTIVEC.
15799 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
15801         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
15802         bits of SImode const_int.
15803         (includes_rshift_p): Likewise.
15804         (print_operand): Call mask_operand and mask64_operand with correct
15805         mode.
15806         (rs6000_output_function_epilogue): Pad traceback table to word.
15807         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
15808         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
15809         mask64_operand with correct mode.
15810         (FUNCTION_ARG_REGNO_P): Correct parentheses.
15812 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
15814         PR debug/4461
15815         * varasm.c (get_pool_constant_mark): New.
15816         * rtl.h (get_pool_constant_mark): Add prototype.
15817         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
15818         be represented if it has not been output.
15820 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
15822         * combine.c (do_SUBST): Sanity check substitutions of
15823         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
15824         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
15825         CONST_INT into its operand.
15826         (known_cond): Likewise, for ZERO_EXTEND.
15827         * simplify-rtx.c (simplify_unary_operation): Fix condition to
15828         allow for simplification of wide modes.  Reject CONST_INTs in
15829         ZERO_EXTEND when their actual mode is not given.
15831 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
15833         * c-decl.c (pushdecl): If no global declaration is found for an
15834         extern declaration in block scope, try a limbo one.
15836 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
15838         PR c++/4401
15839         * c-common.c (pointer_int_sum): Moved from...
15840         * c-typeck.c (pointer_int_sum): ...here.
15841         * c-common.h (pointer_int_sum): Add prototype.
15843 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
15845         PR c++/5713
15846         * c-decl.c (duplicate_decls): Return 0 if issued error about
15847         redeclaration.
15849 2002-02-20  Roger Sayle  <roger@eyesopen.com>
15850             Jakub Jelinek  <jakub@redhat.com>
15852         PR c/4389
15853         * tree.c (host_integerp): Ensure that the constant integer is
15854         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
15855         when pos is zero or non-zero respectively.  Clarify comment.
15856         * c-format.c (check_format_info_recurse): Fix host_integerp
15857         usage; the pos argument should be zero when assigning to a
15858         signed HOST_WIDE_INT.
15860 2002-02-20  Richard Henderson  <rth@redhat.com>
15862         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
15863         of the operand, rather than assuming TImode.
15864         (ix86_expand_binop_builtin): Cope with commutative patterns
15865         using nonimmediate_operand for both operands.
15866         (ix86_expand_timode_binop_builtin): Likewise.
15867         (ix86_expand_store_builtin): Validate operand 1.
15868         (ix86_expand_unop1_builtin): Likewise.
15870 2002-02-20  Philip Blundell  <philb@gnu.org>
15872         PR 5705
15873         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
15875 2002-02-20  Richard Henderson  <rth@redhat.com>
15877         PR c/5615
15878         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
15880 2002-02-20  Tom Tromey  <tromey@redhat.com>
15882         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15883         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15884         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15885         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15886         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
15887         unconditionally.
15889 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
15891         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
15892           for (const_int 0) in X not just INTVAL.
15894 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
15896         * doc/extend.texi: Avoid or reduce overfull hboxes.
15898 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
15900         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
15901         operations if the field does not start at a mode boundary.
15903 2001-02-20      Joel Sherrill <joel@OARcorp.com>
15905         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
15906         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
15907         Also done for -Acpu and -Amachine.
15909 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
15911         * cppinit.c (init_dependency_output): Take deps output file
15912         from -o if none given with -MF.  Suppress normal output.
15913         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
15914         * doc/cpp.texi, doc/invoke.texi: Update.
15916 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
15918         * toplev.c (output_quoted_string): Write unprintable
15919         characters with octal escapes.
15921 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
15923         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
15924         really_call_used[VRSAVE_REGNO] if not Altivec.
15926 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
15928         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
15929         MODE_MASK.
15930         (constant_pool_expr_1): Fix formatting.
15931         (rs6000_legitimize_reload_address): Likewise.
15933 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15935         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
15936         now that we have one.
15938 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
15940         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
15941         end of first block of bitfields (which was only seven bits);
15942         rename dummy to unused_1; remove comment which is no longer true.
15944 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
15946         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
15948 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
15950         PR 5399
15951         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
15952         if generating PIC.
15954         PR 5054
15955         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
15956         arm_is_longcall_p rather than inspecting call-type cookie
15957         directly.
15958         (call_value_insn) [TARGET_THUMB]: Likewise.
15960 2002-02-19  Graham Stott  <grahams@redhat.com>
15962         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
15964 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
15966         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
15967         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
15968         (FP_SAVE_INLINE): Delete.
15970         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
15971         * config/rs6000/eabi.asm: Remove ABI save restore routines.
15972         * config/rs6000/t-ppccomm: Build crtsavres.o.
15973         * config/rs6000/crtsavres.asm: New file.
15975 2002-02-19  Philip Blundell  <philb@gnu.org>
15977         * config/arm/arm.c (use_return_insn): Don't reject interrupt
15978         functions.
15979         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
15980         (output_return_instruction): Allow interrupt functions to return with
15981         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
15982         (arm_expand_prologue): Subtract 4 before stacking LR in an
15983         interrupt function.
15985 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
15987         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
15988         decl, not just FUNCTION_DECL.
15989         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
15990         (arm_assemble_integer): Likewise.
15991         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
15992         marked local.
15994 2002-02-19  matthew green  <mrg@eterna.com.au>
15996         * config.gcc (sparc-*-netbsdelf*): Enable target.
15997         (sparc64-*-netbsd*): New target.
15998         * config/sparc/netbsd-elf.h: New file.
15999         * config/sparc/t-netbsd64: New file.
16001 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
16003         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
16005 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
16007         * doc/invoke.texi: explicitly list the style guidelines that
16008         -Weffc++ checks for.
16010 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
16012         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
16014 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
16016         PR other/5718
16017         * gcc.c (cpp_unique_options): Treat -o as indicating object file
16018         only if not -E.  If -E, pass -o through to the preprocessor.
16020 2002-02-19  Kazu Hirata  <kazu@hxi.com>
16022         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
16023         register number with an appropriate macro.
16025 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16027         * doc/rtl.texi (Constants): Close @code tag.
16029 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
16031         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
16032         ("mmx_uavgv4hi3"): Same.
16033         ("pmulhrwv4hi3"): Same.
16035         * tree-inline.c (walk_tree): Handle vectors.
16037         * c-common.c (constant_expression_warning): Handle vectors.
16038         (overflow_warning): Same.
16040         * sched-deps.c (sched_analyze_2): Handle vectors.
16042         * rtlanal.c (rtx_unstable_p): Handle vectors.
16043         (rtx_varies_p): Same.
16044         (count_occurrences): Same.
16045         (regs_set_between_p): Same.
16046         (modified_between_p): Same.
16047         (modified_in_p): Same.
16048         (volatile_insn_p): Same.
16049         (volatile_refs_p): Same.
16050         (side_effects_p): Same.
16051         (may_trap_p): Same.
16052         (inequality_comparisons_p): Same.
16053         (replace_regs): Same.
16054         (computed_jump_p_1): Same.
16056         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
16057         argument.
16058         (inner_mode_array): New.
16059         (copy_rtx): Handle vectors.
16060         (copy_most_rtx): Same.
16061         (rtx_equal_p): Same.
16062         (get_mode_alignment): Adjust for vectors.
16064         * resource.c (mark_referenced_resources): Handle vectors.
16065         (mark_set_resources): Same.
16067         * reload1.c (eliminate_regs): Handle vectors.
16068         (elimination_effects): Same.
16069         (scan_paradoxical_subregs): Same.
16071         * reload.c (subst_reg_equivs): Handle vectors.
16073         * regrename.c (scan_rtx): Handle vectors.
16075         * regclass.c (reg_scan_mark_refs): Handle vectors.
16077         * recog.c (find_single_use_1): Handle vectors.
16079         * local-alloc.c (equiv_init_varies_p): Handle vectors.
16080         (contains_replace_regs): Same.
16081         (memref_referenced_p): Same.
16083         * integrate.c (copy_rtx_and_substitute): Handle vectors.
16084         (subst_constants): Same.
16086         * genattrtab.c (attr_copy_rtx): Handle vectors.
16087         (encode_units_mask): Same.
16088         (clear_struct_flag): Same.
16089         (count_sub_rtxs): Same.
16091         * gcse.c (want_to_gcse_p): Handle vectors.
16092         (oprs_unchanged_p): Same.
16093         (hash_expr_1): Same.
16094         (oprs_not_set_p): Same.
16095         (expr_killed_p): Same.
16096         (compute_transp): Same.
16097         (store_ops_ok): Same.
16099         * function.c (purge_addressof_1): Do not allow paradoxical subregs
16100         of vectors.
16101         (fixup_var_refs_1): Same.
16102         (instantiate_virtual_regs_1): Same.
16104         * fold-const.c (operand_equal_p): Handle vectors.
16105         (fold): Same.
16106         (rtl_expr_nonnegative_p): Same.
16108         * flow.c (mark_used_regs): Handle vectors.
16110         * df.c (df_uses_record): Handle vectors.
16112         * cselib.c (cselib_subst_to_values): Handle vectors.
16113         (cselib_mem_conflict_p): Same.
16114         (hash_rtx): Same.
16116         * cse.c (canon_reg): Handle vectors.
16117         (fold_rt): Same.
16118         (cse_process_notes): Same.
16119         (count_reg_usage): Same.
16120         (canon_hash): Same.
16122         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
16124         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
16126         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
16127         (gen_rtx): Handle CONST_VECTOR.
16128         (gen_const_vector_0): New.
16129         (copy_rtx_if_shared): CONST_VECTORs can be shared.
16130         (reset_used_flags): Same.
16131         (copy_insn_1): Same.
16132         (initializer_constant_valid_p): Handle VECTOR_CST.
16134         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
16136         * doc/rtl.texi (Constants): Document const_vector.
16137         (CONST0_RTX): Update for vectors.
16138         (RTL sharing): Same.
16140         * print-tree.c (print_node): Add case for VECTOR_CST.
16142         * tree.h (TREE_VECTOR_CST_ELTS): New.
16143         (struct tree_vector): New.
16144         (union tree_node): Add vector node.
16145         (build_vector): Add prototype.
16147         * tree.def (VECTOR_CST): New.
16149         * tree.c (build_vector): New.
16151         * expmed.c (make_tree): Handle CONST_VECTOR.
16153         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
16154         (CONST_VECTOR_ELT): New.
16155         (CONST_VECTOR_NUNITS): New.
16157         * machmode.h (GET_MODE_INNER): New.
16158         (DEF_MACHMODE): Accept 8th arg.
16160         * machmode.def: Add 8th argument for vector inner mode.
16161         Add inner vector modes for vectors.
16163         * rtl.def (VEC_CONST): Remove.
16164         (CONST_VECTOR): New.
16166         * expr.c (clear_storage): Allow vectors.
16167         (is_zeros_p): Handle VECTOR_CST.
16169         * varasm.c (output_constant_pool): Handle vectors.
16170         (rtx_const): Add veclo and vechi fields.
16171         (kind): Add RTX_VECTOR.
16172         (decode_rtx_const): Add case for vector.
16174         * config/rs6000/rs6000-protos.h: Add zero_constant.
16176         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
16177         constants.  Force easy vector constants into memory.
16178         (easy_vector_constant): New.
16179         (emit_easy_vector_constant): New.
16180         (rs6000_legitimize_reload_address): Do not generate bad reloads on
16181         darwin.
16183         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
16184         instruction does.
16185         ("altivec_lvxl"): Same.
16186         (altivec_lvebx): Same.
16187         (altivec_lvehx): Same.
16188         (altivec_lvewx): Same.
16189         ("*movv4si_const0"): New.
16190         ("*movv4sf_const0"): New.
16191         ("*movv8hi_const0"): New.
16192         ("*movv16qi_const0"): New.
16194 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16196         * config/h8300/h8300.c (notice_update_cc): Use
16197         cc_status.value2.
16199 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16201         * config/h8300/h8300.md (divmod patterns): Change the
16202         constraints for operands[1] to register_operand.
16204 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16206         * config/h8300/h8300-protos.h: Remove the prototype for
16207         p_operand.
16208         * config/h8300/h8300.c (p_operand): Remove.
16209         * config/h8300/h8300.md: Replace p_operand with
16210         const_int_operand.
16212 2002-02-18 Philip Blundell <pb@nexus.co.uk>
16214         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
16215         comment.
16216         (output_return_instruction): Allow use of LDR to unstack
16217         return addresss even for interrupt handlers or when
16218         interworking.  If compiling for ARMv5, use interworking-safe
16219         return instructions by default.  Remove duplicated code and
16220         lengthy "strcat" sequences.
16222 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16224         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
16225         (LINK_EH_SPEC): Define.
16226         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
16228 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
16230         * config/s390/s390.c (s390_emit_prologue): Do not set the
16231         frame_related flag for call-clobbered registers.
16233 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
16235         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
16236         (construct_container): Fix handling of SSE operands.
16237         (ix86_expand_builtin): Fix handling of 64bit pointers.
16238         (mmx_maskmovq_rex): New pattern.
16240 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
16242         * regrename.c (kill_set_value): Handle subregs properly.
16244 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
16246         * objc/objc-act.c (handle_impent): Remove leading '*'
16247         from objc_class_name.
16249 2002-02-17  Richard Henderson  <rth@redhat.com>
16251         * config/alpha/alpha.c (some_small_symbolic_operand,
16252         some_small_symbolic_operand_1, split_small_symbolic_operand,
16253         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
16254         Handle small SYMBOL_REFs anywhere, not just inside memories.
16255         * config/alpha/alpha-protos.h: Update.
16256         * config/alpha/alpha.h (PREDICATE_CODES): Update.
16257         * config/alpha/alpha.md (small symbolic operand splitter): Update.
16259 2002-02-17  Roland McGrath  <roland@frob.com>
16261         * config.gcc (powerpc-*-gnu-gnualtivec*,
16262         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
16263         * config/rs6000/gnu.h: New file.
16264         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
16265         Grok "gnu" in rs6000_abi_name.
16266         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
16267         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
16268         Grok -mcall-gnu analogous to -mcall-linux et al.
16269         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
16270         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
16271         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
16273 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
16275         PR c/3444:
16276         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
16277         shortening.
16279 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16281         * config/cris/cris.h: Undefine STARTFILE_SPEC and
16282         ENDFILE_SPEC before (re)defining them.
16284 2002-02-17  Kazu Hirata  <kazu@hxi.com>
16286         * config/h8300/h8300.c: Fix formatting.
16287         * config/h8300/h8300.h: Likewise.
16289 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16291         * doc/tm.texi: Explain why empty strings should not be
16292         marked for translation.
16294 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16296         * final.c (output_operand_lossage): Changed to accept
16297         printf style arguments. Change calls where necessary.
16298         * output.h (output_operand_lossage): Change declaration
16299         accordingly. Update copyright.
16300         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
16301         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
16302         Update copyright date where necessary.
16304         * config/i386/i386.c (print_operand): Likewise. Remove use of
16305         sprintf.
16307         * config/cris/cris.c (cris_operand_lossage): Likewise.
16308         Rename parameter so that exgettext recognizes it as
16309         translatable message.
16310         (LOSE_AND_RETURN): Rename parameter to msgid.
16312 2002-02-17  Kazu Hirata  <kazu@hxi.com>
16314         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
16315         hard coded register number with an appropriate macro.
16316         (HARD_REGNO_MODE_OK): Likewise.
16317         (ARG_POINTER_REGNUM): Likewise.
16318         (STATIC_CHAIN_REGNUM): Likewise.
16319         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
16320         * config/h8300/h8300.md (define_constants): Define more
16321         register numbers.
16323 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16325         * config/i386/i386.h: Don't mark empty strings for translation.
16327 2002-02-16  H.J. Lu <hjl@gnu.org>
16329         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
16331 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
16333         * cppinit.c (merge_include_chains): Check for brack being
16334         NULL before attempting to merge it with qtail.
16336 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
16338         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
16339         DBX_DEBUG.
16341 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16343         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
16345 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16347         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
16348         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
16349         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
16351 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16353         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
16354         now only if !TARGET_FIX.
16355         (*movsi_nt_vms_fix): New pattern.
16357 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
16359         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
16360         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
16361         (alpha_sa_mask, alpha_sa_size): Reflect above change.
16362         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
16363         (alpha_start_function, alpha_expand_epilogue): Likewise.
16364         (unicosmk_gen_dsib): Likewise.
16366 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16368         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
16370 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
16372         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
16373         check_and_change_labels, s390_final_chunkify): Delete.
16374         (s390_split_branches, s390_chunkify_pool): New functions.
16375         (s390_function_prologue): Call them.
16377         * config/s390/s390.h (S390_REL_MAX): Delete.
16378         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
16380         * config/s390/s390.md (cjump, icjump, jump): Fix length
16381         attribute calculation.
16384 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
16386         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
16387         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
16389 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16391         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
16392         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
16393         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
16395 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
16397         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
16399 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
16401         * reload.c (find_dummy_reload): Check that an output register
16402         is valid for its mode.
16404 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
16406         * combine.c (known_cond): After replacing the REG of a SUBREG, try
16407         to simplify it.
16409         * function.c (assign_parms): Demote promoted argument passed by
16410         transparent reference.
16412 2001-02-14      Joel Sherrill <joel@OARcorp.com>
16414         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
16415         -Acpu() and -Amachine() to eliminate warnings.
16417 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
16419         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
16421 2002-02-14  Kazu Hirata  <kazu@hxi.com>
16423         * config/h8300/h8300-protos.h: Update the prototype for
16424         const_costs.
16425         * config/h8300/h8300.c (const_costs): Treat SET as a little
16426         more expensive operation.
16427         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
16428         reference to const_costs.
16430 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
16432         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
16434 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
16436         PR c/5503:
16437         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
16438         use arguments from newtype.
16440 2002-02-13  Eric Christopher  <echristo@redhat.com>
16442         * config/mips/mips.c (override_options): Add check for march/mipsX
16443         on the same command line. Fix error message in cpu processing.
16444         Remove architecture and ISA checks.
16446 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
16448         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
16450         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
16452 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
16454         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
16455         alternatives.
16456         ("*movv8hi_internal1"): Same.
16457         ("*movv16qi_internal1"): Same.
16458         ("*movv4sf_internal1"): Same.
16460         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
16461         not push_reload for altivec modes.
16463 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
16465         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
16466         all RTEMS targets including removal of #includes from config/*/rtems*.h
16467         file and adding them to tm_file setting. Added xm_defines=POSIX to
16468         many targets.
16469         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
16470         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
16471         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
16472         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
16473         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
16474         config/m68k/rtemself.h: Ditto.
16475         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
16476         config/mips/rtems64.h: Ditto.
16477         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
16478         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
16479         Ditto.
16480         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
16481         config/sparc/rtemself.h: Ditto.
16482         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
16483         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
16484         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
16485         more like arm-elf.
16486         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
16487         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
16488         target made more similar to i386-elf.
16489         * config/i386/t-rtems-i386: Added soft float support and multilibs.
16490         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
16491         be similar to config/m68k/t-m68kelf.
16492         * gthr-rtems.h: Encapsulate with extern "C" for C++.
16494 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
16496         * regmove.c (kill_value): Handle subregs.
16498 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
16500         * i386.md (mul patterns): Allow memory operand to be first;
16501         add expanders where needed; fix constraints.
16502         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
16503         Allow memory operand to be the first.
16505         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
16506         operands.
16508 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
16510         PR c/5681:
16511         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
16512         GET_MODE (x).
16514 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
16516         PR optimization/5547:
16517         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
16518         all valid IA-32 address modes involving non-scaled %ebx and
16519         GOT/GOTOFF as displacement.
16521 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
16523         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
16524         after emitting ltorg insns.
16526         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
16527         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
16528         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
16529         *abssf2): Fix "op_type" attribute.
16531 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
16533         * mkconfig.sh: Avoid using a subshell redirect.
16534         ($output.T): Change to $(output)T.
16535         (ENABLE_NLS): Remove unneeded undef.
16537         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
16538         * config/alpha/x-vms (libsubdir): Define.
16540         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
16541         register frame procedures. Optimize retrieving context.
16543         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
16544         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
16545         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
16547 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16549         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
16550         Make same change as for find_base_value.
16552 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16554         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
16555         of QImode and SImode.
16557 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16559         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
16560         length computation of movsi.
16561         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
16563 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16565         * config/h8300/h8300.md (subqi3): Tighten the predicate for
16566         operands[2] to register_operand.
16568 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
16570         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
16572 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
16574         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
16575         for altivec_lvx* and altivec_stvx*.
16576         ("*movv4si_internal"): Add constraint for loading from GPRs.
16577         ("*movv8hi_internal1"): Same.
16578         ("*movv16qi_internal1"): Same.
16579         ("*movv4sf_internal1"): Same.
16581         * config/rs6000/rs6000.c (altivec_register_operand): New.
16583         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
16584         altivec_register_operand.
16586 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
16588         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
16589         handle SYMBOL_REF.
16591 2002-02-13  Stan Shebs  <shebs@apple.com>
16593         * c-typeck.c (digest_init): Handle vectors.
16594         (really_start_incremental_init): Same.
16595         (pop_init_level): Same.
16596         (process_init_element): Same.
16598         * varasm.c (output_constant): Same.
16600         * expr.c (clear_storage): Same.
16601         (store_constructor): Same.
16603 2002-02-12  Eric Christopher  <echristo@redhat.com>
16605         * explow.c (hard_function_value): Add comment explaining
16606         signed/unsigned comparison.
16608 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
16610         * jump.c (never_reached_warning): Add finish argument.
16611         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
16612         real insn after end.
16613         * rtl.h (never_reached_warning): Adjust prototype.
16614         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
16615         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
16616         never_reached_warning.
16618 2002-02-12  Graham Stott  <grahams@redhat.com>
16620         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
16622 2002-02-12  Kazu Hirata  <kazu@hxi.com>
16624         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
16625         logical shifts on H8/300.
16626         (shift_alg_si): Improve several shifts on H8/300.
16627         (get_shift_alg): Likewise.
16629 2002-02-12  Graham Stott  <grahams@redhat.com>
16631         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
16633 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16635         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
16636         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
16638 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
16640         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
16641         non-CONST_INT through default_assemble_integer.
16642         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
16643         <case 8>: Abort for CONST_DOUBLE.
16645 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16647         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
16648         is specified.
16649         * config/pa/pa-linux.h (LIB_SPEC): Delete.
16650         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
16652 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
16654         * config/stormy16/stormy16.md (zero_extendqihi2): New.
16656 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
16658         * regrename.c (regrename_optimize): Don't accept a
16659         part-clobbered register if the replaced register is not part
16660         clobbered.
16662         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
16663         take padding into account when computing the argument value.
16665         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
16667         * combine.c (try_combine): Apply substitutions in
16668         CALL_INSN_FUNCTION_USAGE too.
16670 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
16672         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
16673         __builtin_altivec_abs*.
16674         (bdesc_abs): New.
16676         * config/rs6000/rs6000.h (rs6000_builtins): Add
16677         ALTIVEC_BUILTIN_ABS*.
16679         * config/rs6000/altivec.h: Use const char for builtins expecting
16680         literals.
16681         (vec_abs): New versions for C and C++.
16682         (vec_abss): Same.
16684 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16686         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
16687         using Pmode.
16689 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16691         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
16692         constant definition from h8300.md.
16693         (FRAME_POINTER_REGNUM): Likewise.
16694         * config/h8300/h8300.md (define_constants): Add FP_REG.
16696 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16698         * config/h8300/h8300.c (print_operand): Remove redundant code.
16700 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16702         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
16703         * config/h8300/h8300.c (byte_reg): Make it static.
16705 2002-02-10  Richard Henderson  <rth@redhat.com>
16707         PR c/5623
16708         * c-typeck.c (incomplete_type_error): Handle flexible array members.
16710 2002-02-10  Richard Henderson  <rth@redhat.com>
16712         PR c++/5624
16713         * tree.c (append_random_chars): Don't abort if main_input_filename
16714         does not exist.
16716 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
16718         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
16720 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16722         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
16723         (pushhi1): Likewise.
16725 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16727         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
16728         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
16730 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
16732         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
16733         remove MASK_VIS.
16734         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
16736 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16738         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
16739         a half of an SImode register on H8/300.
16741 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
16743         * i386.md (movdi_2): Add missing '!'.
16745 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16747         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
16748         definitions.
16750 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16752         * config/h8300/h8300.md (length): Correct the distance valid
16753         for the short branch.
16755 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16757         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
16759 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
16761         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
16762         registers in SImode.
16763         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
16764         part-clobbered.
16766         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
16767         patch.
16769         Contribute sh64-elf.
16770         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
16771         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
16772         (sh_cannot_modify_jumps_p): New function.
16773         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
16774         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
16775         (sh_ms_bitfield_layout_p): New function.
16776         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
16777                     Zack Weinberg  <zack@codesourcery.com>
16778         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
16779         expand_simple_binop instead of expand_binop.
16780         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
16781         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
16782         use of .quad and .uaquad.
16783         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
16784         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
16785         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
16786         * config/sh/sh.md (movdi_const, movdi_const_32bit,
16787         movdi_const_16bit): Make sure all CONSTs have modes.
16788         (sym2PIC): Ditto, but by adjusting all callers.
16789         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
16790         if the prologue calls the SHmedia argument decoder or register
16791         saver.
16792         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
16793         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
16794         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
16795         (sh_expand_epilogue): Don't emit USE of return target register.
16796         (prepare_move_operands): Legitimize DImode PIC addresses.
16797         (sh_media_register_for_return): Skip tr0, used to initialize the
16798         PIC register.
16799         (sh_expand_prologue): Remove explicit USE of return register.
16800         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
16801         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
16802         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
16803         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
16804         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
16805         EXTRA_CONSTRAINT_T.
16806         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
16807         (MOVI_SHORI_BASE_OPERAND_P): New.
16808         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
16809         (EXTRA_CONSTRAINT_T): Define in terms of them.
16810         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
16811         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
16812         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
16813         alternatives supporting TARGET_REGS.
16814         (UNSPEC_GOTPLT): New constant.
16815         (movdi split): Move incrementing of LABEL_NUSES...
16816         (movdi_const, movdi_const_32bit): Here.  Use
16817         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
16818         (movdi_const_16bit): New.
16819         (call, call_value) [flag_pic]: Use GOTPLT.
16820         (call_pop, call_value_pop): New expands.
16821         (call_pop_compact, call_pop_rettramp): New insns.
16822         (call_value_pop_compact, call_value_pop_rettramp): New insns.
16823         (sibcall) [flag_pic]: Use GOT.
16824         (builtint_setjmp_receiver): Remove bogus, unused expand.
16825         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
16826         (*pt, *ptb, ptrel): New insns.
16827         (sym2GOT): Handle DImode GOT.
16828         (sym2GOTPLT, symGOTPLT2reg): New expands.
16829         (sym2PIC): New expand.
16830         (shcompact_return_tramp): Use GOTPLT to return trampoline.
16831         (shcompact_return_tramp_i): Use return register explicitly.
16832         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
16833         disable flag_reorder_blocks.
16834         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
16835         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
16836         clobbers, for clarity.
16837         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
16838         restoring of r0 in macl as MAYBE_DEAD.
16839         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
16840         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
16841         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
16842         alter_subreg all over.
16843         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
16844         reload, instead of emitting instructions that would require
16845         reloading.
16846         (casesi_load_media): Add missing modes.
16847         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
16848         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
16849         as used if the argument decoder is called.
16850         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
16851         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
16852         Pmode, then extend it to DImode if necessary.
16853         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
16854         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
16855         constants in FPU-enabled SHmedia, let them be loaded from memory.
16856         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
16857         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
16858         Adjust whitespace in assembly output templates.
16859         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
16860         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
16861         mode of if_then_else.
16862         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
16863         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
16864         sh.h.
16865         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
16866                     Joern Rennecke <amylaar@redhat.com>
16867         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
16868         (SUBTARGET_CPP_PTR_SPEC): New.
16869         (SUBTARGET_CPP_SPEC): Remove.
16870         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
16871         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
16872         Fix typo in previous checkin.
16873         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
16874         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
16875         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
16876                     Alexandre Oliva  <aoliva@redhat.com>
16877         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
16878         what single FP register can hold for SHmedia target.
16879         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
16880                     Alexandre Oliva  <aoliva@redhat.com>
16881         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
16882         Do not split into SUBREG.
16883         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
16884         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
16885         and added new functions as specified in SH5 ABI r9.
16886         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
16887         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
16888         8-byte boundary.
16889         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
16890         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
16891         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
16892         and consttable_window_ends.
16893         2001-06-03  Graham Stott  <grahams@redhat,com>
16894         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
16895         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
16896         * config/sh/sh.c (print_operand): Handle floating-point pair,
16897         vector and matrix registers.
16898         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
16899         vector modes into account.
16900         * config/sh/sh.md (movv2sf): Split move between registers into
16901         movdf.
16902         (movv4sf, movv16sf): Introduce insns that get split only after
16903         reload.
16904         * config/sh/shmedia.h: Fix Copyright dates.
16905         * config/sh/ushmedia.h: Likewise.  Move loop counter
16906         declarations into conditionals that uses them.
16907         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
16908         loop boundary.
16909         * config/sh/sshmedia.h: Fix Copyright dates.
16910         (sh_media_PUTCFG): Fix constraints.
16911         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
16912         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
16913         ptrmemfunc_vbit_in_delta for SH5.
16914         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
16915         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
16916         * invoke.texi: Likewise.
16917         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
16918         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
16919         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
16920         GCC_pop_shmedia_regs_nofpu): New global symbols.
16921         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
16922         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
16923         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
16924         compact function with nonlocal labels.
16925         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
16926         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
16927         (initial_elimination_offset): Account for their stack space.
16928         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
16929         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
16930         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
16931         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
16932         least one of the operands to be a register.
16933         (movv2sf): Likewise.  Renamed to movv2sf_i.
16934         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
16935         prepare_move_operands() before emitting SHmedia insns.
16936         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
16937         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
16938         Don't save nor initialize r12.  Don't mis-align the stack.
16939         Pad the code with a nop.
16940         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
16941         stack.
16942         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
16943         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
16944         [__SHMEDIA__]: Implement.
16945         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
16946         * config/sh/sh.md: Set latency of `pt' closer to reality.
16947         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
16948         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
16949         Set move, load and store type attributes.
16950         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
16951         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
16952         profiling.
16953         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
16954         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
16955         * config/sh/sh.c (sh_media_register_for_return): New function.
16956         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
16957         branch-target register.
16958         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
16959         * config/sh/sh.md (return_media_i): Use any call-clobbered
16960         branch-target register.
16961         (return_media): If r18 wasn't copied in the prologue, copy it
16962         here.
16963         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
16964         Clear class FP0_REGS.
16965         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
16966         from elf.h.
16967         2001-03-08  DJ Delorie  <dj@redhat.com>
16968         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
16969         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
16970         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
16971         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
16972         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
16973         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
16974         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
16975         return value correctly for call_cookie.
16976         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
16977         * config/sh/crt1.asm (start): Modified so as to call
16978         ___setup_argv_and_call_main.
16979         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
16980         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
16981         SHmedia mode.
16982         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
16983         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
16984         (STRIP_NAME_ENCODING): Use it.
16985         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
16986         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
16987         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
16988         prepare_scc_operands().
16989         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
16990         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
16991         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
16992         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
16993         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
16994         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
16995         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
16996         used in shcompact_incoming_args.
16997         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
16998         change.
16999         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
17000         mode.
17001         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
17002         Adjust accordingly.
17003         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
17004         Simplify.  Adjust.  Add sanity check.
17005         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
17006         FPU_SINGLE_BIT.
17007         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
17008         TARGET_SHCOMPACT.
17009         (udivsi3, divsi3): Use them.
17010         (force_mode_for_call): New insn.
17011         (call, call_value, sibcall_value): Emit it before SHcompact
17012         calls.
17013         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
17014         * config/sh/sh.md (call, call_value, sibcall): Make sure the
17015         call cookie is non-NULL before taking its value.
17016         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
17017         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
17018         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
17019         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
17020         block.
17021         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
17022         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
17023         temporary for stack adjusts.  Use MACL and MACH to pass
17024         arguments to shcompact_incoming_args.
17025         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
17026         clobber r1.
17027         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
17028         (nested_trampoline): Load static chain address into r1.
17029         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
17030         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
17031         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
17032         fp_arith_reg_operand().
17033         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
17034         * config/sh/sh.md (casesi): Sign-extend the first two operands,
17035         and use signed compares for them.
17036         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
17037         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
17038         ones properly aligned.
17039         (find_barrier): Account for extra alignment needed for 8-byte wide
17040         constants.
17041         (machine_dependent_reorg): Require a label for the second 4-byte
17042         constant after an 8-byte one.
17043         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
17044         change.
17045         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
17046         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
17047         last_float when switching float modes.
17048         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
17049         auto-increment for general-purpose registers.
17050         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
17051         result.
17052         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
17053         for stack adjust.
17054         * config/sh/sh.c (sh_builtin_saveregs): Support using all
17055         registers for varargs.
17056         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
17057         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
17058         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
17059         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
17060         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
17061         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
17062         call_cookie accordingly.
17063         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
17064         (SHCOMPACT_BYREF): Likewise.
17065         (SHCOMPACT_FORCE_ON_STACK): New macro.
17066         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
17067         (sh_builtin_saveregs): Likewise.
17068         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17069         shcompact_incoming_args): Use new shift values.  Support
17070         sequences of consecutive and non-consecutive pushes/pops.
17071         * config/sh/sh.md (return): Don't explicitly use PR_REG.
17072         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
17073         * config/sh/sh.h (TEXT_SECTION): Define.
17074         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
17075         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
17076         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
17077         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
17078         return values on FPU-enabled SHmedia.
17079         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
17080         FPU-enabled SHmedia.
17081         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
17082         value is returned in a non-FP reg and is not returned by
17083         reference.
17084         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
17085         jump_ind.
17086         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
17087         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
17088         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
17089         quad-aligned to be passed by callee-copy reference.
17090         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
17091         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
17092         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
17093         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
17094         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
17095         copying low-numbered FP regs to r7 and r8.
17096         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
17097         FP regs to general-purpose regs only if the copy was passed on the
17098         stack.
17099         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
17100         copying FP reg to r9.
17101         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
17102         copy FP regs to general-purpose regs only in outgoing calls.
17103         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
17104         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
17105         HOST_WIDE_INT.
17106         * config/sh/sh.h (struct sh_args): Document all fields.
17107         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
17108         passed partially on the stack should not consider making
17109         sibcalls.
17110         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
17111         stack_regs only for incoming calls.  When passing FP args,
17112         make sure there are FP regs available before modifying
17113         call_cookie.
17114         (SHCOMPACT_BYREF): Pass double args in general-purpose
17115         registers by reference.
17116         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
17117         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
17118         attempt to generate sibcalls if the caller got any arguments
17119         by reference.
17120         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
17121         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
17122         to 8-byte boundaries.
17123         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
17124         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
17125         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
17126         stored in the stack.
17127         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
17128         for the offsets to have the ISA bit set.
17129         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
17130         invocation.  Use beq instead of bgt to mark end of sequence of
17131         loads.
17132         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
17133         bgt to mark end of sequence of stores.
17134         * config/sh/sh.c (arith_operand): Don't check whether
17135         CONST_OK_FOR_J for now.
17136         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
17137         instead of long for conversion.
17138         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
17139         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
17140         before passing it to fprintf.
17141         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
17142         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
17143         Call set_fpscr before reading/writing SR.
17144         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
17145         Call set_fpscr.
17146         * config/sh/lib1funcs.asm: Add `.align 2' directives before
17147         SHmedia code.
17148         (FMOVD_WORKS): Define on SH5 with FPU.
17149         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
17150         setting.
17151         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
17152         _fpscr_values.
17153         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
17154         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
17155         address.
17156         (ia_main_table): Ditto.
17157         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
17158         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
17159         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
17160         the definitions from sh.h.
17161         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
17162         TARGET_SH5.
17163         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
17164         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
17165         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
17166         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
17167         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
17168         Increment LABEL_NUSES.
17170         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
17171         TARGET_SH5.
17172         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
17173         defined.
17174         * config/sh/elf.h (SIZE_TYPE): Likewise.
17175         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
17176         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17177         shcompact_incoming_args): Load switch table addresses using
17178         datalabel.
17179         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
17180         (NO_BUILTIN_SIZE_TYPE): Define.
17181         (SIZE_TYPE): Don't define.
17182         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
17183         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
17184         definition of __SH5__=32 for -m5-compact-nofpu.
17185         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
17186         ADDR_DIFF_VEC.
17187         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
17188         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
17189         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
17190         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
17191         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
17192         (INSN_LENGTH_ALIGNMENT): Likewise.
17193         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17194         * config/sh/sh.md (call, call_value, sibcall): Simplify
17195         copying of non-branch-target register.
17196         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17197         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
17198         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
17199         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17200         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
17201         floating-point values as structs.
17202         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
17203         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
17204         general-purpose register.
17205         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
17206         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
17207         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
17208         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
17209         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
17210         (ENCODE_SECTION_INFO): Enclose variables and constants in
17211         DATALABEL unspecs.
17212         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
17213         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
17214         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
17215         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
17216         only for LABEL_REFs.  For SYMBOL_REFs, prepend
17217         SH_DATALABEL_ENCODING to the symbol name.
17218         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
17219         convert_mode().
17220         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
17221         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
17222         UNSPEC_DATALABEL.
17223         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
17224         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
17225         (DATALABEL_REF_P): Don't require CONST.
17226         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
17227         REL label.
17228         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
17229         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
17230         right.
17231         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
17232         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
17233         Use shallow_copy_rtx and PUT_MODE to change the mode of
17234         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
17235         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
17236         on SHmedia using GENERAL_REGs.
17237         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17238         bltu_media_i): Fix reversion of conditions.
17239         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
17240         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
17241         * config/sh/sh.c (output_far_jump): Save r13 in macl.
17242         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
17243         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
17244         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
17245         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
17246         (GCC_nested_trampoline): Likewise.
17247         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
17248         * config/sh/sh.c (gen_datalabel_ref): Define.
17249         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
17250         (INITIALIZE_TRAMPOLINE): Likewise.
17251         (TRAMPOLINE_ADJUST_ADDRESS): Define.
17252         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
17253         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
17254         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
17255         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
17256         (ic_invalidate): Adjust for SH5.
17257         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
17258         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
17259         _nested_trampoline.
17260         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
17261         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
17262         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
17263         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
17264         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
17265         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
17266         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
17267         * config/sh/sh.c (target_reg_operand): Match only target-branch
17268         registers and pseudos that aren't virtual registers.
17269         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17270         Copy operands that don't match target_reg_operand to pseudos.
17271         (call_media, call_value_media, sibcall_media): Use
17272         target_reg_operand instead of target_operand.
17273         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
17274         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
17275         * config/sh/sh.c (target_reg_operand): Match hardware registers
17276         other than branch-target registers.
17277         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
17278         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
17279         (fpscr_values) [SH5 == 32]: Define.
17280         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
17281         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17282         Handle function addresses coming in SUBREGs.
17283         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
17284         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17285         shcompact_return_trampoline): Use datalabel where appropriate.
17286         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
17287         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
17288         general-purpose register to copy one branch-target register to
17289         another.
17290         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
17291         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
17292         SYMBOL_REFs with VOIDmode.
17293         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17294         bltu_media_i): New insns.
17295         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
17296         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
17297         (INIT_CUMULATIVE_ARGS): Likewise.
17298         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
17299         * machmode.def (V16SFmode): New mode.
17300         * c-common.c (type_for_mode): Support V2SF and V16SF.
17301         * tree.c (build_common_tree_nodes_2): Likewise.
17302         * tree.h (tree_index): Likewise.
17303         * calls.c (emit_call_1): Take args_so_far.  Adjust all
17304         callers.  Introduce CALL_POPS_ARGS.
17305         * tm.texi (CALL_POPS_ARGS): Document.
17306         * config/sh/crt1.asm: Implement in SHmedia mode.
17307         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
17308         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
17309         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
17310         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
17311         Implement divsi and udivsi in SHmedia mode.  Introduce
17312         SHcompact trampolines.
17313         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
17314         only in SHmedia64.
17315         (regno_reg_class): Rewrite.
17316         (fp_reg_names): Remove.
17317         (sh_register_names, sh_additional_register_names): New.
17318         (print_operand): Added `u'.  Support SUBREGs in addresses.
17319         Add parentheses around shifted CONSTs.
17320         (output_file_start): Output .mode and .abi directives.
17321         (shiftcosts, addsubcosts, multcosts): Adjust.
17322         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
17323         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
17324         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
17325         bytes, not registers.  Take into account the need for the
17326         SHcompact incoming args trampoline.  Adjust all callers.
17327         (sh_expand_prologue): Take stack_regs into account.  Call
17328         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
17329         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
17330         stack aligned as per SH5 ABI.
17331         (sh_builtin_saveregs): Support SH5 ABI.
17332         (sh_build_va_list, sh_va_start): Likewise.
17333         (initial_elimination_offset): Take alignment into account.
17334         Compute location of PR according to the SH5 stack frame.
17335         (arith_reg_operand): Reject branch-target registers.
17336         (shmedia_6bit_operand): New.
17337         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
17338         (target_reg_operand): Match DImode only.  Accept SUBREGs.
17339         (target_operand): New.
17340         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
17341         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
17342         SIBCALL_REGS for SHmedia.
17343         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
17344         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
17345         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
17346         (TARGET_SWITCHES): New SH5 flags.
17347         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
17348         VALID_REGISTER_P to disable unsupported registers.
17349         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
17350         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
17351         (FUNCTION_ARG_PADDING): Define.
17352         (FASTEST_ALIGNMENT): Adjust.
17353         (SH_REGISTER_NAMES_INITIALIZER): New.
17354         (sh_register_names): Declare.
17355         (DEBUG_REGISTER_NAMES): Define.
17356         (REGISTER_NAMES): Define based on sh_register_names.
17357         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
17358         (sh_additional_register_names): Declare.
17359         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
17360         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
17361         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
17362         (REGISTER_NATURAL_MODE): Define.
17363         (FIRST_PSEUDO_REGISTER): Adjust.
17364         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
17365         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
17366         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
17367         (VECTOR_MODE_SUPPORTED_P): Define.
17368         (REG_CLASS_CONTENTS): Adjust.
17369         (SMALL_REGISTER_CLASSES): Adjust.
17370         (REG_ALLOC_ORDER): Adjust.
17371         (INDEX_REG_CLASS): Adjust.
17372         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
17373         (CONST_OK_FOR_LETTER_P): Adjust.
17374         (PREFERRED_RELOAD_CLASS): Adjust.
17375         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
17376         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
17377         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
17378         (FIRST_FP_PARM_REG): Adjust.
17379         (CALL_POPS_ARGS): Define.
17380         (FUNCTION_ARG_REGNO_P): Adjust.
17381         (struct sh_args): New fields.
17382         (GET_SH_ARG_CLASS): Adjust.
17383         (INIT_CUMULATIVE_ARGS): Adjust.
17384         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
17385         (FUNCTION_ARG_ADVANCE): Adjust.
17386         (FUNCTION_ARG): Adjust.
17387         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
17388         (FUNCTION_ARG_CALLEE_COPIES): Define.
17389         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
17390         (STRICT_ARGUMENT_NAMING): Define.
17391         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
17392         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
17393         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
17394         (SETUP_INCOMING_VARARGS): Adjust.
17395         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
17396         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
17397         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
17398         (SUBREG_OK_FOR_INDEX_P): Adjust.
17399         (EXTRA_CONSTRAINT_S): Update.
17400         (EXTRA_CONSTRAINT_T): New.
17401         (EXTRA_CONSTRAINT): Adjust.
17402         (GO_IF_LEGITIMATE_INDEX): Adjust.
17403         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
17404         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
17405         (MOVE_MAX): Adjust.
17406         (MAX_MOVE_MAX): Define.
17407         (Pmode): Adjust.
17408         (CONST_COSTS): Adjust.
17409         (REGISTER_MOVE_COST): Adjust.
17410         (BRANCH_COST): Adjust.
17411         (TEXT_SECTION_ASM_OP): Adjust.
17412         (DBX_REGISTER_NUMBER): Adjust.
17413         (ASM_OUTPUT_DOUBLE_INT): New.
17414         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
17415         (PREDICATE_CODES): Adjust.
17416         (PROMOTE_MODE): Adjust.
17417         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
17418         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
17419         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
17420         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
17421         (DR0_REG, DR2_REG, DR4_REG): Renumber.
17422         (TR0_REG, TR1_REG, TR2_REG): New.
17423         (XD0_REG): Renumber.
17424         (UNSPEC_COMPACT_ARGS): New.
17425         (type): Added pt and ptabs.
17426         (length): Default to 4 on SHmedia.  Default pt length to 12
17427         and     20 on SHmedia32 and SHmedia64, respectively.
17428         (pt): New function unit.
17429         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
17430         Add whitespace between operands of SHmedia instructions.
17431         (movdicc): Fix.
17432         (adddi3_media, addsi3_media): Adjust constraints.
17433         (subsi3) [SHmedia]: Force operand 1 into a register.
17434         (udivsi3_i1_media, udivsi3_i4_media): New.
17435         (udivsi3): Support SHmedia.
17436         (divsi3_i1_media, divsi3_i4_media): New.
17437         (divsi3): Support SHmedia.
17438         (anddi3, iordi3, xordi3): Adjust constraints.
17439         (zero_extendhidi2, zero_extendqidi2): New.
17440         (extendsidi2, extendhidi2, extendqidi2): New.
17441         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
17442         (pop_e, pop_fpul, pop_4): Likewise.
17443         (movsi_media): Support FP and BT registers.
17444         (movsi_media_nofpu): New.  Adjust splits to DImode.
17445         (lduw, ldub): Renamed to zero_extend* above.
17446         (movqi_media): Fix typo.
17447         (movdi_media): Support FP and BT registers.
17448         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
17449         (movdi_const_32bit): New.
17450         (shori_media): Require immediate operand.  Use `u' for output.
17451         (movdf_media, movsf_media): Simplified.
17452         (movdf_media_nofpu, movsf_media_nofpu): New.
17453         (movdf, movsf): Adjust
17454         (movv2sf, movv2sf, movv16sf): New.
17455         (beq_media, beq_media_i): Adjust constraints.  Don't use
17456         scratch BT register.
17457         (bne_media, bne_media_i): Likewise.
17458         (bgt_media, bgt_media_i): Likewise.
17459         (bge_media, bge_media_i): Likewise.
17460         (bgtu_media, bgtu_media_i): Likewise.
17461         (bgeu_media, bgeu_media_i): Likewise.
17462         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
17463         bunordered): Emit jump insn.  Force operands to registers when
17464         needed.
17465         (jump_media, jump): Simplify.
17466         (call_compact, call_compact_rettramp): New.
17467         (call_value_compact, call_value_compact_rettramp): New.
17468         (call_media, call_value_media): Simplify.
17469         (sibcall_compact, sibcall_media): New.
17470         (call, call_value): Adjust for SHmedia and SHcompact.
17471         (sibcall, sibcall_value, untyped_call): Likewise.
17472         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
17473         (indirect_jump): Adjust for SHmedia.
17474         (casesi_jump_media): New.
17475         (nop): Re-enable for SHmedia.
17476         (call_site): Restrict to SH1.
17477         (casesi): Adjust for SHmedia.
17478         (casesi_shift_media, casesi_load_media): New.
17479         (return): Explicitly use PR register.  Call return trampoline
17480         on SHcompact.
17481         (return_i): Explicitly use PR register.
17482         (shcompact_return_tramp, shcompact_return_tramp_i): New.
17483         (return_media): Adjust.
17484         (shcompact_incoming_args): New.
17485         (epilogue): Adjust.
17486         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17487         (movstrsi): Disable on SH5.
17488         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
17489         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
17490         (subsf3, subsf3_media): Likewise.
17491         (mulsf3, mulsf3_media, mac_media): Likewise.
17492         (divsf3, divsf3_media): Likewise.
17493         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
17494         (floatsisf2, fux_truncsfsi2): Likewise.
17495         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
17496         constraints.
17497         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
17498         (cmpunsf_media, cmpsf): Likewise.
17499         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
17500         (abssf2, abssf2_media): Likewise.
17501         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
17502         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
17503         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
17504         (floatsidf2, fix_truncdfsi2): Likewise.
17505         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
17506         constraints.
17507         (cmpeqdf_media, cmpgtdf_media): Likewise.
17508         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
17509         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
17510         (absdf2, absdf2_media): Likewise.
17511         (extendsfdf2, extendsfdf2_media): Likewise.
17512         (truncsfdf2, truncsfdf2_media): Likewise.
17513         * config/sh/sh64.h: New file.
17514         * config/sh/t-sh64: New file.
17515         * config/sh/shmedia.h: New file.
17516         * config/sh/ushmedia.h: New file.
17517         * config/sh/sshmedia.h: New file.
17518         * configure.in: Added sh64-*-elf.
17519         * configure: Rebuilt.
17520         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
17521         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
17522         (reg_class_from_letter): Use `b' for TARGET_REGS.
17523         (print_operand): Support `%M', `%m', `AND' and
17524         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
17525         (andcosts): Adjust for SHmedia.
17526         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
17527         Likewise.
17528         (target_reg_operand): New function.
17529         * config/sh/sh-protos.h (target_reg_operand): Declare.
17530         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
17531         FP registers on SH5.
17532         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
17533         on SH4.
17534         (TARGET_REGISTER_P): New macro.
17535         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
17536         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
17537         (EXTRA_CONSTRAINT_S): New macro.
17538         (EXTRA_CONSTRAINT): Adjust.
17539         (FLOAT_TYPE_SIZE): Define to 32.
17540         (Pmode): DImode on SHmedia.
17541         (CONST_COSTS): Adjust for SHmedia literals.
17542         (PREDICATE_CODES): Added target_reg_operand.
17543         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
17544         * config/sh/sh.md: Remove all attrs from SHmedia insns.
17545         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
17546         (cmpdi): Accept SHmedia.
17547         (movdicc_false, movdicc_true): New insns.
17548         (movdicc): New expand.
17549         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
17550         no_new_pseudos.
17551         (addsi3_media): Match `S' constraint.
17552         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
17553         (negdi2): Expand for SHmedia.
17554         (one_cmpldi2): New expand.
17555         (zero_extendsidi2): Change from expand to insn.
17556         (extendsidi2): Add constraints.
17557         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
17558         LD/ST address.  Fix SI immediate loading split.
17559         (movhi_media, movqi_media, lduw, ldub): New insns.
17560         (movhi, movqi): Accept SHmedia.
17561         (shori_media, movdi_media): Relax input constraints.  Split
17562         symbolic constants.
17563         (movdf_media, movsf_media): New insn.  New split to movdi.
17564         (movdf, movsf): Match on SHmedia.
17565         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
17566         bgeu_media): New insns and splits.  New insns with `_i' suffix.
17567         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
17568         (bunordered): New expand.
17569         (jump_compact): Renamed from `jump'.
17570         (jump_media): New insn.
17571         (jump): New expand.
17572         (call_media, call_value_media): New insns.
17573         (call, call_value): Adjust.
17574         (indirect_jump_compact): Renamed from `indirect_jump'.
17575         (indirect_jump_media): New insn.
17576         (indirect_jump): New expand.
17577         (untyped_call, return): Accept SHmedia.
17578         (return_media): New insn.
17579         (prologue, epilogue, blockage): Accept SHmedia.
17580         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17581         (sunordered): New expand.
17582         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
17583         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
17584         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
17585         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
17586         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
17587         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
17588         abssf2_media): New insns.
17589         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
17590         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
17591         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
17592         floatdidf2, floatsidf2_media, fix_truncdfdi2,
17593         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
17594         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
17595         absdf2_media): New insns.
17596         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
17597         (extendsfdf2_media, truncdfsf2_media): New insns.
17598         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
17599         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
17600         * config/sh/sh.h (CONST_OK_FOR_J): Document.
17601         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
17602         * config/sh/sh.md (adddi3): New expand.
17603         (adddi3_media, adddi3z_media): New insns.
17604         (adddi3_compact): Renamed from adddi3.
17605         (addsi3_media): Use add.l r63 to add constant zero.
17606         (subdi3): New expand.
17607         (subdi3_media): New insn.
17608         (subdi3_compact): Renamed from subdi3.
17609         (mulsidi3): New expand.
17610         (mulsidi3_media): New insn.
17611         (mulsidi3_compact): Renamed from mulsidi3.
17612         (umulsidi3): New expand.
17613         (umulsidi3_media): New insn.
17614         (umulsidi3_compact): Renamed from umulsidi3.
17615         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
17616         (ashlsi3, ashrsi3, lshrsi3): Use them.
17617         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
17618         (ashldi3, ashrdi3, lshrdi3): Use them.
17619         (zero_extendsidi2): New expand.
17620         (extendsidi2): New insn.
17621         (movsi_media): New insn.  Split to movdi to load constants.
17622         (movsi): Enable for shmedia.
17623         (movdi_media): New insn.  Use shori_media to load wide constants.
17624         (short_media): New insn.
17625         (movdi): Enable for shmedia.
17626         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
17627         * config/sh/sh.h (CPP_SPEC): Added `m5'.
17628         (SUBTARGET_CPP_SPEC): Added `!m5'.
17629         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
17630         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
17631         to all other SH variants.
17632         (TARGET_DEFAULT): Set to SH1_BIT.
17633         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
17634         (BITS_PER_WORD): Raise to 64 on shmedia.
17635         (MAX_BITS_PER_WORD): Change to 64.
17636         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
17637         (INT_TYPE_SIZE): Keep as 32.
17638         (UNITS_PER_WORD): Raise to 8 on shmedia.
17639         (MIN_UNITS_PER_WORD): Keep as 4.
17640         (POINTER_SIZE): Raise to 64 on shmedia.
17641         (CONST_OK_FOR_J): New macro.
17642         (CONST_OK_FOR_LETTER_P): Use it.
17643         (processor_type): Add PROCESSOR_SH5.
17644         * config/sh/sh.md: Conditionalize all expands, insns and
17645         splits to TARGET_SH1.
17646         (cpu): Added sh5.
17647         (addsi3_compact): Renamed from...
17648         (addsi3): Now an expand.
17649         (addsi3_media, subsi3_media): New insns.
17650         (subsi3): Don't negate constants with SHmedia.
17652         * hooks.c: New file.
17653         * hooks.h: New file.
17654         * Makefile.in (HOOKS_H): New.
17655         (TARGET_DEF_H): Added $(HOOKS_H).
17656         (OBJS): Added hooks.o.
17657         (cfgcleanup.o, bb-reorder.o): Added target.h.
17658         (hooks.o): Added dependencies.
17659         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
17660         (TARGET_INITIALIZER): this.
17661         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
17662         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
17663         * bb-reorder.c: Include target.h.
17664         (reorder_basic_blocks): Skip if cannot modify jumps.
17665         * cfgcleanup.c: Include target.h.
17666         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
17668 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
17670         * config/mips/mips.md (casesi_internal, casesi_internal_di):
17671         Protect jump delay slot instructions with .set noreorder and
17672         .set nomacro.
17674 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
17676         * config/mips/mips.md (casesi_internal_di): Calculate
17677         the index into the target offset table correctly.
17679 2002-02-08  Richard Henderson  <rth@redhat.com>
17681         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
17682         * final.c (output_addr_const): Accept and discard SUBREG.
17683         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
17684         mark them unknown instead.
17685         (simplify_subtraction): Handle RTX_UNKNOWN.
17686         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
17688 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
17690         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
17692 2002-02-08  Richard Henderson  <rth@redhat.com>
17694         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
17696 2002-02-08  Andreas Jaeger  <aj@suse.de>
17698         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
17699         * config/i386/t-linux64: New file.
17701 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
17703         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
17704         * c-parse.in (compstmt): Clear last_expr_type.
17706 2002-02-07  Richard Henderson  <rth@redhat.com>
17708         * loop.c (strength_reduce): Sink final_value when not
17709         eliminating a biv.
17711 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
17713         * config/sparc/freebsd.h: Fix mismatched spec {.
17715 2002-02-07  Richard Henderson  <rth@redhat.com>
17717         * cfgrtl.c: Include recog.h and insn-config.h.
17718         (keep_with_call_p): Fix general_operand invocation.
17719         * Makefile.in (cfgrtl.o): Update dependencies.
17721 2002-02-07  Kazu Hirata  <kazu@hxi.com>
17723         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
17724         comment.  Accept HImode only if TARGET_H8300.
17726 2002-02-07  Eric Christopher  <echristo@redhat.com>
17728         * config/mips/crtn.asm: Cleanup #ifdefs.
17730 2002-02-07  Eric Christopher  <echristo@redhat.com>
17732         * config/mips/crti.asm: Add changes for mips16. mips16 uses
17733         register 7 as RA instead of $31.
17734         * config/mips/crtn.asm: Ditto.
17735         * config/mips/mips.c (mips_move_2words): Add case for
17736         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
17737         (compute_frame_size): Fix typo.
17738         (save_restore_insns): Ditto.  Make documentation about using
17739         register $7 as return register more precise.
17740         (mips_expand_epilogue): Fix comment. Add code to work around not
17741         being able to add to the stack pointer directly.
17742         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
17743         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
17744         epilogue.
17746 2002-02-07  Tom Rix  <trix@redhat.com>
17748         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
17749         immediates in ldu and stdu DS opcode field.
17750         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
17751         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
17752         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
17754 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
17756         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
17757         offset for stack bias.
17759 2002-02-07  H.J. Lu <hjl@gnu.org>
17761         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
17763 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
17765         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
17767 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
17769         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
17770         * i386.c (x86_order_regs_for_local_alloc): New global function.
17771         * i386.h (REG_ALLOC_ORDER): CLeanup.
17772         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
17774 2002-02-07  Richard Henderson  <rth@redhat.com>
17776         PR optimization/2463
17777         * alias.c (find_base_value): Recall base values for fixed hard regs.
17778         * loop.c (loop_regs_update): Don't use single_set on non-insns.
17780 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
17782         * config/mips/mips.md (define_delay) [mips16]: Adjust required
17783         length.
17785 2002-02-06  Richard Henderson  <rth@redhat.com>
17787         PR c/5609
17788         * stmt.c (resolve_operand_name_1): Take more care with mixed
17789         named and unnamed operands.
17791 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
17792             Jan Hubicka  <jh@suse.cz>
17794         * loop.c (remove_constant_addition): Avoid clobbering a shared
17795         CONST expression.
17797 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
17799         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
17800         * config/s390/t-linux64: New file.
17801         * config/s390/libgcc-glibc.ver: New file.
17803 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
17805         * config/s390/linux64.h: Delete file.
17806         * config/s390/s390x.h: New file.
17807         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
17808         as target header file.
17809         * config/s390/linux.h (TARGET_VERSION): Define depending on
17810         DEFAULT_TARGET_64BIT.
17811         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
17812         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
17813         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
17814         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
17815         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
17816         (EXTRA_SPEC): New define.
17817         * config/s390/s390.h (TARGET_VERSION): Define depending on
17818         DEFAULT_TARGET_64BIT.
17819         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
17821 2002-02-06  Jason Merrill  <jason@redhat.com>
17823         * c-decl.c (finish_function): Warn about a non-void function with
17824         no return statement and no abnormal exit.
17825         (current_function_returns_abnormally): New variable.
17826         (start_function): Clear it.
17827         (struct c_language_function): Add returns_abnormally.
17828         (push_c_function_context): Save it.
17829         (pop_c_function_context): Restore it.
17830         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
17831         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
17832         an explicit return type.
17833         * c-tree.h: Declare current_function_returns_abnormally.
17834         (C_FUNCTION_IMPLICIT_INT): New macro.
17835         * c-typeck.c (build_function_call): Set it.
17836         (c_expand_return): Set current_function_returns_value even if the
17837         value is erroneous.
17839 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
17841         PR c/5420:
17842         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
17843         unsafe for reevaluation.
17845 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
17847         PR c/5482:
17848         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
17849         EXPR_STMT, but COMPOUND_STMT, recurse into it.
17851 2002-02-06  Richard Henderson  <rth@redhat.com>
17853         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
17854         be a general_operand.  Dest for function value must be a pseudo.
17856 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
17858         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
17859         as SYMBOL_REFs from the constant pool.
17861 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
17863         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
17864         passed by invisible reference.
17866 2002-02-05  Richard Henderson  <rth@redhat.com>
17868         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
17870 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
17872         Implement using "base addresses" in insn operands as default.
17873         * config/mmix/mmix.c (mmix_conditional_register_usage): if
17874         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
17875         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
17876         used to read the rtx value.
17877         (mmix_target_asm_function_epilogue): Fix spacing.
17878         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
17879         (mmix_legitimate_address): Ditto.
17880         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
17881         should be loaded with a GETA insn.  Don't allocate needless extra
17882         char for nul termination and fix misleading comment.
17883         (mmix_print_operand_address): Handle constants if
17884         TARGET_BASE_ADDRESSES.
17885         (mmix_output_register_setting): Use base addressing if
17886         TARGET_BASE_ADDRESSES and the number of insns is 3.
17887         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
17888         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
17889         to use R as constraint, add LDA to match s.
17890         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
17891         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
17892         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
17893         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
17894         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
17895         order with other fixed registers.
17896         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
17897         other parameter/call-clobbered registers.
17898         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
17899         -mbase-addresses, -mno-base-addresses.
17900         (MMIX Options): Ditto.
17902 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17904         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
17906 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
17908         * config/rs6000/altivec.h: Change elem to _S_elem.
17910 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
17912         * config/netbsd.h (WCHAR_TYPE): Define.
17913         (WCHAR_TYPE_SIZE): Ditto.
17914         (WINT_TYPE): Ditto.
17915         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
17916         (WCHAR_UNSIGNED): Ditto.
17917         (WCHAR_TYPE_SIZE): Ditto.
17918         (WINT_TYPE): Ditto.
17919         * config/arm/netbsd.h: Likewise.
17920         * config/i386/netbsd-elf.h: Likewise.
17921         * config/i386/netbsd.h: Likewise.
17922         * config/m68k/netbsd-elf.h: Likewise.
17923         * config/m68k/netbsd.h: Likewise.
17924         * config/ns32k/netbsd.h: Likewise.
17925         * config/sparc/netbsd.h: Likewise.
17926         * config/vax/netbsd.: Likewise.
17928 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
17930         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
17931         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
17932         (TARGET_INITIALIZER): this.
17933         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
17934         (BITFIELD_NBYTES_LIMITED): Markup fix.
17935         * tree.h (default_ms_bitfield_layout_p): Declare.
17936         (record_layout_info): Added prev_field.
17937         * tree.c (default_ms_bitfield_layout_p): New fn.
17938         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
17939         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
17940         * stor-layout.c: Include target.h.
17941         (start_record_layout): Initialize prev_field.
17942         (place_field): Handle MS bit-field layout, and disregard
17943         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
17944         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
17945         * Makefile.in (stor-layout.o): Adjust dependencies.
17947 2002-02-05  Jason Merrill  <jason@redhat.com>
17949         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
17951 2002-02-05  Andreas Jaeger  <aj@suse.de>
17953         * crtstuff.c: Fix comments.
17955 2002-02-05  Richard Henderson  <rth@redhat.com>
17957         PR fortran/3393
17958         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
17959         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
17961         PR fortran/3392
17962         * config/mips/mips.c (function_arg): Handle TImode.
17963         (function_arg_advance): Likewise.
17965 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
17967         * config/rs6000/altivec.h (vec_step_help): Rename to
17968         __vec_step_help.
17970 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
17972         * config/rs6000/altivec.h: Fix typos.
17974 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
17976         * config/arm/netbsd.h: Correct a comment.
17978 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
17980         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
17981         building void typed builtins.
17983         * config/rs6000/altivec.h (vec_ld*): Fix typos.
17984         (vec_step): Implement for C++.
17986 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17988         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
17990 2002-02-04  Richard Henderson  <rth@redhat.com>
17992         * combine.c (nonzero_bits): Re-introduce special case for
17993         sp/fp/ap wrt REGNO_POINTER_ALIGN.
17995 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
17997         * doc/extend.texi: Warn about unsupported usage of altivec
17998         builtins.
18000         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
18001         (altivec_predicate_*): New.
18003         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
18004         Add C++ version of vec_*() functions.
18006         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
18007         (bdesc_2arg): Remove altivec predicates.
18008         (altivec_expand_builtin): Handle predicates.
18009         (altivec_init_builtins): Handle predicates.
18010         (altivec_expand_predicate_builtin): New.
18012 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18014         * pa.c (DO_FRAME_NOTES): Move forward.
18015         (store_reg): Revise handling of frame notes.
18016         (load_reg): Likewise.
18017         (set_reg_plus_d): Likewise.
18018         (hppa_expand_prologue): Likewise.
18019         (hppa_expand_epilogue): Likewise.
18021 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18023         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
18025 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
18027         PR c/4475, c++/3780:
18028         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
18029         * c-common.h (SWITCH_TYPE): Define.
18030         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
18031         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
18032         Rename spareness variable to sparseness.
18033         (expand_end_case_type): Renamed from expand_end_case, use orig_type
18034         if non-NULL instead of TREE_TYPE (orig_index).
18035         * tree.h (expand_end_case_type): Renamed from expand_end_case.
18036         (expand_end_case): Define using expand_end_case_type.
18037         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
18038         to expand_end_case_type.
18039         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
18041 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18043         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
18044         (BIGGEST_ALIGNMENT): Change to 128.
18046 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18048         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
18050 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18052         * pa.md (call_internal_reg_64bit): Remove unused variable.
18054 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
18056         * config/arm/arm.h (machine_function): Add uses_anonymous_args
18057         field.
18058         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
18059         * config/arm/arm.c (current_function_anonymous_args): Delete,
18060         replace uses with cfun->machine->uses_anonymous_args.
18061         (arm_reorg): Do not reset uses_anonymous_args.
18063         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
18064         any geenral register.
18066 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
18068         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
18069         the entry block.
18071 2002-02-04  Richard Henderson  <rth@redhat.com>
18073         * combine.c (force_to_mode): Remove STACK_BIAS code.
18074         (nonzero_bits): Likewise.  Replace sp/fp special case with
18075         REGNO_POINTER_ALIGN.
18077         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
18078         (HARD_FRAME_POINTER_REGNUM): New.
18079         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
18080         (FIXED_REGS, CALL_USED_REGS): Update.
18081         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
18082         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
18083         (HARD_REGNO_NREGS): Update for SFP.
18084         (STACK_POINTER_OFFSET): Include bias here ...
18085         (FIRST_PARM_OFFSET): ... not here.
18086         (STACK_BIAS): Remove.
18087         (INIT_EXPANDERS): New.
18088         (STARTING_FRAME_OFFSET): Do not include bias.
18089         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
18090         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
18091         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
18092         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
18093         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
18094         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
18095         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
18096         (MUST_SAVE_REGISTER): Likewise.
18097         (sparc_flat_function_prologue): Likewise.
18098         (sparc_flat_function_epilogue): Likewise.
18099         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
18100         (sparc_init_modes): SFP is GENERAL_REGS.
18101         (sparc_builtin_saveregs): SFP does not have bias applied.
18103 2002-02-04  Richard Henderson  <rth@redhat.com>
18105         * config/alpha/alpha.c (current_function_is_thunk): Don't check
18106         current_function_is_thunk.
18107         (alpha_sa_mask): Distinguish between current_function_is_thunk
18108         called from ASM_OUTPUT_MI_THUNK and not.
18109         (alpha_does_function_need_gp): Thunks always need gp.
18110         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
18111         (alpha_output_mi_thunk_osf): New.
18112         * config/alpha/alpha-protos.h: Update.
18113         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
18115 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
18117         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
18118         function types, not when they're taken away.
18120 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
18122         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
18123         CODE_LABEL and jump table when replacing a table jump with a
18124         simple jump.
18126 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
18128         * config/s390/s390-protos.h (legitimize_la_operand,
18129         s390_secondary_input_reload_class, s390_plus_operand,
18130         s390_expand_plus_operand): Add prototypes.
18132         config/s390/s390.c (s390_secondary_input_reload_class,
18133         s390_plus_operand, s390_expand_plus_operand): New functions.
18135         (struct s390_address): New member 'pointer'.
18136         (s390_decompose_address): Compute it.
18137         (legitimate_la_operand_p): Use it.
18138         (legitimize_la_operand): New function.
18139         (movti, movdi, movdf splitters): Call it.
18141         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
18142         (PREDICATE_CODES): Add s390_plus_operand.
18144         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
18145         (la_ccclobber): Allow GENERAL_REGS as output operand.
18147         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
18148         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
18149         (*la_64, *la_31, reload_indi, reload_insi): ... these.
18151 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
18153         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
18154         register names for regular asm () construct.
18156 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
18158         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
18159         registers.
18161 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
18163         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
18164         pat for recog.
18166 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
18168         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
18169         constant pool to be identical by string address and index.
18171 2002-02-04  Anthony Green  <green@redhat.com>
18173         * output.h (SECTION_OVERRIDE): Define.
18174         * varasm.c (named_section): Obey SECTION_OVERRIDE.
18176 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
18178         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
18179         by existing arm*-*-netbsd* (a.out) target.
18180         (ns32k-*-netbsdelf*): Likewise.
18181         (sparc-*-netbsdelf*): Likewise.
18182         (vax-*-netbsdelf*): Likewise.
18184 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
18186         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
18187         headers and libobjc headers.
18189 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
18191         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
18192         (_mingw.h): Remove duplicate include.
18194 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
18196         * config.gcc: Set cpu_type to m68k for 68010, as well.
18197         (m68010-*-netbsdelf*): New...
18198         (m68k*-*-netbsdelf*): ...targets.
18199         * config/m68k/netbsd-elf.h: New file.
18201 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18203         * config/h8300/h8300.c (hand_list): Move inside function_arg.
18205 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18207         * config/h8300/h8300.c (h8_push_ops): Move inside
18208         h8300_init_once.
18209         (h8_pop_ops): Likewise.
18210         (h8_move_ops): Likewise.
18212 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18214         * config/h8300/h8300.c (os_task): Make it static.
18215         (monitor): Likewise.
18216         (pragma_saveall): Likewise.
18218 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
18220         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
18221         constant is a valid sign-extension for Pmode.
18223 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18225         * config/h8300/h8300.c: Fix formatting.
18227 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18229         * config/h8300/h8300.md: Fix formatting.
18231 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18233         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
18234         predicates of operands[1].  Split the patterns for each
18235         processor variant.
18237 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18239         * config/h8300/h8300.md (xor patterns): Tighten the predicates
18240         of operands[1] to register_operand.
18242 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
18244         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
18245         * cpphash.c (_cpp_init_hashtable): Similarly.
18246         * cppinit.c (cpp_create_reader): Default the signed_char flag.
18247         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
18248         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
18249         (cpp_handle_option): Handle the new options.
18250         * cpplex.c (cpp_interpret_charconst): Use new flag.
18251         * cpplib.h (struct cpp_options): New member signed_char.
18252         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
18253         (cpp_options): Handle -fsigned-char and -funsigned-char.
18254         (static_specs): Remove signed_char_spec.
18255         (do_spec1): Don't handle %c.
18256         * system.h: Poison SIGNED_CHAR_SPEC.
18257         * tradcif.y (yylex): Use flag_signed_char.
18258         * tradcpp.h (flag_signed_char): New.
18259         * tradcpp.c (flag_signed_char): New.
18260         (main): Handle new command-line options.
18261         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
18262 config:
18263         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
18264         * avr/avr.h: Remove old comments.
18265         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
18266         (CC1_SPEC): Pass -fsigned-char if -mic*.
18267         (SIGNED_CHAR_SPEC): Remove.
18268 doc:
18269         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
18271 2002-02-01  Eric Christopher  <echristo@redhat.com>
18273         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
18274         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
18275         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
18276         (ASM_OUTPUT_REG_POP): Ditto.
18278 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
18280         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
18281         patch.
18283 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
18285         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
18287 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
18289         PR c/5304:
18290         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
18291         unconditionally.
18293 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
18295         * cfganal.c: Include tm_p.h.
18296         (keep_with_call_p): Fix the test that determines if a register holds
18297         the return value of a call.
18299 2002-02-01  DJ Delorie  <dj@redhat.com>
18301         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
18302         we are given conflicting registers, switch to the other one we
18303         had allocated for us.
18304         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
18305         as TImode so we know when the "other" register is available.
18307 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
18309         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
18310         sparc/sparc_bi.h.
18312 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
18314         * cfganal.c (keep_with_call_p): New function.
18315         (flow_call_edges_add): Prevent splitting a block between a call and
18316         a single-set instruction that should be kept in the same block.
18318 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18320         * doc/install.texi (avr): Update outdated URL.
18322 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
18324         * config/stormy16/stormy16.md (pushqi): New.
18325         (popqi): New.
18326         (pushhi): New.
18327         (pophi): New.
18328         (movhi): Remove stack operands.
18329         (movqi): Likewise.
18330         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
18331         nonimmediate_nonstack_operand.
18332         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
18333         New.
18334         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
18335         New.
18337 2002-01-31  Jason Merrill  <jason@redhat.com>
18339         * Makefile.in (c-parse.c): Handle .output file.
18340         * objc/Make-lang.in (objc-parse.c): Likewise.
18342 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
18344         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
18345         the -me[lb] option is given.  Don't output the default flag
18346         twice.
18348 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
18350         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
18351         the primary source file; this has not been done yet.
18352         * c-decl.c (c_expand_body): Reset input_filename from
18353         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
18355 2002-01-31  Kazu Hirata  <kazu@hxi.com>
18357         * rtlanal.c (subreg_regno_offset): Do not use
18358         SUBREG_REGNO_OFFSET.
18359         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
18360         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
18362 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
18364         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
18365         version rather than GNATS version in --version output.
18367 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
18369         * ifcvt.c (noce_process_if_block): Make a copy of the destination
18370         when copying back from a temporary.
18372 2002-01-30  Richard Henderson  <rth@redhat.com>
18374         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
18375         and new_dest are the same.
18377 2002-01-30  Richard Henderson  <rth@redhat.com>
18379         PR opt/5076
18380         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
18381         * rtl.c (note_insn_name): Update.
18382         * emit-rtl.c (remove_unnecessary_notes): Kill it.
18383         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
18384         to perform loop rotation.
18385         (expand_exit_loop_top_cond): New.
18386         * tree.h (expand_exit_loop_top_cond): Declare it.
18387         * c-semantics.c (genrtl_while_stmt): Use it.
18388         (genrtl_for_stmt): Likewise.
18390 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
18392         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
18393         arguments to 64-bit boundaries on 64-bit ABIs.
18395 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
18397         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
18399 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
18401         * c-decl.c (grokdeclarator): Handle type being a typedef for an
18402         invalid type.
18404 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
18406         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
18407         * config/sparc/sparc_bi.h: Remove file.
18408         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
18410 2002-01-30  Richard Henderson  <rth@redhat.com>
18412         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
18414 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
18416         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
18418 2002-01-30  Jason Merrill  <jason@redhat.com>
18420         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
18421         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
18422         (reg_save): Use DW_CFA_offset_extended_sf instead.
18424         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
18426 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18428         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
18429         in cselib_lookup.
18431 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
18433         * rs6000.md ("*call_value_local32"): Remove constraints.
18434         ("*call_value_local64"): Same.
18435         ("*call_value_indirect_nonlocal_aix32"): Same.
18436         ("*call_value_nonlocal_aix32"): Same.
18437         ("*call_value_indirect_nonlocal_aix64"): Same.
18438         ("*call_value_nonlocal_aix64"): Same.
18439         ("*call_value_nonlocal_sysv"): Same.
18441 2002-01-29  Richard Henderson  <rth@redhat.com>
18443         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
18445 2002-01-29  Richard Henderson  <rth@redhat.com>
18447         * expr.c (force_operand): Ignore flag_pic for detecting pic
18448         address loads.
18449         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
18450         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
18451         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
18452         instead of open-coded loop.
18453         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
18454         be fixed when in use.
18456 2002-01-29  Richard Henderson  <rth@redhat.com>
18458         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
18459         * sched-rgn.c (propagate_deps): Update them.
18460         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
18461         clobbers list when either gets too long.
18463 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18465         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
18466         and INDEX_REGS the same as GENERAL_REGS.
18467         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
18469 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
18471         * tree.c (build_nonstandard_integer_type): Correct prototype.
18473 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
18475         * config/s390/s390.md (movstrsico, movstrdix_64,
18476         movstrsix_31): Remove, replace by ...
18477         (movstrdi_short, movstrsi_short, movstrdi_long,
18478         movstrsi_long): ... these.  New.
18479         (movstrdi, movstrsi): Adapt.
18481         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
18482         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
18483         Remove unnecessary CC clobber.
18484         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
18485         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
18487         (divmoddi4): Don't partially initialize TImode register.
18489 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
18491         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
18493 2002-01-29  Richard Henderson  <rth@redhat.com>
18495         * flow.c (print_rtl_and_abort): Remove.
18496         (print_rtl_and_abort_fcn): Remove.
18497         (verify_local_live_at_start): Use dump_bb instead.
18498         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
18499         (verify_wide_reg_1): Return 2 on mode test failure.
18501 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
18503         PR c/3325, c/3326, c/2511, c/3347
18504         * c-decl.c (enum_decl_context): Remove BITFIELD.
18505         (grokdeclarator): Take bitfield width as an input.
18506         Ensure bitfields are given the correct type.  Perform
18507         bitfield width validation with build_bitfield_integer_type
18508         rather than waiting for finish_struct.
18509         (grok_typename, grok_typename_in_parm_context, start_decl,
18510         push_parmdecl, grokfield, start_function): Update calls to
18511         grokdeclarator.
18512         (build_bitfield_integer_type): New function.
18513         (finish_struct): Move bitfield validation to grokdeclarator
18514         and build_bitfield_integer_type.
18515         * tree.c (build_nonstandard_integer_type): New function.
18516         * tree.h (build_nonstandard_integer_type): New prototype.
18517 objc:
18518         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
18520 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18522         PR other/1502:
18523         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
18524         don't ignore unrecognized -W* options.
18525         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
18526         * cpplib.h (cpp_handle_option): Adjust prototype.
18527         * c-decl.c (c_decode_options): Pass 0 as last argument to
18528         cpp_handle_option.
18530         PR c/2896:
18531         * gcc.c (cpp_unique_options): Split from cpp_options.
18532         (cpp_options): Source cpp_unique_options.
18533         (default_compilers): Use cpp_unique_options instead of cpp_options
18534         when used together with cc1_options.
18535         (static_specs): Add cpp_unique_options.
18536         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
18537         when used together with cc1_options.
18539 2002-01-29  Kazu Hirata  <kazu@hxi.com>
18541         * config/h8300/h8300-protos.h: Update the prototype of
18542         output_a_shift.
18543         * config/h8300/h8300.c (output_a_shift): Remove an unused
18544         argument 'insn'.  Remove redundant code.
18545         * config/h8300/h8300.md: Adust to the new prototype of
18546         output_a_shift.
18548 2002-01-29  Kazu Hirata  <kazu@hxi.com>
18550         * config/h8300/h8300-protos.h: Update the prototypes of
18551         emit_a_rotate and expand_a_rotate.
18552         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
18553         first argument to 'enum rtx_code'.
18554         (expand_a_rotate): Likewise.
18556 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18558         * config/h8300/h8300-protos.h: Update the prototype of
18559         output_simode_bld.
18560         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
18561         'log2'.
18562         * config/h8300/h8300.md: Adjust to the new prototype.
18564 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18566         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
18567         redundant code.
18569 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18571         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
18572         is a fixed register before returning pic_offset_table_rtx.
18573         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
18574         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
18576 2002-01-28  Jason Merrill  <jason@redhat.com>
18578         * dwarf2.h: Sync with src version.
18580 2002-01-28  Paul Koning  <pkoning@equallogic.com>
18582         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
18583         BT_FN_VOID_PTR_VAR.
18584         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
18585         * doc/extend.texi (__builtin_prefetch): Update documentation:
18586         first argument is now const void ptr.
18588 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18590         * config/h8300/h8300-protos.h: Remove an unused prototype.
18592 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
18594         * toplev.c (lang_independent_init): Round up identifier size.
18596 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
18598         * config.gcc: Revert previous change.
18600 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
18602         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
18604 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
18606         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
18607         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
18608         other non-elf netbsd config frags.
18609         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
18610         collect2 will does that.
18611         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
18612         shared-lib frobbing will work.
18614 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18616         * config/h8300/h8300.h: Fix formatting.
18617         * config/h8300/h8300.md: Likewise.
18619 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
18621         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
18622         the old, removed AAA_standards fix.
18623         * fixinc/fixincl.x: Rebuilt.
18625 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
18627         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
18628         atexit call in crtbegin, hooked in after call to frame_dummy;
18629         register EH before registering __fini__start.
18631 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
18633         * config/rs6000/altivec.h: Remove spurious semicolons.
18635 2002-01-27  Kazu Hirata  <kazu@hxi.com>
18637         * config/h8300/h8300.md: Replace dead bit extraction patterns
18638         with ones that work.
18640 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18642         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
18643         if not STRICT_ALIGNMENT.
18644         * rtl.h (MEM_ALIGN): Likewise.
18646 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18648         * doc/invoke.texi (-fdump-translation-unit): Revert this
18649         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18651 2002-01-27  Kazu Hirata  <kazu@hxi.com>
18653         * config/h8300/h8300.md (define_constants): New.
18654         (anonymous patterns) Use defined constants appropriately.
18656 2002-01-27  Kazu Hirata  <kazu@hxi.com>
18658         * config/h8300/h8300.c (function_arg): Remove redundant code.
18660 2002-01-26  Richard Henderson  <rth@redhat.com>
18662         * sched-deps.c (reg_pending_uses_head): New.
18663         (reg_pending_barrier): Rename from reg_pending_sets_all.
18664         (find_insn_list): Don't mark inline.
18665         (find_insn_mem_list): Remove.
18666         (add_dependence_list, add_dependence_list_and_free): New.
18667         (flush_pending_lists): Replace only_write param with separate
18668         for_read and for_write parameters.  Update all callers.  Use
18669         add_dependence_list_and_free.
18670         (sched_analyze_1): Do not add reg dependencies here; just set
18671         the pending bits.  Use add_dependence_list.
18672         (sched_analyze_2): Likewise.
18673         (sched_analyze_insn): Replace schedule_barrier_found with
18674         reg_pending_barrier.  Add all dependencies for pending reg
18675         uses, sets, and clobbers.
18676         (sched_analyze): Don't add reg dependencies for calls, just
18677         set pending bits.  Use regs_invalidated_by_call.  Treat
18678         sched_before_next_call as a normal list, not a fake insn.
18679         (init_deps): No funny init for sched_before_next_call.
18680         (free_deps): Free pending mems lists.  Don't zero reg_last.
18681         (init_deps_global): Init reg_pending_uses.
18682         (finish_deps_global): Free it.
18683         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
18684         (find_insn_mem_list): Remove.
18685         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
18686         (propagate_deps): Use them.  Zero temp mem lists.
18688 2002-01-26  Richard Henderson  <rth@redhat.com>
18690         * Makefile.in (CRTSTUFF_CFLAGS): New.
18691         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
18692         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
18693         crtstuff.c instead of alpha assembly version.
18694         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
18695         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
18696         not FORCE_{INIT,FINI}_SECTION_ALIGN.
18697         (__do_global_dtors_aux): Mark used.
18698         (frame_dummy, __do_global_ctors_aux): Mark used.
18699         (fini_dummy, init_dummy): Remove.
18701         * config/alpha/crtbegin.asm: Remove file.
18702         * config/alpha/crtend.asm: Remove file.
18703         * config/alpha/t-crtbe: Remove file.
18704         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
18705         (LINK_EH_SPEC): New.
18707         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
18708         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
18709         calling constructors.
18710         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
18712         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
18713         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
18714         CRT_END_INIT_DUMMY hack.
18715         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
18716         FORCE_{INIT,FINI}_SECTION_ALIGN.
18718         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
18719         FORCE_{INIT,FINI}_SECTION_ALIGN.
18721         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
18722         invocation sequence.
18723         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
18725         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
18726         (FORCE_CODE_SECTION_ALIGN): New.
18728 2002-01-26  Richard Henderson  <rth@redhat.com>
18730         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
18732 2002-01-26  Richard Henderson  <rth@redhat.com>
18734         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
18735         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
18737 2002-01-26  Kazu Hirata  <kazu@hxi.com>
18739         * config/h8300/h8300.md: Remove bit extraction patterns that
18740         cannot be triggered.
18741         Restrict each bit extraction pattern to a variant on which the
18742         pattern is tested.
18744 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
18746         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
18748 2002-01-26  Kazu Hirata  <kazu@hxi.com>
18750         * config/h8300/h8300.md: Remove bit test patterns that cannot
18751         be triggered.
18752         Restrict each bit test pattern to a variant on which the
18753         pattern is tested.
18755 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18757         * builtins.c (expand_builtin_strncat): Remove redundant check for
18758         INTEGER_CST.
18760 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
18762         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
18763         default setting.
18764         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
18765         existing setting.
18767 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
18769         * dbxout.c (dbxout_init): Use assemble_name rather than just
18770         stripping off the first character.
18771         (dbxout_source_file): Likewise.
18773 2002-01-25  DJ Delorie  <dj@redhat.com>
18775         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
18776         using rtx_equal_p, not by comparing pointers.
18778 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
18780         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
18781         for PIC_OFFSET_TABLE_REGNUM.
18782         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
18784 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
18786         * config.gcc (x86_64-*-freebsd*): New target.
18787         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
18788         value.
18789         (i[34567]86-*-freebsd*): Don't include svr4.h.
18790         * config/i386/freebsd64.h: New file.
18792 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
18794         * config/alpha/x-vms (version): Make static.
18796         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
18797         in previous checkin.
18799         * Makefile.in (install-headers-cp): New target.
18800         * config.gcc (alpha-dec-*vms*): Install headers with
18801         install-headers-cp
18803 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
18805         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
18806         avoid it's copies.
18808 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18810         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
18811         of compare_tree_int.
18812         (expand_builtin_strncat): Likewise.
18813         * c-decl.c (finish_struct): Use tree_low_cst.
18814         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
18815         * tree.c (compare_tree_int): Likewise.
18817 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
18819         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
18820         adjustments even if they are implemented by more than two insns.
18822 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
18824         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
18825         * df.h (struct ref): Kill B.
18826         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
18828         * basic-block.h (PROP_EQUAL_NOTES): New flag.
18829         * flow.c (propagate_one_insn): Use it.
18830         (mark_used_regs): Handle NIL.
18832 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
18834         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
18835         to help folding.
18837 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
18839         * rs6000.md (prefetch): Make address V4SI mode so that the address
18840         is restricted to legitimate form for instruction.
18842 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
18844         * doc/install.texi (xtensa-*-elf): New target.
18845         (xtensa-*-linux*): New target.
18846         * doc/contrib.texi: Add myself.
18848 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
18850         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
18851         purpose register to hold an SImode (or smaller) value.
18853 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
18855         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
18856         registry only.
18857         * crtstuff.c: Likewise.
18859 2002-01-25  Kazu Hirata  <kazu@hxi.com>
18861         * config/h8300/h8300.md (negation patterns): Tighten
18862         predicates to register_operand.
18864 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
18866         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
18867         mode, not Pmode.
18869         * builtins.c (expand_builtin_prefetch): Same.
18871 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
18873         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
18874         modes.
18876 2002-01-24  Kazu Hirata  <kazu@hxi.com>
18878         * config/h8300/h8300.c (print_operand): Remove support for
18879         operand character 'A'.
18880         * config/h8300/h8300.md (three anonymous patterns): Replace
18881         operand character 'A' with either 'T' or 'S'.
18883 2002-01-24  Kazu Hirata  <kazu@hxi.com>
18885         * config/h8300/h8300.c (print_operand): Remove support for
18886         operand character 'U'.
18888 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
18890         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
18892 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
18894         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
18895         values to be assigned to the stack pointer.
18897 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
18899         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
18900         to const_double needs to be done right for big-endian systems.
18902 2002-01-24  Jason Merrill  <jason@redhat.com>
18904         PR c++/2432
18905         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
18906         to can_throw_internal.
18908 2002-01-23  Richard Henderson  <rth@redhat.com>
18910         * fold-const.c (fold): Change UINT_MAX test to check vs precision
18911         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
18913 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
18915         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
18916         (symGOT2reg): Use them, then set as GOT value as unchanging.
18917         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
18918         as a temporary, if possible.
18919         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
18920         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
18922 2002-01-23  Kazu Hirata  <kazu@hxi.com>
18924         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
18925         accept to accept 0x80 as operands[2].
18927 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
18929         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
18931 2002-01-23  Richard Henderson  <rth@redhat.com>
18933         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
18935 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
18937         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
18938         (parmlist_or_identifiers_1): Verify that only a parmlist follows
18939         an attribute.
18941 2002-01-23  Richard Henderson  <rth@redhat.com>
18943         * expr.c (move_by_pieces_1): Extend size before negation.
18945         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
18946         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
18947         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
18948         * config/m68k/t-m68kelf: Likewise.
18950 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
18952         * config/xtensa/elf.h: New file.
18953         * config/xtensa/lib1funcs.asm: New file.
18954         * config/xtensa/lib2funcs.S: New file.
18955         * config/xtensa/linux.h: New file.
18956         * config/xtensa/t-xtensa: New file.
18957         * config/xtensa/xtensa-config.h: New file.
18958         * config/xtensa/xtensa-protos.h: New file.
18959         * config/xtensa/xtensa.c: New file.
18960         * config/xtensa/xtensa.h: New file.
18961         * config/xtensa/xtensa.md: New file.
18962         * config.gcc (xtensa-*-elf*): New target.
18963         (xtensa-*-linux*): New target.
18964         * cse.c (canon_hash): Compare rtx pointers instead of register
18965         numbers.  This is required for the Xtensa port.
18966         * integrate.c (copy_insn_list): Handle case where the static
18967         chain is in memory and the memory address has to be copied to
18968         a register.
18969         * doc/invoke.texi (Option Summary): Add Xtensa options.
18970         (Xtensa Options): New node.
18971         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
18973 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
18975         * diagnostic.c (internal_error): Do ICE suppression only
18976         when ENABLE_CHECKING is not defined.
18978         * c-typeck.c (require_complete_type): Return error_mark_node
18979         if type is error_mark_node.
18981 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
18983         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
18984         -Os and issue a warning.
18986 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
18988         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
18989         current (lack of) need for host configuration by hand.
18991         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
18992         references.  Documentation of some target macros moved from
18993         hostconfig.texi to tm.texi.
18995 2002-01-23  Will Cohen  <wcohen@redhat.com>
18997         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
18998         defined.
19000 2002-01-23  Kazu Hirata  <kazu@hxi.com>
19002         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
19003         operand[3].
19005 2002-01-23  Jason Merrill  <jason@redhat.com>
19007         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
19009         * function.c (assign_parms): Don't put args of inline functions
19010         into registers when not optimizing.
19012 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
19014         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
19015         (prologue_use): New pattern.
19016         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
19017         preference to gen_rtx_USE.
19018         (thumb_expand_prologue): Use gen_prologue_use in preference to
19019         gen_rtx_USE.
19020         (thumb_expand_epilogue): Use gen_prologue_use in preference to
19021         gen_rtx_USE.
19023 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
19025         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
19027 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
19029         PR c/3504
19030         * doc/extend.texi: Correct documentation of __alignof__.
19032 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
19034         * params.h: Rename arguments of DEFPARAM so that it will be
19035         recognized as a translation keyword.
19037 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
19039         * extend.texi: Document altivec functions.
19040         Fix N-bit adjectives in X86 builtin documentation.
19042 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
19044         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
19045         auto_inc_dec values.
19047 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
19049         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
19050         after backslash.
19051         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
19053 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
19055         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
19057 2002-01-22  Richard Henderson  <rth@redhat.com>
19059         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
19060         copy_insn not copy_rtx.
19062 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
19064         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
19065         "nonzero" as that might add "1" bits.  Ensure "constop" is
19066         properly sign extened.
19067         (force_to_mode): Tweak for sign extended constop.
19069 2002-01-22  Richard Henderson  <rth@redhat.com>
19071         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
19072         for_each_rtx instead of assuming we're already looking at the MEM.
19073         (split_small_symbolic_mem_operand): Likewise.
19074         * config/alpha/alpha.h (PREDICATE_CODES): Update.
19075         * config/alpha/alpha.md (small symbolic memory splitters): Update.
19077 2002-01-22  Richard Henderson  <rth@redhat.com>
19079         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
19080         sequence number for the literal.
19081         (divmoddi_internal_er): Likewise.
19083 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19085         PR java/4972
19086         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
19087         in LIBICONV variable.
19088         * configure: Regenerated.
19090 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
19092         * dependence.c (build_def_use): Remove array_idx.
19094         * dwarfout.c (last_filename): Remove.
19095         (output_compile_unit_die): Remove last_filename.
19097 2002-01-22  Roger Sayle  <roger@eyesopen.com>
19098             Richard Henderson  <rth@redhat.com>
19100         PR opt/3640
19101         * fold-const.c (fold): Optimize unsigned comparisons against
19102         UINT_MAX (and similar unsigned constants).
19104 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
19106         * Makefile.in (loop.o): Depend on OPTABS_H.
19107         * loop.c (emit_prefetch_instructions): Check the prefetch operand
19108         against the predicate.
19110         PR target/5379
19111         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
19112         for the address operand.
19114 2002-01-22  Richard Henderson  <rth@redhat.com>
19116         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
19118 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19120         PR other/5450
19121         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
19122         preprocessor flags.
19124 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
19126         * config.gcc (x86_64-*-netbsd*): New target.
19127         * config/i386/netbsd64.h: New file.
19129 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
19131         * regrename.c (kill_value): Fix typo.
19133 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
19135         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
19137         * config/rs6000/rs6000.h: Same.
19139         * function.c (instantiate_virtual_regs): Remove
19140         STARTING_FRAME_PHASE.
19141         (assign_stack_local_1): Same.
19142         Calculate frame phase.
19144 2002-01-22  Nick Clifton  <nickc@redhat.com>
19146         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
19147         variable declaration to outer scope in order to simplify
19148         future extensions.
19149         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
19150         arm_hard_regno_mode_ok.
19151         * config/arm/arm-protos.h: Add a prototype for
19152         arm_hard_regno_mode_ok.
19153         * config/arm/arm.c (soft_df_operand): Remove now redundant
19154         check for DImode values using IP_REGNUM.
19155         (nonimmediate_soft_df_operand): Remove now redundant check for
19156         DImode values using IP_REGNUM.
19157         (arm_hard_regno_mode_ok): New function. New check: make sure
19158         that DImode values are not stored in IP_REGNUM.
19160         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
19161         note with a USE.
19162         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
19164 2002-01-22  Jason Merrill  <jason@redhat.com>
19166         * c-semantics.c (genrtl_compound_stmt): Only check nesting
19167         consistency if this COMPOUND_STMT is scoped.
19169 2002-01-22  Kazu Hirata  <kazu@hxi.com>
19171         * predict.c: Fix formatting.
19172         * print-tree.c: Likewise.
19173         * protoize.c: Likewise.
19174         * real.h: Likewise.
19175         * rtl.h: Likewise.
19176         * sbitmap.h: Likewise.
19177         * scan.c: Likewise.
19178         * sched-deps.c: Likewise.
19179         * sched-vis.c: Likewise.
19180         * sdbout.c: Likewise.
19181         * sibcall.c: Likewise.
19182         * ssa.c: Likewise.
19183         * ssa-ccp.c: Likewise.
19184         * ssa-dce.c: Likewise.
19185         * stmt.c: Likewise.
19186         * stor-layout.c: Likewise.
19187         * system.h: Likewise.
19189 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19191         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
19192         if fits in bounds of base type.
19194         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
19195         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
19196         (add_bound_info, default): If can't find a context, make a
19197         SAVE_EXPR.
19198         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
19200 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
19202         * c-typeck.c (parser_build_binary_op): If result from
19203         build_binary_op is ERROR_MARK just return error_mark_node without
19204         further processing.
19206 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
19208         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
19209         Split a.out-specific bits into...
19210         * config/netbsd-aout.h: ...this.
19211         * config/netbsd-elf.h: New file.
19212         * config/alpha/netbsd-elf.h: Remove.
19213         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
19214         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
19215         (STARTFILE_SPEC): Remove redundant definition.
19216         (ENDFILE_SPEC): Likewise.
19217         (LINK_SPEC): Likewise.
19218         (CPP_SPEC): Likewise.
19219         (ASM_SPEC): Likewise.
19220         (LIB_SPEC): Likewise.
19221         (SWITCH_TAKES_ARG): Likewise.
19222         (TARGET_MEM_FUNCTIONS): Likewise.
19223         (CPP_PREDEFINES): Redefine.
19224         (ASM_FINAL_SPEC): Remove redefinition.
19225         (ASM_COMMENT_START): Redefine.
19226         (FUNCTION_PROFILER): Define.
19227         (TARGET_VERSION): Redefine.
19228         Comment and formatting cleanup.
19229         * config/i386/netbsd.h: Include <netbsd-aout.h>.
19230         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
19231         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
19232         big- or little-endian.
19233         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
19234         * config.gcc (*-*-netbsd*): Add definitions common to all
19235         NetBSD configs.
19236         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
19237         gnu_ld definitions.  Add netbsd-elf.h to and remove
19238         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
19239         tmake_file, and don't lose previous tmake_file contents.
19240         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
19241         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
19242         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
19243         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
19244         (mipsel-*-netbsd*): Rename this to...
19245         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
19246         mips/little.h to tm_file for mips*el-*.
19247         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
19248         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
19249         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
19251 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19253         * pa-protos.h (reg_before_reload_operand): New function prototype.
19254         * pa.c (reg_before_reload_operand): New function implementation.
19255         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
19256         contraints to "*m".
19258 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19260         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
19262 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19264         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
19265         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
19266         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
19267         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
19268         (ENDFILE_SPEC): Undefine.
19269         (STARTFILE_SPEC): Redefine for PA.
19271 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19273         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
19275 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
19277         * config.gcc: Add entries to supported PowerPC --with-cpu
19278         types.
19280 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
19282         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
19283         true for 64-bit mode only SSE registers in 32-bit mode.
19285 2002-01-21  Kazu Hirata  <kazu@hxi.com>
19287         * unwind-dw2.c: Fix formatting.
19288         * unwind-dw2-fde.c: Likewise.
19289         * unwind-dw2-fde.h: Likewise.
19290         * unwind-pe.h: Likewise.
19291         * varasm.c: Likewise.
19292         * varray.h: Likewise.
19294 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
19296         Remove workaround for register stack overwrite bug in mmix.
19297         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
19298         support for TARGET_REG_STACK_FILL_BUG.
19299         * config/mmix/mmix.h: Remove member has_call_without_parameters.
19300         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
19301         Delete.
19302         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
19303         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
19304         -mno-reg-stack-fill-bug-workaround.
19305         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
19306         machine member has_call_without_parameters.
19307         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
19308         -mreg-stack-fill-bug-workaround and
19309         -mno-reg-stack-fill-bug-workaround.
19310         (MMIX Options): Ditto.
19312 2002-01-21  Kazu Hirata  <kazu@hxi.com>
19314         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
19315         as appropriate.
19316         Remove redundant code.
19318 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
19320         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
19321         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
19322         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
19323         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
19324         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
19325         out target macro definitions and non-target-specific comments
19326         mostly taken from old versions of the manual.
19328 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19330         * config/h8300/h8300.h: Fix comment formatting.
19331         * config/ia64/aix.h: Likewise.
19332         * config/ia64/ia64-protos.h: Likewise.
19333         * config/ia64/ia64.c: Likewise.
19334         * config/ia64/ia64.h: Likewise.
19335         * config/ia64/ia64intrin.h: Likewise.
19336         * config/ia64/linux.h: Likewise.
19337         * config/ia64/unwind-aix.c: Likewise.
19338         * config/ia64/unwind-ia64.c: Likewise.
19340 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19342         * config/h8300/h8300.c: Revise comments about shift code.
19344 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19346         * config/h8300/h8300.c (function_arg): Update a comment.
19348 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19350         * config/h8300/h8300.md: Update the comments at the beginning
19351         of the file.
19353 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19355         * config/i370/i370.c: Fix comment formatting.
19356         * config/i370/i370.h: Likewise.
19357         * config/i370/i370.md: Likewise.
19358         * config/i370/linux.h: Likewise.
19360 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19362         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
19364         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
19365         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
19366         in incomplete case.
19368 2002-01-20  Graham Stott  <grahams@redhat.com>
19370         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
19372 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19374         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
19376 2002-01-19  Tom Rix  <trix@redhat.com>
19378         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
19380 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
19382         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
19384         * function.c (assign_stack_local_1): Adjust x_frame_offset with
19385         STARTING_FRAME_PHASE.
19386         (STARTING_FRAME_PHASE): New.
19387         (instantiate_virtual_regs): Check saneness of
19388         STARTING_FRAME_PHASE.
19390         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
19392 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
19394         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
19396 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19398         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
19399         be used for bootstrapping GCC 3.0.
19401 2002-01-18  Kazu Hirata  <kazu@hxi.com>
19403         * config/h8300/h8300.md: Fix an insn length.
19405 2002-01-18  Kazu Hirata  <kazu@hxi.com>
19407         * bitmap.h: Fix comment formatting.
19408         * combine.c: Likewise.
19409         * cppfiles.c: Likewise.
19410         * c-pragma.h: Likewise.
19411         * c-typeck.c: Likewise.
19412         * df.c: Likewise.
19413         * dwarf2out.c: Likewise.
19414         * function.c: Likewise.
19415         * gcc.c: Likewise.
19416         * genattrtab.c: Likewise.
19417         * gthr-win32.h: Likewise.
19418         * haifa-sched.c: Likewise.
19419         * predict.c: Likewise.
19420         * rtlanal.c: Likewise.
19421         * rtl.h: Likewise.
19422         * unwind-dw2-fde.h: Likewise.
19423         * unwind-pe.h: Likewise.
19424         * vmsdbgout.c: Likewise.
19426 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19428         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
19429         if type_required and passed decl.
19431 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
19433         * config.gcc (cpu_type): Include altivec.h in powerpc
19434         extra_headers.
19435         Same for darwin.
19437         * config/rs6000/altivec.h: New.
19439 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
19441         * doc/install.texi (*-ibm-aix*): Update assembler and exception
19442         handling information.
19443         * doc/trouble.texi (Interoperation): Add libstdc++ information
19444         for AIX.
19445         (Misunderstandings): Add template instantiation and static template
19446         member information for AIX.
19448 2002-01-17  Jason Merrill  <jason@redhat.com>
19450         * dbxout.c (dbxout_type): Support const and volatile.
19452         * except.c (add_partial_entry): Remove backwards compatibility code.
19453         (end_protect_partials): Likewise.
19455 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
19457         * config/ia64/ia64.md (prologue_use): New.
19458         * config/ia64/ia64.c (ia64_expand_prologue): Use
19459         gen_prologue_use instead of gen_rtx_USE.
19460         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
19461         as CODE_FOR_pred_rel_mutex.
19462         (ia64_sched_reorder2): Likewise.
19464 2002-01-16  Eric Christopher  <echristo@redhat.com>
19466         * config/mips/r3900.h: Reformat.
19467         (SUBTARGET_CPP_SIZE_SPEC): Remove.
19468         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
19469         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
19470         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
19471         * config/mips/t-elf: Remove mips3 multilib.
19473 2002-01-16  H.J. Lu <hjl@gnu.org>
19475         * config/mips/linux.h: Include "mips/abi64.h".
19477 2002-01-16  H.J. Lu <hjl@gnu.org>
19479         * config/mips/t-linux: New.
19481         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
19483         * config/mips/linux.h: Don't include "gofast.h".
19484         (INIT_SUBTARGET_OPTABS): Removed.
19486 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19488         * config/h8300/h8300-protos.h: Replace emit_a_shift with
19489         output_a_shift.
19490         * config/h8300/h8300.c: Likewise.
19491         * config/h8300/h8300.md: Likewise.
19493 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19495         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
19496         spaces after an opcode name.
19497         (pushqi1_h8300hs): Likewise.
19498         (pushhi1_h8300hs): Likewise.
19500 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19502         * doc/extend.texi: Replace "option" with "attribute"
19503         appropriately.
19505 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19507         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
19508         (and:DI () (const_int -8)).
19509         (split_small_symbolic_mem_operand): Split
19510         (mem (and:DI () (const_int -8)).
19512 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19514         PR target/5309:
19515         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
19516         same way as TYPE_IMUL.
19517         (ultrasparc_sched_reorder): Likewise.
19518         * config/sparc/sparc.md (type): Add comment to update
19519         ultrasparc_sched_reorder when making changes.
19521 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19523         * doc/invoke.texi: Change the dump file name of block
19524         reordering pass from 28.bbro to 29.bbro.
19525         Mention -dk option.
19527 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
19529         * i386.md (minsf splitter): Fix pasto.
19531 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
19533         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
19534         to frame pointer initialisation instruction.
19535         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
19536         initialisation instruction.
19537         (soft_df_operand): Do not accept the IP register.
19538         (nonimmediate_soft_df_operand): Do not accept the IP register.
19540 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19542         PR target/5357:
19543         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
19544         MASK_V8 being both set.
19546 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
19548         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
19549         insn for GOT register; add REG_MAYBE_DEAD notes instead.
19550         config/s390/s390.md (call, call_value): Add GOT register to
19551         CALL_INSN_FUNCTION_USAGE where needed.
19552         (call_exp, call_value_exp): New.
19554 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
19556         * config/arm/arm.c: General formatting tidy up.
19558 2002-01-16  Graham Stott  <grahams@redhat.com>
19560         * calls.c (try_to_integrate): Use "(size_t)" intermediate
19561         cast and when casting an integer literal to "rtx" pointer.
19562         (expand_call): Likewise.
19563         * flow.c (try_pre_increment): Likewise.
19564         (find_use_as_address): Likewise.
19565         * integrate.c (expand_iline_function): Likewise.
19566         * regmove.c (try_auto_increment): Likewise.
19568 2002-01-16  Graham Stott  <grahams@redhat.com>
19570         * sched-rgn.c (passed): Use sbitmap_free.
19571         (header): Likewise.
19572         (inner): Likewise.
19573         (in_queue): Likewise.
19574         (in_stack): Likewise.
19576 2002-01-15  Eric Christopher  <echristo@redhat.com>
19578         * flow.c (propagate_one_insn): Change to use fatal_insn.
19580 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19582         * expmed.c (extract_fixed_bit_field): Remove unused code.
19583         * system.h: Poison SLOW_ZERO_EXTEND.
19584         * doc/tm.texi: Remove.
19585         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
19586         * config/arm/arm.h: Likewise.
19587         * config/avr/avr.h: Likewise.
19588         * config/clipper/clipper.h: Likewise.
19589         * config/convex/convex.h: Likewise.
19590         * config/d30v/d30v.h: Likewise.
19591         * config/dsp16xx/dsp16xx.h: Likewise.
19592         * config/elxsi/elxsi.h: Likewise.
19593         * config/fr30/fr30.h: Likewise.
19594         * config/h8300/h8300.h: Likewise.
19595         * config/i370/i370.h: Likewise.
19596         * config/i386/i386.h: Likewise.
19597         * config/m68k/m68k.h: Likewise.
19598         * config/mips/mips.h: Likewise.
19599         * config/ns32k/ns32k.h: Likewise.
19600         * config/pdp11/pdp11.h: Likewise.
19601         * config/pj/pj.h: Likewise.
19602         * config/s390/s390.h: Likewise.
19603         * config/sh/sh.h: Likewise.
19604         * config/stormy16/stormy16.h: Likewise.
19605         * config/v850/v850.h: Likewise.
19606         * config/vax/vax.h: Likewise.
19607         * config/we32k/we32k.h: Likewise.
19609 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
19611         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
19612         (altivec_lvsl): Change constraint to b.
19613         (altivec_lvsr): Same.
19614         (altivec_lvebx): Same.
19615         (altivec_lvehx): Same.
19616         (altivec_lvewx): Same.
19617         (altivec_lvxl): Same.
19618         (altivec_lvx): Same.
19619         (altivec_stvx): Add parallel.
19620         (altivec_stvxl): Same.
19621         (altivec_stvehx): Same.
19622         (altivec_stvebx): Same.
19623         (altivec_stvebx): Same.
19625 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
19627         * config.gcc: Change altivec.h to altivec-defs.h.
19629         * config/rs6000/altivec.h: Delete.
19631         * config/rs6000/altivec-defs.h: Add.
19633 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19635         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
19636         and UMOD modes.
19638         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
19639         less than or equal to eight bytes.
19641         * vax.md (andsi3): Remove constraints and change SET destination
19642         operand type to nonimmediate_operand.
19643         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
19644         when it is a CONST_INT.
19646 2002-01-15  Jason Merrill  <jason@redhat.com>
19648         * c-common.def (FILE_STMT): New code.
19649         * c-common.c (statement_code_p): It's a statement.
19650         * c-common.h (stmt_tree_s): Add x_last_filename.
19651         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
19652         (last_expr_filename): New macro.
19653         * c-semantics.c (begin_stmt_tree): Initialize it.
19654         (add_stmt): If the filename changed, also insert a
19655         FILE_STMT.
19656         (expand_stmt): Handle seeing one.
19658 2002-01-15  Eric Christopher  <echristo@redhat.com>
19660         * flow.c (propagate_one_insn): Add error message and print out
19661         insn for debugging.
19663 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
19665         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
19666         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
19667         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
19668         TRAMPOLINE_ALIGNMENT.
19669         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
19670         to be in bits.
19671         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
19672         PCC_BITFIELD_TYPE_MATTERS.
19673         * config/interix.h (STDC_VALUE): Remove.  Use
19674         STDC_0_IN_SYSTEM_HEADERS.
19675         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
19676         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
19677         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
19679 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19681         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
19682         not work on this platform currently.
19684 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
19686         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
19687         readonly_warning in _().
19689 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
19691         * gcc.c (delete_if_ordinary): Backout previous change.
19693 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19695         * config/h8300/h8300.c (print_operand): Remove support for
19696         unused operand characters.
19698         * read-rtl.c: Fix formatting.
19699         * real.c: Likewise.
19700         * recog.c: Likewise.
19701         * regclass.c: Likewise.
19702         * regmove.c: Likewise.
19703         * reg-stack.c: Likewise.
19704         * reload1.c: Likewise.
19705         * rtlanal.c: Likewise.
19707 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19709         * config/i386/i386.c: Fix formatting.
19711 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
19713         * c-typeck.c (process_init_element): Don't save_expr
19714         COMPOUND_LITERAL_EXPR if just its initializer will be used.
19716 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
19718         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
19719         emit optional traceback table if optimize_size or TARGET_ELF.
19720         * config/rs6000/rs6000.md (prefetch): New.
19722 2002-01-15  Andreas Jaeger  <aj@suse.de>
19724         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
19726 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19728         * mips-tfile.c: Fix formatting.
19730 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
19732         * unroll.c (final_reg_note_copy): Fix previous commit.
19734 2002-01-14  Kazu Hirata  <kazu@hxi.com>
19736         * config/h8300/h8300-protos.h: Remove the prototype for
19737         eq_operator.
19738         * config/h8300/h8300.c (eq_operator): Remove.
19740 2002-01-14  Richard Henderson  <rth@redhat.com>
19742         * config/i386/i386.md (prefetch): Tidy.
19743         (prefetch_3dnow): Fix locality operand.
19745 2002-01-14  Richard Henderson  <rth@redhat.com>
19747         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
19748         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
19750 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
19752         * reload1.c (reload_combine): Pass reg_sum replacement through
19753         copy_rtx in loop performing multiple changes.
19755 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
19757         * except.c (remove_unreachable_regions): New.
19758         (free_eh_status): Clear exception_handler_labels.
19759         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
19760         (find_exception_handler_labels): Don't add the same label more than
19761         once.
19762         (remove_exception_handler_label): Don't die if
19763         find_exception_handler_labels hasn't been called for the current
19764         function yet.
19766 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
19768         * toplev.c (rest_of_compilation): Rebuild jump labels after
19769         gcse.
19771 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
19773         * doc/extend.texi: Move documentation of X86 built-in functions
19774         here.
19775         * doc/invoke.texi: From here.
19776         * doc/sourcebuild.texi: Document location of documentation for
19777         machine built-in functions.
19779 2002-01-13  Christopher Faylor  <cgf@redhat.com>
19781         * cppfiles.c (TEST_THRESHOLD): New macro.
19782         (SHOULD_MMAP): Ditto.
19783         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
19784         be used.
19786 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
19788         * unroll.c (final_reg_note_copy): Properly handle
19789         REG_LABEL
19790         (unroll_loops): Fix LOOP_CONDITION heuristics.
19792 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
19794         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
19795         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
19797 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
19799         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
19800         threaded loop.
19802 2002-01-14  Tom Rix  <trix@redhat.com>
19804         * config/rs6000/rs6000.md: Fix typo with sradi.
19806 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
19808         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
19809         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
19810         (clrstrdi, clrstrsi): Adapt callers.
19812         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
19814         (movti splitter): Never use register 0 as base register.
19816 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
19818         * combine.c (simplify_shift_const): Always generate new rtx
19819         for shift expression instead of reusing given expression.
19821 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19823         * config/alpha/alpha.c (alpha_expand_mov): Don't call
19824         alpha_legitimize_address unless mode is Pmode.
19826 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
19828         * doc/md.texi (Modifiers): Document the '*' constraint for the
19829         user.
19831         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
19832         * doc/extend.texi (Function Attributes): 'interrupt' is valid
19833         for xstormy16 too.
19835 2002-01-13  Richard Henderson  <rth@redhat.com>
19837         * reload.c (find_reloads): Use a hard reg destination as reload reg
19838         for an input reload of the source.
19840 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19842         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
19843         more generic.
19845 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
19847         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
19848         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
19850         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
19852 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19854         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
19856 2002-01-12  Tom Rix  <trix@redhat.com>
19858         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
19859         TARGET_POWERPC64.
19861 2002-01-12  Richard Henderson  <rth@redhat.com>
19863         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
19865         * doc/invoke.texi: Update Alpha options.
19867         * doc/invoke.texi: Update i386 built-in function lists.
19869 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
19871         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
19872         referencing outside.
19874 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19876         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
19877         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
19878         offsets, and change line folding.
19879         * optabs.c (expand_binop): Remove warnings.
19880         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
19882 2002-01-12  Graham Stott <grahams@redhat.com>
19884         * attribs.c (handle_deprecated_attribute): constify WHAT.
19885         * diagnostic.c (warn_deprecated_use): Add braces, fixes
19886         dangling else warning and constify WHAT.
19887         * except.h (struct function, struct inline_remap): Move
19888         struct tag forward defs before all prototypes.
19889         (duplicate_eh_regions): Whitespace.
19891 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
19893         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
19894         MODE_BASE_REG_CLASS.
19895         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
19897 2002-01-12  Richard Henderson  <rth@redhat.com>
19899         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
19900         (ix86_expand_vector_move): New.
19901         (bdesc_2arg): Remove andps, andnps, orps, xorps.
19902         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
19903         Remove old prefetch builtins.  Special case the logicals removed above.
19904         (ix86_expand_builtin): Likewise.
19905         (safe_vector_operand): Use V4SFmode, not TImode.
19906         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
19907         (ix86_expand_timode_binop_builtin): New.
19908         * config/i386/i386-protos.h: Update.
19909         * config/i386/i386.h (enum ix86_builtins): Update.
19910         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
19911         Use ix86_expand_vector_move in vector move expanders.
19912         (movti_internal, movti_rex64): Add xorps alternative.
19913         (sse_clrv4sf): Rename and adjust from sse_clrti.
19914         (prefetch): Don't work so hard.
19915         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
19916         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
19917         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
19919 2002-01-11  Richard Henderson  <rth@redhat.com>
19921         * config/i386/mmintrin.h: New file.
19922         * config/i386/xmmintrin.h: New file.
19923         * config.gcc (i?86-*-*): Add extra_headers.
19924         * simplify-rtx.c (simplify_unary_operation): Handle saturating
19925         truncation codes.
19926         (simplify_binary_operation): Handle saturating arithmetic codes.
19927         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
19928         not the lowpart subreg.
19929         (ix86_expand_builtin): Return a TImode dummy register instead of 0
19930         on error.
19931         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
19933 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
19935         * conflict.c (conflict_graph_compute): Free regsets when finished.
19936         * ssa.c (compute_coalesced_reg_partition): Likewise.
19938 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19940         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
19941         every where we allocate a register.
19943 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
19945         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
19946         * lcm.c (compute_earliest, compute_farthest): Likewise.
19948 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
19950         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
19952 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
19954         * doc/rtl.texi (Insns): Fix 2 typos.
19956 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
19958         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
19959         options.  Use @table @gcctabopt for MMIX options.  Add index
19960         entries for MMIX options.  Start new paragraph with first
19961         heading of the machine-dependent options.
19963 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19965         PR other/5299
19966         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
19967         * combine.c (force_to_mode): Same.
19968         * reload1.c (clear_reload_reg_in_use): Same.
19970 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
19972         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
19973         and 'subtargets'.
19975 2002-01-11  Andreas Jaeger  <aj@suse.de>,
19976             Brad Lucier <lucier@math.purdue.edu>
19978         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
19979         mcpu.
19981 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
19983         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
19984         Protect with IN_LIBGCC.
19985         (LINK_EH_SPEC): Add required trailing space.
19987 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
19989         * c-tree.h: Move function declarations so that they are listed
19990         under the filename which contains them.
19991         (check_identifier, finish_decl_top_level,
19992         lookup_name_current_level_global, shadow_record_fields): Remove.
19994 2002-01-11  Andreas Jaeger  <aj@suse.de>
19996         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
19997         march.
19999 2002-01-10  Richard Henderson  <rth@redhat.com>
20001         * config/alpha/alpha.c (print_operand): Add 'J'.
20002         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
20003         new operand with the sequence number for the lituse.  When splitting
20004         the insns, use gen_movdi_er_high_g and generate a sequence number.
20005         (gen_movdi_er_high_g): Print the sequence number if non-zero.
20007 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
20009         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
20010         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
20011         stvxl.
20012         (altivec_expand_builtin): Same.
20013         (altivec_expand_stv_builtin): New.
20015         * config/rs6000/rs6000.h (rs6000_builtins): Same.
20017         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
20018         ("altivec_lvehx"): New.
20019         ("altivec_lvewx"): New.
20020         ("altivec_lvxl"): New.
20021         ("altivec_lvx"): New.
20022         ("altivec_stvx"): New.
20023         ("altivec_stvebx"): New.
20024         ("altivec_stvehx"): New.
20025         ("altivec_stvewx"): New.
20026         ("altivec_stvxl"): New.
20028 2002-01-10  Richard Henderson  <rth@redhat.com>
20030         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
20031         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
20032         care not to delete instructions twice.
20034 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
20036         * toplev.c: Don't declare environ (it's not used anywhere).
20037         * configure.in: Don't check for declaration of environ.
20038         * config/i386/xm-mingw32.h: Don't #define environ.
20039         * config.in, configure: Regenerate.
20041 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
20043         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
20044         * configure: Regenerate.
20046         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
20047         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
20048         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
20049         alpha/xm-vms.h.
20050         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
20051         LIMITS_H_TEST here, not in m68k/x-next.
20052         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
20053         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
20055         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
20056         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
20057         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
20059         * config/i386/x-djgpp: Renamed i386/t-djgpp.
20060         * config/m88k/x-dolph: Renamed m88k/t-dolph.
20061         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
20062         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
20063         replacement of quadlib.asm with quadlib.c.
20065         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
20066         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
20067         config/rs6000/xm-beos.h: Delete file.
20069         * config.gcc: Update to match above changes.
20071 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20073         * config/h8300/h8300.h: Fix comment typos.
20074         * config/h8300/h8300.md: Likewise.
20075         * config/h8300/lib1funcs.asm: Likewise.
20077 2002-01-10  Dale Johannesen  <dalej@apple.com>
20079         PR optimization/5269
20080         * unroll.c (precondition_loop_p): Make *increment be the correct
20081         sign when n_iterations known, to avoid confusing caller.
20083 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20085         * doc/extend.texi (deprecated): Fix a typo.
20087 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
20089         * basic-block.h (update_br_prob_note): Declare.
20090         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
20091         (try_forward_edges): Care negative frequencies and update note.
20092         (outgoing_edges_match): Tweek conditional merging heuristics.
20093         (try_crossjump_to_edge): use update_br_prob_note.
20094         * cfglayout.c (fixup_reorder_chain): Likewise.
20095         * cfrtl.c (update_br_prob_note): New.
20096         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
20098         * i386.c (ix86_decompose_address): Return -1 if address contains
20099         shift.
20100         (legitimate_address_p): Require ix86_decompose_address to return 1.
20102         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
20103         (cprop_insn): Likewise.
20105 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20107         * toplev.c: Fix formatting.
20108         * tree.c: Likewise.
20109         * tree-dump.c: Likewise.
20110         * unroll.c: Likewise.
20111         * unwind-dw2.c: Likewise.
20112         * unwind-dw2-fde.c: Likewise.
20113         * unwind-dw2-fde-glibc.c: Likewise.
20114         * unwind-sjlj.c: Likewise.
20116 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
20118         * doc/invoke.texi: Document PDP-11 options.
20120 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20122         * config/h8300/h8300.h: Fix formatting.
20124 2002-01-10  Ira Ruben   <ira@apple.com>
20126         Add __attribute__ ((deprecated)).
20127         * extend.texi: Document __attribute__ ((deprecated)).
20128         * invoke.texi: Document -Wno-deprecated-declarations.
20129         * testsuite/g++.dg/other/deprecated.C: New C++ test.
20130         * testsuite/gcc.dg/deprecated.c: New C test.
20131         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
20132         (c_common_attribute_table): Add "deprecated" entry.
20133         (handle_deprecated_attribute): New function.
20134         * c-decl.c (deprecated_states): New enum.
20135         deprecated_state: State of "deprecated" handling.
20136         (start_decl): Set deprecated_state based on attributes.
20137         (grokdeclarator): Test for deprecated uses, propagate attribute.
20138         * c-typeck.c (build_component_ref): Test for deprecated fields.
20139         (build_external_ref): Test for deprecated primaries.
20140         * diagnostic.c (warn_deprecated_use) New function to issue
20141         warnings about __attribute__ ((depricated)) references.
20142         * flags.h (warn_deprecated_decl): Extern declared for
20143         -W[no-]deprecated-declarations option.
20144         * print-tree.c (print_node): Show deprecated flag status.
20145         * toplev.c (warn_deprecated_decl): Defined.
20146         (W_options): Added "deprecated-declaration".
20147         * toplev.h (warn_deprecated_use): Extern declared.
20148         * tree.h (struct tree_common): Define deprecated_flag.
20149         (TREE_DEPRECATED): New macro to access flag.
20150         * cp/call.c (build_call): Test for deprecated calls.
20151         * cp/class.c (add_implicitly_declared_members): Set global
20152         flag to tell grokdeclarator to not issue deprecated warnings.
20153         * cp/cp-tree.h: Add extern for adding_implicit_members.
20154         * cp/decl.c (deprecated_states): New enum.
20155         (start_decl): Set deprecated_state based on attributes.
20156         (grokdeclarator): Test for deprecated uses, propagate attribute.
20157         * cp/lex.c (do_identifier): Test for deprecated primaries.
20158         * cp/typeck.c (build_component_ref): Test for deprecated fields.
20160 2002-01-10  Ira Ruben   <ira@apple.com>
20162         Fix to assign attributes to inline member functions.
20163         * cp/decl.c (start_method): Handle attrlist.
20165 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20167         * combine.c (expand_field_assignment): Use subreg_lsb().
20169 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
20171         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
20172         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
20173         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
20174         Recurse for any operand of AND as long as constant is non-zero.
20176 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20178         * config/h8300/h8300.md: Remove constraints from expanders.
20180 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20182         * varasm.c: Fix formatting.
20183         * varray.c: Likewise.
20184         * vmsdbgout.c: Likewise.
20185         * xcoffout.c: Likewise.
20187 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
20189         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
20190         update edge probabilities to match.
20192 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
20194         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
20195         dependencies.
20196         * doc/languages.texi, doc/sourcebuild.texi: New files.
20197         * doc/configfiles.texi: Make a subsubsection.  Update.
20198         * doc/configterms.texi: Add @node.  Remove warning that this isn't
20199         instructions for building GCC.
20200         * doc/makefile.texi: Make a subsection.
20201         * doc/gccint.texi: Update.
20203 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
20205         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
20207 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
20209         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
20211 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
20213         * optabs.c (expand_fix): Look for wider integer modes first.
20215         * i386.md (mov?f): Avoid the fake const double trick for medium
20216         memory model.
20217         (min?f*/max?f*): Prohibit memory operands for i387 variant.
20218         (fop_df_4): Disable for SSE compilation.
20220 2002-01-10  Graham Stott  <grahams@redhat.com>
20222         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
20223         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
20225 2002-01-10  Richard Henderson  <rth@redhat.com>
20227         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
20229 2002-01-10  Richard Henderson  <rth@redhat.com>
20231         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
20232         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
20234 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20236         * combine.c (can_combine_p): Fix a comment typo.
20238 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
20240         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
20241         empty list correctly.  Change loop index $t to $f for
20242         consistency with rest of Makefile.
20244 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
20246         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
20247         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20249         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
20250         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
20251         (altivec_init_builtins): Same.
20252         (altivec_expand_unop_builtin): Return NULL_RTX on error.
20253         (altivec_expand_binop_builtin): Same.
20254         (altivec_expand_ternop_builtin): Same.
20255         (bdesc_dst): New.
20257         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
20258         ("altivec_vctuxs"): Fix typo.
20259         ("altivec_vnmsubfp"): Same.
20260         ("altivec_dssall"): New.
20261         ("altivec_mfvscr"): New.
20262         ("altivec_dss"): New.
20263         ("altivec_lvsl"): New.
20264         ("altivec_lvsr"): New.
20265         ("altivec_dstt"): New.
20266         ("altivec_dstst"): New.
20267         ("altivec_dststt"): New.
20268         ("altivec_dst"): New.
20270         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
20271         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20273 2002-01-09  Richard Henderson  <rth@redhat.com>
20275         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
20277 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
20279         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
20280         function.
20281         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
20282         prototype.
20283         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
20285 2002-01-09  Kazu Hirata  <kazu@hxi.com>
20287         * read-rtl.c: Fix formatting.
20288         * real.c: Likewise.
20289         * regclass.c: Likewise.
20290         * regrename.c: Likewise.
20291         * reg-stack.c: Likewise.
20292         * reload1.c: Likewise.
20293         * reload.c: Likewise.
20294         * rtl.c: Likewise.
20296 2002-01-09  Kazu Hirata  <kazu@hxi.com>
20298         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
20299         to extract items in the expr_list chain.
20301 2002-01-09  Richard Henderson  <rth@redhat.com>
20303         * config/vax/vax.c (vax_rtx_cost): Never abort.
20305         * config/vax/vax.h (REAL_ARITHMETIC): Define.
20307 2002-01-09  Jan Hubicka  <jh@suse.cz>
20309         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
20311 2002-01-09  Richard Henderson  <rth@redhat.com>
20313         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
20314         Unify code from various alternatives.
20316 2002-01-09  Richard Henderson  <rth@redhat.com>
20318         * regrename.c (copy_value): Ignore the copy if the source register
20319         is present in the value chain with a narrower mode.
20321 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
20323         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
20324         for the c4x target. Also improve layout.
20326 2002-01-09  Richard Henderson  <rth@redhat.com>
20328         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
20329         * config/m32r/m32r.md (and ior xor splitters): Swap operands
20330         to match insn patterns.
20332 2002-01-09  Richard Henderson  <rth@redhat.com>
20334         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
20335         (copyprop_hardreg_forward_1): Likewise.
20337 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20339         * pa.md (decrement_and_branch_until_zero): Change predicate for
20340         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
20342 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
20344         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
20345         gets undefined. For Darwin.
20347 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20349         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
20351 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20353         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
20355 2002-01-08  Richard Henderson  <rth@redhat.com>
20357         * regrename.c (copy_value): Ignore overlapping copies.
20359 2002-01-08  Richard Henderson  <rth@redhat.com>
20361         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
20362         as needed to avoid shared structure.
20364 2002-01-08  Kazu Hirata  <kazu@hxi.com>
20366         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
20367         H8/300H and H8/S.
20369 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20371         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
20372         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
20373         documentation of obsolete macros.
20374         * system.h: Poison these macros.
20375         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
20376         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
20377         config/c4x/c4x.h, config/clipper/clipper.h,
20378         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
20379         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
20380         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
20381         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
20382         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
20383         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
20384         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
20385         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
20386         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
20387         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
20388         config/sparc/sparc.h, config/stormy16/stormy16.h,
20389         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
20390         definitions and commented out definitions of obsolete macros.
20391         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
20392         of MAX_INT_TYPE_SIZE.
20394 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
20396         * config/s390/s390.c (s390_preferred_reload_class): Never
20397         return ADDR_REGS if it isn't a subset of the given class.
20398         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
20399         FP_REGS, but all superclasses as well.
20401         * config/s390/s390.c (s390_function_profiler): Fix thinko.
20403         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
20404         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
20405         must not be a const_int.
20407 2002-01-08  Richard Henderson  <rth@redhat.com>
20409         * Makefile.in (toplev.o): Depend on options.h.
20410         (gcc.o): Depend on specs.h.
20412 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
20414         * expr.c (store_expr): Convert VOIDmode constants back to target's
20415         mode.
20417 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
20419         * doc/invoke.texi: Markup gcc as @command.  Refer to
20420         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
20421         of http://gcc.gnu.org/thanks.html.
20423 2002-01-08  Dale Johannesen  <dalej@apple.com>
20425         * config/rs6000/rs6000.md: Add missing int register
20426         target case to movdf_low.
20428 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
20430         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
20431         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
20432         (cppinit.o): Depend on except.h.
20433         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
20434         s-specs): New rules.
20436         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
20437         Don't create specs.h/options.h/gencheck.h here.  Remove
20438         unnecessary variable settings from last argument of AC_OUTPUT.
20439         * config.in, configure: Regenerate.
20440         * intl.c: Hardcode package name as "gcc".
20442         * cppinit.c: Include except.h.
20443         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
20444         appropriate.
20445         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
20446         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
20447         (!)USING_SJLJ_EXCEPTIONS.
20448         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
20450 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20452         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
20453         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
20454         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
20455         documentation of obsolete macros.
20456         * system.h: Poison these macros.
20457         * config/d30v/d30v.h, config/ns32k/encore.h,
20458         config/stormy16/stormy16.h: Remove definitions and commented out
20459         definitions of obsolete macros.
20461 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
20463         * objc/objc-act.c (handle_class_ref): Mark the declaration of
20464         %sobjc_class_ref_%s as used - to prevent unwanted compiler
20465         warnings.
20467 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
20469         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
20470         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
20471         to insn adjusting stack/frame pointer.
20472         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
20473         accept operands that cause the insn to be non-splittable.
20475 2002-01-08  Graham Stott  <grahams@redhat.com>
20477         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
20478         (C_TYPE_FIELDS_VOLATILE): Likewise.
20479         (C_TYPE_BEING_DEFINED): Likewise.
20480         (C_IS_RESERVED_WORD): Likewise.
20481         (C_TYPE_VARIABLE_SIZE): Likewise.
20482         (C_DECL_VARIABLE_SIZE): Likewise.
20483         (C_MISSING_PROTOTYPE_WARNED): Likewise.
20484         (C_SET_EXP_ORIGINAL_CODE): Likewise.
20485         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
20486         parenthesis.
20487         (C_DECL_ANTICIPATED): Likewise.
20488         (c_build_type_variant): Add parenthesis.
20490 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20492         * gcc.c (option_map): Remove --version.
20493         (process_command): Handle -fversion following the GNU Coding
20494         Standards.  Partially addresses PR other/704.
20496 2002-01-08  Graham Stott  <grahams@redhat.com>
20498         * combine.c (combine_instructions): Fix typo.
20500 2002-01-08  Graham Stott  <grahams@redhat.com>
20502         * debug.h: Use "tree" and "rtx" throughout.
20504         * debug.c: Likewise.
20506 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
20508         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
20509         constant pool, use the pool's version of the symbol instead.
20511 2002-01-07  Richard Henderson  <rth@redhat.com>
20513         * regrename.c (find_oldest_value_reg): Ignore the value chain if
20514         the original register was copied in a mode with a fewer number of
20515         hard registers than the desired mode.
20516         (copyprop_hardreg_forward_1): Likewise.
20517         (debug_value_data): Fix loop test.
20518         * toplev.c (parse_options_and_default_flags): Reenable
20519         -fcprop-registers at -O1.
20521 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20523         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
20524         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
20526         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
20527         predicates.
20529         * config/rs6000/rs6000.md: Add altivec predicate patterns.
20531 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20533         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
20534         (pa_output_function_prologue): Output local label at the beginning of
20535         the prologue when profiling.
20536         (hppa_profile_hook): Use the local label rather than the function label.
20537         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
20539 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20541         * config/rs6000/rs6000.c (print_operand): Remove extra space.
20542         (altivec_expand_unop_builtin): Fix thinko.
20543         (altivec_expand_binop_builtin): Same.
20544         (altivec_expand_ternop_builtin): Same.
20545         (altivec_expand_builtin): Same.
20547 2002-01-07  Richard Henderson  <rth@redhat.com>
20549         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
20551 2002-01-07  Jason Merrill  <jason@redhat.com>
20553         * unwind-dw2.c (execute_cfa_program): Use < again.
20555 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
20557         * predict.c (combine_predictions_for_insn): Avoid division by zero.
20559 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
20561         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
20562         Don't allow -1 - x -> ~x simplifications in the first pass.
20564 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20566         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
20567         arguments.
20568         (altivec_expand_binop_builtin): Same.
20569         (altivec_expand_unop_builtin): Same.
20570         (print_operand): Fix typo.
20571         (bdesc_1arg): Add vupk* variants.
20573         * rs6000.h (rs6000_builtins): Add vupk* enums.
20575         * rs6000.md: Add altivec_vupk* variants.
20577 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
20579         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
20580         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
20581         and last update dates.
20583 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
20585         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
20587 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
20589         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
20590         * config/avr/avr.h (CPP_SPEC): Likewise.
20591         (LINK_SPEC): Likewise.
20592         (CRT_BINUTILS_SPECS): Likewise.
20593         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
20594         * doc/invoke.texi (AVR Options): Document them.
20596 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
20598         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
20599         LABEL_NUSES.
20601 2002-01-07  Graham Stott  <grahams@redhat.com>
20603         * config/i386/i386.h: Update copyright date.
20604         (HALF_PIC_PTR): Add parenthesis.
20605         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
20606         (CONSTANT_ALIGNMENT): Add parenthesis.
20607         (DATA_ALIGNMENT): Likewise.
20608         (LOCAL_ALIGNMENT): Likewise.
20609         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
20610         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
20611         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
20612         (HARD_REGNO_NREGS): Add paranethesis.
20613         (VALID_SSE_REG_MODE): Whitespace.
20614         (VALID_MMX_REG_MODE): Whitespace.
20615         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
20616         (ix86_hard_regno_mode_ok): Add parenthesis.
20617         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
20618         (RETURN_IN_MEMORY): Whitespace.
20619         (N_REG_CLASSES): Add parenthesis.
20620         (INTEGER_CLASS_P): Add parenthesis and wrap.
20621         (FLOAT_CLASS_P): Likewise.
20622         (SSE_CLASS_P): Likewise.
20623         (MMX_CLASS_P): Likewise.
20624         (MAYBE_INTEGER_CLASS_P): Likewise.
20625         (MAYBE_FLOAT_CLASS_P): Likewise.
20626         (MAYBE_SSE_CLASS_P): Likewise.
20627         (MAYBE_MMX_CLASS_P): Likewise.
20628         (Q_CLASS_P): Likewise.
20629         (GENERAL_REGNO_P): Uppercase macro parameter.
20630         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
20631         (FP_REGNO_P): Likewise.
20632         (ANY_FP_REGNO_P): Uppercase macro parameter.
20633         (SSE_REGNO_P): Likewise.
20634         (SSE_REGNO): Likewise.
20635         (SSE_REG_P): Likewise.
20636         (SSE_FLOAT_MODE_P): Likewise.
20637         (MMX_REGNO_P): Likewise.
20638         (MMX_REG_P):Likewise.
20639         (STACK_REG_P): Likewise.
20640         (NON_STACK_REG_P): Likewise.
20641         (STACK_TOP_P): Likewise.
20642         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
20643         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
20644         (SECONDARY_MEMORY_NEEDED): Likewise.
20645         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
20646         (MD_ASM_CLOBBERS): Whitespace and wrap.
20647         (MUST_PASS_IN_STACK): Whitespace and wrap.
20648         (RETURN_POPS_ARGS): Add parenthesis.
20649         (INIT_CUMULATIVE_ARGS): Likewise.
20650         (FUNCTION_ARG): Likewise.
20651         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
20652         (SETUP_INCOMING_VARARGS): Likewise.
20653         (BUILD_VA_LIST_TYPE):  Add parenthesis.
20654         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
20655         parenthsis.
20656         (EXPAND_BUILTIN_VA_ARG): Likewise.
20657         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
20658         (INITIALIZE_TRAMPOLINE): Add parenthesis.
20659         (INITIAL_ELIMINATION_OFFSET): Likewise.
20660         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
20661         (REGNO_OK_FOR_BASE_P): Likewise.
20662         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
20663         (REGNO_OK_FOR_DIREG_P): Likewise.
20664         (REG_OK_FOR_INDEX_P): Whitespace.
20665         (REG_OK_FOR_BASE_P): Whitespace.
20666         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
20667         parenthesis.
20668         (FIND_BASE_TERM): Fix typo.
20669         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
20670         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
20671         (SYMBOLIC_CONST; Whitespace.
20672         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
20673         (ENCODE_SECTION_INFO): Whitespace.
20674         (FINALIZE_PIC): Remove do { ... } while (0).
20675         (PROMOTE_MODE): Wrap in do { ... } while (0).
20676         (CONST_COSTS): Whitespace.
20677         (RTX_COSTS): Add paramethesis, whitespace and wrap.
20678         (REGISTER_MOVE_COST): Add parenthesis.
20679         (MEMORY_MOVE_COST): Likewise.
20680         (EXTRA_CC_MODES): Whitespace.
20681         (SELECT_CC_MODE): Add parenthesis and whitespace.
20682         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
20683         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
20684         (ASM_OUTPUT_LABEL): Add paramethesis.
20685         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
20686         (ASM_OUTPUT_REG_POP): Likewise.
20687         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
20688         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20690         * config/i386/i386.c: Update copyright.
20691         (CHECK_STACK_LIMIT): Add parenthesis.
20692         (AT_BP): Uppercase macro parameter.
20693         (x86_64_int_parameter_registers): Constify.
20694         (x86_64_int_return_registers): Likewise.
20695         (ix86_compare_op0): Use rtx.
20696         (construct_container): Constify INTREG parameter.
20697         (function_arg): Use rtx.
20699         * diagnostic.h: Update copyright date.
20700         (output_buffer_state): Add parenthesis.
20701         (output_buffer_format_args): Likewise.
20703         * combine.c (combine_instructions): Replace XEXP (links, 0)
20704         with link.
20706 2002-01-06  H.J. Lu <hjl@gnu.org>
20708         * cfgcleanup.c (thread_jump): Fix 2 typos.
20710 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
20712         * config.gcc: Add support for --enable-altivec.
20714 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20716         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
20718 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
20720         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
20721         __objc_class_name_*.
20723 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20725         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
20727 2002-01-06  Richard Henderson  <rth@redhat.com>
20729         * reorg.c (emit_delay_sequence): Remove death notes, not merely
20730         nop them out.  Increment label reference count for REG_LABEL.
20731         (fill_slots_from_thread): Frob label reference count around
20732         delete_related_insns.
20734 2002-01-05  Richard Henderson  <rth@redhat.com>
20736         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
20737         jump threading.
20739 2002-01-05  Richard Henderson  <rth@redhat.com>
20741         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
20742         * integrate.c (output_inline_function): Likewise.
20743         * toplev.c (rest_of_compilation): Do it here instead.  Move call
20744         to remove_unnecessary_notes after emitting abstract instance.
20745         Force an emitted nested function to have its parent emited as well.
20746         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
20747         for null.
20748         (rtl_for_decl_location): Do not look at reload data structures
20749         before reload has run.
20751 2002-01-05  Kazu Hirata  <kazu@hxi.com>
20753         * cse.c: Fix formatting.
20754         * dwarf2asm.c: Likewise.
20755         * dwarf2out.c: Likewise.
20756         * explow.c: Likewise.
20757         * expmed.c: Likewise.
20758         * function.c: Likewise.
20759         * gcov.c: Likewise.
20760         * gencheck.c: Likewise.
20761         * genrecog.c: Likewise.
20762         * ggc-common.c: Likewise.
20763         * ggc-page.c: Likewise.
20764         * global.c: Likewise.
20766 2002-01-05  Kazu Hirata  <kazu@hxi.com>
20768         * combine.c: Fix formatting.
20770 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
20772         PR middle-end/1557
20773         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
20775 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
20777         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
20778         as 1 for __powerpc64__ as well.
20780         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
20782         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
20783         return it.
20785 2002-01-05  Daniel Berlin  <dan@dberlin.org>
20787         * lcm.c: Revert change, due to performance regression it causes on
20788         SPEC because it's slightly more conservative (sigh, I hate
20789         edge-based LCM).
20791 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
20793         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
20795 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
20797         * doc/cppinternals.texi: Update.
20799 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
20801         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
20802         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
20803         negatives.
20804         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
20805         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
20806         kludge for pre-october-14th mmix versions to handle new-found bug
20807         with PUSHJ/PUSHGO and the register stack.
20808         * config/mmix/mmix.h (struct machine_function): Rename member
20809         has_call_value_without_parameters to has_call_without_parameters.
20810         All referers changed.
20811         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
20812         TARGET_MASK_BRANCH_PREDICT): New macros.
20813         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
20814         -mno-reg-stack-fill-bug-workaround.
20815         * config/mmix/mmix.md ("call"): Set struct machine member
20816         has_call_without_parameters.
20818 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
20820         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
20822 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
20824         * cfgcleanup.c: Include tm_p.h
20825         (mark_effect): Fix handling of hard register; fix handling of SET
20827 2002-01-04  Kazu Hirata  <kazu@hxi.com>
20829         * config/h8300/h8300.md (anonymous patterns): Check that
20830         operands are registers before using REGNO on them.
20832 2002-01-03  Roland McGrath  <roland@frob.com>
20834         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
20836 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
20838         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
20839         * c-common.h (genrtl_expr_stmt_value): Likewise.
20840         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
20841         (expand_expr_stmt_value): Add maybe_last argument.
20842         Don't warn about statement with no effect if it is the last statement
20843         in expression statement.
20844         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
20845         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
20846         expand_expr_stmt_value.
20847         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
20848         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
20849         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
20850         as maybe_last to expand_expr_stmt_value.
20852 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
20854         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
20855         be passed in, do not build it.
20856         (c_begin_if_stmt): New function.
20857         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
20858         * c-common.h (c_expand_start_cond): Update prototype.
20859         (c_begin_if_stmt): Prototype new function.
20860         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
20861         * c-parse.in (if_prefix): Use c_begin_if_stmt,
20862         c_begin_while_stmt and c_finish_while_stmt_cond.
20864 2002-01-04  William Cohen  <wcohen@redhat.com>
20866         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
20867         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
20868         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
20869         * config/pa/som.h (ASM_FILE_START): Likewise.
20871 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
20873         * lcm.c: Include df.h.
20874         Add available_transfer_function prototype.
20875         (compute_available): Rework to use iterative dataflow framework.
20876         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
20877         with bb_info in df.h
20878         (available_transfer_function): New function.
20880         * Makefile.in (lcm.o): add df.h to dependencies.
20882 2002-01-04  Richard Henderson  <rth@redhat.com>
20884         * config/alpha/alpha.c (some_operand): Accept HIGH.
20885         (input_operand): Likewise; accept simple references to globals.
20886         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
20887         (alpha_const_double_ok_for_letter_p): Likewise.
20888         (alpha_extra_constraint): Likewise.
20889         (alpha_preferred_reload_class): Likewise.  Do not force
20890         symbolic constants to memory.
20891         (alpha_legitimate_address_p): Accept simple references
20892         to small_symbolic_operand.
20893         (alpha_legitimize_address): New arg scratch.  Be prepared to be
20894         called when no_new_pseudos.  Emit simple symbolic references.
20895         Split integers into low, high, and rest.
20896         (alpha_expand_mov): Use alpha_legitimize_address.
20897         (some_small_symbolic_mem_operand): New.
20898         (split_small_symbolic_mem_operand): New.
20899         * config/alpha/alpha-protos.h: Update.
20900         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
20901         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
20902         (EXTRA_CONSTRAINT): Likewise.
20903         (PREFERRED_RELOAD_CLASS): Likewise.
20904         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
20905         (PREDICATE_CODES): Update.
20906         * config/alpha/alpha.md: New post-reload splitters to convert
20907         simplfied symbolic operands to the form that references $29.
20908         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
20909         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
20911 2002-01-03  Richard Henderson  <rth@redhat.com>
20913         * local-alloc.c (function_invariant_p): Update commentary.
20915 2002-01-04  H.J. Lu <hjl@gnu.org>
20917         * toplev.c (rest_of_compilation): Fix a typo when calling
20918         cleanup_cfg.
20920 2002-01-03  Kazu Hirata  <kazu@hxi.com>
20922         * c-common.c: Fix formatting.
20923         * diagnostic.c: Likewise.
20924         * doloop.c: Likewise.
20925         * dwarf2out.c: Likewise.
20927 2002-01-03  Kazu Hirata  <kazu@hxi.com>
20929         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
20930         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
20932 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
20934         * cpperror.c: Update comments and copyright.
20935         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
20936         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
20938 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20940         * collect2.c (main): Use strcmp when testing for "-shared".
20942 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
20944         * cppmacro.c: Don't include intl.h.  Update comments.
20945         (new_number_token): Allocate enough buffer for 64-bit unsigned
20946         integers; update prototype.
20947         * cppmain.c: Update comments.
20949 2002-01-03  William Cohen  <wcohen@redhat.com>
20951         * function.h (struct function): Add profile.
20952         (current_function_profile): New.
20953         doc/extend.texi: Update documentation.
20954         * final.c (final_start_function): Use current_function_profile
20955         instead of profile_flag.
20956         (profile_after_prologue): Likewise.
20957         * function.c (expand_function_start): Likewise.
20958         (expand_function_start): Likewise.
20959         * config/alpha/alpha.c (direct_call_operand):
20960         (alpha_does_function_need_gp): Likewise.
20961         (alpha_expand_prologue): Likewise.
20962         * config/arm/arm.c (arm_expand_prologue): Likewise.
20963         thumb_expand_prologue: Likewise.
20964         * config/d30v/d30v.c (d30v_stack_info): Likewise.
20965         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
20966         (fr30_expand_prologue): Likewise.
20967         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
20968         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
20969         * config/i386/i386.h (FINALIZE_PIC): Likewise.
20970         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
20971         * config/i960/i960.c (i960_output_function_prologue): Likewise.
20972         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
20973         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
20974         (m32r_expand_prologue): Likewise.
20975         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
20976         (m88k_expand_prologue): Likewise.
20977         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
20978         * config/mips/mips.c (compute_frame_size): Likewise.
20979         (mips_expand_prologue): Likewise.
20980         (mips_can_use_return_insn): Likewise.
20981         * config/pa/elf.h (ASM_FILE_START): Likewise.
20982         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
20983         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
20984         * config/pa/som.h (ASM_FILE_START): Likewise.
20985         * config/romp/romp.c (romp_using_r14): Likewise.
20986         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
20987         (rs6000_stack_info): Likewise.
20988         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
20989         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
20990         * config/v850/v850.c (compute_register_save_size): Likewise.
20992 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
20994         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
20995         gen_lowpart_common fails, use gen_lowpart_SUBREG.
20997 2002-01-03  Turly O'Connor  <turly@apple.com>
20999         * darwin.c (machopic_output_possible_stub_label): Don't generate
21000         stub routines for pseudo-stubs which we've just defined.
21002 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21004         * builtins.c: Fix formatting.
21005         * c-typeck.c: Likewise.
21006         * combine.c: Likewise.
21007         * expr.c: Likewise.
21008         * loop.c: Likewise.
21010 2002-01-03  Andreas Schwab  <schwab@suse.de>
21012         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
21013         and return true if _cpp_push_next_buffer pushed a new include
21014         file.
21015         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
21016         _cpp_pop_file_buffer did not push a new file.
21017         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
21019 2002-01-02  Eric Christopher  <echristo@redhat.com>
21021         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
21022         FIND_REG_INC_NOTE call. Update copyright.
21023         * loop.c (canonicalize_condition): Ditto.
21024         * reorg.c (delete_scheduled_jump): Ditto.
21026 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21028         * gcse.c: Fix formatting.
21030 2002-01-03  Graham Stott  <grahams@redhat.com>
21032         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
21033         forward defs for struct tags rtx_def, union_tree, rtvec_def
21034         also output corresponding typedefs for rtx, tree, and rtvec.
21036         * system.h: Move forward defs for struct tags rtx_def, union_tree,
21037         rtvec_def along with corresponding typedefs for rtx, tree, and
21038         rtvec to config.h, hconfig.h, tconfig.h.
21040 2002-01-03  Graham Stott  <grahams@redhat.com>
21042         * tree.h: Update copyright date.
21043         (IS_EXPR_CODE_CLASS): Add parenthesis.
21044         (TREE_SET_CODE): Add whitespace.
21045         (TREE_CHECK): Add parenthesis.
21046         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
21047         (CST_OR_CONSTRUCTOR_CHECK):
21048         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
21049         (TREE_SYMBOL_REFERENCED): Whitespace.
21050         (INT_CST_LT): Likewise.
21051         (INT_CST_LT_UNSIGNED): Likewise.
21052         (tree_real_cst): Unwrap comment.
21053         (tree_string): Likewise.
21054         (tree_complex): Likewise.
21055         (IDENTIFIER_POINTER): correct cast.
21056         (SAVE_EXPR_CONTEXT): Whitespace.
21057         (EXPR_WFL_FILENAME_NODE): Likewise.
21058         (EXPR_WFL_FILENAME): Remove parenthesis.
21059         (DECL_ORIGIN): Add parenthesis.
21060         (DECL_FROM_INLINE): Use NULL_TREE.
21061         (build_int_2): Whitespace.
21062         (build_type_variant): Add parenthesis.
21064         * gcc/jcf-parse.c: Update copyright date.
21065         (yyparse): Constify resource_filename.
21067 2002-01-03  Graham Stott  <grahams@redhat.com>
21069         * rtl.h: Update copyright date.
21070         (RTL_CHECK1): Wrap long line.
21071         (RTL_CHECK2): Likewise.
21072         (RTL_CHECKC1): Wrap long line and whitespace.
21073         (RTL_CHECKC2): Likewise.
21074         (XWINT): Whitespace.
21075         (XINT): Likewise.
21076         (XSTR): Likewise.
21077         (XEXP): Likewise.
21078         (XVEC): Likewise.
21079         (XMODE): Likewise.
21080         (XBITMAP): Likewise.
21081         (XTREE): Likewise.
21082         (XBBDEF): Likewise.
21083         (XTMPL): Likewise.
21084         (X0WINT): Likewise.
21085         (X0INT):Likewise.
21086         (X0UINT): Likewise.
21087         (X0STR): Likewise.
21088         (X0EXP): Likewise.
21089         (X0VEC): Likewise.
21090         (X0MODE): Likewise.
21091         (X0BITMAP): Likewise.
21092         (X0TREE): Likewise.
21093         (X0BBDEF): Likewise.
21094         (X0ADVFLAGS): Likewise.
21095         (X0CSELIB): Likewise.
21096         (X0MEMATTR): Likewise.
21097         (XCWINT): Likewise.
21098         (XCINT): Likewise.
21099         (XCUINT): Likewise.
21100         (XCSTR): Likewise.
21101         (XCEXP): Likewise.
21102         (XCVEC): Likewise.
21103         (XCMODE): Likewise.
21104         (XCBITMAP): Likewise.
21105         (XCTREE): Likewise.
21106         (XCBBDEF): Likewise.
21107         (XCADVFLAGS): Likewise.
21108         (XCCSELIB): Likewise.
21109         (XC2EXP): Likewise.
21110         (INSN_UID): Likewise.
21111         (PREV_INSN): Likewise.
21112         (PATTERN): Likewise.
21113         (INSN_CODE): Likewise.
21114         (PUT_REG_NOTE_KIND): Likewise.
21115         (CODE_LABEL_NUMBER): Likewise.
21116         (NOTE_SOURCE_FILE): Likewise.
21117         (NOTE_BLOCK): Likewise.
21118         (NOTE_EH_HANDLER): Likewise.
21119         (NOTE_RANGE_INFO): Likewise.
21120         (NOTE_LIVE_INFO): Likewise.
21121         (NOTE_BASIC_BLOCK): Likewise.
21122         (NOTE_EXPECTED_VALUE): Likewise.
21123         (NOTE_LINE_NUMBER): Likewise.
21124         (LABEL_NAME): Likewise.
21125         (LABEL_NUSES): Likewise.
21126         (LABEL_ALTERNATE_NAME): Likewise.
21127         (ADDRESSOF_DECL): Likewise.
21128         (JUMP_LABEL): Likewise.
21129         (LABEL_NEXTREF): Likewise.
21130         (REGNO): Likewise.
21131         (ORIGINAL_REGNO: Likewise.
21132         (HARD_REGISTER_NUM_P): Add parenthesis.
21133         (SUBREG_REG): Whitespace.
21134         (SUBREG_BYTE): Likewise.
21135         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
21136         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
21137         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
21138         (ASM_OPERANDS_INPUT_VEC): Likewise.
21139         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
21140         (ASM_OPERANDS_INPUT): Likewise.
21141         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
21142         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
21143         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
21144         (ASM_OPERANDS_INPUT_MODE): Likewise.
21145         (ASM_OPERANDS_SOURCE_FILE): Likewise.
21146         (ASM_OPERANDS_SOURCE_LINE): Likewise.
21147         (MEM_SET_IN_STRUCT_P): Minor reformat.
21148         (TRAP_CONDITION): Whitespace.
21149         (TRAP_CODE): Likewise.
21150         (COND_EXEC_TEST): Likewise.
21151         (COND_EXEC_CODE): Likewise.
21152         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
21153         (PHI_NODE_P): Add parenthesis.
21154         (plus_constant): Whitespace and add parenthesis.
21156 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21158         * config/avr/avr.c: Fix comment typos.
21159         * config/c4x/c4x.md: Likewise.
21160         * config/dsp16xx/dsp16xx.h: Likewise.
21161         * config/dsp16xx/dsp16xx.md: Likewise.
21162         * config/i386/i386.md: Likewise.
21163         * config/ia64/ia64.c: Likewise.
21164         * config/m32r/m32r.h: Likewise.
21165         * config/m68hc11/m68hc11.md: Likewise.
21166         * config/mmix/mmix.c: Likewise.
21167         * config/mn10200/mn10200.c: Likewise.
21168         * config/romp/romp.c: Likewise.
21169         * config/sh/sh.c: Likewise.
21170         * config/stormy16/stormy16.c: Likewise.
21171         * config/stormy16/stormy16.h: Likewise.
21172         * config/stormy16/stormy16.md: Likewise.
21174 2002-01-03  Graham Stott  <grahams@redhat.com>
21176         * loop.h: Update copyright date.
21177         (LOOP_MOVABLES): Fix typo.
21178         (LOOP_REGS): Likewise.
21179         (LOOP_IVS): Likewise.
21181 2002-01-03  Graham Stott  <grahams@redhat.com>
21183         * cppinit.c: Update copyright date.
21184         Don't include output.h
21185         * Makefile.in: Update copyright date.
21186         Update dependency.
21188 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21190         PR c/5226
21191         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
21192         (-pthread) Add to RS/6000 options.
21194 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21196         * except.c: Fix comment typos.
21197         * loop.c: Likewise.
21198         * varasm.c: Likewise.
21199         * doc/tm.texi: Fix a typo.
21201 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
21203         * c-typeck.c (output_init_element): Allow initializing static storage
21204         duration objects with compound literals.
21206 2002-01-02  Richard Henderson  <rth@redhat.com>
21208         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
21209         after abusing it.
21211 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21213         * gcc.c (default_compilers): Const-ify.
21214         * mips-tdump.c (stab_names): Likewise.
21215         * mips-tfile.c (map_coff_types, map_coff_storage,
21216         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
21217         pseudo_ops_t, pseudo_ops): Likewise.
21218         * protoize.c (default_include): Likewise
21220         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
21221         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
21222         Add array size in declaration.
21223         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
21224         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
21225         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
21226         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
21227         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
21228         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
21229         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
21230         emtens, make_nan): Const-ify.
21231         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
21232         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
21234 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
21236         * config.gcc (ia64-*-*): Set extra_headers.
21237         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
21238         * config/alpha/t-osf: Remove.
21239         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
21241 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
21243         * config/rs6000/t-aix43: Revert previous change.
21245 2002-01-02  Jason Merrill  <jason@redhat.com>
21247         * c-decl.c (c_expand_body): Call outlining_inline_function when
21248         emitting an inline function out of line.
21250 2002-01-02  Richard Henderson  <rth@redhat.com>
21252         * dwarf2out.c (limbo_die_node): Add created_for member.
21253         (new_die): New argument created_for.  Update all callers.
21254         (mark_limbo_die_list): New.
21255         (dwarf2out_init): Register limbo_die_list as a root.
21256         (dwarf2out_finish): Force insert limbo dies into their function
21257         context.
21259 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
21261         PR c++/5089
21262         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
21264 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21266         * config/h8300/fixunssfsi.c: Update copyright.
21267         Fix comment typos.
21268         Fix formatting.
21269         * config/h8300/h8300.c: Update copyright.
21270         Eliminate warnings.
21272 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21274         * config/romp/romp.c: Fix comment formatting.
21275         * config/romp/romp.h: Likewise.
21276         * config/romp/romp.md: Likewise.
21277         * config/s390/s390.c: Likewise.
21278         * config/stormy16/stormy16.c: Likewise.
21279         * config/stormy16/stormy16.h: Likewise.
21281 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
21283         * c-common.h (genrtl_expr_stmt_value): Declare.
21284         * c-semantics.c (genrtl_goto_stmt): Redirect to...
21285         (genrtl_goto_stmt_value): ... this new function.  Pass new
21286         argument down to expand_expr_stmt_value, taking
21287         TREE_ADDRESSABLE into account.
21288         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
21289         STMT_EXPR as addressable, i.e., one whose result we want.
21290         * expr.c (expand_expr): Don't save expression statement value
21291         of labeled_blocks or loop_exprs.
21292         * stmt.c (expand_expr_stmt): Redirect to...
21293         (expand_expr_stmt_value): ... this new function.  Use new
21294         argument to tell whether to save expression value.
21295         (expand_end_stmt_expr): Reset last_expr_type and
21296         last_expr_value if we don't have either.
21297         * tree-inline.c (declare_return_variable): Mark its use
21298         statement as addressable.
21299         * tree.h: Document new use of TREE_ADDRESSABLE.
21300         (expand_expr_stmt_value): Declare.
21302 2002-01-01  Tom Rix  <trix@redhat.com>
21304         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
21305         rs6000_emit_allocate_stack.
21307 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
21309         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
21310         ${srcdir}/ginclude/ to every entry in extra_headers.
21311         * configure: Regenerate.
21312         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
21313         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
21314         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
21315         * ginclude/proto.h: Rename to config/convex/proto.h.
21317 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21319         * attribs.c (handle_vector_size_attribute): Use host_integerp
21320         and tree_int_cst; remove warnings.
21321         * caller-save.c (insert_restore): Add cast to get rid of warning.
21322         (insert_save): Likewise.
21323         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
21324         * regmove.c (find_matches): Add temporary var to kill a warning.
21326 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
21328         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
21329         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
21330         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
21331         (vms-dwarf2eh.o): Add Makefile rule.
21332         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
21333         * config/alpha/vms-dwarf2eh.asm: New file.
21335         * gcc.c (delete_if_ordinary): Delete all versions.
21337 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
21339         * config/mmix/mmix.md: Update FIXME to not mention
21340         define_constants.
21341         (MMIX_rJ_REGNUM): New define_constants constant.
21342         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
21343         "*movdicc_real"): Adjust contraints formatting.
21344         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
21345         for branch prediction.
21346         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
21347         output template.
21348         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
21349         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
21350         number.  Delete related FIXMEs.
21351         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
21352         from number to MMIX_rJ_REGNUM.
21353         (TARGET_MASK_BRANCH_PREDICT): New.
21354         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
21355         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
21356         value.  Add -mbranch-predict and -mno-branch-predict.
21357         (TARGET_VERSION): Drop date.
21358         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
21359         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
21360         for finding out global symbols.
21361         (mmix_asm_output_labelref): Revert condition for global symbol.
21362         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
21363         (mmix_print_operand_punct_valid_p): A '+' is valid.
21365 See ChangeLog.6 for earlier changes.