OSDN Git Service

* doc/install.texi: Change ` bit' to `-bit'.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-06-27  Matt Kraai  <kraai@alumni.cmu.edu>
2
3         * doc/install.texi: Change ` bit' to `-bit'.
4         * doc/md.texi: Change `-bits' to `-bit'.
5         * doc/tm.texi: Change `-bits' to ` bits'.
6
7 2002-06-27  Daniel Berlin  <dberlin@dberlin.org>
8
9         * gcse.c (hoist_code): Rewrite to only get list of dominated
10         blocks once per BB. Also fix reversed test (by removing need for 
11         the test at all).
12
13 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
14
15         * cpphash.h (_cpp_set_trad_context): Remove.
16         * cpplib.c (prepare_directive_trad): Do nothing for #define.
17         (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
18         * cpptrad.c: Update comments.
19         (_cpp_read_logical_line_trad): Let scan_logical_line handle
20         updating the current context.
21         (scan_logical_line): Update the current context.
22         (_cpp_create_trad_definition): Similarly.
23         (_cpp_set_trad_context): Remove.
24
25 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
26
27         PR preprocessor/7070
28         * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
29
30 2002-06-26  Bob Wilson  <bob.wilson@acm.org>
31
32         * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
33         config/xtensa/xtensa.c (xtensa_return_addr): New function.
34         config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
35         config/xtensa/xtensa.md (fix_return_addr): New pattern.
36
37 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38
39         * mips.c (coprocessor_operand, coprocessor2_operand,
40         symbolic_operand): Move prototypes from here...
41         * mips-protos.h (coprocessor_operand, coprocessor2_operand,
42         symbolic_operand): ...to here.
43
44 Wed Jun 26 16:32:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
45
46         * config/sh/crt1.asm: remove _stack label definition
47         and sentinel value.
48
49 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
50
51         * varasm.c: Include real.h before output.h.
52
53 2002-06-26  Aldy Hernandez  <aldyh@redhat.com>
54
55         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
56         check for TARGET_ALTIVEC.
57
58 2002-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
59
60         * config.gcc (vax-*-vms*): Make obselete.
61
62 2002-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
63
64         * gcc.c (warn_std): Delete.
65
66 2002-06-25  Loren J. Rittle  <ljrittle@acm.org>
67
68         * doc/extend.texi: Fix formatting of last checkin.
69
70 2002-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
71
72         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
73         underscore from __IEEE_FP and __IEEE_FP_INEXACT.
74
75 2002-06-25  Aldy Hernandez  <aldyh@redhat.com>
76
77         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
78         discrepancies from motorola's documentation.
79
80 Tue Jun 25 21:51:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
81
82         * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
83         GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
84
85         * config/sh/lib1funcs.asm (udivdi3): Make first divide step 
86         produce a 32 bit result before normalization, then normalize with a
87         left shift.  Compute approximative error of 2nd reciprocal
88         approximation in 2's complement.  Fix mask generation from upper
89         longword of second divide stage result.
90         For large divisor, fix shift count used to truncate first stage
91         divide result; make decision if to adjust upwards based on comparison
92         of higher parts of normalized values.
93         (udivdi): Likewise.  Undo normalization of result for large divisor
94         case.
95
96 2002-06-25  David S. Miller  <davem@redhat.com>
97
98         * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
99
100 2002-06-25  Neil Booth  <neil@daikokuya.co.uk>
101
102         * cpplib.c (do_include_common): Revert to correct line number
103         if -traditional.
104         * cpptrad.c (scan_out_logical_line): Treat null directive as
105         white space.  Invlidate MI optimization for non-whitespace
106         text outside a directive.
107
108 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
109
110         * Makefile.in (SHELL): Set to @SHELL@.
111         * fixinc/Makefile.in (SHELL): Likewise.
112
113         * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
114         fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
115         initialization.
116
117 2002-06-24  Jeff Law <law@redhat.com>
118
119         * flow.c (propagate_one_insn): When removing an insn
120         with a REG_LIBCALL note but not the entire libcall sequence,
121         delete the associated REG_RETVAL note.
122
123 Mon Jun 24 21:05:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
124
125         * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
126         (udivsi3): Likewise.  Rewrite SH1 implementation.
127         (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
128         * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
129         (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
130         * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
131         (_moddi3): Likewise.
132
133         * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
134
135         * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
136         arguments into account for stack_regs.
137
138 2002-06-24  Matt Kraai  <kraai@alumni.cmu.edu>
139
140         * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
141         in examples.
142         
143 2002-06-24  Art Haas  <ahaas@neosoft.com>
144
145         * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
146         * doc/tm.texi (Frame Layout): Likewise.
147
148 2002-06-20  Steve Ellcey  <sje@cup.hp.com>
149         * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
150         Set float_format to i128.
151
152 2002-06-24  David S. Miller  <davem@redhat.com>
153
154         * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
155         32-bit ABI libfuncs to NULL.
156
157         * config/sparc/sparc.md: Use define_insn_and_split.  Use braced
158         strings instead of quoted strings for code blocks.
159
160         * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
161         optabs if op1 is const0_rtx.
162
163         * Makefile.in (GTFILES): Add basic-block.h
164         * basic-block.h (label_value_list, tail_recursion_label_list):
165         Mark with GTY.
166
167 2002-06-24  Neil Booth  <neil@daikokuya.co.uk>
168
169         * cpptrad.c (scan_out_logical_line): Check recursing only when
170         we know we have a macro invocation in the function-like case.
171         Only call _cpp_handle_directive if we know we have a good
172         directive, or we want to reject a bad directive.
173
174 2002-06-24  Alan Modra  <amodra@bigpond.net.au>
175
176         * doloop.c (doloop_valid_p): Correct comment.
177         (doloop_modify_runtime <abs_inc != 1>): Simplify.
178         (doloop_modify_runtime <do-while>): Don't emit code when NE.
179
180 Thu Jun 20 00:26:53 2002  Denis Chertykov  <denisc@overta.ru>
181
182         * config.gcc: Add support for ip2k.
183
184 2002-06-23  Jan Hubicka  <jh@suse.cz>
185             Jeff Law <law@redhat.com>
186
187         * function.h (struct emit_status): Clarify potential contents
188         of regno_reg_rtx array.
189         * integrate.c (copy_rtx_and_substitute): Update comments.  Make
190         sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
191
192         * reg-stack.c (convert_regs_exit): Push the registers to stack in
193         proper order.
194
195 2002-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
196
197         PR middle-end/6963
198         * function.c (assign_stack_temp_for_type): Do not return
199         the same MEM rtx for multiple uses of a stack slot.
200
201 2002-06-22  David S. Miller  <davem@redhat.com>
202
203         PR target/6841 target/6770 target/6719
204         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
205         NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
206         GENERAL_OR_EXTRA_FP_REGS.
207
208 2002-06-22  Neil Booth  <neil@daikokuya.co.uk>
209
210         * cpptrad.c (struct fun_macro): Add line number.
211         (scan_out_logical_line): Set it, and use it to report unterminated
212         macro invocations.
213
214 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
215
216         * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
217         VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
218         DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
219         DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
220         REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
221         REGEXP_ONEOF, check_name): Const-ify.
222
223 2002-06-21  Matt Thomas  <matt@3am-software.com>
224
225         * config/vax/vax.c (vax_output_function_prologue): Use
226         REGISTER_PREFIX.  Fix some indentation.
227         * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
228         (VAX_ISTREAM_SYNC): Define.
229         (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC.  Move the
230         i-stream sync to the end.
231         (REGISTER_PREFIX): Define as "".
232         (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
233
234 2002-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
235
236         * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
237         configurations.
238
239 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
240
241         * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
242         tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
243
244 2002-06-21  Matt Thomas  <matt@3am-software.com>
245
246         * config/vax/netbsd.h: Adjust a comment.
247         (TARGET_DEFAULT): Redefine as 0.
248
249 2002-06-21  Richard Henderson  <rth@redhat.com>
250
251         * bb-reorder.c (make_reorder_chain_1): Search harder for the
252         vax casesi fallthru edge.
253         * cfglayout.c (cleanup_unconditional_jumps): Use
254         redirect_edge_succ_nodup.  Do not delete ADDR_VEC insns as dead.
255         * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
256         block after ADDR_VEC.
257
258 2002-06-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
259
260         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
261
262 2002-06-21  Neil Booth  <neil@daikokuya.co.uk>
263
264         * cpperror.c (cpp_error): For traditional CPP, default to
265         diagnostics on pfile->line.
266         * cpplib.c (prepare_directive_trad): Set line number for
267         diagnostics for #define too.
268         * cpptrad.c (skip_whitespace): Skip comments properly.
269         (_cpp_expansions_different_trad): Initialize quote2.
270
271 2002-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
272
273         * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
274         * config/mmix/mmix.h: Ditto.
275         * config/mmix/mmix-protos.h: Ditto.
276         * config/mmix/mmix.c: Ditto.  Fix typo in comment.
277         * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
278         comment.  Comment extra CC modes.
279
280 2002-06-20 Jan Hubicka  <jh@suse.cz>
281
282         * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
283         (scope_to_insns_finalize): Do not call set_block_levels; handle
284         sequences.
285         (choose_inner_scope): New.
286         * rtl.h (choose_inner_scope): Declare.
287
288 2002-06-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
289
290         * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
291         HOST_WIDE_INT.
292         * pa.c (pa_asm_output_mi_thunk): Likewise.
293         (n_deferred_plabels): Change type to size_t.
294         (output_deferred_plabels, output_call): Use size_t instead of int.
295
296 2002-06-20  Richard Henderson  <rth@redhat.com>
297
298         PR target/4041
299         * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
300         pattern and adjust constraints for coldfire.
301
302 2002-06-20  Richard Henderson  <rth@redhat.com>
303
304         * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
305
306 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
307
308         * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
309
310 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
311
312         * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
313
314 2002-06-20  Stan Shebs  <shebs@apple.com>
315
316         * dominance.c: Include errors.h instead of error.h.
317
318 2002-06-20  Neil Booth  <neil@daikokuya.co.uk>
319
320         * cppexp.c (cpp_interpret_integer): Don't force traditional
321         numbers to be unsigned.
322         * cpplib.c (prepare_directive_trad): Set line number for
323         diagnostics.
324         * cpptrad.c (scan_out_logical_line): Continue scanning out
325         at start of buffer.
326         * gcc.c (trad_capable_cpp): Use cc1 always.
327
328 2002-06-20  Jeffrey Law  <law@redhat.com>
329
330         * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
331         elimination in leaf functions by default yet.
332
333 2002-06-20  Richard Sandiford  <rsandifo@redhat.com>
334
335         * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
336
337 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
338
339         * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
340         multilibs.
341         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
342         Fixes PR other/6836.
343
344 Thu Jun 20 19:42:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
345                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
346
347         Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
348
349         * basic-block.h: Do not include et-forest.h
350         (dominance_info): Declare as struct dominance-info.
351         * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
352         deleting block.
353         * dominance.c (struct dominance_info): Define.
354         (BB_NODE, SET_BB_NODE): New macros.
355         (bb_hash_func, bb_eq_func): Kill.
356         (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
357         nearest_common_dominator, dominated_by_p, recount_dominator,
358         add_to_dominance_info, delete_from_dominance_info): update for new
359         representation.
360         (get_dominated_by, redirect_immediate_dominators): Rewrite using
361         enumerate_sons.
362         * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
363         find_if_case_1, find_if_case_2): Remove killed blocks from dominance
364         structure.
365
366         * et-forest.h: Update copyright; revamp all function to operate on
367         nodes
368         (et_forest_value): Kill.
369         (et_forest_enumerate_sons, et_forest_node_value): New.
370         * et-forest.c: Update copyright.
371         * et-forest.h: Update copyright; revamp all function to operate on
372         nodes
373         (et_forest_value): Kill.
374         (et_forest_enumerate_sons, et_forest_node_value): New.
375
376         Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
377
378         * basic-block.h: Inlude et-forest.h
379         (basic_block_def): Kill dominator.
380         (dominance_info): New type.
381         (loops): Use dominace_info.
382         (dominace handling functions): Take dominace_info as argument
383         instead of bitmaps.
384         (create_preheader): Likewise.
385         * cfg.c (entry_exit_blocks): Kill dominator.
386         (dump_flow_info): Do not dump dominators.
387         * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
388         dominators.
389         * cfgloop.c (flow_pre_header_find): Use dominacne_info.
390         (flow_loops_pre_header_scan, make_forwarder_block,
391         canonicale_loop_headers, flow_loops_find): Likewise.
392         * dominance.c: Include error.h
393         (idoms_to_doms): Kill.
394         (bb_hash_func, bb_eq_func): New static functions.
395         (debug_dominace_info): New global function.
396         (calculate_dominance_info): Use new et forest structure.
397         (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
398         get_dominated_by, redirect_immediate_dominators,
399         nearest_common_dominator, dominated_by_p, verify_dominators,
400         recount_dominator, iterate_fix_dominators, add_to_dominace_info,
401         delete_from_dominance_info): New global functions.
402         * gcse.c (domnators): CHange to dominance_info.
403         (alloc_hoist_mem): Do not alloc dominators
404         (free_code_hoist_mem): Use free_dominance_info.
405         (compute_code_hoist_data): Use dominance_info.
406         (hoist_code): Likewise.
407         * ifcvt.c (post_dominators): Likewise.
408         (find_if_case_2, if_convert): Likewise.
409         * predict.c (process_note_predictions, process_note_prediction,
410         estimate-probability): Likewise.
411         * sched-rgn.c (find_rgns, init_regions): Likewise.
412         * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
413         find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
414         * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
415         find_evaluations, convert_to_ssa): Likewise.
416         * ssa.h (compute_dominance_frontiers): Likewise.
417
418         Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
419
420         * Makefile.in (et-forest.c): Add.
421         * et-forest.c: New file.
422         * at-forest.h: New file.
423
424 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
425
426         * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
427         array size calculation.
428         * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
429         Likewise.
430
431         * diagnostic.c (diagnostic_kind_text): Const-ify.
432         * gengtype.c (lang_names): Likewise.
433
434 Thu Jun 20 17:25:29 CEST 2002  JAn HUbicka  <jh@suse.cz>
435
436         * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
437
438 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
439
440         * config/sol2.h: New file.
441         * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
442         (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
443         (sparc-*-chorusos*): Likewise.
444         (sparc-*-elf*): Likewise.
445         (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
446         (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
447         (sparc-hal-solaris2*): Likewise.
448         (sparc-*-solaris2*): Likewise.
449         (sparclite-*-elf*): Likewise.
450         (sparc86x-*-elf*): Likewise.
451         (sparc64-*-elf*): Likewise.
452
453         * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
454         config/sol2.h.
455         (ASM_SPEC): Override config/sol2.h version for now.
456         Removed obsolete GAS_REJECTS_MINUS_S variant.
457         (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
458         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
459         (TARGET_OS_CPP_BUILTINS): Likewise.
460         Assert system=unix.
461         (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
462         (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
463         config/sol2.h.
464         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
465         (ASM_CPU_SPEC): Define.
466         (SUBTARGET_EXTRA_SPECS): Define.
467
468         * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
469         in config/sparc/sol2.h.
470         (ASM_SPEC): Moved to config/sol2.h.
471         (CPP_CPU_SPEC): Simplified.
472         (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
473         consistency.
474         (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
475         (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
476         STARTFILE_ARCH64_SPEC.
477         (STARTFILE_SPEC): Moved to config/sol2.h
478         (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
479         (LINK_ARCH32_SPEC): Moved to config/sol2.h.
480         (LINK_ARCH64_SPEC): Simplified.
481         (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
482         (LINK_SPEC): Moved to config/sol2.h
483
484         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
485         config/sol2.h.
486         Use BITS_PER_WORD for size.
487         (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
488         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
489         (CPP_PREDEFINES): Removed OS-specific part handled by
490         TARGET_OS_CPP_BUILTINS.
491         (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
492         (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
493         (ASM_SPEC): Moved to config/sol2.h.
494         (PREFERRED_DEBUGGING_TYPE): Likewise.
495         (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
496         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
497         (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
498         (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
499
500         * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
501         * config/i386/sol2gas.h: Removed.
502
503 Thu Jun 20 12:14:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
504
505         * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
506
507 2002-06-16  Aldy Hernandez  <aldyh@redhat.com>
508         
509         * gcc.c-torture/execute/simd-1.c: New.
510
511         * gcc.dg/simd-1.c: New.
512
513         * doc/extend.texi (Vector Extensions): Document that we can
514         specify simd types not specifically supported by the hardware.
515         Document that simd types can be used as function arguments.
516         Document that signness does make a difference in SIMD types.
517         Misc cleanups and revisions to the vector extensions section.
518
519         * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
520         constants.
521
522         * expr.c (vector_mode_valid_p): New.
523
524         * expr.h: Add vector_mode_valid_p.
525
526         * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
527
528         * c-common.c (type_for_mode): Always build vector nodes regardless
529         of VECTOR_MODE_SUPPORTED_P.
530         (handle_mode_attribute): Error if we can't emulate a nonexisting
531         vector mode.
532         (handle_vector_size_attribute): Same.
533
534         * optabs.c (expand_binop): Open-code vector operations.
535         (expand_unop): Open-code vector unops.
536         (expand_vector_binop): New.
537         (expand_vector_unop): New.
538         
539         * c-typeck.c (build_binary_op): Allow vectors in binops.
540         Allow vectors in conditional operatiors.
541         (build_unary_op): Allow vectors in unary minus.
542
543         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
544         TARGET_ALTIVEC.
545
546 2002-05-20  Richard Henderson  <rth@redhat.com>
547
548         * c-common.c (c_common_get_alias_set): Correctly handle characters.
549         Rearrange order of expressions; don't handle vectors here.
550         * alias.c (get_alias_set): Let vectors match their components.
551
552 2002-06-19  Chris Demetriou  <cgd@broadcom.com>
553
554         * config/mips/mips.c (mips_emit_prefetch): Use hints which
555         match desired locality.
556
557 2002-06-19  Dhananjay R. Deshpande  <dhananjayd@kpit.com>
558
559         * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
560         (h8300_insert_attributes): New.
561
562 2002-06-19  Akim Demaille  <akim@epita.fr>
563
564         * c-parse.in (initelt: identifier ':' initval): Add an empty
565         action to fix a type clash.
566         (aliasdecl, classdef): Add the missing closing `;'.
567         Whitespace changes.
568         * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
569         $$ = $1 type clashes.
570
571 2002-06-19  Eric Christopher  <echristo@redhat.com>
572
573         * config/mips/mips.c (symbol_operand): New function.
574         (mips_emit_prefetch): Ditto.
575         * config/mips/mips-protos.h: Define.
576         * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
577         (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
578         (LEGITIMIZE_ADDRESS): Ditto.
579         * config/mips/mips.md (prefetch, prefetch_si_address,
580         prefetch_si, prefetch_di_address, prefetch_di): New patterns.
581
582 2002-06-19  Eric Christopher  <echristo@redhat.com>
583
584         * config/fp-bit.h: Add unordered defines for gofast.
585
586 2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>
587
588         * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
589         DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
590         DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
591         REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
592         checking and without it.
593         (decl_name, decl_mode_check_failed, regexp_name,
594         regexp_mode_check_failed): New functions.
595         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
596         gen_presence_set, gen_absence_set, gen_automaton,
597         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
598         gen_regexp_sequence, gen_reserv, gen_insn_reserv,
599         automaton_decl_hash, automaton_decl_eq_p): Use the macros.
600         (find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
601         (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
602         (find_insn_decl): Ditto.  Set up mode of work_insn_decl.
603         (decl_hash, decl_eq_p): Use the macros.
604         (find_decl): Ditto.  Set up mode of work_decl.
605         (process_excls, process_presence_absence, process_decls,
606         check_automaton_usage, process_regexp, process_regexp_decls,
607         check_usage, loop_in_regexp, check_loops_in_regexps,
608         process_regexp_cycles, add_advance_cycle_insn_decl,
609         initiate_states, initiate_excl_sets,
610         initiate_presence_absence_sets, copy_insn_regexp, transform_1,
611         transform_2): Use the macros.
612         (transform_3): Ditto.  Check mode before making transformations of
613         ALLOF.
614         (regexp_transform_func, transform_insn_regexps,
615         process_unit_to_form_the_same_automaton_unit_lists,
616         form_the_same_automaton_unit_lists_from_regexp,
617         form_the_same_automaton_unit_lists,
618         process_seq_for_forming_states, process_alts_for_forming_states,
619         create_alt_states, form_ainsn_with_same_reservs, make_automaton,
620         form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
621         estimate_one_automaton_bound, compare_max_occ_cycle_nums,
622         units_to_automata_heuristic_distr, create_ainsns,
623         units_to_automata_distr, create_automata): Use the macros.
624         (form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
625         (longest_path_length, min_issue_delay_pass_states,
626         output_dead_lock_vect, output_tables, output_insn_code_cases,
627         output_internal_insn_latency_func, output_print_reservation_func,
628         output_description, output_automaton_units, generate): Use the
629         macros.
630         (make_insn_alts_attr): Ditto.  Check case when there are not
631         alternatives in the reservation.
632         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
633         make_bypass_attr, form_important_insn_automata_lists,
634         expand_automata): Use the macros.
635
636 2002-06-20  Tim Josling  <tej@melbpc.org.au>
637
638         * Makefile.in: Clean up code to check for misspecified languages
639         in enable-languages.
640
641 2002-06-19  Andrew Pinski <pinskia@physics.uc.edu>
642
643         * cpptrad.c (_cpp_replacement_text_len): initialize len.
644
645 2002-06-19  Jason Merrill  <jason@redhat.com>
646
647         * Makefile.in (unstrap, restrap): New targets.
648         (bootstrap): Mention restrap.
649
650 2002-06-19  Matt Kraai  <kraai@alumni.cmu.edu>
651
652         * except.c (ehl_free): Remove.
653
654         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
655         builtin_define and builtin_define_std.
656
657 2002-06-19  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
658
659         * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
660         (sCOND): Restrict operand class so that gcc knows how to reload them.
661         (bitfield_set): Merge two unnamed insn's using alternatives.
662         (call_value): Remove constraint on unused uperand.
663         (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
664         (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
665
666         * longlong.h (count_trailing_zeros): Escape newline and beautify.
667
668 2002-06-19  Mark Mitchell  <mark@codesourcery.com>
669
670         * Makefile.in (QMTEST_DIR): Simplify definition.
671
672 2002-06-19  Nick Clifton  <nickc@cambridge.redhat.com>
673
674         * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
675         #define.
676
677 2002-06-19  Neil Booth  <neil@daikokuya.co.uk>
678
679         * cpphash.h (struct cpp_reader): Make date and time strings.
680         (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
681         _cpp_replacement_text_len): New.
682         * cppinit.c (cpp_create_reader): Update.
683         (init_builtins): Register appropriate builtins for -traditional-cpp.
684         * cppmacro.c (new_number_token): Remove.
685         (_cpp_builtin_macro_text): New.
686         (builtin_macro): Use it.
687         (cpp_macro_definition): Update to handle traditional macros.
688         * cppmain.c (cb_line_change): Don't do column positioning for
689         traditional output.
690         * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
691         state ls_fun_close.
692         (skip_whitespace): Fix.
693         (maybe_start_funlike): Don't set state.parsing_args.
694         (scan_out_logical_line): Remove duplicate error.  Use lex_state
695         rather than state.parsing_args.
696         (push_replacement_text): Handle builtins.
697         (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
698
699 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
700             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
701
702         * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
703         attribute __always_inline__.
704
705 2002-06-18  Bob Wilson  <bob.wilson@acm.org>
706
707         * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
708         when generating the call to _mcount.
709         (NO_PROFILE_COUNTERS): Define.
710
711 2002-06-18  Richard Henderson  <rth@redhat.com>
712
713         * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
714         2002-06-02 change.
715
716 Tue Jun 18 20:53:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
717
718         * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
719         config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
720         * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
721         * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
722
723         * sh-protos.h (sh_pr_interrupt): Declare.
724         * sh.c (sh_pr_interrupt): New function.
725         (print_operand, calc_live_regs, sh_expand_prologue): Use it.
726         (sh_hard_regno_rename_ok): Likewise.
727         * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
728
729 2002-06-18  Vladimir Makarov  <vmakarov@redhat.com>
730
731         * rtl.def (DEFINE_AUTOMATON): Add description of new options
732         `time' and `v'.  Fix incorrect description of option `w'.
733
734         * doc/md.texi: Ditto.
735
736         * genautomata.c (TIME_OPTION, V_OPTION): New macros.
737         (gen_automata_option): Process the new options.
738         (transform_2, transform_3): Initialize some variables.
739         (initiate_automaton_gen): Use the new macros.
740
741 2002-06-18  Richard Sandiford  <rsandifo@redhat.com>
742
743         * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
744         (mips_set_return_address, mips_restore_gp): Declare.
745         * config/mips/mips.h (struct mips_frame_info): Move to mips.c
746         (current_frame_info): Remove.
747         (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
748         * config/mips/mips.c: Remove uses of current_frame_info.
749         (struct mips_frame_info): Moved from mips.h.  Remove 'insns_len'.
750         (struct machine_function): Add 'frame' and 'insns_len'.
751         (current_frame_info, zero_frame_info): Remove.
752         (mips_restore_gp, mips_set_return_address): New.
753         (mips_initial_elimination_offset): New.
754         * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
755         (eh_return define_split): Use mips_set_return_address.
756
757 2002-06-18  Neil Booth  <neil@daikokuya.demon.co.uk>
758
759         * cpplib.c (dtable): Update.
760         (end_directive): Decrement expansion prevention count.
761         Clear state.in_expression.
762         (prepare_directive_trad): Set state.in_expression.
763         Increment expansion prevention count.
764         * cpptrad.c (enum ls): New.
765         (_cpp_overlay_buffer): Set overlaid_buffer.
766         (_cpp_remove_overlay): Use overlaid_buffer.
767         (_cpp_read_logcial_line_trad): Update buffer when it might
768         have changed.
769         (scan_out_logical_line): Handle state transitions for assertions
770         and defined() in #if, and for funlike invocations including the
771         directive case.  Handle '<' and '>' as a quote mechanism in
772         #include.  Warn about unterminated macro invocations.
773         * cpphash.h (struct lexer_state): New member in_expression.
774         (struct cpp_reader): New member overlaid buffer.
775
776 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
777
778         * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
779         __always_inline__.
780
781 2002-06-18  Alan Modra  <amodra@bigpond.net.au>
782
783         * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
784
785         * doloop.c (doloop_optimize): Extract pattern from insn.
786
787 2002-06-17  Matt Kraai  <kraai@alumni.cmu.edu>
788
789         * doc/extend.texi (Function Attributes): Remove `,...' from @var.
790
791 2002-06-17  Jeff Law <law@redhat.com>
792
793         * libgcc2.c: Do not include symcat.h or machmode.h.
794
795 2002-06-17  Richard Henderson  <rth@redhat.com>
796
797         PR target/6922
798         * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
799
800 2002-06-17  Tom Tromey  <tromey@redhat.com>
801
802         * dwarfout.c: Include function.h.
803
804 2002-06-17  Andreas Schwab  <schwab@suse.de>
805
806         * print-rtl.c (print_rtx): Print space before vector, not after.
807         (debug_rtx): Clear sawclose before printing.
808         (debug_rtx_list): Print newline after each list element.
809         (debug_rtx_range): Likewise.
810
811 2002-06-17  Richard Henderson  <rth@redhat.com>
812
813         * function.h (struct function) [funcdef_no]: Rename profile_label_no.
814         (current_function_funcdef_no): Similarly.
815         * function.c (funcdef_no): Similarly.
816         (prepare_function_start): Set current_function_funcdef_no.
817         (expand_function_start): Don't set current_function_profile_label_no.
818         * dwarf2out.h (current_funcdef_number): Remove.
819         * dwarf2out.c (current_funcdef_number): Remove.  Replace with
820         current_function_funcdef_no throughout.
821         * dwarfout.c, vmsdbgout.c: Similarly.
822         * except.c (sjlj_funcdef_number): Remove.
823         (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
824         (output_function_exception_table): Likewise.
825         * final.c (profile_function): Use current_function_funcdef_no
826         instead of current_function_profile_label_no.
827
828 2002-06-17  Vladimir Makarov  <vmakarov@redhat.com>
829
830         * sched-ebb.c (init_ready_list): Check INSN_P first.
831
832 Mon Jun 17 17:26:15 2002  J"orn Rennecke <joern.rennecke@superh.com>
833
834         * sh.md (divsi3): Update way how to find insns in a sequence.
835
836         * reload1.c (merge_assigned_reloads): Don't change reloads
837         other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
838         to RELOAD_OTHER when there are conflicting input reloads.
839
840 2002-06-17  Richard Earnshaw  (rearnsha@arm.com)
841
842         * function.c (epilogue_done): Correctly build a sequence of insns for
843         a sibcall epilogue.
844
845 2002-06-17  Nick Clifton  <nickc@cambridge.redhat.com>
846
847         * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
848         #define.
849
850         * config/m32r/m32r.md: Replace gen_sequence with get_insns.
851
852 2002-06-16  Richard Henderson  <rth@redhat.com>
853
854         * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
855         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
856
857 2002-06-16  Richard Henderson  <rth@redhat.com>
858
859         PR opt/6722
860         * regclass.c (globalize_reg): Update regs_invalidated_by_call.
861
862 2002-06-16  Neil Booth  <neil@daikokuya.demon.co.uk>
863
864         * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
865         * config/i386/i386-aout.h, config/i386/i386elf.h,
866         config/i386/sysv4.h: Remove CPP_PREDEFINES.
867         * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
868         config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
869         config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
870         config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
871         CPP_PREDEFINES and part of CPP_SPEC.
872         * config/i386/sysv4-cpp.h: New.
873
874 2002-06-16  Richard Henderson  <rth@redhat.com>
875
876         PR c/7030
877         * dwarf2out.c (modified_type_die): Don't assign the qualified die
878         to the unqualified type.
879
880 Sun Jun 16 22:16:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
881
882         * i386-protos.h (x86_field_alignment): Declare.
883         * i386.c (x86_field_alignment): Define.
884         * i386.h (ADJUST_FIELD_ALIGNMENT): New.
885         (BIGGEST_FIELD_ALIGNMENT): Kill.
886
887 2002-06-16  Richard Henderson  <rth@redhat.com>
888
889         * vax.md (casesi): Use emit_jump_insn.  Tidy expander pattern.
890
891 2002-06-16  Richard Henderson  <rth@redhat.com>
892
893         * c-common.c (flag_ms_extensions): Move from c++ front end.
894         * c-common.h (flag_ms_extensions): Declare.
895         * c-decl.c (c_decode_option): Add -fms-extensions.
896         (grokfield): Don't accept anonymous structures in ISO C mode;
897         accept only unnamed anonymous structures in GNU C mode; accept
898         Plan 9 extensions in MS mode.
899         * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
900         SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
901         (extension): Clear flag_iso.
902         * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
903
904 2002-06-16  Hans-Peter Nilsson  <hp@axis.com>
905
906         PR target/7042
907         * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
908         early if current_function_epilogue_delay_list is non-empty.
909         * config/cris/cris.md ("return"): Add sanity check asserting that
910         current_function_epilogue_delay_list is empty.
911
912 2002-06-16  Jeff Law <law@redhat.com>
913
914         * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
915         sharing of hard registers.
916
917         * toplev.c (rest_of_compilation): Remove redundant conditional.
918
919         * toplev.c (rest_of_compilation): Perform a simpler, less costly
920         cleanup of the CFG when not optimizing.
921
922 2002-06-16  Alan Modra  <amodra@bigpond.net.au>
923
924         * gcc.c (main): Correct startfile_prefix_spec check.
925
926 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
927
928         * config.gcc: Revert rth's patch of 2002-05-18.  Instead,
929         include both darwin.o and rs6000-c.o.
930
931 2002-06-15  Roger Sayle  <roger@eyesopen.com>
932
933         * expr.c (compare_from_rtx): Call simplify_relational_operation
934         on all comparisons, not just those between integer constants,
935         with the correct (possibly unsigned) comparison code.
936         (do_compare_rtx_and_jump): Likewise.
937
938 2002-06-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
939
940         * Makefile.in (tm_defines): New configuration variable.
941         (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
942         Pass tm_defines in TM_DEFINES.
943         (cs-tm_p.h): Rename DEFINES to XM_DEFINES.  Pass TM_DEFINES.
944         * config.gcc (tm_defines): New configuration variable.
945         (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
946         pa-7100.h headers.  Change hppa1* scheduling default to 7100LC.
947         * configure.in: Substitute tm_defines.
948         * configure: Rebuilt.
949         * mkconfig.sh: Rename DEFINES to XM_DEFINES.  Output TM_DEFINES.
950         * doc/install.texi: Update.
951         * pa/pa-700.h: Delete file.
952         * pa/pa-7100.h: Delete file.
953
954 2002-06-15  Roger Sayle  <roger@eyesopen.com>
955
956         * fold-const.c (comparison_to_compcode): New function to convert
957         an comparison TREE CODE into a bit-based representation.
958         (compcode_to_comparison): New function to convert from this bit
959         based representation back to a comparison TREE CODE.
960         (fold_truthop): Simplify (x<y) && (x==y) and related composite
961         comparisons.
962
963 2002-06-15  Aldy Hernandez  <aldyh@redhat.com>
964
965         * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
966
967         * stor-layout.c (compute_record_mode): Remove check for
968         FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
969         MEMBER_TYPE_FORCES_BLK.  Pass new mode field to
970         MEMBER_TYPE_FORCES_BLK.
971
972         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
973
974         * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
975
976 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
977
978         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
979
980 2002-06-14  Steve Ellcey  <sje@cup.hp.com>
981
982         * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
983         USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
984         * configure, config.in: Regenerate.
985
986 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
987
988         * loop.c (check_final_value): Use v->always_executed
989         instead of v->always_computable.
990         * unroll.c (final_giv_value): Don't calculate the final
991         value as a function of the biv if the giv is not computed
992         for every loop iteration.
993
994 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
995
996         * loop.c (for_each_insn_in_loop): Fix formatting and comments.
997
998 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
999
1000         PR c/6677
1001         * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
1002         the truncation down when the target type is signed.
1003         [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
1004         * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
1005         the conversion if the target type is a smaller type.
1006
1007 2002-06-14  Richard Henderson  <rth@redhat.com>
1008
1009         * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
1010         earlier.  Re-factor comparisons vs extrema.
1011
1012 2002-06-14  Richard Henderson  <rth@redhat.com>
1013
1014         * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
1015
1016 2002-06-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1017
1018         * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
1019         * sched-deps.c (add_dependence): Likewise.
1020         (group_leader): Likewise.
1021         * sched-rgn.c (init_ready_list): Likewise.
1022         * doc/rtl.texi: Adjust accordingly.
1023
1024 2002-06-13  Jeffrey Law  <law@redhat.com>
1025
1026         * gcse.c (delete_null_pointer_checks_1): Inform caller if any
1027         null pointer checks were eliminated.  Update prototype.
1028         (delete_null_pointer_checks): Similarly.
1029         * rtl.h (delete_null_pointer_checks): Update prototype.
1030         * toplev.c (rest_of_compilation): Only run cleanup_cfg if
1031         delete_null_pointer_checks deletes one or more null
1032         pointer checks.  Do not run cleanup_cfg before gcse, the
1033         CFG is accurate and optimized at that point..
1034
1035         * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
1036         of hard registers.
1037
1038 2002-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
1039
1040         * Makefile.in (libgcc.mk): Depend on specs.
1041
1042 Fri Jun 14 12:15:11 2002  J"orn Rennecke <joern.rennecke@superh.com>
1043
1044         * sh.md (mulsi3): Update way how to find insns in a sequence.
1045
1046 Fri Jun 14 12:04:02 2002  Dhananjay R. Deshpande <dhananjayd@kpit.com>
1047
1048         * sh.h: Define HARD_REGNO_RENAME_OK
1049         * sh.c: sh_hard_regno_rename_ok: New. If current function has
1050         interrupt_handler attribute, only registers saved on stack are OK.
1051         * sh-protos.h: Declare sh_hard_regno_rename_ok.
1052
1053 2002-06-14  Kaz Kojima  <kkojima@gcc.gnu.org>
1054
1055         * config/sh/sh.md (jump): Emit jump insn.
1056         (call_pcrel): Get pattern of the result of gen_call_site.
1057         (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
1058
1059 2002-06-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1060
1061         * cpphash.h (struct cpp_buffer): Remove saved_line_base.
1062         * cpptrad.c: Update comments.
1063         (skip_whitespace, copy_comment): Take a new parameter.
1064         (skip_escaped_newlines): Don't duplicate escaped newline test.
1065         (copy_comment): Different location for CUR, decide here how
1066         to copy / replace the comment.
1067         (skip_whitespace): Copy whitespace.
1068         (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
1069         (scan_out_logical_line): Let copy comment handle keeping or
1070         replacing comments.
1071         (scan_parameters, _cpp_create_trad_definition): Update.
1072
1073 2002-06-13  Alan Lehotsky  <apl@alum.mit.edu>
1074
1075         * reload.c (get_secondary_mem,find_reloads_address,
1076         find_reloads_address_1): Pass reference to MEM to find_reloads_address
1077         so that LEGITIMIZE_RELOAD_ADDRESS will be called.
1078
1079 2002-06-13  Jessica Han  <jessica@cup.hp.com>
1080
1081         * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1082         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1083         * doc/tm.texi: Document them.
1084         * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1085         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1086         (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
1087         (ASM_OUTPUT_FDESC): Likewise.
1088
1089 2002-06-13  Eric Christopher  <echristo@redhat.com>
1090
1091         * diagnostic.c (output_format): Fix thinko.
1092
1093 Thu Jun 13 22:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
1094
1095         * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
1096         (DWARF2_UNWIND_INFO): Define to 0.
1097
1098         * config/sh/sh.c (calc_live_regs): Don't use initial_value
1099         optimization for PR_MEDIA_REG.
1100
1101 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1102
1103         * cpphash.h (_cpp_lex_identifier_trad): Remove.
1104         * cpplib.c (end_directive): Don't skip, always remove overlay
1105         apart from #define.
1106         (prepare_directive_trad): Handle NULL pfile->directive.
1107         (_cpp_handle_directive): Always call prepare_directive_trad
1108         if traditional.
1109         * cppmain.c (check_multiline_token): Rename account_for_newlines,
1110         generalize inputs.
1111         (scan_translation_unit_trad): Use it.
1112         * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
1113         output, get escaped newline in comment close correct.
1114         (check_output_buffer, skip_whitespace): Update.
1115         (_cpp_lex_identifier_trad): Remove.
1116         (scan_out_logical_line): Handle -C and comments in directives
1117         properly.
1118
1119 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
1120
1121         * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
1122         * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1123         * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
1124         (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
1125         (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
1126         (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
1127         (SELECT_SH5_COMPACT_NOFPU): Likewise.
1128         (TARGET_SWITCHES): Use them.
1129         (TARGET_CPU_DEFAULT): Define if not already defined.
1130         (TARGET_DEFAULT): Use it.
1131         (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
1132         * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
1133         * config/sh/t-monolib: New file.
1134
1135 2002-06-13  Roger Sayle  <roger@eyesopen.com>
1136
1137         * toplev.c (rest_of_compilation): Simplify (and correct) the
1138         logic of the first delete-null-pointer-checks pass.
1139
1140 Thu Jun 13 18:24:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
1141
1142         * i386.c (ix86_expand_movstr):  Fix pasto.
1143
1144 Thu Jun 13 18:18:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
1145
1146         * reload.c (find_valid_class):  Fix thinko in my previous patch.
1147
1148 2002-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
1149
1150         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
1151         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
1152         (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
1153         (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
1154
1155 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
1156
1157         * tree-inline.c (expand_call_inline): Don' mess with _DECL
1158         fields.
1159
1160 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
1161
1162         * diagnostic.c (output_format): Recognize "%H" as a format
1163         specifier for a location_t.
1164         (text_specifies_location): New function.
1165         (diagnostic_set_info): Use it.
1166
1167 2002-06-13  Jeffrey Law  <law@redhat.com>
1168
1169         * emit-rtl.c (static_regno_reg_rtx): Define.
1170         (init_emit_once): Initialize static_regno_reg_rtx.
1171         (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
1172         of building new hard reg objects once per function.
1173         (gen_rtx_REG): Try to share hard regs.
1174         * regclass.c (init_fake_stack_mems): New function broken out from
1175         init_regs.
1176         * rtl.h (init_fake_stack_mems): Declare.
1177         * toplev.c (lang_independent_init): Call init_regs before
1178         init_emit_once.  Call init_fake_stack_mems after init_emit_once.
1179
1180         * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
1181
1182         * alias.c (argument_registers): Remove.
1183         (init_alias_once): Initialize static_reg_base_value here.  Remove
1184         initialization of argument_registers.
1185         (init_alias_once_per_function): Remove.
1186         (init_alias_analysis): Copy all the entries from static_reg_base_value
1187         into new_reg_base_value all at once.
1188         * rtl.h (init_alias_once_per_function): Remove declaration.
1189         * function.c (prepare_function_start): Do not call
1190         init_alias_once_per_function.
1191
1192         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
1193         starting a sequence and emitting an INSN.
1194
1195 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
1196
1197         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
1198
1199 2002-06-13  David S. Miller  <davem@redhat.com>
1200
1201         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
1202
1203 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1204
1205         * cpplib.c (end_directive): Handle line skipping.  Only remove
1206         the rest of the line if the directive was valid.
1207         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
1208         expanding a traditional macro.
1209         * cpptrad.c (recursive_macro): New.
1210         (read_logical_line_trad): Handle skipping.
1211         (scan_out_logical_line): Continue after a successful directive.
1212         Don't expand macros whilst skipping, or if recursing.
1213         (_cpp_create_trad_definition): scan_out_logical_line now sets
1214         the output current position.
1215
1216 2002-06-12  Eric Christopher  <echristo@redhat.com>
1217
1218         From Chris Demetriou  <cgd@broadcom.com>
1219         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
1220         comment.
1221         (ISA_HAS_MADD_MSUB): Ditto.
1222         (ISA_HAS_NMADD_NMSUB): Ditto.
1223
1224 2002-06-12  Eric Christopher  <echristo@redhat.com>
1225
1226         * config.gcc: Consolidate little endian handling and
1227         little/big endian targets.
1228         * config/mips/elfl.h: Remove file.
1229         * config/mips/elfl64.h: Ditto.
1230         * config/mips/ecoffl.h: Ditto.
1231         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
1232
1233 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
1234
1235         * gengtype.h (xvasprintf): New prototype.
1236         (xasprintf): New prototype.
1237         (struct outf): New.
1238         (get_output_file): Return an outf_p.
1239         (header_file): Is now an outf_p.
1240         (base_files): Now are outf_p.
1241         (oprintf): New.
1242         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
1243         rather than stdio operations.  Use xasprintf in a few places,
1244         when appropriate.
1245         (xvasprintf): New.
1246         (xasprintf): New.
1247         (struct filemap): Delete.
1248         (files): Delete.
1249         (output_files): New.
1250         (oprintf): New.
1251         (create_file): Create an outf_p.  Add parameter to indicate output
1252         file name, change all callers.
1253         (open_base_files): Create gtype-desc.c here.
1254         (get_output_file_with_visibility): Rewrite.
1255         (get_output_file_name): Just look at 'name' field in struct outf.
1256         (close_output_files): Rewrite.
1257
1258 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
1259
1260         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
1261         (MASK_G_FLOAT): Define.
1262         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
1263         (TARGET_SWITCHES): Likewise.
1264         (TARGET_DEFAULT): Likewise.
1265
1266 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
1267
1268         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
1269         * config/mips/mips.c (mips_output_filename): Don't print a
1270         ".file" directive if we are using DWARF-2.
1271         (mips_output_function_prologue): Do not emit source file
1272         name for TARGET_GAS.
1273
1274 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
1275
1276         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
1277         decide whether emit the short opcode.
1278         * i386.h (x86_shift1): Declare.
1279         (TARGET_SHIFT1): New macro.
1280         * i386.c (x86_shift1): New global variable.
1281
1282         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
1283         unconditionally; make loop to rebuild CFG; kill unnecesary
1284         find_basic_block calls; kill compute_bb_for_insn call.
1285         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
1286         * haifa-sched.c (sched_init): Likewise.
1287         * ssa-ccp.c (ssa_const_prop): Likewise.
1288         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1289
1290 2002-06-11  David S. Miller  <davem@redhat.com>
1291
1292         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
1293         active_insn_p.
1294
1295 2002-06-11  Richard Henderson  <rth@redhat.com>
1296
1297         * c-common.c (builtin_define_type_max): New.
1298         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
1299         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
1300
1301         From Joseph S. Myers:
1302         * glimits.h: Rewrite to expect the double underscore definitions
1303         from the compiler.
1304
1305         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
1306         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
1307         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
1308         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
1309         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
1310         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
1311         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
1312         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
1313
1314 2002-06-11  Richard Henderson  <rth@redhat.com>
1315
1316         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
1317         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
1318         (code_for_builtns): Update.
1319         (alpha_init_builtins): Add __builtin_thread_pointer and
1320         __builtin_set_thread_pointer.
1321         (alpha_expand_builtin): Handle void builtins.
1322         * doc/extend.texi (Alpha Built-in Functions): Update.
1323
1324 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
1325
1326         PR target/6997
1327         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
1328
1329 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
1330
1331         * config.gcc: Make the name of the extra-modes file adjustable
1332         by target stanzas.
1333         (s390x, strongarm, xscale stanzas): Use this facility.
1334         * configure.in: Update to match.
1335         * configure: Regenerate.
1336
1337 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
1338
1339         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
1340         max/mins as unsigned GE compares.
1341
1342 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
1343
1344         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
1345         * config/vax/bsd.h: New file.
1346         * config/vax/netbsd.h: Add missing notice.
1347         (CPP_PREDEFINES): Remove.
1348         (TARGET_OS_CPP_BUILTINS): Define.
1349         (CPP_SPEC): Use NETBSD_CPP_SPEC.
1350         * config/vax/openbsd.h: Update copyright years.
1351         (CPP_PREDEFINES): Remove.
1352         (TARGET_OS_CPP_BUILTINS): Define.
1353         * config/vax/ultrix.h: Likewise.
1354         * config/vax/vaxv.h: Likewise.
1355         * config/vax/vms.h: Likewise.
1356         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
1357         (CPP_PREDEFINES, CPP_SPEC): Remove.
1358
1359 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
1360
1361         * i386.md (addqi_1_slp, subqi_1_slp
1362         (andqi_ext0, testqi_ext0): Remove unnecesary check.
1363         (addhi*, addqi*): Simplify "dec" condition.
1364         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
1365         (and, or, xor to QImode splitters): New.
1366         (iorqi_ext*): New.
1367         (xorqi_ext_0): New.
1368         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
1369         (andqi_ext_1_rex64): New.
1370         (ashrqi*_slp): New.
1371         (ashlqi*_slp): New.
1372         (lshlqi*_slp): New.
1373         (rotrqi3*_slp): New.
1374         (rotlqi3*_slp): New.
1375
1376 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
1377
1378         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
1379         softfloat.h.
1380         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
1381         (CPP_ENDIAN_LITTLE_SPEC): Delete.
1382         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
1383         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
1384         __LONG_DOUBLE_128__ setting, _CALL_* setting.
1385         (CPP_DEFAULT_SPEC): Delete.
1386         (CPP_FLOAT_DEFAULT_SPEC): Delete.
1387         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
1388         (CPP_SYSV_DEFAULT_SPEC): Delete.
1389         (CPP_ENDIAN_BIG_SPEC): Delete.
1390         (CPP_ENDIAN_LITTLE_SPEC): Delete.
1391         (CPP_ENDIAN_SPEC): Delete.
1392         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
1393         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
1394         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
1395         cpp_longdouble_default.
1396         * config/rs6000/softfloat.h: Delete.
1397         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
1398         (EXTRA_SPECS): Delete cpp_cpu.
1399         (TARGET_CPU_CPP_BUILTINS): New.
1400         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
1401         prototype.
1402         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
1403         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
1404         (CPP_DEFAULT_SPEC): Delete.
1405         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
1406         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
1407         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
1408         (CPP_DEFAULT_SPEC): Delete.
1409         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1410         (CPLUSPLUS_CPP_SPEC): Likewise.
1411         (CPP_CPU_SPEC): Delete.
1412         (CPP_DEFAULT_SPEC): Delete.
1413         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1414         (CPLUSPLUS_CPP_SPEC): Likewise.
1415         (CPP_CPU_SPEC): Delete.
1416         (CPP_DEFAULT_SPEC): Delete.
1417         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
1418         (CPP_DEFAULT_SPEC): Delete.
1419         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
1420         (CPP_DEFAULT_SPEC): Delete.
1421
1422         * doc/gty.texi: Small updates.
1423
1424 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
1425
1426         * objc/objc-act.c (warn_with_ivar): Adjust calls to
1427         diagnostic_count_error.
1428         (warn_with_method): Likewise.
1429
1430         * diagnostic.h (warnings_are_errors_message): New field of
1431         diagnostic_context.
1432         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
1433         match semantics.
1434         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
1435         (diagnostic_count_diagnostic): Make aware of other kinds of
1436         diagnostics.
1437         (diagnostic_initialize): Initialize warnings_are_errors_message field.
1438
1439 2002-06-11  Tom Tromey  <tromey@redhat.com>
1440
1441         For PR java/6520:
1442         * fold-const.c (fold_convert): Don't modify existing tree's type.
1443
1444 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
1445
1446         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
1447
1448 2002-06-11  Richard Henderson  <rth@redhat.com>
1449
1450         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
1451
1452 2002-06-11  Richard Henderson  <rth@redhat.com>
1453
1454         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
1455         DWARF2_UNWIND_INFO is false.
1456
1457 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
1458
1459         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
1460
1461         * config/s390/s390.c (emit_prologue): gen_store_multiple
1462         returns an insn now, not a pattern.
1463
1464 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1465
1466         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
1467         $(TEXI2DVI) -o.
1468
1469 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
1470
1471         * i386.c (x86_promote_QImode): Set for Athlon
1472         (x86_fast_prefix): New global variable.
1473         (x86_arch_always_fancy_math_387): Fix formating.
1474         * i386.h (x86_fast_prefix): Declare
1475         (TARGET_FAST_PREFIX): define.
1476         * i386.md (and to strict_low_part, HI to SI
1477         promoting splitter): Use new macro.
1478
1479         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
1480
1481 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
1482
1483         * Makefile.in (distclean): Delete junk left in testsuite
1484         directory, too.
1485
1486 2002-06-11  Jeffrey Law <law@redhat.com>
1487
1488         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
1489         last insn created by the splitter.
1490
1491         * caller-save.c (init_caller_save): Move creation of SAVEINSN
1492         and RESTINSN into into the scope of the sequence.
1493
1494         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
1495         RETURN insns.
1496
1497         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
1498
1499         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
1500         not the pattern.  So extract the pattern from the insn.
1501
1502         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
1503
1504 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
1505
1506         * config/s390/s390.md (movsi): Only use floating point
1507         register alternatives when operands are already fprs.
1508         (movdi_31, movdi_64): Likewise.
1509
1510 2002-06-11  David S. Miller  <davem@redhat.com>
1511
1512         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
1513         Only run RTX equality checks on INSN_P rtl.
1514
1515 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
1516
1517         * config/s390/s390.md (reload_base, ltorg): Remove.
1518         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
1519         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
1520         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
1521         s390_asm_output_pool_prologue): Likewise.
1522         * s390.h (s390_pool_start_insn): Likewise.
1523
1524         * s390.c (s390_output_symbolic_const): Remove support for
1525         old-style pool chunks.
1526         (s390_function_epilogue): Likewise.
1527         (s390_output_constant_pool): Likewise.  Also, fix incorrect
1528         alignment for 64-bit literal pools.
1529         (print_operand_address): Remove 'y' and 'Y' format flags.
1530         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
1531         old-style pool chunks.
1532         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
1533         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
1534         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
1535
1536         * s390.c (consttable_operand): New function.
1537         * s390-protos.h (consttable_operand): Declare it.
1538         * s390.h (PREDICATE_CODES): Add consttable_operand.
1539         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
1540         consttable_sf, consttable_df, pool_start_31, pool_end_31,
1541         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
1542         * s390.c (struct constant, struct constant_pool): New data types.
1543         (constant_modes, gen_consttable): New variables.
1544         (s390_start_pool, s390_end_pool, s390_add_pool,
1545         s390_dump_pool, s390_free_pool): New functions.
1546         (s390_chunkify_pool): Completely reimplement literal pool
1547         overflow handling.
1548
1549         * s390.c (s390_pool_overflow): New variable.
1550         * s390.h (s390_pool_overflow): Declare it.
1551         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
1552         jumps in literal pool overflow situations.
1553
1554         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
1555         (s390_frame_info): Account for possible use of RETURN_REGNUM
1556         by new literal pool overflow code.
1557         (s390_emit_prologue): Likewise.
1558
1559 2002-06-05  David S. Miller  <davem@redhat.com>
1560
1561         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
1562         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
1563         emit_insns_before_scope, emit_insns_after,
1564         emit_insns_after_scope): Delete declaration.
1565         * ada/misc.c (insert_code_for): Use emit_insn* instead of
1566         emit_insns_foo.
1567         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
1568         (alpha_set_memflags): Fix comment.
1569         (set_frame_related_p): Use get_insns instead of gen_sequence.
1570         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
1571         emitting no insns.
1572         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
1573         gen_sequence.
1574         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
1575         * config/fr30/fr30.c (fr30_move_double): Likewise.
1576         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
1577         Likewise.
1578         * config/ia64/ia64.c (spill_restore_mem): Likewise.
1579         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
1580         no insns.
1581         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
1582         instead of gen_sequence.
1583         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
1584         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
1585         * config/sh/sh.c (sh_need_epilogue): Likewise.
1586         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
1587         attributes.
1588         (setjmp pattern and split): Use them to avoid splitter which emits
1589         no RTL.
1590         * genattrtab.c (main): Emit include of function.h
1591         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
1592         get_insns instead of gen_sequence.
1593         * config/cris/cris.c (cris_split_movdx): Likewise.
1594         * emit-rtl.c (emit_insns*): Kill.
1595         (try_split): Expect insn list instead of SEQUENCE.
1596         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
1597         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
1598         Make them abort if a SEQUENCE is given and RTL checking is
1599         enabled.
1600         (emit_*_scope): Don't forget to set scope on final insn.
1601         (gen_sequence): Move from here...
1602         * ssa.c (gen_sequence): To here as private function.
1603         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
1604         comments.
1605         (expand_builtin_return, expand_builtin_mathfn): Likewise.
1606         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
1607         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
1608         (expand_builtin_expect_jump): Use get_insns and fix comments.
1609         * calls.c (try_to_integrate): Use emit_insn_foo.
1610         (expand_call, emit_library_call_value_1): Likewise.
1611         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
1612         (emit_move_insn_1): Use get_insns instead of gen_sequence.
1613         (expand_expr): Use emit_insn_foo.
1614         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
1615         * except.c (build_post_landing_pads): Likewise.
1616         * flow.c (attempt_auto_inc): Likewise.
1617         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
1618         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
1619         * function.c (fixup_var_refs_insn): Use get_insns instead of
1620         gen_sequence.
1621         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
1622         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
1623         (fixup_stack_1, purge_addressof_1, expand_main_function,
1624         get_arg_pointer_save_area): Likewise.
1625         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
1626         expand_function_end): Use emit_insn_foo.
1627         (record_insns, keep_stack_depressed): Work with insn list instead
1628         of SEQUENCE, fix comments.
1629         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
1630         noce_try_store_flag_constants, noce_try_store_flag_inc,
1631         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
1632         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
1633         (noce_process_if_block): Use get_insns instead of gen_sequence.
1634         * optabs.c (add_equal_note): Work with insn list, fix comments.
1635         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
1636         (expand_unop, expand_complex_abs, expand_unop_insn,
1637         expand_no_conflict_block): Likewise.
1638         (gen_move_insn): Use get_insns instead of gen_sequence.
1639         (gen_cond_trap): Likewise.
1640         * integrate.c (copy_rtx_and_substitute): Likewise.
1641         (emit_initial_value_sets): Use emit_insn_foo.
1642         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
1643         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
1644         now that RTL generators give insn lists.
1645         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
1646         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
1647         instead of gen_sequence.
1648         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
1649         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
1650         instead of gen_sequence.
1651         * loop.c (move_movables, emit_prefetch_instructions,
1652         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
1653         Likewise.
1654         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
1655         (product_cheap_p): Likewise, and add commentary about RTL wastage
1656         here.
1657         * lcm.c (optimize_mode_switching): Use get_insns instead of
1658         gen_sequence.
1659         * profile.c (gen_edge_profiler): Likewise.
1660         * regmove.c (copy_src_to_dest): Likewise.
1661         * reg-stack.c (compensate_edge): Likewise and fix comment.
1662         * gcse.c (process_insert_insn): Likewise.
1663         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
1664         * jump.c (delete_prior_computation): Update comment.
1665         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
1666         of gen_sequence, update comments to match.
1667         * recog.c (peephole2_optimize): Work with insn lists instead of
1668         SEQUENCE rtl.
1669         * sched-vis.c (print_pattern): Abort on SEQUENCE.
1670         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
1671         Use get_insns instead of gen_sequence.
1672         (copy_loop_body): Likewise and don't emit dummy NOTE.
1673         * genrecog.c: Don't mention SEQUENCE rtl in comments.
1674         * combine.c (try_combine): Expect insn lists from split generator.
1675         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
1676         hand.
1677
1678 2002-06-11  Roger Sayle  <roger@eyesopen.com>
1679             Andreas Jaeger <aj@suse.de>
1680
1681         * cfgbuild.c: Update copyright years.
1682
1683 2002-06-11  Andreas Schwab  <schwab@suse.de>
1684
1685         * config/m68k/m68k.h (PREDICATE_CODES): Define.
1686
1687 2002-06-11  Eric Christopher  <echristo@redhat.com>
1688
1689         * doc/tm.texi (Run-time Target): Add comment about flag_iso
1690         and strict ANSI.
1691         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
1692         * config/mips/ecoffl.h: Ditto.
1693         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
1694         (CPP_PREDEFINES): Ditto.
1695         * config/mips/elfl64.h: Ditto.
1696         * config/mips/elfl.h: Ditto.
1697         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
1698         out until irix header consolidation.
1699         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
1700         with SUBTARGET_OS_CPP_BUILTINS.
1701         * config/mips/iris6.h: Ditto.
1702         (CPLUSPLUS_CPP_SPEC): Remove.
1703         * config/mips/linux.h: Ditto.
1704         * config/mips/netbsd.h: Ditto.
1705         * config/mips/openbsd.h: Ditto.
1706         * config/mips/rtems.h: Ditto.
1707         * config/mips/rtems64.h: Ditto.
1708         * config/mips/sni-svr4.h: Ditto.
1709         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
1710         ISA_MIPS32, ISA_MIPS64): New defines.
1711         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
1712         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
1713         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1714         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
1715         (TARGET_CPU_CPP_BUILTINS): Define.
1716         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
1717         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
1718         (movdicc): Remove check for ISA_MIPS32.
1719          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
1720         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
1721         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
1722         sunge_sf, sunle_df, sunle_sf): New patterns.
1723
1724 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
1725
1726         * Makefile.in: Update cppmain.o.
1727         * cpphash.h (struct cpp_reader): Move some members to a
1728         nested structure.
1729         (trad_line): Rename saved_line.
1730         (_cpp_read_logical_line_trad): Update.
1731         (_cpp_remove_overlay): New.
1732         * cppinit.c (cpp_create_reader): No need to set saved_line.
1733         (cpp_destroy): Update.
1734         (cpp_read_main_file): Only overlay if compiling.
1735         * cpplex.c (continue_after_nul): Return false if in directive.
1736         * cpplib.c (EXPAND): New.
1737         (directive_table, SEEN_EOL): Update.
1738         (end_directive): Remove overlay if traditional; don't skip
1739         line in traditional #define.
1740         (prepare_directive_trad): New.
1741         (_cpp_handle_directive, run_directive): Update for traditional
1742         directives.
1743         (lex_macro_node): Simplify, don't use lex_identifier_trad.
1744         * cpplib.h (struct options): Add preprocess_only.
1745         * cppmain.c: Don't include intl.h.
1746         (cpp_preprocess_file): Set options->preprocess_only.
1747         (scan_translation_unit_trad): Fix, and print line numbers.
1748         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
1749         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
1750         save_replacement_text, _cpp_create_trad_definition): Update for
1751         variable renaming.
1752         (_cpp_overlay_buffer): Save line number.
1753         (_cpp_remove_overlay): Rename from restore_buff, restore line.
1754         (_cpp_read_logical_line_trad): Don't handle overlays here.
1755         (scan_out_logical_line): Process directives.
1756
1757 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
1758
1759         * gthr-win32.h: Wrap functions in extern "C".
1760         (__gthread_key_t): Typedef as unsigned long,
1761         not win32 DWORD.
1762         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
1763         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
1764         (__gthr_win32_once, __gthr_win32_key_create,
1765         __gthr_win32_key_delete, __gthr_win32_getspecific,
1766         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
1767         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
1768         __gthr_win32_mutex_unlock): Declare.
1769         (__gthread_once,__gthread_key_create,
1770         __gthread_key_delete, __gthread_getspecific,
1771         __gthread_setspecific, __gthread_mutex_init_function,
1772         __gthread_mutex_lock,__gthread_mutex_trylock,
1773         __gthread_mutex_unlock): Call corresponding
1774         __gthr_win32_* extern implementations if #defined
1775         __GTHREAD_HIDE_WIN32API.
1776         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
1777         $(srcdir)/config/i386/gthr-win32.c
1778         * config/i386/gthr-win32.c: New implementation file.
1779         (__gthr_win32_once, __gthr_win32_key_create,
1780         __gthr_win32_key_delete, __gthr_win32_getspecific,
1781         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
1782         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
1783         __gthr_win32_mutex_unlock): New functions, based on
1784         static inlines in gthr-win32.h.
1785
1786 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
1787
1788         * config/xtensa/xtensa.c (override_options): Don't warn about
1789         using -fpic or -fPIC when PIC is enabled by default.
1790
1791 2002-06-10  Roger Sayle  <roger@eyesopen.com>
1792
1793         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
1794
1795 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
1796
1797         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
1798         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
1799         exists, substitute its pathname as @extra_modes_file@, define
1800         EXTRA_MODES_FILE to be an appropriate string to #include it
1801         with, and define EXTRA_CC_MODES to 1.
1802
1803         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
1804         it's defined.  Get rid of redundancy in calling sequence for
1805         CC; don't use it to define CCmode, to avoid a warning.
1806         * libgcc2.c: Include symcat.h for the sake of machmode.def.
1807
1808         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
1809         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
1810         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
1811         New files.
1812         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
1813         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
1814
1815         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
1816         defining extra CC modes.
1817
1818 2002-06-10  Roger Sayle  <roger@eyesopen.com>
1819             Andreas Jaeger <aj@suse.de>
1820
1821         * cfgrtl.c (create_basic_block_structure):  Remove index argument
1822         and use last_basic_block++ instead.  (create_basic_block): Update.
1823         * cfgbuild.c (find_basic_blocks_1): Likewise.
1824
1825         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
1826         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
1827         * sched-ebb.c (schedule_ebbs): Likewise.
1828         * sched-rgn.c (schedule_insns): Likewise.
1829         * ssa-ccp.c (ssa_const_prop): Likewise.
1830         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
1831         * toplev.c (rest_of_compilation): Likewise.
1832         * config/ia64/ia64.c (ia64_reorg): Likewise.
1833
1834 2002-06-10  Roger Sayle  <roger@eyesopen.com>
1835
1836         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
1837         of matching registers.
1838
1839 2002-06-10  Roger Sayle  <roger@eyesopen.com>
1840
1841         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
1842         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
1843
1844 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
1845
1846         * config/mmix/mmix.h: Improve comments.
1847         (CPP_SPEC, CPP_PREDEFINES): Don't define.
1848         (TARGET_CPU_CPP_BUILTINS): Define.
1849         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
1850         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
1851         unused predicate.
1852         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
1853         compiler warning.
1854         (mmix_constant_address_p): Remove another
1855         redundant test before case.
1856         (mmix_canonicalize_comparison): Remove unused function.
1857         (mmix_print_operand_address): Don't test and adjust for operand in
1858         non-canonical format.
1859         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
1860         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
1861
1862 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
1863
1864         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
1865         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
1866         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
1867         (gen_compare): Use CCmode unconditionally.
1868
1869 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
1870
1871         PR optimization/6759
1872         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
1873         the REQ_EQUAL note.
1874
1875 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
1876
1877         PR c/6660
1878         * c-decl.c (grokfield): Allow user defined types if they declare
1879         structs or unions for unnamed fields.
1880
1881 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
1882
1883         PR c/6809
1884         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
1885
1886 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
1887
1888         PR optimization/6842
1889         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
1890         operand subreg cannot be simplified.
1891
1892 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
1893
1894         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
1895         (compare_constant): Likewise.
1896         (output_addressed_constants): Likewise.
1897
1898 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
1899
1900         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
1901         merge bb with itself.
1902
1903 2002-06-10  Richard Henderson  <rth@redhat.com>
1904
1905         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
1906         (builtin_zapnot): Likewise.
1907
1908         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
1909         reservation.
1910
1911 2002-06-10  Eric Christopher  <echristo@redhat.com>
1912
1913         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
1914         prototype and function.
1915         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
1916         (call_insn_operand): Remove half pic references.
1917         (legitimate_address_p): Ditto.
1918         * config/i386/i386.h: Remove half pic defines.
1919
1920 2002-06-10  Eric Christopher  <echristo@redhat.com>
1921
1922         * doc/extend.texi (Return Address): Add note explaining the side-
1923         effects of inlining on __builtin_return_address.
1924
1925 2002-06-10  Tom Tromey  <tromey@redhat.com>
1926
1927         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
1928         (c-common.o): Depend on langhooks.h.
1929
1930 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
1931
1932         * cpphash.h (_cpp_read_logical_line_trad,
1933         _cpp_expansions_different_trad): Update prototypes.
1934         * cpplex.c (continue_after_nul): New.
1935         * cppmain.c: Include cpphash.h.
1936         (scan_translation_unit_trad): New.
1937         (cpp_preprocess_file): Call it.
1938         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
1939         overlay.
1940         (_cpp_expansions_different_trad): Update prototype.
1941
1942 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
1943
1944         Fix cfi generation for SH[1-4]:
1945
1946         * sh.c (frame_insn): New function.
1947         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
1948         (push): Now returns rtx.  Use frame_insn.
1949         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
1950         of a DF register.
1951         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
1952
1953 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
1954
1955         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
1956         and gtype-desc.c.
1957         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
1958         (distclean): ... not here.  But do delete all testsuite/*.log,
1959         testsuite/*.sum files here.  Delete mkheaders.  Delete
1960         po/*.gmo and the testsuite directory in a split tree build.
1961
1962 2002-06-10  Jeffrey Law  <law@redhat.com>
1963
1964         * alias.c (static_reg_base_value): New to hold RTL for
1965         items allocated once per function for the aliasing code.
1966         (init_alias_once_per_function): Initialize static_reg_base_value.
1967         (init_alias_analysis): Avoid throw-away allocations of RTL by
1968         using pre-computed values in static_reg_base_value.
1969         * function.c (prepare_function_start): Call
1970         init_alias_once_per_function appropriately.
1971         * rtl.h (init_alias_once_per_function): Declare.
1972         * caller-save (init_caller_save): Restructure slightly to
1973         avoid lots of silly RTL generation.
1974         * expr.c (init_expr_once): Likewise.
1975         * reload1.c (reload_cse_regs_1): Allocate throw-away register
1976         RTL object here.  Pass it into children.
1977         (reload_cse_simplify_operands): Use passed-in register RTL
1978         object.
1979         (reload_cse_simplify): Pass through throw-away register
1980         RTL object.
1981
1982 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
1983
1984         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
1985
1986 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
1987
1988         * gcc.c (process_command): Avoid assignment to read-only location.
1989         Fix sizeof calculation.
1990
1991 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
1992
1993         * cpphash.h (struct cpp_macro): Put comments on their own lines.
1994         (_cpp_expansions_different_trad): New.
1995         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
1996         * cpptrad.c (canonicalize_text): New.
1997         (scan_out_logical_line): Handle no arguments correctly.
1998         (save_replacement_text): Commit memory when finished.
1999         (_cpp_expansions_different_trad): New.
2000
2001 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2002
2003         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
2004         TREELANG and COBOL.
2005         (lang_names): Add treelang and cobol.
2006         (get_file_basename): Add code to support treelang and cobol as
2007         4th and 5th users of c-common.c.
2008
2009 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
2010
2011         * Makefile.in (install-driver): Install driver as
2012         $(target_alias)-gcc-$(version).
2013         * gcc.c (spec_version): Make const.
2014         (process_command): Handle -V and -b by using exec.
2015         * doc/invoke.texi (Target Options): Restore -V option,
2016         update docs for -b option.
2017
2018 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2019
2020         * configure.in (remaining_languages_check):
2021         Added check that all languages specified were found.
2022         Exit if not found. Previous behaviour was silent failure.
2023         * configure: Regenerated.
2024
2025 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2026
2027          First steps to making treelang documentation compliant, based on
2028          instructions in sourcebuild.texi. Also add to gcc.c list of
2029          default languages.
2030
2031         * doc/contrib.texi: Add self as contributor of treelang.
2032
2033         * doc/frontends.texi: Add mention of treelang.
2034
2035         * doc/invoke.texi (Overall Options): Add mention of treelang.
2036
2037         * doc/standards.texi:  Add mention of treelang.
2038
2039 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
2040
2041         * config/cris/cris.c: Include ggc.h
2042
2043 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2044
2045         * cpphash.h (_cpp_push_text_context): Update.
2046         (_cpp_arguments_ok): New.
2047         * cppmacro.c (_cpp_arguments_ok): New, split out from...
2048         (collect_args): ...here.
2049         (_cpp_push_text_context): Change inputs.
2050         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
2051         replace_args_and_push): New.
2052         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
2053         Don't use IS macros directly.
2054         (scan_out_logical_line): Handle function-like macro argument
2055         collection.
2056         (push_replacement_text): Update.
2057         (replacement_length): Remove.
2058         (_cpp_create_trad_definition): Don't skip whitespace before
2059         checking for '('.
2060
2061 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2062
2063         * config/avr/avr.c (avr_mcu_types): Update for new devices.
2064         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
2065         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
2066         * config/avr/avr.md ("type" and "length" attributes): New type
2067         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
2068         output a single "call" or "rcall" insn depending on device size.
2069         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
2070
2071 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
2072
2073         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
2074         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
2075         assembler option.
2076         (CPP_CPU_SPEC): Add power3 and power4.
2077         (PROCESSOR_DEFAULT): Change to 604e.
2078         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
2079         (CPP_CPU_SPEC): Similar additions.
2080         (enum process_type): Add POWER4.
2081         (RTX_COSTS): Add POWER4.
2082         (CPP_CPU_SPEC): Similar additions.
2083         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
2084         (PROCESSOR_DEFAULT64): Define.
2085         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
2086         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
2087         branch adjustment.
2088         (rs6000_issue_rate): Add Power4.
2089         * config/rs6000/rs6000.md (cpu attr): Add power4.
2090         (iu compare): Remove 604, 604e, 620, 630.
2091         Add basic Power4 scheduling information.
2092         (mfcr/mtcrf): Change type attribute to cr_logical.
2093
2094 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2095
2096         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
2097         ATTRIBUTE_PRINTF_2.
2098         * gengtype-lex.l: Fix format specifier warning.
2099
2100         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
2101         not isspace.
2102         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
2103         lieu of isspace/IDchar.
2104         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
2105         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
2106         ISSPACE.
2107
2108 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
2109
2110         * Makefile.in (LIBCPP_OBJS): Take out version.o.
2111         * cpphash.h (cpp_reader): Take out print_version member.
2112         * cppinit.c: (cpp_handle_option): Don't do anything with
2113         -version.  Just set help_only for --version, --target-help.
2114         Just set verbose option for -v.
2115         (cpp_post_options): Don't print a version string.
2116
2117 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2118
2119         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
2120         (avr_section_type_flags): New, handle .noinit* sections.
2121
2122 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2123
2124         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
2125         and include netbsd_entry_point.
2126         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
2127         (NETBSD_ENTRY_POINT): Define.
2128
2129 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2130
2131         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
2132         if not already defined.
2133         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
2134
2135 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2136
2137         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
2138         in a noreturn function.
2139         (avr_output_function_prologue, avr_output_function_epilogue):
2140         Correct function size calculation.  Do not crash on empty function.
2141         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
2142
2143 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2144
2145         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
2146         netbsd_link_spec and netbsd_entry_point.
2147         (LINK_SPEC): Use %(netbsd_link_spec).
2148         (NETBSD_ENTRY_POINT): Define.
2149
2150 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2151
2152         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
2153         linker emulation.
2154         (LINK_ARCH64_SPEC): Likewise.
2155         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
2156         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
2157
2158 2002-06-08  Marc Espie  <espie@openbsd.org>
2159
2160         * lists.c (free_list):  Fix typo in comment.
2161
2162 2002-06-08  Andreas Jaeger  <aj@suse.de>
2163
2164         * lcm.c (optimize_mode_switching): Add unused attribute for
2165         variable.
2166
2167         * sched-deps.c (sched_analyze): Remove unused variable.
2168
2169 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
2170
2171         * diagnostic.def: Don't capitalize diagnostict descriptors.
2172
2173 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2174
2175         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
2176         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
2177         (NETBSD_ENTRY_POINT): Define.
2178
2179 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2180
2181         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
2182         NETBSD_LINK_SPEC_ELF.
2183         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
2184         (NETBSD_ENTRY_POINT): Define.
2185         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
2186         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
2187         netbsd_entry_point.
2188         (NETBSD_ENTRY_POINT): Define.
2189
2190 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2191
2192         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
2193         netbsd_link_spec and netbsd_entry_point.
2194         (LINK_SPEC): Use %(netbsd_link_spec).
2195         (NETBSD_ENTRY_POINT): Define.
2196
2197 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2198
2199         * config/netbsd-elf.h (LINK_SPEC): Rename to...
2200         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
2201         to specify program entry point.
2202
2203 2002-06-07  Jeff Law <law@redhat.com
2204
2205         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
2206         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
2207         than creating a new register.
2208         (distribute_notes): Likewise.
2209         * df.c (df_reg_use_gen): Likewise.
2210         (df_reg_clobber_gen): Likewise.
2211         (df_ref_record): Likewise.
2212         * expr.c (use_regs): Likewise.
2213         * flow.c (propagate_one_insn): Likewise.
2214         (mark_set_1): Likewise.
2215         (mark_used_reg): Likewise.
2216         * reload.c (emit_reload_insns): Likewise.
2217
2218 2002-06-07  Roger Sayle  <roger@eyesopen.com>
2219
2220         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
2221         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
2222         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
2223         comparison code comp can be reversed.
2224
2225 2002-06-07  Roger Sayle  <roger@eyesopen.com>
2226
2227         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
2228         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
2229         equivalent x > -1.0 when -ffast-math.
2230
2231 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2232
2233         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
2234         * config/mips/t-netbsd: New file.
2235
2236 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
2237
2238         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
2239         options their own entries.
2240         (parse_option): Clarify comment.
2241         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
2242         special case.  Replace if/strcmp chain for -W options with
2243         use of new OPT_* entries for them.
2244         (cpp_handle_options): Update to match.
2245         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
2246         * c-decl.c: Update call to cpp_handle_option.
2247
2248 2002-06-07  Akim Demaille  <akim@epita.fr>
2249
2250         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
2251         Whitespace changes.
2252
2253 2002-06-07  Jeffrey Law  <law@redhat.com>
2254
2255         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
2256         on empty lists.
2257
2258 2002-06-07  H.J. Lu  (hjl@gnu.org)
2259
2260         * configure.in: Add --enable-__cxa_atexit.
2261         * configure: Regenerated.
2262         * config.in: Likewise.
2263
2264         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
2265         not defined.
2266
2267 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
2268
2269         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
2270
2271 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2272
2273         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
2274
2275 2002-06-07  Jason Merrill  <jason@redhat.com>
2276
2277         * cppexp.c (num_equality_op): Use a temporary variable to work
2278         around gcc 3.0.4 bug.
2279
2280 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
2281
2282         * diagnostic.c (diagnostic_build_prefix): Tidy.
2283
2284 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
2285
2286         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
2287         scan_parameters, save_replacement_text, replacement_length): New.
2288         (scan_out_logical_line): Take a macro and save parameters if
2289         non-NULL.
2290         (_cpp_logical_line_trad): Update.
2291         (_cpp_create_trad_definition): Update to handle function-like
2292         macros.
2293         * cpplex.c (new_buff): Update.
2294         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
2295         * cpphash.h: ...here.
2296         (CPP_ALIGN2, _cpp_save_parameter): New.
2297         * cppmacro.c (save_parameter): Rename, export.
2298         (parse_params): Update.
2299
2300 2002-06-07  Andreas Jaeger  <aj@suse.de>
2301
2302         * config/mmix/mmix.c: Remove extra broken prototype for
2303         mmix_init_machine_status.
2304
2305 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
2306
2307         * gengtype.c: Add comments before all the routines.
2308
2309 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2310
2311         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
2312         from and add t-sh64 to ${tmake_file}.
2313         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
2314         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
2315         * config/sh/t-netbsd-sh5-32: Remove.
2316         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
2317         MULTILIB_ENDIAN.
2318         (MULTILIB_DIRNAMES): Define.
2319
2320 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
2321
2322         * i386.md (and promoting splitters): Disable QI to SImode promoting
2323         when doing so changes immediate to be 32bit.
2324
2325         * rtl.h (emit_*_scope): Declare.
2326         * emit-rtl.c (emit_*_scope): New global functions.
2327         (try_split): Copy scope.
2328         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2329         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2330         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
2331         noce_process_if_block, find_cond_trap): Copy scopes.
2332         * recog.c (peephole2_optimize): likewise.
2333
2334 2002-06-06  Jeffrey Law  <law@redhat.com>
2335
2336         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
2337
2338 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
2339
2340         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
2341
2342 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2343
2344         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
2345         ($(docdir)/gccinstall.info): New target.
2346         (info): Depend on it.
2347         (gccinstall.dvi): New target.
2348         (dvi): Depend on it.
2349         * doc/.cvsignore: Ignore new info files.
2350         * doc/install.texi (@setfilename): Reflect new info filename.
2351
2352 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
2353
2354         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
2355         on an UNSPEC.
2356
2357 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2358
2359         PR objc/6834
2360         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
2361         c_common_get_alias_set.
2362         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
2363
2364 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2365
2366         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
2367         functions.
2368         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
2369         * avr/avr.c (avr_output_function_epilogue): Use above to determine
2370         function size.
2371         * pa/pa.c (pa_output_function_prologue): Likewise.
2372
2373 2002-06-05  David S. Miller  <davem@redhat.com>
2374
2375         * integrate.c (subst_constants): Handle 'B' RTL format.
2376
2377 2002-06-05  Eric Christopher  <echristo@redhat.com>
2378
2379         * varasm.c (make_decl_rtl): Fix comment for removed
2380         halfpic.c.
2381
2382 2002-06-05  Eric Christopher  <echristo@redhat.com>
2383
2384         * Makefile.in: Remove missed halfpic bits.
2385
2386 2002-06-05  Eric Christopher  <echristo@redhat.com>
2387
2388         * toplev.c: Remove half-pic.
2389         * config/mips/mips.c: Ditto.
2390         * config/mips/mips.h: Ditto. Remove unused defines.
2391         * config/mips/openbsd.h: Update comment to reflect above.
2392         * config/mips/mips.md: Remove half-pic constraints.
2393         * halfpic.h: Delete.
2394         * halfpic.c: Ditto.
2395
2396 2002-06-05  Jeffrey Law  <law@redhat.com>
2397
2398         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
2399         rejects (mem (lo_sum (reg) (unspec))), but will allow
2400         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
2401
2402 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2403
2404         * cpphash.h (_cpp_create_definition): Update prototype.
2405         (_cpp_push_text_context, _cpp_create_trad_definition): New.
2406         ( cpp_lex_identifier_trad): New.
2407         (_cpp_set_trad_context): New.
2408         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
2409         * cpplib.c (SEEN_EOL): Update.
2410         (lex_macro_node): Update for -traditional.
2411         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
2412         * cppmacro.c (_cpp_create_definition): Split into
2413         create_iso_definition() and _cpp_create_trad_definition().
2414         (warn_of_redefinition): Update prototype; handle traditional
2415         macros.
2416         (_cpp_push_text_context): New.
2417         * cpptrad.c (skip_whitespace, push_replacement_text): New.
2418         (lex_identifier): Call ht_lookup with correct start.
2419         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
2420         _cpp_set_trad_context): New.
2421         (scan_out_logical_line): Update to handle changing contexts.
2422
2423 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
2424
2425         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
2426         (shl*-*-elf*): Add.
2427         * config/sh/t-be (MULTILIB_ENDIAN): Set.
2428         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
2429         * t-sh (MULTILIB_ENDIAN): Set.
2430         (MULTILIB_OPTIONS): Use it.
2431         * t-sh64 (MULTILIB_OPTIONS): Likewise.
2432         (MULTILIB_DIRNAMES): Likewise.
2433
2434 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
2435
2436         * toplev.h (report_error_function): Remove.
2437
2438         * diagnostic.h (location_t): New datatype.
2439         (text_info): Likewise.
2440         (diagnostic_info): Likewise.
2441         (output_prefix): New macro.
2442         (diagnostic_last_function_changed): Likewise.
2443         (diagnostic_set_last_function): Likewise.
2444         (diagnostic_last_module_changed): Likewise.
2445         (diagnostic_set_last_module): Likewise.
2446         (report_diagnostic): Now macro.
2447         (diagnostic_set_info): Declare.
2448
2449         * diagnostic.c (report_problematic_module): Rename to
2450         diagnostic_repor_current_module.
2451         (set_diagnostic_context): Remove.
2452         (count_error): Rename to diagnostic_error_count.
2453         (error_function_changed): Remove.
2454         (record_last_error_function): Likewise.
2455         (error_module_changed): Likewise.
2456         (record_last_error_module): Likewise.
2457         (context_as_prefix): Rename to diagnostic_build_prefix.
2458         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
2459         (diagnostic_set_info): New function.
2460
2461         * objc/objc-act.c: #include diagnostic.h
2462         (error_with_ivar): Adjust call to count_error.
2463         (warn_with_method): Likewise.
2464         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
2465
2466 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
2467
2468         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
2469         lang_hooks.types.make_type instead of make_node; set up
2470         __va_list_tag type decl.
2471         (xtensa_builtin_saveregs): Remove broken use of
2472         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
2473         for saved registers; add varargs alias set.
2474
2475 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2476
2477 config:
2478         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
2479         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
2480         CPP_PREDEFINES and part of CPP_SPEC.
2481         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
2482         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
2483
2484 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
2485
2486         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
2487
2488 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
2489
2490         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
2491
2492 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
2493
2494         * gengtype-yacc.y: Make sure all rules end with a semicolon.
2495
2496 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
2497
2498         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
2499         typo in function prototype and include "ggc.h" header.
2500
2501 2002-06-04  Richard Henderson  <rth@redhat.com>
2502
2503         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
2504         (print_operand) ['U']: Likewise.
2505         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
2506         (alpha_expand_unaligned_store_words): Likewise.
2507         (alpha_expand_builtin_vector_binop): Fix typo.
2508         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
2509         umulh, and cix insns.
2510         (one_arg_builtins): Add cix builtins.
2511         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
2512         (alpha_expand_builtin): Fix typo in arity.
2513         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
2514         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
2515         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
2516         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
2517         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
2518         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
2519         builtin_ctlz, builtin_ctpop): New.
2520         * doc/extend.texi (Alpha Built-in Functions): Update.
2521
2522 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
2523
2524         * gengtype.c (write_gc_root): Don't unnecessarily prevent
2525         global variable-length arrays being roots.
2526
2527         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
2528         * configure.in (config_gtfiles): New variable.
2529         (all_gtfiles): Initialise from config_gtfiles.
2530         * configure: Regenerate.
2531
2532 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2533
2534 config/i386:
2535         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
2536         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
2537         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
2538         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
2539         win32.h (CPP_SPEC): Remove cpp_cpu.
2540         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
2541         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
2542
2543 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
2544
2545         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
2546
2547 2002-06-04  Jeff Law <law@redhat.com.
2548             David Edelsohn <edelsohn@gnu.org>
2549             Michael Matz <matz@kde.org>
2550
2551         * sched-int.h (struct deps): New field libcall_block_tail_insn.
2552         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
2553         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
2554         is set, then mark the current insn as being part of a libcall
2555         scheduling group.
2556         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
2557
2558         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
2559         insns against the issue rate.
2560
2561 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
2562
2563         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
2564         * final.c (final_scan_insn): Likewise.
2565         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
2566         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
2567         * haifa-sched.c (unlink_other_notes): Likeewise.
2568         (reemit_notes): Likewise.
2569         * print-rtl.c (print_rtx): Likewise.
2570         * sched-deps (sched-analyze): Likewise.
2571         * rtl.c (note_insn_name): Likewise.
2572         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
2573         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
2574         (RANGE_*): Kill.
2575
2576 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
2577
2578         * varasm.c (mark_constants): Handle RTX format 'B'.
2579
2580 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2581
2582         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
2583         (struct cpp_context): Add traditional fields.
2584         * cppmacro.c (paste_all_tokens, push_ptoken_context,
2585         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
2586         * cpptrad.c (skip_comment, lex_identifier,
2587         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
2588
2589 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
2590
2591         * gbl-ctors.h: Fix formatting.
2592         * gcc.c: Likewise.
2593         * gccspec.c: Likewise.
2594         * gcov.c: Likewise.
2595         * gcov-io.h: Likewise.
2596         * gcse.c: Likewise.
2597         * ggc-common.c: Likewise.
2598         * ggc.h: Likewise.
2599         * ggc-page.c: Likewise.
2600         * ggc-simple.c: Likewise.
2601         * global.c: Likewise.
2602         * graph.h: Likewise.
2603         * gthr-dce.h: Likewise.
2604         * gthr.h: Likewise.
2605         * gthr-posix.h: Likewise.
2606         * gthr-rtems.h: Likewise.
2607         * gthr-solaris.h: Likewise.
2608         * gthr-win32.h: Likewise.
2609
2610 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
2611
2612         Merge from pch-branch:
2613
2614         * gengtype.h (UNION_OR_STRUCT_P): New macro.
2615         * gengtype.c (write_gc_structure_fields): Use it.
2616         (write_gc_root): Use it here too.
2617
2618         * gengtype.c (write_gc_structure_fields): Assume that lengths
2619         of typenames fit into an 'int'; don't pass a size_t to "%d" in
2620         printf.
2621         (write_gc_marker_routine_for_structure): Likewise.
2622         (write_gc_types): Likewise.
2623         (write_gc_root): Likewise.
2624
2625         * varray.h (VARRAY_CLEAR): New.
2626         (varray_clear): Prototype.
2627         * varray.c (varray_clear): New.
2628         * cselib.c (reg_values_old): New.
2629         (used_regs_old): New.
2630         (cselib_init): Use cached varrays if available to avoid
2631         generating large amounts of garbage.
2632         (cselib_finish): Don't throw away old varrays.
2633
2634         * final.c (insn_addresses_): Move out of ifdef.
2635
2636         * varray.c (uses_ggc): Make more varray kinds GCable.
2637         * varray.h (union varray_data_tag): Let gengtype see
2638         fields 'generic' and 'te'.
2639         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
2640         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
2641         (reg_to_stack): Don't call VARRAY_FREE.
2642         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
2643         (insn_addresses_): Use gengtype to mark.
2644         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
2645         pointers; handle generic pointers in unused union fields.
2646         (get_output_file_with_visibility): Include cselib.h,
2647         insn-addr.h in gtype-desc.c.
2648         * function.c (prologue): Use gengtype to mark.
2649         (epilogue): Likewise.
2650         (sibcall_epilogue): Likewise.
2651         * dependence.c: Include gt-dependence.h, ggc.h.
2652         (struct def_use): Use gengtype to mark.
2653         (struct loop): Likewise.
2654         (struct induction): Likewise.
2655         (struct dependence): Likewise.
2656         (def_use_chain): Likewise.
2657         (dep_chain): Likewise.
2658         (loop_chain): Likewise.
2659         (induction_chain): Likewise.
2660         (init_dependence_analysis): Don't free anything, just clear pointers.
2661         (build_def_use): Use GGC to allocate def_use.
2662         (add_loop): Use GGC to allocate loop.
2663         (find_induction_variable): Use GGC to allocate induction.
2664         (check_node_dependence): Use GGC to allocate induction, dependence.
2665         (dump_node_dependence): Don't free varrays.
2666         (end_dependence_analysis): Likewise.
2667         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
2668         (struct elt_loc_list): Likewise.
2669         (struct elt_list): Likewise.
2670         * cselib.c: Don't include obstack.h.
2671         (hash_table): Use gengtype to mark.
2672         (reg_values): Use gengtype to mark.
2673         (used_regs): Use gengtype to mark.
2674         (cselib_obstack): Delete.
2675         (cselib_startobj): Delete.
2676         (empty_vals): Mark as deletable.
2677         (empty_elt_lists): Mark as deletable.
2678         (empty_elt_loc_lists): Mark as deletable.
2679         (new_elt_list): Use GGC to allocate struct elt_list.
2680         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
2681         (clear_table): Don't delete obstack; don't unnecessarily clear
2682         deletable variables.
2683         (new_cselib_val): Use GGC to allocate struct cselib_val.
2684         (cselib_init): Don't set up obstacks.  Use GGC to allocate
2685         hash table.
2686         (cselib_finish): Just clear variables, don't free anything.
2687         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
2688         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
2689         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
2690         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
2691         (gt-reg-stack.h): New rule.
2692         (gt-dependence.h): New rule.
2693         (gtype-desc.o): Add cselib.h, insn-addr.h.
2694
2695         * varray.c: Use only necessary headers.
2696         (element_size): New.
2697         (uses_ggc): New.
2698         (varray_init): Take type, not size.  Use GGC if appropriate.
2699         (varray_grow): Update for change to struct varray_head_tag.
2700         Use GGC if appropriate.
2701         * varray.h (struct const_equiv_data): Use gengtype.
2702         (enum varray_data_enum): New.
2703         (union varray_data_tag): Use gengtype.
2704         (struct varray_head_tag): Use gengtype.  Replace size field with
2705         enum varray_data_enum.
2706         (varray_init): Update prototype.
2707         (VARRAY_SCHED_INIT): Delete.
2708         (VARRAY_*_INIT): Update for change to varray_init.
2709         (VARRAY_SCHED): Delete.
2710         (VARRAY_PUSH_SCHED): Delete.
2711         (VARRAY_TOP_SCHED): Delete.
2712         * tree.h: Update for change to length specifier.
2713         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
2714         (clone_body): Likewise.
2715         * ssa.h (ssa_definition): Use gengtype to mark.
2716         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
2717         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
2718         * rtl.h (struct rtvec_def): Update for change to length specifier.
2719         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
2720         (struct initial_value_struct): Update for change to length specifier.
2721         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
2722         (ggc_add_tree_varray_root): Delete prototype.
2723         (ggc_mark_rtx_varray): Delete prototype.
2724         (ggc_mark_tree_varray): Delete prototype.
2725         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
2726         (ggc_add_tree_varray_root): Delete.
2727         (ggc_mark_rtx_varray): Delete.
2728         (ggc_mark_tree_varray): Delete.
2729         (ggc_mark_rtx_varray_ptr): Delete.
2730         (ggc_mark_tree_varray_ptr): Delete.
2731         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
2732         (create_varray): Delete prototype.
2733         * gengtype.c (varrays): Delete.
2734         (create_varray): Delete.
2735         (adjust_field_type): Detect array of string pointers.
2736         (process_gc_options): Remove code to handle varray_type option.
2737         (set_gc_used_type): Remove TYPE_VARRAY case.
2738         (output_escaped_param): New.
2739         (write_gc_structure_fields): Use output_escaped_param on all
2740         parameters.  Handle 'skip' with 'use_param' option.  Handle
2741         arrays of strings.  Remove TYPE_VARRAY handling.
2742         (write_gc_roots): Use boolean to detect 'length' option.
2743         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
2744         (struct_fields): Call adjust_field_type on array fields.
2745         (type): Remove VARRAY_TYPE case.
2746         (type_option): Likewise.
2747         * gengtype-lex.l: Don't consider varray_type a keyword.
2748         * function.h: Update for change to length specifier.
2749         (free_eh_status): Delete prototype.
2750         * function.c (free_after_compilation): Don't call free_eh_status.
2751         (reorder_blocks): Don't use VARRAY_FREE.
2752         * except.c (struct eh_status): Update for change to length specifier.
2753         remove varray_type specifier.
2754         (free_eh_status): Delete.
2755         * dwarf2out.c: Include gt-dwarf2out.h.
2756         (used_rtx_varray): Use gengtype to mark, move
2757         outside ifdefs.
2758         (incomplete_types): Likewise.
2759         (decl_scope_table): Likewise.
2760         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
2761         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
2762         * c-tree.h (struct lang_type): Update for change to length specifier.
2763         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
2764         * c-objc-common.c: Include gt-c-objc-common.h.
2765         (deferred_fns): Mark for gengtype.
2766         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
2767         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
2768         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
2769         (gtype-desc.o): Update dependencies.
2770         (dwarf2out.o): Add gt-dwarf2out.h.
2771         (varray.o): Update dependencies.
2772         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
2773         (gt-c-objc-common.h): New rule.
2774         (gt-dwarf2out.h): New rule.
2775         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
2776
2777         * doc/gty.texi (GTY Options): Correct spelling.
2778         (GGC Roots): Likewise.
2779         * Makefile.in (TEXI_CPP_FILES): New.
2780         (TEXI_GCC_FILES): New.
2781         (TEXI_GCCINT_FILES): New.
2782         (TEXI_CPPINT_FILES): New.
2783         ($(docdir)/cpp.info): Use new macros.
2784         ($(docdir)/gcc.info): Likewise.
2785         ($(docdir)/gccint.info): Likewise.
2786         ($(docdir)/cppinternals.info): Likewise.
2787         (cpp.dvi): Likewise.
2788         (gcc.dvi): Likewise.
2789         (gccint.dvi): Likewise.
2790         (cppinternals.dvi): Likewise.
2791
2792         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
2793         * doc/gccint.texi (Top): Include gty.texi.
2794         * doc/gty.texi: New file.
2795
2796         * bitmap.c: Include ggc.h, gt-bitmap.h.
2797         (bitmap_ggc_free): New.
2798         (bitmap_elem_to_freelist): New.
2799         (bitmap_element_free): Use bitmap_elem_to_freelist.
2800         (bitmap_element_allocate): Allow use of GGC.
2801         (bitmap_clear): Use bitmap_elem_to_freelist.
2802         (bitmap_copy): Update for change to bitmap_element_allocate.
2803         (bitmap_set_bit): Likewise.
2804         (bitmap_operation): Update for changes elsewhere.
2805         (bitmap_initialize): Allow to create bitmaps that will use GGC.
2806         * bitmap.h (struct bitmap_element_def): Use gengtype.
2807         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
2808         (bitmap_initialize): Add extra parameter.
2809         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
2810         (BITMAP_ALLOCA): Delete.
2811         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
2812         (BITMAP_GGC_ALLOC): New.
2813         * Makefile.in (gtype-desc.o): Add bitmap.h.
2814         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
2815         (GTFILES): Add bitmap.c.
2816         (gt-bitmap.h): New rule.
2817         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
2818         * basic-block.h: Update for changes to bitmap_initialize.
2819         * except.c (exception_handler_label_map): Move into...
2820         (struct eh_status): Here.
2821         (struct eh_region): Make 'aka' GCable.
2822         (free_eh_status): Don't need to specially handle
2823         exception_handler_label_map.
2824         (add_ehl_entry): Update for changes to exception_handler_label_map.
2825         (find_exception_handler_labels): Likewise.
2826         (remove_exception_handler_label): Likewise.
2827         (maybe_remove_eh_handler): Likewise.
2828         (for_each_eh_label): Likewise.
2829         (remove_eh_handler): Allocate 'aka' using GGC.
2830         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
2831         to list of includes.
2832
2833         * gengtype.c (write_gc_marker_routine_for_structure): Name
2834         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
2835         (write_gc_types): Arrange for the tests with NULL to be inlined.
2836         (write_gc_roots): Update uses of procedure pointers.
2837         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
2838
2839         * Makefile.in (explow.o): Add dependency on gt-explow.h.
2840         (sdbout.o): Add dependency on gt-sdbout.h.
2841
2842         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
2843         (mem_attrs_htab): Likewise.
2844         (init_emit_once): Don't call ggc_add_deletable_htab.
2845         * fold-const.c (size_htab): Use gengtype to clear unused entries.
2846         (size_int_type_wide): Don't call ggc_add_deletable_htab.
2847         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
2848         parameters, use them, change callers.
2849         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
2850         (write_gc_roots): Handle 'if_marked' option.
2851         (main): Don't need to call set_gc_used_type any more.
2852         * ggc.h (ggc_htab_marked_p): Delete.
2853         (ggc_htab_mark): Delete.
2854         (struct ggc_cache_tab): New.
2855         (gt_ggc_cache_rtab): New declaration.
2856         * ggc-common.c (struct d_htab_root): Delete.
2857         (d_htab_roots): Delete.
2858         (ggc_add_deletable_htab): Delete.
2859         (ggc_htab_delete): Handle new htab-deleting mechanism.
2860         (ggc_mark_roots): Use new htab-deleting mechanism.
2861         * tree.c (type_hash_table): Use gengtype to clear unused entries.
2862         Make static.
2863         (init_obstacks): Don't call ggc_add_deletable_htab.
2864
2865         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
2866         (struct hashed_entry): Likewise.
2867         (nst_method_hash_list): Likewise.
2868         (cls_method_hash_list): Likewise.
2869         (HASH_ALLOC_LIST_SIZE): Delete.
2870         (ATTR_ALLOC_LIST_SIZE): Delete.
2871         * objc/objc-act.c (hash_init): Use ggc to allocate
2872         nst_method_hash_list, cls_method_hash_list.
2873         (hash_enter): Use ggc to allocate; allocate one entry at a time.
2874         (hash_add_attr): Likewise.
2875         (ggc_mark_hash_table): Delete.
2876         (objc_act_parse_init): Delete.
2877         (objc_init): Delete reference to objc_act_parse_init.
2878         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
2879         obstack.h.  Replace references to 'struct hash_table' with htab_t.
2880         (struct symbol_hash_entry): Replace hash header with key field.
2881         (struct file_hash_entry): Replace hash header with key field.
2882         (struct demangled_hash_entry): Replace hash header with key field.
2883         (hash_string_eq): New.
2884         (hash_string_hash): New.
2885         (symbol_hash_newfunc): Delete.
2886         (symbol_hash_lookup): Modify to use htab_t.
2887         (file_hash_newfunc): Delete.
2888         (file_hash_lookup): Modify to use htab_t.
2889         (demangled_hash_newfunc): Delete.
2890         (demangled_hash_lookup): Modify to use htab_t.
2891         (tlink_init): Modify to use htab_t.
2892         * hash.h: Delete.
2893         * hash.c: Delete.
2894         * ggc.h: Delete forward structure declarations.
2895         Delete prototypes for deleted functions.
2896         * ggc-common.c: Don't include hash.h.
2897         (ggc_add_tree_hash_table_root): Delete.
2898         (ggc_mark_tree_hash_table_entry): Delete.
2899         (ggc_mark_tree_hash_table): Delete.
2900         (ggc_mark_tree_hash_table_ptr): Delete.
2901         * gengtype.c (write_gc_structure_fields): Allow param_is option.
2902         (write_gc_marker_routine_for_structure): Use visibility of
2903         the parameter if there is one.
2904         * function.c: Replace hash.h with hashtab.h.  Replace references
2905         to 'struct hash_table *' with htab_t.
2906         (struct insns_for_mem_entry): Include a plain key.
2907         (fixup_var_refs_insns_with_hash): Update to use htab_t.
2908         (insns_for_mem_newfunc): Delete.
2909         (insns_for_mem_hash): Update to use htab_t.
2910         (insns_for_mem_comp): Likewise.
2911         (insns_for_mem_walk): Likewise.
2912         * c-lang.c: Include ggc.h.
2913         * Makefile.in (OBJS): Remove hash.o.
2914         (c-lang.o): Add GGC_H.
2915         (COLLECT2_OBJS): Remove hash.o.
2916         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
2917         (ggc-common.o): Remove hash.h.
2918         (function.o): Remove hash.h, add HASHTAB_H.
2919         (genautomata.o): Remove hash.h, add HASHTAB_H.
2920
2921         * varasm.c (mark_const_str_htab_1): Delete.
2922         (mark_const_str_htab): Delete.
2923         (const_str_htab_del): Delete.
2924         (const_str_htab): Use gengtype to mark.
2925         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
2926         allocate them.
2927         * tree.c (mark_tree_hashtable_entry): Delete.
2928         (mark_tree_hashtable): Delete.
2929         * tree.h (mark_tree_hashtable): Delete prototype.
2930         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
2931         (ggc_mark): Likewise.
2932         (ggc_calloc): New.
2933         (htab_create_ggc): New.
2934         * ggc-common.c (ggc_calloc): New.
2935         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
2936         (struct type): Add param_struct structure.
2937         * gengtype.c (param_structs): New.
2938         (adjust_field_type): Handle param_is option.
2939         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
2940         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
2941         (write_gc_structure_fields): Add new PARAM parameter.  Update
2942         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
2943         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
2944         Use it to generate function name.  Update callers.
2945         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
2946         Process them.
2947         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
2948         option.
2949         (main): Define PTR as pointer-to-scalar.  Don't specially
2950         mark deferred_string or ehl_map_entry.
2951         * gengtype-yacc.y (PARAM_IS): Add new token.
2952         (externstatic): Use adjust_field_type.
2953         (type_option): Add PARAM_IS.
2954         * gengtype-lex.l: Add rule for typedef of function pointers.
2955         Add rule for PARAM_IS.
2956         (IWORD): Add size_t.
2957         * except.c (exception_handler_label_map): Use gengtype to mark.
2958         (type_to_runtime_map): Likewise.
2959         (mark_ehl_map_entry): Delete.
2960         (mark_ehl_map): Delete.
2961         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
2962         (t2r_mark_1): Delete.
2963         (t2r_mark): Delete.
2964         * Makefile.in (gtype-desc.o): Correct dependencies.
2965         (GTFILES): Add hashtab.h.
2966         (genautomata.o): Actually uses hashtab.h.
2967
2968         * Makefile.in (stringpool.o): Add $(GGC_H).
2969         (dwarf2asm.o): Likewise.
2970         (GTFILES): Add hashtable.h.
2971         * c-common.h (struct c_common_identifier): Use gengtype.
2972         * c-decl.h (c_mark_tree): Delete.
2973         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
2974         * c-tree.h (struct lang_identifier): Use gengtype.
2975         (union lang_tree_node): New.
2976         (c_mark_tree): Delete prototype.
2977         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
2978         dwarf2_debug_hooks.
2979         * gengtype-lex.l (IWORD): Allow 'bool'.
2980         (ptr_alias): Match.
2981         * gengtype-yacc.y (ALIAS): New token.
2982         (type_option): New rule.
2983         (option): Use type_option.
2984         * gengtype.c (process_gc_options): New.
2985         (set_gc_used_type): Use it.
2986         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
2987         Add new variable 't' to hold the type of the field being processed.
2988         Add more error checking.  Use UNION_P when looking at 'desc' option.
2989         Handle language-specific structures containing other
2990         language-specific structures.
2991         (write_gc_types): Handle 'ptr_alias' option.
2992         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
2993         * ggc-common.c (ggc_pending_trees): Delete.
2994         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
2995         (ggc_mark_trees): Delete.
2996         (gt_ggc_m_tree_node): Delete.
2997         * ggc.h (ggc_pending_trees): Delete.
2998         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
2999         * hashtable.h (ht_identifier): Use gengtype.
3000         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
3001         * langhooks.h (struct lang_hooks): Delete mark_tree.
3002         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
3003         anyway.
3004         * system.h: Poison LANG_HOOKS_MARK_TREE.
3005         * tree.c (tree_node_structure): New.
3006         * tree.h (struct tree_common): Use gengtype.
3007         (struct tree_int_cst): Likewise.
3008         (struct tree_real_cst): Likewise.
3009         (struct tree_string): Likewise.
3010         (struct tree_complex): Likewise.
3011         (struct tree_vector): Likewise.
3012         (struct tree_identifier): Likewise.
3013         (struct tree_list): Likewise.
3014         (struct tree_vec): Likewise.
3015         (struct tree_exp): Likewise.
3016         (struct tree_block): Likewise.
3017         (struct tree_type): Likewise.
3018         (struct tree_decl): Likewise.
3019         (enum tree_structure_enum): New.
3020         (union tree_node): Use gengtype, with an alias.
3021         (tree_node_structure): Prototype.
3022         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3023
3024         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
3025         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
3026         to LANG_HOOKS_FUNCTION_FINAL.
3027         * Makefile.in (GTFILES): Add bitmap.h.
3028         * except.c (struct eh_region): Mark field 'aka' to be skipped.
3029
3030         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
3031         (alpha_init_machine_status): Give proper type.
3032         * Makefile.in (c-lang.o): Depend on gtype-c.h.
3033         (optabs.o): Depend on gt-optabs.h.
3034         (GTFILES): Add optabs.o.
3035         (gt-optabs.h): Add rule.
3036         * optabs.c: Include gt-optabs.h.
3037
3038         * gengtype.c (set_gc_used_type): Correct some errors in last change.
3039         (write_gc_structure_fields): If a field which should be NULL is
3040         not, abort.
3041         * c-pragma.c: Move struct align_stack and variable alignment_stack
3042         out from the ifdef.
3043
3044         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
3045         * config/xtensa/xtensa.c: Include gt-cris.h.
3046         (struct machine_function): Use gengtype to mark.
3047         * config/mmix/mmix.h (struct machine_function): Use gengtype
3048         to mark.
3049         * config/cris/t-cris: Add dependencies for gt-cris.h.
3050         * config/cris/cris.c: Include gt-cris.h.
3051         (struct machine_function): Use gengtype to mark.
3052         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
3053         to mark.
3054         * doc/tm.texi (Per-Function Data): Delete references to
3055         mark_machine_status.
3056         * config/ia64/ia64.c (ia64_override_options): Don't set
3057         mark_machine_status.
3058         * config/i386/i386.c (override_options): Likewise.
3059         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
3060         * config/arm/arm.c (arm_init_expanders): Likewise.
3061         * config/alpha/alpha.c (override_options): Likewise.
3062         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
3063         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
3064         (write_gc_structure_fields): Don't handle 'really' option.
3065         Handle 'maybe_null' option.
3066         (write_gc_types): Handle 'maybe_null' option.
3067         * function.h (struct function): Don't use "really".
3068         (mark_machine_status): Delete declaration.
3069         (mark_lang_status): Delete declaration.
3070         (gt_ggc_mr_machine_function): Delete prototype.
3071         (gt_ggc_mr_language_function): Delete prototype.
3072         * function.c (mark_machine_status): Delete.
3073         (mark_lang_status): Delete.
3074         (gt_ggc_mr_machine_function): Delete.
3075         (gt_ggc_mr_language_function): Delete.
3076         * c-tree.h (mark_c_function_context): Delete prototype.
3077         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
3078         * c-decl.c (struct language_function): Rename from struct
3079         c_language_function.  Update uses.  Use gengtype to mark.
3080         (mark_c_function_context): Delete.
3081         * c-common.h (struct c_language_function): Rename from struct
3082         language_function.
3083         (mark_stmt_tree): Delete prototype.
3084         (c_mark_lang_decl): Delete prototype.
3085         (mark_c_language_function): Delete prototype.
3086         * c-common.c (mark_stmt_tree): Delete.
3087         (c_mark_lang_decl): Delete.
3088         (mark_c_language_function): Delete.
3089
3090         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
3091         (lang_bitmap): New typedef.  Use where appropriate.
3092         (struct type): Add gc_used field, lang_struct field.
3093         (UNION_P): New macro.
3094         (new_structure): New prototype.
3095         (find_structure): Remove 'pos' parameter.  Change all callers.
3096         * gengtype-lex.l: Update for changes to find_structure.
3097         * gengtype-yacc.y (typedef_struct): Use new_structure.
3098         (yacc_ids): Suppress warning.
3099         (type): Use new_structure.
3100         * gengtype.c (string_type): Update for changes to struct type.
3101         (find_structure): Just find a structure, don't worry about
3102         creating one.
3103         (new_structure): New.
3104         (note_yacc_type): Use new_structure.
3105         (set_gc_used_type): New.
3106         (set_gc_used): New.
3107         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
3108         (write_gc_types): Handle TYPE_LANG_STRUCT.
3109         (write_gc_marker_routine_for_structure): New.
3110         (main): Call set_gc_used.  Add some calls to set_gc_used_type
3111         for places where GCC doesn't use gengtype properly yet.
3112         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
3113         (gt_ggc_m_tree_node): Likewise.
3114
3115         * varasm.c (copy_constant): Call expand_constant if we hit
3116         something we can't recognise.
3117
3118         * ggc-common.c (ggc_mark_rtvec_children): Delete.
3119         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
3120         (lang_mark_false_label_stack): Delete.
3121         * rtl.h (struct rtvec_def): Use gengtype to mark.
3122         * ggc.h (ggc_mark_rtvec): Delete.
3123         (gt_ggc_m_rtvec_def): Delete.
3124         (ggc_mark_nonnull_tree): Delete.
3125         (ggc_mark_rtvec_children): Delete prototype.
3126         (lang_mark_false_label_stack): Delete declaration.
3127
3128         * gengtype.h (note_yacc_type): Add prototype.
3129         * gengtype.c (note_yacc_type): New function.
3130         * gengtype-lex.l: Add lexer support for yacc files.
3131         * gengtype-yacc.y (start): Extract union from yacc files.
3132         (yacc_union): New rule.
3133         (yacc_typematch): New rule.
3134         (yacc_ids): New rule.
3135         (enum_items): Tweak for efficiency.
3136         (optionseq): Likewise.
3137
3138         * c-common.h (struct language_function): Use gengtype.
3139         (struct c_lang_decl): Likewise.
3140         * c-tree.h (struct lang_decl): Likewise.
3141         (struct lang_type): Likewise.
3142         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
3143         tree language substructures.
3144
3145         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
3146         ggc_mark_tree.
3147         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
3148
3149         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
3150
3151         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
3152         mark. Remove 'data.block.cleanup_ptr' field.
3153         (struct stmt_status): Use usual technique to mark struct nesting.
3154         (gt_ggc_mr_nesting_cond): Delete.
3155         (gt_ggc_mr_nesting_loop): Delete.
3156         (gt_ggc_mr_nesting_block): Delete.
3157         (gt_ggc_mr_nesting_case_stmt): Delete.
3158         (expand_start_cond): Set discriminator.
3159         (expand_start_loop): Likewise.
3160         (expand_start_null_loop): Likewise.
3161         (expand_start_bindings_and_block): Set discriminator.  Don't set
3162         deleted fields.
3163         (expand_decl_cleanup): Replace 'cleanup_ptr' with
3164         &thisblock->data.block.cleanups.
3165         (expand_start_case): Set discriminator.
3166         (expand_start_case_dummy): Set discriminator.
3167
3168         * ggc-callbacks.c: Remove.
3169
3170         * gengtype.h (struct type): Add 'u.s.bitmap' field.
3171         (find_structure): Add 'pos' parameter.
3172         * gengtype-lex.l: Update callers to find_structure.
3173         * gengtype-yacc.y: Likewise.
3174         * gengtype.c (find_structure): Allow for structures to be defined
3175         in multiple language backends.
3176         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
3177         (counter): Rename to gc_counter.
3178         (write_gc_structure_fields): Fail when writing out fields for
3179         an incomplete structure.  Ignore arrays of scalars.  Handle
3180         'tree_vec' special.
3181         (write_gc_types): Reset counter for each procedure written.
3182
3183         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
3184         (free_case_nodes): Delete.
3185         (expand_end_case_type): Delete call to free_case_nodes.
3186
3187         * Makefile.in (cselib.o): Include gt-<filename>.h.
3188         (gcse.o): Likewise.
3189         (profile.o): Likewise.
3190         (alias.o): Likewise.
3191         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
3192         alphabetize backend files.
3193         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
3194         * alias.c: Use gengtype for roots.
3195         * c-common.h (struct stmt_tree_s): Use gengtype.
3196         * c-decl.c: Use gengtype for roots.
3197         * cselib.c: Use gengtype for roots.
3198         * expr.c: Use gengtype for roots.
3199         * fold-const.c: Use gengtype for roots.
3200         * gcse.c: Use gengtype for roots.
3201         * gengtype-lex.l: Handle typedefs of function types.
3202         Allow for empty array bounds.
3203         Allow processing to stop on initialisers.
3204         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
3205         (semiequal): New rule.
3206         * gengtype.c (create_file): Tidy output files.
3207         (get_output_file_with_visibility): Fix paren warning.  Fix bug
3208         involving multiple input files mapping to one output file.
3209         (write_gc_structure_fields): Skip arrays of scalars.
3210         (write_gc_types): Tidy output files.
3211         (write_gc_root): New function.
3212         (write_gc_roots): Fix bugs, add support for roots that are
3213         structures.
3214         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
3215         (ggc_mark_tree_ptr): Delete.
3216         (ggc_add_rtx_root): Delete.
3217         (ggc_add_tree_root): Delete.
3218         (ggc_del_root): Delete.
3219         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
3220         allocate struct initial_value_struct.
3221         * profile.c: Use gengtype for roots.
3222         * sdbout.c: Use gengtype for roots.
3223         * varasm.c (mark_weak_decls): Delete unused prototype.
3224         (mark_const_hash_entry): Delete unused function.
3225         * config/darwin-protos.h: Use gengtype for roots.
3226         (machopic_add_gc_roots): Delete.
3227         * config/arm/arm.c: Use gengtype for roots.
3228         * config/arm/arm.h: Use gengtype for roots.
3229         * config/c4x/c4x-protos.h: Use gengtype for roots.
3230         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
3231         * config/d30v/d30v-protos.h: Use gengtype for roots.
3232         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
3233         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
3234         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
3235         * config/ia64/ia64-protos.h: Use gengtype for roots.
3236         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
3237         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
3238         * config/m68hc11/m68hc11.c (z_reg): Make global.
3239         (z_reg_qi): Make global.
3240         (m68hc11_add_gc_roots): Delete.
3241         * config/mcore/mcore-protos.h: Use gengtype for roots.
3242         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
3243         * config/mips/mips.c (mips_add_gc_roots): Delete.
3244         * config/mips/mips.h: Use gengtype for roots.
3245         * config/mmix/mmix.c (override_options): Use gengtype for roots.
3246         * config/mmix/mmix.h: Use gengtype for roots.
3247         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
3248         * config/mn10200/mn10200.h: Use gengtype for roots.
3249         * config/pa/pa.c: Use gengtype for roots, marking.
3250         (struct deferred_plabel): Use GGC, gengtype.
3251         (pa_add_gc_roots): Delete.
3252         (mark_deferred_plabels): Delete.
3253         * config/pj/pj-protos.h: Use gengtype for roots.
3254         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
3255         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
3256         machopic_add_gc_roots.
3257         * config/rs6000/rs6000.h: Use gengtype for roots.
3258         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
3259         (gt-darwin.h): Add rule.
3260         * config/sh/sh.c: Use gengtype for roots.
3261         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
3262         (gt-sh.h): Add rule.
3263         * config/sparc/sparc.c: Use gengtype for roots.
3264         (sparc_add_gc_roots): Delete.
3265         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
3266         (mark_ultrasparc_pipeline_state): Delete.
3267         * config/sparc/sparc.h: Use gengtype for roots.
3268
3269         * Makefile.in (c-parse.o): Update dependencies.
3270         (c-common.o): Likewise.
3271         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
3272         Add dependencies for the files they generate.
3273         * c-common.c: Replace ggc_add_* uses with GTY annotations.
3274         * c-common.h: Likewise.
3275         * c-decl.c: Likewise.
3276         (gt_ggc_mp_binding_level): Delete.
3277         * c-lang.c: Include gtype-c.h.
3278         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
3279         gt-c-parse.h.
3280         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
3281         (gt_ggc_mp_align_stack): Delete.
3282         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
3283         * function.c: Replace ggc_add_* uses with GTY annotations.
3284         (gt_ggc_mp_function): Delete.
3285         * function.h: Replace ggc_add_* uses with GTY annotations.
3286         * gengtype.c (lang_names): New.
3287         (NUM_BASE_FILES): New.
3288         (open_base_files): Create language base files.
3289         (startswith): New.
3290         (get_file_basename): New.
3291         (get_base_file_bitmap): New.
3292         (get_output_file_with_visibility): Rename from get_output_file.
3293         Add more mappings for various C/Objc filenames.
3294         (finish_root_table): New.
3295         (write_gc_roots): Handle dependencies and scoping properly.
3296         * gengtype.h: Add prototypes for new functions.
3297         * ggc-common.c (struct deletable_root): Delete.
3298         (deletables): Delete.
3299         (ggc_add_deletable_root): Delete.
3300         (ggc_mark_roots): No need to deal with deleted functionality.
3301         * ggc.h (ggc_add_deletable_root): Delete prototype.
3302         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
3303         (gtype-objc.h): Add rule to create.
3304         * objc/config-lang.in (gtfiles): New.
3305         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
3306         ggc_add_* with GTY markers.  Include gtype-objc.h.
3307         (ggc_mark_imp_list): Delete.
3308         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
3309         * objc/objc-lang.c: Random Whitespace Change.
3310
3311         * except.h (exception_handler_labels): Delete.
3312         (get_exception_handler_labels): New.
3313         * except.c (exception_handler_labels): Delete.
3314         (struct eh_status): Add exception_handler_labels field.
3315         (doing_eh): Don't add exception_handler_labels as root.
3316         (free_eh_status): Don't need to free exception_handler_labels.
3317         (get_exception_handler_labels): New.
3318         (find_exception_handler_labels): Update for move of
3319         exception_handler_labels.
3320         (remove_exception_handler_label): Likewise.
3321         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
3322         * jump.c (rebuild_jump_labels): Likewise.
3323         * loop.c (find_and_verify_loops): Likewise.
3324         * sched-rgn.c (is_cfg_nonregular): Likewise.
3325
3326         * gengtype.c (write_gc_structure_fields): Handle variable-length
3327         TYPE_ARRAYs.
3328
3329         * varasm.c (struct weak_syms): Use GGC, gengtype.
3330         (mark_weak_decls): Delete.
3331         (weak_decls): Likewise.
3332         (add_weak): Likewise.
3333         (remove_from_pending_weak_list): Likewise.
3334         (init_varasm_once): Likewise.
3335
3336         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
3337         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
3338         stor-layout.c, regclass.c, and lists.c.
3339         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
3340         gt-regclass.h and gt-lists.h on s-gtype.
3341         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
3342         * except.c: Use gengtype for roots.
3343         * explow.c: Use gengtype for roots.  Include gt-explow.h.
3344         * expr.h (init_stor_layout_once): Delete prototype.
3345         * function.c: Use gengtype for roots.
3346         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
3347         * gengtype-yacc.y (start): Can also be an externstatic.
3348         (externstatic): New production.
3349         (struct_fields): Correct array bounds inversion for 2-d arrays.
3350         * gengtype.c (variables): New variable.
3351         (note_variable): New function.
3352         (get_output_file): Include libfuncs.h into gtype-desc.c.
3353         (get_output_file_name): New function.
3354         (write_gc_structure_fields): Suppress warnings.
3355         (write_gc_types): Make static.
3356         (put_mangled_filename): New function.
3357         (write_gc_roots): New function.
3358         (main): Call write_gc_roots.
3359         * gengtype.h (note_variable): Prototype.
3360         (get_output_file_name): Prototype.
3361         (write_gc_types): Delete prototype.
3362         * ggc.h: Clean up unnecessary structure predefinitions.
3363         (struct ggc_root_tab): Define.
3364         (gt_ggc_m_rtx_def): Make function, not macro.
3365         (gt_ggc_m_tree_node): Likewise.
3366         * libfuncs.h: Use gengtype for roots.
3367         * lists.c: Use gengtype for roots.  Include gt-lists.h.
3368         (init_EXPR_INSN_LIST_cache): Delete.
3369         * optabs.c: Use gengtype for roots.
3370         (gt_ggc_mp_optab): Delete.
3371         * optabs.h: Use gengtype for roots.
3372         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
3373         * rtl.h: Use gengtype for roots.
3374         (init_EXPR_INSN_LIST_cache): Delete prototype.
3375         * stor-layout.c: Use gengtype for roots.
3376         Include gt-stor-layout.h.
3377         (init_stor_layout_once): Delete.
3378         * toplev.c: Use gengtype for roots.  Delete calls to deleted
3379         routines.
3380         * tree.c: Use gengtype for roots.
3381         * tree.h: Use gengtype for roots.
3382         * varasm.c: Use gengtype for roots.
3383
3384         * Makefile.in (GTFILES): Add @all_gtfiles@.
3385         * configure: Regenerate.
3386         * configure.in: Construct all_gtfiles from the gtfiles definitions
3387         in config-lang.in.
3388         * gengtype-yacc.y (type): Warn about duplicate structure names.
3389         * gengtype.c (get_output_file): Handle .c files in language
3390         subdirectories.
3391
3392         * Makefile.in (GTFILES): Run gengtype on all the config files
3393         and on the target .c file.
3394         * except.c (mark_eh_region): Delete.
3395         (init_eh_for_function): Use GGC on struct eh_status.
3396         (mark_eh_status): Delete.
3397         (free_eh_status): Use GGC.
3398         (expand_eh_region_start): Use GGC to
3399         (collect_eh_region_array): Allocate last_region_number using GGC.
3400         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
3401         (remove_eh_handler): Let GGC free struct eh_region.
3402         (add_call_site): Use GGC to reallocate call_site_record array.
3403         * function.c (init_machine_status): Update calling sequence.
3404         (mark_machine_status): Likewise.
3405         (mark_lang_status): Likewise.
3406         (prepare_function_start): Update init_machine_status call.
3407         (mark_function_status): Delete.
3408         (maybe_mark_struct_function): Delete.
3409         (ggc_mark_struct_function): Delete.
3410         (gt_ggc_mp_function): New.
3411         (gt_ggc_mr_machine_function): New.
3412         (gt_ggc_mr_language_function): New.
3413         (init_function_once): Use canonical names.
3414         * function.h (struct function): Use gengtype.
3415         (init_machine_status): Return the structure.
3416         (mark_machine_status): Take a 'void *'.
3417         (mark_lang_status): Likewise.
3418         * ggc-common.c (ggc_mark_trees): Use canonical name for
3419         ggc_mark_struct_function.
3420         * tree.h (ggc_mark_struct_function): Delete prototype.
3421         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
3422         (alpha_init_machine_status): Likewise.
3423         (override_options): Use canonical name for alpha_mark_machine_status.
3424         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
3425         * config/arm/arm.h (struct machine_function): Use gengtype.
3426         * config/arm/arm.c (arm_mark_machine_status): Delete.
3427         (arm_init_machine_status): Update calling sequence.
3428         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
3429         * config/cris/cris.c (cris_init_machine_status): Update
3430         calling sequence.
3431         * config/d30v/d30v.h (struct machine_function): Use gengtype.
3432         * config/d30v/d30v.c (d30v_init_machine_status): Update
3433         calling sequence.
3434         (d30v_mark_machine_status): Delete.
3435         * config/i386/i386.c: Include gt-i386.h.
3436         (struct machine_function): Use gengtype.
3437         (ix86_init_machine_status): Update calling sequence.
3438         (ix86_mark_machine_status): Delete.
3439         (override_options): Use canonical namke for ix86_mark_machine_status.
3440         * config/ia64/ia64.h (struct machine_function): Use gengtype.
3441         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
3442         sequence.
3443         (ia64_mark_machine_status): Delete.
3444         (ia64_override_options): Use canonical name for
3445         ia64_mark_machine_status.
3446         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
3447         sequence.
3448         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
3449         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3450         * gengtype.c (get_output_file): Fix warning.
3451         (main): Add prototype to suppress warning.
3452         * tree.c: Remove tree_hash_mark prototype.
3453
3454         * tree.h (init_stmt): Delete prototype.
3455         * toplev.c (lang_independent_init): Don't call init_stmt.
3456         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
3457         (stmt_obstack): Delete.
3458         (POPSTACK): No need to free 'struct nesting'.
3459         (gt_ggc_mr_nesting_cond): Use canonical names.
3460         (gt_ggc_mr_nesting_loop): Use canonical names.
3461         (gt_ggc_mr_nesting_block): Use canonical names.
3462         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
3463         (mark_stmt_status): Delete.
3464         (init_stmt): Delete.
3465         (clear_last_expr): Clear both last_expr_type and last_expr_value.
3466         Use it everywhere that last_expr_type was cleared.
3467         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
3468         (zap_lists): Delete.
3469         * ggc.h (ggc_add_deletable_root): Prototype.
3470         (mark_stmt_status): Remove prototype.
3471         * ggc-common.c (ggc_add_deletable_root): New.
3472         (ggc_mark_roots): Handle deletable roots.
3473         * function.c (ggc_mark_struct_function): Use canonical name
3474         for mark_stmt_status.
3475         * emit-rtl.c (free_sequence_stack): New.
3476         (start_sequence): Use a freelist for sequences.
3477         (end_sequence): Likewise.
3478         (init_emit_once): Add free_sequence_stack as a deleteable root.
3479         * c-pragma.c Include gt-c-pragma.h.
3480         (struct align_stack): Use gengtype.
3481         (push_alignment): Use GGC for struct align_stack.
3482         (mark_align_stack): Delete.
3483         (gt_ggc_mp_align_stack): New.
3484         (init_pragma): Use canonical name for mark_align_stack.
3485         * c-decl.c: Include gt-c-decl.h.
3486         (struct binding_level): Use gengtype.
3487         (make_binding_level): Use GGC; handle the freelist here.
3488         (pop_binding_level): New.
3489         (pushlevel): Move code into make_binding_level.
3490         (push_label_level): Likewise.
3491         (poplevel): Move code into pop_binding_level.
3492         (pop_label_level): Likewise.
3493         (mark_binding_level): Delete.
3494         (gt_ggc_mp_binding_level): New.
3495         (c_init_decl_processing): Use canonical name for mark_binding_level.
3496         Add free_binding_level as deletable root.
3497         (mark_c_function_context): Use canonical name for mark_binding_level.
3498         * Makefile.in (c-decl.o): Add gt-c-decl.h.
3499         (c-pragma.o): Add gt-c-pragma.h.
3500         (GTFILES): Add c-decl.c and c-pragma.c.
3501         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
3502
3503         * tree.c (struct type_hash): Use gengtype.
3504         (init_obstacks): Use canonical name for type_hash_mark.
3505         (type_hash_mark): Delete.
3506         Include gt-tree.h.
3507         * rtl.h (struct mem_attrs): Use gengtype.
3508         * optabs.h (struct optab): Use gengtype.
3509         * optabs.c (expand_binop): Squish signed/unsigned warning.
3510         (mark_optab): Make local, use canonical name, use autogenerated
3511         marker procedure.
3512         (init_optabs): Use canonical name for mark_optab.
3513         (new_optab): Use GGC to allocate optabs.
3514         * ggc.h: Delete mark_optab prototype.
3515         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
3516         mem_attrs marker procedure.
3517         * gengtype.c (get_output_file): Include headers in gtype-desc.c
3518         explicitly rather than deducing them from file names.
3519         (write_gc_structure_fields): Handle arrays of structures.
3520         (main): Return non-zero exit code if errors occur during output.
3521         * emit-rtl.c (mem_attrs_mark): Delete.
3522         (init_emit_once): Use canonical name for mem_attrs marker procedure.
3523         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
3524         (tree.o): Depend on gt-tree.h.
3525         (GTFILES): Add rtl.h, optabs.h, tree.c.
3526         (gt-tree.h): Add it to s-gtype rule.
3527
3528         * .cvsignore: Ignore gengtype flex/bison generated files.
3529         * Makefile.in (GGC_H): Add gtype-desc.h.
3530         (OBJS): Add gtype-desc.o.
3531         (GEN): Add gengtype.
3532         (STAGESTUFF): Add gengtype.
3533         (varasm.o): Add gt-varasm.h.
3534         (stmt.o): Add gt-stmt.h.
3535         (except.o): Add gt-except.h.
3536         (integrate.o): Add gt-integrate.h.
3537         (GTFILES): New.
3538         Add new rules for new files.
3539         * configure: Regenerate.
3540         * configure.in: Correct defaults.h paths.
3541         * emit-rtl.c (mark_sequence_stack): Delete.
3542         (mark_emit_status): Delete.
3543         (start_sequence): Allocate sequence structures using GGC.
3544         (end_sequence): Allocate sequence structures using GGC.
3545         * except.c: Use gengtype for various structures.  Include
3546         gt-except.h.
3547         * expr.c (mark_expr_status): Delete.
3548         * function.c: Use gengtype for various structures.  Include
3549         gt-function.h.
3550         (mark_function_status): Use standard gt_ggc names for marker functions.
3551         (ggc_mark_struct_function): Likewise.
3552         * function.h: Use gengtype for various structures.
3553         * gengtype-lex.l: New file.
3554         * gengtype-yacc.y: New file.
3555         * gengtype.c: New file.
3556         * gengtype.h: New file.
3557         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
3558         the standard names.  Remove some now-unnecessary prototypes.
3559         * integrate.c: Use gengtype for various structures.  Include
3560         gt-integrate.h.
3561         (mark_hard_reg_initial_vals): Delete.
3562         * integrate.h (mark_hard_reg_initial_vals): Delete.
3563         * stmt.c: Use gengtype for various structures.  Include
3564         gt-stmt.h.
3565         (mark_case_node): Delete.
3566         (mark_goto_fixup): Delete.
3567         (mark_stmt_status): Use standard gt_ggc names for marker functions.
3568         * system.h: Define GTY to empty.   In flex/bison files,
3569         don't poison malloc or realloc, instead just define them to
3570         xmalloc and xrealloc.
3571         * varasm.c: Use gengtype for various structures.  Include
3572         gt-varasm.h.  Use standard gt_ggc names for marker functions.
3573         (mark_pool_constant): Delete.
3574         (mark_varasm_status): Delete.
3575         (decode_rtx_const): #if 0 out non-typesafe hack.
3576
3577         * function.h (free_lang_status): Mark as obsolete.
3578         * function.c (free_lang_status): Mark as obsolete.
3579         * c-decl.c (push_c_function_context): Use GC to allocate and free
3580         struct language_function.
3581         (pop_c_function_context): Likewise.
3582         * c-common.c (mark_c_language_function): Mark struct
3583         language_function.
3584
3585         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
3586         Document that the machine_function structures must be allocated
3587         using GC.  Update mark_machine_status documentation.
3588         * function.h: Don't declare free_machine_status.
3589         * function.c (free_machine_status): Don't define.
3590         (free_after_compilation): Don't call free_machine_status.
3591         (ggc_mark_struct_function): Mark f->machine.  Call
3592         mark_machine_status only on non-NULL pointers.
3593         * system.h: Poison free_machine_status.
3594         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
3595         struct machine_function.
3596         (xtensa_free_machine_status): Delete.
3597         (override_options): Don't set free_machine_status.
3598         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
3599         free_machine_status.
3600         (rs6000_init_machine_status): Use GC on struct machine_function.
3601         (rs6000_free_machine_status): Delete.
3602         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
3603         machine_function.
3604         (ia64_mark_machine_status): Likewise.
3605         (ia64_free_machine_status): Delete.
3606         (ia64_override_options): Don't set free_machine_status.
3607         * config/i386/i386.c (override_options): Don't set
3608         free_machine_status.
3609         (ix86_init_machine_status): Use GC on struct machine_function.
3610         (ix86_mark_machine_status): Likewise.
3611         (ix86_free_machine_status): Delete.
3612         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
3613         machine_function.
3614         (d30v_mark_machine_status): Likewise.
3615         (d30v_free_machine_status): Delete.
3616         (d30v_init_expanders): Don't set free_machine_status.
3617         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
3618         machine_function.
3619         (arm_init_machine_status): Likewise.
3620         (arm_free_machine_status): Delete.
3621         (arm_init_expanders): Don't set free_machine_status.
3622         * config/alpha/alpha.c (override_options): Don't set
3623         free_machine_status.
3624         (alpha_init_machine_status): Use GC on struct machine_function.
3625         (alpha_mark_machine_status): Likewise.
3626         (alpha_free_machine_status): Delete.
3627
3628         * varasm.c (compare_constant): Fix typo.
3629
3630         * varasm.c: Don't include obstack.h.
3631         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
3632         (struct rtx_const): Give substructures names, improve formatting.
3633         (struct constant_descriptor): Delete.
3634         (struct constant_descriptor_tree): New, based on constant_descriptor.
3635         (const_hash_table): Is a hash table of trees.
3636         (mark_const_hash_entry): Is used for hashes of trees.  Mark
3637         constant_descriptor_tree structure.
3638         (mark_const_str_htab_1): Mark deferred_string structure.
3639         (compare_constant): Rewrite to compare trees.
3640         (compare_constant_1): Delete.
3641         (record_constant): Delete.
3642         (record_constant_1): Delete.
3643         (output_constant_def): Use struct constant_descriptor_tree.
3644         Don't duplicate trees twice.
3645         (struct constant_descriptor_rtx): New.
3646         (struct pool_constant): Used for rtx constants.
3647         (init_varasm_status): Update for change to struct varasm_status.
3648         (mark_varasm_status): Likewise.
3649         (free_varasm_status): Delete.
3650         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
3651         (record_constant_rtx): Likewise.
3652         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
3653         (force_const_mem): Likewise.
3654         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
3655         * function.c (free_after_compilation): Don't use free_varasm_status.
3656         * function.h: Don't prototype free_varasm_status.
3657
3658         * ggc-common.c (ggc_realloc): Handle X being NULL.
3659
3660         * ggc-common.c (ggc_realloc): New function.
3661         * ggc.h: Prototype it.
3662         * emit-rtl.c (free_emit_status): Delete.
3663         (init_emit): Allocate emit subarrays using GC.
3664         (gen_reg_rtx): Reallocate subarrays using GC.
3665         (init_emit): Use GC to allocate 'struct emit_status' and its
3666         subarrays.
3667         (mark_emit_status): Mark structure and its subarrays.
3668         * stmt.c (free_stmt_status): Delete.
3669         * expr.c (free_expr_status): Delete.
3670         * function.h: Remove prototypes for deleted functions.
3671         * function.c (free_after_compilation): Don't use deleted functions.
3672         Don't call free() on x_parm_reg_stack_loc.
3673         (free_after_parsing): Don't use free_stmt_status.
3674         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
3675         (mark_function_status): Mark x_parm_reg_stack_loc.
3676
3677         * varasm.c (init_varasm_status): Use GC to allocate
3678         'struct varasm_status' and its fields x_const_rtx_hash_table
3679         and x_const_rtx_sym_hash_table.
3680         (mark_varasm_status): Mark them.
3681         (free_varasm_status): Use GC to free them.
3682         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
3683         (mark_expr_status): Mark the structure itself.
3684         (free_expr_status): Use GC to free the structure.
3685         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
3686         (mark_stmt_status): Mark the 'struct stmt_status' itself.
3687         (init_stmt_for_function): Allocate the structure for GC.
3688
3689         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
3690         (equate_type_number_to_die): Likewise.
3691         * tree.h (TYPE_SYMTAB_DIE): New macro.
3692         (struct die_struct): Predeclare.
3693         (struct tree_type): Add field symtab.die.   Add a tag
3694         to the union type of field symtab.
3695
3696         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
3697         'struct rtvec_def *', not 'struct rtvec_def'.
3698
3699         * function.h (original_arg_vector): Make a real rtvec.
3700         * function.c (ggc_mark_struct_function): Adjust.
3701         * integrate.c (expand_inline_function): Adjust.
3702
3703 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
3704
3705         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
3706         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
3707         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
3708         (TARGET_VERSION_CPU): Define according to the
3709         default target.
3710         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
3711         TARGET_VERSION_CPU.
3712         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
3713         if TARGET_SHMEDIA64.
3714         (LINK_DEFAULT_CPU_EMUL): Define according to the
3715         default target.
3716         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
3717         (SUBTARGET_LINK_SPEC): Define.
3718         (LINK_SPEC): Use SH_LINK_SPEC.
3719         (ASM_SPEC): Remove.
3720         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
3721         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
3722         and TARGET_SHMEDIA64 which abort, for now.
3723         * config/sh/t-netbsd-sh5: New file.
3724         * config/sh/t-netbsd-sh5-32: New file.
3725         * config/sh/t-netbsd-sh5-64: New file.
3726
3727 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
3728             Richard Henderson  <rth@redhat.com>
3729
3730         * config/alpha/alpha.c (reg_or_const_int_operand): New.
3731         (some_operand, input_operand): Accept CONST_VECTOR.
3732         (alpha_extra_constraint): Add 'W'.
3733         (alpha_expand_zap_mask): New.
3734         (alpha_expand_builtin_vector_binop): New.
3735         (enum alpha_builtin): New.
3736         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
3737         (alpha_init_builtins, alpha_expand_builtin): New.
3738         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
3739         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
3740         (PREDICATE_CODES): Update.
3741         * config/alpha/alpha-protos.h: Update.
3742         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
3743         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
3744         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
3745         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
3746         (movv2si, movv2si_fix, movv2si_nofix): New.
3747         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
3748         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
3749         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
3750         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
3751         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
3752         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
3753         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
3754         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
3755         builtin_unpkbw, unpkbw): New.
3756         * doc/extend.texi (Alpha Built-in Functions): New.
3757
3758 2002-06-03  Richard Henderson  <rth@redhat.com>
3759
3760         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
3761         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
3762
3763 2002-06-03  Richard Henderson  <rth@redhat.com>
3764
3765         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
3766
3767         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
3768         (const0_operand): New.
3769         (reg_or_fp0_operand, fp0_operand): Remove.
3770         * config/alpha/alpha.h (PREDICATE_CODES): Update.
3771         * config/alpha/alpha-protos.h: Update.
3772         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
3773         and fp0_operand with reg_or_0_operand and const0_operand.
3774
3775 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
3776
3777         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
3778
3779 2002-06-03  Roger Sayle  <roger@eyesopen.com>
3780
3781         * gcse.c (cprop_jump): Use single_set to get the pattern
3782         from the setcc argument.
3783
3784 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
3785
3786         * diagnostic.h (diagnostic_count): Move from output_buffer to
3787         diagnostic_context.
3788         (diagnostic_kind_count): Adjust definition.
3789
3790 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
3791
3792         * except.c (except.c): Do not rebuild CFG.
3793         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
3794         optimization.
3795
3796 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
3797
3798         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
3799         * toplev.c: Include cfglahout.h
3800         * Makefile.in (toplev.c): Add dependnecy.
3801
3802 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
3803
3804         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
3805         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
3806         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
3807
3808 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
3809
3810         * config/ns32k/netbsd.h: Update copyright years.
3811         (TARGET_OS_CPP_BUILTINS): Define.
3812         (CPP_PREDEFINES): Remove.
3813         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
3814         (TARGET_CPU_CPP_BUILTINS): Define.
3815
3816 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
3817
3818         * emit-rtl.c: Fix formatting.
3819         * errors.h: Likewise.
3820         * except.c: Likewise.
3821         * explow.c: Likewise.
3822         * expmed.c: Likewise.
3823         * expr.c: Likewise.
3824         * expr.h: Likewise.
3825
3826 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
3827
3828         * config/h8300/elf.h: Fix formatting.
3829         * config/h8300/rtems.h: Likewise.
3830
3831 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
3832
3833         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
3834
3835 2002-06-02  Tom Tromey  <tromey@redhat.com>
3836
3837         * fixinc/fixincl.x: Rebuilt.
3838         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
3839
3840 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3841
3842 config/i370:
3843         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
3844         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
3845         * mvs.h: Similarly.
3846         * oe.h: Similarly.
3847
3848 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
3849
3850         * final.c (final):  Allow notes to not have computed addresses;
3851         kill no longer needed STACK_REGS ifdef.
3852
3853 2002-06-02  Richard Henderson  <rth@redhat.com>
3854
3855         * gcse.c (bypass_conditional_jumps): Fix typo last change.
3856
3857 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
3858
3859         * loop.c (emit_prefetch_instructions): Properly place the address
3860         computation.
3861
3862 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
3863
3864         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
3865         (set_block_for_insn): Turn into macro.
3866         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
3867         * cfglayout.c (insn_scopes): Kill.
3868         (scope_to_insns_initialize): Do not use insn_scopes.
3869         (scope_to_insns_finalize): Likewise.
3870         (duplicate_insn_chain): Likewise.
3871         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
3872         * cfgrtl.c (basic_block_for_insn): Kill.
3873         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
3874         (create_basic_block_structure): Use reorder_insns.
3875         (compute_bb_for_insn): Do not use basic_block_for_insn.
3876         (merge_blocks_nomove): Likewise.
3877         (update_bb_for_insn): Likewise.
3878         (verify_flow_info): Likewise.
3879         (set_block_for_insn): Kill.
3880         * combine.c (try_combine): Update gen_rtx_INSN call.
3881         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
3882         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
3883         scopes and BBs.
3884         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
3885         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
3886         Clear BB.
3887         (emit_insns_after): Simplify.
3888         (emit_copy_of_insn_after): Copy scope.
3889         * final.c (final_start_function): Lower scopes.
3890         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
3891         * integrate.c (copy_insn_list): Cope scopes.
3892         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
3893         * loop.c (loop_optimize): Do not care block notes.
3894         * print-rtl.c (print_rtx): Print BB.
3895         * recog.c (apply_change_group): Simplify.
3896         * rtl.c (copy_rtx): Handle 'B'.
3897         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
3898         * rtl.h (Field accessors): Update indexes.
3899         * sched-ebb.c (schedule_ebbs): Do not lower notes.
3900         * sched-rgn.c (schedule_insns): Likewise.
3901         * toplev.c (rest_of_compilation): Lower notes.
3902         * unroll.c (unroll_loop): Do not care scoping notes.
3903         (copy_loop_body): Copy scopes.
3904
3905 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3906
3907 config/h8300:
3908         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
3909         SUBTARGET_SPEC.
3910         * rtems.h: Similarly.
3911         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
3912         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
3913         (TARGET_CPU_CPP_BUILTINS): Use.
3914
3915 2002-06-02  Richard Henderson  <rth@redhat.com>
3916
3917         * alias.c: Include target.h.
3918         (mark_constant_function): Use targetm.binds_local_p instead
3919         of checking TREE_PUBLIC ourselves.
3920         * Makefile.in (alias.o): Add TARGET_H.
3921
3922 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3923
3924         * c-lex.c: Update copyright and file description.
3925
3926 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3927
3928         * config/fr30/fr30.h: Update to new CPP macros.
3929
3930 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3931
3932         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
3933
3934 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3935             Zack Weinberg <zack@codesourcery.com>
3936
3937         * c-common.c (c_common_init): Override cpplib's default
3938         warn_long_long setting.
3939         * c-lex.c (lex_number): Replace with interpret_integer,
3940         interpret_float, narrowest_unsigned_type and
3941         narrowest_signed_type, taking advantage of the new
3942         cpplib functionality.
3943         * cpperror.c (_cpp_begin_message): If a warning is turned
3944         into an error, avoid printing "warning:".
3945         * cppexp.c (cpp_num_sign_extend): New.
3946         * cppinit.c: Update comment.
3947         * cpplib.h (cpp_num_sign_extend): New.
3948         * tree.h: Update comment.
3949
3950 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
3951
3952         * diagnostic.h (struct diagnostic_context):  Add new member
3953         internal_error.
3954         (internal_error_function): Remove declaration.
3955         * diagnostic.c (internal_error_function): Remove definition..
3956         (internal_error): Adjust use.
3957
3958 2002-06-02  Richard Henderson  <rth@redhat.com>
3959
3960         * rtl.h (CC0_P): New.
3961         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
3962         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
3963         (bypass_block): Save old dest block for dump text.
3964         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
3965         Allow only true SET insns, not single_set.
3966
3967 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
3968
3969         * diagnostic.c (diagnostic_finish): Rename to output_flush.
3970         (clear_disgnostic_info): Rename to output_clear_data.  Use false
3971         instead of 0 for boolean value.
3972         Adjust function call throughout.
3973
3974 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
3975
3976         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
3977         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
3978
3979 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3980
3981         * d30v.h (CPP_PREDEFINES): Replace with
3982         (TARGET_CPU_CPP_BUILTINS): New.
3983
3984 2002-06-02  Roger Sayle  <roger@eyesopen.com>
3985
3986         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
3987
3988 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
3989
3990         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
3991
3992 2002-06-02  Richard Henderson  <rth@redhat.com>
3993
3994         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
3995
3996 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3997
3998         Support for C++ constructors/destructors.
3999         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
4000         instead of looping if main() returns.
4001         (asm_file_start): Output global symbols that cause .data and .bss
4002         initialization code to be linked in, unconditionally for now.
4003         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
4004         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
4005         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
4006         (LIBSTDCXX): New.
4007         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
4008         (__tablejump__): New.
4009         (__do_copy_data, __do_clear_bss): New.
4010         (__do_global_ctors, __do_global_dtors): New.
4011         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
4012         _ctors, _dtors.
4013
4014 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4015
4016         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
4017         (CPP_SPEC, CPP_PREDEFINES): Kill.
4018         * c4x/rtems.h (CPP_PREDEFINES): Kill.
4019         (TARGET_OS_CPP_BUILTINS): New.
4020
4021 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
4022
4023         * Makefile.in (tracer.o): New.
4024         * params.def (TRACER_*): New options.
4025         * rtl.h (tracer): Declare.
4026         * timevar.def (TV_TRACER): New.
4027         * toplev.c (dump_file_index): Add DFI_tracer.
4028         (dump_file_info): Add tracer.
4029         (flag_tracer): New.
4030         (lang_indepdenent_options): Add tracer.
4031         (rest_of_compilation): Call tracer.
4032         * tracer.c: New file.
4033         * invoke.texi (-ftracer): Document.
4034         (--param tracer-*): Document.
4035
4036 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
4037
4038         * tree-inline.c (expand_call_inline): Make the statement
4039         expression we generate have a COMPOUND_STMT.
4040
4041 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4042
4043         * gcse.c (cprop_cc0_jump): Function deleted.
4044         (cprop_jump): Take an additional argument which is the possibly
4045         NULL cc setting insn immediately before the conditional jump.
4046         When a MODE_CC set is present, substitute it into the JUMP_INSN
4047         before attempting the constant propagation.
4048         (cprop_insn):  Recognize cc setters followed by conditional jumps
4049         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
4050         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
4051         (find_bypass_set): New function based upon find_avail_set used by
4052         cprop, but finds constant expressions available at the end of
4053         basic blocks.
4054         (bypass_block): New function.  Given a basic block that begins
4055         with a conditional jump and multiple incoming edges, perform
4056         the jump bypass optimization.
4057         (bypass_conditional_jumps): New function.  Call bypass_block with
4058         each suitable basic block in the CFG using a simple single pass.
4059
4060 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4061
4062         * tree.c (real_minus_onep): New function to test for -1.0.
4063         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
4064
4065 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4066
4067         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
4068         and "!p && !q" into "(p|q) == 0" under suitable conditions.
4069
4070 2002-06-01  Andreas Jaeger  <aj@suse.de>
4071
4072         * cppexp.c (cpp_classify_number): Cast precission to int for
4073         correct printf format.
4074
4075 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4076
4077         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
4078         expected, but don't really exist: atmega83, atmega85, attiny10.
4079         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
4080         emulations for all devices.
4081         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
4082         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
4083
4084 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
4085
4086         * config/h8300/h8300-protos.h: Add a prototype for
4087         h8300_shift_needs_scratch_p.
4088         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
4089         * config/h8300/h8300.h (OK_FOR_R): New.
4090         (OK_FOR_S): Likewise.
4091         (OK_FOR_T): Likewise.
4092         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
4093         * config/h8300/h8300.md (anonymous shift patterns): Use
4094         constraints R, S, and T.
4095
4096 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4097
4098         * basic-block.h (struct basic_block_def): New field loop_father.
4099         (BB_VISITED): New flag.
4100         (struct loop): New field pred, removed field shared.
4101         (struct loops): New field parray.
4102         (LOOP_EXITS_DOMS): Removed.
4103         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
4104         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
4105         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
4106         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
4107         verify_loop_structure): Declare.
4108         * cfg.c (entry_exit_blocks): Initialize loop_father field.
4109         * cfganal.c (dfs_enumerate_from): New function.
4110         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
4111         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
4112         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
4113         flow_loop_dump, flow_loops_dump, flow_loops_free,
4114         flow_loop_tree_node_add, flow_loop_level_compute,
4115         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
4116         flow_loop_outside_edge_p): Modified for new infrastructure.
4117         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
4118         redirect_edge_with_latch_update, flow_loop_free): New static functions.
4119         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
4120         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
4121         find_common_loop, verify_loop_structure, loop_latch_edge,
4122         loop_preheader_edge): New functions.
4123         (flow_loops_cfg_dump): Do not show dominators, as this information
4124         does not remain up to date long.
4125         (flow_loops_find): Store results in new format.
4126         * predict.c (propagate_freq, estimate_probability,
4127         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
4128         infrastructure.
4129
4130 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
4131
4132         * except.c (nothrow_function_p): Walk epilogue delay list
4133         checking the insn, not the chain for potential throws.
4134
4135 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
4136
4137         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
4138         (install): Refer to install-cpp directly.
4139         (uninstall-cpp): Folded into uninstall rule.
4140         * configure.in: Delete all code relating to --disable-cpp.
4141         * configure: Regenerate.
4142         * config/t-install-cpp: Delete.
4143
4144 2002-05-31  Richard Henderson  <rth@redhat.com>
4145
4146         * configure.in (HAVE_AS_TLS): Add alpha tests.
4147         * configure: Rebuild.
4148         * config/alpha/alpha.c (TARGET_AS_TLS): New.
4149         (alpha_tls_size, alpha_tls_size_string): New.
4150         (overide_options): Set it.  Always install machine_status hooks.
4151         (input_operand): Accept got tls predicates.
4152         (local_symbol_p): Merge into ...
4153         (local_symbolic_operand): ... here.  Reject tls symbols.
4154         (global_symbolic_operand): Likewise.
4155         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
4156         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
4157         (tp16_symbolic_operand, tp32_symbolic_operand): New.
4158         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
4159         (alpha_encode_section_info): Handle TLS symbols.
4160         (alpha_strip_name_encoding): Likewise.
4161         (alpha_legitimate_address_p): Likewise.
4162         (alpha_legitimize_address): Likewise.
4163         (alpha_expand_mov): Early exit to avoid nop moves.
4164         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
4165         (alpha_init_machine_status, alpha_mark_machine_status,
4166         alpha_free_machine_status): Always define.
4167         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
4168         (print_operand, print_operand_address): Add TLS relocs.
4169         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
4170         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
4171         (TARGET_SWITCHES): Add -mtls-kernel.
4172         (alpha_tls_size, alpha_tls_size_string): New.
4173         (TARGET_OPTIONS): Add -mtls-size=.
4174         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
4175         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
4176         (ASM_OUTPUT_LABELREF): Skip %.
4177         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
4178         (PREDICATE_CODES): Update.
4179         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
4180         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
4181         UNSPEC_TP, UNSPECV_SET_TP): New.
4182         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
4183         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
4184         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
4185         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
4186         (call_value_osf_2_er): Accept anything as op4.
4187         * config/alpha/alpha-protos.h: Update.
4188         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
4189
4190 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
4191
4192         * cppinit.c (append_include_chain): Always pay attention to
4193         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
4194         marker on argument.
4195
4196 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
4197
4198         * target.h: Fix formatting.
4199         * timevar.h: Likewise.
4200         * tlink.c: Likewise.
4201         * toplev.c: Likewise.
4202         * toplev.h: Likewise.
4203         * tree.c: Likewise.
4204         * tree-dump.h: Likewise.
4205         * tree.h: Likewise.
4206         * tree-inline.h: Likewise.
4207         * unroll.c: Likewise.
4208         * unwind-dw2.c: Likewise.
4209         * unwind-dw2-fde.c: Likewise.
4210         * unwind-dw2-fde-glibc.c: Likewise.
4211         * unwind-dw2-fde.h: Likewise.
4212         * unwind.h: Likewise.
4213         * unwind-sjlj.c: Likewise.
4214         * varasm.c: Likewise.
4215         * varray.h: Likewise.
4216         * vmsdbg.h: Likewise.
4217         * vmsdbgout.c: Likewise.
4218         * xcoffout.h: Likewise.
4219
4220 2002-05-31  Igor Shevlyakov <igor@microunity.com>
4221
4222         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
4223         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
4224
4225 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
4226
4227         * gcc.c (cpp_unique_options): Remove "-d" options.
4228         (cpp_debug_options): New spec string.
4229         (default_compilers): Use it.
4230         * objc/lang-specs.h: Likewise.
4231
4232 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
4233
4234         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
4235         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
4236         * gcc/mklibgcc.in: Likewise.
4237         * gcc/config/arc/t-arc: Likewise.
4238         * gcc/configure.in: Likewise.
4239         * gcc/configure: Regenerate.
4240
4241 2002-05-31  Stan Shebs  <shebs@apple.com>
4242             Turly O'Connor  <turly@apple.com>
4243
4244         * c-decl.c (struct binding_level): Change int field n_incomplete
4245         to tree list incomplete_list.
4246         (clear_binding_level): Init field with NULL.
4247         (pushdecl): Add incomplete type to list.
4248         (mark_binding_level): Mark the incomplete list.
4249         (finish_struct): Scan the incomplete list for types instead
4250         of all decls in the current binding level.
4251
4252 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4253
4254         * pa.c (output_millicode_call): Add missing '%' characters.
4255         (output_call): Likewise.
4256
4257 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
4258
4259         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
4260         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
4261
4262 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
4263
4264         * varasm.c (mark_constant_pool): Walk epilogue delay list
4265         checking the insn, not the chain for potential constants.
4266
4267 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
4268
4269         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
4270
4271 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
4272
4273         * i386.c (classify_argument): Properly handle base types.
4274
4275         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
4276         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
4277         registers.
4278
4279 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4280
4281         * gcse.c (gcse_emit_move_after): New.
4282         (pre_delete, hoist_store): Use it.
4283
4284         * reload1.c (emit_input_reload_insns): Use constrain_operands
4285         instead of constraint_accepts_reg_p to verify optimization.
4286         (constraint_accepts_reg_p): Kill
4287
4288         * reload1.c (reload_cse_delete_noop_set): Kill.
4289         (reload_cse_simplify): use delte_insn_and_edges.
4290
4291 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4292
4293         * cfgloop.c (flow_loops_find): Initialize first and last fields
4294         correctly.
4295
4296 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
4297
4298         * c-common.c (builtin_define_std): Correct logic.
4299
4300 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4301
4302         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
4303         (output_call): Likewise.
4304
4305 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4306
4307         * pa.c: Move output.h include after tree.h include.
4308         (pa_asm_output_mi_thunk): Constify identifier lab.
4309
4310 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4311
4312         * config/ns32k/ns32k.h: Define named constants for the
4313         bits in target_flags and use them.
4314         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
4315
4316 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4317
4318         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
4319         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
4320         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
4321         default scheduling model.
4322         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
4323         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
4324         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
4325         * doc/install.texi (hppa*-*-*): Document default scheduling.
4326
4327 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4328
4329         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
4330
4331 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4332
4333         * config.gcc (ns32k-*-netbsd*): Set tm_file to
4334         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
4335         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
4336         netbsd.h, or netbsd-aout.h.
4337
4338 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4339
4340         * longlong.h (count_trailing_zeros): Add missing \, and clean up
4341         whitespace in __ns32000__ case.
4342
4343 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
4344
4345         * expr.c (expand_expr): Output partially zeroed out vectors with
4346         output_constant_def.
4347
4348 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4349
4350         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
4351         (sh-*-netbsdelf*)
4352         (shl*-*-netbsdelf*): New targets.
4353         * config/sh/netbsd-elf.h: New file.
4354         * config/sh/t-netbsd: New file.
4355
4356 2002-05-30  Richard Henderson  <rth@redhat.com>
4357             Eric Botcazou  <ebotcazou@multimania.com>
4358
4359         PR optimization/6822
4360         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
4361         to unsigned int for op1 comparisons.  Use gen_int_mode.
4362
4363 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
4364
4365         * expmed.c (const_mult_add_overflow_p): New.
4366         * expr.h: Declare it.
4367         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
4368         Don't eliminate the biv if the giv has a constant multiplier and
4369         the rhs argument of the comparison does satisfy the predicate.
4370         Use expand_mult_add to compute the replacement constant.
4371
4372 2002-05-30  Osku Salerma  <osku@iki.fi>
4373
4374         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
4375         (c_common_get_alias_set): Handle it.
4376         * doc/extend.texi: Document it.
4377
4378 2002-05-30  Richard Henderson  <rth@redhat.com>
4379
4380         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4381         * toplev.c (process_options): Don't check it.
4382         * doc/tm.texi: Don't document it.
4383         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
4384         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4385         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
4386         frame pointer optimization if current_function_profile.
4387
4388 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
4389
4390         * langhooks.c: Fix formatting.
4391         * langhooks.h: Likewise.
4392         * lcm.c: Likewise.
4393         * libgcc2.c: Likewise.
4394         * lists.c: Likewise.
4395         * local-alloc.c: Likewise.
4396         * loop.c: Likewise.
4397         * loop.h: Likewise.
4398
4399 2002-05-30  Marc Espie <espie@openbsd.org>
4400
4401         * config.gcc (sparc64-*-openbsd*): New.
4402         * config/sparc/openbsd1-64.h: New.
4403         * config/sparc/openbsd64.h: New.
4404
4405 2002-05-30  Jeff Law <law@redhat.com>
4406
4407         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
4408         a dead insn with a REG_RETVAL note when the entire libcall is not
4409         dead and remove the associated REG_LIBCALL note at the same time.
4410
4411 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
4412
4413         * lcm.c (output.h): #include.
4414         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
4415         as an ordinary block.
4416         (optimize_mode_switching): Don't pretend that the exit block is
4417         an ordinary block, or handle sucessors of entry block specially.
4418         Instead, split edges from entry block and to exit block, and
4419         put a computing definition on the thus gained post-entry-block,
4420         and a need on the pre-exit-block.
4421
4422 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
4423
4424         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
4425         * rtl.texi: Document 'B'
4426
4427 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4428
4429         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
4430         at run-time.
4431         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
4432
4433 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
4434
4435         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
4436         const0_rtx instead of NULL_RTX when in error.
4437         (altivec_expand_abs_builtin): Same.
4438         (rs6000_expand_binop_builtin): Same.
4439         (altivec_expand_predicate_builtin): Same.
4440         (altivec_expand_stv_builtin): Same.
4441         (rs6000_expand_ternop_builtin): Same.
4442         (altivec_expand_builtin): Same.
4443
4444 2002-05-29  David S. Miller  <davem@redhat.com>
4445
4446         * rtl.h (clear_emit_caches): Delete.
4447         * integrate.c (output_inline_function): Don't call it.
4448         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
4449         (clear_emit_caches): Delete definition.
4450         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
4451
4452 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
4453
4454         * config/mmix/mmix.c: Include real.h.
4455         (mmix_constant_address_p): Remove redundant test before switch.
4456
4457 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4458
4459         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
4460         only if not already defined.
4461
4462 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
4463
4464         * config/h8300/h8300-protos.h: Remove prototypes for
4465         ok_for_bclr and small_power_of_two.
4466         * config/h8300/h8300.c (small_power_of_two): Remove.
4467         (ok_for_blcr): Likewise.
4468         (fix_bit_operand): Make WHAT deal with an integer instead of a
4469         constraint character.
4470         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
4471         (CONST_OK_FOR_P): Likewise.
4472         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
4473         CONST_OK_FOR_P any more.
4474         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
4475         of fix_bit_operand.
4476         (iorqi3): Likewise.
4477         (xorqi3): Likewise.
4478
4479 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4480
4481         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4482         (CPP_PREDEFINES): Make sure this is undefined.
4483         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
4484         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
4485         or -U__MIPSEB__ before defining one or the other.  Instead,
4486         use %(subtarget_endian_default) if neither -EB nor -EL are
4487         specified.
4488         (SUBTARGET_EXTRA_SPECS): Define.
4489         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
4490         %(netbsd_cpp_spec).
4491
4492 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
4493
4494         * doc/md.texi (Patterns): Note pattern condition pitfall
4495         for unnamed insn.
4496
4497 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
4498
4499         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
4500         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
4501         ternary operations from here...
4502         (rs6000_expand_builtin): ...to here.
4503         New argument expandedp.
4504         Change all instances of altivec_expand_binop_builtin to
4505         rs6000_expand_binop_builtin.
4506         (altivec_expand_unop_builtin): Rename to
4507         rs6000_expand_unop_builtin.
4508         (altivec_expand_binop_builtin): Rename to
4509         rs6000_expand_binop_builtin.
4510         (altivec_expand_ternop_builtin): Rename to
4511         rs6000_expand_ternop_builtin.
4512
4513 2002-05-29  Richard Henderson  <rth@redhat.com>
4514
4515         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
4516         (TARGET_BI_ARCH): Likewise.
4517         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
4518         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
4519         (TARGET_64BIT_DEFAULT): Default to 0.
4520         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
4521
4522 2002-05-29  Richard Henderson  <rth@redhat.com>
4523
4524         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
4525         (get_pc_thunk_name): New.
4526         (output_set_got): Use it.
4527         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
4528         into linkonce sections.
4529
4530 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4531
4532         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4533         (CPP_PREDEFINES): Make sure this is undefined.
4534         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
4535         (CPP_SUBTARGET_SPEC): Don't provide different versions for
4536         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
4537         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
4538         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
4539         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4540         (CPP_PREDEFINES): Make sure this is undefined.
4541         (SUBTARGET_EXTRA_SPECS): Define.
4542         (CPP_SPEC): Use %(netbsd_cpp_spec).
4543
4544 2002-05-29  Jeff Law <law@redhat.com>
4545
4546         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
4547
4548         * flow.c (propagate_one_insn): Do not remove a dead insn if it
4549         contains a REG_RETVAL note.
4550
4551         * haifa-sched (sched_analyze): Remove another useless clearing
4552         of SCHED_GROUP_P I missed yesterday.
4553
4554         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
4555         * pa.c (pa_asm_output_mi_thunk): New function.
4556         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
4557
4558 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4559             Marek Michalkiewicz  <marekm@amelek.gda.pl>
4560
4561         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
4562         (avr_asm_only_p): Make non-static.
4563         (enum avr_arch): Remove.
4564         (avr_arch_types): New.
4565         (avr_mcu_types): Update.
4566         (avr_override_options): Use avr_arch_types table instead of switch.
4567         * avr.h (CPP_PREDEFINES): Die.
4568         (avr_base_arch_macro, avr_extra_arch_macro): New.
4569         (TARGET_CPU_CPP_BUILTINS): New.
4570         (CPP_SPEC, EXTRA_SPECS): Simplify.
4571         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
4572         CPP_AVR5_SPEC): Die.
4573
4574 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4575
4576         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4577         NETBSD_OS_CPP_BUILTINS_AOUT.
4578         (SUBTARGET_EXTRA_SPECS): Define.
4579         (CPP_SPEC): Use %(netbsd_cpp_spec).
4580
4581 2002-05-29  Richard Henderson  <rth@redhat.com>
4582
4583         * config/i386/i386.c (ix86_output_function_epilogue): New.
4584         (TARGET_ASM_FUNCTION_EPILOGUE): New.
4585         (pic_label_name): Remove.
4586         (pic_labels_used): New.
4587         (ix86_asm_file_end): Emit one pc load stub for each register used.
4588         (output_set_got): Generate deep pc load to any register.
4589         (ix86_select_alt_pic_regnum): New.
4590         (ix86_save_reg): Don't save pic register if we can find a valid
4591         call-clobbered replacement.
4592         (ix86_expand_prologue): If we found a valid replacement, renumber
4593         pic_offset_table_rtx.
4594         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
4595         pic_offset_table_rtx after reload.
4596         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
4597         * config/i386/i386.md (set_got): Make insn, not expander.
4598         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
4599
4600 2002-05-29  Richard Henderson  <rth@redhat.com>
4601
4602         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
4603         alignment for alloca.
4604
4605 2002-05-29  Richard Henderson  <rth@redhat.com>
4606
4607         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
4608         (print_operand_address): Only add rip for symbolic addresses
4609         for which we do not have another relocation type.
4610
4611 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4612
4613         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4614         (EXTRA_SPECS): Add netbsd_cpp_spec.
4615         (CPP_SPEC): Use %(netbsd_cpp_spec).
4616         (CPP_PREDEFINES): Remove.
4617         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4618         (EXTRA_SPECS): Define.
4619         (CPP_SPEC): Use %(netbsd_cpp_spec).
4620         (CPP_PREDEFINES): Remove.
4621
4622 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4623
4624         PR preprocessor/6844
4625         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
4626         NUL.
4627
4628 2002-05-29  Eric Christopher  <echristo@redhat.com>
4629
4630         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
4631         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
4632
4633 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
4634
4635         * config/fr30/fr30.md: Remove previous restriction on splits.
4636         Enforce conformance through gen_lowpart and cont_int_operand.
4637         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
4638         as the assembler does not support ".bss".
4639
4640 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4641
4642         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4643         (CPP_PREDEFINES): Remove.
4644         (SUBTARGET_EXTRA_SPECS): Define.
4645         (CPP_SPEC): Use %(netbsd_cpp_spec).
4646         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4647         (CPP_PREDEFINES): Remove.
4648         (SUBTARGET_EXTRA_SPECS): Define.
4649         (CPP_SPEC): Use %(netbsd_cpp_spec).
4650         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
4651         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
4652         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
4653         Add netbsd_cpp_spec.
4654         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
4655
4656 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4657             Zack Weinberg <zack@codesourcery.com>
4658
4659         * cppexp.c (cpp_num): Move to cpplib.h.
4660         (CPP_ERROR): Remove.
4661         (interpret_float_suffix, interpret_int_suffix): New.
4662         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
4663         (cpp_classify_number, cpp_interpret_integer): New.
4664         (interpret_number): Remove.
4665         (eval_token): Update to use new routines.
4666         * cpphash.h (cpp_num_part): Move to cpplib.h.
4667         * cppinit.c (cpp_post_options): Set warn_long_long.
4668         * cpplib.h (struct cpp_options): Add warn_long_long.
4669         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
4670         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
4671         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
4672         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
4673         cpp_interpret_integer): New.
4674
4675 2002-05-29  Joel Sherrill <joel@OARcorp.com>
4676
4677         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
4678
4679 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4680
4681         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4682         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
4683         (CPP_SUBTARGET_SPEC): Define.
4684         (SUBTARGET_EXTRA_SPECS): Define.
4685         (CPP_SPEC): Remove.
4686
4687 2002-05-29  Chris Lattner  <sabre@nondot.org>
4688
4689         * ssa.c (rename_insn_1): Rename uses of undefined registers to
4690         prevent confusion if/when the register is defined.
4691
4692 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
4693
4694         PR target/6838
4695         * config/cris/cris.md: Fix typos and thinkos in comments.
4696         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
4697         second alternative.
4698         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
4699         ("*mov_sideqi_mem"): Similar, but for operand 3.
4700         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
4701         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
4702         Remove spurious mode specifier on operand 2.
4703
4704 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
4705
4706         * config/h8300/h8300-protos.h: Remove the prototype for
4707         o_operand.
4708         Add prototypes for single_one_operand and single_zero_operand.
4709         * config/h8300/h8300.c (o_operand): Remove.
4710         (single_one_operand): New.
4711         (single_zero_operand): Likewise.
4712         (print_operand): For 'V' operand, and the operand with 0xff.
4713         For 'V' and 'W' operands, do not and the bit position with 7.
4714         * config/h8300/h8300.md (various anonymous patterns): Replace
4715         use of exact_log2 with single_one_operand/single_zero_operand.
4716
4717 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
4718
4719         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
4720
4721 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
4722
4723         * config/s390/s390.c (legitimate_pic_operand_p): Do not
4724         accept symbolic LARL operands.
4725         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
4726         epilogue insns.
4727
4728 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
4729
4730         * config/s390/s390.md (cmpstr_64/31): Mark whole
4731         input registers as used.
4732
4733 2002-05-28  Richard Henderson  <rth@redhat.com>
4734
4735         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
4736         not current_function_uses_pic_offset_table and
4737         current_function_uses_const_pool; examine current_function_profile.
4738         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
4739         input to blockage if needed.
4740         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
4741         (legitimize_pic_address): Likewise.  Set regs_ever_live for
4742         pic_offset_table_rtx when invoked during reload.
4743         * config/i386/i386.h (FINALIZE_PIC): Remove.
4744         * config/i386/i386.md (tablejump): Reformat.  Do not set
4745         current_function_uses_pic_offset_table.
4746         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
4747         (blockage): Accept anything as operand 0.
4748
4749 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
4750
4751         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
4752         common CPP built-ins for all NetBSD a.out targets.
4753         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
4754         common CPP built-ins for all NetBSD ELF targets.
4755         * config/netbsd.h: Add missing notice.
4756         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
4757         for all NetBSD targets.
4758         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
4759         for all NetBSD targets using an LP64 code model.
4760         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
4761         NetBSD targets.
4762
4763 2002-05-28  Richard Henderson  <rth@redhat.com>
4764
4765         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
4766         update if UPDATE_LIFE_LOCAL.
4767
4768 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
4769
4770         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
4771
4772 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
4773                           Jason R. Thorpe <thorpej@wasabisystems.com>
4774
4775         config/sh reorganization to factor out endianness and coff:
4776
4777         * config/sh/little.h: New file.
4778         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
4779         defined, define to 0 to select big-endian.
4780         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
4781         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4782         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4783         * config/sh/t-be: New file.
4784         * config/sh/t-le: New file.
4785
4786         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
4787         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
4788         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
4789         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
4790         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
4791         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
4792         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
4793         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
4794         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
4795         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
4796         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
4797         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
4798         (LINK_SPEC): Define to SH_LINK_SPEC.
4799         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
4800         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
4801         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
4802         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
4803         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
4804         * config/sh/coff.h: New file.
4805         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
4806         (TARGET_OBJFMT_CPP_BUILTINS): Define.
4807         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
4808         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
4809         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
4810         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
4811         (PTRDIFF_TYPE): Likewise.
4812         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
4813         (CPP_PREDEFINES): Don't define.
4814         (TARGET_OBJFMT_CPP_BUILTINS): Define.
4815         (LINK_SPEC): Define to SH_LINK_SPEC.
4816         (LINK_EMUL_PREFIX): Redefine.
4817         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
4818         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
4819         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
4820         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
4821         (TARGET_OS_CPP_BUILTINS): Define.
4822         (TARGET_DEFAULT): Redefine.
4823         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
4824         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
4825         (LINK_SPEC): Don't redefine.
4826         (LINK_DEFAULT_CPU_EMUL): Redefine.
4827         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4828         * sh.c (sh_asm_named_section): Don't declare / define.
4829         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
4830         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
4831         (sh64-*-elf* tm_file): Likewise.
4832         (sh-*-rtemself* tm_file): Likewise.
4833         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
4834         (sh-*-linux* tmake_file): Add sh/t-le.
4835         (sh-*-rtems* tm_file): Add sh/coff.h
4836         (sh-*-* tm_file): Likewise.
4837
4838 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
4839
4840         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
4841         CONSTANT_POOL_ADDRESS_P.
4842
4843         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
4844
4845 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
4846             Jeff Law <law@redhat.com>
4847
4848         * optabs.c (expand_binop): Fix nwords sign warnings.
4849         generate pseudo for add_optab.
4850
4851         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
4852         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
4853
4854 2002-05-28      Marc Espie <espie@openbsd.org>
4855
4856         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
4857         inherited from gas.h.
4858         (ASM_QUAD):  Undef.  OpenBSD does not support it.
4859
4860 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
4861
4862         * doc/install.texi (binaries): Change mingw binaries
4863         link to www.mingw.org.
4864
4865 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4866
4867         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
4868
4869 2002-05-28  Richard Henderson  <rth@redhat.com>
4870
4871         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
4872         bottom alignment for leaf functions.
4873
4874 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
4875
4876         * config/pa/milli32.S, config/pa/lib1funcs.asm,
4877         config/sparc/sol2-g1.asm: Delete unused files.
4878
4879 2002-05-28  Richard Henderson  <rth@redhat.com>
4880
4881         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
4882
4883         * flow.c (calculate_global_regs_live): Rename call_used to
4884         invalidated_by_call.  Initialize from regs_invalidated_by_call
4885         instead of call_used_regs.
4886
4887         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
4888         DECL_EXTERNAL.
4889
4890 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
4891
4892         * tree.h: Don't include real.h.
4893         Forward-declare struct realvaluetype.
4894         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
4895         contain it.
4896         (TREE_REAL_CST_PTR): New accessor.
4897         (TREE_REAL_CST): Update.
4898         * real.h: Include machmode.h.
4899         (realvaluetype): Make it struct realvaluetype, not a typedef.
4900         (build_real): Prototype here.
4901
4902         * tree.c: Include real.h.
4903         (build_real): Allocate the REAL_VALUE_TYPE as a separate
4904         object in GC memory, set TREE_REAL_CST_PTR to point to it.
4905         (build_real_from_int_cst): Use build_real.
4906         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
4907         REAL_CST.
4908
4909         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
4910         fold-const.c, print-tree.c, real.c: Include real.h.
4911         * Makefile.in: Update dependency lists.
4912
4913 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4914
4915         * basic-block.h (last_basic_block): Declare.
4916         (expunge_block_nocompact): Declaration removed.
4917         (compact_blocks): Declare.
4918         * cfg.c (last_basic_block): New variable.
4919         (expunge_block_nocompact): Removed.
4920         (expunge_block): Do not compact basic blocks.
4921         (compact_blocks): New.
4922         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
4923         longer change.
4924         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
4925         last_basic_block.
4926         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
4927         real positions of blocks.
4928         (delete_unreachable_blocks): Simplified -- quadratic behavior now
4929         cannot occur.
4930         (cleanup_cfg): Compact blocks.
4931         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
4932         basic_block_info varray.
4933         (flow_delete_block): Comment update.
4934         (back_edge_of_syntactic_loop_p): Modify position check code.
4935         (verify_flow_info): Update checking.
4936         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
4937         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
4938         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
4939         indices no longer change.
4940         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
4941         last_basic_block.
4942         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
4943         * profile.c (branch_prob): Compact blocks.
4944         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
4945         last_basic_block.
4946
4947 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
4948
4949         * config/h8300/h8300.md (two anonymous patterns): New.
4950
4951 2002-05-28  David S. Miller  <davem@redhat.com>
4952
4953         * config/sparc/sparc.md (cpu): Tidy.
4954         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
4955         'trap'.
4956         (in_call_delay): Delete reference to 'return' type.
4957         (eligible_for_return_delay, in_return_delay, define_delay
4958         referencing those): Delete.
4959         (rest of file): Use new type attributes as appropriate.
4960         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
4961         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
4962         * config/sparc/ultra1_2.md (us1_single): New reservation.
4963         (us1_ialuX): Likewise.
4964         * config/sparc/ultra3.md (us3_single): Likewise.
4965         (us3_ialuX): Likewise.
4966         (us3_imul, us3_idiv): Tweak.
4967
4968 2002-05-28  Richard Henderson  <rth@redhat.com>
4969
4970         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
4971         STRING_CST.
4972
4973 2002-05-28  Richard Henderson  <rth@redhat.com>
4974
4975         * config.gcc: Obsolete mn10200.
4976
4977 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4978
4979         * cppexp.c (interpret_number): Optimize for single-digit
4980         and less-than-half-precision cases.
4981         (num_trim, num_positive, num_div_op): Cast constants.
4982
4983 2002-05-27  Bo Thorsen  <bo@suse.de>
4984
4985         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
4986         3.1 branch. The file was made by Jakub Jelinek.
4987         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
4988         support so multilib doesn't break. And don't define this at all
4989         when -Dinhibit_libc is used.
4990         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
4991         * config/i386/t-linux64: Implement full multilib support. Patch
4992         originally done by Andreas Jaeger and Jakub Jelinek.
4993
4994 2002-05-27  Roger Sayle  <roger@eyesopen.com>
4995
4996         * c-common.c: Add support for __attribute__((nothrow)) to specify
4997         that a function cannot throw an exception (using TREE_NOTHROW).
4998         (handle_nothrow_attribute): New function to process this attribute.
4999
5000         * doc/extend.texi: Document the new nothrow function attribute.
5001
5002 2002-05-27  H.J. Lu  (hjl@gnu.org)
5003
5004         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
5005         (num_positive): Likewise.
5006         (num_div_op): Likewise.
5007
5008 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5009
5010         * c-common.c (c_common_init): Always use intmax_t.
5011
5012 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5013
5014         * c-common.c (c_common_init): Use intmax_t for now.
5015
5016 2002-05-24  Andrew Haley  <aph@redhat.com>
5017
5018         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
5019         if T is a boolean type.
5020
5021 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5022
5023         * basic-block.h (last_basic_block): Defined as synonym for
5024         n_basic_blocks.
5025         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
5026         flow_depth_first_order_compute, flow_preorder_transversal_compute,
5027         flow_dfs_compute_reverse_init): Replaced relevant occurences of
5028         n_basic_blocks with last_basic_block.
5029         * cfgbuild.c (make_edges): Likewise.
5030         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
5031         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
5032         * combine.c (combine_instructions): Likewise.
5033         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
5034         iterative_dataflow_bitmap): Likewise.
5035         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5036         calc_idoms, idoms_to_doms): Likewise.
5037         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
5038         Likewise.
5039         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
5040         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
5041         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
5042         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
5043         delete_null_pointer_checks, compute_code_hoist_vbeinout,
5044         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5045         compute_store_table, build_store_vectors): Likewise.
5046         * haifa-sched.c (sched_init): Likewise.
5047         * ifcvt.c (if_convert): Likewise.
5048         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5049         pre_edge_lcm, compute_available, compute_nearerout,
5050         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
5051         Likewise.
5052         * predict.c (estimate_probability, process_note_prediction,
5053         note_prediction_to_br_prob): Likewise.
5054         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
5055         * recog.c (split_all_insns, peephole2_optimize): Likewise.
5056         * regrename.c (copyprop_hardreg_forward): Likewise.
5057         * resource.c (init_resource_info): Likewise.
5058         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
5059         init_regions, schedule_insns): Likewise.
5060         * ssa-ccp.c (ssa_const_prop): Likewise.
5061         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5062         * ssa.c (compute_dominance_frontiers,
5063         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
5064
5065         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
5066         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
5067         sizes consistently.
5068
5069 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
5070
5071         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
5072         new.
5073         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
5074         hoist_insn_after, hoist_insn_to_edge): New.
5075
5076 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
5077
5078         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
5079         (PROP_FINAL): Include.
5080         * flow.c (life_analysis, update_life_info,
5081         init_propagate_block_info, mark_set_1, mark_used_rgs):
5082         Support SCAN_DEAD_STORE.
5083
5084 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5085
5086         * c-common.c (c_common_init): Set CPP arithmetic precision.
5087         * cppexp.c (cpp_num_part): Move typedef ...
5088         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
5089         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
5090         (sanity_checks): Update.
5091
5092 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
5093
5094         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
5095         (mkheaders): New rule.
5096         (install-mkheaders): New rule.
5097         * configure.in (all_outputs): Add mkheaders.
5098         * configure: Regenerate.
5099         * mkheaders.in: New file.
5100
5101 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
5102
5103         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
5104
5105 2002-05-26  Andreas Jaeger  <aj@suse.de>
5106
5107         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
5108
5109 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5110
5111         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
5112         right_shift): Remove.
5113         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
5114         HIGH_PART): New.
5115         (struct op): Use cpp_num.
5116         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
5117         num_part_mul, num_unary_op, num_binary_op, num_negate,
5118         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
5119         num_div_op, num_lshift, num_rshift, append_digit): New.
5120         (interpret_number, parse_defined, eval_token, reduce): Update
5121         for two-integer arithmetic.
5122         (binary_handler): New typedef.
5123         (optab): Update.
5124         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
5125         (_cpp_parse_expr, reduce): Update to handle two-integers.
5126         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
5127
5128 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5129
5130         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
5131         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
5132         branch insn into account, do not assume 1.
5133         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
5134         over single word insn.  Handle upper half of I/O space too.
5135         * config/avr/avr.md (*sbrx_branch): Use it.
5136         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
5137         (*sbix_branch, *sbix_branch_bit7): Likewise.
5138         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
5139         Use RTL peepholes to optimize register operand sign tests.
5140
5141 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5142
5143         * config/avr/avr.c (avr_asm_only_p): New variable.
5144         (avr_override_options): Set it here if AVR1.
5145         (asm_file_start): Test it here, report an error if set.
5146
5147 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
5148
5149         * alias.c: Fix formatting.
5150         * attribs.c: Likewise.
5151         * bb-reorder.c: Likewise.
5152         * bitmap.c: Likewise.
5153         * bitmap.h: Likewise.
5154         * builtins.c: Likewise.
5155
5156 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
5157
5158         * reload.c (find_valid_class): Accept new argument DEST,
5159         choose class accordingly.
5160         (push_reload): Update callers.
5161
5162 2002-05-26  Andreas Jaeger  <aj@suse.de>
5163
5164         * combine.c (combine_instructions): Do not indent #if for
5165         traditional C.
5166
5167 2002-05-25  Richard Henderson  <rth@redhat.com>
5168
5169         * c-pragma.c (apply_pragma_weak): Convert value identifier to
5170         string for decl_attributes.
5171         (handle_pragma_weak): Call assemble_alias if we're modifying
5172         an existing decl.
5173
5174 2002-05-25  Richard Henderson  <rth@redhat.com>
5175
5176         PR target/6788
5177         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
5178         using rtl instead of fprintf.
5179         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
5180         * config/sparc/sparc-protos.h: Update.
5181
5182 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5183
5184         * Makefile.in (C_COMMON_H): Fix.
5185         Update other targets.
5186         * c-common.c: Don't include c-lex.h.
5187         (builtin_define_with_value): Make static and prototype.
5188         (builtin_define_std): Move from c-lex.h.
5189         * c-common.h (init_c_lex): Move from c-lex.h.
5190         * c-decl.c: Don't include c-lex.h.
5191         (make_pointer_declarator): Move from c-parse.in.
5192         * c-lex.c: Don't include c-lex.h.
5193         * c-lex.h: Remove.
5194         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
5195         (make_pointer_declarator): Move to c-decl.c.
5196         * c-pragma.c: Don't include c-lex.h.
5197         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
5198         * c-tree.h (make_pointer_declarator): New.
5199 doc:
5200         * passes.texi, tm.texi: Update.
5201 objc:
5202         * Make-lang.in: Update and correct.
5203         * objc-act.c: Don't include c-lex.h or cpplib.h.
5204 treelang:
5205         * treetree.c: Don't include c-lex.h.
5206 config:
5207         * darwin-c.c: Don't include c-lex.h.
5208         * c4x/c4x-c.c: Don't include c-lex.h.
5209         * c4x/t-c4x: Update.
5210         * i370/i370-c.c: Don't include c-lex.h.
5211         * i370/t-i370: Update.
5212         * i960/i960-c.c: Don't include c-lex.h.
5213         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
5214         * i960/t-960bare: Update.
5215         * i960/t-vxworks: Update.
5216         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
5217         * rs6000/t-darwin: Update.
5218         * rs6000/t-rs6000-c-rule: Update.
5219         * v850/v850-c.c: Don't include c-lex.h.
5220         * v850/v850.c: Don't include c-lex.h or cpplib.h.
5221
5222
5223 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
5224
5225         * tree.def: Fix typos.
5226         * doc/install.texi: Likewise.
5227
5228 2002-05-25  Richard Henderson  <rth@redhat.com>
5229
5230         * configure.in (HAVE_AS_TLS): Add ia64 test.
5231         * configure: Rebuild.
5232         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
5233         (override_options): Set it.
5234         (TARGET_HAVE_TLS): New.
5235         (sdata_symbolic_operand): Look for 's'.
5236         (tls_symbolic_operand): New.
5237         (ia64_expand_load_address): Abort for tls symbols.
5238         (gen_tls_get_addr): New.
5239         (gen_thread_pointer): New.
5240         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
5241         (rtx_needs_barrier): Add new unspecs.
5242         (ia64_encode_section_info): Handle tls symbols.
5243         (ia64_strip_name_encoding): Strip two encoding chars.
5244         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
5245         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
5246         (TARGET_OPTIONS): Add tls-size.
5247         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
5248         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
5249         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
5250         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
5251         (movsf, movdf): Likewise.
5252         (movdi_symbolic): Use match_scratch.  Don't split if we won't
5253         have a scratch availiable.
5254         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
5255         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
5256         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
5257         * config/ia64/ia64-protos.h: Update.
5258         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
5259         sdata_symbolic_operand.
5260         (ASM_OUTPUT_LABELREF): Strip two characters.
5261
5262 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
5263
5264         * combine.c (simplify_set): Remove an unnecessary subreg.
5265
5266 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5267
5268         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
5269
5270         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
5271
5272 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
5273
5274         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
5275
5276 2002-05-25  Roger Sayle  <roger@eyesopen.com>
5277
5278         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
5279         (cond (compare x y) 0) into the equivalent (cond x y).
5280
5281 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
5282
5283         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
5284
5285 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
5286
5287         * config.gcc: Remove all stanzas for previously obsoleted
5288         systems.  Where necessary, add explicit error stanzas to
5289         prevent removed systems from being misidentified as something
5290         else.  Begin a fresh obsoletions list, with the systems that
5291         were reprieved last round.
5292         * doc/install.texi: Remove all mention of dead targets.
5293         * fixinc/mkfixinc.sh: Likewise.
5294
5295         * config/arm/arm.h: Bit 31 of target_flags is no longer
5296         reserved.
5297
5298         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
5299         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
5300         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
5301         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
5302         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
5303         config/alpha/osf12.h, config/alpha/osf2or3.h,
5304         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
5305         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
5306         config/clipper/clipper-protos.h, config/clipper/clipper.c,
5307         config/clipper/clipper.h, config/clipper/clipper.md,
5308         config/clipper/clix.h, config/convex/convex-protos.h,
5309         config/convex/convex.c, config/convex/convex.h,
5310         config/convex/convex.md, config/convex/fixinc.convex,
5311         config/convex/proto.h, config/elxsi/elxsi-protos.h,
5312         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
5313         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
5314         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
5315         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
5316         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
5317         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
5318         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
5319         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
5320         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
5321         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
5322         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
5323         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
5324         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
5325         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
5326         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
5327         config/m68k/altos3068.h, config/m68k/apollo68.h,
5328         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
5329         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
5330         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
5331         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
5332         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
5333         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
5334         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
5335         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
5336         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
5337         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
5338         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
5339         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
5340         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
5341         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
5342         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
5343         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
5344         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
5345         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
5346         config/mips/dec-osf1.h, config/mips/elflorion.h,
5347         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
5348         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
5349         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
5350         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
5351         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
5352         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
5353         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
5354         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
5355         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
5356         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
5357         config/ns32k/sequent.h, config/ns32k/tek6000.h,
5358         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
5359         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
5360         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
5361         config/sparc/rtems.h, config/we32k/we32k-protos.h,
5362         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
5363         Delete file.
5364
5365 2002-05-24  Richard Henderson  <rth@redhat.com>
5366
5367         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
5368         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
5369         * config/i386/i386.c (tls_model_chars): Add leading space.
5370         (tls_symbolic_operand): Don't bias by 1.
5371         (legitimize_address): Don't unbias by 1.
5372
5373 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
5374
5375         * lcm.c (optimize_mode_switching): Change bb used as indices
5376         to bb->index.
5377
5378 2002-05-24  Richard Henderson  <rth@redhat.com>
5379
5380         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
5381         of update_life_info_in_dirty_blocks.
5382
5383 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
5384
5385         PR other/6782
5386         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
5387
5388 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5389
5390         PR preprocessor/6780
5391         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
5392
5393 2002-05-24  Jim Blandy  <jimb@redhat.com>
5394
5395         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
5396         entry with a type code of zero, marking the end of the compilation
5397         unit's macro info.
5398
5399 2002-05-24  Richard Henderson  <rth@redhat.com>
5400
5401         * varasm.c (asm_output_bss): Always output one byte.
5402         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
5403
5404 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5405
5406         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
5407         namespace.
5408
5409 2002-05-24  Andreas Jaeger  <aj@suse.de>
5410
5411         * ggc-page.c (alloc_page): Cast variables of type size_t to
5412         unsigned long, adjust printf format string.
5413         (ggc_alloc): Likewise.
5414         (ggc_print_statistics): Likewise.
5415         (ggc_print_statistics): Correct printf format string for SCALE to
5416         use unsigned long.
5417
5418 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
5419
5420         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
5421
5422 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
5423             Zack Weinberg     <zack@codesourcery.com>
5424
5425         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
5426         quoted strings.
5427         * dwarf2out.c (lookup_filename): Properly quote filename in .file
5428         directive in assembly file.
5429         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5430         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5431         * config/pj/pj.h (ASM_FILE_START): Likewise.
5432         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5433         * config/avr/avr.c (asm_file_end): Likewise.
5434         * toplev.c (output_quoted_string): Handle possibly signed plain
5435         char.
5436         * toplev.h (output_clean_symbol_name): Declare
5437         * toplev.c (output_clean_symbol_name): Define.
5438         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
5439         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
5440
5441 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
5442
5443         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
5444
5445 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
5446
5447         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
5448         of size of unsigned.
5449
5450 2002-05-23  Richard Henderson  <rth@redhat.com>
5451
5452         * configure.in (HAVE_AS_TLS): New test.
5453         * config.in, configure: Rebuild.
5454         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
5455         (ix86_tls_dialect_string, ix86_tls_dialect): New.
5456         (override_options): Set it.
5457         (tls_model_chars, tls_symbolic_operand): New.
5458         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
5459         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
5460         (local_exec_symbolic_operand): New.
5461         (get_pic_label_name): Merge into output_set_got.
5462         (ix86_asm_file_end): Emit pic_label_name if defined.
5463         (legitimate_constant_p, constant_address_p): New.
5464         (legitimate_pic_operand_p): New.
5465         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
5466         (legitimate_address_p): Likewise.
5467         (ix86_encode_section_info): Rename from i386_; handle tls decls.
5468         (ix86_strip_name_encoding): New.
5469         (get_thread_pointer): New.
5470         (legitimize_address): Handle tls symbols.
5471         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
5472         Remove UNSPEC_PLT.
5473         (struct machine_function): Add some_ld_name.
5474         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
5475         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
5476         (output_addr_const_extra): New.
5477         (maybe_get_pool_constant): New.
5478         (ix86_split_to_parts): Use it.
5479         (ix86_expand_move): Handle tls symbols.
5480         (ix86_tls_get_addr): New.
5481         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
5482         (TARGET_OPTIONS): Add tls-dialect.
5483         (CONSTANT_ADDRESS_P): Use new out-of-line function.
5484         (LEGITIMATE_CONSTANT_P): Likewise.
5485         (LEGITIMATE_PIC_OPERAND_P): Likewise.
5486         (TARGET_STRIP_NAME_ENCODING): New.
5487         (ASM_OUTPUT_LABELREF): New.
5488         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
5489         (OUTPUT_ADDR_CONST_EXTRA): New.
5490         (PREDICATE_CODES): Update.
5491         (ix86_tls_dialect, ix86_tls_dialect_string): New.
5492         * config/i386/i386.md: Regroup and renumber unspec constants.
5493         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
5494         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
5495         (tls_global_dynamic, tls_local_dynamic_base): New.
5496         (tls_local_dynamic_once): New.
5497         * config/i386/i386-protos.h: Update.
5498
5499 2002-05-23  Richard Henderson  <rth@redhat.com>
5500
5501         * genemit.c (gen_insn): Print file:lineno comment before function.
5502         (main): likewise.
5503         * gensupport.c (struct queue_elem): Add filename member.
5504         (queue_pattern): Initialize it; update all callers.
5505         (process_include): Don't free filename.
5506         (read_md_rtx): Set read_rtx_filename.
5507
5508 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
5509
5510         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
5511
5512 2002-05-23  Richard Henderson  <rth@redhat.com>
5513
5514         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
5515
5516 2002-05-23  Richard Henderson  <rth@redhat.com>
5517
5518         * doc/extend.texi (C++98 Thread-Local Edits): Update with
5519         commentary from Mark.
5520
5521 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5522
5523         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
5524         Use FOR_EACH_BB macros to iterate over basic block chain.
5525         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
5526         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
5527         Likewise.
5528         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
5529         find_unreachable_blocks, create_edge_list, verify_edge_list,
5530         remove_fake_edges, add_noreturn_fake_exit_edges,
5531         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
5532         Likewise.
5533         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
5534         find_sub_basic_blocks): Likewise.
5535         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
5536         Likewise.
5537         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
5538         Likewise.
5539         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
5540         Likewise.
5541         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
5542         commit_edge_insertions, commit_edge_insertions_watch_calls,
5543         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
5544         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
5545         * conflict.c (conflict_graph_compute): Likewise.
5546         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5547         df_modified_p, df_refs_unlink, df_dump): Likewise.
5548         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
5549         * final.c (compute_alignments): Likewise.
5550         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
5551         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
5552         count_or_remove_death_notes): Likewise.
5553         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
5554         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
5555         classic_gcse, compute_transp, cprop, compute_pre_data,
5556         compute_transpout, invalidate_nonnull_info,
5557         delete_null_pointer_checks_1, delete_null_pointer_checks,
5558         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
5559         compute_store_table, build_store_vectors, store_motion): Likewise.
5560         * global.c (global_conflicts, mark_elimination): Likewise.
5561         * graph.c (print_rtl_graph_with_bb): Likewise.
5562         * haifa-sched.c (sched_init): Likewise.
5563         * ifcvt.c (if_convert): Likewise.
5564         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5565         compute_available, compute_nearerout, compute_rev_insert_delete,
5566         optimize_mode_switching): Likewise.
5567         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
5568         * predict.c (estimate_probability, note_prediction_to_br_prob,
5569         propagate_freq, counts_to_freqs, expensive_function_p,
5570         estimate_bb_frequencies): Likewise.
5571         * profile.c (instrument_edges, get_exec_counts,
5572         compute_branch_probabilities, compute_checksum, branch_prob,
5573         find_spanning_tree): Likewise.
5574         * recog.c (split_all_insns, peephole2_optimize): Likewise.
5575         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
5576         Likewise.
5577         * regclass.c (scan_one_insn, regclass): Likewise.
5578         * regmove.c (mark_flags_life_zones, regmove_optimize,
5579         record_stack_memrefs): Likewise.
5580         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
5581         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
5582         * resource.c (find_basic_block): Likewise.
5583         * sched-ebb.c (schedule_ebbs): Likewise.
5584         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
5585         find_single_block_region, find_rgns, schedule_insns)
5586         * sibcall.c (optimize_sibling_and_tail_recursive_call)
5587         * ssa-ccp.c (optimize_unexecutable_edges,
5588         ssa_ccp_df_delete_unreachable_insns): Likewise.
5589         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5590         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
5591         rename_block, convert_to_ssa, compute_conservative_reg_partition,
5592         compute_coalesced_reg_partition, rename_equivalent_regs,
5593         convert_from_ssa): Likewise.
5594         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
5595         process_for_unwind_directive): Likewise.
5596
5597         * df.c (FOR_ALL_BBS): Removed.
5598         * gcse.c (struct null_pointer_info): Type of current_block field
5599         changed.
5600         (struct reg_avail_info): Type of last_bb field changed.
5601         * config/ia64/ia64.c (block_num): Removed.
5602         (need_copy_state): Type changed.
5603         (last_block): New.
5604
5605 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5606
5607         * cppinit.c (mark_named_operators): Split out from init_builtins.
5608         (cpp_finish_options): Call it from here instead.
5609
5610 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
5611
5612         * builtin-attrs.def: Update copyright years.
5613         (ATTR_NONNULL): New attribute identifier.
5614         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
5615         attribute tree lists.
5616         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
5617         format operand.
5618         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
5619         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
5620         attribute lists.  Chain the appropriate nonnull attribute.
5621         * c-format.c (check_format_arg): Remove null format string
5622         warning.
5623         * testsuite/gcc.dg/format/null-1.c: New test.
5624
5625 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5626
5627         * Makefile.in (ADAC): Define.
5628         (SYSLIBS): Define.
5629         (.SUFFIXES): Move before language makefile fragments.
5630         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
5631
5632 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
5633
5634         * varasm.c (make_decl_rtl): Don't allow weak variables to be
5635         placed in common.
5636
5637 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5638
5639         * cfg.c (dump_flow_info): Print results of
5640         maybe_hot/probably_never_executed predicates.
5641         * toplev.c (open_dump_file): Print function frequency.
5642
5643 2002-05-23  David S. Miller  <davem@redhat.com>
5644
5645         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
5646         regsets.
5647
5648 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
5649
5650         * c-common.c (warn_nonnull): Declare.
5651         (c_common_attribute_table): Add "nonnull" attribute.
5652         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
5653         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
5654         check_function_arguments_recurse): New functions.
5655         * c-common.h (warn_nonnull): Declare extern.
5656         (check_function_arguments, check_function_arguments_recurse): New
5657         prototypes.
5658         * c-decl.c (c_decode_option): Add -Wnonnull option.
5659         * c-format.c (set_Wformat): Set warn_nonnull if enabling
5660         format checking.
5661         (format_check_context): New structure.
5662         (check_format_info_recurse): Remove recursion and rename to...
5663         (check_format_arg): ...this.  Update comment.
5664         (check_format_info): Use check_function_arguments_recurse.
5665         * c-typeck.c (build_function_call): Call check_function_arguments
5666         instead of check_function_format.
5667         * doc/extend.texi: Document "nonnull" attribute.
5668         * doc/invoke.texi: Docuemnt -Wnonnull option.
5669         * testsuite/gcc.dg/nonnull-1.c: New test.
5670         * testsuite/gcc.dg/nonnull-2.c: New test.
5671
5672 2002-05-23  David S. Miller  <davem@redhat.com>
5673
5674         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
5675         * cfgcleanup.c (cleanup_cfg): If it is set do not
5676         attempt to delete trivially dead insns.
5677         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
5678         * toplev.c (rest_of_compilation): Document non-trivial aspect
5679         the RTL before optimize_save_area_alloca is run.
5680
5681 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5682
5683         * c-lex.c (indent_level): Remove.
5684         (cb_file_change, c_lex): Remove indent level handling.
5685         * c-lex.h (indent_level): Remove.
5686         * input.h (struct file_stack): Remove indent_level.
5687         * toplev.c (push_srcloc): Remove indent_level handling.
5688
5689 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5690
5691         PR target/6753
5692         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
5693         of x in constraints for clarity.
5694         (sse_mov?fcc split): abort if op2 == op3.
5695         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
5696         sse_movsfcc_const0_4): Add earlyclobber.
5697         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
5698         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
5699         Use Y instead of x in constraints.
5700
5701 2002-05-23  Richard Henderson  <rth@redhat.com>
5702
5703         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
5704         (C++98 Thread-Local Edits): New subsection.
5705
5706         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
5707         (ix86_arch): Set type to enum processor_type.
5708
5709         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
5710         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
5711
5712 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5713
5714         * configure.in: Fix as version test for binutils 2.12.1 releases
5715         (without dates).
5716         * configure: Rebuilt.
5717
5718 2002-05-23  Richard Henderson  <rth@redhat.com>
5719
5720         * config/i386/i386.c (get_pic_label_name): New.
5721         (load_pic_register): Remove.
5722         (output_set_got): New.
5723         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
5724         * config/i386/i386.md (UNSPEC_SET_GOT): New.
5725         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
5726         (prologue_set_got, prologue_get_pc): Remove.
5727         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
5728         (builtin_setjmp_receiver): Use gen_set_got.
5729         * config/i386/i386-protos.h: Update.
5730
5731 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
5732
5733         * gcse.c (hash_expr): Do not use alias set for hashing.
5734
5735 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
5736
5737         * dbxout.c (dbxout_class_name_qualifiers): New function.
5738         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
5739
5740 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5741
5742         * cpperror.c (_cpp_begin_message): No special casing
5743         of CPP_FATAL_LIMIT.
5744         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
5745         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
5746         * cpplib.c (do_include_common): Use DL_ERROR.
5747         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
5748         (DL_ICE): Renumber.
5749         * fix-header.c (read_scan_file): Update.
5750
5751 2002-05-22  Richard Henderson  <rth@redhat.com>
5752
5753         * config/i386/i386.c (ix86_expand_call): New function, extracted
5754         from md call patterns.  Add pic_offset_table_rtx to
5755         CALL_INSN_FUNCTION_USAGE when needed.
5756         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
5757         (call_value_pop, call_value, untyped_call): Likewise.
5758         (call_exp, call_value_exp): Remove.
5759         * config/i386/i386-protos.h: Update.
5760
5761 2002-05-22  Richard Henderson  <rth@redhat.com>
5762
5763         * varasm.c (default_section_type_flags): Check for VAR_DECL
5764         before using DECL_THREAD_LOCAL.
5765
5766 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
5767
5768         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
5769         (STARTFILE_SPEC): Delete PE crt0.o.
5770         * config/rs6000/aix51.h: Same.
5771         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
5772         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
5773         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
5774         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
5775         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
5776
5777 2002-05-22  Richard Henderson  <rth@redhat.com>
5778
5779         * varasm.c (default_section_type_flags): Handle tls data and
5780         default sections.
5781         (default_unique_section): Handle tls sections.
5782
5783 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
5784
5785         * configure.in (CROSS): Define NATIVE_CROSS.
5786         * configure: Regenerate.
5787         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
5788         (startfile_prefix_spec): New var.
5789         (static_specs): Add startfile_prefix_spec.
5790         (do_spec_2): Split out from..
5791         (do_spec): ..here.
5792         (main): Process startfile_prefix_spec.
5793         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
5794         dynamic linker.
5795         (STARTFILE_PREFIX_SPEC): Define.
5796         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
5797         absolute paths.
5798
5799 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
5800
5801         * cpperror.c: Fix formatting.
5802         * cppexp.c: Likewise.
5803         * cppfiles.c: Likewise.
5804         * cpphash.c: Likewise.
5805         * cpphash.h: Likewise.
5806         * cppinit.c: Likewise.
5807         * cpplex.c: Likewise.
5808         * cpplib.c: Likewise.
5809         * cppmacro.c: Likewise.
5810         * cppmain.c: Likewise.
5811         * cppspec.c: Likewise.
5812
5813 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
5814
5815         * combine.c (force_to_mode): Use gen_int_mode.
5816         Don't clear CONST_INT bits outside of mode.
5817
5818 2002-05-22  Richard Henderson  <rth@redhat.com>
5819
5820         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
5821         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
5822
5823 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
5824
5825         PR c/6643
5826         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
5827         if DECL_SIZE_UNIT is INTEGER_CST.
5828
5829 2002-05-22  Richard Henderson  <rth@redhat.com>
5830
5831         * flow.c (life_analysis): Delete broken reg_label check.
5832
5833 2002-05-22  Richard Henderson  <rth@redhat.com>
5834
5835         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
5836         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
5837
5838 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
5839
5840         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
5841         (embed-bb.c): New rule.
5842         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
5843         * config/sh/embed_bb.c: Delete.
5844
5845 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
5846
5847         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
5848
5849 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
5850
5851         * config/h8300/h8300.md (*andorqi3): New.
5852
5853 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5854
5855         PR preprocessor/6517
5856         * Makefile.in: Update.
5857         * c-common.c (c_common_post_options): Add preprocessor
5858         errors to the error count.
5859         * c-lang.c (c_post_options): Kill.
5860         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
5861         * hooks.h: Add header guards.
5862         * langhooks-def.h: Include hooks.h.
5863         (LANG_HOOKS_POST_OPTIONS): Update.
5864         * langhooks.h (struct lang_hooks): Update post_options.
5865         * toplev.c (parse_options_and_default_flags): Update.
5866 objc:
5867         * objc-lang.c (objc_post_options): Kill.
5868         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
5869
5870 2002-05-21  Bruce Korb  <bkorb@gnu.org>
5871
5872         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
5873         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
5874         * fixinc/fixincl.x: regen.
5875
5876 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
5877
5878         * cfgbuild.c: Fix formatting.
5879         * cfg.c: Likewise.
5880         * cfgcleanup.c: Likewise.
5881         * cfglayout.c: Likewise.
5882         * cfgloop.c: Likewise.
5883         * cfgrtl.c: Likewise.
5884
5885 2002-05-21  Richard Henderson  <rth@redhat.com>
5886
5887         * c-common.h (enum rid): Add RID_THREAD.
5888         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
5889         (grokdeclarator): Grok __thread.
5890         * c-parse.in (reswords): Add __thread.
5891         (rid_to_yy): Add RID_THREAD.
5892
5893         * tree.h (DECL_THREAD_LOCAL): New.
5894         (struct tree_decl): Add thread_local_flag.
5895         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
5896         * tree.c (staticp): TLS variables are not static.
5897
5898         * target-def.h (TARGET_HAVE_TLS): New.
5899         * target.h (have_tls): New.
5900         * output.h (SECTION_TLS): New.
5901         * varasm.c (assemble_variable): TLS variables can't be common for now.
5902         (default_section_type_flags): Handle .tdata and .tbss.
5903         (default_elf_asm_named_section): Handle SECTION_TLS.
5904         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
5905
5906         * flags.h (flag_tls_default): Declare.
5907         * toplev.c (flag_tls_default): Define.
5908         (display_help): Display help for it.
5909         (decode_f_option): Set it.
5910
5911         * doc/extend.texi (Thread-Local): New node describing language-level
5912         thread-local storage.
5913         * doc/invoke.texi (-ftls-model): Document.
5914
5915         * fixinc/inclhack.def (thread_keyword): New.
5916         * fixinc/fixincl.x: Rebuild.
5917
5918 2002-05-21  Jeffrey A Law  <law@redhat.com>
5919
5920         * optabs.c (expand_binop): For double-word integer multiplies,
5921         do not compute intermediate results into something that is
5922         not a register (such as a SUBREG or MEM).
5923
5924         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
5925         (ix86_sched_reorder): Make sure to initialize scheduling
5926         data even when there's only one insn in the ready queue.
5927
5928 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
5929
5930         * genautomata.c (reserv_sets_hash_value): Fix a typo.
5931
5932 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
5933
5934         * genautomata.c (reserv_sets_hash_value): Define hash_value as
5935         set_el_t.  Transform the hash value into unsigned.
5936         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
5937         (transform_3): Add code to process `(A,B)+(D,E)'.
5938
5939 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
5940
5941         * reload1.c (do_output_reload): Run delete_output_reload
5942         only if optimizing.
5943
5944 2002-05-21  Roger Sayle  <roger@eyesopen.com>
5945
5946         PR middle-end/6600
5947         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
5948         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
5949         (can_store_by_pieces): ... and here to limit the largest mode used.
5950         Add a comment to document this function.
5951
5952 2002-05-21  Richard Henderson  <rth@redhat.com>
5953
5954         * flow.c (life_analysis): Fix test for deleted label.
5955
5956 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5957
5958         * doc/tm.texi: Fix typo.
5959
5960 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
5961
5962         * c-common.c (c_common_init): Set options->unsigned_char from
5963         flag_signed_char.
5964         (cb_register_builtins): Define __STRICT_ANSI__ and
5965         __CHAR_UNSIGNED__ here...
5966         * cppinit.c (init_builtins): Not here.
5967         (cpp_create_reader): unsigned_char option defaults to 0, not
5968         !DEFAULT_SIGNED_CHAR.
5969         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
5970         and -funsigned-char.
5971
5972         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
5973         * cpphash.c (_cpp_init_hashtable): Don't set it.
5974         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
5975         directly.  Clarify comment.
5976
5977 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5978
5979         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
5980         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
5981         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
5982         BASIC_BLOCK (n_basic_blocks - 1).
5983         * cfganal.c (can_fallthru, flow_call_edges_add,
5984         flow_preorder_transversal_compute): Too.
5985         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
5986         find_sub_basic_blocks): Too.
5987         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
5988         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
5989         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
5990         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
5991         * combine.c (this_basic_block): Type changed to basic_block.
5992         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
5993         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
5994         get_last_value, distribute_notes, distribute_links): Too.
5995         * final.c (compute_alignments): Too.
5996         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
5997         * function.c (thread_prologue_and_epilogue_insns): Too.
5998         * gcse.c (compute_code_hoist_vbeinout): Too.
5999         * global.c (build_insn_chain): Too.
6000         * ifcvt.c (find_if_block, find_cond_trap): Too.
6001         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
6002         * regmove.c (regmove_optimize): Too.
6003         * resource.c (find_basic_block): Too.
6004         * sched-ebb.c (schedule_ebbs): Too.
6005         * ssa-dce.c (find_control_dependence, find_pdom): Too.
6006
6007 2002-05-21  Andreas Jaeger  <aj@suse.de>
6008
6009         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
6010
6011 2002-05-21  Richard Henderson  <rth@redhat.com>
6012
6013         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
6014         unspec names, not numbers.
6015
6016 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6017
6018         * doc/sourcebuild.texi: Mention snapshot-README and
6019         snapshot-index.html as needing updating for new front ends.
6020
6021 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6022
6023         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
6024         disabling checking, and avoid multiple evaluation of RTX.
6025
6026 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
6027
6028         * bitmap.c (bitmap_find_bit): Return early if we have the correct
6029         element cached.
6030
6031 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
6032
6033         * profile.c (gen_edge_profiler):  Set alias set before the memory is
6034         used.
6035
6036 2002-05-20  David S. Miller  <davem@redhat.com>
6037
6038         * cselib.c (max_value_regs): New.
6039         (cselib_lookup, cselib_invalidate_regno): Initialize it when
6040         adding new entries to the REG_VALUES table and we are dealing with
6041         a hard register.
6042         (clear_table): Initialize it.
6043         (cselib_invalidate_regno): Use it to determine which hard
6044         registers to scan when mode is not VOIDmode.
6045
6046 2002-05-20  Duraid Madina   <duraid@fl.net.au>
6047
6048         * tradcpp.c (fixup_newlines): Use old-style function header.
6049
6050 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
6051
6052         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
6053
6054 2002-05-20  H.J. Lu  (hjl@gnu.org)
6055
6056         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
6057
6058         * config/mips/mips.h (DFMODE_NAN): Defined.
6059         (SFMODE_NAN): Likewise.
6060
6061 2002-05-20  Dale Johannesen  <dalej@apple.com>
6062
6063         * combine.c (cant_combine_insn_p):  Back out my
6064         previous patch.
6065
6066 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
6067
6068         * params.c: Fix formatting.
6069         * params.h: Likewise.
6070         * predict.c: Likewise.
6071         * prefix.c: Likewise.
6072         * print-rtl.c: Likewise.
6073         * print-tree.c: Likewise.
6074         * profile.c: Likewise.
6075
6076 2002-05-20  H.J. Lu  (hjl@gnu.org)
6077
6078         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
6079
6080 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
6081
6082         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
6083         switches straight on to the assembler, do not abbreviate them.
6084         * config/arm/elf.h (ASM_SPEC): As above.
6085         * config/arm/semi.h (ASM_SPEC): As above.
6086         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
6087         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
6088         -mcpu=xscale on to the assembler by default.
6089         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
6090
6091 2002-05-20  Richard Henderson  <rth@redhat.com>
6092
6093         * cse.c (canon_hash): Reorder do_not_record test.  Always
6094         allow pic_offset_table_rtx.
6095
6096 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
6097
6098         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
6099         (expand_binop): Ditto (3 times).
6100
6101 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
6102
6103         * Makefile.in (distclean): Remove QMTest stuff.
6104         (QMTEST_PATH): New variable.
6105         (QMTESTFLAGS): Likewise.
6106         (QMTESTRUNFLAGS): Likewise.
6107         (QMTEST): Likewise.
6108         (QMTEST_GPP_TESTS): Likewise.
6109         (QMTEST_DIR): Likewise.
6110         (QMTEST_DIR/context): New target.
6111         (qmtest-g++): Likeise.
6112         (qmtest-gui): Likewise.
6113         (QMTEST_DIR/gpp-expected.qmr): Likewise.
6114
6115 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
6116
6117         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
6118         an altivec register if TARGET_ALTIVEC.
6119
6120         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
6121         to ALTIVEC_VECTOR_MODE.
6122         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
6123         (rs6000_va_arg): Vectors may go in registers if they are not
6124         altivec vectors.
6125
6126 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
6127
6128         * protoize.c: Fix formatting.
6129
6130 2002-05-19  Richard Henderson  <rth@redhat.com>
6131
6132         * gensupport.c (init_include_reader): Merge into ...
6133         (process_include): ... here.  Simplify composite path creation.
6134         Plug memory leaks.  Fix file/line number tracking.  Do not
6135         process_define_cond_exec.  Return void.
6136         (process_rtx): Don't check process_include return value.
6137
6138 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6139
6140         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
6141         fields.
6142         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
6143         traversing basic block chain.
6144         (create_basic_block_structure, create_basic_block): Declaration changed.
6145         (link_block, unlink_block): Declare.
6146         * cfg.c (entry_exit_blocks): Initialize new fields.
6147         (link_block, unlink_block): New.
6148         (expunge_block_nocompact): Unlink basic block.
6149         (dump_flow_info): Print prev_bb/next_bb fields.
6150         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
6151         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
6152         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
6153         * cfgrtl.c (create_basic_block_structure, create_basic_block,
6154         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
6155         (verify_flow_info): Check that list agrees with numbering.
6156
6157 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6158
6159         * c-common.c (preprocessing_asm): New macro.
6160         * c-lex.h (builtin_define, builtin_assert): Use pfile.
6161 doc:
6162         * tm.texi: Update.
6163 config/alpha:
6164         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
6165         (CPP_SPEC): Simplify.
6166         (TARGET_CPU_CPP_BUILTINS): Update.
6167         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
6168         (CPP_SPEC): Simplify.
6169         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
6170         (TARGET_OS_CPP_BUILTINS): Update.
6171         * osf.h (CPP_XFLOAT_SPEC): Kill.
6172         (TARGET_OS_CPP_BUILTINS): Update.
6173         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
6174         * osf5.h (CPP_XFLOAT_SPEC): Kill.
6175         * vms.h (CPP_SUBTARGET_SPEC): Kill.
6176         (TARGET_OS_CPP_BUILTINS): Update.
6177
6178 2002-05-19  Richard Henderson  <rth@redhat.com>
6179
6180         * varasm.c (default_binds_local_p): Fix typo.
6181
6182 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6183
6184         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
6185         CONST_INT operand to the correct mode after adding 1 to it.
6186
6187 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
6188
6189         * config.gcc (powerpc-wrs-windiss*): New target.
6190
6191 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6192
6193         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
6194         (ashrdi3): Use it.
6195
6196 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
6197
6198         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
6199         alphasort.
6200         * config.in: Regenerated.
6201         * configure: Regenerated.
6202
6203 2002-05-19  Richard Henderson  <rth@redhat.com>
6204
6205         * target-def.h (TARGET_BINDS_LOCAL_P): New.
6206         * target.h (struct gcc_target): Move boolean fields to the end.
6207         Add binds_local_p.
6208         * varasm.c (default_binds_local_p): New.
6209         * output.h: Declare it.
6210
6211         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
6212         * config/cris/cris.c (cris_encode_section_info): Likewise.
6213         * config/i386/i386.c (i386_encode_section_info): Likewise.
6214         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
6215         * config/sh/sh.c (sh_encode_section_info): Likewise.
6216
6217         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
6218         (TARGET_BINDS_LOCAL_P): New.
6219
6220 2002-05-19  Richard Henderson  <rth@redhat.com>
6221
6222         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
6223         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
6224         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
6225
6226         * toplev.c (display_help): Kill -a -ax help.
6227
6228         * config/1750a/1750a.h, config/alpha/alpha.h,
6229         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
6230         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
6231         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
6232         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
6233
6234         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
6235         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
6236
6237         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
6238         (ix86_output_function_block_profiler): Kill.
6239         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
6240         (m68hc11_function_block_profiler): Kill.
6241         * config/m68hc11/m68hc11-protos.h: Update.
6242         * config/m88k/m88k.c (output_block_profiler): Kill.
6243         (output_function_block_profiler): Kill.
6244         * config/m88k/m88k-protos.h: Update.
6245
6246 2002-05-19  Richard Henderson  <rth@redhat.com>
6247
6248         * system.h (STRIP_NAME_ENCODING): Poison it.
6249         * output.h (STRIP_NAME_ENCODING): Remove.
6250         (default_strip_name_encoding): Declare.
6251         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
6252         * target.h (strip_name_encoding): New.
6253         * varasm.c (default_strip_name_encoding): New.
6254
6255         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
6256         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
6257         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
6258         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
6259         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
6260         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
6261         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
6262         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
6263         config/v850/v850.h: Use the hook, not the macro.
6264
6265         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6266         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
6267         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
6268         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
6269         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
6270         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
6271         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
6272         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
6273         config/v850/v850.c, config/v850/v850.h:
6274         Move STRIP_NAME_ENCODING to out-of-line function and add
6275         TARGET_STRIP_NAME_ENCODING.
6276
6277         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
6278         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
6279         with TARGET_STRIP_NAME_ENCODING referencing existing function;
6280         make function static.
6281
6282         * xcoffout.c: Include target.h
6283         * Makefile.in (xcoffout.o): Update.
6284
6285         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
6286         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
6287         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
6288         reloc argument unused.
6289         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
6290
6291         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
6292         STRIP_NAME_ENCODING docs.
6293
6294 2002-05-19  Andreas Jaeger  <aj@suse.de>
6295
6296         * gengenrtl.c: Add prototype for excluded_rtx.
6297
6298         * real.h: Add prototype for exact_real_truncate.
6299
6300 2002-05-18  Richard Henderson  <rth@redhat.com>
6301
6302         * system.h (ENCODE_SECTION_INFO): Poison it.
6303         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
6304         * target.h (encode_section_info): New.
6305         * varasm.c (make_decl_rtl, output_constant_def): Use it.
6306         * hooks.c (hook_tree_int_void): New.
6307         * hooks.h: Declare it.
6308
6309         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6310         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
6311         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
6312         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
6313         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
6314         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
6315         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6316         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
6317         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
6318         config/mcore/mcore-protos.h, config/mcore/mcore.c,
6319         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
6320         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
6321         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
6322         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
6323         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
6324         referencing existing function.  Make function static.
6325
6326         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
6327         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
6328         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
6329         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
6330         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
6331         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
6332         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
6333         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
6334         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
6335         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
6336         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
6337         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
6338         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
6339         Move ENCODE_SECTION_INFO to out-of-line function and add
6340         TARGET_ENCODE_SECTION_INFO.
6341
6342         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
6343         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
6344
6345         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
6346         from SUBTARGET_*
6347         (switch_to_section): Replace in_rdata case with in_readonly_data.
6348
6349         * config/h8300/h8300.c (h8300_encode_label): Make static.
6350         * config/h8300/h8300-protos.h: Update.
6351
6352         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
6353         from rs6000_encode_section_info; make static.
6354         (rs6000_xcoff_encode_section_info): New.
6355
6356         * config/v850/v850.c (v850_encode_data_area): Make static.
6357         * config/v850/v850-protos.h: Update.
6358
6359         * config/vax/vax.c: Include flags.h.
6360         (vms_select_section): Fix typo.
6361
6362         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
6363         ENCODE_SECTION_INFO docs.
6364
6365 2002-05-18  Richard Henderson  <rth@redhat.com>
6366
6367         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
6368         REGISTER_TARGET_PRAGMAS.
6369         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
6370
6371         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
6372
6373 2002-05-18  Richard Henderson  <rth@redhat.com>
6374
6375         * system.h (SELECT_RTX_SECTION): Poison.
6376         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
6377         * target.h (select_rtx_section): New.
6378         * varasm.c (output_constant_pool): Use it.
6379         (default_select_rtx_section, default_elf_select_rtx_section): New.
6380         * output.h: Declare them.
6381
6382         * config/darwin.h (SELECT_RTX_SECTION): Move ...
6383         * config/darwin.c (machopic_select_rtx_section): ... here.
6384         * config/darwin-protos.h: Update.
6385
6386         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
6387         * config/nextstep.c (machopic_select_rtx_section): ... here.
6388         (nextstep_select_section): Rename variable to avoid macro clash.
6389         * config/nextstep-protos.h: Update.
6390
6391         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
6392         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
6393         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
6394         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
6395         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
6396         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
6397         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
6398         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
6399         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
6400         (SELECT_RTX_SECTION): Remove.
6401
6402         * config/darwin.h, config/elfos.h, config/nextstep.h,
6403         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
6404         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
6405         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
6406         config/sparc/lynx.h, config/xtensa/xtensa.c
6407         (TARGET_ASM_SELECT_RTX_SECTION): New.
6408
6409         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
6410         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
6411         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
6412         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
6413         (ia64_aix_select_rtx_section): New.
6414         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
6415         redefining.
6416         * config/mips/mips.c (mips_select_rtx_section): Make static.
6417         Support ELF SHF_MERGE features.
6418         * config/mips/mips-protos.h: Update.
6419         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
6420         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
6421         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
6422         make static, fall back to default_elf_select_rtx_section.
6423         * config/rs6000/rs6000-protos.h: Update.
6424         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
6425         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
6426         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
6427         * config/romp/romp.c (romp_select_rtx_section): New.
6428         * config/s390/s390.c (s390_select_rtx_section): New.
6429         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
6430         declarations before target macro definition.
6431         (xtensa_emit_call): Use static buffer.
6432         (xtensa_select_rtx_section): New.
6433         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
6434         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
6435         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
6436
6437         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
6438         SELECT_RTX_SECTION docs.
6439
6440 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
6441
6442         * i386.md (movsi/movdi): Fix template.
6443         (sse2 patterns): Set attributes consistently.
6444
6445         * i386.md (pushqi2, ashrqi_*): Fix constraint.
6446
6447 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
6448
6449         * optabs.c (complex_part_zero_p): New.
6450         * (expand_cmplxdiv_straight): Use it.
6451         * (expand_cmplxdiv_wide): Ditto.
6452         * (expand_binop): Ditto.
6453
6454 2002-05-18  Richard Henderson  <rth@redhat.com>
6455
6456         * final.c (HAVE_READONLY_DATA_SECTION): New.
6457         (shorten_branches): Use it instead of ifdefs.
6458         * varasm.c (enum in_section): Add in_readonly_data.
6459         (text_section, data_section): Tidy.
6460         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
6461
6462         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
6463         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
6464         (READONLY_DATA_SECTION): Don't undef.
6465
6466         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
6467         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
6468         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
6469
6470         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
6471         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
6472         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
6473         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
6474
6475         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
6476         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
6477         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6478         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
6479         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
6480         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
6481         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
6482         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
6483         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
6484
6485         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
6486         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
6487         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
6488         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
6489         config/pa/pa64-hpux.h, config/sparc/litecoff.h
6490         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
6491
6492         * config/elfos.h, config/netware.h, config/svr3.h,
6493         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6494         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6495         config/h8300/h8300.h, config/i386/i386-interix.h,
6496         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6497         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
6498
6499         * config/elfos.h, config/netware.h, config/svr3.h,
6500         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6501         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
6502         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6503         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
6504
6505         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
6506         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
6507         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
6508         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
6509         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
6510         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
6511         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
6512         config/rs6000/sysv4.h, config/v850/v850.h
6513         (EXTRA_SECTIONS): Remove in_const/in_rdata.
6514         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
6515
6516         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
6517         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
6518         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
6519         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
6520         * config/alpha/alpha.c (alpha_start_function): Likewise.
6521         (alpha_write_linkage): Likewise.
6522         * config/m32r/m32r.c (m32r_select_section): Likewise.
6523         * config/m88k/m88k.c (m88k_select_section): Likewise.
6524         * config/mips/mips.c (mips_select_rtx_section): Likewise.
6525         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
6526         (rs6000_elf_select_section): Likewise.
6527         * config/v850/v850.c (v850_select_section): Likewise.
6528
6529         * config/1750a/1750a.h, config/i860/sysv3.h
6530         (READONLY_DATA_SECTION_ASM_OP): New.
6531         READONLY_DATA_SECTION_ASM_OP.
6532         * config/i386/interix.c, config/i386/winnt.c
6533         (i386_pe_unique_section): Always use .rdata prefix.
6534         * config/pa/som.h (readonly_data): Always switch to read-only section.
6535         (READONLY_DATA_SECTION): Predicate on flag_pic.
6536         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
6537         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
6538         (READONLY_DATA_SECTION): Update.
6539
6540 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
6541
6542         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
6543         is used without -Wformat.
6544         * c-common.h (warn_format_zero_length): Declare extern.
6545         * c-decl.c (warn_options): Add "format-zero-length".
6546         * c-format.c (warn_format_zero_length): Declare.
6547         (set_Wformat): Set warn_format_zero_length for -Wformat.
6548         (check_format_info): Only warn about zero-length formats if
6549         warn_format_zero_length is true.  Include the format type
6550         name in the warning message.
6551         * doc/invoke.texi: Document -Wformat-zero-length.
6552         * testsuite/gcc.dg/format/zero-length-1.c: New test.
6553
6554 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
6555
6556         * timevar.c: Fix formatting.
6557         * tlink.c: Likewise.
6558         * toplev.c: Likewise.
6559         * tree-dump.c: Likewise.
6560         * tree-inline.c: Likewise.
6561
6562 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6563
6564         * cppinit.c (cpp_post_options): If preprocessed, turn off
6565         traditional.  If traditional, turn off column numbers.
6566         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
6567         * cpptrad.c (handle_newline): Update line_base.
6568         (skip_comment): Handle -Wcomment.
6569
6570 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
6571
6572         * cppinit.c (struct builtin): Remove unused fields.
6573         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
6574         (operator_array): New - was second half of builtin_array.
6575         (init_builtins): Simplify loop over builtin_array/operator_array.
6576
6577 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6578
6579         * defaults.h (UNIQUE_SECTION): Remove.
6580         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
6581
6582 2002-05-17  Richard Henderson  <rth@redhat.com>
6583
6584         * expr.c (init_expr_once): Don't use start/end_sequence.
6585         Use rtx_alloc instead of emit_insn.
6586         * toplev.c (lang_dependent_init): Run init_expr_once here ...
6587         (lang_independent_init): ... not here.
6588
6589 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
6590
6591         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
6592
6593 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6594
6595         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
6596         for fixed registers, possibly used for global register variables.
6597         (initial_elimination_offset, avr_output_function_prologue,
6598         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
6599
6600 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6601
6602         * Makefile.in: Update for cpptrad.c.
6603         * cpphash.h (struct cpp_buffer): New members for buffer
6604         overlays.
6605         (struct cpp_reader): New members for traditional output.
6606         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
6607         * cppinit.c (cpp_create_reader): Set trad_line.
6608         (cpp_destroy): Free trad_out_base if used.
6609         (cpp_read_main_file): Overlay an empty buffer if traditional.
6610         (cpp_finish_options): Don't do builtins.
6611         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
6612         (cpp_handle_option): Handle it.
6613         * cpplex.c (continue_after_nul): New.
6614         (_cpp_lex_direct): Use handle_nul.
6615         * cpplib.h (struct cpp_options): New traditional option.
6616         * cpptrad.c: New file.
6617
6618 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6619
6620         * c-common.c (c_common_init_options): Use C89 for Objective-C,
6621         and set the options flag.
6622         * cppinit.c (lang_flags): Remove objc.
6623         (lang_defaults): Remove OBJC and OBJCXX.
6624         (set_lang): Update.
6625         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
6626         (cpp_handle_option): Remove -+ and -lang-objc++.
6627         For ObjC, just set a flag.
6628         (print_help): Update.
6629         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
6630
6631 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6632
6633         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
6634         bootstrap with -mips3.
6635
6636 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
6637
6638         * final.c: Fix formatting.
6639         * fix-header.c: Likewise.
6640         * flow.c: Likewise.
6641         * fold-const.c: Likewise.
6642         * function.c: Likewise.
6643
6644 2002-05-17  David S. Miller  <davem@redhat.com>
6645
6646         PR c/6689, PR optimization/6615
6647         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
6648         and make it a pointer to rtx.  Update comments.
6649         (update_equiv_regs): When scanning for equivalences, record
6650         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
6651         it while making the equiv replacements.
6652
6653 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6654
6655         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
6656
6657 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6658
6659         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
6660         when encoding visibility into SYMBOL_REF_FLAG.
6661
6662 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
6663
6664         * expr.c (force_operand): Fix reversed move.
6665
6666 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
6667
6668         * doc/install.texi (Testing): Mention two common DejaGnu warnings
6669         that can be ignored.
6670
6671 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6672
6673         * doc/install.texi (Final install): Recommend to install into a
6674         "clean" target directory.
6675
6676 2002-05-17  Richard Henderson  <rth@redhat.com>
6677
6678         * config/ia64/ia64.md: Use braced strings instead of quoted strings
6679         for code blocks.  Tidy whitespace.
6680
6681 2002-05-17  Richard Henderson  <rth@redhat.com>
6682
6683         * hooks.c (hook_tree_bool_false): New.
6684         * hooks.h: Declare it.
6685         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
6686         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
6687         * target.h (select_section, unique_section): New.
6688         (in_small_data_p): New.
6689         * varasm.c (resolve_unique_section): Use hooks instead of macros.
6690         (variable_section, output_constant_def_contents): Likewise.
6691         (default_select_section, default_unique_section): New.
6692         (categorize_decl_for_section, default_elf_select_section): New.
6693         * output.h: Declare them.
6694
6695         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
6696         (TARGET_ASM_SELECT_SECTION): New.
6697         (SELECT_SECTION): Move ...
6698         * config/darwin.c (machopic_select_section): ... here.
6699         * config/darwin-protos.h: Update.
6700
6701         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
6702         (SELECT_SECTION): Move ...
6703         * config/nextstep.c (nextstep_select_section): ... here.
6704         * config/nextstep-protos.h: Update.
6705
6706         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
6707         (TARGET_ASM_SELECT_SECTION): New.
6708         * config/svr3.h (SELECT_SECTION): Remove.
6709
6710         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
6711         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
6712         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
6713         (alpha_encode_section_info): Use it.
6714         * config/alpha/alpha-protos.h: Update.
6715         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
6716         (SELECT_SECTION, UNIQUE_SECTION): Remove.
6717         (TARGET_ASM_SELECT_SECTION): New.
6718         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
6719
6720         * config/arm/pe.h (UNIQUE_SECTION): Remove.
6721         (TARGET_ASM_UNIQUE_SECTION): New.
6722
6723         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
6724         (avr_unique_section): Rename from unique_section; make static.
6725         * config/avr/avr-protos.h: Update.
6726         * config/avr/avr.h (UNIQUE_SECTION): Remove.
6727
6728         * config/c4x/c4x.h (SELECT_SECTION): Remove.
6729
6730         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
6731         (TARGET_ASM_UNIQUE_SECTION): New.
6732         * config/i386/i386-interix.h: Likewise.
6733         * config/i386/win32.h: Likewise.
6734         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
6735         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
6736         * config/i386/sco5.h (SELECT_SECTION): Remove.
6737         (TARGET_ASM_SELECT_SECTION): New.
6738         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
6739
6740         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
6741         instead of SELECT_SECTION.
6742         * config/m68k/dpx2.h: Likewise.
6743         * config/rs6000/lynx.h: Likewise.
6744
6745         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6746         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
6747         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
6748         (ia64_in_small_data_p): New.
6749         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
6750         (ia64_aix_select_section, ia64_aix_unique_section): New.
6751         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
6752         (SELECT_SECTION, UNIQUE_SECTION): Remove.
6753
6754         * config/m32r/m32r.h (SELECT_SECTION): Remove.
6755         (TARGET_ASM_SELECT_SECTION): New.
6756         * config/m32r/m32r.c (m32r_select_section): Take align argument.
6757         * config/m32r/m32r-protos.h: Update.
6758
6759         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
6760         (SELECT_SECTION): Move ...
6761         * config/m88k/m88k.c (m88k_select_section): ... here.
6762
6763         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
6764         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
6765         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
6766         (mcore_unique_section): Make static.
6767         * config/mcore/mcore-protos.h: Update.
6768
6769         * config/mips/elf.h (UNIQUE_SECTION): Remove.
6770         (TARGET_ASM_UNIQUE_SECTION): New.
6771         * config/mips/elf64.h: Likewise.
6772         * config/mips/iris6gld.h: Likewise.
6773         * config/mips/linux.h: Likewise.
6774         * config/mips/mips-protos.h: Update.
6775         * config/mips/mips.c (mips_select_section): Add align argument.
6776         * config/mips/mips.h (SELECT_SECTION): Remove.
6777         (TARGET_ASM_SELECT_SECTION): New.
6778
6779         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6780         * config/mmix/mmix.c (mmix_select_section): Remove.
6781         (mmix_unique_section): Remove.
6782         * config/mmix/mmix-protos.h: Update.
6783
6784         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
6785         (SELECT_SECTION): Move ...
6786         * config/pa/pa.c (pa_select_section): ... here.
6787         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
6788
6789         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
6790         from rs6000_select_section and make static.
6791         (rs6000_elf_unique_section): Similarly.
6792         (rs6000_xcoff_select_section): From xcoff.h.
6793         (rs6000_xcoff_unique_section): Likewise.
6794         * config/rs6000/rs6000-protos.h: Update.
6795         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6796         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
6797         * config/rs6000/xcoff.h: Likewise.
6798
6799         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
6800         (SELECT_SECTION): Move ...
6801         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
6802
6803         * config/v850/v850.h (SELECT_SECTION): Move ...
6804         * config/v850/v850.c (v850_select_section): ... here.
6805         (TARGET_ASM_SELECT_SECTION): New.
6806
6807         * config/vax/vms.h (SELECT_SECTION): Move ...
6808         * config/vax/vax.c (vms_select_section): ... here.
6809         (TARGET_ASM_SELECT_SECTION): New.
6810
6811         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
6812         for the target hooks.
6813
6814 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
6815
6816         * config/arm/arm.c (emit_multi_reg_push): Do not set
6817         RTX_FRAME_RELATED_P on the SEQUENCE.
6818
6819 2002-05-16  Richard Henderson  <rth@redhat.com>
6820
6821         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
6822         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
6823
6824 2002-05-16  Richard Henderson  <rth@redhat.com>
6825
6826         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
6827
6828         * config/ia64/ia64.c (saveable_obstack): Do not declare.
6829
6830 2002-05-16  Richard Henderson  <rth@redhat.com>
6831
6832         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
6833         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
6834         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
6835         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
6836         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
6837         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
6838         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
6839         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
6840         Revert "Basic block renumbering removal", and two followup patches.
6841
6842 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
6843
6844         * lcm.c (optimize_mode_switching): Revert previous change.
6845
6846 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6847
6848         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
6849         with only extant block numbers.
6850
6851 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
6852
6853         * lcm.c (optimize_mode_switching): Fix typo.
6854
6855 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6856
6857         * flow.c (calculate_global_regs_live): Queue blocks in program order.
6858
6859 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6860
6861         * doc/install.texi (Configuration): Document PWDCMD.
6862
6863 2002-05-16  Dale Johannesen  <dalej@apple.com>
6864
6865         * combine.c (cant_combine_insn_p):  Reenable combinations
6866         involving hard regs unless CLASS_LIKELY_SPILLED_P.
6867
6868 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
6869
6870         * c-common.c (cb_register_builtins): Handle more built-ins
6871         here rather than in gcc.c specs.
6872         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
6873         (cpp_options): Pass -O flags even when only preprocessing.
6874         * toplev.c (set_fast_math_flags): New prototype.
6875         (fast_math_flags_set_p): New.
6876         (set_no_fast_math_flags): Remove.
6877         (decode_f_option): Update.
6878         * toplev.h (set_fast_math_flags): Update.
6879         (fast_math_flags_set_p): New.
6880         (set_no_fast_math_flags): Remove.
6881 config:
6882         * c4x/c4x.c (c4x_override_options): Update.
6883
6884 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
6885
6886         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
6887         Default-define here.
6888         (builtin_define_with_value): Can now wrap the expansion in
6889         quotation marks if such is wanted.
6890         (cb_register_builtins): Update calls to builtin_define_with_value.
6891         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
6892         here.
6893         (c_common_init): Set options->stdc_0_in_system_headers.
6894         * c-lex.h: Update prototype of builtin_define_with_value.
6895         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
6896         and REGISTER_PREFIX.
6897
6898         * cppinit.c (VERS, ULP, C, X): Kill.
6899         (builtin_array): Remove entries for __VERSION__,
6900         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
6901         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
6902         a constant.
6903         (init_builtins): Kill off a bunch of now-dead code.
6904         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
6905         -fno-leading-underscore.
6906         (cpp_handle_option): Remove code to set user_label_prefix.
6907         (cpp_post_options): Likewise.
6908
6909         * cpplib.h (struct cpp_options): Remove user_label_prefix.
6910         (stdc_0_in_system_headers): New.
6911         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
6912         stdc_0_in_system_headers) too to decide the value of __STDC__.
6913
6914         * tradcpp.c (user_label_prefix): Kill.
6915         (main): Remove code handling -f(no-)leading-underscore.
6916         (initialize_builtins): Don't define __REGISTER_PREFIX__
6917         or __USER_LABEL_PREFIX__.
6918         (install_value): Wrap compound statement in dummy loop so the
6919         macro works properly in an if statement.
6920
6921
6922 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
6923
6924         * loop.h (struct loop_info): Add member has_prefetch.
6925         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
6926         (prescan_loop): Initialize has_prefetch.
6927         (struct prefetch_info): Change prefetch_in_loop and
6928         prefetch_before_loop from bit fields to ints.
6929         (emit_prefetch_instructions): Several small fixes.
6930         (check_dbra_loop): Don't reverse loop that uses prefetch.
6931
6932 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6933
6934         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
6935         * configure.in: Likewise.
6936         * fixinc/check.tpl: Likewise.
6937         * fixinc/fixinc.dgux: Likewise.
6938         * fixinc/fixinc.svr4: Likewise.
6939         * fixinc/fixinc.winnt: Likewise.
6940         * fixinc/fixincl.sh: Likewise.
6941         * fixproto: Likewise.
6942         * configure: Regenerate.
6943
6944 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6945
6946         Basic block renumbering removal:
6947         * basic_block.h (struct basic_block_def): Renamed index to sindex,
6948         added prev_bb and next_bb fields.
6949         (n_basic_blocks): Renamed to num_basic_blocks.
6950         (last_basic_block): New, index of last basic block.
6951         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
6952         traversing basic block chain.
6953         (BLOCK_NUM): index -> sindex.
6954         (create_basic_block_structure, create_basic_block): Declaration changed.
6955         (debug_num2bb): Declare.
6956         (expunge_block_nocompact): Declaration removed.
6957         (link_block, unlink_block, compact_blocks): Declare.
6958         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
6959         * cfg.c (entry_exit_blocks): Initialize new fields.
6960         (clear_edges, alloc_block, expunge_block, cached_make_edge,
6961         redirect_edge_pred, dump_flow_info, dump_edge_info,
6962         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
6963         free_aux_for_edges): Modified.
6964         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
6965         (expunge_block_nocompact): Removed.
6966         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
6967         find_unreachable_blocks, create_edge_list, print_edge_list,
6968         verify_edge_list, flow_edge_list_print, remove_fake_successors,
6969         remove_fake_edges, flow_reverse_top_sort_order_compute,
6970         flow_depth_first_order_compute, flow_preorder_transversal_compute,
6971         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
6972         flow_dfs_compute_reverse_execute): Modified.
6973         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
6974         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
6975         Modified.
6976         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
6977         merge_blocks_move_predecessor_nojumps,
6978         merge_blocks_move_successor_nojumps, merge_blocks,
6979         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
6980         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
6981         * cfglayout.c (skip_insns_after_block, label_for_bb,
6982         record_effective_endpoints, scope_to_insns_finalize,
6983         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
6984         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
6985         cfg_layout_duplicate_bb): Modified.
6986         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
6987         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
6988         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
6989         flow_loops_find, flow_loop_outside_edge_p): Modified.
6990         * cfgrtl.c (create_basic_block_structure, create_basic_block,
6991         flow_delete_block, compute_bb_for_insn, split_block,
6992         try_redirect_by_replacing_jump, redirect_edge_and_branch,
6993         force_nonfallthru_and_redirect, tidy_fallthru_edge,
6994         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
6995         commit_edge_insertions, commit_edge_insertions_watch_calls,
6996         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
6997         purge_all_dead_edges): Modified.
6998         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
6999         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
7000         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
7001         Modified.
7002         * conflict.c (conflict_graph_compute): Modified.
7003         * df.c (FOR_ALL_BBS): Removed.
7004         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7005         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
7006         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
7007         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
7008         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
7009         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
7010         * final.c (compute_alignments, final_scan_insn): Modified.
7011         * flow.c (verify_local_live_at_start, update_life_info,
7012         update_life_info_in_dirty_blocks, free_basic_block_vars,
7013         delete_noop_moves, calculate_global_regs_live,
7014         initialize_uninitialized_subregs, allocate_bb_life_data,
7015         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
7016         mark_used_reg, count_or_remove_death_notes): Modified.
7017         * function.c (thread_prologue_and_epilogue_insns): Modified.
7018         * gcse.c (struct null_pointer_info): Change typo of current_block
7019         to basic_block.
7020         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
7021         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
7022         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
7023         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
7024         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
7025         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
7026         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
7027         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
7028         pre_delete, one_pre_gcse_pass, compute_transpout,
7029         invalidate_nonnull_info, delete_null_pointer_checks_1,
7030         free_code_hoist_mem, compute_code_hoist_vbeinout,
7031         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
7032         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
7033         compute_store_table, build_store_vectors, insert_insn_start_bb,
7034         insert_store, replace_store_insn, free_store_memory, store_motion):
7035         Modified.
7036         * global.c (global_alloc, global_conflicts, mark_elimination,
7037         build_insn_chain): Modified.
7038         * graph.c (print_rtl_graph_with_bb): Modified.
7039         * haifa-sched.c (sched_init): Modified.
7040         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
7041         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
7042         if_convert): Modified.
7043         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
7044         compute_insert_delete, pre_edge_lcm, compute_available,
7045         compute_farthest, compute_nearerout, compute_rev_insert_delete,
7046         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
7047         Modified.
7048         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
7049         * loop.c (loop_dump_aux): Modified.
7050         * predict.c (combine_predictions_for_insn, estimate_probability,
7051         last_basic_block_p, process_note_prediction, process_note_predictions,
7052         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
7053         expensive_function_p, estimate_bb_frequencies,
7054         compute_function_frequency): Modified.
7055         * print-rtl.c (print_rtx): Modified.
7056         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
7057         get_exec_counts, compute_branch_probabilities, compute_checksum,
7058         branch_prob, find_spanning_tree): Modified.
7059         * recog.c (split_all_insns, peephole2_optimize): Modified.
7060         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
7061         convert_regs_1, convert_regs_2, convert_regs): Modified.
7062         * regclass.c (scan_one_insn, regclass): Modified.
7063         * regmove.c (mark_flags_life_zones, regmove_optimize,
7064         combine_stack_adjustments): Modified.
7065         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
7066         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
7067         * reorg.c (dbr_schedule): Modified.
7068         * resource.c (find_basic_block, init_resource_info): Modified.
7069         * sbitmap.c (sbitmap_intersection_of_succs,
7070         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
7071         sbitmap_union_of_preds): Modified.
7072         * sched-deps.c (init_dependency_caches): Modified.
7073         * sched-ebb.c (schedule_ebbs): Modified.
7074         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
7075         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
7076         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
7077         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
7078         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
7079         ssa_const_prop): Modified.
7080         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
7081         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
7082         * ssa.c (remove_phi_alternative, find_evaluations,
7083         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
7084         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
7085         make_regs_equivalent_over_bad_edges,
7086         make_equivalent_phi_alternatives_equival,
7087         compute_conservative_reg_partition,
7088         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
7089         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
7090         Modified.
7091
7092 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
7093
7094         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
7095
7096 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
7097
7098         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
7099         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7100         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
7101         calling CONSTANT_POOL_ADDRESS_P.
7102         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
7103         to decide whether to define __arm__ or __thumb.
7104         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
7105         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7106
7107 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7108
7109         * config/arc/arc.h (CPP_PREDEFINES): Remove.
7110         (CPP_SPEC): Update.
7111         (TARGET_CPU_CPP_BUILTINS): New.
7112
7113 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7114
7115         * cpphash.h (cpp_macro): Move here, and make expansion a union.
7116         * cppmacro.c (cpp_macro): Remove.
7117         (enter_macro_context, replace_args, warn_of_redefinition,
7118         _cpp_create_definition, cpp_macro_definition): Update.
7119
7120 2002-05-16  Jason Merrill  <jason@redhat.com>
7121
7122         * config/mips/mips.c (mips_output_external): Don't do sdata
7123         optimization for a variable with DECL_COMDAT set.
7124
7125 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7126
7127         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
7128         Cleanups for accepting modifiers on pointers.
7129         Fix predicate typos.
7130         Allow long pointers as well as int pointers.
7131
7132 2002-05-15  Richard Henderson  <rth@redhat.com>
7133
7134         * varasm.c (merge_weak): Remove special case for extern and common.
7135
7136 2002-05-15  Matt Hiller  <hiller@redhat.com>
7137
7138         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
7139         XFAILing.
7140         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
7141         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
7142         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
7143         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
7144         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
7145         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
7146
7147 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7148
7149         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
7150
7151 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7152
7153         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
7154         ("altivec_mfvscr"): Read from VSCR.
7155
7156         Add vscr sets for the following insns: altivec_vctuxs,
7157         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
7158         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
7159         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
7160         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
7161         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
7162         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
7163         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
7164         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
7165         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
7166         altivec_vsum2sws, altivec_vsumsws.
7167
7168         * config/rs6000/rs6000.h: Add VSCR fixed register.
7169         (CALL_REALLY_USED_REGISTERS): Add vscr.
7170         (CALL_USED_REGISTERS): Same.
7171         (FIXED_REGISTERS): Same.
7172         (REG_ALLOC_ORDER): Same.
7173         (reg_class): Add VSCR_REGS.
7174         (REG_CLASS_NAMES): Same.
7175         (REG_CLASS_CONTENTS): Same.
7176         (VSCR_REGNO): New.
7177         (REGISTER_NAMES): Add vscr.
7178         (DEBUG_REGISTER_NAMES): Same.
7179         (ADDITIONAL_REGISTER_NAMES): Same.
7180         (FIRST_PSEUDO_REGISTER): Increment.
7181         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
7182
7183 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
7184
7185         * fold-const.c (fold): Fix a typo.
7186
7187 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
7188
7189         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
7190         comparison against the highest or lowest integer value before
7191         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
7192         transformation and that of an unsigned comparison against 0
7193         right after.
7194
7195 2002-05-15  Richard Henderson  <rth@redhat.com>
7196
7197         * varasm.c (merge_weak): Error for any weakening after definition.
7198         Adjust weakening after use warning to catch more cases.
7199         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
7200         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
7201
7202 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
7203
7204         * invoke.texi (-malign-double): Re-add lost warning.
7205
7206         * i386-protos.h (x86_output_mi_thunk): Declare.
7207         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
7208         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
7209
7210         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
7211         when flag_asynchronous_unwind_tables is set.
7212
7213         * flags.h (flag_reorder_functions): Declare.
7214         * function.c (prepare_function_start): Initialize frequnecy.
7215         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
7216         * Makefile.in (predict.o): Add dependency on target.h and params.h
7217         * defaults.h (HOT_TEXT_SECTION_NAME,
7218         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
7219         * predict.c (choose_function_section): New function.
7220         (estimate_bb_frequencies): Use it.
7221         * toplev.c (flag_reorder_functions): New global variable.
7222         (lang_independent_options): New.
7223         (parse_options_and_default_flags): Set.
7224         * varasm.c (assemble_start_function): Bypass functdion alignment
7225         for never executed functions.
7226         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
7227         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
7228         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
7229         Document.
7230
7231         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
7232
7233         * predict.c: Inlude profile.h
7234         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
7235         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
7236         Use the information about maximal counter in the program.
7237
7238         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
7239
7240         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
7241         probably_never_executed_bb_p): New functions.
7242         * cfgcleanup.c (outgoing_edges_match): Use them.
7243         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
7244         (maybe_hot_bb_p, probably_cold_bb_p,
7245         probably_never_executed_bb_p): New functions.
7246
7247         * function.h (function): Add new field function_frequency.
7248         * predict.c (compute_function_frequency): New function.
7249         (estimate_probability): Call it.
7250
7251 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
7252
7253         PR optimization/5172, optimization/5200
7254         * gcse.c (gcse_main): Disable store_motion.
7255
7256 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
7257
7258         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
7259         (c_common_nodes_and_builtins): Use it.
7260         (builtin_define_with_value): New function.
7261         (cb_register_builtins): Define __SIZE_TYPE__,
7262         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
7263         using builtin_define_with_value.  Use consistent notation when
7264         defining __GXX_WEAK__.
7265         (WCHAR_TYPE_SIZE): Don't redefine.
7266         (combine_strings): Don't use WCHAR_TYPE_SIZE.
7267
7268         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
7269         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
7270         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
7271         * tradcpp.c (initialize_builtins): Likewise.
7272         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
7273
7274         * c-lex.h (builtin_define_with_value): Prototype.
7275         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
7276         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
7277         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
7278
7279         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
7280         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
7281         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
7282         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
7283         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
7284         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
7285         config/sparc/sol2-bi.h, config/sparc/sparc.h:
7286         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
7287         to __SIZE_TYPE__ etc from all spec strings. When this makes
7288         extra specs empty, delete them.
7289
7290 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7291
7292         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
7293         for PA8000 or generating dwarf2 call frame information.
7294         (output_call): Remove DO_FRAME_NOTES check from return pointer
7295         optimization.
7296         (following_call): Return 0 when scheduling for PA8000 or generating
7297         dwarf2 call frame information.  Revise comment.
7298
7299 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7300
7301 config/alpha:
7302         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
7303         and __IEEE_FP_INEXACT as appropriate.
7304         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
7305         (CPP_SPEC): Remove ieee defines.
7306         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
7307
7308 2002-05-14  Richard Henderson  <rth@redhat.com>
7309
7310         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
7311         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
7312
7313 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7314
7315         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
7316         (CPP_SPEC): Update.
7317         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
7318         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
7319         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
7320         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
7321         (EXTRA_SPECS): Update.
7322         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
7323         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
7324         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
7325         define TARGET_OS_CPP_BUILTINS if necessary.
7326
7327 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7328
7329         * gcc.c (cpp_options): Must pass -m* and -f* options
7330         to the front end even when only preprocessing.
7331         (cc1_options): Remove redundant -lang-c.
7332         * tradcpp.c (main): Ignore -m options.
7333 objc:
7334         * lang-specs.h: Similarly.
7335
7336 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
7337
7338         * genautomata.c (transform_3): Add code for transformation
7339         `(A,B,...)+C -> A+C,B,...'.
7340
7341 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
7342
7343         * final.c (end_final): Do not output profile_arcs constructor, when
7344         no functions are instrumented.
7345
7346 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
7347
7348         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
7349
7350 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7351
7352         * doc/install.texi: Remove special markup originally required for
7353         HTML generation with texi2html.
7354
7355 2002-05-14  Andreas Schwab  <schwab@suse.de>
7356
7357         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
7358         SELECT_SECTION.
7359         (UNIQUE_SECTION): Define to get small data correctly.
7360
7361         * varasm.c (resolve_unique_section): Add third parameter
7362         flag_function_or_data_sections and use it instead of
7363         flag_function_sections.
7364         (assemble_start_function): Pass flag_function_sections.
7365         (asm_emit_uninitialised): Pass flag_data_sections.
7366         (assemble_variable): Likewise.
7367
7368 2002-05-14  Richard Henderson  <rth@redhat.com>
7369
7370         * config/i386/i386.md: Use define_constants for unspec numbers.
7371         * config/i386/i386.c: Likewise.
7372
7373 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7374
7375         * doc/contrib.texi: Update my entry.
7376
7377 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
7378
7379         * fixinc/inclhack.def (winidss_valist): Limit applicability.
7380         * fixinc/fixincl.x: Regenerated.
7381         * fixinc/tests/base/math.h: Update.
7382         * fixinc/tests/base/testing.h: Likewise.
7383
7384 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
7385
7386         * genattr.c (gen_attr): Don't emit a comma after the last
7387         enumerator.
7388
7389 2002-05-13  Richard Henderson  <rth@redhat.com>
7390
7391         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
7392         by non-local gotos.
7393         * recog.c (peephole2_optimize): Likewise.
7394
7395 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
7396
7397         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
7398         input to O_BINARY.
7399
7400 2002-05-13  Jeffrey A Law  (law@redhat.com)
7401
7402         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
7403         Update prototype and callers.
7404         (propagate_one_insn): Stack pointer adjustments kill MEMs on
7405         the mem_set_list which reference the stack pointer, as do
7406         calls to constant functions as they may clobber outgoing
7407         argument space.
7408
7409         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
7410
7411         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7412         (ia32_multipass_dfa_lookahead): New function.
7413
7414 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7415
7416         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
7417         (translate_options): Remove 'V'.
7418         (process_command): Similarly.
7419 doc:
7420         * invoke.texi: Remove documentation of 'V'.
7421
7422 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
7423
7424         * config/s390/linux.h: Revert 2002-04-22 changes.
7425
7426 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
7427
7428         * config/fr30/fr30.md: Only allow splits of immediate loads
7429         if the destination is a register.
7430
7431 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7432
7433         * Makefile.in (c-common.o, cppinit.o): Update.
7434         * c-common.c: Include except.h.
7435         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
7436         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
7437         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
7438         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
7439         CPP_PREDEFINES): Handle here.
7440 config:
7441         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
7442         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
7443         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
7444         TARGET_OS_CPP_BUILTINS.
7445         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
7446         (CPP_SPEC, EXTRA_SPECS): Update.
7447         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
7448         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
7449         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
7450         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
7451         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
7452 doc:
7453         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
7454         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
7455
7456 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
7457
7458         * emit-rtl.c (global_rtl): Update comment.
7459         (const_double_htab, const_double_htab_hash,
7460         const_double_htab_hash, lookup_const_double): New.
7461         (const_int_htab_hash, const_int_htab_eq): Remove const
7462         qualifiers, which cause tons of warnings with RTL checking on.
7463         (gen_rtx_CONST_DOUBLE): Deleted.
7464         (const_double_from_real_value): New function - bears some
7465         resemblance to the former immed_real_const_1.
7466         (immed_double_const): Moved here from varasm.c and
7467         simplified.
7468         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
7469         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
7470         (gen_rtx): Use immed_double_const.
7471         (init_emit_once): Initialize the const_double_htab.  Use
7472         REAL_VALUE_FROM_INT where possible.  Can now use
7473         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
7474         * varasm.c (struct varasm_status): Remove x_const_double_chain.
7475         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
7476         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
7477         (init_varasm_status, mark_varasm_status): Don't touch
7478         x_const_double_chain.
7479
7480         * output.h: Delete prototype for clear_const_double_mem.
7481         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
7482         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
7483         const_double_from_real_value, not immed_real_const_1, and use
7484         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
7485         CONST_DOUBLE_ATOF.
7486         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
7487         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
7488         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
7489         (gen_rtx_REG): Second arg is unsigned.
7490
7491         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
7492         (excluded_rtx): New, return true for CONST_DOUBLE.
7493         (genmacro): Write nothing for excluded codes.
7494         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
7495         * expr.c (expand_expr): Likewise.
7496         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
7497         CONST_DOUBLE_CHAIN.
7498         * toplev.c (rest_of_compilation): Don't call
7499         clear_const_double_mem.
7500
7501         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
7502         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
7503         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
7504         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
7505         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
7506         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
7507         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
7508         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
7509
7510 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7511
7512         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
7513
7514 2002-05-12  Tom Tromey  <tromey@redhat.com>
7515
7516         * tree.h (copy_node): Don't mention TREE_PERMANENT.
7517
7518 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
7519
7520         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
7521         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
7522         * gensupport.h: Prototype new routines.
7523         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
7524         use of printf.
7525         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
7526         (next_comma_elt): Use scan_comma_elt.
7527
7528         * config/i386/i386.md: Use new attribute notation to break up
7529         long lines in define_attr forms.
7530
7531 2002-05-12  Richard Henderson  <rth@redhat.com>
7532
7533         * expr.c (compress_float_constant): New.
7534         (emit_move_insn): Use it.
7535         (float_extend_from_mem): New.
7536         (init_expr_once): Initialize it.
7537         * real.c (exact_real_truncate): New.
7538
7539         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
7540         dropped into memory; penalize for size.
7541         (RTX_COSTS): FLOAT_EXTEND is free.
7542         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
7543         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
7544
7545 2002-05-12  Richard Henderson  <rth@redhat.com>
7546
7547         * profile.h (profile_info): Add missing extern to declaration.
7548         * profile.c (profile_info): Define it.
7549
7550 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7551
7552         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
7553         used for DImode and TImode.
7554
7555 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
7556
7557         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
7558         fake a newline.
7559
7560 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
7561
7562         * config/rs6000/rs6000.c (rs6000_default_long_calls,
7563         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
7564         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
7565         (rs6000_override_options): Handle -m(no-)longcall.
7566         (init_cumulative_args, output_mi_thunk): Check for both
7567         longcall and shortcall attributes on the function.
7568         (rs6000_attribute_table): Add "shortcall".
7569         (rs6000_handle_longcall_attribute): Update comment.
7570         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
7571         altivec_expand_ternop_builtin): Add default clauses to switches
7572         to silence warnings.
7573
7574         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
7575         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
7576         (TARGET_OPTIONS): Add longcall and no-longcall.
7577
7578         * config/rs6000/rs6000.md (call_nonlocal_sysv,
7579         call_value_nonlocal_sysv): Split by alternatives.  One pair
7580         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
7581         the call cookie.  The other pair accepts only LR/CTR and has
7582         no restriction.
7583
7584         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
7585         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
7586         tmake_file.
7587         * config/rs6000/rs6000-c.c: New file.
7588         * config/rs6000/t-rs6000-c-rule: New file.
7589         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
7590         Prototype rs6000_pragma_longcall.
7591
7592         * doc/extend.texi: Document shortcall attribute.
7593         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
7594
7595 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7596
7597         * reorg.c (dbr_schedule): Remove unnecessary test.
7598
7599 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
7600
7601         * i386.md (testsi to testqi spliters): New.
7602
7603         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
7604
7605         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
7606
7607         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
7608
7609         * basic-block.h: New flag EDGE_CAN_FALLTHRU
7610         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
7611         that can be made fallthru.
7612
7613         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
7614
7615         * cfglayout.c (cleanup_unconditional_jumps): New static function.
7616         (cfg_layout_initialize): Use it.
7617
7618 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7619
7620         * config/avr/avr.c (avr_mcu_types): Update supported devices.
7621         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7622         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7623
7624 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
7625
7626         * dbxout.c: Fix formatting.
7627         * dependence.c: Likewise.
7628         * df.c: Likewise.
7629         * diagnostic.c: Likewise.
7630         * doloop.c: Likewise.
7631         * dominance.c: Likewise.
7632         * doschk.c: Likewise.
7633         * dwarf2asm.c: Likewise.
7634         * dwarf2out.c: Likewise.
7635         * dwarfout.c: Likewise.
7636
7637 2002-05-10  Richard Henderson  <rth@redhat.com>
7638
7639         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
7640         Convert integers constants as needed.  Replace "nwords" field with
7641         "sizeof_bb".
7642         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
7643         * function.h: Fix typo in comment.
7644         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
7645
7646 2002-05-10  Roger Sayle  <roger@eyesopen.com>
7647
7648         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
7649         into the equivalent (signed char)c > 0.
7650
7651 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
7652
7653         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
7654         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
7655         (struct prefetch_info): Fix spelling of member bytes_accessed.
7656         (emit_prefetch_instructions): Make dump messages more regular;
7657         restructure code to add more dump messages; use new macros for
7658         heuristics. (There are no code generation changes in any of this).
7659
7660 2002-05-10  David S. Miller  <davem@redhat.com>
7661
7662         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
7663         (struct rtx_def): Update unchanging flag comment.
7664         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
7665         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
7666         to be handled to INSN too.
7667         (dbr_schedule): Likewise.
7668         * resource.c (next_insn_no_annul): Likewise.
7669
7670         * cse.c (rtx_cost): Remove multiplication by power of 2 special
7671         casing.
7672
7673 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7674
7675         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
7676         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
7677         (possibly) work around broken /bin/sh.
7678
7679 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7680
7681         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
7682         . as N64/N32 libgcc_s.so subdirs.
7683
7684 2002-05-10  David S. Miller  <davem@redhat.com>
7685
7686         * config/sparc/sparc.md: Use define_constants for unspec numbers.
7687
7688         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
7689         more accurately.
7690         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
7691         comment.
7692         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
7693         * doc/rtl.texi: Document these macros more accurately.
7694         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
7695         JUMP_INSNs and CALL_INSNs.
7696         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
7697         or INSN_FROM_TARGET_P if the code is appropriate.
7698
7699 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7700
7701         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
7702         before using SYMBOL_REF_FLAG (addr).
7703
7704         * config/avr/avr-protos.h (avr_io_address_p): Declare.
7705         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
7706         Make non-static.  Update all callers.
7707         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
7708         New insns to clear/set/test a single bit in I/O address space.
7709
7710 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7711
7712         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
7713
7714 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
7715
7716         * Makefile.in: Update.
7717         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
7718         builtin_define_std): New.
7719         (c_common_init): Register CPP builtins callback.
7720         * c-common.h (flag_iso, flag_undef): New.
7721         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
7722         * c-lex.c: Don't include target.h.
7723         (cb_register_builtins): Move to c-common.c.
7724         (init_c_lex): Don't register hook here.
7725         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
7726         (cpp_define, cpp_assert): Remove.
7727         * gcc.c (cc1_options): Pass -undef to front end.
7728         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
7729         (TARGET_INITIALIZER): Update.
7730         * target.h (struct cpp_reader): Don't predeclare.
7731         (struct gcc_target): Remove cpp builtin hook.
7732         * tree.c (default_register_cpp_builtins): Remove.
7733 doc:
7734         * tm.texi: Update.
7735
7736 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
7737
7738         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
7739
7740 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7741
7742         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
7743         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
7744
7745 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
7746
7747         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
7748         * config/sparc/libgcc-sparc-glibc.ver: New file.
7749         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
7750         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
7751
7752 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
7753
7754         PR target/6429
7755         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
7756         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
7757         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
7758         base multilibs.
7759         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
7760         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
7761         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
7762         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
7763
7764 2002-05-09  Richard Henderson  <rth@redhat.com>
7765
7766         * config/ia64/ia64.md: Use define_constants for unspec numbers.
7767         * config/ia64/ia64.c: Likewise.
7768
7769 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
7770
7771         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
7772         (save_restore_insns): Likewise.
7773         (mips_expand_prologue, mips_expand_epilogue): Update callers.
7774         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
7775
7776 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
7777
7778         * athlon.md, k6.md, pentium.md, ppro.md): New files.
7779         * i386.md: Move scheduling information into new files.
7780
7781         * i386.md (type attribute): Add "rotate" for rotate insns.
7782         (rotate insns): Set type to "rotate".
7783         (various attributes and function units): Treat rotate like shift.
7784         (pent_pair attribute): Only rotates by one bit position are
7785         pairable.
7786         (sbb insns): Explicitly set pent_pair attribute on a couple
7787         that were missing it.
7788
7789 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
7790
7791         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
7792         make sure that buffer starts on odd word address.
7793         (sh_va_arg): Skip odd fp registers when reading a double precision
7794         value.
7795
7796 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
7797
7798         * tree.h (preserve_data, object_permanent_p, type_precision):
7799         Remove.
7800
7801 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
7802
7803         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
7804         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
7805 doc:
7806         * cpp.texi: Update for removal of obsolete features.
7807
7808 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
7809                           Jeffrey A Law  (law@redhat.com)
7810
7811         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
7812         the DFA interface for Pentium processors.
7813         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
7814         (attr_pent_pair, ix86_pent_find_pair): Remove.
7815         (ix86_sched_reorder_pentium): Remove.
7816         (ix86_sched_reorder): Remove reordering for Pentium.
7817         * i386.md (Pentium scheduling): Rewrite using DFA description.
7818
7819 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
7820
7821         * cfganal.c (can_fallthru): Fix fast path.
7822         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
7823         with edges to the next block.
7824
7825 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
7826                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
7827
7828         * final.c (end_final): Use C trees to output data structures for profiling.
7829
7830         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
7831         (profile.o): New dependency profile.h
7832         (final.o): New dependency profile.h
7833         * profile.h: New file. New global structure profile_info.
7834         * final.h (count_edges_instrumented_now): Declare.
7835         (current_function_cfg_checksum): Declare.
7836         (function_list): New structure.
7837         (functions_head, functions_tail): New static variables.
7838         (end_final): Emits more data, removed some -ax stuff.
7839         (final): Stores function names and chcksums.
7840         * gcov-io.h (__write_gcov_string): New function.
7841         (__read_gcov_string): New function.
7842         * gcov.c (read_profile): New function.
7843         (create_program_flow_graph): Uses read_profile instead of reading
7844         da_file.
7845         (read_files): Removed da_file checking, it's done by read_profile now.
7846         * libgcc2.c (bb_function_info): New structure.
7847         (bb): New field in structure, removed some -ax stuff.
7848         (__bb_exit_func): Changed structure of da_file.
7849         * profile.c (count_edges_instrumented_now): New global variable.
7850         (current_function_cfg_checksum): New global variable.
7851         (max_counter_in_program): New global variable.
7852         (get_exec_counts): New function.
7853         (compute_checksum): New function.
7854         (instrument_edges): Sets count_edges_instrumented_now.
7855         (compute_branch_probabilities): Uses get_exec_counts instead of
7856         reading da_file.
7857         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
7858         (init_branch_prob): Removed da_file checking, done in get_exec_counts
7859         now.
7860         (end_branch_prob): Removed da_file checking, done in get_exec_counts
7861         now.
7862         * gcov.texi: Updated information about gcov file format.
7863
7864 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
7865
7866         * sbitmap.c: Fix formatting.
7867         * scan.c: Likewise.
7868         * scan-decls.c: Likewise.
7869         * sched-deps.c: Likewise.
7870         * sched-ebb.c: Likewise.
7871         * sched-rgn.c: Likewise.
7872         * sched-vis.c: Likewise.
7873         * sdbout.c: Likewise.
7874         * sibcall.c: Likewise.
7875         * simplify-rtx.c: Likewise.
7876         * ssa.c: Likewise.
7877         * ssa-ccp.c: Likewise.
7878         * ssa-dce.c: Likewise.
7879         * stmt.c: Likewise.
7880         * stor-layout.c: Likewise.
7881         * stringpool.c: Likewise.
7882
7883 2002-05-09  David S. Miller  <davem@redhat.com>
7884
7885         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
7886
7887 2002-05-07  David S. Miller  <davem@redhat.com>
7888
7889         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
7890         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
7891         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
7892         library implementation clobbers the output before the inputs
7893         are fully consumed, use stack temporary for the output.
7894
7895 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
7896
7897         * config/netbsd.h (CPP_SPEC): Remove.
7898         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
7899         * config/i386/netbsd.h (CPP_SPEC): Define.
7900         * config/ns32k/netbsd.h (CPP_SPEC): Define.
7901         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
7902         * config/sparc/netbsd.h (CPP_SPEC): Define.
7903         * config/vax/netbsd.h (CPP_SPEC): Define.
7904
7905 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
7906
7907         * read-rtl.c: Fix formatting.
7908         * real.c: Likewise.
7909         * recog.c: Likewise.
7910         * regclass.c: Likewise.
7911         * regmove.c: Likewise.
7912         * reg-stack.c: Likewise.
7913         * reload1.c: Likewise.
7914         * reload.c: Likewise.
7915         * resource.c: Likewise.
7916         * rtlanal.c: Likewise.
7917         * rtl.c: Likewise.
7918         * rtl-error.c: Likewise.
7919
7920 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7921
7922         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
7923         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
7924
7925 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
7926
7927         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
7928         use __SSE2__ macro instead.
7929         * config/i386/xmmintrin.h: Likewise.
7930
7931 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
7932
7933         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
7934         and use it in all invocations of these macros.  Clean up comments.
7935         * rtl.c (rtl_check_failed_flag): Add an argument for the name
7936         of the flag access macro whose check failed.
7937         * doc/rtl.texi (Flags): Document additional flag uses.
7938
7939 2002-05-08  Robert Spier <rspier@pobox.com>
7940             Neil Booth  <neil@daikokuya.demon.co.uk>
7941
7942         PR preprocessor/6521
7943         * cppfiles.c (handle_missing_header): Don't do anything
7944         different for <> includes.
7945 doc:
7946         * cppopts.texi: Update documentation for -MG.
7947
7948 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
7949
7950         * cpplex.c (cpp_interpret_charconst): Truncate as well as
7951         sign-extend.
7952 doc:
7953         * cpp.texi: Clarify multichar charconst valuation.
7954
7955 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
7956
7957         * doc/invoke.texi: Document -mwindiss option.
7958
7959 2002-05-08  Jason Merrill  <jason@redhat.com>
7960
7961         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
7962
7963         * dwarf2out.c (gen_type_die): Abort on broken recursion.
7964
7965         PR c++/6381
7966         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
7967         REAL_CST.
7968
7969 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
7970
7971         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
7972         little-endian multilibs to override arm/thumb multilibs.
7973         Do not build hardware floating point multilibs, nor apcs-26
7974         multilibs for the Thumb.
7975
7976 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
7977
7978         PR c/6569.
7979         * varasm.c (mark_weak): New function.
7980         (merge_weak): Use it.  Do not call declare_weak.
7981         (declare_weak): Use merge_weak.
7982
7983 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
7984
7985         * cse.c (dead_libcall_p): Update counts.
7986         (delete_trivially_dead_insns): Update call of dead_libcall_p.
7987
7988 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
7989
7990         * cfglayout.c (function_tail_eff_head): Rename to ...
7991         (function_footer): ... this one.
7992         (unlink_insn_chain): New functions.
7993         (label_for_bb): Only call block_label and emit debug message.
7994         (record_effective_endpoints): Actually unlink the headers and footers.
7995         (fixup_reorder_cahin): Re-insert the unlinked sequences.
7996         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
7997         * cfglayout.h (struct reorder_block_def): New fields footer/header;
7998         remove eff_head/eff_end.
7999         * rtl.h (set_first_insn): Declare.
8000         * emit-rtl.c (set_first_insn): New function.
8001
8002         * cfglayout.c (fixup_reorder_chain): Dump duplicated
8003         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8004         cfg_layout_duplicate_bb): New global function.
8005         (duplicate_insn_chain): New static function.
8006         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8007         cfg_layout_duplicate_bb): Declare.
8008         (struct reorder_block_def): Add "original" field.
8009         * emit-rtl.c (emit_copy_of_insn_after): New function.
8010         * rtl.h (emit_copy_of_insn_after): Declare.
8011
8012         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
8013         (fixup_reorder_chain): properly handle edges to exit block.
8014
8015 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8016                                Jan Hubicka  <jh@suse.cz>
8017
8018         * basic-block.h (note_prediction_to_br_prob): declare.
8019         * c-semantics.c: Inlucde predit.h
8020         (expand_stmt): predict GOTO_STMT as not taken.
8021         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
8022         (cleanup_cfg): Do not free tail_recursion_list.
8023         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
8024         (flow_delete_block): Kill predictions past end of basic block.
8025         * output.h (delete_unreachable_blocks): Declare.
8026         * predict.c (predicted_by_p, process_note_predictions,
8027         process_note_prediction, last_block_p): New function.
8028         (estimate_probability): Bypass loop on PRED_CONTINUE;
8029         do not handle noreturn heuristics; kill PRED_RETURN; add
8030         PRED_EARLY_RETURN.
8031         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
8032         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
8033         * predict.h (IS_TAKEN): New constant.
8034         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
8035         * rtl.c (NOTE_INSN_PREDICTION): New.
8036         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
8037         New macro.
8038         (insn_note): add NOTE_INSN_PREDICTION.
8039         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
8040         CFG; free tail_recursion_label_list.
8041         * stmt.c: Include predict.h;
8042         (return_prediction): New.
8043         (expand_value_return): Use it.
8044         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
8045
8046 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
8047
8048         * config/mips/mips.md: Name the unspecs with define_constant.
8049         (*HILO_delay): Rename to 'hilo_delay' (no star).
8050         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
8051         (reload_outdi, reload_outsi): Likewise.
8052
8053 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
8054
8055         * toplev.c: Fix formatting.
8056
8057 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
8058
8059         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
8060         * configure.in (ac_rtlflag_checking): New.
8061         * doc/install.texi (--enable-checking): Document RTL flag checking.
8062
8063 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
8064
8065         * c-common.c (c_common_init): Set options->unsigned_wchar.
8066         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
8067         group target dependencies.
8068         (init_builtins, cpp_handle_option): Update.
8069         * cpplex.c (cpp_interpret_charconst): Update.
8070         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
8071         signed_char to unsigned_char, group target dependencies.
8072         * defaults.h (WCHAR_UNSIGNED): Remove.
8073         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
8074 config:
8075         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
8076         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
8077         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
8078         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
8079         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
8080 doc:
8081         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
8082
8083 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
8084
8085         * fixinc/inclhack.def (windiss_math1): New fix.
8086         (windiss_math2): Likewise.
8087         (windiss_valist): Likewise.
8088         * fixinc/fixincl.x: Regenerated.
8089
8090 2002-05-07  Andreas Jaeger  <aj@suse.de>
8091
8092         * genautomata.c (output_internal_min_issue_delay_func): Add
8093         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
8094         (output_internal_trans_func): Likewise.
8095
8096 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
8097
8098         * pa.c (hppa_profile_hook): Use force_reg to get the address
8099         of the profile hook into an appropriate pseudo register.
8100
8101 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
8102
8103         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
8104         (LINK_START_SPEC): Handle it.
8105         (LINK_OS_SPEC): Likewise.
8106         (CPP_SPEC): Likewise.
8107         (STARTFILE_SPEC): Likewise.
8108         (LIB_SPEC): Likewise.
8109         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
8110         all platforms.
8111         (CRTSAVRES_DEFAULT_SPEC): New macro.
8112         (LIB_WINDISS_SPEC): New macro.
8113         (CPP_OS_WINDISS_SPEC): Likewise.
8114         (STARTFILE_WINDISS_SPEC): Likewise.
8115         (ENDFILE_WINDISS_SPEC): Likewise.
8116         (LINK_START_WINDISS_SPEC): Likewise.
8117         (LINK_OS_WINDISS_SPEC): Likewise.
8118         * config/rs6000/windiss.h: New file.
8119
8120 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
8121
8122         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
8123
8124 2002-05-06  David S. Miller  <davem@redhat.com>
8125
8126         * config/sparc/sparc.md (shift insns): Do not mask off
8127         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
8128         take care of it.
8129
8130 2002-05-06  Richard Henderson  <rth@redhat.com>
8131
8132         PR c++/6212
8133         * expr.c (highest_pow2_factor_for_type): New.
8134         (expand_assignment): Use it.
8135
8136 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
8137
8138         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
8139         unspec_volatile.
8140         ("altivec_mfvscr"): Same.
8141
8142 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
8143
8144         * rtl.h (struct rtx_def): Update comments.
8145         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
8146         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
8147         RTL_FLAG_CHECK macros with list of expected RTL codes.
8148         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
8149         (rtl_check_failed_flag): New.
8150         * reload1.c (reload): Use REG macro before changing rtx to MEM.
8151         (reload_cse_noop_set_p): Check rtx code before using access macro.
8152         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
8153         before using access macro.
8154
8155 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
8156
8157         * doc/rtl.texi (Flags): Update to reflect current usage.
8158
8159 2002-05-06  Roger Sayle  <roger@eyesopen.com>
8160
8161         PR opt/3995
8162         * fold-const.c (sign_bit_p): New function.
8163         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
8164         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
8165         Reapply fold when converting (A & C) == C into (A & C) != 0.
8166         (fold_binary_op_with_conditional_arg): Fix typo in comment.
8167
8168 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
8169
8170         * c-common.c (warn_multichar): New.
8171         (c_common_init): Set CPP's warn_multichar.
8172         * c-common.h (warn_multichar): New.
8173         * c-decl.c (warn_multichar): Remove.
8174         * c-lex.c (lex_charconst): Update.
8175         * c-tree.h (warn_multichar): Remove.
8176         * cppexp.c (eval_token): Sign-extend charconst value.
8177         * cppinit.c (cpp_create_reader): Set warn_multichar.
8178         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
8179         each character.  Update prototype.  Sign-extend the result.
8180         * cpplib.h: Fix conditions.
8181         (struct cpp_options): Add new warning flag.
8182         (cpp_interpret_charconst): Update prototype.
8183 doc:
8184         * cpp.texi: Update documentation.
8185
8186 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
8187
8188         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
8189         Fix typo in usage of allof instead of unit.
8190
8191 2002-05-06  Richard Henderson  <rth@redhat.com>
8192
8193         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
8194         and any jump or call for IN.
8195
8196 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
8197
8198         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
8199         -msse2.
8200         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
8201
8202 2002-05-06  Roger Sayle  <roger@eyesopen.com>
8203
8204         * fold-const.c (lshift-double): Cast the high word to an unsigned
8205         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
8206         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
8207         avoid compiler warning.  (fold): Remove redundant code from
8208         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
8209
8210 2002-05-06  Jeff Law  <law@redhat.com>
8211
8212         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
8213         * pa.c (pa_adjust_cost): Remove all true dependency cost
8214         adjustments.  Also remove support for non-DFA scheduling.
8215         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
8216         to adjust true dependency costs.  Update various comments.
8217         (7100lc, 7200, 7300 scheduling): Simplify by combining the
8218         FP ALU & MPY units into a single unit.
8219
8220 2002-05-06  Catherine Moore  <clm@redhat.com>
8221
8222         * config/v850/v850.c (compute_register_save_size): Make sure
8223         to count all of the registers that will be saved.
8224
8225 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
8226
8227         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
8228
8229 2002-05-06  David S. Miller  <davem@redhat.com>
8230
8231         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
8232         allow result to overlap input operands in memory.
8233
8234 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
8235
8236 doc:
8237         * cpp.texi: Update multichar charconst docs.
8238
8239 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
8240
8241         * cpplex.c (cpp_interpret_charconst): Sign-extend each
8242         character.  Don't ignore excess characters.  Treat
8243         multicharacter character constants as signed.
8244         (cpp_parse_escape): Clarify diagnostic.
8245
8246 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
8247
8248         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
8249         use add instead of shift.
8250         (ashldi3_sp64): Likewise.
8251         (ashlsi3_const1, ashldi3_const1): Remove.
8252         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
8253         * config/sparc/sparc.c (const1_operand): New.
8254
8255 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
8256
8257         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
8258
8259 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
8260
8261         PR target/6561
8262         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
8263
8264 2002-05-05  Richard Henderson  <rth@redhat.com>
8265
8266         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
8267         memory latency adjustments.
8268         (alpha_variable_issue): Remove.
8269         (alpha_use_dfa_pipeline_interface): New.
8270         (alpha_multipass_dfa_lookahead): New.
8271         * config/alpha/alpha.md: Remove define_function_unit scheduling;
8272         include new dfa scheduling.
8273         (attr type): Add none.
8274         (blockage): Use it.
8275         * config/alpha/ev4.md: New.
8276         * config/alpha/ev5.md: New.
8277         * config/alpha/ev6.md: New.
8278
8279 2002-05-05  David S. Miller  <davem@redhat.com>
8280
8281         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
8282
8283 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
8284
8285         * cse.c: Fix formatting.
8286         * emit-rtl.c: Likewise.
8287
8288 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
8289
8290         * genautomata.c (initiate_states): Add additional guard to
8291         initialize `units_array'.
8292
8293 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
8294
8295         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
8296         process_unit_to_form_the_same_automaton_unit_lists,
8297         form_the_same_automaton_unit_lists
8298         check_unit_distributions_to_automata): New prototypes and
8299         functions.
8300         (check_automata): Rename it into `check_automata_insn_issues'.
8301         (unit_decl): New fields `the_same_automaton_unit' and
8302         `the_same_automaton_message_reported_p'.
8303         (unit_decl_t): New typedef.
8304         (the_same_automaton_lists): New gloval variable.
8305         (unit_regexp, unit_set_el, units_array, units_cmp,
8306         output_get_cpu_unit_code_func): Use the typedef.
8307         (evaluate_max_reserv_cycles): Increment
8308         `description->max_insn_reserv_cycles'.
8309         (initiate_states): Don't increment `max_cycles_num'.
8310         (transform_insn_regexps): Move code around transformation of
8311         regexps from `generate'.
8312         (generate): Remove call of `transform_insn_regexps'.
8313         (expand_automata): Call `transform_insn_regexps' and
8314         `check_unit_distributions_to_automata'.  Check errors before
8315         `generate'.
8316
8317         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
8318         automaton `ultrasparc3_1'.
8319
8320 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
8321
8322         * c-common.c (c_common_init): Set up CPP arithmetic.
8323         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
8324         something reasonable for the host.
8325         (sanity_checks): Add checks.
8326         (cpp_read_main_file): Call sanity_checks() from here...
8327         (cpp_post_options): ... not here.
8328         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
8329         * cpplib.h (struct cpp_options): New member int_precision.
8330
8331 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8332
8333         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
8334
8335 2002-05-04  David S. Miller  <davem@redhat.com>
8336
8337         * config/sparc/linux.h, config/sparc/linux64.h
8338         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
8339
8340         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
8341         more RTX codes.
8342         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
8343
8344         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
8345         of SETs.
8346
8347 2002-05-05  Tim Josling  <tej@melbpc.org.au>
8348
8349         * treelang; New directory for new sample language treelang.
8350
8351 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8352
8353         * Makefile.in (c-lex.o): Update.
8354         * c-lex.c: Include target.h.
8355         (cb_register_builtins): New.
8356         (init_c_lex): Set builtins callback.
8357         * c-lex.h (cpp_define, cpp_assert): New prototypes.
8358         * cppinit.c (init_builtins): Use callback, including for
8359         GXX_WEAK.
8360         * cpplib.h (struct cpp_callbacks): New member.
8361         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
8362         (TARGET_INITIALIZER): Update.
8363         * target.h (struct gcc_target): New hook.
8364         * tree.c (default_register_cpp_builtins): New.
8365         * tree.h (default_register_cpp_builtins): New.
8366 doc:
8367         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
8368
8369 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8370
8371         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
8372         (cpp_post_options): Move sanity checks to...
8373         (sanity_checks): New.
8374         * cpplex.c (maybe_read_ucs): Fix prototype.
8375         (parse_string, cpp_parse_escape): Cast for %c format specifier.
8376         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
8377         if necessary.
8378
8379 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
8380
8381         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
8382         builtins.  Use V2DI patterns instead of TI for logical operations.
8383         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
8384         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
8385         (ix86_expand_builtins): Change the pattern used for movntdq.
8386         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
8387         sse2_nandv2di3): New patterns.
8388         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
8389         on operands.
8390         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
8391         (cvtdq2pd): Correct mode on operand 1.
8392         (sse2_umulsidi3): Describe without unspec.
8393         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
8394         machine modes.
8395         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
8396         (ashlv2di3): Likewise, from sse2_ashlv2di3.
8397         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
8398         ashlv4si3, ashlv2di3): Use SImode for shift count.
8399         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
8400         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
8401         New patterns.
8402         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
8403         New typedefs.
8404         (__m128i, __m128d): New macros.
8405         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
8406         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
8407         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
8408         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
8409         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
8410         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
8411         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
8412         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
8413         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
8414         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
8415         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
8416         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
8417         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
8418         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
8419         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
8420         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
8421         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
8422         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
8423         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
8424         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
8425         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
8426         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
8427         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
8428         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
8429         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
8430         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
8431         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
8432         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
8433         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
8434         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
8435         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
8436         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
8437         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
8438         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
8439         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
8440         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
8441         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
8442         functions.
8443         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
8444         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
8445
8446 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
8447
8448         * dwarf2out.c: Fix formatting.
8449         * varasm.c: Likewise.
8450
8451 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
8452
8453         PR c/6543
8454         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
8455         clobber and use result as temporary value.
8456
8457 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
8458
8459         * expr.c (force_operand): Use expand_simple_* to handle more
8460         cases.
8461
8462 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8463
8464         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
8465         and sign-extension.
8466         (lex_charconst): Update for change in prototype of
8467         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
8468         appropriately.
8469         * cpphash.h (BITS_PER_CPPCHAR_T): New.
8470         * cppinit.c (cpp_create_reader): Initialize them for no
8471         change in semantics.
8472         (cpp_post_options): Add sanity checks.
8473         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
8474         and truncation issues.  Calculate in type cppchar_t.
8475         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
8476         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
8477         run-time dependent precision correctly.  Return whether the
8478         result is signed or not.
8479         * cpplib.c (dequote_string): Use cppchar_t; update.
8480         * cpplib.h (cppchar_signed_t): New.
8481         struct cpp_options): New precision members.
8482         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
8483         * cppexp.c (eval_token): Update.
8484
8485 2002-05-03  David S. Miller  <davem@redhat.com>
8486
8487         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
8488         * config/sparc/sparc.c (sparc_rtx_costs): New function
8489         implementing RTX_COSTS and CONST_COSTS.
8490         * config/sparc/sparc.h (CONST_COSTS): Delete.
8491         (RTX_COSTS_CASES): Define.
8492         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
8493         the work.
8494
8495         * config/sparc/sparc.md (DFA schedulers): Split out...
8496         * config/sparc/cypress.md, config/sparc/hypersparc.md,
8497         config/sparc/sparclet.md, config/sparc/supersparc.md,
8498         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
8499
8500         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
8501         checks on it, always defined for Sparc.
8502
8503         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
8504         Tweak, and add more detailed comments.
8505
8506 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
8507
8508         * Re-apply patch accidentally reverted with
8509         DFA scheduler merge: remove all rules and variables to slurp
8510         source files out of libiberty and rebuild them with HOST_CC.
8511         ($(HOST_PREFIX_1)varray.o): New rule.
8512         (genattrtab rule): Word wrap.
8513
8514 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
8515
8516         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
8517         (CPP_SUBTARGET_SPEC): Define.
8518         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
8519         cpp_subtarget specs.
8520         (CPP_SPEC): Redefine to include %(cpp_subtarget).
8521
8522 2002-05-03  David S. Miller  <davem@redhat.com>
8523
8524         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
8525         * target.h (struct gcc_target): Delete cycle_display member.
8526
8527         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
8528         (rtx_needs_barrier): Delete reference to cycle_display unspec.
8529         (ia64_sched_reorder2): Mention need for cycle display handling
8530         once such notes exist.
8531
8532 2002-05-03  Richard Henderson  <rth@redhat.com>
8533
8534         * real.c (etoasc): Strip most trailing zeros for clarity.
8535         * sched-vis.c: Include real.h.
8536         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
8537         * Makefile.in (sched-vis.o): Add real.h.
8538
8539 2002-05-03  David S. Miller  <davem@redhat.com>
8540
8541         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
8542         no longer needed.
8543
8544 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
8545
8546         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
8547         when we get an out of range literal.
8548         (altivec_expand_ternop_builtin): Same.
8549         (altivec_expand_unop_builtin): Same.
8550         (altivec_expand_builtin): Same, for dss.
8551         (altivec_expand_builtin): Use trees instead of rtl when
8552         determining literal argument validity.
8553
8554 2002-05-03  David S. Miller  <davem@redhat.com>
8555
8556         Delete cycle display scheduling hook.
8557         * config/ia64/ia64.c (ia64_cycle_display,
8558         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
8559         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
8560         and use emit_insn_before instead of ia64_emit_insn_before.
8561         * config/ia64/ia64.md (unspec usage): Delete cycle display.
8562         (cycle_display): Delete insn pattern.
8563         * config/sparc/sparc.md (unspec usage): Delete cycle display.
8564         (cycle_display): Delete insn pattern.
8565         * config/sparc/sparc.c (sparc_cycle_display,
8566         TARGET_SCHED_CYCLE_DISPLAY): Delete.
8567         * doc/md.texi (cycle_display): Don't mention.
8568         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
8569
8570 2002-05-03  Richard Henderson  <rth@redhat.com>
8571
8572         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
8573         * recog.h: Declare them.
8574
8575         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
8576         * config/sparc/sparc.md: Use store_data_bypass_p instead.
8577         * config/sparc/sparc-protos.h: Update.
8578
8579 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
8580
8581         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
8582         -D__arch64__.  Add -D_LP64.
8583         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
8584         from sparc.h.
8585         (CPP_ARCH64_SPEC): Likewise.
8586         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
8587         (NO_BUILTIN_SIZE_TYPE): Undef.
8588
8589 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
8590
8591         * genautomata.c (min_issue_delay_pass_states): Change return type
8592         in the prototype.
8593         (min_issue_delay_pass_states): Change the algorithm.
8594         (min_issue_delay): Set up min_insn_issue_delay for the state.
8595         (output_min_issue_delay_table): Interchange the nested loops and
8596         and initiate min_insn_issue_delay for states.
8597
8598 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
8599
8600         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
8601         jump is simplejump.
8602
8603 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
8604
8605         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
8606         sequence.
8607
8608 2002-05-03  Richard Henderson  <rth@redhat.com>
8609
8610         PR opt/6534
8611         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
8612         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
8613         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
8614         code before JUMP, not EARLIEST.
8615
8616 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
8617
8618         * c-format.c (check_format_info_main): Don't check for presence of
8619         parameter for * width until after operand number has been read,
8620         and only check for it if format parameters are available.
8621         Fixes PR c/6547.
8622
8623 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
8624
8625         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
8626         (LINK_SPEC): Undef before defining.
8627
8628 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
8629
8630         PR preprocessor/6489
8631         * tradcpp.c (fixup_newlines): New.
8632         (main, finclude): Use it.
8633
8634 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
8635
8636         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
8637         * config/mips/mips.c (mips_unique_section): Strip encoding from
8638         decl name.
8639
8640 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
8641
8642         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
8643         mode.
8644
8645 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8646
8647         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
8648         (Specific): Removed buildstats references.
8649         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
8650         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
8651         Accomodate Solaris versions beyond 8.
8652         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
8653         (Specific, *-*-solaris2.8): Removed, obsolete.
8654
8655 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
8656
8657         PR target/6542
8658         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
8659         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
8660         fill leaf_reg_remap with identity.
8661         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
8662
8663 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
8664
8665         * config/h8300/crti.asm: Remove trailing spaces.
8666         * config/h8300/h8300.c: Likewise.
8667         * config/h8300/lib1funcs.asm: Likewise.
8668
8669 2002-05-02  Jason Merrill  <jason@redhat.com>
8670
8671         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
8672         * c-decl.c (c_init_decl_processing): Use it.
8673         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
8674         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
8675         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
8676
8677 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
8678
8679         * regrename.c: Fix formatting.
8680         * tree.c: Likewise.
8681
8682 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
8683
8684         * i386.md (attribute memory): Handle compares properly.
8685
8686 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
8687
8688         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
8689         to none.
8690
8691 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
8692
8693         * function.c: Fix formatting.
8694
8695 2002-05-02  Jan Hubicka  <jh@suse.cz>
8696
8697         * haifa-sched.c (schedule_insn): Print table of instructions and
8698         reservations.
8699         (sched_block): Do not print ready list at verbosity level 1.
8700         * sched-vis.c (print_insn): Make global.
8701         * sched-ebb.c (ebb_print_insn): Rename from...
8702         (print_insn): ... this one.
8703         * sched-int.h (print_insn): Declare
8704
8705 2002-05-02  Richard Henderson  <rth@redhat.com>
8706
8707         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
8708         emitted by cycle_display.
8709
8710 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
8711
8712         * doc/install.texi (*-*-freebsd*): Update to latest status.
8713
8714 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
8715
8716         PR target/6540
8717         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
8718         * config/float-sparc.h: Assume 128-bit long double if
8719         __LONG_DOUBLE_128__ is defined.
8720
8721 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
8722
8723         * genattrtab.c (write_function_unit_info): Add a dummy element
8724         when num_units == 0.
8725
8726 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8727
8728         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
8729         TYPE_MODE (double_type_node) instead of DFmode.
8730
8731 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
8732
8733         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
8734         jumps post reload.
8735         * toplev.c (rest_of_compilation): Revert Richard's patch.
8736
8737 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8738
8739         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
8740
8741 2002-05-02  Catherine Moore  <clm@redhat.com>
8742
8743         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
8744
8745 2002-05-02  Kazu Hirata  <kazu@hxi.com>
8746
8747         * combine.c: Fix comment typos.
8748         * expr.c: Likewise.
8749         * genautomata.c: Likewise.
8750         * stmt.c: Likewise.
8751         * tree.h: Likewise.
8752
8753 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
8754
8755         * doc/install.texi: State GNAT version requirements.
8756
8757 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
8758
8759         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
8760         of the frame pointer or arg pointer register which strict register
8761         checking is not enabled.
8762
8763 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
8764
8765         * gcc.dg/altivec-8.c: New.
8766
8767         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
8768         PRE_INC and PRE_DEC for altivec modes.
8769
8770 2002-05-01  Bruce Korb  <bkorb@gnu.org>
8771
8772         * fixinc/check.tpl(set-writable): make sure the function exists first
8773         * fixinc/inclhack.def(alpha_assert): fix test_text
8774         * fixinc/tests/base/assert.h: add in missing result
8775
8776 2002-05-01  Jeff Law  <law@redhat.com>
8777
8778         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
8779         'T' constraint.
8780
8781 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
8782
8783         * dbxout.c (dbxout_type): Emit size information for range types,
8784         as well, but only when using GDB extensions.
8785
8786 2002-05-01  Richard Henderson  <rth@redhat.com>
8787
8788         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
8789         target-independent gnu binutils date test.
8790
8791 2002-05-01  Richard Henderson  <rth@redhat.com>
8792
8793         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
8794         info before expunging the block.
8795
8796 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
8797
8798         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
8799         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
8800         -M -or -MM is in effect.
8801
8802 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
8803
8804         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
8805         A29k configurations.
8806         * doc/install.texi: Update to match.
8807
8808 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8809
8810         PR bootstrap/6514
8811         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
8812         for duplicates. Always loop over whole list.
8813
8814 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8815
8816         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
8817
8818 2002-05-01      Joel Sherrill <joel@OARcorp.com>
8819
8820         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
8821         support routines.
8822
8823 2002-05-01      Joel Sherrill <joel@OARcorp.com>
8824
8825         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
8826
8827 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
8828
8829         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
8830         (nabs_nopower): Same.
8831         (floatdisf2): New pattern.
8832         (absdi2): Convert to define_insn_and_split.
8833         (nabsdi2): Same.
8834         (trunctfsf2): Same.
8835         (floatditf2): Same.
8836         (floatsitf2): Same.
8837         (fix_trunctfdi2): Same.
8838         (fix_trunctfsi2): Same.
8839
8840 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
8841
8842         * doc/install.texi: Update Texinfo version requirement
8843         documentation.
8844
8845 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
8846
8847         PR target/6512, PR target/5628
8848         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
8849         when memory is not aligned.
8850         (movdf_insn_v9only_vis): Likewise.
8851         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
8852         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
8853         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
8854
8855 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
8856
8857         * gcc.dg/altivec-7.c: New.
8858
8859         * config/rs6000/altivec.h: Cleanup.
8860
8861 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
8862
8863         * doc/invoke.texi (Option Summary): Add -mvrsave=.
8864         (RS/6000 and PowerPC Options): Document -mvrsave=.
8865
8866         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
8867         (rs6000_altivec_vrsave_string): Same.
8868         (rs6000_override_options): Call rs6000_parse_vrsave_option.
8869         (rs6000_parse_vrsave_option): New.
8870         (rs6000_stack_info): Only generate vrsave instructions when
8871         TARGET_ALTIVEC_VRSAVE.
8872
8873         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
8874         (rs6000_altivec_vrsave_string): Define extern.
8875         (rs6000_altivec_vrsave): Same.
8876         (TARGET_ALTIVEC_VRSAVE): New.
8877
8878 2002-04-30  Richard Henderson  <rth@redhat.com>
8879
8880         PR opt/6516
8881         * toplev.c (rest_of_compilation): Don't run cross-jump before
8882         bb-reorder.
8883
8884 2002-04-30  Tom Rix  <trix@redhat.com>
8885
8886         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
8887         check which_alternative.
8888
8889 2002-04-30  Kazu Hirata  <kazu@hxi.com>
8890
8891         * cpplex.c: Fix comment formatting.
8892         * function.c: Likewise.
8893         * integrate.c: Likewise.
8894         * regrename.c: Likewise.
8895         * sibcall.c: Likewise.
8896         * simplify-rtx.c: Likewise.
8897         * tree-inline.c: Likewise.
8898
8899 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8900
8901         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
8902         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
8903         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
8904         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
8905         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
8906         * pa/x-ada: New file.  Define ADA_CFLAGS.
8907
8908 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
8909
8910         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
8911         from MMIX_LAST_REGISTER_FILE_REGNUM.
8912         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
8913         (struct machine_function): New member highest_saved_stack_register
8914         previously static variable in mmix.c.
8915         (MACHINE_DEPENDENT_REORG): Define.
8916         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
8917         (MMIX_OUTPUT_REGNO): New.
8918         (mmix_target_asm_function_prologue): Move calculation of last used
8919         saved-stack-register into...
8920         (mmix_machine_dependent_reorg): New function.  Update to also handle
8921         !TARGET_ABI_GNU.
8922         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
8923         register names, simplify somewhat by new variable regno.
8924         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
8925         register.
8926         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
8927         emitting register names.
8928         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
8929         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
8930         Remove fixed FIXME.
8931         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
8932         Declare.
8933
8934         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
8935
8936 2002-04-30  Richard Henderson  <rth@redhat.com>
8937
8938         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
8939         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
8940         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
8941         emit_tfmode_cvt): New.
8942         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
8943         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
8944         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
8945         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
8946         * config/sparc/sparc-protos.h: Update.
8947
8948 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
8949
8950         * install.texi (Final install): Add to the list of info to include
8951         in a report of a successful bootstrap, and add link to 3.1 list.
8952
8953 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
8954
8955         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
8956         (mode): Add vector modes
8957         (i387): Kill attribute.
8958         (unit): New attribute.
8959         (length_immediate): Grok new types.
8960         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
8961         (modrm): Use "unit".
8962         (memory): Handle MMX/SSE properly.
8963         (scheduling descriptions): Kill uses of fop1.
8964         (sse, mmx, fp patterns): Set type and mode properly.
8965
8966 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
8967
8968         * pa.c (override_options): Default to PA8000 scheduling.
8969         * doc/invoke.texi (HP-PA options): Mention newly added 7300
8970         scheduling parameter.
8971
8972         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
8973         handling of double precision multiplies.
8974
8975         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
8976         fpdiv and fpsqrt instructions.
8977         (7200 & 7300 scheduling): Fix typo in handling of
8978         store-load and store-store penalties.
8979
8980 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8981
8982         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
8983         mips.  Add two missing commas.
8984
8985 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
8986
8987         * doc/contrib.texi (Contributors): Update Paolo Carlini's
8988         and Benjamin Kosnik's entries.
8989
8990 2002-04-29  David S. Miller  <davem@redhat.com>
8991
8992         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
8993         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
8994         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
8995         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
8996
8997 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8998
8999         * combine.c (find_split_point): Use gen_int_mode.
9000
9001 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
9002
9003         Merging code from dfa-branch:
9004
9005         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
9006
9007         * genautomata.c (output_reserv_sets): Fix typo.
9008
9009         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
9010
9011         * genautomata.c (output_reserv_sets): Remove
9012         next_cycle_output_flag.
9013
9014         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
9015
9016         * sched-rgn.c (init_ready_list): Make the DFA code handle
9017         USE/CLOBBER insns in the same way as the traditional
9018         scheduler.
9019         (new_ready): Similarly..
9020
9021         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
9022
9023         * haifa-sched.c (schedule_block): Change the DFA state only after
9024         issuing insn.
9025
9026         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
9027
9028         * pa.c (hppa_use_dfa_pipeline_interface): New function.
9029         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
9030         (override_options): Add PA7300 scheduling support.
9031         (pa_adjust_cost): Update various comments.  Properly
9032         handle anti and output dependencies when using the
9033         DFA scheduler.
9034         (pa_issue_rate): Add PA7300 scheduling support.
9035         (pa_can_combine_p): Call extract_insn before calling
9036         constrain_operands (taken from mainline tree).
9037         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
9038         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
9039         descriptions using DFA descriptions.  Add PA7300
9040         scheduling support.
9041
9042         2002-03-30  David S. Miller  <davem@redhat.com>
9043
9044         Add UltraSPARC-III DFA scheduling support.
9045         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
9046         Update FP conditional move on register insn patterns to use it, as
9047         appropriate.
9048         (define_attr cpu): Add ultrasparc3.
9049         (define_attr us3load_type): New, update integer load patterns to
9050         set it, as appropriate.
9051         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
9052         (rest): Add UltraSPARC3 scheduling description.
9053         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
9054         (PROCESSOR_ULTRASPARC3): New.
9055         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
9056         ({ASM,CPP}_CPU_SPEC): Likewise.
9057         (REGISTER_MOVE_COST): Likewise.
9058         (RTX_COSTS): Likewise.
9059         * config/sparc/sparc.c (sparc_override_options,
9060         sparc_initialize_trampoline, sparc64_initialize_trampoline,
9061         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9062         sparc_issue_rate): Likewise.
9063         * config/sparc/sol2.h: Likewise.
9064         * config/sparc/sol2-sld-64.h: Likewise.
9065         * config/sparc/linux64.h: Likewise.
9066
9067         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
9068
9069         * doc/md.texi: Add comments about usage the latency time for the
9070         different dependencies and about case when two or more conditions
9071         in different define_insn_reservations returns TRUE for an insn.
9072
9073         * doc/md.texi: Add reference for automaton based pipeline
9074         description.
9075
9076         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
9077
9078         * doc/passes.texi: Add missed information about genattrtab.
9079
9080         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
9081
9082         * genautomata.c (output_automata_list_transition_code): Check
9083         automata_list on NULL.
9084
9085         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
9086
9087         * genautomata.c (output_insn_code_cases,
9088         output_automata_list_min_issue_delay_code,
9089         output_automata_list_transition_code,
9090         output_automata_list_state_alts_code): Comment the functions.
9091
9092         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
9093
9094         * genautomata.c (automata_list_el_t): New typedef.
9095         (get_free_automata_list_el,free_automata_list_el,
9096         free_automata_list, automata_list_hash, automata_list_eq_p,
9097         initiate_automata_lists, automata_list_start, automata_list_add,
9098         automata_list_finish, finish_automata_lists,
9099         output_insn_code_cases, output_automata_list_min_issue_delay_code,
9100         output_automata_list_transition_code,
9101         output_automata_list_state_alts_code, add_automaton_state,
9102         form_important_insn_automata_lists): New functions and prototypes.
9103         (insn_reserv_decl): Add members important_automata_list and
9104         processed_p.
9105         (ainsn): Add members important_p.
9106         (automata_list_el): New structure.
9107         (first_free_automata_list_el, current_automata_list,
9108         automata_list_table): New global variables.
9109         (create_ainsns): Initiate member important_p.
9110         (output_internal_min_issue_delay_func): Generate the switch and
9111         call output_insn_code_cases.
9112         (output_internal_trans_func, output_internal_state_alts_func):
9113         Ditto.
9114         (generate): Call initiate_automata_lists.
9115         (automaton_states): New global variable.
9116         (expand_automata): Call form_important_insn_automata_lists.
9117         (write_automata): Call finish_automata_lists.
9118
9119         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
9120
9121         * genautomata.c (add_excls, add_presence_absence): Check that
9122         cpu units in the sets belong the same automaton.
9123
9124         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
9125         about that cpu units in the sets belong the same automaton.
9126
9127         * doc/md.texi: Ditto.
9128
9129         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
9130                     Nitin Gupta  <niting@noida.hcltech.com>
9131
9132         * config/sh/sh.c (sh_use_dfa_interface): New function.
9133
9134         (sh_issue_rate): New Function.
9135         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
9136         TARGET_SCHED_ISSUE_RATE: define.
9137
9138         * config/sh/sh.md: Add DFA based pipeline description for SH4.
9139
9140         (define_attr insn_class): New attribute used for DFA
9141          scheduling.
9142         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
9143         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
9144          cmpeqdi_t): Likewise.
9145
9146         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
9147          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
9148          ex_group.
9149         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
9150
9151         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
9152
9153         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
9154         break.
9155
9156         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
9157
9158         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
9159         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
9160         necessary.
9161         (output_dfa_start_func): Initiate new variable insn_codes_length,
9162         (write_automata): Output definition of the new variable.
9163
9164         2001-10-02  David S. Miller  <davem@redhat.com>
9165
9166         * haifa-sched.c (advance_one_cycle): New function.
9167         (schedule_block): Use it.
9168         (queue_to_ready): Use it, and also make sure to advance the DFA
9169         state on all stall cycles, not just those where insn_queue links
9170         are found.
9171
9172         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
9173
9174         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
9175         non-zero if the highest-priority instruction could be scheduled.
9176         (choose_ready): Remove last argument from max_issue call.
9177
9178         2001-09-28  David S. Miller  <davem@redhat.com>
9179
9180         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
9181         ultrasparc and 3 for other multi-issue sparcs.
9182
9183         2001-09-27  David S. Miller  <davem@redhat.com>
9184
9185         * config/sparc/sparc.md (cycle_display): New pattern.
9186         * config/sparc/sparc.c (sparc_cycle_display): New.
9187         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
9188
9189         2001-09-25  David S. Miller  <davem@redhat.com>
9190
9191         Convert all of Sparc scheduling to DFA
9192         * config/sparc/sparc.md: Kill all define_function_unit
9193         directives and replace with DFA equivalent.
9194         * config/sparc/sparc.c (ultrasparc_adjust_cost,
9195         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
9196         ultra_fpmode_conflict_exists, ultra_find_type,
9197         ultra_build_types_avail, ultra_flush_pipeline,
9198         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
9199         ultrasparc_variable_issue, ultrasparc_sched_init,
9200         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
9201         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
9202         ultra_cur_hist, ultra_cycles_elapsed): Kill.
9203         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9204         ultrasparc_store_bypass_p): New.
9205         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
9206         Declare.
9207
9208         2001-09-24  David S. Miller  <davem@redhat.com>
9209
9210         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
9211         ready->vec[foo] not ready[foo].
9212
9213         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
9214
9215         * doc/md.texi: Correct examples for define_insn_reservations
9216         `mult' and `div'.
9217
9218         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
9219
9220         * genautomata.c (create_automata): Print message about creation of
9221         each automaton.
9222         (generate): Remove printing meease about creation of
9223         automata.
9224
9225         2001-09-05  David S. Miller  <davem@redhat.com>
9226
9227         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
9228         * config/sparc/linux64.h: Likewise.
9229
9230         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
9231
9232         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
9233         schedule_block, sched_init, sched_finish): Add missed calls of
9234         use_dfa_pipeline_interface.
9235
9236         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
9237         Ditto.
9238
9239         * sched-vis.c (get_visual_tbl_length): Ditto.
9240
9241         2001-08-27  Richard Henderson  <rth@redhat.com>
9242
9243         * genattr.c (main): Emit state_t even when not doing scheduling.
9244
9245         2001-08-27  Richard Henderson  <rth@redhat.com>
9246
9247         * genautomata.c (expand_automata): Always create a description.
9248
9249         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
9250
9251         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
9252         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
9253         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
9254         RTL constructions.
9255
9256         * genattr.c (main): New variable num_insn_reservations.  Increase
9257         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
9258         pipeline hazard recognizer interface.
9259
9260         * genattrtab.h: New file.
9261
9262         * genattrtab.c: Include genattrtab.h.
9263         (attr_printf, check_attr_test, make_internal_attr,
9264         make_numeric_value): Move protypes into genattrtab.h.  Define them
9265         as external.
9266         (num_dfa_decls): New global variable.
9267         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
9268         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
9269         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
9270         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
9271
9272         * genautomata.c: New file.
9273
9274         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
9275
9276         * sched-int.h: (curr_state): Add the external definition for
9277         automaton pipeline interface.
9278         (haifa_insn_data): Add comments for members blockage and units.
9279
9280         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9281         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9282         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9283         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9284         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9285         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9286         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
9287         macros.
9288         (TARGET_SCHED): Use the new macros.
9289
9290         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
9291         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
9292         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
9293         dfa_bubble): New members in gcc_target.sched.
9294
9295         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
9296         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
9297         (insn_queue): Redefine it as pointer to array.
9298         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
9299         INSN_QUEUE_SIZE.
9300         (max_insn_queue_index_macro_value): New variable.
9301         (curr_state, dfa_state_size, ready_try): New varaibles for
9302         automaton interface.
9303         (ready_element, ready_remove, max_issue): New function prototypes
9304         for automaton interface.
9305         (choose_ready): New function prototype.
9306         (insn_unit, blockage_range): Add comments.
9307         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
9308         FUNCTION_UNITS_SIZE == 0.
9309         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
9310         actual_hazard, potential_hazard): Add comments.
9311         (insn_cost): Use cost -1 as undefined value.  Remove
9312         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
9313         pipeline interface.
9314         (ready_element, ready_remove): New functions for automaton
9315         interface.
9316         (schedule_insn): Add new code for automaton pipeline interface.
9317         (queue_to_ready): Add new code for automaton pipeline interface.
9318         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
9319         (debug_ready_list): Print newline when the queue is empty.
9320         (max_issue): New function for automaton pipeline interface.
9321         (choose_ready): New function.
9322         (schedule_block): Add new code for automaton pipeline interface.
9323         Print ready list before scheduling each insn.
9324         (sched_init): Add new code for automaton pipeline interface.
9325         Initiate insn cost by -1.
9326         (sched_finish): Free the current automaton state and finalize
9327         automaton pipeline interface.
9328
9329         * sched-rgn.c: Include target.h.
9330         (init_ready_list, new_ready, debug_dependencies): Add new code for
9331         automaton pipeline interface.
9332
9333         * sched-vis.c: Include target.h.
9334         (get_visual_tbl_length): Add code for automaton interface.
9335         (target_units, print_block_visualization):  Add comments.
9336
9337         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
9338         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
9339         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
9340         (getruntime.o, genautomata.o): New entries.
9341         (genattrtab.o): Add new dependency file genattrtab.h.
9342         (genattrtab): Add new dependencies.  Link it with `libm.a'.
9343         (getruntime.o, hashtab.o): New entries for canadian cross.
9344
9345         * doc/md.texi: Description of automaton based model.
9346
9347         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
9348         Add comments.
9349         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9350         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9351         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9352         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9353         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9354         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9355         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
9356         hook descriptions.
9357         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
9358         MAX_DFA_ISSUE_RATE): New macro descriptions.
9359
9360         * doc/contrib.texi: Add dfa based scheduler contribution.
9361
9362         * doc/gcc.texi: Add more information about genattrtab.
9363
9364 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9365
9366         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
9367         adjust_address_nv call.
9368
9369 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
9370
9371         * doc/install.texi (Testing): Provide additional information, and
9372         a stronger encouragement, for running the testsuites.
9373
9374 2002-04-29  DJ Delorie  <dj@redhat.com>
9375
9376         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
9377         given in upper case.
9378
9379 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9380
9381         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
9382         Solaris 2 <widec.h> if missing.
9383         * fixinc/fixincl.x: Regenerate.
9384         * fixinc/tests/base/widec.h: New file.
9385
9386 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
9387
9388         * toplev.c (f_options): Add "profile" switch so that
9389         -fno-profile can be used to disable -p.
9390
9391 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
9392
9393         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
9394         UV2DImode.
9395         * tree.c (build_common_tree_nodes_2): Likewise.
9396         * tree.h (enum tree_index): Likewise.
9397         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
9398
9399         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
9400         entries.
9401         (init_mmx_sse_builtins): Initialize SSE2 builtins.
9402         (ix86_expand_builtin): Add support for SSE2 builtins.
9403         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
9404         (VALID_SSE_REG_MODE): Use it.
9405         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
9406         (enum ix86_builtins): Add SSE2 builtins.
9407         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
9408         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
9409         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
9410         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
9411         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
9412         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
9413         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
9414         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
9415         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
9416         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
9417         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
9418         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
9419         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
9420         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
9421         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
9422         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
9423         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
9424         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
9425         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
9426         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
9427         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
9428         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
9429         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
9430         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
9431         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
9432         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
9433         lfence_insn): New patterns.
9434         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
9435         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
9436
9437 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
9438
9439         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
9440
9441 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9442
9443         * doc/contrib.texi (Contributors): Add Paolo Carlini and
9444         Janis Johnson.
9445         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
9446         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
9447         and CPU instead of cpu.
9448
9449 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
9450
9451         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
9452         variables.
9453         (lang_independent_options): Add -fif-conversion, -fif-conversion2
9454         (rest_of_compilation): Do if conversion only when asked for.
9455         (parse_options_and_default_flags): Set new variables to 1 for -O1
9456         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
9457
9458 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
9459
9460         * i386.c (dbx64_register_map): Fix typo.
9461
9462 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
9463
9464         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
9465         real_one_half, real_bb_freq_max): New static variables.
9466         (debug_profile_bbauxs): Kill.
9467         (process_note_predictions): Kill unused variable.
9468         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
9469         volatile double.
9470         (propagate_freq): Use REAL_ARITHMETICS.
9471         (estimate_bb_frequencies): Likevise; init new static variables.
9472         * Makefile.in (predict.o): Add dependency on real.h
9473
9474 2002-04-28  David S. Miller  <davem@redhat.com>
9475
9476         PR target/6500
9477         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
9478         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
9479         several {reads,writes} instead.
9480         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
9481         Define.
9482
9483 2002-04-27  David S. Miller  <davem@redhat.com>
9484
9485         PR target/6494
9486         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
9487         of the stack bias.
9488
9489         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
9490         including signal.h and sys/ucontext.h, not needed.
9491
9492 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
9493
9494         * varasm.c (output_constant_def): Correct test for not calling
9495         ENCODE_SECTION_INFO for INTEGER_CST.
9496
9497 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9498
9499         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
9500         keep most cases as function eval_token.
9501         (eval_token): New function.
9502         (_cpp_parse_expr): Read token here for improved diagnostics.
9503         Don't use op_as_text.  Detect bad ':' here.
9504         (reduce): Don't detect bad ':' here.
9505         (op_as_text): Remove.
9506         * cpphash.h (_cpp_test_assertion): Change prototype.
9507         * cpplib.c (_cpp_test_assertion): Change prototype.
9508
9509 2002-04-28  Richard Henderson  <rth@redhat.com>
9510
9511         PR c/5154
9512         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
9513         (ggc_mark_rtx_children): New.
9514
9515 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
9516
9517         PR target/6496
9518         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
9519         after call peepholes for UltraSPARC.
9520         (call + jump 64-bit peepholes): Remove.
9521
9522 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9523
9524         PR c/6497
9525         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
9526         result as temporary value.
9527
9528 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
9529
9530         PR c++/6396
9531         * toplev.c (rest_of_compilation): Only run regrename and copy
9532         propagation if optimizing.
9533
9534 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
9535
9536         PR optimization/6475
9537         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
9538         register of REGNO_DECL (i).
9539         * Makefile.in (reload1.o): Add $(TREE_H).
9540
9541 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
9542
9543         * cppexp.c (lex): Update to use state.skip_eval.
9544         (struct op): Remove prio and flags members.
9545         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
9546         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
9547         (LEFT_ASSOC): New macro.
9548         (optab): New table of operator priorities and flags.
9549         (SHIFT): Update.
9550         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
9551         malloc-ed parser stack.
9552         (reduce): New; reduce the operator stack.
9553         (_cpp_expand_op_stack): Expand the operator stack as necessary.
9554         * cpphash.h (struct op): Predeclare.
9555         (struct cpp_reader): New members op_stack, op_limit.
9556         (struct lexer_state): New member skip_eval.
9557         (_cpp_parse_expr): Update.
9558         (_cpp_expand_op_stack): New.
9559         * cpplib.c (do_if): Update.
9560         * cppinit.c (cpp_create_reader): Create op stack.
9561         (cpp_destroy): And destroy it.
9562         * cpplib.h (CPP_LAST_CPP_OP): Correct.
9563         (TTYPE_TABLE): Correct.
9564
9565 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9566
9567         PR c/6343
9568         * c-decl.c (duplicate_decls): Call merge_weak.
9569         * c-pragma.c (apply_pragma_weak): Warn about misuse.
9570         * output.h (merge_weak): Prototype merge_weak.
9571         * varasm.c (merge_weak): New function.
9572         (declare_weak): Make sure we don't give an error on VAR_DECLs.
9573         Mark RTL with SYMBOL_REF_WEAK.
9574
9575 2002-04-27  Kurt Garloff <garloff@suse.de>
9576
9577         * tree-inline.c (inlinable_function_p): Improve heuristics
9578         by using a smoother function to cut down allowable inlinable size.
9579         * param.def: Add parameters max-inline-insns-single,
9580         max-inline-slope, min-inline-insns that determine the exact
9581         shape of the above function.
9582         * param.h: Likewise.
9583
9584 2002-04-26  Richard Henderson  <rth@redhat.com>
9585
9586         * c-parse.in (malloced_yyss, malloced_yyvs): New.
9587         (yyoverflow): Re-add.  Set them.
9588         (free_parser_stacks): New.
9589         * c-common.h: Declare it.
9590         * c-lex.c (c_common_parse_file): Call it.
9591
9592 2002-04-26  Richard Henderson  <rth@redhat.com>
9593
9594         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
9595         for fallthru search.
9596
9597 2002-04-26  Eric Christopher  <echristo@redhat.com>
9598
9599         PR optimization/3700
9600         * config/mips/mips.c (mips_issue_rate): Define.  New function.
9601         (TARGET_SCHED_ISSUE_RATE): Use.
9602
9603 2002-04-25  David S. Miller  <davem@redhat.com>
9604
9605         PR target/6422
9606         * reorg.c (optimize_skip): Do not allow exception causing
9607         instructions to be considered for delay slots.
9608         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
9609         (relax_delay_slots): Do not try to consider exception causing
9610         instructions as redundant.
9611
9612 2002-04-26  Richard Henderson  <rth@redhat.com>
9613
9614         PR c/5225
9615         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
9616
9617 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
9618
9619         PR bootstrap/6445
9620         * config/i386/i386.md (untyped_call): Return the value in a float
9621         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
9622         TARGET_80387.
9623
9624 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
9625
9626         * tree.c (tree_int_cst_lt): Compare constants whose types differ
9627         in unsigned-ness correctly.
9628
9629 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9630
9631         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
9632         portable runtime model.
9633
9634 2002-04-26  Richard Henderson  <rth@redhat.com>
9635
9636         * c-parse.in (yyoverflow): Revert.
9637
9638 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
9639             Richard Henderson  <rth@redhat.com>
9640
9641         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
9642         result as temporary value.
9643
9644 2002-04-26  Richard Henderson  <rth@redhat.com>
9645
9646         PR c/3581
9647         * c-common.c (fix_string_type): Split out of ...
9648         (combine_strings): ... here.  Take a varray, not a tree list.
9649         (c_expand_builtin_printf): Use fix_string_type.
9650         * c-common.h: Update decls.
9651         * c-parse.in (string): Remove.  Update all uses to use STRING
9652         instead, and not call combine_strings.
9653         (yylexstring): New.
9654         (_yylex): Use it.
9655         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
9656         (build_asm_stmt): Likewise.
9657         * objc/objc-act.c (my_build_string): Use fix_string_type.
9658         (build_objc_string_object): Build varray for combine_strings.
9659
9660 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
9661
9662         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
9663         x86-64.
9664
9665 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
9666
9667         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
9668         (HAVE_NO_R_OPERAND): Remove.
9669         (HAVE_VALUE): Remove.
9670         (op_to_prio): Update.
9671         (UNARY): Don't alter flags.
9672         (_cpp_parse_expr): want_value used to indicate whether
9673         a number or unary operator is expected next.  Distinguish
9674         unary and binary +/-.
9675         (op_as_text): Update for unary operators.
9676
9677 2002-04-25  Richard Henderson  <rth@redhat.com>
9678
9679         PR c/2161
9680         * c-parse.in (yyoverflow): New.
9681
9682 2002-04-25  Richard Henderson  <rth@redhat.com>
9683
9684         PR c/2098
9685         * c-common.c (shorten_compare): Simplfy conditions leading to
9686         the generation of a warning.
9687
9688 2002-04-25  Richard Henderson  <rth@redhat.com>
9689
9690         PR c/2035
9691         * expmed.c (extract_bit_field): Fall through to generic code rather
9692         than aborting on subreg special case.
9693
9694 2002-04-25  David S. Miller  <davem@redhat.com>
9695
9696         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
9697         for DECL being NULL.
9698
9699 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
9700
9701         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
9702
9703 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
9704
9705         * c-decl.c (grokdeclarator): Remove outdated ??? note
9706         on invalid declaration of flexible array members.
9707
9708 2002-04-25  Richard Henderson  <rth@redhat.com>
9709
9710         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
9711
9712 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
9713
9714         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
9715         needed by the compiler, even if they are used as global regs.
9716
9717 2002-04-25  Matt Hiller  <hiller@redhat.com>
9718
9719         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
9720         functions.
9721         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
9722         of the corresponding functions.
9723         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
9724         New prototypes.
9725
9726 2002-04-25  Matt Hiller  <hiller@redhat.com>
9727
9728         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
9729
9730         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
9731         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
9732         registers, adjust comment accordingly.
9733         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
9734         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
9735         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
9736         for coprocessor registers.
9737         (ADDITIONAL_REGISTER_NAMES): Include
9738         ALL_COP_ADDITIONAL_REGISTER_NAMES.
9739
9740         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
9741         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
9742         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
9743         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
9744         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
9745
9746         (mips_char_to_class): Adjust comment to include coprocessor
9747         constraint letters.
9748
9749         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
9750         New functions.
9751         (mips_reg_names, mips_regno_to_class): Include coprocessor
9752         information.
9753         (mips_sw_reg_names): Ditto, make non-static.
9754         (mips_move_1word): Handle moves to and from coprocessor registers.
9755         (mips_move_2words): Handle moves to and from coprocessor
9756         registers.
9757         (mips_class_max_nregs, mips_register_move_cost): Handle
9758         coprocessor register classes.
9759         (override_options): Initialize mips_char_to_class and
9760         mips_hard_regno_mode_ok properly for coprocessor registers.
9761
9762         * config/mips/mips.md (movdi_internal, movdi_internal2,
9763         movsi_internal1, movsi_internal2): Add constraint-sets for
9764         coprocessor registers.
9765         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
9766         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
9767         isn't mips.
9768         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
9769         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
9770         isn't mips.
9771         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
9772         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
9773         isn't mips.
9774         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
9775         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
9776         isn't mips.
9777
9778         * doc/tm.texi: Document feature.
9779
9780 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
9781
9782         * integrate.c (function_attribute_inlinable_p): Simplify.
9783         Check the table pointer is not NULL.
9784
9785 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
9786
9787         * doc/c-tree.texi: Fix typo in introduction.
9788
9789 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
9790
9791         * c-common.h (c_common_parse_file): Update.
9792         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
9793         * c-lex.c (YYDEBUG): Get from c-lex.h.
9794         (c_common_parse_file): Update.
9795         * c-lex.h (YYDEBUG, yydebug): New.
9796         * c-parse.in (YYDEBUG): Get from c-lex.h.
9797         (c_set_yydebug): Remove.
9798         * c-tree.h (c_set_yydebug): Remove.
9799         * langhooks-def.h (lhd_do_nothing_i): New.
9800         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
9801         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
9802         * langhooks.c  (lhd_do_nothing_i): New.
9803         (lhd_set_yydebug): Remove.
9804         * langhooks.h (struct lang_hooks): Update.
9805         * toplev.c (set_yydebug): New.
9806         (compile_file): Update call to parse_file hook.
9807         (decode_d_option): Update.
9808 objc:
9809         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
9810
9811 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
9812
9813         * loop.c (load_mems): Don't change the interface of called functions.
9814
9815         * calls.c (expand_call): Take current_function_pretend_args_size
9816         into account when setting argblock for sibcalls.
9817
9818 2002-04-24  Matt Hiller  <hiller@redhat.com>
9819
9820         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
9821         * c-lex.c: Ditto.
9822
9823         * cpplex.c (skip_line_comment): Process comment one multibyte
9824         character at a time rather than one char at a time, if
9825         appropriate.
9826         (parse_string): Process string one multibyte character at a time
9827         rather than one char at a time, if appropriate.
9828         * c-lex.c (lex_string): Lex and copy multibyte strings
9829         appropriately.
9830         * cpplib.h (cppchar_t): Change to unsigned.
9831
9832 2002-04-24  Richard Henderson  <rth@redhat.com>
9833
9834         PR c/3467
9835         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
9836         for c99.
9837
9838 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
9839
9840         * sh.c (sh_va_arg): If argument was passed by reference,
9841         dereference the pointer.
9842
9843         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9844
9845         * sh.md (divsi3_i4_media): Use match_operand for input values
9846         rather than hard registers.
9847         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
9848         unnecessarily through hard registers.  Keep copies of pseudo
9849         registers outside of the libcall sequence.
9850
9851         * sh.md (casesi_shift_media): Add modes.
9852
9853         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
9854         values in memory.
9855
9856 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
9857
9858         * attribs.c (c_common_attribute_table): Move table and handlers
9859         to c-common.c.
9860         (format_attribute_table, lang_attribute_table,
9861         lang_attribute_common): Remove.
9862         (init_attributes): Replace NULL pointers with pointers to the
9863         empty table.
9864         (handle_packed_attribute, handle_nocommon_attribute,
9865         handle_common_attribute, handle_noreturn_attribute,
9866         handle_noinline_attribute, handle_always_inline_attribute,
9867         handle_used_attribute, handle_unused_attribute,
9868         handle_const_attribute, handle_transparent_union_attribute,
9869         handle_constructor_attribute, handle_destructor_attribute,
9870         handle_mode_attribute, handle_section_attribute,
9871         handle_aligned_attribute, handle_weak_attribute,
9872         handle_alias_attribute, handle_visibility_attribute,
9873         handle_no_instrument_function_attribute, handle_malloc_attribute,
9874         handle_no_limit_stack_attribute, handle_pure_attribute,
9875         handle_deprecated_attribute, handle_vector_size_attribute,
9876         vector_size_helper): Move to c-common.c.
9877         * c-common.c (c_common_attribute_table,
9878         handle_packed_attribute, handle_nocommon_attribute,
9879         handle_common_attribute, handle_noreturn_attribute,
9880         handle_noinline_attribute, handle_always_inline_attribute,
9881         handle_used_attribute, handle_unused_attribute,
9882         handle_const_attribute, handle_transparent_union_attribute,
9883         handle_constructor_attribute, handle_destructor_attribute,
9884         handle_mode_attribute, handle_section_attribute,
9885         handle_aligned_attribute, handle_weak_attribute,
9886         handle_alias_attribute, handle_visibility_attribute,
9887         handle_no_instrument_function_attribute, handle_malloc_attribute,
9888         handle_no_limit_stack_attribute, handle_pure_attribute,
9889         handle_deprecated_attribute, handle_vector_size_attribute,
9890         vector_size_helper): Move from attribs.c.
9891         * c-common.h (c_common_attribute_table,
9892         c_common_format_attribute_table): New.
9893         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
9894         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
9895         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
9896         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
9897         (LANG_HOOKS_INITIALIZER): Update.
9898         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
9899         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
9900         * target.h: Update comment.
9901         * tree.c (default_target_attribute_table): Remove.
9902         * tree.h (default_target_attribute_table, format_attribute_table,
9903         lang_attribute_table, lang_attribute_common): Remove.
9904 objc:
9905         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
9906         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
9907
9908 2002-04-24  Jason Merrill  <jason@redhat.com>
9909
9910         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
9911         * dwarf2out.c (dwarf_attr_name): Support it.
9912         (gen_array_type_die): Emit it.
9913         (lookup_type_die): No special handling for VECTOR_TYPE.
9914         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
9915
9916 2002-04-24  Richard Henderson  <rth@redhat.com>
9917
9918         * config/mips/mips.md (movdi_usd): Renumber.
9919
9920 2002-04-24  David S. Miller  <davem@redhat.com>
9921
9922         PR target/6420
9923         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
9924         32-bit Sparc and current_function_returns_struct is true.
9925
9926 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
9927
9928         * loop.c (canonicalize_condition): Use gen_int_mode.
9929
9930 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
9931
9932         * config/rs6000/altivec.h: Cleanup file.  Add non individual
9933         variants.
9934         (vec_vaddubm): New.
9935         (vec_vadduhm): New.
9936         (vec_vadduwm): New.
9937         (vec_vaddfp): New.
9938         (vec_vaddcuw): New.
9939         (vec_vaddubs): New.
9940         (vec_vaddsbs): New.
9941         (vec_vadduhs): New.
9942         (vec_vadduws): New.
9943         (vec_vaddsws): New.
9944         (vec_vand): New.
9945         (vec_vandc): New.
9946         (vec_vavgub): New.
9947         (vec_vavgsb): New.
9948         (vec_vavguh): New.
9949         (vec_vavgsh): New.
9950         (vec_vavguw): New.
9951         (vec_vavgsw): New.
9952         (vec_vrfip): New.
9953         (vec_vcmpbfp): New.
9954         (vec_vcmpequb): New.
9955         (vec_vcmpequh): New.
9956         (vec_vcmpequw): New.
9957         (vec_vcmpeqfp): New.
9958         (vec_vcmpgefp): New.
9959         (vec_vcmpgtub): New.
9960         (vec_vcmpgtsb): New.
9961         (vec_vcmpgtuh): New.
9962         (vec_vcmpgtsh): New.
9963         (vec_vcmpgtuw): New.
9964         (vec_vcmpgtsw): New.
9965         (vec_vcmpgtfp): New.
9966         (vec_vcmpgefp): New.
9967         (vec_vcfux): New.
9968         (vec_vcfsx): New.
9969         (vec_vctsxs): New.
9970         (vec_vctuxs): New.
9971         (vec_vexptefp): New.
9972         (vec_vrfim): New.
9973         (vec_lvx): New.
9974         (vec_lvebx): New.
9975         (vec_lvehx): New.
9976         (vec_lde): Add vector float variant.
9977         (vec_lvewx): New.
9978         (vec_lvxl): New.
9979         (vec_vlogefp): New.
9980         (vec_vmaddfp): New.
9981         (vec_vmhaddshs): New.
9982         (vec_vmaxub): New.
9983         (vec_vmaxsb): New.
9984         (vec_vmaxuh): New.
9985         (vec_vmaxsh): New.
9986         (vec_vmaxuw): New.
9987         (vec_vmaxsw): New.
9988         (vec_vmaxsw): New.
9989         (vec_vmaxfp): New.
9990         (vec_vmrghb): New.
9991         (vec_vmrghh): New.
9992         (vec_vmrghw): New.
9993         (vec_vmrglb): New.
9994         (vec_vmrglh): New.
9995         (vec_vmrglw): New.
9996         (vec_vminub): New.
9997         (vec_vminsb): New.
9998         (vec_vminuh): New.
9999         (vec_vminsh): New.
10000         (vec_vminuw): New.
10001         (vec_vminsw): New.
10002         (vec_vminfp): New.
10003         (vec_vmladduhm): New.
10004         (vec_vmhraddshs): New.
10005         (vec_msumubm): New.
10006         (vec_vmsummbm): New.
10007         (vec_vmsumuhm): New.
10008         (vec_vmsumshm): New.
10009         (vec_vmsumuhs): New.
10010         (vec_vmsumshs): New.
10011         (vec_vmuleub): New.
10012         (vec_vmulesb): New.
10013         (vec_vmuleuh): New.
10014         (vec_vmulesh): New.
10015         (vec_vmuloub): New.
10016         (vec_mulosb): New.
10017         (vec_vmulouh): New.
10018         (vec_vmulosh): New.
10019         (vec_vnmsubfp): New.
10020         (vec_vnor): New.
10021         (vec_vor): New.
10022         (vec_vpkuhum): New.
10023         (vec_vpkuwum): New.
10024         (vec_vpkpx): New.
10025         (vec_vpkuhus): New.
10026         (vec_vpkshss): New.
10027         (vec_vpkuwus): New.
10028         (vec_vpkswss): New.
10029         (vec_vpkshus): New.
10030         (vec_vpkswus): New.
10031         (vec_vperm): New.
10032         (vec_vrefp): New.
10033         (vec_vrlb): New.
10034         (vec_vrlh): New.
10035         (vec_vrlw): New.
10036         (vec_vrfin): New.
10037         (vec_vrsqrtefp): New.
10038         (vec_vsel): New.
10039         (vec_vslb): New.
10040         (vec_vslh): New.
10041         (vec_vslw): New.
10042         (vec_vsldoi): New.
10043         (vec_vsl): New.
10044         (vec_vslo): New.
10045         (vec_vspltb): New.
10046         (vec_vsplth): New.
10047         (vec_vspltw): New.
10048         (vec_vspltisb): New.
10049         (vec_vspltish): New.
10050         (vec_vspltisw): New.
10051         (vec_vsrb): New.
10052         (vec_vsrh): New.
10053         (vec_vsrw): New.
10054         (vec_vsrab): New.
10055         (vec_vsrah): New.
10056         (vec_vsraw): New.
10057         (vec_vsr): New.
10058         (vec_vsro): New.
10059         (vec_stvx): New.
10060         (vec_stvebx): New.
10061         (vec_stvehx): New.
10062         (vec_stvewx): New.
10063         (vec_stvxl): New.
10064         (vec_vsububm): New.
10065         (vec_vsubuhm): New.
10066         (vec_vsubuwm): New.
10067         (vec_vsubfp): New.
10068         (vec_vsubcuw): New.
10069         (vec_vsububs): New.
10070         (vec_vsubsbs): New.
10071         (vec_vsubuhs): New.
10072         (vec_vsubshs): New.
10073         (vec_vsubuws): New.
10074         (vec_vsubsws): New.
10075         (vec_vsum4ubs): New.
10076         (vec_vsum4sbs): New.
10077         (vec_vsum4shs): New.
10078         (vec_vsum2sws): New.
10079         (vec_vsumsws): New.
10080         (vec_vrfiz): New.
10081         (vec_vupkhsb): New.
10082         (vec_vupkhpx): New.
10083         (vec_vupkhsh): New.
10084         (vec_vupklsb): New.
10085         (vec_vupklpx): New.
10086         (vec_vupklsh): New.
10087         (vec_vxor): New.
10088
10089 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
10090
10091         PR c/5430
10092         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
10093         added literals from substracted literals.
10094         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
10095         (fold) [associate]: Preserve MINUS_EXPR if needed.
10096
10097 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
10098
10099         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
10100         are obsoleted.
10101
10102 2002-04-23  Tom Tromey  <tromey@redhat.com>
10103
10104         * gcc.c: Added --resource.  For PR java/6314.
10105
10106 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
10107
10108         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
10109         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
10110         these libraries.
10111
10112 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
10113
10114         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
10115
10116 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
10117
10118         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
10119         workaround.
10120         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
10121         (ix86_expand_clrstr): Fix typo.
10122         * loop.c (gen_load_of_final_value): New.
10123         (loop_givs_rescan, strength_reduce, check_dbra_loop):
10124         Use it.
10125
10126 2002-04-23  Roger Sayle  <roger@eyesopen.com>
10127
10128         * builtins.c (builtin_memset_gen_str): New function.
10129         (expand_builtin_memset): Optimize the case of constant length, but
10130         unknown value.
10131
10132 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
10133
10134         * config/rs6000/altivec.h (vec_step): Remove extraneous
10135         parentheses.
10136         (vec_ctu): Cast return.
10137
10138 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
10139
10140         PR target/6413
10141         * function.h: (struct function): Add profile_label_no field.
10142         (current_function_profile_label_no): Define.
10143         * function.c: (profile_label_no): New static var.
10144         (expand_function_start): Increment it, and copy to
10145         current_function_profile_label_no.
10146         * output.h (profile_label_no): Delete.
10147         * final.c (profile_label_no): Delete.
10148         (profile_function): Use current_function_profile_label_no.
10149         (final_end_function): Don't increment profile_label_no here.
10150         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
10151         profile_label_no with current_function_profile_label_no.
10152         * config/pa/pa.c (current_function_number): Delete.
10153         (pa_output_function_prologue): Don't output profile label here.
10154         (hppa_profile_hook): Use label_no param rather than
10155         current_function_number.
10156         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
10157         * config/pa/pa.h: .. here.
10158         (FUNCTION_PROFILER): Output profile label here.
10159
10160 2002-04-22  Eric Christopher  <echristo@redhat.com>
10161
10162         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
10163         patch of 2002-04-09 due to binutils issues.
10164         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
10165
10166 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
10167
10168         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
10169         constraint to 'o' for m=r and r=m alternatives.
10170         ("*movv8hi_internal1"): Same.
10171         ("*movv16qi_internal1"): Same.
10172         ("*movv4sf_internal1"): Same.
10173
10174 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
10175
10176         * rtl.h (RTX_FLAG): New macro.
10177         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
10178         * final.c (alter_subreg): Use macro to access rtx flag.
10179         * integrate.c (copy_rtx_and_substitute): Use new access macro.
10180         * print-rtl.c (print_rtx): Use new access macro.
10181
10182         * cse.c (insert): Check rtx code before accessing flag.
10183
10184         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
10185         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
10186         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
10187         convert_const_symbol_ref, make_canonical, make_alternative_compare,
10188         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
10189         simplify_test_exp, optimize_attrs, simplify_by_exploding,
10190         find_and_mark_used_attributes, unmark_used_attributes,
10191         add_values_to_cover, simplify_with_current_value,
10192         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
10193         copy_rtx_unchanging, main): Use new access macros.
10194
10195 2002-04-22  Tom Rix  <trix@redhat.com>
10196
10197         * expmed.c (init_expmed): Generate shifted constant once.
10198
10199 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
10200
10201         * c-lex.c (lex_charconst): Call convert to get constant in
10202         proper type; don't just smash the type field.
10203         Fixes PR c/6300.
10204
10205         * config.gcc: Add list of obsolete configurations.  Disallow
10206         building these without --enable-obsolete.
10207         * doc/install.texi: Document --enable-obsolete and obsoletion
10208         policy.  Mention obsoletion of individual targets in
10209         appropriate places.
10210
10211 2002-04-22  Richard Henderson  <rth@redhat.com>
10212
10213         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
10214
10215 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
10216
10217         PR f/6138.
10218         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
10219         (walk_fixup_memory_subreg): Likewise.
10220         (fixup_var_refs_insn): Adjust accordingly.
10221         (fixup_var_refs_1): Likewise.
10222
10223 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
10224
10225         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
10226         LIBPATH_ARCH64_SPEC): Define.
10227         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
10228         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
10229         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
10230         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
10231
10232 2002-04-22      Joel Sherrill <joel@OARcorp.com>
10233
10234         * gthr-rtems.h: Correct prototypes to remove warnings.
10235
10236 2002-04-22  Richard Henderson  <rth@redhat.com>
10237
10238         PR c/6344
10239         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
10240
10241         * gcse.c (free_insn_expr_list_list): New.
10242         (clear_modify_mem_tables): Use it.  Fix bit set usage.
10243         (canon_list_insert): Use EXPR_LISTs for expressions.
10244         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
10245
10246 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10247
10248         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
10249         file change and include code to _cpp_pop_buffer.
10250         * cpphash.h (struct pending_option): Predeclare.
10251         (struct cpp_reader): New member next_include_file.
10252         (_cpp_pop_file_buffer): Update.
10253         (_cpp_push_next_buffer): Update, rename.
10254         * cppinit.c (cpp_destroy): Free include chain and pending here.
10255         (cpp_finish_options): Simplify.
10256         (_cpp_push_next_buffer): Rename and clean up.
10257         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
10258         Clarify.
10259         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
10260
10261 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
10262
10263         * config/rs6000/altivec.h (vec_xor): Add variant for both args
10264         being vector signed int.
10265         (vec_andc): Same.
10266         (vec_xor): Add variant for both args being vector signed char.
10267         Remove redundant variant.
10268         (vec_andc): Same.
10269
10270 2002-04-21  David S. Miller  <davem@redhat.com>
10271
10272         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
10273         compare mode in output RTL.
10274
10275 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
10276
10277         * config/rs6000/rs6000.c (rs6000_override_options): Correct
10278         style and formatting of previous patch.
10279
10280 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
10281
10282         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
10283         flag_pic for ABI_AIX.
10284
10285 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10286
10287         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
10288         * cppfiles.c (read_include_file): Similarly.
10289         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
10290         uxstrdup ustrchr, ufputs): Similarly.
10291         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
10292         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
10293         cpp_ideq, parse_identifier, parse_number): Similarly.
10294         * cpplib.c (struct directive, dequote_string, D, run_directive,
10295         cpp_push_buffer): Similarly.
10296         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
10297         _cpp_create_definition, check_trad_stringification,
10298         cpp_macro_definition): Similarly.
10299
10300 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10301
10302         * cppmacro.c (funlike_invocation_p): Don't step back
10303         over CPP_EOF.
10304
10305 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
10306
10307         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
10308         labelno.
10309
10310 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
10311
10312         * doc/invoke.texi: Remove Chill references.
10313         * doc/gcc.texi: Update last modified date.
10314
10315 2002-04-20  Kazu Hirata  <kazu@hxi.com>
10316
10317         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
10318         push and pop.  Replace add.l with add.w.
10319
10320 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10321
10322         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
10323         multiply instructions for H8/300H case.
10324
10325 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10326
10327         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
10328         Bum three instructions from each routine.
10329
10330 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
10331
10332         * Makefile.in: Update.
10333         * decl.c (push_c_function_context, pop_c_function_context,
10334         mark_c_function_context): Rename for consistency.
10335         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
10336         * c-tree.h (push_c_function_context, pop_c_function_context,
10337         mark_c_function_context): Rename for consistency.
10338         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10339         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10340         * function.c (init_lang_status, save_lang_status,
10341         restore_lang_status, mark_lang_status, free_lang_status):
10342         Move to langhooks.h.
10343         (push_function_context_to, pop_function_context_from,
10344         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
10345         Update.
10346         * function.h (init_lang_status, save_lang_status,
10347         restore_lang_status, mark_lang_status, free_lang_status):
10348         Move to langhooks.h.
10349         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
10350         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
10351         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
10352         LANG_HOOKS_FUNCTION_INITIALIZER): New.
10353         (LANG_HOOKS_INITIALIZER): Update.
10354         (lhd_do_nothing_f): New.
10355         * langhooks.h (struct lang_hooks_for_functions): New.
10356         (struct lang_hooks): New hooks.
10357         * langhooks.c (lhd_do_nothing_f): New.
10358 objc:
10359         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10360         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10361
10362 2002-04-19  David S. Miller  <davem@redhat.com>
10363
10364         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
10365         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
10366
10367 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
10368
10369         PR optimization/3756
10370         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
10371         x = ((int) y < 0) ? cst1 : cst2.
10372
10373 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
10374
10375         PR c/6358
10376         * function.c: Reapply patch for c/6358.
10377         (expand_function_end): Copy decl_rtl's mode, not
10378         current_function_return_rtx mode.
10379
10380 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
10381
10382         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
10383         targets.
10384
10385 2002-04-19  Tom Tromey  <tromey@redhat.com>
10386
10387         * doc/install.texi (Specific): Update status of Solaris 2.8.
10388         For PR libgcj/6158.
10389
10390 2002-04-19  Andreas Schwab  <schwab@suse.de>
10391
10392         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
10393         (PUT_REAL): Restore old definition.
10394
10395 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
10396             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10397
10398         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
10399         binutils 2.11.2 and higher generate smaller binaries than Sun's
10400         native tools.
10401
10402 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
10403
10404         PR c++/6352
10405         * toplev.c (rest_of_compilation): Do not defer functions for which
10406         TREE_SYMBOL_REFERENCED has already been set.
10407
10408 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
10409
10410         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
10411         alternative.
10412
10413 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
10414
10415         * builtins.c: Include langhooks.h.
10416         (lang_type_promotes_to): Remove.
10417         (expand_builtin_va_arg): Use new hook.
10418         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
10419         (simple_type_promotes_to): Move to c-typeck.c.
10420         * c-common.h (simple_type_promotes_to): Remove.
10421         * c-decl.c (duplicate_decls, grokdeclarator): Update.
10422         * c-format.c: Include langhooks.h.
10423         (check_format_types): Update.
10424         * c-tree.h (c_type_promotes_to): New.
10425         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
10426         (type_lists_compatible_p): Update.
10427         * langhooks-def.h (lhd_type_promotes_to): New.
10428         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
10429         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10430         * langhooks.c (lhd_type_promotes_to): New.
10431         * langhooks.h (struct lang_hooks_for_types): New hook.
10432         * tree.h (lang_type_promotes_to): Remove.
10433 objc:
10434         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
10435
10436 2002-04-18  Richard Henderson  <rth@redhat.com>
10437
10438         * function.c: Revert patch for c/6358.
10439
10440 2002-04-18  Richard Henderson  <rth@redhat.com>
10441
10442         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
10443         blocks.  Handle multiple references to the TRAP block.  Handle
10444         non-adjacent THEN and OTHER blocks.
10445
10446 2002-04-18  Richard Henderson  <rth@redhat.com>
10447
10448         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
10449         crash with no type for by-mode libcalls.
10450
10451         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
10452
10453 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
10454
10455         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
10456         __xtensa_nonlocal_goto): Use a syscall instructions to flush
10457         the register windows.
10458
10459 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
10460
10461         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
10462         appropriate.  Document need for extended precision even when
10463         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
10464         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
10465         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
10466         instead of relying on later syntax error when REAL_WIDTH > 5.
10467         * real.c: Define NE based only on whether or not we have a
10468         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
10469         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
10470         define GET_REAL and PUT_REAL as simple memcpy operations; no
10471         need to byteswap or round.
10472         Use #error instead of #ifdef-ing out the entire file, for
10473         prompt error detection.
10474
10475         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
10476
10477 2002-04-18  David S. Miller  <davem@redhat.com>
10478
10479         * config/sparc/sparc.h (BRANCH_COST): Define.
10480
10481         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
10482         does it.
10483
10484 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
10485
10486         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
10487         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
10488         propagate_block calls after relaxation loop using new variable
10489         stabilized_prop_flags.
10490
10491 2002-04-18  Richard Henderson  <rth@redhat.com>
10492
10493         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
10494         (ia64_va_arg): Expect variable sized types by reference.
10495         * config/ia64/ia64-protos.h: Update.
10496         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
10497         ia64_function_arg_pass_by_reference.
10498
10499 2002-04-18  Richard Henderson  <rth@redhat.com>
10500
10501         * ifcvt.c: Include except.h.
10502         (block_has_only_trap): Break out from find_cond_trap.
10503         (find_cond_trap): Use it.  Always delete the trap block.
10504         (merge_if_block): Allow then block null.  Be less simplistic about
10505         what insns can end a block.
10506         * Makefile.in (ifcvt.o): Depend on except.h.
10507
10508         * config/ia64/ia64.md (trap, conditional_trap): New.
10509
10510 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
10511
10512         PR c/6358
10513         * function.c (assign_parms): Assign hard current_function_return_rtx
10514         register here...
10515         (expand_function_end): ...not here.
10516
10517 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
10518
10519         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10520         * c-tree.h (c_incomplete_type_error): New.
10521         * c-typeck.c (require_complete_type, build_component_ref): Update.
10522         (incomplete_type_error): Rename.
10523         * langhooks-def.h (lhd_incomplete_type_error): New.
10524         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
10525         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10526         * langhooks.c (lhd_incomplete_type_error): New.
10527         * langhooks.h (struct lang_hooks_for_types): New hook.
10528         * tree.c (size_in_bytes): Use new hook.
10529         * tree.h (incomplete_type_error): Remove.
10530 objc:
10531         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10532
10533 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
10534
10535         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
10536         TARGET_FLOAT_FORMAT blocks.
10537
10538 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10539
10540         * doc/install.texi (Downloading the source): Do not mention Chill
10541         any longer, but mention Ada.
10542         (Configuration): Do not mention Chill any longer.
10543
10544 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
10545
10546         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
10547
10548 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
10549
10550         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
10551         in last patch.
10552
10553 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
10554
10555         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
10556         instead of unsigned_type.
10557
10558 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
10559
10560         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
10561         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
10562         later.
10563
10564 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
10565
10566         * attribs.c (vector_type_node_list): New static variable.
10567         (handle_vector_size_attribute): Use it to avoid generating a
10568         new type node each time we are called.
10569
10570         * combine.c (subst): Avoid trying to make a vector mode subreg of
10571         an integer constant.
10572         (gen_lowpart_for_combine): Likewise.
10573
10574 2002-04-18  Roger Sayle  <roger@eyesopen.com>
10575             Jakub Jelinek  <jakub@redhat.com>
10576
10577         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
10578         for integer constant c (if x has unsigned type or sign bit is not
10579         set in c).  This folds the zero/sign extension into the bit-wise and
10580         operation.
10581
10582 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
10583
10584         PR middle-end/6205
10585         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
10586         otherwise xorps.
10587
10588 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
10589
10590         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
10591
10592 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
10593
10594         * gcc.c (read_specs): Detect and fail if an attempt is made to
10595         rename a spec string to an already existing string.
10596
10597 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
10598
10599         * config/s390/s390.c (legitimize_pic_address): Do not generate
10600         illegal address constant without CONST.
10601
10602 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10603
10604         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
10605         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10606
10607 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
10608
10609         PR optimization/6305
10610         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
10611         to make sure previous reloads are taken into account.  Generate
10612         better code if one operand is an in-range immediate constant.
10613
10614 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
10615
10616         * doc/install.texi (Building): libgcj requires GNU make.
10617
10618 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
10619
10620         PR bootstrap/6315
10621         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
10622         even if hard quad and register is not floating.
10623         (movtf reg<-mem split): Disallow splitting if hard quad and
10624         register is floating.
10625         (movtf mem<-reg split): Likewise.
10626         * config/sparc/sparc.c (fp_register_operand): New predicate.
10627         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
10628
10629 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
10630
10631         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
10632         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
10633         (unprotoize.o): Ditto.  Build from protoize.c.  Define
10634         UNPROTOIZE on command line.
10635         * protoize.c: Include cppdefault.h.  Delete include_defaults.
10636         (in_system_include_dir): Use cpp_include_defaults (defined in
10637         cppdefault.o).
10638         * unprotoize.c: Delete file.
10639
10640 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
10641
10642         * config/rs6000/altivec.h (vec_ld): Add array variants.
10643         (vec_lde): Same.
10644         (vec_ldl): Same.
10645
10646 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
10647             Aldy Hernandez <aldyh@redhat.com>
10648
10649         * config/rs6000/altivec.h: Define __ALTIVEC__.
10650         (bool): New.
10651         (__pixel): New.
10652         (pixel): New.
10653         (vec_cfux): New.
10654         (vec_vmaddfp): New.
10655         (vec_vsldoi): New.
10656         Add parentheses to all macro arguments.
10657
10658 2002-04-16  Richard Henderson  <rth@redhat.com>
10659
10660         PR c++/6320
10661         * except.c (remove_eh_handler): Insert inner regions at beginning
10662         of sibling chain.  Refactor expressions.
10663
10664 2002-04-16  Richard Henderson  <rth@redhat.com>
10665
10666         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
10667         * config/sparc/sol2-gas-bi.h: New file.
10668         * config.gcc (sparc*-solaris): Add it as needed.
10669         * configure.in (AS_SPARC64_FLAG): Remove check.
10670         * config.in, configure: Regenerate.
10671
10672         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
10673
10674 2002-04-16  Richard Henderson  <rth@redhat.com>
10675
10676         * config/mips/mips.c (override_options): Don't override N32 for
10677         a 64-bit ISA.
10678
10679         PR 6202
10680         * config/mips/mips.md (can_delay): Split out of existing define_delays.
10681         (HILO_delay): Set can_delay false.
10682
10683 2002-04-16  Dale Johannesen <dalej@apple.com>
10684
10685         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
10686         instruction addresses.
10687         (rs6000_output_function_epilogue): Likewise.
10688
10689 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
10690
10691         * c-parse.in (poplevel, compstmt_start,
10692         compstmt_primary_start): Add ending ';', in accordance
10693         with POSIX.
10694
10695 2002-04-16  Richard Henderson  <rth@redhat.com>
10696
10697         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
10698         Adjust tm_file order to get TARGET_DEFAULT set properly.
10699         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
10700         * doc/install.texi (sparc-solaris): Update.
10701
10702 2002-04-16  Dale Johannesen <dalej@apple.com>
10703
10704         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
10705         comparison operands do not match each other or if modes of
10706         conditions do not match result.
10707
10708 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
10709
10710         PR target/6305
10711         * config/s390/s390.md (mulsidi3): Set both subregs of the
10712         multiword register.
10713
10714 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
10715
10716         * config/rs6000/altivec.h (vec_addc): Type check.
10717
10718 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
10719
10720         PR middle-end/6279
10721         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
10722
10723         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
10724
10725 2002-04-15  Richard Henderson  <rth@redhat.com>
10726
10727         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
10728         call_really_used_regs too.
10729
10730 2002-04-15  Richard Henderson  <rth@redhat.com>
10731
10732         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
10733
10734 2002-04-15  David S. Miller  <davem@redhat.com>
10735
10736         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
10737         as being CLOBBERed.
10738
10739 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
10740
10741         PR c/6290
10742         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
10743         CONST_VECTOR is { 0, ... 0 }.
10744
10745 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
10746
10747         * doc/install.texi (Installing GCC: Configuration): Clarify
10748         the only supported ways to configure gcc.
10749
10750 2002-04-15  Roland McGrath  <roland@frob.com>
10751
10752         * config.gcc (alpha*-*-gnu*): New target configuration.
10753         * config/alpha/gnu.h: New file for it.
10754         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
10755
10756 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
10757
10758         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
10759         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
10760         * tree.h (expand_start_stmt_expr): Update prototype.
10761         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
10762         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
10763         on the STMT_EXPR created for the inline function.
10764
10765 2002-04-15  Richard Henderson  <rth@redhat.com>
10766
10767         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
10768         config/i386/linux-aout.h, config/i386/linux-oldld.h,
10769         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
10770         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
10771         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
10772         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
10773         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
10774         Define __gnu_linux__, not gnu_linux.
10775         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
10776
10777 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
10778
10779         Remove Chill front end.
10780         * gcc.c (default_compilers): Remove Chill entries.
10781         * ch: Remove directory.
10782         * doc/frontends.texi: Remove information about Chill.
10783         * doc/sourcebuild.texi: Likewise.
10784         * doc/standards.texi: Likewise.
10785
10786 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
10787
10788         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
10789         (LONGLONG_STANDALONE): Define.
10790
10791 2002-04-15  David S. Miller  <davem@redhat.com>
10792
10793         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
10794         Call emit_library_call with LCT_NORMAL.
10795         (sparc_initialize_trampoline): Use LCT_foo instead of
10796         magic constant in emit_library_call invocations.
10797         (sparc64_initialize_trampoline): Likewise.
10798         (sparc_profile_hook): Likewise.
10799         * config/sparc/sparc.md: Likewise.
10800
10801         * config/sparc/sparc.c (sparc_extra_constraint_check):
10802         Fix type of argument 'c'.
10803         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
10804         Likewise.
10805
10806 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
10807
10808         * diagnostic.h (output_buffer_state): Redefine.
10809         (output_format_decoder): New macro.
10810         (output_prefixing_rule): Likewise.
10811         (output_line_cutoff): Likewise.
10812         (diagnostic_format_decoder): Adjust.
10813         (diagnostic_prefixing_rule): Likewise.
10814         (diagnostic_line_cutoff): Likewise.
10815         (diagnostic_state): Likewise.
10816         (diagnostic_kind_count): Likewise.
10817         (diagnostic_buffer): Now a macro.
10818
10819         * diagnostic.c (diagnostic_buffer): Remove definition.
10820         (output_is_line_wrapping): Adjust.
10821         (set_real_maximum_length): Likewise.
10822         (output_set_maximum_length): Likewise.
10823         (init_output_buffer): Likewise.
10824         (lhd_print_error_function): Likewise.
10825         (output_do_verbatim): Likewise.
10826
10827 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
10828
10829         * cpperror.c (print_location): Don't print include chain
10830         if line == 0.
10831         (cpp_begin_message): Update to use DL_ macros.
10832         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
10833         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
10834         cpp_notice, cpp_notice_from_errno): Remove.
10835         (cpp_error, cpp_error_with_line): Update to take a diagnostic
10836         level.
10837         (cpp_errno): New.
10838         * cppexp.c (CPP_ICE): Remove.
10839         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
10840         lex, integer_overflow, _cpp_parse_expr): Update.
10841         * cppfiles.c (read_include_file, find_include_file,
10842         handle_missing_header, _cpp_read_file, remap_filename): Update.
10843         * cpphash.h (enum error_type): Remove.
10844         (_cpp_begin_message): Update.
10845         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
10846         cpp_handle_option, cpp_post_options): Update.
10847         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
10848         skip_whitespace, parse_identifier, parse_slow, parse_string,
10849         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
10850         cpp_interpret_charconst): Update.
10851         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
10852         lex_macro_node, do_undef, glue_header_name, parse_include,
10853         do_include_common, read_flag, do_line, do_linemarker, do_ident,
10854         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
10855         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
10856         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
10857         _cpp_pop_buffer, do_diagnostic): Update.
10858         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
10859         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
10860         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
10861         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
10862         cpp_notice, cpp_notice_from_errno): Remove.
10863         (cpp_error, cpp_error_with_line): Update to take a diagnostic
10864         level.
10865         (cpp_errno): New.
10866         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
10867         collect_args, enter_macro_context, save_parameter, parse_params,
10868         _cpp_create_definition, check_trad_stringification,
10869         cpp_macro_definition): Update.
10870         * cppmain.c (cpp_preprocess_file): Update.
10871         * fix-header.c (read_scan_file): Update.
10872
10873 2002-04-14  Andreas Schwab  <schwab@suse.de>
10874
10875         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
10876
10877 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10878
10879         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
10880
10881 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
10882
10883         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
10884         not gnu_hurd.
10885
10886 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
10887
10888         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
10889
10890 2002-04-13      Joel Sherrill <joel@OARcorp.com>
10891
10892         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
10893         sparc-elf and sparc-rtems targets.
10894
10895 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
10896
10897         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
10898         defined, and __gnu_hurd__ wherever __GNU__ is defined.
10899         * arm/linux-elf.h: Likewise.
10900         * cris/aout.h: Likewise.
10901         * cris/linux.h: Likewise.
10902         * i370/linux.h: Likewise.
10903         * i386/gnu.h: Likewise.
10904         * i386/linux-aout.h: Likewise.
10905         * i386/linux-oldld.h: Likewise.
10906         * i386/linux.h: Likewise.
10907         * i386/linux64.h: Likewise.
10908         * ia64/linux.h: Likewise.
10909         * m68k/linux-aout.h: Likewise.
10910         * m68k/linux.h: Likewise.
10911         * mips/linux.h: Likewise.
10912         * pa/pa-linux.h: Likewise.
10913         * pj/linux.h: Likewise.
10914         * rs6000/sysv4.h: Likewise.
10915         * s390/linux.h: Likewise.
10916         * sh/linux.h: Likewise.
10917         * sparc/linux-aout.h: Likewise.
10918         * sparc/linux.h: Likewise.
10919         * sparc/linux64.h: Likewise.
10920         * xtensa/linux.h: Likewise.
10921
10922 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
10923
10924         * stmt.c (check_unique_operand_names): Expect operand names to
10925         be strings rather than identifiers.  Use simple_cst_equal to
10926         compare them.
10927         (resolve_operand_name_1): Make same identifier to string change here.
10928         * c-parse.in (asm_operand): Convert a named operand into a string.
10929         * cp/parse.y (asm_operand): Likewise.
10930
10931 2002-04-13  Andreas Schwab  <schwab@suse.de>
10932
10933         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
10934
10935 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
10936
10937         Revert these changes:
10938
10939         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
10940
10941         PR c++/5571
10942         * stor-layout.c (layout_decl): Reset the RTL for the decl.
10943
10944 2002-04-12  Richard Henderson  <rth@redhat.com>
10945
10946         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
10947         (sparc*-*-solaris): Clean up header files.
10948         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
10949         and plan on generating 64-bit code.
10950         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
10951         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
10952         * config/sparc/sol2-sld-64.h: Rename ...
10953         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
10954         for AS_SPARC64_FLAG not defined.
10955         * config/sparc/sol2-gld-bi.h: New.
10956         * config/sparc/sol2-sld.h: Remove.
10957         * config/sparc/sol26-sld.h: New.
10958         * config/sparc/sol2.h: Tidy comments.
10959         * doc/install.texi: Document sparc-solaris configury changes.
10960
10961 2002-04-12  Richard Henderson  <rth@redhat.com>
10962
10963         * recog.c (offsettable_address_p): Match the logic in adjust_address.
10964
10965         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
10966         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
10967
10968 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10969
10970         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
10971
10972 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
10973
10974         * pa.c (pa_can_combine_p): Call extract_insn before calling
10975         constrain_operands.
10976
10977 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
10978
10979         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
10980         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
10981         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
10982         (CPP_PREDEFINES): Handle __declspec.
10983         * config/i386/t-interix (USER_H): Remove.
10984
10985 2002-04-12  DJ Delorie  <dj@redhat.com>
10986
10987         * integrate.c (compare_blocks): Make comparisons safe for when
10988         sizeof(int) < sizeof(char *).
10989         (find_block): Likewise.
10990
10991 2002-04-12  Jan Hubicka  <jh@suse.cz>
10992             David Edelsohn  <edelsohn@gnu.org>
10993
10994         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
10995         registers.
10996         (symbol_ref_operand): New.
10997         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
10998         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
10999
11000 2002-04-12  Andreas Schwab  <schwab@suse.de>
11001
11002         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
11003         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
11004         overrides the definition in config/svr4.h.
11005
11006 2002-04-12      Eric Norum <eric.norum@usask.ca>
11007
11008         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
11009         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
11010         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
11011         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
11012         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
11013         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
11014         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
11015         definitions to config/rtems.h and make the targets more similar.
11016
11017 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11018
11019         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
11020         POINTERS_EXTEND_UNSIGNED.
11021         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
11022         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
11023
11024         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
11025         not specified.
11026
11027 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
11028
11029         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
11030         depends on TARGET_SHMEDIA, not TARGET_SH5.
11031
11032 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
11033
11034         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
11035         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
11036
11037 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
11038
11039         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
11040         no r0 clobber.
11041
11042 2002-04-12  Andreas Schwab  <schwab@suse.de>
11043
11044         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
11045
11046 2002-04-12  Richard Henderson  <rth@redhat.com>
11047
11048         PR bootstrap/4191
11049         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
11050
11051         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
11052         modes spanning multiple hard regs.
11053
11054         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
11055
11056 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11057
11058         * pa.c (pa_output_function_prologue): Don't accumulate the total
11059         number of code bytes when using TARGET_64BIT, or gas, SOM and not
11060         the portable runtime.
11061         (output_deferred_plabels): Handle 64bit plabels.
11062         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
11063         generating pic code using the GAS assembler for object formats that
11064         are not SOM (ie., ELF32 and ELF64).
11065         (output_millicode_call): Check attribute type if attribute length is 28.
11066         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
11067         dbr_sequence_length once.
11068         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
11069         dbr_sequence_length once.
11070         * pa.h (TARGET_SOM): Define if not defined.
11071         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
11072         with GAS and not SOM.
11073         (jump, call_internal_reg, call_value_internal_reg): Likewise.
11074         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
11075
11076 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11077
11078         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
11079         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
11080         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
11081         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
11082         elfos.h and dbxelf.h values are fine now.
11083         * config/i386/freebsd.h, config/alpha/freebsd.h
11084         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
11085
11086 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11087
11088         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
11089         or set Acpu or Amachine.  Reformat.
11090         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11091         define.
11092         (LINK_SPEC): Do not need to undef.
11093         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
11094         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
11095         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11096         define.
11097         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
11098         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
11099         (LINK_SPEC): Do not need to undef.
11100         (DONT_USE_BUILTIN_SETJMP): Do not define.
11101         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
11102         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
11103         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
11104         Remove trailing spaces.
11105         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
11106         __ELF__, or set Acpu or Amachine.  Reformat.
11107         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11108         define.
11109
11110 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11111
11112         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
11113         all other *-*-freebsd* targets.
11114
11115 2002-04-11  Richard Henderson  <rth@redhat.com>
11116
11117         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
11118
11119 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11120
11121         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
11122         Include {cpu}/{cpu}.h thru tm_file.
11123         (alpha*-*-linux*ecoff): Remove target.
11124         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
11125         (LINK_SPEC): Remove, is not OS independent.
11126         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
11127         (LINK_SPEC): Do not need to #undef any longer.
11128         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
11129         any longer.
11130         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
11131         __ELF__.
11132         (LINK_SPEC): Moved here from alpha/elf.h.
11133         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
11134         SUB_CPP_PREDEFINES.
11135         * config/alpha/linux-ecoff.h: Remove.
11136         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
11137         (CPP_SPEC): Define _POSIX_SOURCE as needed.
11138         (CPP_SUBTARGET_SPEC): Do not define.
11139         (LINK_SPEC): Do not need to #undef any longer.
11140         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
11141         * config/alpha/vms.h: Likewise.
11142
11143 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
11144
11145         * doc/extend.texi: Remove old claim that typedefs cannot have
11146         an alignment attribute.
11147
11148 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
11149
11150         PR optimization/6177
11151         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
11152         bitpos is 0 and bitsize CONCAT size.
11153
11154 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
11155
11156         PR c/6223
11157         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
11158
11159 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
11160
11161         * config/alpha/freebsd.h: Minor reformatting.
11162         (CPP_SPEC): Define ELF and add cpp_subtarget.
11163         (ASM_SPEC): No longer needed.
11164
11165 2002-04-11  Richard Henderson  <rth@redhat.com>
11166
11167         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
11168         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
11169         (dimode mem/zero splitter): New.
11170
11171 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
11172
11173         * config/cris/cris.c (cris_override_options): Tweak error message
11174         for PIC not implemented.
11175
11176         * config/cris/cris.h: Tweak comments related to parameter-passing.
11177
11178         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
11179
11180 2002-04-10  Richard Henderson  <rth@redhat.com>
11181
11182         * except.c (add_ehl_entry): Allow duplicates after landing pad
11183         creation.
11184
11185 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
11186
11187         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
11188
11189 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
11190
11191         * c-decl.c (c_init_decl_processing): Move generation of
11192         decls for g77_integer_type_node and friends from here ...
11193         * c-common.c (c_common_nodes_and_builtins): ... to here.
11194
11195 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
11196
11197         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
11198         is only used as frame pointer when frame_pointer_needed is true.
11199
11200 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
11201
11202         PR target/817
11203         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
11204         for the fact that the pool entry uses two words.
11205         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
11206         1k bytes.
11207         (movdf_soft_insn): Similarly.
11208         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
11209         for the fact that the pool entry uses three words.
11210
11211 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
11212
11213         * config/mips/mips.c (mips_va_arg): When using the struct version
11214         of the EABI va_list, allow arguments in the register save area to
11215         take up less room than a stack argument.
11216
11217 2002-04-10  Richard Henderson  <rth@redhat.com>
11218
11219         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
11220         if EXPAND_INITIALIZER.
11221
11222 2002-04-09  Richard Henderson  <rth@redhat.com>
11223
11224         * config/alpha/alpha.md (movdi_er_maybe_g): New.
11225         * config/alpha/alpha.c (alpha_expand_mov): Use it.
11226
11227 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
11228
11229         PR optimization/6233
11230         * rtlanal.c (pure_call_p): New function.
11231         * rtl.h (pure_call_p): Declare.
11232         * loop.c (prescan_loop): Use it to set has_nonconst_call.
11233         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
11234
11235 2002-04-09  Eric Christopher  <echristo@redhat.com>
11236
11237         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
11238         information to .comm directive.
11239
11240 2002-04-09  Richard Henderson  <rth@redhat.com>
11241
11242         PR c/5078
11243         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
11244
11245 2002-04-09  Richard Henderson  <rth@redhat.com>
11246
11247         * basic-block.h (flow_delete_block_noexpunge): Declare.
11248         (expunge_block_nocompact): Declare.
11249         * cfg.c (expunge_block_nocompact): Split out from ...
11250         (expunge_block): ... here.
11251         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
11252         (flow_delete_block_noexpunge): Split out from ...
11253         (flow_delete_block): ... here.
11254         * cfgcleanup.c (delete_unreachable_blocks): Compact while
11255         removing dead blocks.
11256         * except.c (exception_handler_labels): Remove.
11257         (exception_handler_label_map): New.
11258         (struct eh_region): Add aka member.
11259         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
11260         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
11261         (for_each_eh_label, for_each_eh_label_1): New.
11262         (init_eh): Register exception_handler_label_map.
11263         (free_eh_status): Use free_region.
11264         (find_exception_handler_labels): Use the map, not the list.
11265         (remove_exception_handler_label): Likewise.
11266         (maybe_remove_eh_handler): Likewise.
11267         (remove_eh_handler): Use the region aka bitmap.
11268         * except.h (exception_handler_labels): Remove.
11269         (for_each_eh_label): Declare.
11270         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
11271         * loop.c (invalidate_loops_containing_label): New.
11272         (find_and_verify_loops): Use it.  Use for_each_eh_label.
11273         * sched-rgn.c (is_cfg_nonregular): Use
11274         current_function_has_exception_handlers.
11275
11276 2002-04-09  Richard Henderson  <rth@redhat.com>
11277
11278         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
11279         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
11280         Do not return changed status.
11281         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
11282         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
11283         New functions that do return changed status.
11284         * sbitmap.h: Update decls.
11285         * gcse.c, lcm.c: Use _cg functions as needed.
11286
11287 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
11288
11289         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
11290         (sh64-*-elf*, sh-*-rtemself*): Likewise.
11291         * config/sh/embed_bb.c: New file.
11292         * config/sh/embed-elf.h: New file.
11293         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
11294         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
11295         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11296         __PTRDIFF_TYPE__ .
11297         (SUBTARGET_CPP_PTR_SPEC): Don't define.
11298         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
11299         Add subtarget_asm_endian_spec.
11300         (ASM_SPEC): Use subtarget_asm_endian_spec.
11301         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
11302         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
11303         (WCHAR_UNSIGNED): Define.
11304         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
11305         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11306         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
11307         Fix value.
11308         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
11309         (sh_adjust_cost): Likewise.
11310         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11311         __PTRDIFF_TYPE__ .
11312         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
11313         (WCHAR_TYPE_SIZE): Likewise.
11314         (ASM_SPEC): Use subtarget_asm_endian_spec.
11315         (SH_ELF_WCHAR_TYPE): #undef/ #define.
11316         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
11317         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
11318         (MAX_WCHAR_TYPE_SIZE): Don't #define .
11319         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
11320         (USER_LABEL_PREFIX): Don't #undef /#define .
11321         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11322         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
11323         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
11324         (ASM_SPEC): Likewise.
11325         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
11326         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
11327         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
11328         (LIB2FUNCS_EXTRA): Define.
11329         * t-sh64 (LIB2FUNCS_EXTRA): Define.
11330         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
11331         (LIB1ASMFUNCS_CACHE): Define.
11332         (LIB2FUNCS_EXTRA): Redefine empty.
11333
11334 2002-04-08  Richard Henderson  <rth@redhat.com>
11335
11336         * reorg.c (get_branch_condition): Use reversed_comparison_code.
11337
11338 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11339
11340         * config/m68hc11/larith.asm (__map_data_section): Fix condition
11341         and optimize for size.
11342         (__do_global_ctors): Fix pointer comparison.
11343         (__do_global_dtors): Likewise.
11344
11345 2002-04-09  David S. Miller  <davem@redhat.com>
11346
11347         * config/sparc/sparc.c (sparc_extra_constraint_check): New
11348         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
11349         allow reloading pseudos.
11350         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
11351         * config/sparc/sparc-protos.h: Declare it.
11352
11353         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
11354         unsigned comparison warning.
11355         (output_restore_regs): Mark leaf_function as unused.
11356
11357 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11358
11359         * expr.c (is_aligning_offset): New function.
11360         (expand_expr, case COMPONENT_EXPR): Call it.
11361
11362 2002-04-08  David S. Miller  <davem@redhat.com>
11363
11364         PR target/6082
11365         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
11366
11367         Make init_priority work on Sparc when using GNU ld.
11368         * config/sparc/linux.h, config/sparc/linux64.h,
11369         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
11370         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
11371         * config/sparc/sol2-gld.h: New file to do the same.
11372         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
11373         sparc/sol2-gld.h to tm_file.
11374
11375         PR optimization/4328
11376         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
11377         * doc/md.texi: Document it.
11378         * config/sparc/sparc.md (movdi_insn_sp64_novis,
11379         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
11380         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
11381         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
11382         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
11383
11384 2002-04-08  Andreas Jaeger  <aj@suse.de>
11385
11386         * stmt.c (expand_asm_operands): Revert last patch from Richard
11387         Henderson.
11388
11389 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11390
11391         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
11392         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
11393
11394 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11395
11396         * doc/contrib.texi (Contributors): Add David O'Brien.
11397
11398 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
11399
11400         * configure.in (auto-build.h): Use target_alias and build_alias
11401         when running configure.
11402         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
11403         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
11404         * configure: Regenerate.
11405
11406 2002-04-07  David S. Miller  <davem@redhat.com>
11407
11408         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
11409
11410 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11411
11412         PR 5933
11413         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
11414         generating 32-bit pic code.
11415
11416 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
11417
11418         * cppinit.c (cpp_create_reader): Initialize
11419         discard_comments_in_macro_exp.
11420         (COMMAND_LINE_OPTIONS): Add "-CC" option.
11421         (cpp_handle_option): Handle "-CC" option.
11422         * cpplex.c (save_comment): If saving a C++ comment in
11423         a directive, convert it to a C comment.
11424         (_cpp_lex_direct): Pass second comment start character to
11425         save_comment to indicate comment type.
11426         * cpplib.c (_cpp_handle_directive): If processing
11427         a "#define" directive and discard_comments_in_macro_exp
11428         is false,  re-enable saving of comments.
11429         (lex_macro_node): If discard_comments_in_macro_exp is false,
11430         discard any comments before the macro identifier.
11431         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
11432         member.
11433         * cppmacro.c (cpp_get_token): If expanding a macro while
11434         processing a directive, discard any comments we might encounter.
11435         (parse_params): If discard_comments_in_macro_exp is false,
11436         ignore comments in the macro parameter list.
11437         * gcc.c (cpp_unique_options): Add "-CC" option.
11438         (option_map): Map "--comments-in-macros" to "-CC".
11439         * doc/cppopts.texi: Document "-CC" option.
11440         * f/lang-specs.h: Add "-CC" option.
11441         * testsuite/gcc.dg/cpp/maccom1.c: New test.
11442         * testsuite/gcc.dg/cpp/maccom2.c: New test.
11443         * testsuite/gcc.dg/cpp/maccom3.c: New test.
11444         * testsuite/gcc.dg/cpp/maccom4.c: New test.
11445         * testsuite/gcc.dg/cpp/maccom5.c: New test.
11446         * testsuite/gcc.dg/cpp/maccom6.c: New test.
11447
11448 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11449
11450         PR middle-end/6180
11451         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
11452
11453 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
11454
11455         PR c++/5571
11456         * stor-layout.c (layout_decl): Reset the RTL for the decl.
11457
11458         PR opt/5120
11459         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
11460         RTX_UNCHANGING_P for the functions arguments when a tail call
11461         is made.
11462
11463 2002-04-06  Jason Merrill  <jason@redhat.com>
11464
11465         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
11466         (parse_options_and_default_flags): Set them appropriately.
11467         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
11468
11469 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
11470
11471         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
11472         here.
11473
11474         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
11475         semicolon.
11476
11477         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
11478         types come in by-reference.  Fix typo in comment.
11479
11480 2002-04-05  David S. Miller  <davem@redhat.com>
11481
11482         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
11483         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
11484         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
11485         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
11486
11487 2002-04-05  David S. Miller  <davem@redhat.com>
11488
11489         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
11490         are not going to emit return instructions, emit at least a nop
11491         for the sake of sane backtraces.
11492
11493 2002-04-05  Richard Henderson  <rth@redhat.com>
11494
11495         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
11496
11497 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
11498
11499         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
11500
11501 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
11502
11503         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
11504         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
11505         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
11506
11507 2002-04-05  Andreas Schwab  <schwab@suse.de>
11508
11509         * c-convert.c: Include c-common.h.
11510         * Makefile.in (c-convert.o): Updated.
11511
11512 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
11513
11514         * mklibgcc.in: Use separate libgcc.map for each multilib.
11515         * Makefile.in (distclean): Don't remove libgcc.map here.
11516
11517 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
11518
11519         * Makefile.in (s-mlib): Handle --disable-multilib by separate
11520         genmultilib invocation.
11521
11522 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
11523
11524         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
11525         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
11526         to num_gprs for symmetry.
11527         * config/mips/mips.c: Adjust accordingly.
11528
11529 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
11530
11531         * c-common.c (truthvalue_conversion): Rename, update.
11532         * c-common.h (c_common_truthvalue_conversion): New.
11533         * c-convert.c (convert): Update.
11534         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11535         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
11536         * c-typeck.c (build_binary_op, build_unary_op,
11537         build_conditional_expr): Update.
11538         * fold-const.c (constant_boolean_node, fold): Use langhook.
11539         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
11540         * langhooks.h (struct lang_hooks): New hook.
11541         * stmt.c (expand_decl_cleanup): Use langhook.
11542         * tree.h (truthvalue_conversion): Remove.
11543 objc:
11544         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11545
11546 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
11547
11548         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
11549         Add rules to make null object file.
11550
11551 2002-04-04  Jim Blandy  <jimb@redhat.com>
11552
11553         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
11554         macro formal parameter names.
11555
11556 2002-04-04  David S. Miller  <davem@redhat.com>
11557
11558         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
11559
11560 2002-04-04  Richard Henderson  <rth@redhat.com>
11561
11562         PR middle-end/5099
11563         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
11564         Support copies into and out of memory.  Don't accept allows_reg
11565         and allows_mem as gospel.
11566
11567 2002-04-04  Richard Henderson  <rth@redhat.com>
11568
11569         PR opt/6165
11570         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
11571         (write_dependence_p): Likewise.
11572
11573 2002-04-04  Richard Henderson  <rth@redhat.com>
11574
11575         * predict.c (estimate_bb_frequencies): Do frequency calculation
11576         with a volatile temporary.
11577
11578 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
11579
11580         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
11581
11582 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11583
11584         PR c++/6119
11585         * final.c (final_start_function): Don't bump profile_label_no here...
11586         (final_end_function): ...but here.
11587
11588 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11589
11590         * config/sparc/sparc.md (pic): New attribute.
11591         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
11592         into stack slots.
11593         (split after do_builtin_setjmp_setup): New.
11594
11595 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11596
11597         PR fortran/6106
11598         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
11599         change.
11600
11601 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11602
11603         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
11604         UNITS_PER_WORD for zero sized aggregates.
11605
11606 2002-04-03  David S. Miller  <davem@redhat.com>
11607
11608         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
11609         one-character spec for this, just use %(link_gcc_c_sequence).
11610
11611 2002-04-03  David S. Miller  <davem@redhat.com>
11612
11613         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
11614         handling.
11615
11616 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11617
11618         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
11619         (DWARF_FRAME_RETURN_COLUMN): Move.
11620         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11621         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
11622         * pa.c (except.h, predict.h): Include.
11623         (FRP): Delete.
11624         (store_reg_modify, set_reg_plus_d): Revise prototypes.
11625         (output_ascii): Add cast.
11626         (store_reg_modify): Revise to add frame notes.
11627         (set_reg_plus_d): Likewise.
11628         (compute_frame_size): Include space for eh data registers in frame if
11629         the current function calls eh_return.
11630         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
11631         function calls eh_return.  Save eh data registers if the current
11632         function calls eh_return.  Fix code to add frame notes.  Emit
11633         blockage to prevent insns with frame notes being scheduled in the
11634         delay slot of calls.
11635         (hppa_expand_epilogue): Restore eh data registers and do final stack
11636         adjustment if the current function calls eh_return.  Don't add frame
11637         notes.
11638         (output_call): Revise for change in length of call insn.  Don't do
11639         return pointer adjustment for an unconditional jump in the delay slot
11640         of a call when using frame notes.
11641         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
11642         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
11643         (ARG_POINTER_CFA_OFFSET): Define.
11644         * pa.md (return_external_pic): New pattern.
11645         (prologue): Correct formatting.  Use return_external_pic if current
11646         function calls eh_return.
11647         (call_internal_symref, call_value_internal_symref,
11648         sibcall_internal_symref, sibcall_value_internal_symref): Change default
11649         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
11650         respectively.
11651         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
11652
11653         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
11654         list of targets to check using "nop" insn.
11655         * configure: Rebuilt.
11656
11657 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
11658
11659         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
11660
11661 2002-04-03  David S. Miller  <davem@redhat.com>
11662
11663         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
11664         library sequence passed to the linker.
11665         (LINK_COMMAND_SPEC): Use it.
11666         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
11667         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
11668         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11669
11670 2002-04-03  Jason Merrill  <jason@redhat.com>
11671
11672         * except.c (struct eh_status): Remove protect_list.
11673         (begin_protect_partials, end_protect_partials): Remove.
11674         (add_partial_entry): Remove.
11675         * except.h: Remove prototypes.
11676
11677         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
11678         expand_decl_cleanup_eh.
11679
11680         PR c++/5636
11681         * tree.h (CLEANUP_EH_ONLY): New macro.
11682         * stmt.c (expand_decl_cleanup_eh): New fn.
11683         (expand_cleanups): Check CLEANUP_EH_ONLY.
11684         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
11685         Use expand_decl_cleanup_eh.
11686         (expand_stmt): Adjust.
11687         * c-common.h: Adjust prototype.
11688
11689 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
11690
11691         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
11692         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
11693         (cris_target_asm_function_epilogue): Ditto.
11694         (cris_initial_frame_pointer_offset): Ditto.
11695         (cris_simple_epilogue): Ditto.
11696         (cris_expand_builtin_va_arg): Variable-size types come in
11697         by-reference.
11698
11699 2002-04-03  David S. Miller  <davem@redhat.com>
11700
11701         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
11702         little-endian.
11703         (set_fast_math): Correct 'fsr' type.
11704
11705 2002-04-03  Richard Henderson  <rth@redhat.com>
11706
11707         PR opt/3569
11708         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
11709         * toplev.c (check_global_declarations): Use it.
11710         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
11711         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11712         (LANG_HOOKS_DECLS): Add it.
11713         * langhooks.c (lhd_warn_unused_global_decl): New.
11714         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11715         * c-objc-common.c (c_warn_unused_global_decl): New.
11716         * c-tree.h (c_warn_unused_global_decl): Declare.
11717         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11718
11719 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
11720
11721         * langhooks-def.h (lhd_set_decl_assembler_name,
11722         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
11723         (LANG_HOOKS_INITIALIZER): Update.
11724         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
11725         * langhooks.h (struct lang_hooks): New hook.
11726         * tree.c (set_decl_assembler_name): Move to langhooks.c.
11727         (lang_set_decl_assembler_name): Remove.
11728         (init_obstacks): Don't set hook.
11729         (decl_assembler_name): New function.
11730         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
11731         (decl_assembler_name): New.
11732         (lang_set_decl_assembler_name): Remove.
11733
11734 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
11735
11736         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
11737         works properly with .hidden symbols.
11738         * configure: Rebuilt.
11739         * config.in: Rebuilt.
11740         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
11741         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
11742         properly with .hidden symbols.
11743
11744 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
11745
11746         PR middle-end/6102
11747         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
11748         USE argument.
11749
11750 2002-04-03  Richard Henderson  <rth@redhat.com>
11751
11752         PR opt/4120
11753         * sched-rgn.c (sets_likely_spilled): New.
11754         (sets_likely_spilled_1): New.
11755         (add_branch_dependences): Use it.
11756
11757 2002-04-02  Richard Henderson  <rth@redhat.com>
11758
11759         PR opt/4311
11760         * loop.h (LOOP_FIRST_PASS): New.
11761         * loop.c (strength_reduce): Mind it when deciding to unroll.
11762         * toplev.c (rest_of_compilation): Set it.
11763
11764 2002-04-02  David S. Miller  <davem@redhat.com>
11765
11766         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
11767         mems_ok_for_ldd_peep when the order of the loads being examined
11768         is reversed.
11769         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
11770         existing comment to increase comprehension of this situation.
11771
11772 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
11773
11774         * config/sh/sh.md: Don't use union real_extract.
11775
11776 2002-04-02  Richard Henderson  <rth@redhat.com>
11777
11778         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
11779
11780 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
11781
11782         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
11783         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
11784         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
11785         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
11786         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
11787         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
11788         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
11789         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
11790         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
11791         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
11792         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
11793         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
11794         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
11795         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
11796         Include as many configury headers via tm_file as possible.  This
11797         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
11798         * config/openbsd-oldgas.h: New file.
11799         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
11800         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
11801         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
11802         config/i386/i386-coff.h, config/i386/i386-interix.h,
11803         config/i386/iscdbx.h, config/i386/linux-aout.h,
11804         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
11805         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
11806         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
11807         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
11808         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
11809         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
11810         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
11811         config/i386/vxi386.h: Do not directly include configury headers.
11812         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
11813         Directly include configury headers that are no longer automatically
11814         included by the above headers.
11815         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
11816         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
11817         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
11818         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
11819         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
11820         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
11821         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
11822         (TARGET_VERSION): Define.
11823         * config/i386/beos-elf.h, config/i386/freebsd.h,
11824         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
11825         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
11826         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
11827         config/i386/sco5.h, config/i386/sysv4.h
11828         (TARGET_VERSION): Do not need to protect.
11829         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
11830         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
11831         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
11832         config/i386/i386-interix.h, config/i386/linux-aout.h,
11833         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
11834         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
11835         (YES_UNDERSCORES): Do not define - not needed.
11836         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
11837         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
11838         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
11839         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
11840         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
11841         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
11842         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
11843         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
11844
11845 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
11846             Richard Henderson  <rth@redhat.com>
11847
11848         PR c/5484
11849         * function.c (assign_temp): Accept either type or decl argument.
11850         Detect variables whose size is too large to fit into an integer.
11851         * stmt.c (expand_decl): Pass the decl, not the type.
11852
11853 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
11854
11855         * protoize.c: Match include directory usage with cppdefault.c.
11856
11857 2002-04-03  Jeffrey A Law  (law@redhat.com)
11858             Hans-Peter Nilsson  <hp@bitrange.com>
11859
11860         * combine.c (simplify_comparison): Avoid narrowing a comparison
11861         with a paradoxical subreg when doing so would drop signficant bits.
11862
11863 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
11864
11865         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
11866         if POINTERS_EXTEND_UNSIGNED is defined.
11867
11868 2002-04-02  Richard Henderson  <rth@redhat.com>
11869
11870         PR opt/3967
11871         * local-alloc.c (contains_replace_regs): LO_SUM may contain
11872         replace regs.
11873
11874 2002-04-02  Richard Henderson  <rth@redhat.com>
11875
11876         * doc/standards.texi: Document required freestanding libc entry points.
11877
11878 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
11879
11880         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
11881         associated splitter.  Remove MQ constraint.
11882         (ctrdi_internal4): Correct CCmode clobber.
11883
11884 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11885
11886         * milli64.S ($$dyncall): New function.
11887         * t-linux (LIB1ASMFUNCS): Revise module list.
11888         (LIB1ASMSRC): Use pa/milli64.S.
11889
11890 2002-04-02  Richard Henderson  <rth@redhat.com>
11891
11892         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
11893         rename solaris_sys_varargs_h.
11894
11895 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11896
11897         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
11898         the same mode as its component.
11899
11900 2002-04-02  Richard Henderson  <rth@redhat.com>
11901
11902         PR opt/190
11903         * final.c (this_is_asm_operands): Export.
11904         * output.h (this_is_asm_operands): Declare.
11905         * config/i386/i386.c (print_operand): Error odd asm operands.
11906
11907 2002-04-02  Richard Henderson  <rth@redhat.com>
11908
11909         PR opt/420
11910         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
11911
11912 2002-04-01  Richard Henderson  <rth@redhat.com>
11913
11914         PR target/1538
11915         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
11916         * fixinc/fixincl.x: Rebuild.
11917
11918 2002-04-01  Richard Henderson  <rth@redhat.com>
11919
11920         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
11921         (atomic_alloc, atomic_free): New.
11922         (SIZE, MASK_FOR, PTR_IN): New.
11923         (emergency_reg_state, emergency_reg_state_free): New.
11924         (emergency_labeled_state, emergency_labeled_state_free): New.
11925         (reg_state_alloced, labeled_state_alloced): New.
11926         (alloc_reg_state, free_reg_state): New.
11927         (alloc_label_state, free_label_state, free_label_states): New.
11928         (push, pop, dup_state_stack, free_state_stack): Use them.
11929         (desc_label_state): Likewise.
11930         (uw_frame_state_for): Free label states and state stack.
11931         (uw_update_reg_address): Eliminate warnings.
11932
11933 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
11934
11935         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
11936         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
11937
11938 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
11939
11940         * c-decl.c (grokdeclarator): Update.
11941         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
11942         * c-tree.h (c_mark_addressable): New.
11943         * c-typeck.c (default_function_array_conversion, build_unary_op,
11944         build_array_ref, convert_for_assignment): Update.
11945         (mark_addressable): Rename.
11946         * calls.c (try_to_integrate, expand_call): Use langhook.
11947         * expr.c (expand_expr): Use langhook.
11948         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
11949         * langhooks.h (struct lang_hooks): New hook.
11950         * stmt.c (expand_asm_operands): Use langhook.
11951         * tree.h (mark_addressable): Remove.
11952 objc:
11953         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
11954
11955 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
11956
11957         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
11958         in previous change.
11959
11960 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
11961
11962         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
11963         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
11964
11965 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
11966
11967         * c-common.c (unsigned_conversion_warning, convert_and_check,
11968         unsigned_type, signed_type, shorten_compare,
11969         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
11970         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
11971         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
11972         New.
11973         * c-decl.c (grokdeclarator): Update.
11974         * c-format.c (check_format_types): Update.
11975         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
11976         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
11977         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
11978         * convert.c (convert_to_integer): Use new hooks.
11979         * expmed.c (make_tree): Use new hooks.
11980         * expr.c (store_expr): Use new hooks.
11981         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
11982         all_ones_mask_p, unextend, fold): Use new hooks.
11983         * langhooks.h (struct lang_hooks_for_types): New hooks.
11984         * tree.h (signed_or_unsigned_type, signed_type,
11985         unsigned_type): Remove.
11986 objc:
11987         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
11988         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
11989
11990 2002-03-31  Richard Henderson  <rth@redhat.com>
11991
11992         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
11993         (desc_frgr_mem): Fix reference to f16-f31.
11994
11995 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11996
11997         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
11998         RTVEC_ELT): Const-ify.
11999         * varray.h (VARRAY_CHECK): Const-ify.
12000         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
12001         ggc_mark_rtvec, ggc_mark): Const-ify.
12002
12003 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12004
12005         * diagnostic.c: Include langhooks-def.h.
12006         * Makefile.in (diagnostic.o): Update.
12007
12008 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
12009
12010         * c-common.c (c_unsafe_for_reeval): Rename.
12011         * c-common.h (c_unsafe_for_reeval): Rename.
12012         * c-decl.c (finish_incomplete_decl): Rename.
12013         (c_init_decl_processing): Don't set langhook.
12014         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12015         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12016         * c-objc-common.c (c_objc_common_init): Don't set langhook.
12017         * c-tree.h (finish_incomplete_decl): Rename.
12018         * langhooks-def.h (lhd_unsafe_for_reeval): New.
12019         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
12020         (LANG_HOOKS_INITIALIZER): Update.
12021         * langhooks.c (lhd_unsafe_For_reeval): New.
12022         * langhooks.h (struct langhooks): New hooks.
12023         * toplev.c (incomplete_decl_finalize_hook): Remove.
12024         (wrapup_global_declarations): Update.
12025         * tree.c (lang_unsafe_for_reeval): Remove.
12026         (unsafe_for_reeval): Update.
12027         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
12028         Remove.
12029 objc:
12030         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12031         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12032
12033 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
12034
12035         * diagnostic.c (print_error_function): Remove.
12036         (default_print_error_function): Rename.
12037         (report_error_function): Update.
12038         * diagnostic.h (print_error_function): Remove.
12039         (default_print_error_function): Remove.
12040         * langhooks-def.h (struct diagnostic_context): Predeclare.
12041         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
12042         (LANG_HOOKS_INITIALIZER): Update.
12043         * langhooks.h (struct diagnostic context): Predeclare.
12044         (struct lang_hooks): New hook.
12045
12046 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12047
12048         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
12049         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
12050         !flag_pic.
12051         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
12052         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
12053         of PIC_OFFSET_TABLE_REGNUM thruout.
12054         * config/rs6000/rs6000.md: Likewise.
12055         * config/rs6000/darwin.h: Likewise.
12056
12057 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12058
12059         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
12060         unsigned HOST_WIDE_INT, not unsigned int.
12061
12062 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12063
12064         PR middle-end/6096, middle-end/6098, middle-end/6099
12065         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
12066         CODE_LABELs.
12067         (fill_slots_from_thread): Likewise.
12068
12069 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12070
12071         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
12072         floating fields in float regs.
12073         (function_arg_record_value_2): Likewise.
12074
12075 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
12076
12077         * config/mmix/mmix.md (define_constants): Remove misleading
12078         FIXME.  Add MMIX_fp_rO_OFFSET.
12079         ("nonlocal_goto_receiver"): Don't have stack-frame address of
12080         saved rO as part of the pattern.  Remove FIXME.
12081         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
12082         here, at output-time.
12083
12084 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12085
12086         PR middle-end/6100
12087         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
12088         REG_BR_PRED.
12089         (output_v9branch): Likewise.
12090
12091 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
12092
12093         * gcc.c: Revert previous patch for now.
12094         * config/i386/djgpp.h: Likewise.
12095
12096 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
12097
12098         * config/mmix/crti.asm (_init): Register _fini with atexit.
12099         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
12100
12101 2002-03-31  Richard Henderson  <rth@redhat.com>
12102
12103         PR target/3997
12104         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
12105         (ASM_OUTPUT_DEF_FROM_DECLS): New.
12106
12107 2002-03-31  Richard Henderson  <rth@redhat.com>
12108
12109         * libgcc2.c (__bb_exit_func): Make static.
12110
12111         * config/alpha/alpha.md (trap): New.
12112
12113 2002-03-31  Richard Henderson  <rth@redhat.com>
12114
12115         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
12116         promoted argument types; build trap.
12117         (expand_builtin_trap): New.
12118         (expand_builtin): Use it.
12119         * stmt.c (expand_nl_goto_receivers): Likewise.
12120         * expr.h (expand_builtin_trap): Declare.
12121         * libfuncs.h (LTI_abort, abort_libfunc): New.
12122         * optabs.c (init_optabs): Init abort_libfunc.
12123
12124 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
12125
12126         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
12127         (LINK_COMMAND_SPEC): ... from here.
12128         (init_gcc_specs): Duplicate it here too, omitting
12129         shared_name in the second copy.
12130         (init_spec): Test for duplicate
12131         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
12132
12133 2002-03-30  David S. Miller  <davem@redhat.com>
12134
12135         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12136         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
12137
12138 2002-03-30  Roger Sayle <roger@eyesopen.com>
12139             Richard Henderson  <rth@redhat.com>
12140
12141         * regmove.c (combine_stack_adjustments_for_block): Avoid
12142         emitting a stack adjustment of zero bytes.  Let delete_insn
12143         update bb->head.
12144
12145 2002-03-30  Richard Henderson  <rth@redhat.com>
12146
12147         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
12148         (sparc_emitting_epilogue): New.
12149         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
12150         * config/sparc/sparc-protos.h: Update.
12151         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
12152         (TARGET_SWITCHES): Update.
12153         * config/sparc/sparc.md (return): Remove.
12154         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
12155         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
12156         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
12157         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
12158         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
12159         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
12160         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
12161         Remove MASK_EPILOGUE.
12162         * doc/invoke.texi: Update.
12163
12164 2002-03-30  Daniel Berlin  <dan@dberlin.org>
12165
12166         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
12167         CPP will start the file for us.
12168
12169 2002-03-30  Richard Henderson  <rth@redhat.com>
12170
12171         PR target/5446
12172         * config/ia64/ia64.c (group_barrier_needed_p): Special case
12173         prologue_allocate_stack.
12174         (ia64_single_set): Use insn codes for recognition of special
12175         cases, not rtl matching.
12176         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
12177
12178 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
12179
12180         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
12181
12182 2002-03-30  Richard Henderson  <rth@redhat.com>
12183
12184         PR target/6032
12185         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
12186         or -fomit-frame-pointer with profiling.
12187         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
12188         (FUNCTION_PROFILER): Do nothing.
12189         (PROFILE_HOOK): New.
12190         * config/sparc/sparc.c (sparc_override_options): Don't check
12191         code models for profiling.
12192         (sparc_function_profiler): Remove.
12193         (sparc_profile_hook): New.
12194         * config/sparc/sparc-protos.h: Update.
12195
12196 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
12197
12198         PR optimization/6086
12199         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
12200         of SUBREG of volatile MEM or because the MEM was mode dependent,
12201         return CLOBBER instead of unmodified SUBREG.
12202
12203 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
12204
12205         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
12206         when not optimizing.
12207
12208         * toplev.c (rest_of_compilation): Cann mark_constant_function
12209         only when optimizing.
12210
12211         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
12212         are NULL.
12213
12214         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
12215         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
12216         (try_optimize_cfg): clear all AUX fields.
12217
12218         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
12219         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
12220         (ix86_address_cost): Be prepared for SUBREGed registers.
12221         (legitimate_address_p): Accept SUBREGed registers.
12222
12223 2002-03-29  Richard Henderson  <rth@redhat.com>
12224
12225         PR target/5672
12226         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
12227
12228 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12229
12230         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
12231         for aggregate and TFmode types.
12232
12233 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
12234
12235         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
12236
12237 2002-03-29  Richard Henderson  <rth@redhat.com>
12238
12239         PR target/5886
12240         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
12241         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
12242
12243 2002-03-29  Richard Henderson  <rth@redhat.com>
12244
12245         PR target/6041
12246         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
12247         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
12248         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
12249         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
12250         conditional.
12251         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
12252
12253 2002-03-29  Dale Johannesen <dalej@apple.com>
12254
12255         * loop.c (combine_movables): Do allow combination of pseudos.
12256
12257 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
12258
12259         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
12260         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
12261         No functional change except ...
12262         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
12263         * doc/install.texi (*-*-freebsd*): Document port configuration.
12264
12265 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12266
12267         * Makefile.in (convert.o, calls.o, expmed.o): Update.
12268         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
12269         Use new hooks.
12270         * builtin-types.def (BT_PTRMODE): Update.
12271         * c-common.c (type_for_size): Rename c_common_type_for_size.
12272         (type_for_mode): Similarly.
12273         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
12274         Use new hook.
12275         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
12276         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
12277         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
12278         Redefine.
12279         * c-typeck.c (common_type, comptypes, default_conversion):
12280         Use new hooks.
12281         * calls.c: Include langhooks.h.
12282         (emit_library_call_value_1): Use new hooks.  Avoid redundant
12283         calls.
12284         * convert.c: Include langhooks.h
12285         (convert_to_pointer, convert_to_integer): Use new hooks.
12286         * except.c (init_eh): Similarly.
12287         * expmed.c: Include langhooks.h.
12288         (expand_mult_add): Use new hooks.
12289         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
12290         try_casesi): Similarly.
12291         * fold-const.c (optimize_bit_field_compare, make_range,
12292         decode_field_reference, fold_truthop, fold): Similarly.
12293         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
12294         put_var_into_stack): Similarly.
12295         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
12296         LANG_HOOKS_TYPE_FOR_SIZE): New.
12297         (LANG_HOOKS_TYPES_INITIALIZER): Update.
12298         * langhooks.h (lang_hooks_for_types): New hooks.
12299         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
12300         * tree.c (get_unwidened, get_narrower): Similarly.
12301         * tree.h (type_for_mode, type_for_size): Remove.
12302         * varasm.c (force_const_mem): Use new hooks.
12303         * utils2.c (nonbinary_modular_operation): Update.
12304 objc:
12305         * objc-act.c (handle_impent): Update.
12306         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
12307         Redefine.
12308
12309 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
12310
12311         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
12312         * config/ia64/ia64.c (basereg_operand): New.
12313         * config/ia64/ia64-protos.h (basereg_operand): Declare.
12314         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
12315
12316 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
12317
12318         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
12319         unwind information when frame_pointer_needed.
12320         (mmix_assemble_integer): Tweak wording in comment.
12321
12322 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12323
12324         * Makefile.in (except.o): Update.
12325         * except.c: Include langhooks.h.
12326         (init_eh): Use langhook.
12327         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
12328         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
12329         (LANG_HOOKS_INITIALIZER): Update.
12330         * langhooks.h (lang_hooks_for_types): New.
12331         (struct lang_hooks): Add it.
12332         * tree.c (make_lang_type_fn, make_lang_type): Remove.
12333         * tree.h (make_lang_type_fn, make_lang_type): Remove.
12334 config:
12335         * alpha/alpha.c: Include langhooks.h.
12336         (alpha_build_va_list): Use langhook.
12337         * d30v/d30v.c: Include langhooks.h.
12338         (d30v_build_va_list): Use langhook.
12339         * i386/i386.c: Include langhooks.h.
12340         (ix86_build_va_list): Use langhook.
12341         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
12342         * s390/s390.c: Include langhooks.h.
12343         (s390_build_va_list): Use langhook.
12344         * stormy16/stormy16.c: Include langhooks.h.
12345         (stormy16_build_va_list): Use langhook.
12346
12347 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
12348
12349         PR c++/5964
12350         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
12351         attributes.
12352         (length): Compute variable length for branches/calls/jumps here.
12353         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
12354         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
12355         define branch_type attribute.
12356         (divsi3_sp32): Maximum length is 6 not 7.
12357         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
12358         call_address_untyped_struct_value_sp32,
12359         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
12360         * config/sparc/sparc.c (empty_delay_slot): New function.
12361         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
12362         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
12363
12364 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
12365
12366         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
12367         nonzero_bits if not needed.
12368         (nonzero_bits) [XOR]: Likewise.
12369         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
12370         reg_last_set_mode and mode are both MODE_INT, but not equal.
12371         (record_value_for_reg): Compute reg_last_set_nonzero_bits
12372         in nonzero_bits_mode for MODE_INT modes.
12373
12374 2002-03-28  Richard Henderson  <rth@redhat.com>
12375
12376         PR target/5715
12377         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
12378         to GAS.  Correct drift between alternatives.
12379
12380 2002-03-28  Richard Henderson  <rth@redhat.com>
12381
12382         PR target/6087
12383         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
12384
12385 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
12386
12387         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
12388         emulation to the linker.
12389
12390 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
12391
12392         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
12393         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
12394
12395 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
12396
12397         * combine.c (simplify_and_const_int): Make sure to apply mask
12398         when force_to_mode returns a constant integer.  PR3311.
12399
12400 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12401
12402         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
12403
12404 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12405
12406         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
12407         and Objective-C Dialect Options.
12408
12409 2002-03-28  Richard Henderson  <rth@redhat.com>
12410
12411         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
12412         comparison should be done vs !=0 not >0 return code.  Tidy cases.
12413
12414 2002-03-28  Richard Henderson  <rth@redhat.com>
12415
12416         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
12417         on to c_expand_body.
12418         * c-tree.h (finish_function): Update decl.
12419         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
12420
12421 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
12422
12423         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
12424
12425 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
12426
12427         * rtlanal.c: Include flags.h
12428         (may_trap_p): Do not mark FP operations if trapping
12429         if !flag_trapping_math
12430         * Makefile.in (rtlanal.o): Add dependency on flag.h
12431         * ifcvt.c (noce_operand_ok): Avoid the lameness.
12432
12433 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
12434
12435         * mips.md: Use dconst1, not 1.0, as first argument of
12436         REAL_VALUE_LDEXP.  Don't use union real_extract.
12437
12438 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
12439
12440         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
12441         rather than $target.  Heed program_prefix and
12442         program_transform_name.  Search for gas in cross-compiler case too.
12443         "test -x" rather than "test -f".
12444         (gcc_cv_ld): Likewise.
12445         (gcc_cv_nm): Heed program_prefix and program_transform_name.
12446         (gcc_cv_objdump): Likewise.
12447         * configure: Regenerate.
12448
12449 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12450
12451         * Makefile.in (attribs.o): Update.
12452         * attribs.c: Include langhooks.h.
12453         (decl_attributes): Use langhook.
12454         * c-decl.c (insert_default_attributes): Rename.
12455         * c-tree.h (c_insert_default_attributes): New.
12456         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
12457         (LANG_HOOKS_INITIALIZER): Update.
12458         * langhooks.h (struct lang_hooks): New hook.
12459         * tree.h (insert_default_attributes): Remove.
12460 objc:
12461         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
12462
12463 2002-03-27  Andreas Schwab  <schwab@suse.de>
12464
12465         * config/i386/i386.c (classify_argument): Also check for
12466         QUAL_UNION_TYPE.
12467
12468 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12469
12470         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
12471         any more.
12472
12473 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12474
12475         * i960.md (ret): Set PC.
12476         (nonlocal_goto): Fix expander.
12477         * builtins.c (epxand_builin_longjmp): Check that we've emitted
12478         some jump or call.
12479
12480 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
12481
12482         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
12483         of libcall regions.
12484
12485 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12486
12487         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
12488         assigning to BLOCK_FOR_INSN directly.
12489
12490 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
12491
12492         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
12493
12494 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12495
12496         * c-common.c (c_expand_expr): Fix prototype.
12497         * c-common.h (c_expand_expr): Always declare, update.
12498         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12499         * c-objc-common.c (c_objc_common_init): No global hook.
12500         * expr.c (expand_expr): Use langhook.
12501         * expr.h (enum expand_modifier): Conditionally declare.
12502         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
12503         (LANG_HOOKS_INITIALIZER): Update.
12504         * langhooks.c (lhd_expand_expr): New.
12505         * langhooks.h (struct lang_hooks): New hook.
12506         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
12507         (lang_independent_init): Don't default hook.
12508 objc:
12509         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12510
12511 2002-03-27  Richard Henderson  <rth@redhat.com>
12512
12513         PR target/6054
12514         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
12515         TARGET_CONST_GP.  Simplify conditions.
12516
12517 2002-03-27  Richard Henderson  <rth@redhat.com>
12518
12519         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12520         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
12521         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
12522
12523 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
12524
12525         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
12526         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
12527         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
12528         Remove unnecessary masks.
12529         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
12530         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
12531         -mwindows, -mdll switches and their negations.
12532
12533 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12534
12535         * gcc-common.c (lang_mark_false_label_stack): Remove.
12536         * ggc.h (lang_mark_false_label_stack): Similarly.
12537
12538 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
12539
12540         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
12541
12542         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
12543         or __rtems_ is defined.
12544
12545 2002-03-26  Richard Henderson  <rth@redhat.com>
12546
12547         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
12548         if a non-trivial load was emitted.
12549         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
12550         in high+extra+low case.
12551
12552 2002-03-26  Richard Henderson  <rth@redhat.com>
12553
12554         * config.gcc (sparc*-solaris): Use float_format=sparc.
12555
12556 2002-03-26  Richard Henderson  <rth@redhat.com>
12557
12558         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12559         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
12560         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
12561         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
12562         (WINT_TYPE_SIZE): Fix at 32.
12563
12564 2002-03-26  Richard Henderson  <rth@redhat.com>
12565
12566         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
12567         until after eh landing pad generation.
12568         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
12569         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
12570
12571 2002-03-26  Richard Henderson  <rth@redhat.com>
12572
12573         * expr.h (ADD_PARM_SIZE): One more convert for INC.
12574
12575 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
12576
12577         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
12578         and warning switches.
12579         (cc1_options):  Likewise.
12580
12581 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
12582
12583         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
12584         Restore more of the signal context.  Set no_reg_stack_frame.
12585         * config/ia64/unwind-ia64.c (unw_state_record):
12586         Add no_reg_stack_frame, comments.
12587         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
12588         (uw_update_context): Adjust bsp when unwinding from leaf,
12589         but not signal frame.
12590
12591 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
12592
12593         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
12594
12595 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
12596
12597         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
12598
12599 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
12600
12601         PR target/5621
12602         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
12603         "Add a pool_range attribute", which was lost during the ARM/Thumb
12604         merge.
12605
12606 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
12607
12608         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
12609         a register into the MAC16 accumulator.
12610
12611 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
12612
12613         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
12614         (Warning Options): Document -Wswitch-enum.
12615         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
12616         -Wswitch.
12617         (warn_switch_enum): Define variables.
12618         * flags.h (warn_switch_enum): Declare variables.
12619         * stmt.c (expand_end_case_type): When warn_switch_enum /
12620         -Wswitch-enum, perform switch checks.
12621         Fix PR c/5044.
12622
12623 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
12624
12625         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
12626         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
12627         (reload_muladdsi_compare0_scratch): Delete.
12628
12629 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
12630
12631         * doc/install.texi (*-*-freebsd*): Update.
12632
12633 2002-03-26  Richard Henderson  <rth@redhat.com>
12634
12635         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
12636         (SUB_PARM_SIZE): Cast DEC to ssizetype.
12637
12638         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
12639         types from the normal argument frame.
12640
12641         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
12642         variable sized objects by reference.
12643         (sparc_va_arg): Receive them by reference too.
12644
12645 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
12646
12647         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
12648         code to not restoring global registers.
12649
12650 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
12651
12652         * Makefile.in (ggc-common.o): Update.
12653         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
12654         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12655         * c-tree.h (c_mark_tree): New.
12656         * ggc-common.c: Include langhooks.h.
12657         (gcc_mark_trees): Use new langhook.
12658         * ggc-callbacks.c: Delete file.
12659         * ggc.h (lang_mark_tree): Remove.
12660         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
12661         (LANG_HOOKS_INITIALIZER): Update.
12662         * langhooks.h (struct lang_hooks): New hook.
12663 objc:
12664         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12665
12666 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
12667
12668         * doc/cpp.texi: Exclude entire Top node from printed manual.
12669         Move option index after directive index.  Insert page breaks
12670         before GFDL and concept index.  Index environment variables
12671         with command line options.
12672         * doc/cppenv.texi: Use @vtable for environment variable list.
12673         Add paragraph explaining semantics of empty elements in path
12674         variables.  Exclude a cross-reference to Fishkill from the
12675         manpage.  Remove an unnecessary cross-reference of the entry
12676         right above the referer.  Don't use @anchor in text that goes
12677         into manpage.
12678         * doc/cppopts.texi: Cross-reference the environment variables
12679         section, not the specific environment variable, for consistency.
12680
12681 2002-03-25  Richard Henderson  <rth@redhat.com>
12682
12683         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
12684         anywhere in the block.  Don't refer to insns that have been
12685         removed from the chain.  Iterate backward through the new insns.
12686         Don't refer to edges that have been removed.
12687
12688 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
12689
12690         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
12691         test for overflow of constant.
12692
12693 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
12694
12695         PR target/2623
12696         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
12697         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
12698         these patterns on arm_archv4.
12699
12700 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
12701
12702         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
12703         int".
12704
12705 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
12706
12707         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
12708         float_handled, float_handler, float_signal, set_float_handler,
12709         and do_float_handler.  Set handler for SIGFPE to crash_signal.
12710         * toplev.h: Don't prototype do_float_handler.
12711
12712         * c-lex.c: Fold parse_float into lex_number.  Make warning
12713         about portability of hex float constants more informative, and
12714         don't issue it on top of a syntax error.
12715         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
12716         their callers.
12717         * real.h: Define REAL_VALUE_ABS here...
12718         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
12719         simplify_unary_real, simplify_binary_real, and
12720         simplify_binary_is2orm1 into their callers.
12721         * tree.c: Fold build_real_from_int_cst_1 into caller.
12722
12723         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
12724
12725         * tsystem.h: Include float.h here...
12726         * libgcc2.c: ... not here.
12727
12728 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
12729
12730         Fixes for: PR bootstrap/3591, target/5676
12731         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
12732         defined.  Do not disable exceptions or rtti.
12733         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
12734         mcore.h.  Disable exceptions and rtti, since they are not
12735         supported by EPOC.
12736
12737 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
12738
12739         * c-decl.c (maybe_build_cleanup): Remove.
12740         * expr.c (expand_expr): Use langhook.
12741         * langhooks-def.h (lhd_return_null_tree,
12742         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
12743         (LANGHOOKS_INITIALIZER): Update.
12744         * langhooks.c (lhd_return_null_tree): New.
12745         * langhooks.h (struct lang_hooks): New hook.
12746         * tree-inline.c (initialize_inlined_parameters): Use langhook.
12747         * tree.h (maybe_build_cleanup): Remove.
12748
12749 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
12750
12751         * regrename.c (build_def_use): Move recog_memoized
12752         before extract_insn.
12753
12754 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
12755
12756         PR target/6043
12757         * expr.c (emit_group_store): Handle storing into CONCAT.
12758
12759 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
12760
12761         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
12762         corresponding MATCH_DUP.
12763
12764 2002-03-24  Richard Henderson  <rth@redhat.com>
12765
12766         * unroll.c (unroll_loop): Zero label_map.
12767
12768         * gcse.c: Include except.h.
12769         * Makefile.in (gcse.o): Update.
12770
12771 2002-03-24  Richard Henderson  <rth@redhat.com>
12772
12773         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
12774         Do resolve_unique_section before shared data clause.
12775
12776 2002-03-24  Richard Henderson  <rth@redhat.com>
12777
12778         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
12779
12780 2002-03-24  Richard Henderson  <rth@redhat.com>
12781
12782         * recog.c (peephole2_optimize): Split blocks when EH insns are
12783         generated in the middle of a block.  Do global life update if
12784         zapped EH edges.
12785
12786 2002-03-24  Richard Henderson  <rth@redhat.com>
12787
12788         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
12789
12790 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
12791
12792         preprocessor/3951
12793         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
12794         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
12795         (init_dependency_output): Don't make no_output decision here.
12796
12797 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
12798
12799         * stmt.c (check_for_full_enumeration_handling): Remove tests of
12800         warn_switch.  Update description.
12801         (expand_end_case_type): Call check_for_full_enumeration_handling
12802         when warn_switch.
12803
12804 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12805
12806         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
12807         (m68hc11_split_move): Call it to see if the source and destination
12808         operands use the same direction auto inc/dec mode, otherwise make the
12809         source an offsetable memory operand and generate an add.
12810
12811 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12812
12813         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
12814         register for operand 2.
12815         ("*subsi3_zero_extendqi"): Likewise.
12816         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
12817         bits so that it is compatible with a pop.
12818         ("*andhi3_gen"): Likewise.
12819         ("xorhi3"): Likewise.
12820
12821 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
12822
12823         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
12824         -pedantic here...
12825         (cpp_post_options): ... not here.
12826
12827 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
12828             Aldy Hernandez  <aldyh@redhat.com>
12829
12830         Removal of separate preprocessor cpp0.
12831
12832         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
12833         cpp0, install-common): Update.
12834         * c-common.c (flag_preprocess_only): New.
12835         (c_common_init): Preprocess for -E.
12836         * c-common.h (flag_preprocess_only): New.
12837         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
12838         * c-objc-common.c (c_init_decl_processing): Exit quickly
12839         for NULL return from c_common_init.
12840         * cpplib.h (cpp_preprocess_file): New.
12841         * cppmain.c (main, general_init, pfile, progname): Remove.
12842         (do_preprocessing): Rename cpp_preprocess_file, don't call
12843         cpp_finish.  Don't close stdout here.
12844         (setup_callbacks): Update prototype.
12845         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
12846         Update.
12847         * tradcpp.c (main): Ignore -quiet.
12848 objc:
12849         * lang-specs.h (default_compilers): Preprocess with cc1obj.
12850
12851 2002-03-24  Richard Henderson  <rth@redhat.com>
12852
12853         PR optimization/5742
12854         * machmode.def: Add inner mode field to complex modes.
12855         * config/mips/mips.c (mips_function_value): Always define.  Add
12856         new argument to handle libcalls.
12857         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
12858         (FUNCTION_VALUE): Likewise.
12859         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
12860         * config/mips/mips-protos.h: Update.
12861
12862 2002-03-23  Richard Henderson  <rth@redhat.com>
12863
12864         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
12865         * config/sparc/sparc-protos.h: Update.
12866         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
12867
12868 2002-03-23  Richard Henderson  <rth@redhat.com>
12869
12870         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
12871         _start or _init begins the text segment.
12872
12873 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
12874
12875         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
12876         not HOST_WIDEST_INT.
12877         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
12878
12879 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
12880
12881         PR java/5489
12882         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
12883         operand argument to output_return_instruction.
12884         * arm.c (arm_print_operand, case 'd'): If the operand is
12885         const_true_rtx then just return.
12886         (arm_print_operand, case 'D'): If the operand is const_true_rtx
12887         then abort.
12888
12889 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
12890
12891         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
12892         (Warning Options): Document -Wswitch-default.
12893         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
12894         -Wswitch.
12895         (warn_switch_default): Define variable.
12896         (warn_switch): Update comment.
12897         * flags.h (warn_switch_default): Declare variable.
12898         (warn_switch): Update comment.
12899         * stmt.c (expand_end_case): Check for and, when
12900         warn_switch_no_default, warn of a missing default case.
12901
12902 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
12903
12904         * real.h (N): Special case 128 bit doubles.
12905
12906         * combine.c (simplify_comparison): When widening modes, ignore
12907         sign extension on CONST_INTs.
12908
12909 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
12910
12911         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
12912         passed to adjust_address.  Fix comment formatting.
12913
12914
12915 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
12916
12917         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
12918         Always make REAL_VALUE_TYPE a struct containing an array of
12919         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
12920         big it is.  Don't declare or use union real_extract.
12921
12922         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
12923         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
12924         (print_operand), config/arm/arm.c (output_move_double),
12925         config/arm/arm.md (consttable_4, consttable_8),
12926         config/romp/romp.c (output_fpops), config/s390/s390.h
12927         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
12928         (xtensa_output_literal): Don't use union real_extract.
12929
12930         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
12931         (sfmode_constant_to_ulong), config/ns32k/merlin.h
12932         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
12933         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
12934         (PRINT_OPERAND): Don't use local version of union
12935         real_extract.
12936
12937         * config/convex/convex.c (check_float_value), config/vax/vax.c
12938         (vax_float_literal), config/m88k/m88k.md (divdf3),
12939         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
12940         config/pdp11/pdp11.c (output_move_quad): Don't do host
12941         arithmetic on target floating point quantities.
12942
12943         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
12944         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
12945
12946         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
12947         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
12948
12949         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
12950         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
12951         INFINITY.
12952         * print-rtl.c (print_rtx): Disable code which needs
12953         floating-point emulator.
12954         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
12955         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
12956         depending on HOST_FLOAT_FORMAT to be defined properly.
12957
12958         * config/1750a/1750a.c (get_double, float_label): Delete.
12959         (print_operand): Delete huge commented-out chunk.  Use
12960         REAL_VALUE_TO_DECIMAL.
12961         * config/1750a/1750a-protos.h: Delete prototypes of deleted
12962         functions.
12963         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
12964         IEEE_FLOAT_FORMAT.
12965         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
12966         Use REAL_VALUE_TO_DECIMAL as ELF version does.
12967         * config/m88k/m88k.c (real_power_of_2_operand,
12968         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
12969         real_extract out of the union; run the input through
12970         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
12971         from that into the union.
12972         * config/pdp11/pdp11.c (output_move_double): Rearrange
12973         parentheses to make automatic indenter happy.
12974
12975         * doc/tm.texi (Cross-compilation): Rename node to "Floating
12976         Point" and rewrite to describe current situation.  Also adjust
12977         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
12978         match code.
12979         * doc/rtl.texi: Adjust cross reference.
12980
12981 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
12982
12983         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
12984         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
12985         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
12986         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
12987         prevent use of sp as a reload register.
12988         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
12989         non_acc_reg_operand.
12990         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
12991         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
12992         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
12993         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
12994
12995 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
12996
12997         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
12998         * cpplex.c (unterminated): Delete.
12999         (parse_string): No string literal may extend over multiple
13000         lines.  Suppress the error when preprocessing assembly.
13001         * cppmain.c (scan_translation_unit): Strings are single-line.
13002
13003         * doc/cpp.texi: Update to match.
13004
13005 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
13006
13007         PR optimization/5854
13008         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
13009         Shut up warnings.
13010         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
13011         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
13012         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
13013         const0 if scratch register was not allocated.
13014         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
13015         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
13016         with GEN_INT (...).
13017         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
13018         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
13019         with GEN_INT (...) everywhere.  Remove constraints in define_split
13020         patterns.
13021         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
13022         require scratch register for setting 0 into regs/non-pushable memory.
13023
13024 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
13025
13026         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
13027         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
13028
13029 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
13030
13031         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
13032         * cppinit.c (cpp_create_reader):  On by default.
13033         (cpp_handle_option):  Handle -W[no-]endif-labels.
13034         (cpp_post_options):  Also enable if -pedantic.
13035         * cpplib.c (do_else):  Use it.
13036         (do_endif):  Likewise.
13037         * doc/cppopts.texi:  Document new option.
13038         * doc/invoke.texi:  Document new option.
13039
13040 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
13041
13042         * config/i386/i386.c, config/i386/i386.md: Change all occurences
13043         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
13044
13045 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
13046
13047         * flow.c (calculate_global_regs_live): Clear aux fields of
13048         ENTRY and EXIT.
13049
13050 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
13051
13052         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
13053         REG or MEM subregs, pass rtx * instead of rtx to it.
13054         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
13055         rtx * instead of rtx to alter_subreg.
13056         * config/m32r/m32r.c (gen_split_move_double): Likewise.
13057         * config/pj/pj.c (pj_output_rval): Likewise.
13058
13059 2002-03-22  Richard Henderson  <rth@redhat.com>
13060
13061         PR target/3177
13062         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
13063         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
13064         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
13065         (ia64_expand_prologue): Look at int_regs, not words, for number
13066         of incomming int regs.
13067
13068 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
13069
13070         * expr.c (expand_expr): A RESULT_DECL is part of a call.
13071
13072 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
13073
13074         * toplev.c (flag_loop_optimize, flag_crossjumping):
13075         New static variables.
13076         (rest_of_compilation): Conditionalize crossjumping and
13077         loop optimizer.
13078         (parse_options_and_default_flags): Default loop_optimize and
13079         crossjumping.
13080         (lang_independent_options): Add -fcrossjumping and -floop-optimize
13081         * invoke.texi (crossjumping, loop-optimize): Document.
13082
13083 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13084
13085         * real.c (eiisneg): Move outside #ifdef NANS.
13086
13087 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
13088
13089         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
13090         frequencies match; avoid match on different loop depths.
13091         (try_crossjump_to_bb): Kill tests that no longer brings time
13092         savings.
13093         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
13094         updating code.
13095         (split_edge): Likewise.
13096
13097         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
13098         variable.
13099
13100         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
13101         * cfgrtl.c: Include insn-config.h
13102         (split_block) Dirtify block in presence of conditional execution
13103
13104 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13105
13106         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
13107         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
13108         (function_arg): Constify CUMULATIVE_ARGS.
13109         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
13110         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
13111         (UNITS_PER_DOUBLE): New macro.
13112         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
13113         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
13114         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
13115         fp_regs and stack_words.
13116         (EABI_FLOAT_VARARGS_P): New macro.
13117         * config/mips/mips.c (struct mips_arg_info): New.
13118         (mips_arg_info): New function.
13119         (function_arg_advance): Use it.  Add adjustment instructions here
13120         rather than in function_arg.
13121         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
13122         for VOIDmode at the beginning of the function.
13123         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
13124         (function_arg_pass_by_reference): Likewise.
13125         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
13126         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
13127         (mips_va_start): Likewise.  Use the new stack_words field of
13128         CUMULATIVE_ARGS to set up overflow area.  Reformat.
13129         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
13130         doubles and other types, aligning the overflow pointer for non-doubles
13131         too.  Remove some code duplication.  Replace hard-coded constants.
13132
13133 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13134
13135         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
13136         (CLASS_UNITS): Undefine.
13137         (CLASS_MAX_NREGS): Use FP_INC.
13138         * config/mips/mips.c (compute_frame_size): Likewise.
13139         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
13140
13141 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
13142
13143         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
13144         prototype, and handle lexing numbers and identifiers.
13145         (parse_identifier): Update to new form of parse_slow.
13146         (parse_number): Fast path only, use parse_slow otherwise.
13147         (_cpp_lex_direct): Update calls to parse_number.
13148
13149 2002-03-21  DJ Delorie  <dj@redhat.com>
13150
13151         * bb-reorder.c (make_reorder_chain_1): Protect against
13152         when redundant edges are omitted.
13153         * predict.c (dump_prediction): Likewise.
13154
13155 2002-03-21  Richard Henderson  <rth@redhat.com>
13156
13157         PR target/5996
13158         * fixinc/inclhack.def (solaris_stdio_tag): New.
13159         * fixinc/fixincl.x: Regenerate.
13160
13161 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
13162
13163         PR c/5597
13164         * c-typeck.c (process_init_element): Flag non-static
13165         initialization of a flexible array member as illegal.
13166
13167 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
13168
13169         * config/rs6000/t-linux64: New.
13170         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
13171         t-ppccomm.  Use t-rs6000 and t-linux64.
13172         (powerpc64-*-gnu* <tmake_file>): Likewise.
13173         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
13174         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
13175         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
13176
13177 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
13178
13179         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
13180         flag_really_no_inline instead of optimize == 0.
13181
13182         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
13183
13184         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
13185
13186         * flags.h (flag_really_no_inline): New.
13187
13188         * c-common.c (c_common_post_options): Initialize
13189         flag_really_no_inline.
13190
13191         * toplev.c (flag_really_no_inline): New.
13192
13193 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
13194
13195         * config/avr/avr.md (length): Fix length computation for
13196         conditional branches.
13197
13198 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
13199
13200         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
13201         sdbout.o, profile.o): Update.
13202         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
13203         langhook.
13204         * c-common.h (gettags): Move here from tree.h.
13205         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
13206         insert_block, getdecls, kept_level_p, global_bindings_p): New.
13207         * dbxout.c (dbxout_init): Use getdecls langhook.
13208         * expr.c (expand_expr): Use insert_block langhook.
13209         * fold-const.c: Include langhooks.h.
13210         (fold_range_test, fold_binary_op_with_conditional_arg,
13211         fold): Use global_bindings_p langhook.
13212         * integrate.c (expand_inline_function): Use insert_block langhook.
13213         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
13214         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
13215         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
13216         LANG_HOOKS_GETDECLS): New.
13217         (LANG_HOOKS_INITIALIZER): Update.
13218         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
13219         langhook.
13220         * langhooks.h (struct lang_hooks_for_decls): New.
13221         (struct lang_hooks): Update.
13222         * profile.c: Include langhooks.h.
13223         (output_func_start_profiler): Use new langhooks.
13224         * sdbout.c: Include langhooks.h.
13225         (sdbout_init, sdbout_finish): Use getdecls langhook.
13226         * stmt.c: Include langhooks.h.
13227         (expand_fixup, fixup_gotos): Use new langhooks.
13228         * stor-layout.c: Include langhooks.h.
13229         (variable_size): Use global_bindings_p langhook.
13230         * toplev.c (compile_file): Use getdecls langhook.
13231         * tree-inline.c (remap_block): Use insert_block langhook.
13232         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
13233         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
13234
13235 2002-03-21  Richard Henderson  <rth@redhat.com>
13236
13237         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
13238         constants in .data when -fpic.
13239
13240 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13241
13242         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
13243         where appropriate.
13244
13245 2002-03-21  Tom Tromey  <tromey@redhat.com>
13246
13247         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
13248
13249 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13250
13251         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
13252
13253         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
13254
13255 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
13256             Richard Henderson  <rth@redhat.com>
13257
13258         PR c/5354
13259         * c-common.c (c_expand_expr): Preserve result of a statement
13260         expression if needed.
13261
13262 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
13263
13264         PR bootstrap/4195
13265         * genrecog.c (maybe_both_true_mode): Remove.
13266         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
13267         * machmode.def (Pmode): Likewise.
13268
13269 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
13270
13271         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
13272         (nonlocal_mentioned_p_1): New function.
13273         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
13274         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
13275         (mark_constant_function): Recognize pure functions.
13276         * rtl.h (global_reg_mentioned_p): New prototype.
13277         * rtlanal.c (global_reg_mentioned_p,
13278         global_reg_mentioned_p_1): New function.
13279
13280 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13281
13282         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
13283         UNIX assert.h.
13284         * fixinc/fixincl.x: Regenerate.
13285
13286 2002-03-20  Jason Merrill  <jason@redhat.com>
13287
13288         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
13289
13290 2002-03-20  Michael Meissner  <meissner@redhat.com>
13291
13292         * doc/invoke.texi (Optimize Options): Document that -O2 sets
13293         -fstrict-aliasing.
13294
13295 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
13296
13297         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
13298         ".literal_position" directive before the constant pool.
13299
13300 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13301
13302         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
13303         Add Craig Rodrigues.
13304         Add Brad Lucier to testers.
13305
13306 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13307
13308         PR target/4792
13309         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
13310         to if_then_else.
13311         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
13312         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
13313         instead of insn_extract.
13314
13315 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13316
13317         PR bootstrap/4192
13318         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
13319
13320         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
13321         stmt if some case has been output.
13322
13323 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13324
13325         PR c/5972
13326         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
13327         movsfcc_1, movdfcc_1): Add %O2.
13328         * config/i386/i386.c (print_operand): Handle %ON.
13329         Print . before float condition codes in Sun as cmov syntax.
13330         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
13331         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
13332         no longer true.
13333
13334 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
13335
13336         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
13337         return instruction if PC was popped.
13338
13339 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
13340
13341         * config/xtensa/xtensa.md: Remove unused type attributes.
13342         (adddi_carry, subddi_carry): Change type attribute to "multi".
13343
13344 2002-03-19  Dale Johannesen  <dalej@apple.com>
13345
13346         PR optimization/5999, middle-end/5731
13347         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
13348         multiplications by reciprocals.
13349
13350 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
13351
13352         * Makefile.in: Update.
13353         * c-common.c: Include langhooks.h.
13354         (inline_forbidden_p): Use new hook.
13355         * diagnostic.c: Include langhooks.h.
13356         (format_with_decl, announce_function,
13357         default_print_error_function): Use new hook.
13358         * dwarf2out.c (dwarf2_name): Use new hook.
13359         * function.c: Include langhooks.h.
13360         (init_function_start): Use new hook.
13361         * langhooks-def.h (lhd_decl_printable_name): New.
13362         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
13363         (LANGHOOKS_INITIALIZER): Update.
13364         * langhooks.c (lhd_decl_printable_name): New.
13365         * langhooks.h (struct lang_hooks): New hook.
13366         * toplev.c (decl_name, decl_printable_name): Remove.
13367         (open_dump_file): Use new hook.
13368         (process_options): Remove old hook.
13369         * tree.h (decl_printable_name): Remove.
13370 objc:
13371         * objc-act.c (objc_init): Remove old hook.
13372         (objc_printable_name): Export.
13373         * objc-act.h (objc_printable_name): New.
13374         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
13375
13376 2002-03-19  Jim Blandy  <jimb@redhat.com>
13377
13378         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
13379         the start_source_file debug hook, not the current line number.
13380
13381 2002-03-19  Richard Henderson  <rth@redhat.com>
13382
13383         * flow.c (EH_USES): Provide default.
13384         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
13385         * doc/tm.texi (EH_USES): New.
13386
13387         * config/ia64/ia64.c (ia64_eh_uses): New.
13388         * config/ia64/ia64-protos.h: Update.
13389         * config/ia64/ia64.h (EH_USES): New.
13390
13391 2002-03-19  Richard Henderson  <rth@redhat.com>
13392
13393         * varasm.c (output_constant_def): Fix stupid typo.
13394
13395 2002-03-19  Richard Henderson  <rth@redhat.com>
13396
13397         PR 5879
13398         * except.c (current_function_has_exception_handlers): New.
13399         * except.h: Declare it.
13400         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
13401         Combine tests that disable all sibcalls for the function.
13402
13403 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
13404
13405         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
13406         for INTEGER_CST.
13407
13408 2002-03-19  Richard Henderson  <rth@redhat.com>
13409
13410         PR 5977, 5991
13411         * config/ia64/ia64.c: Revert 2002-03-01 patch.
13412         * config/ia64/ia64.h (INIT_EXPANDERS): New.
13413
13414 2002-03-19  Jim Blandy  <jimb@redhat.com>
13415
13416         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
13417         name, even if the replacement list contains no tokens, as required
13418         by Dwarf.
13419
13420 2002-03-19  Jason Merrill  <jason@redhat.com>
13421
13422         * varasm.c (globalize_decl): Get the name from the RTL, not
13423         DECL_ASSEMBLER_NAME.
13424
13425         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
13426
13427 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
13428
13429         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
13430         subdi_carry): Define.
13431
13432 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
13433
13434         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
13435         about -fpic/-fPIC if extra_warnings set.
13436
13437 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
13438
13439         * expr.c (expand_expr): Sign-extend CONST_INT generated from
13440         TREE_STRING_POINTER.
13441         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
13442
13443 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13444
13445         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
13446         in favor of SP if FRAME_POINTER_REQUIRED is false.
13447
13448 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
13449
13450         * emit-rtl.c (gen_int_mode): New function.
13451         * rtl.h: Prototype for it.
13452         * combine.c (make_extraction, simplify_comparison), expmed.c
13453         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
13454         (convert_modes, store_field), optabs.c (expand_fix),
13455         simplify-rtx.c (neg_const_int, simplify_unary_real),
13456
13457         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
13458         Use it instead of GEN_INT (trunc_int_for_mode (...)).
13459
13460 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
13461
13462         PR c/5656
13463         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
13464         convert_parm_for_inlining.
13465         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
13466         Define.
13467         * langhooks-def.h: Likewise.
13468         * objc/objc-lang.c: Likewise.
13469         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
13470         function.
13471         * tree-inline.c (initialize_inlined_parameters):
13472         Call convert_parm_for_inlining lang hook if needed.
13473         * c-typeck.c (c_convert_parm_for_inlining): New function.
13474         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
13475
13476 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
13477
13478         * calls.c (precompute_arguments): Do not assume that temporaries
13479         can be destroyed after expanding the argument.
13480         (expand_call): Likewise.
13481
13482 2002-03-15  Eric Christopher  <echristo@redhat.com>
13483
13484         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
13485         Fix register preference on last change.
13486         * config/mips/mips.c (mips_return_in_memory): New function.
13487         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
13488         * config/mips/mips-protos.h: Declare.
13489         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
13490         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
13491
13492 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
13493
13494         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
13495         a register too.
13496         (anddi3, iorsi3): Likewise.
13497
13498         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
13499         use %gprel for symbols that are going to be placed in linkonce
13500         sections.
13501
13502         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
13503         RETURN_ADDRESS_POINTER_REGNUM to $ra.
13504         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
13505         not needed.  Disregard leaf_function_p().
13506         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
13507         mips16 frame pointer.
13508         * config/mips/mips.md (store ra): Only to small SP offsets.
13509         2001-08-22  Graham Stott  <grahams@redhat.com>
13510         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
13511         return a REG rtx for the return address register.
13512
13513 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
13514
13515         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
13516         constant-pool addresses as "mode-dependent".
13517         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
13518
13519 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
13520
13521         PR target/5740
13522         * expr.c (emit_group_load): Use extract_bit_field if
13523         needed for CONCAT arguments.
13524
13525 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
13526
13527         PR target/4863
13528         * arm.md (tablejump): Make this a define_expand.  For PIC add the
13529         offset to the base of the table.
13530         (thumb_tablejump): Matcher for Thumb tablejump insn.
13531         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
13532         as the difference of two labels.
13533         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13534         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
13535         tables in the code.
13536         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
13537         * arm.c (get_jump_table_size): If the table is not in the text
13538         section, return zero.
13539
13540 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
13541
13542         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
13543         of gen_rtx_SUBREG.
13544         (arm_reload_out_hi): Use gen_lowpart instead of
13545         gen_rtx_SUBREG to access QImode components.
13546         * config/arm/arm.md: Disable zero_extend split for QImode
13547         subregs in BIG_ENDIAN mode.
13548         (storehi_bigend): Match use of least significant byte.
13549         (storeinthi): Remove extraneous SUBREG.
13550         Add missing construction of operands[2].
13551         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
13552         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
13553         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
13554
13555 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
13556
13557         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
13558         any_operand.
13559
13560 2002-03-17  Richard Henderson  <rth@redhat.com>
13561
13562         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
13563         explicitly.
13564
13565 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
13566
13567         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
13568         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
13569
13570 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13571
13572         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
13573
13574         * predict.c (estimate_bb_frequencies): Delete unused variables.
13575
13576 2002-03-17  Richard Henderson  <rth@redhat.com>
13577
13578         * config/ia64/ia64.c (ia64_attribute_table): Move before
13579         targetm definition.  Make static.
13580
13581 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
13582
13583         * c-common.h (yyparse, c_common_parse_file): New.
13584         * c-lang.c: Include c-common.h.
13585         (LANG_HOOKS_PARSE_FILE): Redefine.
13586         * c-lex.c: Include c-common.h.
13587         (yyparse): Rename c_common_parse_file.  Call yyparse.
13588         * c-parse.in (yyparse): Remove macro.
13589         * c-tree.h (yyparse_1): Remove.
13590         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
13591         (LANG_HOOKS_INITIALIZER): Update.
13592         * langhooks.h (struct lang_hoooks): New hook parse_file.
13593         * toplev.c (compile_file): Use parse_file hook.
13594         * tree.h (yyparse): Remove.
13595         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
13596
13597 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
13598
13599         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
13600         float_truncate, not fix.
13601         ("*truncdfsf2_real"): Ditto.
13602         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
13603
13604         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
13605
13606 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
13607
13608         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
13609         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
13610         where appropriate.  Make the second reference to
13611         leaf_function_p a function call, as intended.  Reindented.
13612
13613         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
13614         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
13615
13616         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
13617         add register to non-constant into sp.
13618
13619         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
13620         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
13621         (mips16_gp_pseudo_rtx): Lose.
13622         (INIT_EXPANDERS): Deleted.
13623         * config/mips/mips.c (mips_init_machine_status): New.
13624         (mips_free_machine_status): New.
13625         (mips_mark_machine_status): New.
13626         (override_options): Set them.
13627         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
13628         (struct machine_function): ... new.  Replaced all references.
13629         (mips_add_gc_roots): Don't mark them.
13630         (embedded_pic_fnaddr_reg): New, extracted from...
13631         (embedded_pic_offset): ... here.
13632         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
13633         (movsi): Likewise.
13634
13635 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
13636
13637         * cppinit.c: Revert -MD removal.
13638
13639 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13640
13641         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
13642         soft registers by default for 68HC12.
13643         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
13644         when compiling with -fomit-frame-pointer.
13645         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
13646         (expand_epilogue): Likewise.
13647         (m68hc11_gen_rotate): Use exg when rotating by 8.
13648
13649 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13650
13651         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
13652         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
13653         (splits): Remove unused add splits.
13654         ("*addhi3_68hc12"): Tune constraints.
13655         ("addhi_sp"): Try to use X instead of Y in all cases and if the
13656         constant fits in 8-bits and D is dead use abx/aby instructions.
13657         ("*addhi3"): Remove extern declaration of ix_reg.
13658         ("*subsi3"): Optimize and provide new split.
13659         ("subhi3"): Cleanup.
13660         ("*subhi3_sp"): Avoid saving X if we know it is dead.
13661         (arith splits): For 68hc12 save the address register on the stack
13662         and do the arithmetic operation with a pop.
13663
13664 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13665
13666         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
13667         allocating QImode in address registers.
13668         ("*movqi_m68hc11"): Likewise.
13669
13670 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
13671
13672         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
13673
13674 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
13675
13676         * cppinit.c (print_help): Display -MD and -MMD.
13677         Don't display usage string.  Update assertion syntax and
13678         typo.
13679         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
13680         (cpp_handle_option): Update.
13681
13682 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
13683
13684         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
13685         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
13686         and define it so that regardless of target CPU size,
13687         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
13688         of "int" rather than "long."
13689
13690 2002-03-15  Richard Henderson  <rth@redhat.com>
13691
13692         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
13693         size as a tree.
13694
13695 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13696
13697         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
13698         ("tstqi" split): Avoid using memory for tstqi on address register.
13699         (splits): Remove constraints.
13700         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
13701         ("cmpdf", "cmpsf"): Remove since not used.
13702         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
13703         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
13704
13705 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13706
13707         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
13708         ("neghi2"): Tighten constraints.
13709         ("one_cmplsi2"): Optimize and simplify split.
13710         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
13711
13712 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13713
13714         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
13715         and split of AND operation to clear the upper bits.
13716         ("*logicalsi3_zextqi"): Likewise.
13717         ("*logicallhi3_zexthi_ashift8"): Likewise.
13718         ("*logicalsi3_silshr16"): Likewise.
13719         ("logicalsi3_silshl16"): Likewise.
13720         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
13721
13722 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13723
13724         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
13725         (m68hc11_indirect_p): New function.
13726         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
13727         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
13728         TARGET_M6812.
13729         (asm_print_register): Likewise.
13730         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
13731         (m68hc11_indirect_p): Declare.
13732         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
13733         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
13734         (TARGET_SWITCHES): New option -mrelax.
13735         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
13736         destination.
13737         ("iorsi3", "xorsi3"): Likewise.
13738         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
13739         ("*andhi3_mem"): New to handle destination in memory with bclr
13740         and a scratch register.
13741         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
13742         ("*andhi3_const"): New when operand2 is constant.
13743         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
13744         ("*andhi3_gen"): Cleanup of the old "andhi3".
13745         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
13746         ("xorqi3"): Update constraints.
13747
13748 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13749
13750         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
13751         for reg_equiv_memory_loc when the operand is a register that does
13752         not get a hard register (stack location).
13753         (tst_operand): After reload, accept all memory operand.
13754         (symbolic_memory_operand): Fix detection of symbolic references.
13755         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
13756         accept symbols and any constant.
13757
13758 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13759
13760         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
13761         note on the insn that sets the soft frame register.
13762         (must_parenthesize): ix and iy are also reserved names.
13763         (print_operand_address): One more place where parenthesis are required
13764         to avoid confusion with register names.
13765         (m68hc11_gen_movhi): Allow push of stack pointer.
13766         (m68hc11_check_z_replacement): Fix handling of parallel with a
13767         clobber.
13768         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
13769         the replacement register is.
13770         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
13771         and D8_REGS classes.
13772         (MODES_TIEABLE_P): All modes are tieable except QImode.
13773
13774 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13775
13776         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
13777         (___subdi3): Likewise.
13778         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
13779         (__map_data_section): Optimize 68hc11 case.
13780
13781 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13782
13783         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
13784         than a shift to avoid adding a register with itself.
13785         (m68hc11_memory_move_cost): Take into account NO_REGS.
13786         (m68hc11_register_move_cost): Update and use memory move cost
13787         for soft registers.
13788         (m68hc11_address_cost): Make cost of valid offset not 0 so that
13789         it gives more opportunities to cse to optimize.
13790         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
13791         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
13792
13793 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
13794
13795         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
13796         * c-common.def (CLEANUP_STMT): New tree node.
13797         * c-common.h (CLEANUP_DECL): New macro.
13798         (CLEANUP_EXPR): Likewise.
13799         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
13800         * expr.c (expand_expr): Tidy.
13801         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
13802         * tree-inline.c (initialize_inlined_parameters): Clean up
13803         new local variables.
13804
13805 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
13806
13807         PR bootstrap/4128
13808         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
13809         before movrXX only, use reg_overlap_mentioned_p.
13810         Only special case NE if just one insn can be generated.
13811
13812 2002-03-15  Jason Merrill  <jason@redhat.com>
13813
13814         * varasm.c (assemble_variable): Call resolve_unique_section before
13815         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
13816         of error_mark_node.
13817
13818 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
13819
13820         PR target/5170
13821         * arm.md (split pattern for thumb shiftable immediates): Add comment
13822         explaining non-obvious test.
13823
13824 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
13825
13826         PR target/5712
13827         * arm.md (movaddr, movaddr_insn): Delete.
13828
13829 2002-03-15  Jason Merrill  <jason@redhat.com>
13830
13831         * toplev.c (wrapup_global_declarations): Clarify variable handling.
13832         -fkeep-static-consts doesn't apply to comdats.
13833
13834 2002-03-14  Richard Henderson  <rth@redhat.com>
13835
13836         * c-decl.c: Include c-pragma.h.
13837         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
13838         (finish_function): Tidy.
13839         * c-pragma.c: Include c-common.h.
13840         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
13841         (handle_pragma_weak): Use them.
13842         (init_pragma): Register pending_weaks.
13843         * c-pragma.h (maybe_apply_pragma_weak): Declare.
13844         * print-tree.c (print_node): Print DECL_WEAK.
13845         * varasm.c (mark_weak_decls): Remove.
13846         (remove_from_pending_weak_list): Remove.
13847         (add_weak): Remove.
13848         (asm_emit_uninitialised): Call globalize_decl for weak commons.
13849         (weak_decls): Make a tree_list.
13850         (declare_weak): Cons weak_decls directly.
13851         (globalize_decl): Remove weak_decls elements directly.
13852         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
13853         symbols.  Don't pretend to handle aliases.
13854         (init_varasm_once): Update weak_decls registry.
13855         * Makefile.in: Update dependencies.
13856
13857 2002-03-14  Richard Henderson  <rth@redhat.com>
13858
13859         PR target/5312
13860         * config/ia64/ia64.c: Include tm_p.h last.
13861         (gen_nop_type): Remove duplicate definition.
13862         (cycle_end_fill_slots): Set sched_data for second L slot.
13863         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
13864         (nop_cycles_until): Fix typos.
13865
13866 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
13867
13868         PR optimization/5891
13869         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
13870
13871 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
13872
13873         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
13874           descriptors correctly.
13875
13876 2002-03-14  Michael Meissner  <meissner@redhat.com>
13877
13878         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
13879         100, allowing MAX_UNROLLED_INSNS to be overridden.
13880
13881         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
13882         --param.
13883
13884         * unroll.c (params.h): Include.
13885         (MAX_UNROLLED_INSNS): Delete, now in params.h.
13886
13887         * doc/invoke.texi (--param max-unroll-insns): Document.
13888
13889         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
13890
13891 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
13892
13893         * arm.md: Fix warnings about constraints in peepholes and splits.
13894
13895 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
13896
13897         * cpphash.h (struct lexer_state): Remove line_extension member.
13898         * cpplib.c (dequote_string, do_linemarker): New functions.
13899         (linemarker_dir): New data object.
13900         (DIRECTIVE_TABLE): No longer need to interpret #line in
13901         preprocessed source.  Delete obsolete comment about return
13902         values of handlers.
13903         (end_directive, directive_diagnostics, _cpp_handle_directive):
13904         Don't muck with line_extension.
13905         (directive_diagnostics): No need to issue warnings for
13906         linemarkers here.
13907         (_cpp_handle_directive): Issue warnings for linemarkers here,
13908         when appropriate.  Dispatch linemarkers to do_linemarker, not
13909         do_line.
13910         (do_line): Code to handle linemarkers split out to do_linemarker.
13911         Convert escape sequences in filename argument, both places.
13912
13913         * cppmacro.c (quote_string): Rename cpp_quote_string and
13914         export.  All callers changed.
13915         * cpplib.h (cpp_quote_string): Prototype.
13916         * cppmain.c (print_line): Call cpp_quote_string on to_file
13917         before printing it.
13918
13919         * doc/cpp.texi: Document that escapes are now interpreted in
13920         #line and in linemarkers, and that non-printing characters are
13921         converted to octal escapes when linemarkers are generated.
13922
13923 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
13924
13925         * emit-rtl.c (try_split): Use delete_insns.
13926         * recog.c (split_all_insns): Fix terminating condition.
13927
13928 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
13929             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
13930
13931         PR target/5828
13932         * arm.c (arm_output_epilogue): Fix floating-point register save
13933         adjustment when using a frame pointer.
13934
13935 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
13936
13937         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
13938         * config/mips/mips.c (compute_frame_size): Retrofit them here.
13939         (save_restore_insns, mips_expand_epilogue): And here.
13940         (build_mips16_call_stub): And here.
13941         (mips_function_value): Use the new macros to decide whether a single
13942         or complex float can be returned in floating-point registers.  Return
13943         a parallel rtx in the complex case.
13944
13945 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
13946
13947         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
13948         call after liveness analysis.
13949
13950         * recog.c (split_insn): Use delete_insn_and_edges.
13951
13952         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
13953         instructions to have branch prediction notes.
13954         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
13955
13956 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
13957
13958         * configure.in: Don't pass -Wno-long-long to a ADA compiler
13959         that doesn't support it.
13960         * configure: Regenerate.
13961
13962 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
13963
13964         PR target/5626
13965         * config/sparc/sparc.md (normal_branch, inverted_branch,
13966         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
13967         inverted_fp_branch): Adjust calls to output_cbranch.
13968         Set length attribute.
13969         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
13970         output_v9branch.  Set length attribute.
13971         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
13972         predicates.
13973         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
13974         (output_cbranch): Likewise.  Handle far branches.
13975         (output_v9branch): Handle far branches.
13976         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
13977         Adjust prototypes.
13978         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
13979         noov_compare64_op predicates.
13980
13981 2002-03-13  Jason Merrill  <jason@redhat.com>
13982
13983         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
13984         into the function and constify it.
13985         * gthr-dce.h, gthr-solaris.h: Likewise.
13986
13987 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
13988
13989         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
13990         * config/rs6000/rs6000.c (rs6000_va_arg): Use
13991         std_expand_builtin_va_arg if not ABI_V4.
13992
13993 2002-03-13  Jason Merrill  <jason@redhat.com>
13994
13995         * varasm.c (globalize_decl): New fn.
13996         (assemble_start_function): Use it.
13997         (asm_emit_uninitialized): Use it.
13998         (assemble_alias): Use it.
13999         (assemble_variable): Use it.
14000
14001 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
14002
14003         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
14004         2002-03-12 internal visibility change.
14005         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
14006         visibility into SYMBOL_REF_FLAG.
14007
14008 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
14009
14010         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
14011         VOIDmode operand.  Add compile-time optimization for constant results.
14012
14013 2002-03-12  Jason Merrill  <jason@redhat.com>
14014
14015         * c-typeck.c (convert_for_assignment): Don't allow conversions
14016         between pointers and references.  Only allow lvalues to convert to
14017         reference.
14018
14019 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
14020
14021         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
14022         before prologue, to avoid scheduling problems.
14023
14024 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14025
14026         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
14027         (ELIMINABLE_REGS): Add sfp->sp.
14028         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
14029
14030 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14031
14032         PR optimization/5892
14033         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
14034
14035 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14036
14037         * loop.c (basic_induction_var): Don't call convert_modes if mode
14038         classes are different.
14039
14040 2002-03-12  Richard Henderson  <rth@redhat.com>
14041
14042         PR optimization/5901
14043         * function.c (reposition_prologue_and_epilogue_notes): Position
14044         the markers after/before the last/first insn not deleted.
14045
14046 2002-03-12  Richard Henderson  <rth@redhat.com>
14047
14048         PR optimization/5878
14049         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
14050         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
14051         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
14052
14053         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
14054         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
14055         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
14056
14057         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
14058         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
14059         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
14060         also.  Don't set it if not flag_pic.
14061         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
14062         to be INVALID_REGNUM when not used.
14063
14064 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
14065
14066         * expmed.c (store_bit_field): Reset alias set for memory.
14067         (extract_bit_field): Same.
14068
14069 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14070
14071         * c-common.c (c_tree_code_type, c_tree_code_length,
14072         c_tree_code_name, add_c_tree_codes): Delete.
14073         * c-common.h (add_c_tree_codes): Delete.
14074         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
14075         Define.
14076         * c-objc-common.c (c_objc_common_init): Don't call
14077         add_c_tree_codes, instead set lang_unsafe_for_reeval.
14078         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
14079         objc_tree_code_name, add_objc_tree_codes): Delete.
14080         (objc_init): Don't call add_objc_tree_codes.
14081         * objc/objc-lang.c (tree_code_type, tree_code_length,
14082         tree_code_name): Define.
14083         * toplev.c (lang_independent_init): Don't set
14084         tree_code_length[IDENTIFIER_NODE].
14085         * tree.c (tree_code_type, tree_code_length, tree_code_name):
14086         Delete definitions, moved to language front-ends.
14087         * tree.def (IDENTIFIER_NODE): Hardwire the length.
14088         * tree.h (tree_code_type, tree_code_length, tree_code_name):
14089         Const-ify.
14090         (tree_code_length): Change type to unsigned char.
14091
14092 2002-03-12  Richard Henderson  <rth@redhat.com>
14093
14094         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
14095         internal visibility change.
14096
14097 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14098
14099         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
14100         validize_mem() instead of change_address to avoid clobbering
14101         memory attributes.
14102
14103 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
14104
14105         * c-lex.h (position_after_whitespace): Remove.
14106
14107 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
14108
14109         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
14110         (lex_string): Use unsigned char pointers.
14111
14112 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
14113
14114         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
14115         is not a valid memory_operand.
14116
14117 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14118
14119         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
14120         * config/xtensa/lib1funcs.asm: Fix copyright to include
14121         special case for libgcc files.
14122         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
14123         (__divsi3): Likewise.
14124         (__umodsi3): Likewise.
14125         (__modsi3): Likewise.
14126         * config/xtensa/lib2funcs.S: Fix copyright to include
14127         special case for libgcc files.
14128
14129 2002-03-12  Tom Rix  <trix@redhat.com>
14130
14131         * collect2.c (resolve_lib_name): Move outside of
14132         OBJECT_FORMAT_COFF ifdef.
14133         (ignore_library): Same.
14134
14135 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14136
14137         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
14138
14139 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14140
14141         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
14142         to function_section before writing out the constant pool.
14143
14144 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
14145
14146         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
14147         zero_constant.
14148         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
14149
14150 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
14151
14152         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
14153         (adddi3): Likewise.
14154         (movdf): Likewise.
14155         (movdi): Likewise.
14156         (cmpsi splitter): Likewise.
14157         (modsi3): Fail if <= 0.
14158         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
14159         redundant test when HOST_BITS_PER_WIDE_INT != 32.
14160         (reg_or_sub_cint64_operand): Likewise.
14161         (num_insns_constant_wide): Optimize sign extension.
14162         (rs6000_legitimize_address): Likewise.
14163
14164 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
14165
14166         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14167         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14168
14169 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
14170
14171         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
14172         address calculation.
14173
14174 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
14175
14176         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
14177         scratch register to DImode / TImode.
14178         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
14179         register used does not overlap the target.
14180
14181 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14182
14183         * Makefile.in (debug.o): Depend on debug.h.
14184         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
14185         * debug.c (do_nothing_debug_hooks): Likewise.
14186         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
14187         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
14188         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
14189         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
14190         * dwarfout.c (dwarf_debug_hooks): Likewise.
14191         * integrate.c (output_inline_function): Likewise.
14192         * objc/objc-act.c (synth_module_prologue): Likewise.
14193         * sdbout.c (sdb_debug_hooks): Likewise.
14194         * toplev.c (debug_hooks): Likewise.
14195         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14196
14197 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14198
14199         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
14200         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
14201         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
14202         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
14203         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
14204         * defaults.h (POINTER_SIZE): Define.
14205         * doc/tm.texi (POINTER_SIZE): Document default.
14206
14207 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14208
14209         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
14210
14211 2002-03-11  Richard Henderson  <rth@redhat.com>
14212
14213         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
14214         if rebuild_label_notes_after_reload.
14215
14216 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
14217
14218         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
14219         emit pic register load if "internal" visibility.
14220         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
14221         (cris_expand_builtin_va_arg): Do all computations on trees.
14222
14223 2002-03-11  Richard Henderson  <rth@redhat.com>
14224
14225         * rtlanal.c: Include recog.h.
14226         (keep_with_call_p): Fix thinko.
14227         * Makefile.in (rtlanal.o): Update dependencies.
14228
14229 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
14230
14231         * genflags.c (gen_insn): Use IS_VSPACE.
14232         * genoutput.c (output_insn_data): Likewise.
14233         (process_template): Likewise.
14234
14235 2002-03-11  Richard Henderson  <rth@redhat.com>
14236
14237         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
14238
14239 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
14240
14241         * Makefile.in: Update.
14242         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
14243         Update documentation.
14244         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
14245         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
14246
14247 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
14248
14249         * Makefile.in: Give texi2pod its input file as a command line
14250         argument, not on stdin.
14251
14252 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
14253             Daniel Berlin  <dan@dberlin.org>
14254
14255         C++ alias analysis improvement.
14256         * alias.c (record_component_aliases): Record aliases for base
14257         classes too.
14258
14259 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
14260
14261         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
14262
14263 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
14264
14265         * toplev.c (vms_fopen): Remove, not needed.
14266
14267         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
14268
14269         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
14270
14271         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
14272         for FP, already done later.
14273
14274         * toplev.c (debug_args): Add entry for VMS_DEBUG.
14275         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
14276
14277 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
14278
14279         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
14280         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
14281         LARGEST_EXPONENT_IS_NORMAL for the given mode.
14282         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
14283         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
14284         (ediv, emul, eldexp, esqrt): Likewise.
14285         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
14286         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
14287         (saturate): New function.
14288         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
14289         (make_nan): Use a saturation value instead of a NaN if
14290         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
14291         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
14292         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
14293         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
14294         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
14295         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
14296         !ROUND_TOWARDS_ZERO.
14297         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
14298         (ROUND_TOWARDS_ZERO): Document.
14299
14300 2002-03-11  Andreas Jaeger  <aj@suse.de>
14301
14302         * cfg.c (dump_flow_info): Remove unused variable.
14303
14304 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
14305
14306         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
14307         computations on trees.
14308
14309 2002-03-10  Richard Henderson  <rth@redhat.com>
14310
14311         PR 5693:
14312         * reload.c (copy_replacements_1): New.
14313         (copy_replacements): Use it to recurse through the rtx.
14314
14315 2002-03-10  Richard Henderson  <rth@redhat.com>
14316
14317         * loop.c (strength_reduce): Compute number of iterations as
14318         unsigned HOST_WIDE_INT.
14319
14320 2002-03-10  Richard Henderson  <rth@redhat.com>
14321
14322         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
14323         to move away from the end of the block.
14324
14325 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
14326
14327         PR preprocessor/5899
14328         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
14329
14330 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14331
14332         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
14333
14334         * attribs.c (decl_attributes): Fix signed/unsigned warning.
14335
14336 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
14337
14338         * config/mmix/mmix.c: Improve comments.
14339         (mmix_target_asm_function_prologue): Drop variable
14340         empty_stack_frame.  Don't allocate unused slot above fp.
14341         (mmix_target_asm_function_epilogue): Mirror prologue changes.
14342         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
14343         brace in first column.
14344         (enum reg_class): Ditto.
14345         (FIRST_PARM_OFFSET): Now 0.
14346         (USER_LABEL_PREFIX): Remove #if 0:d definition.
14347
14348 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14349
14350         * combine.c (make_extraction): Fix error in last change.
14351
14352 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14353
14354         * c4x.c (c4x_fp_reglist): Const-ify.
14355         * cris.c (cris_print_operand): Likewise.
14356         * i386.c (ix86_va_arg): Likewise.
14357         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
14358         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
14359         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
14360         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
14361         * mcore.h (regno_reg_class): Likewise.
14362         * mips.c (gen_int_relational): Likewise.
14363         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
14364         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
14365         * pdp11.c (move_costs): Likewise.
14366         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
14367         * s390.c (s390_branch_condition_mnemonic, regclass_map):
14368         Likewise.
14369         * s390.h (regclass_map): Likewise.
14370         * sh.c (shift_amounts): Likewise.
14371         * sh.md (rotlsi3): Likewise.
14372
14373 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
14374
14375         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
14376         (ne0+5): Use new clobber to generate proper shift pattern.
14377         Patch by Michael Matz <matz@kde.org>.
14378
14379 2002-03-09  Andreas Schwab  <schwab@suse.de>
14380
14381         * gcc.c (validate_all_switches): Also handle `%W{...}'.
14382
14383 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
14384
14385         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
14386
14387 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
14388
14389         PR middle-end/5877
14390         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
14391         even for non-representable constants.
14392
14393 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14394
14395         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
14396         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
14397         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
14398         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
14399         (pop_function_context): Compute MAY_SHARE parameter for
14400         fixup_var_refs.
14401         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
14402         (gen_mem_addressof): Call fixup_var_refs with new parm.
14403
14404         * combine.c (make_extraction): Don't make extension of CONST_INT.
14405
14406 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
14407
14408         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
14409         in o32 and o64 ABIs.
14410         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
14411         but getting fixed-size structs passed in registers regardless of
14412         padding in o32 and o64 ABIs.
14413
14414         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
14415         offset before loading address of argument passed by transparent
14416         reference.
14417
14418 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14419
14420         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
14421
14422 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
14423
14424         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
14425         marker such that registers after it are saved.
14426
14427 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14428
14429         * sparc.c (arith_4096_operand): Fix error in last change.
14430
14431 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
14432
14433         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
14434         defaults for MEABI.
14435
14436 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
14437
14438         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
14439         vectors.
14440
14441 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
14442
14443         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
14444
14445 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14446
14447         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
14448         removed; fix return value.
14449         * combine.c (combine_instructions): Dirtify blocks where we failed to
14450         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
14451         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
14452
14453 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14454
14455         * gcse.c (insert_insn_end_bb): Fix typo in last change.
14456
14457 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
14458
14459         * recog.c (peephole2_optimize): Re-distribute EH edges.
14460
14461 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
14462
14463         * expr.c (expand_expr): Use unsave lang hook.
14464         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
14465         (LANG_HOOKS_INITIALIZER): Update.
14466         * langhooks.h (struct lang_hooks): New hook unsave.
14467         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
14468         (unsave_expr_1): Remove unused lang_unsave_expr_now.
14469         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
14470         (unsave_expr_now): Remove.
14471         * tree.h (unsave_expr_now, lang_unsave,
14472         lang_unsave_expr_now): Remove.
14473         (lhd_unsave): New.
14474
14475 2002-03-08  Andreas Jaeger  <aj@suse.de>
14476
14477         * flow.c (propagate_block_delete_insn): Remove unused variable.
14478
14479 2002-03-08  Kazu Hirata  <kazu@hxi.com>
14480
14481         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
14482         insn length for memory load/store.
14483
14484 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14485
14486         * doc/install.texi (--with-libiconv-prefix): Document.
14487
14488 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
14489
14490         * doc/sourcebuild.texi: Fix typo.
14491
14492 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
14493
14494         PR c/3711
14495         * builtins.c (std_expand_builtin_va_arg): Do all computations on
14496         trees.
14497
14498 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14499
14500         * rtl.c (copy_most_rtx): Move from here ...
14501         * emit-rtl.c (copy_most_rtx): ... to here.
14502
14503 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
14504
14505         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
14506         SUBTARGET_CPP_SIZE_SPEC.
14507         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
14508
14509         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
14510
14511 2002-03-07  Matt Hiller  <hiller@redhat.com>
14512
14513         * gensupport.c (first_dir_md_include): Renamed from include;
14514         change all references.
14515         (last_dir_md_include): Renamed from last_include; change all
14516         references.
14517         (init_md_reader): Unconditionally initialize base_dir whether or
14518         not filename is a relative path.
14519
14520 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
14521
14522         * config/fp-bit.c (_unord_f2): Compile it in even if
14523         US_SOFTWARE_GOFAST is enabled.
14524
14525         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
14526         NULL_RTX.  Set all HFmode operations as NULL_RTX.
14527         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
14528         NULL_RTX, try reversing the comparison and the operands.
14529
14530 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
14531
14532         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
14533         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
14534         and MATCH_OP_DUP.
14535
14536 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
14537
14538         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
14539
14540 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
14541
14542         * basic-block.h (fixup_abnormal_edges): Declare.
14543         * reload1.c (fixup_abnormal_edges): New function.
14544         * reg-stack.c (convert_regs): Use it.
14545
14546         * gcse.c (insert_insn_end_bb): Handle trapping insns.
14547
14548         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
14549
14550 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
14551
14552         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
14553         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
14554         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
14555         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
14556         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
14557         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
14558         unless x and y could be infinite.
14559         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
14560         Check that the common type of both arguments is a real, even for
14561         targets without unordered comparisons.  Allow an integer argument
14562         to be compared against a real.
14563         (expand_tree_builtin): Use expand_unordered_cmp.
14564         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
14565         * cse.c (fold_rtx): Likewise.  Fix indentation.
14566         * fold-const.c (fold_real_zero_addition_p): New.
14567         (fold): Use it, and the new HONOR_... macros.
14568         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
14569         * jump.c (reversed_comparison_code_parts): After searching for
14570         the true comparison mode, use HONOR_NANS to decide whether it
14571         can be safely reversed.
14572         (reverse_condition_maybe_unordered): Remove IEEE check.
14573         * simplify-rtx.c (simplify_binary_operation): Use the new macros
14574         to decide which simplifications are valid.  Allow the following
14575         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
14576         and (a - -b) to (a + b).
14577         (simplify_relational_operation): Use HONOR_NANS.
14578         * doc/tm.texi: Document the MODE_HAS_... macros.
14579
14580 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
14581
14582         * combine.c (simplify_comparison): If simplifying a logical shift
14583         right and compare with constant, force the comparison to unsigned.
14584
14585 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
14586
14587         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
14588
14589         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
14590         -mabi=no-altivec
14591         (alt_reg_names): Remove % for vrsave.
14592
14593 2002-03-06  Richard Henderson  <rth@redhat.com>
14594
14595         PR optimization/5844
14596         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
14597         if used indicates we've already emitted one copy of an operand.
14598         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
14599         (gen_split): Supply a non-null used.
14600
14601 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
14602
14603         * reload1.c (reload): Unshare all rtl after reload is done.
14604
14605         * simplify-rtx.c (simplify_plus_minus): Do not abort,
14606         but simply fail if the expression is too complex to simplify.
14607         (simplify_gen_binary): Handle simplify_plus_minus failures.
14608
14609 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
14610
14611         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
14612         consistently call delete_trivially_dead_insns after CSE and GCSE;
14613         fix DFI_life dumping; do jump threading after liveness; do crossjumping
14614         after liveness2; update comment in last crossjumping.
14615         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
14616
14617 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
14618
14619         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
14620         after completing fast dead code elimination.
14621
14622         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
14623         COMPARE operator.
14624
14625 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
14626
14627         * version.c:  Fix misplaced leading blanks on first line.
14628
14629 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
14630
14631         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
14632
14633 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
14634
14635         * cfgcleanup.c (mentions_nonequal_regs): New function.
14636         (thread_jump): Use it.
14637         * toplev.c (rest_of_compilation): Run jump threading after
14638         liveness.
14639
14640 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
14641
14642         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
14643         patch.
14644
14645 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
14646
14647         * predict.c (estimate_bb_frequencies): Do not reload the
14648         frequencies from notes.
14649
14650 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
14651
14652         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
14653         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
14654
14655         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
14656         delete_noop_moves): Return indeger.
14657         * flow.c (ndead): New variable.
14658         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
14659         BB argument; update callers.
14660         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
14661         (life_analysis): Do not call purge_all_dead_edges.
14662         (update_life_info): Return number of deleted insns; print statistics.
14663         (update_life_info_in_dirty_blocks): likewise.
14664         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
14665         return number of insns deleted.
14666
14667         * cse.c: Include timevar.h
14668         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
14669         iterate until stabilizes; print statistics; return number of killed
14670         insns.
14671         * Makefile.in: (cse.o): Add timevar.h dependency
14672         * rtl.h (delete_trivially_dead_insns): New.
14673         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
14674         * toplev.c (rest_of_compilation): Update callers.
14675
14676         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
14677         (try_optimize_cfg): Do not update liveness.
14678         (cleanup-cfg): Loop until try_optimize_cfg and dead code
14679         removal stabilizes; use delete_trivially_dead_insns.
14680
14681         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
14682
14683 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
14684
14685         * cppmain.c (setup_callbacks): Disable #pragma and #ident
14686         callbacks when processing assembly language.
14687
14688 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14689
14690         * pa.h (ASM_FILE_END): Define.
14691         * som.h (ASM_FILE_END): Delete.
14692
14693         * pa.c (function_arg): Don't pass floats in general registers in
14694         indirect calls if TARGET_ELF32.
14695
14696 2002-03-05  Richard Henderson  <rth@redhat.com>
14697
14698         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
14699
14700 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
14701
14702         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
14703
14704 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
14705
14706         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
14707         -r command line.  Don't hide any symbols if not building
14708         shared libgcc.
14709
14710 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
14711
14712         * cfg.c (dump_flow_info): Warn about profile mismatches.
14713         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
14714         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
14715
14716 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
14717
14718         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
14719         wide volatile memory by parts.
14720
14721 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
14722
14723         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
14724         is NULL.
14725
14726 2002-03-05  Richard Henderson  <rth@redhat.com>
14727
14728         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
14729
14730 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
14731
14732         * toplev.c (documented_lang_options): Document more
14733         language-specific options.
14734         * doc/invoke.texi (Warning Options): Correct documentation for
14735         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
14736         * c-decl.c (c_decode_option): Use a table to handle warning options.
14737
14738 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
14739
14740         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
14741         parameter to mmix_encode_section_info.
14742         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
14743         relocatably.  Always produce ELF, not mmo if linking relocatably.
14744         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
14745         first is non-zero, don't add symbol prefix.
14746         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
14747         prototype accordingly.
14748
14749 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
14750
14751         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
14752
14753 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
14754
14755         * configure.in: Increase required makeinfo version to 4.1.
14756         * configure: Regenerate.
14757
14758 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
14759
14760         * .cvsignore: Remove *.info* and genrtl*; these files are generated
14761         elsewhere now.
14762
14763 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
14764
14765         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
14766         * doc/invoke.texi: Fix @math uses.
14767
14768 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
14769
14770         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
14771         removal
14772
14773 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
14774
14775         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
14776         (powerpc-*-eabisimaltivec*): Same.
14777
14778         * config/rs6000/t-ppcendian: New.
14779
14780 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14781
14782         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
14783         nonimmediate_src_operand and nonimmediate_lsrc_operand to
14784         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
14785
14786 2002-03-03  Richard Henderson  <rth@redhat.com>
14787
14788         * toplev.c (rest_of_decl_compilation): Revert last two changes.
14789
14790 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
14791
14792         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
14793         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
14794         tree.c, config/m68k/m68k.c:
14795         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
14796         REAL_ARITHMETIC blocks unconditional.  Delete some further
14797         #ifdef blocks predicated on REAL_ARITHMETIC.
14798         * flags.h, toplev.c: Delete remaining references to
14799         flag_pretend_float.
14800
14801         * doc/invoke.texi: Remove documentation of -fpretend-float.
14802         * doc/tm.texi: Describe the various REAL_* macros as provided by
14803         real.h, not by the target configuration files.
14804
14805         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
14806         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
14807         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14808         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
14809         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
14810         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
14811         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
14812         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
14813         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
14814         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
14815         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
14816         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14817         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
14818         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
14819         config/xtensa/xtensa.h:
14820         Do not define, undefine, or mention in comments any of
14821         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
14822         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
14823         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
14824         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
14825         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
14826         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
14827         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
14828         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
14829         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
14830
14831 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14832
14833         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
14834         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
14835         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
14836         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
14837         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
14838         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
14839         Delete.
14840         * defaults.h (BITS_PER_WORD): Define.
14841         * doc/tm.texi (BITS_PER_WORD): Document default value.
14842
14843         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
14844         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
14845         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
14846
14847 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14848
14849         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
14850         lieu of explicit sizeof/sizeof.
14851         * i386.c (override_options, ix86_init_mmx_sse_builtins,
14852         ix86_expand_builtin): Likewise.
14853         * mips.c (mips_add_gc_roots): Likewise.
14854         * mmix.c (mmix_output_condition): Likewise.
14855         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
14856         altivec_init_builtins): Likewise.
14857         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
14858         * cppexp.c (Nsuff, parse_number): Likewise.
14859         * cppinit.c (builtin_array_end): Likewise.
14860         * gcc.c (n_default_compilers, process_command): Likewise.
14861         * genpreds.c (output_predicate_decls): Likewise.
14862         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
14863         * lcm.c (N_ENTITIES): Likewise.
14864         * stor-layout.c (set_sizetype): Likewise.
14865
14866 2002-03-03  Richard Henderson  <rth@redhat.com>
14867
14868         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
14869         for types or labels.
14870
14871 2002-03-03  Richard Henderson  <rth@redhat.com>
14872
14873         * c-decl.c (start_decl): Initialized variables are not common.
14874
14875 2002-03-02  Per Bothner  <per@bothner.com>
14876
14877         * gcc.c (option_map):  Suport new --bootclasspath option.
14878         --CLASSPATH is now just an alias for --classpath.
14879
14880 2002-03-02  Richard Henderson  <rth@redhat.com>
14881
14882         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
14883         load if "internal" visibility.
14884         * doc/extend.texi: Document visibility meanings.
14885
14886 2002-03-02  Richard Henderson  <rth@redhat.com>
14887
14888         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
14889         to functions as well.
14890
14891 2002-03-02  Richard Henderson  <rth@redhat.com>
14892
14893         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
14894         (handle_visibility_attribute): Don't call assemble_visibility.
14895         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
14896         without asmspec.  Invoke assemble_alias when needed.
14897         * varasm.c (maybe_assemble_visibility): New.
14898         (assemble_start_function, assemble_variable, assemble_alias): Use it.
14899
14900 2002-03-02  Richard Henderson  <rth@redhat.com>
14901
14902         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
14903         invoke ENCODE_SECTION_INFO with first call flag.
14904
14905         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
14906         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
14907         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
14908         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
14909         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
14910         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
14911         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
14912         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
14913         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
14914         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
14915         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
14916         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
14917         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
14918         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
14919         config/mcore/mcore-protos.h, config/mcore/mcore.c,
14920         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
14921         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
14922         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
14923         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
14924         config/sh/sh.h, config/sparc/sparc.h,
14925         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
14926         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
14927         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
14928         FIRST argument.  As needed, examine it and do nothing.
14929
14930         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
14931         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14932         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
14933
14934         * config/arm/t-pe (pe.o): Add dependencies.
14935
14936 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14937
14938         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
14939         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
14940         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
14941         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
14942         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
14943         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
14944         * defaults.h (BITS_PER_UNIT): Define.
14945         * doc/tm.texi (BITS_PER_UNIT): Document default value.
14946
14947 2002-03-02  Kazu Hirata  <kazu@hxi.com>
14948
14949         * config/h8300/h8300-protos.h: Add a prototype for
14950         compute_a_shift_length.
14951         * config/h8300/h8300.c (h8300_asm_insn_count): New.
14952         (compute_a_shift_length): Likewise.
14953         (h8300_adjust_insn_length): Do not adjust insn length of shift
14954         insns.
14955         * config/h8300/h8300.md (anonymous shift patterns): Use
14956         compute_a_shift_length.
14957
14958 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14959
14960         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
14961         trunc_int_for_mode.
14962
14963         * emit-rtl.c (offset_address): Call update_temp_slot_address.
14964
14965 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14966
14967         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
14968         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
14969         * flags.h (flag_zero_initialized_in_bss): Declare.
14970         * toplev.c (flag_zero_initialized_in_bss): New flag.
14971         (lang_independent_options): Add flag_zero_initialized_in_bss.
14972         * tree.c (initializer_zerop): New function.
14973         * tree.h (initializer_zerop): Declare.
14974         * varasm.c (assemble_variable): If we can emit bss, put zero
14975         initializers in the bss section.
14976
14977 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
14978
14979         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
14980         like more than one symbol per .weak directive.
14981
14982 2002-03-01  Richard Henderson  <rth@redhat.com>
14983
14984         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
14985         adjust argument_pointer by pretend_args_size.
14986         (ia64_va_start): Adjust va_start address by -pretend_args_size.
14987
14988 2002-03-01  Kazu Hirata  <kazu@hxi.com>
14989
14990         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
14991
14992 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
14993
14994         * toplev.c (rest_of_compilation): Delete dead jumptables before
14995         loop.
14996         * flow.c (delete_dead_jumptables): Make global.
14997         * rtl.h (delete_dead_jumptables): Declare.
14998
14999 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
15000
15001         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
15002         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
15003         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
15004
15005 2002-03-01  Kazu Hirata  <kazu@hxi.com>
15006
15007         * config/h8300/h8300-protos.h: Fix formatting.
15008         * config/h8300/h8300.c: Likewise.
15009         * config/h8300/h8300.h: Likewise.
15010
15011 2002-03-01  Kazu Hirata  <kazu@hxi.com>
15012
15013         * config/h8300/h8300.c (print_operand): Support 16-bit
15014         constant addresses.
15015         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
15016
15017 2002-02-28  Richard Henderson  <rth@redhat.com>
15018
15019         * expmed.c (store_bit_field): Prevent generation of CONCATs;
15020         pun complex values as integers; use gen_lowpart instead of
15021         gen_rtx_SUBREG.
15022         (extract_bit_field): Likewise.
15023
15024 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
15025             David Edelsohn  <edelsohn@gnu.org>
15026
15027         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
15028         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
15029         (SUPPORTS_WEAK): Likewise.
15030         * output.h (add_weak): Add tree param.
15031         * varasm.c (add_weak): Likewise.  Save decl.
15032         (struct weak_syms): Add decl field.
15033         (mark_weak_decls): New function.
15034         (init_varasm_once): ggc_add_root mark_weak_decls.
15035         (assemble_start_function): Use ASM_WEAKEN_DECL.
15036         (assemble_variable): Likewise.
15037         (assemble_alias): Likewise.
15038         (declare_weak): Pass decl to add_weak.
15039         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
15040         (remove_from_pending_weak_list): Declare and define for
15041         ASM_WEAKEN_DECL.
15042         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
15043         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
15044         * defaults.h (SUPPORTS_WEAK): Likewise.
15045         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15046         .weak for code sym.  Do emit .size for descriptor sym.
15047         (ASM_DECLARE_FUNCTION_SIZE): Define.
15048         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
15049         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
15050         .lglobl unless TARGET_XCOFF.  Formatting fixes.
15051         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15052         .weak for code sym.
15053         (HANDLE_PRAGMA_WEAK): Remove.
15054         (ASM_WEAKEN_LABEL): Remove.
15055         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
15056
15057 2002-03-01  Jason Merrill  <jason@redhat.com>
15058
15059         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
15060         (TARGET_EXPR_CLEANUP): New macro.
15061
15062 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
15063
15064         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
15065         to take ptr_extend into account as third type of extension.
15066         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
15067         fields used by SUBREG_PROMOTED_UNSIGNED_P.
15068         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
15069         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
15070         * calls.c (precompute_arguments): Use new macro.
15071         (expand_call): Ditto.
15072         * combine.c (nonzero_bits): Ditto.
15073         (record_promoted_value): Ditto.
15074         * expr.c (store_expr): Ditto.
15075         (expand_expr): Ditto.
15076         * function.c (assign_parms): Ditto.
15077
15078 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
15079
15080         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
15081         override -shared and -shared-libgcc.
15082
15083 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
15084
15085         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
15086         of "ultrasparc".
15087         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
15088         to be broken.
15089
15090 2002-02-28  Richard Henderson  <rth@redhat.com>
15091
15092         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
15093         4 cycle latency from MM producers.
15094         (ia64_internal_sched_reorder): Likewise with pipeline flush.
15095
15096 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
15097
15098         * mklibgcc.in: Don't use GNU make extension.
15099
15100 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
15101
15102         * c-parse.in (STATIC): New terminal.
15103         (scspec): New non-terminal.  Update productions accordingly.
15104         (program): Remove bogus ifc / end ifc.
15105         (array_declarator): Simplify production using STATIC.
15106
15107 2002-02-28  Jim Meyering  <meyering@lucent.com>
15108
15109         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
15110         \a still means TARGET_BELL.
15111
15112 2002-02-28  Richard Henderson  <rth@redhat.com>
15113
15114         * haifa-sched.c (sched_emit_insn): New.
15115         (schedule_block): Use last_scheduled_insn to track last insn.
15116         * sched-int.h (sched_emit_insn): Prototype.
15117         * config/ia64/ia64.c (last_issued): Remove.
15118         (ia64_variable_issue): Don't set it.
15119         (nop_cycles_until): Use sched_emit_insn.
15120
15121 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
15122
15123         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
15124         extended constants.
15125
15126 2002-02-28  Kazu Hirata  <kazu@hxi.com>
15127
15128         * config/h8300/h8300.c: Fix formatting.
15129         * config/h8300/h8300.h: Likewise.
15130
15131 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
15132
15133         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
15134         which may overwrite the high byte of the frame pointer.
15135
15136 2002-02-28  Bo Thorsen  <bo@suse.de>
15137
15138         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
15139         (STARTFILE_SPEC): Add 64 bit files.
15140         (ENDFILE_SPEC): Likewise.
15141
15142 2002-02-28  Jason Merrill  <jason@redhat.com>
15143
15144         * c-decl.c (finish_function): Only warn about missing return
15145         statement with -Wreturn-type.
15146
15147 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
15148
15149         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
15150
15151         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
15152         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
15153
15154 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
15155
15156         * basic-block.h (BB_REACHABLE): Renumber.
15157         (BB_DIRTY, BB_NEW): New flags.
15158         (clear_bb_flags): Declare.
15159         (update_life_info_in_dirty_blocks): Declare.
15160         * cfg.c (clear_bb_flags): New function.
15161         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
15162         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
15163         reorder_insns, emit_insn_after): Mark block as dirty.
15164         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
15165         (update_life_info_in_dirty_blocks): New function.
15166         * recog.c (apply_change_group): Dirtify block.
15167
15168         * cse.c (cse_insn): Reorder emitting of jump insn to keep
15169         cfg consistent.
15170         * gcse.c (delete_null_pointer_checks): Likewise.
15171
15172         * toplev.c (dump_file_index): Move cse2 after bp,
15173         add DFI_null
15174         (dump_file_info): Similary.
15175         (rest_of_compilation): Avoid most of CFG rebuilds;
15176         do first if converision after null pointer checks, do cse2
15177         after branch prediction; avoid full liveness rebuild after
15178         initializing subregs.
15179         * invoke.texi (-d options): Document -du, renumber.
15180
15181         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
15182         (notice_new_block): Do not set BB_UPDATE_LIFE.
15183         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
15184          merge_blocks_move_successor_nojumps, merge_blocks,
15185          try_crossjump_to_edge): Likewise.
15186         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
15187         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
15188         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
15189         (merge_of_block): Do not use life_data_ok.
15190         (find_if_case_1): Do not use SET_UPDATE_LIFE.
15191         (if_convert): Use BB_DIRTY mechanizm to update life.
15192         * lcm.c (optimize_mode_switching): Update
15193         update_life_info_in_dirty_blocks
15194
15195 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
15196
15197         * Makefile.in (integrate.o): Update.
15198         * c-decl.c (copy_lang_decl): Rename.
15199         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15200         * integrate.c: Include langhooks.h.
15201         (copy_decl_for_inlining): Update to use langhook.
15202         * langhooks-def.h (lhd_do_nothing_t,
15203         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
15204         (LANG_HOOKS_INITIALIZER): Update.
15205         * langhooks.c (lhd_do_nothing_t): New.
15206         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
15207         * tree.h (copy_lang_decl): Remove.
15208 objc:
15209         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15210
15211 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
15212
15213         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
15214         POST_DEC, and POST_MODIFY.
15215
15216 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15217
15218         * c-typeck.c (digest_init): Remove unused parameter; all
15219         callers changed.
15220
15221 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
15222
15223         * expmed.c (expand_shift): Correctly test for low part of a
15224         subreg.
15225
15226 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
15227
15228         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
15229         insn UIDs with insn addresses.
15230
15231 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15232
15233         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
15234         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
15235         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
15236         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
15237         gcc.c, toplev.c: Delete code implementing -traditional mode.
15238
15239         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
15240         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
15241         Document removal of -traditional mode for compilation, and
15242         remove documentation only relevant to that mode.
15243
15244         * config/nextstep.h, config/ptx4.h, config/svr4.h,
15245         config/convex/convex.h, config/d30v/d30v.h,
15246         config/i386/dgux.h, config/i386/osf1elf.h,
15247         config/i386/osfelf.h, config/i386/osfrose.h,
15248         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
15249         config/m68k/hp310.h, config/m88k/dgux.h,
15250         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
15251         config/m88k/m88k.h, config/m88k/openbsd.h,
15252         config/mips/abi64.h, config/mips/osfrose.h,
15253         config/mips/svr4-5.h, config/mips/svr4-t.h,
15254         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
15255         config/stormy16/stormy16.h: Remove all references to
15256         -traditional from target specs.  Delete all mention of the
15257         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
15258         delete a couple of commented-out definitions of
15259         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
15260         to -traditional.
15261
15262         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
15263         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
15264
15265 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15266
15267         * mklibgcc.in: Don't use \n in a line subject to
15268         interpretation by echo.
15269
15270 2002-02-27  Graham Stott  <grahams@redhat.com>
15271
15272         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
15273         Constify NAME.
15274
15275         * loop.c (prescan_loop): Handle PARALLEL.
15276
15277         * unroll.c (loop_iterations): Return 0 if the add_val for
15278         a BIV is REG.
15279
15280         * final.c (output_operand_lossage): Constify PFX_STR.
15281
15282         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
15283
15284 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15285
15286         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
15287         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
15288
15289 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
15290
15291         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
15292
15293 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
15294
15295         * cpplex.c (_cpp_lex_token): Handle directives in macro
15296         arguments.
15297         * cpplib.c (_cpp_handle_directive): Save and restore state
15298         if parsing macro args when entering a directive.
15299         * cppmacro.c (collect_args): No need to handle directives
15300         in macro arguments.
15301         (enter_macro_context, replace_args): Use the original macro
15302         definition in case it was redefined whilst collecting arguments.
15303 doc:
15304         * cpp.texi: Update.
15305
15306 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
15307
15308         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
15309         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
15310         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
15311         method on AIX.
15312         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
15313         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
15314         (load_toc_v4_PIC_2): Same.
15315
15316 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
15317
15318         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
15319
15320 2002-02-26  Richard Henderson  <rth@redhat.com>
15321
15322         * config/alpha/alpha.md (ashldi_se): Re-enable.
15323
15324 2002-02-26  Richard Henderson  <rth@redhat.com>
15325
15326         * config/alpha/alpha.c (alpha_encode_section_info): Examine
15327         MODULE_LOCAL_P; improve commentary.
15328
15329 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
15330
15331         * doc/cpp.texi: Clarify documentation of relationship between
15332         #line and #include.
15333
15334 2002-02-26  Kazu Hirata  <kazu@hxi.com>
15335
15336         * config/h8300/h8300-protos.h: Update the prototype for
15337         compute_logical_op_length.  Add the prototype for
15338         compute_logical_op_cc.
15339         * config/h8300/h8300.c (compute_logical_op_length): Figure out
15340         code from operands.
15341         (compute_logical_op_cc): New.
15342         * config/h8300/h8300.md: Combine all the logical op patterns
15343         in HImode and SImode.  Use compute_logical_op_cc.
15344
15345 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
15346
15347         * config/i386/i386.c (print_operand): Don't append ATT-style
15348         length suffixs to x87 opcodes when in Intel mode.
15349
15350 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
15351
15352         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
15353         (init_emit_once): Update calls.
15354         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
15355         (init_syntax_once): Prototype.
15356
15357 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15358
15359         * pa-linux.h (LIB_SPEC): Update definition.
15360         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15361
15362 2002-02-26  Richard Henderson  <rth@redhat.com>
15363
15364         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
15365         if we emitted a stop bit.
15366
15367 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15368
15369         * configure.in (libgcc_visibility): Substitute.
15370         * configure: Rebuilt.
15371         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
15372         defined symbols .hidden.
15373
15374 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15375
15376         * attribs.c (c_common_attribute_table): Add visibility.
15377         (handle_visibility_attribute): New function.
15378         * varasm.c (assemble_visibility): New function.
15379         * output.h (assemble_visibility): Add prototype.
15380         * tree.h (MODULE_LOCAL_P): Define.
15381         * crtstuff.c (__dso_handle): Use visibility attribute.
15382         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
15383         for MODULE_LOCAL_P symbols too.
15384         * config/ia64/ia64.c (ia64_encode_section_info): Handle
15385         MODULE_LOCAL_P symbols the same way as local symbols.
15386         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
15387         into .sdata/.sbss by the user.
15388         * doc/extend.texi (Function Attributes): Document visibility
15389         attribute.
15390
15391 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15392
15393         PR debug/5770
15394         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
15395         STRING_CST initializer spanning the whole variable without
15396         embedded zeros.
15397         If expand_expr returned MEM, don't use it.
15398
15399 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
15400
15401         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
15402         generate a die for the lexical block.
15403
15404 2002-02-26  Kazu Hirata  <kazu@hxi.com>
15405
15406         * config/h8300/h8300-protos.h: Add a prototype for
15407         compute_logical_op_length.
15408         * config/h8300/h8300.c (compute_logical_op_length): New.
15409         * config/h8300/h8300.md (anonymous logical patterns): Use
15410         compute_logical_op_length for length.
15411
15412 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15413
15414         * dwarf2out.c (modified_type_die): Do not call type_main_variant
15415         for vectors.
15416         (gen_type_die): Same.
15417
15418         * attribs.c (handle_vector_size_attribute): Set debug information.
15419
15420 2002-02-26  Daniel Egger  <degger@fhm.edu>
15421
15422         * config/rs6000/rs6000.md: Swap define_insn attributes to
15423         fix incorrect generation of merge high instructions instead
15424         of merge low.
15425
15426 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15427
15428         * c-typeck.c (really_start_incremental_init): Use
15429         bitsize_zero_node for vectors.
15430
15431 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15432
15433         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
15434         ("*set_vrsave_internal"): Same.
15435
15436 2002-02-25  Richard Henderson  <rth@redhat.com>
15437
15438         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
15439         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
15440
15441 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
15442
15443         PR target/5755
15444         * config/i386/i386.c (ix86_return_pops_args): Only pop
15445         fake structure return argument if it was passed on the stack.
15446
15447 2002-02-25  Jason Merrill  <jason@redhat.com>
15448
15449         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
15450         RESULT_DECL.
15451
15452 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
15453
15454         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
15455         link with shared_name only.
15456         * doc/invoke.texi (Link Options): Document new behavior.
15457
15458 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
15459
15460         * c-typeck.c (push_init_level): Handle vectors.
15461
15462 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
15463
15464         * config/sparc/sparc.c (const64_high_operand): Zero-extend
15465         operands of SPARC_SETHI_P.
15466         (input_operand): Likewise.
15467         (sparc_emit_set_const32): Likewise.
15468         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
15469         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
15470         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
15471         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
15472         (movdi_insn_sp64_vis): Likewise.
15473         (movdi split, movdf split): Use SETHI32.
15474         * doc/md.texi: Document SPARC constraints L, M and N.
15475
15476 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
15477
15478         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
15479         ("*set_vrsave_internal"): use mfspr for Darwin.
15480
15481         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
15482         gen_get_vrsave_internal.
15483
15484 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15485
15486         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
15487
15488 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
15489
15490         * cpplex.c (cpp_interpret_charconst): Get signedness or
15491         otherwise of wide character constants correct.
15492         * cppexp.c (lex): Get signedness of wide charconsts correct.
15493
15494 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15495
15496         * optabs.c (widen_operand): Only call convert_modes for
15497         promoted SUBREG if signedness matches.
15498         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
15499
15500 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15501
15502         * cpplib.c (glue_header_name): Use local buffer to build up
15503         header name.
15504
15505 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15506
15507         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
15508
15509 2002-02-23  Kazu Hirata  <kazu@hxi.com>
15510
15511         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
15512         H8/300[HS] separately.
15513         * config/h8300/h8300.md: Remove the early clobber constraint
15514         from bit field patterns.
15515
15516 2002-02-23  Kazu Hirata  <kazu@hxi.com>
15517
15518         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
15519         register_operand.
15520         (mulhisi3): Likewise.
15521         (umulqisi3): Likewise.
15522         (umulhisi3): Likewise.
15523
15524 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15525
15526         * cppinit.c (output_deps): Correct test for stdout output.
15527         (init_dependency_output): Cure warning.
15528
15529 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15530
15531         * expr.c (store_expr): When converting expression to promoted
15532         equivalent type, allow using SUBREG_REG of TARGET as the target
15533         of the expansion of EXP.
15534         * loop.c (basic_induction_var, case SUBREG): Always look inside.
15535         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
15536         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
15537         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
15538         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
15539
15540 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
15541
15542         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
15543         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
15544         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
15545
15546 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
15547
15548         PR optimization/5747
15549         * loop.c (scan_loop): Update reg info if move_movables created new
15550         pseudos.
15551
15552 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
15553
15554         * gcc.c (init_gcc_spec): Revert last change.
15555
15556 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
15557
15558         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
15559         gpc_reg_operand constraint.
15560
15561 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
15562
15563         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
15564         Simplify comparison of `low'.
15565         (add_operand): Fix formatting.
15566         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
15567         (mask_operand): Disallow mask to wrap in 64-bit mode.
15568         (rs6000_stack_info): Remove redundant test setting push_p.
15569         (output_toc): Fix formatting.
15570         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
15571         cc_reg_not_cr0_operand constraint.
15572         (booldi3, boolcdi3 splitters): Same.
15573
15574 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
15575
15576         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
15577
15578 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
15579
15580         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
15581         gcc invoked with -shared-libgcc.
15582
15583 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
15584
15585         PR c++/5748
15586         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
15587         decl if any of elements was TREE_USED.
15588
15589 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
15590
15591         * config/sparc/sol2.h: Don't include sys/mman.h.
15592         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
15593         (arith_4096_operand): Don't throw high bits away.
15594         (const64_operand): Take sign extension of CONST_INTs into account.
15595         (const64_high_operand, sparc_emit_set_const32): Likewise.
15596         (GEN_HIGHINT64): Likewise.
15597         (sparc_emit_set_const64_quick1): Likewise.
15598         (const64_is_2insns): Likewise.
15599         (print_operand): Use trunc_int_for_mode for sign extension.
15600         * config/sparc/sparc.h (SMALL_INT32): Likewise.
15601         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
15602         chars.  Assume CONST_INT is already properly sign-extended.
15603         (movdi split): Sign-extend each SImode part.
15604         (andsi3 split): Don't mask high bits off, so that result
15605         remains properly sign-extend.
15606         (iorsi3 split): Likewise.
15607         (xorsi3 split): Likewise.
15608
15609 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
15610
15611         * fold-const.c (fold): Fix typo in comments.
15612
15613 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
15614
15615         * Makefile.in (langhooks.o): Update dependencies.
15616
15617 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
15618
15619         * langhooks.c: Include flags.h.
15620
15621 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
15622
15623         * testsuite/gcc.dg/attr-alwaysinline.c: New.
15624
15625         * c-common.c (c_common_post_options): Set inline trees by
15626         default.
15627
15628         * doc/extend.texi (Function Attributes): Document always_inline
15629         attribute.
15630         Update documentation about inlining when not optimizing.
15631
15632         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
15633
15634         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
15635         unless DECL_ALWAYS_INLINE.
15636
15637         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
15638         unless DECL_ALWAYS_INLINE.
15639         (c_disregard_inline_limits): Disregard if always_inline set.
15640
15641         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
15642         Disregard if always_inline set.
15643         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
15644         unless DECL_ALWAYS_INLINE.
15645
15646         * attribs.c (handle_always_inline_attribute): New.
15647         (c_common_attribute_table): Add always_inline.
15648
15649         * config/rs6000/altivec.h: Add prototypes for builtins
15650         requiring the always_inline attribute.
15651
15652 2002-02-21  Eric Christopher  <echristo@redhat.com>
15653
15654         * expmed.c (store_bit_field): Try to simplify the subreg
15655         before generating a new one when when the mode size of
15656         value is less than maxmode.
15657
15658 2002-02-21  Richard Henderson  <rth@redhat.com>
15659
15660         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
15661         than gen_rtx_PLUS to form the sum.
15662         * explow.c (force_reg): Rearrange to not allocate new pseudo
15663         when force_operand returns a register.
15664         * expr.c (expand_assignment): Allow offset_rtx expansion to
15665         return a sum.  Do not force addresses into registers.
15666         (expand_expr): Likewise.
15667         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
15668         to canonicalize arithmetic that didn't simpify.
15669         (simplify_plus_minus): New argument force; update
15670         all callers.  Don't split CONST unless we can do something with it,
15671         and wouldn't lose the constness of the operands.
15672
15673         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
15674         that we generated earlier.
15675
15676 2002-02-21  Tom Tromey  <tromey@redhat.com>
15677
15678         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15679         (output_line_info): Use constant `1', with a long explanatory
15680         comment.
15681         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
15682
15683 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
15684
15685         * jump.c (redirect_jump): If old label has no UID, don't try to
15686         delete it.
15687
15688 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
15689
15690         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
15691         If input is constant, do shifts at compile time.
15692
15693 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
15694
15695         * doc/extend.texi: Fix some more overfull hboxes.
15696
15697 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
15698
15699         PR optimization/4994
15700         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
15701         register moves.
15702
15703 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
15704
15705         PR c++/4574
15706         * expr.h (expand_and): Add mode argument.
15707         * expmed.c (expand_and): Add mode argument.
15708         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
15709         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
15710         * except.c (expand_builtin_extract_return_addr): Likewise.
15711         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
15712         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
15713         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
15714         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
15715         * config/c4x/c4x.md: Use GEN_INT (x) instead of
15716         gen_rtx (CONST_INT, VOIDmode, x).
15717
15718 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
15719
15720         PR c/4697:
15721         * stmt.c (warn_if_unused_value): Move side effects test once more.
15722
15723 2002-02-20  Torbjorn Granlund  <tege@swox.com>
15724
15725         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
15726         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
15727
15728 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
15729
15730         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
15731         SUBREG or ZERO_EXTEND.
15732
15733 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
15734
15735         * sh.h (current_function_anonymous_args): Remove.
15736         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
15737         of current_function_varargs and current_function_stdarg is set.
15738         * sh.c (sh_expand_prologue): Check current_function_varargs /
15739         current_function_stdarg / TARGET_SH5 instead of
15740         current_function_anonymous_args.
15741
15742         * sh64.h (TARGET_VERSION): Define.
15743
15744 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
15745
15746         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
15747         VRSAVE_REGNO on TARGET_ALTIVEC.
15748
15749 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
15750
15751         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
15752         bits of SImode const_int.
15753         (includes_rshift_p): Likewise.
15754         (print_operand): Call mask_operand and mask64_operand with correct
15755         mode.
15756         (rs6000_output_function_epilogue): Pad traceback table to word.
15757         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
15758         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
15759         mask64_operand with correct mode.
15760         (FUNCTION_ARG_REGNO_P): Correct parentheses.
15761
15762 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
15763
15764         PR debug/4461
15765         * varasm.c (get_pool_constant_mark): New.
15766         * rtl.h (get_pool_constant_mark): Add prototype.
15767         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
15768         be represented if it has not been output.
15769
15770 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
15771
15772         * combine.c (do_SUBST): Sanity check substitutions of
15773         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
15774         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
15775         CONST_INT into its operand.
15776         (known_cond): Likewise, for ZERO_EXTEND.
15777         * simplify-rtx.c (simplify_unary_operation): Fix condition to
15778         allow for simplification of wide modes.  Reject CONST_INTs in
15779         ZERO_EXTEND when their actual mode is not given.
15780
15781 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
15782
15783         * c-decl.c (pushdecl): If no global declaration is found for an
15784         extern declaration in block scope, try a limbo one.
15785
15786 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
15787
15788         PR c++/4401
15789         * c-common.c (pointer_int_sum): Moved from...
15790         * c-typeck.c (pointer_int_sum): ...here.
15791         * c-common.h (pointer_int_sum): Add prototype.
15792
15793 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
15794
15795         PR c++/5713
15796         * c-decl.c (duplicate_decls): Return 0 if issued error about
15797         redeclaration.
15798
15799 2002-02-20  Roger Sayle  <roger@eyesopen.com>
15800             Jakub Jelinek  <jakub@redhat.com>
15801
15802         PR c/4389
15803         * tree.c (host_integerp): Ensure that the constant integer is
15804         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
15805         when pos is zero or non-zero respectively.  Clarify comment.
15806         * c-format.c (check_format_info_recurse): Fix host_integerp
15807         usage; the pos argument should be zero when assigning to a
15808         signed HOST_WIDE_INT.
15809
15810 2002-02-20  Richard Henderson  <rth@redhat.com>
15811
15812         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
15813         of the operand, rather than assuming TImode.
15814         (ix86_expand_binop_builtin): Cope with commutative patterns
15815         using nonimmediate_operand for both operands.
15816         (ix86_expand_timode_binop_builtin): Likewise.
15817         (ix86_expand_store_builtin): Validate operand 1.
15818         (ix86_expand_unop1_builtin): Likewise.
15819
15820 2002-02-20  Philip Blundell  <philb@gnu.org>
15821
15822         PR 5705
15823         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
15824
15825 2002-02-20  Richard Henderson  <rth@redhat.com>
15826
15827         PR c/5615
15828         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
15829
15830 2002-02-20  Tom Tromey  <tromey@redhat.com>
15831
15832         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15833         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15834         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15835         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15836         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
15837         unconditionally.
15838
15839 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
15840
15841         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
15842           for (const_int 0) in X not just INTVAL.
15843
15844 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
15845
15846         * doc/extend.texi: Avoid or reduce overfull hboxes.
15847
15848 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
15849
15850         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
15851         operations if the field does not start at a mode boundary.
15852
15853 2001-02-20      Joel Sherrill <joel@OARcorp.com>
15854
15855         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
15856         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
15857         Also done for -Acpu and -Amachine.
15858
15859 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
15860
15861         * cppinit.c (init_dependency_output): Take deps output file
15862         from -o if none given with -MF.  Suppress normal output.
15863         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
15864         * doc/cpp.texi, doc/invoke.texi: Update.
15865
15866 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
15867
15868         * toplev.c (output_quoted_string): Write unprintable
15869         characters with octal escapes.
15870
15871 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
15872
15873         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
15874         really_call_used[VRSAVE_REGNO] if not Altivec.
15875
15876 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
15877
15878         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
15879         MODE_MASK.
15880         (constant_pool_expr_1): Fix formatting.
15881         (rs6000_legitimize_reload_address): Likewise.
15882
15883 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15884
15885         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
15886         now that we have one.
15887
15888 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
15889
15890         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
15891         end of first block of bitfields (which was only seven bits);
15892         rename dummy to unused_1; remove comment which is no longer true.
15893
15894 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
15895
15896         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
15897
15898 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
15899
15900         PR 5399
15901         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
15902         if generating PIC.
15903
15904         PR 5054
15905         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
15906         arm_is_longcall_p rather than inspecting call-type cookie
15907         directly.
15908         (call_value_insn) [TARGET_THUMB]: Likewise.
15909
15910 2002-02-19  Graham Stott  <grahams@redhat.com>
15911
15912         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
15913
15914 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
15915
15916         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
15917         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
15918         (FP_SAVE_INLINE): Delete.
15919
15920         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
15921         * config/rs6000/eabi.asm: Remove ABI save restore routines.
15922         * config/rs6000/t-ppccomm: Build crtsavres.o.
15923         * config/rs6000/crtsavres.asm: New file.
15924
15925 2002-02-19  Philip Blundell  <philb@gnu.org>
15926
15927         * config/arm/arm.c (use_return_insn): Don't reject interrupt
15928         functions.
15929         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
15930         (output_return_instruction): Allow interrupt functions to return with
15931         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
15932         (arm_expand_prologue): Subtract 4 before stacking LR in an
15933         interrupt function.
15934
15935 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
15936
15937         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
15938         decl, not just FUNCTION_DECL.
15939         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
15940         (arm_assemble_integer): Likewise.
15941         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
15942         marked local.
15943
15944 2002-02-19  matthew green  <mrg@eterna.com.au>
15945
15946         * config.gcc (sparc-*-netbsdelf*): Enable target.
15947         (sparc64-*-netbsd*): New target.
15948         * config/sparc/netbsd-elf.h: New file.
15949         * config/sparc/t-netbsd64: New file.
15950
15951 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
15952
15953         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
15954
15955 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
15956
15957         * doc/invoke.texi: explicitly list the style guidelines that
15958         -Weffc++ checks for.
15959
15960 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
15961
15962         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
15963
15964 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
15965
15966         PR other/5718
15967         * gcc.c (cpp_unique_options): Treat -o as indicating object file
15968         only if not -E.  If -E, pass -o through to the preprocessor.
15969
15970 2002-02-19  Kazu Hirata  <kazu@hxi.com>
15971
15972         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
15973         register number with an appropriate macro.
15974
15975 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
15976
15977         * doc/rtl.texi (Constants): Close @code tag.
15978
15979 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
15980
15981         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
15982         ("mmx_uavgv4hi3"): Same.
15983         ("pmulhrwv4hi3"): Same.
15984
15985         * tree-inline.c (walk_tree): Handle vectors.
15986
15987         * c-common.c (constant_expression_warning): Handle vectors.
15988         (overflow_warning): Same.
15989
15990         * sched-deps.c (sched_analyze_2): Handle vectors.
15991
15992         * rtlanal.c (rtx_unstable_p): Handle vectors.
15993         (rtx_varies_p): Same.
15994         (count_occurrences): Same.
15995         (regs_set_between_p): Same.
15996         (modified_between_p): Same.
15997         (modified_in_p): Same.
15998         (volatile_insn_p): Same.
15999         (volatile_refs_p): Same.
16000         (side_effects_p): Same.
16001         (may_trap_p): Same.
16002         (inequality_comparisons_p): Same.
16003         (replace_regs): Same.
16004         (computed_jump_p_1): Same.
16005
16006         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
16007         argument.
16008         (inner_mode_array): New.
16009         (copy_rtx): Handle vectors.
16010         (copy_most_rtx): Same.
16011         (rtx_equal_p): Same.
16012         (get_mode_alignment): Adjust for vectors.
16013
16014         * resource.c (mark_referenced_resources): Handle vectors.
16015         (mark_set_resources): Same.
16016
16017         * reload1.c (eliminate_regs): Handle vectors.
16018         (elimination_effects): Same.
16019         (scan_paradoxical_subregs): Same.
16020
16021         * reload.c (subst_reg_equivs): Handle vectors.
16022
16023         * regrename.c (scan_rtx): Handle vectors.
16024
16025         * regclass.c (reg_scan_mark_refs): Handle vectors.
16026
16027         * recog.c (find_single_use_1): Handle vectors.
16028
16029         * local-alloc.c (equiv_init_varies_p): Handle vectors.
16030         (contains_replace_regs): Same.
16031         (memref_referenced_p): Same.
16032
16033         * integrate.c (copy_rtx_and_substitute): Handle vectors.
16034         (subst_constants): Same.
16035
16036         * genattrtab.c (attr_copy_rtx): Handle vectors.
16037         (encode_units_mask): Same.
16038         (clear_struct_flag): Same.
16039         (count_sub_rtxs): Same.
16040
16041         * gcse.c (want_to_gcse_p): Handle vectors.
16042         (oprs_unchanged_p): Same.
16043         (hash_expr_1): Same.
16044         (oprs_not_set_p): Same.
16045         (expr_killed_p): Same.
16046         (compute_transp): Same.
16047         (store_ops_ok): Same.
16048
16049         * function.c (purge_addressof_1): Do not allow paradoxical subregs
16050         of vectors.
16051         (fixup_var_refs_1): Same.
16052         (instantiate_virtual_regs_1): Same.
16053
16054         * fold-const.c (operand_equal_p): Handle vectors.
16055         (fold): Same.
16056         (rtl_expr_nonnegative_p): Same.
16057
16058         * flow.c (mark_used_regs): Handle vectors.
16059
16060         * df.c (df_uses_record): Handle vectors.
16061
16062         * cselib.c (cselib_subst_to_values): Handle vectors.
16063         (cselib_mem_conflict_p): Same.
16064         (hash_rtx): Same.
16065
16066         * cse.c (canon_reg): Handle vectors.
16067         (fold_rt): Same.
16068         (cse_process_notes): Same.
16069         (count_reg_usage): Same.
16070         (canon_hash): Same.
16071
16072         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
16073
16074         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
16075
16076         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
16077         (gen_rtx): Handle CONST_VECTOR.
16078         (gen_const_vector_0): New.
16079         (copy_rtx_if_shared): CONST_VECTORs can be shared.
16080         (reset_used_flags): Same.
16081         (copy_insn_1): Same.
16082         (initializer_constant_valid_p): Handle VECTOR_CST.
16083
16084         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
16085
16086         * doc/rtl.texi (Constants): Document const_vector.
16087         (CONST0_RTX): Update for vectors.
16088         (RTL sharing): Same.
16089
16090         * print-tree.c (print_node): Add case for VECTOR_CST.
16091
16092         * tree.h (TREE_VECTOR_CST_ELTS): New.
16093         (struct tree_vector): New.
16094         (union tree_node): Add vector node.
16095         (build_vector): Add prototype.
16096
16097         * tree.def (VECTOR_CST): New.
16098
16099         * tree.c (build_vector): New.
16100
16101         * expmed.c (make_tree): Handle CONST_VECTOR.
16102
16103         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
16104         (CONST_VECTOR_ELT): New.
16105         (CONST_VECTOR_NUNITS): New.
16106
16107         * machmode.h (GET_MODE_INNER): New.
16108         (DEF_MACHMODE): Accept 8th arg.
16109
16110         * machmode.def: Add 8th argument for vector inner mode.
16111         Add inner vector modes for vectors.
16112
16113         * rtl.def (VEC_CONST): Remove.
16114         (CONST_VECTOR): New.
16115
16116         * expr.c (clear_storage): Allow vectors.
16117         (is_zeros_p): Handle VECTOR_CST.
16118
16119         * varasm.c (output_constant_pool): Handle vectors.
16120         (rtx_const): Add veclo and vechi fields.
16121         (kind): Add RTX_VECTOR.
16122         (decode_rtx_const): Add case for vector.
16123
16124         * config/rs6000/rs6000-protos.h: Add zero_constant.
16125
16126         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
16127         constants.  Force easy vector constants into memory.
16128         (easy_vector_constant): New.
16129         (emit_easy_vector_constant): New.
16130         (rs6000_legitimize_reload_address): Do not generate bad reloads on
16131         darwin.
16132
16133         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
16134         instruction does.
16135         ("altivec_lvxl"): Same.
16136         (altivec_lvebx): Same.
16137         (altivec_lvehx): Same.
16138         (altivec_lvewx): Same.
16139         ("*movv4si_const0"): New.
16140         ("*movv4sf_const0"): New.
16141         ("*movv8hi_const0"): New.
16142         ("*movv16qi_const0"): New.
16143
16144 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16145
16146         * config/h8300/h8300.c (notice_update_cc): Use
16147         cc_status.value2.
16148
16149 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16150
16151         * config/h8300/h8300.md (divmod patterns): Change the
16152         constraints for operands[1] to register_operand.
16153
16154 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16155
16156         * config/h8300/h8300-protos.h: Remove the prototype for
16157         p_operand.
16158         * config/h8300/h8300.c (p_operand): Remove.
16159         * config/h8300/h8300.md: Replace p_operand with
16160         const_int_operand.
16161
16162 2002-02-18 Philip Blundell <pb@nexus.co.uk>
16163
16164         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
16165         comment.
16166         (output_return_instruction): Allow use of LDR to unstack
16167         return addresss even for interrupt handlers or when
16168         interworking.  If compiling for ARMv5, use interworking-safe
16169         return instructions by default.  Remove duplicated code and
16170         lengthy "strcat" sequences.
16171
16172 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16173
16174         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
16175         (LINK_EH_SPEC): Define.
16176         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
16177
16178 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
16179
16180         * config/s390/s390.c (s390_emit_prologue): Do not set the
16181         frame_related flag for call-clobbered registers.
16182
16183 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
16184
16185         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
16186         (construct_container): Fix handling of SSE operands.
16187         (ix86_expand_builtin): Fix handling of 64bit pointers.
16188         (mmx_maskmovq_rex): New pattern.
16189
16190 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
16191
16192         * regrename.c (kill_set_value): Handle subregs properly.
16193
16194 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
16195
16196         * objc/objc-act.c (handle_impent): Remove leading '*'
16197         from objc_class_name.
16198
16199 2002-02-17  Richard Henderson  <rth@redhat.com>
16200
16201         * config/alpha/alpha.c (some_small_symbolic_operand,
16202         some_small_symbolic_operand_1, split_small_symbolic_operand,
16203         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
16204         Handle small SYMBOL_REFs anywhere, not just inside memories.
16205         * config/alpha/alpha-protos.h: Update.
16206         * config/alpha/alpha.h (PREDICATE_CODES): Update.
16207         * config/alpha/alpha.md (small symbolic operand splitter): Update.
16208
16209 2002-02-17  Roland McGrath  <roland@frob.com>
16210
16211         * config.gcc (powerpc-*-gnu-gnualtivec*,
16212         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
16213         * config/rs6000/gnu.h: New file.
16214         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
16215         Grok "gnu" in rs6000_abi_name.
16216         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
16217         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
16218         Grok -mcall-gnu analogous to -mcall-linux et al.
16219         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
16220         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
16221         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
16222
16223 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
16224
16225         PR c/3444:
16226         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
16227         shortening.
16228
16229 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16230
16231         * config/cris/cris.h: Undefine STARTFILE_SPEC and
16232         ENDFILE_SPEC before (re)defining them.
16233
16234 2002-02-17  Kazu Hirata  <kazu@hxi.com>
16235
16236         * config/h8300/h8300.c: Fix formatting.
16237         * config/h8300/h8300.h: Likewise.
16238
16239 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16240
16241         * doc/tm.texi: Explain why empty strings should not be
16242         marked for translation.
16243
16244 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16245
16246         * final.c (output_operand_lossage): Changed to accept
16247         printf style arguments. Change calls where necessary.
16248         * output.h (output_operand_lossage): Change declaration
16249         accordingly. Update copyright.
16250         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
16251         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
16252         Update copyright date where necessary.
16253
16254         * config/i386/i386.c (print_operand): Likewise. Remove use of
16255         sprintf.
16256
16257         * config/cris/cris.c (cris_operand_lossage): Likewise.
16258         Rename parameter so that exgettext recognizes it as
16259         translatable message.
16260         (LOSE_AND_RETURN): Rename parameter to msgid.
16261
16262 2002-02-17  Kazu Hirata  <kazu@hxi.com>
16263
16264         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
16265         hard coded register number with an appropriate macro.
16266         (HARD_REGNO_MODE_OK): Likewise.
16267         (ARG_POINTER_REGNUM): Likewise.
16268         (STATIC_CHAIN_REGNUM): Likewise.
16269         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
16270         * config/h8300/h8300.md (define_constants): Define more
16271         register numbers.
16272
16273 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16274
16275         * config/i386/i386.h: Don't mark empty strings for translation.
16276
16277 2002-02-16  H.J. Lu <hjl@gnu.org>
16278
16279         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
16280
16281 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
16282
16283         * cppinit.c (merge_include_chains): Check for brack being
16284         NULL before attempting to merge it with qtail.
16285
16286 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
16287
16288         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
16289         DBX_DEBUG.
16290
16291 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16292
16293         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
16294
16295 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16296
16297         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
16298         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
16299         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
16300
16301 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16302
16303         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
16304         now only if !TARGET_FIX.
16305         (*movsi_nt_vms_fix): New pattern.
16306
16307 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
16308
16309         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
16310         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
16311         (alpha_sa_mask, alpha_sa_size): Reflect above change.
16312         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
16313         (alpha_start_function, alpha_expand_epilogue): Likewise.
16314         (unicosmk_gen_dsib): Likewise.
16315
16316 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16317
16318         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
16319
16320 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
16321
16322         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
16323         check_and_change_labels, s390_final_chunkify): Delete.
16324         (s390_split_branches, s390_chunkify_pool): New functions.
16325         (s390_function_prologue): Call them.
16326
16327         * config/s390/s390.h (S390_REL_MAX): Delete.
16328         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
16329
16330         * config/s390/s390.md (cjump, icjump, jump): Fix length
16331         attribute calculation.
16332
16333
16334 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
16335
16336         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
16337         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
16338
16339 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16340
16341         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
16342         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
16343         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
16344
16345 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
16346
16347         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
16348
16349 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
16350
16351         * reload.c (find_dummy_reload): Check that an output register
16352         is valid for its mode.
16353
16354 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
16355
16356         * combine.c (known_cond): After replacing the REG of a SUBREG, try
16357         to simplify it.
16358
16359         * function.c (assign_parms): Demote promoted argument passed by
16360         transparent reference.
16361
16362 2001-02-14      Joel Sherrill <joel@OARcorp.com>
16363
16364         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
16365         -Acpu() and -Amachine() to eliminate warnings.
16366
16367 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
16368
16369         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
16370
16371 2002-02-14  Kazu Hirata  <kazu@hxi.com>
16372
16373         * config/h8300/h8300-protos.h: Update the prototype for
16374         const_costs.
16375         * config/h8300/h8300.c (const_costs): Treat SET as a little
16376         more expensive operation.
16377         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
16378         reference to const_costs.
16379
16380 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
16381
16382         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
16383
16384 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
16385
16386         PR c/5503:
16387         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
16388         use arguments from newtype.
16389
16390 2002-02-13  Eric Christopher  <echristo@redhat.com>
16391
16392         * config/mips/mips.c (override_options): Add check for march/mipsX
16393         on the same command line. Fix error message in cpu processing.
16394         Remove architecture and ISA checks.
16395
16396 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
16397
16398         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
16399
16400         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
16401
16402 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
16403
16404         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
16405         alternatives.
16406         ("*movv8hi_internal1"): Same.
16407         ("*movv16qi_internal1"): Same.
16408         ("*movv4sf_internal1"): Same.
16409
16410         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
16411         not push_reload for altivec modes.
16412
16413 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
16414
16415         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
16416         all RTEMS targets including removal of #includes from config/*/rtems*.h
16417         file and adding them to tm_file setting. Added xm_defines=POSIX to
16418         many targets.
16419         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
16420         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
16421         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
16422         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
16423         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
16424         config/m68k/rtemself.h: Ditto.
16425         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
16426         config/mips/rtems64.h: Ditto.
16427         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
16428         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
16429         Ditto.
16430         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
16431         config/sparc/rtemself.h: Ditto.
16432         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
16433         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
16434         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
16435         more like arm-elf.
16436         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
16437         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
16438         target made more similar to i386-elf.
16439         * config/i386/t-rtems-i386: Added soft float support and multilibs.
16440         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
16441         be similar to config/m68k/t-m68kelf.
16442         * gthr-rtems.h: Encapsulate with extern "C" for C++.
16443
16444 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
16445
16446         * regmove.c (kill_value): Handle subregs.
16447
16448 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
16449
16450         * i386.md (mul patterns): Allow memory operand to be first;
16451         add expanders where needed; fix constraints.
16452         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
16453         Allow memory operand to be the first.
16454
16455         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
16456         operands.
16457
16458 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
16459
16460         PR c/5681:
16461         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
16462         GET_MODE (x).
16463
16464 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
16465
16466         PR optimization/5547:
16467         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
16468         all valid IA-32 address modes involving non-scaled %ebx and
16469         GOT/GOTOFF as displacement.
16470
16471 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
16472
16473         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
16474         after emitting ltorg insns.
16475
16476         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
16477         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
16478         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
16479         *abssf2): Fix "op_type" attribute.
16480
16481 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
16482
16483         * mkconfig.sh: Avoid using a subshell redirect.
16484         ($output.T): Change to $(output)T.
16485         (ENABLE_NLS): Remove unneeded undef.
16486
16487         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
16488         * config/alpha/x-vms (libsubdir): Define.
16489
16490         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
16491         register frame procedures. Optimize retrieving context.
16492
16493         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
16494         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
16495         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
16496
16497 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16498
16499         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
16500         Make same change as for find_base_value.
16501
16502 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16503
16504         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
16505         of QImode and SImode.
16506
16507 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16508
16509         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
16510         length computation of movsi.
16511         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
16512
16513 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16514
16515         * config/h8300/h8300.md (subqi3): Tighten the predicate for
16516         operands[2] to register_operand.
16517
16518 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
16519
16520         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
16521
16522 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
16523
16524         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
16525         for altivec_lvx* and altivec_stvx*.
16526         ("*movv4si_internal"): Add constraint for loading from GPRs.
16527         ("*movv8hi_internal1"): Same.
16528         ("*movv16qi_internal1"): Same.
16529         ("*movv4sf_internal1"): Same.
16530
16531         * config/rs6000/rs6000.c (altivec_register_operand): New.
16532
16533         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
16534         altivec_register_operand.
16535
16536 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
16537
16538         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
16539         handle SYMBOL_REF.
16540
16541 2002-02-13  Stan Shebs  <shebs@apple.com>
16542
16543         * c-typeck.c (digest_init): Handle vectors.
16544         (really_start_incremental_init): Same.
16545         (pop_init_level): Same.
16546         (process_init_element): Same.
16547
16548         * varasm.c (output_constant): Same.
16549
16550         * expr.c (clear_storage): Same.
16551         (store_constructor): Same.
16552
16553 2002-02-12  Eric Christopher  <echristo@redhat.com>
16554
16555         * explow.c (hard_function_value): Add comment explaining
16556         signed/unsigned comparison.
16557
16558 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
16559
16560         * jump.c (never_reached_warning): Add finish argument.
16561         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
16562         real insn after end.
16563         * rtl.h (never_reached_warning): Adjust prototype.
16564         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
16565         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
16566         never_reached_warning.
16567
16568 2002-02-12  Graham Stott  <grahams@redhat.com>
16569
16570         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
16571
16572 2002-02-12  Kazu Hirata  <kazu@hxi.com>
16573
16574         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
16575         logical shifts on H8/300.
16576         (shift_alg_si): Improve several shifts on H8/300.
16577         (get_shift_alg): Likewise.
16578
16579 2002-02-12  Graham Stott  <grahams@redhat.com>
16580
16581         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
16582
16583 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16584
16585         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
16586         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
16587
16588 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
16589
16590         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
16591         non-CONST_INT through default_assemble_integer.
16592         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
16593         <case 8>: Abort for CONST_DOUBLE.
16594
16595 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16596
16597         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
16598         is specified.
16599         * config/pa/pa-linux.h (LIB_SPEC): Delete.
16600         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
16601
16602 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
16603
16604         * config/stormy16/stormy16.md (zero_extendqihi2): New.
16605
16606 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
16607
16608         * regrename.c (regrename_optimize): Don't accept a
16609         part-clobbered register if the replaced register is not part
16610         clobbered.
16611
16612         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
16613         take padding into account when computing the argument value.
16614
16615         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
16616
16617         * combine.c (try_combine): Apply substitutions in
16618         CALL_INSN_FUNCTION_USAGE too.
16619
16620 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
16621
16622         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
16623         __builtin_altivec_abs*.
16624         (bdesc_abs): New.
16625
16626         * config/rs6000/rs6000.h (rs6000_builtins): Add
16627         ALTIVEC_BUILTIN_ABS*.
16628
16629         * config/rs6000/altivec.h: Use const char for builtins expecting
16630         literals.
16631         (vec_abs): New versions for C and C++.
16632         (vec_abss): Same.
16633
16634 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16635
16636         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
16637         using Pmode.
16638
16639 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16640
16641         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
16642         constant definition from h8300.md.
16643         (FRAME_POINTER_REGNUM): Likewise.
16644         * config/h8300/h8300.md (define_constants): Add FP_REG.
16645
16646 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16647
16648         * config/h8300/h8300.c (print_operand): Remove redundant code.
16649
16650 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16651
16652         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
16653         * config/h8300/h8300.c (byte_reg): Make it static.
16654
16655 2002-02-10  Richard Henderson  <rth@redhat.com>
16656
16657         PR c/5623
16658         * c-typeck.c (incomplete_type_error): Handle flexible array members.
16659
16660 2002-02-10  Richard Henderson  <rth@redhat.com>
16661
16662         PR c++/5624
16663         * tree.c (append_random_chars): Don't abort if main_input_filename
16664         does not exist.
16665
16666 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
16667
16668         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
16669
16670 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16671
16672         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
16673         (pushhi1): Likewise.
16674
16675 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16676
16677         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
16678         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
16679
16680 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
16681
16682         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
16683         remove MASK_VIS.
16684         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
16685
16686 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16687
16688         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
16689         a half of an SImode register on H8/300.
16690
16691 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
16692
16693         * i386.md (movdi_2): Add missing '!'.
16694
16695 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16696
16697         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
16698         definitions.
16699
16700 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16701
16702         * config/h8300/h8300.md (length): Correct the distance valid
16703         for the short branch.
16704
16705 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16706
16707         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
16708
16709 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
16710
16711         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
16712         registers in SImode.
16713         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
16714         part-clobbered.
16715
16716         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
16717         patch.
16718
16719         Contribute sh64-elf.
16720         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
16721         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
16722         (sh_cannot_modify_jumps_p): New function.
16723         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
16724         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
16725         (sh_ms_bitfield_layout_p): New function.
16726         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
16727                     Zack Weinberg  <zack@codesourcery.com>
16728         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
16729         expand_simple_binop instead of expand_binop.
16730         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
16731         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
16732         use of .quad and .uaquad.
16733         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
16734         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
16735         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
16736         * config/sh/sh.md (movdi_const, movdi_const_32bit,
16737         movdi_const_16bit): Make sure all CONSTs have modes.
16738         (sym2PIC): Ditto, but by adjusting all callers.
16739         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
16740         if the prologue calls the SHmedia argument decoder or register
16741         saver.
16742         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
16743         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
16744         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
16745         (sh_expand_epilogue): Don't emit USE of return target register.
16746         (prepare_move_operands): Legitimize DImode PIC addresses.
16747         (sh_media_register_for_return): Skip tr0, used to initialize the
16748         PIC register.
16749         (sh_expand_prologue): Remove explicit USE of return register.
16750         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
16751         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
16752         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
16753         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
16754         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
16755         EXTRA_CONSTRAINT_T.
16756         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
16757         (MOVI_SHORI_BASE_OPERAND_P): New.
16758         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
16759         (EXTRA_CONSTRAINT_T): Define in terms of them.
16760         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
16761         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
16762         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
16763         alternatives supporting TARGET_REGS.
16764         (UNSPEC_GOTPLT): New constant.
16765         (movdi split): Move incrementing of LABEL_NUSES...
16766         (movdi_const, movdi_const_32bit): Here.  Use
16767         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
16768         (movdi_const_16bit): New.
16769         (call, call_value) [flag_pic]: Use GOTPLT.
16770         (call_pop, call_value_pop): New expands.
16771         (call_pop_compact, call_pop_rettramp): New insns.
16772         (call_value_pop_compact, call_value_pop_rettramp): New insns.
16773         (sibcall) [flag_pic]: Use GOT.
16774         (builtint_setjmp_receiver): Remove bogus, unused expand.
16775         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
16776         (*pt, *ptb, ptrel): New insns.
16777         (sym2GOT): Handle DImode GOT.
16778         (sym2GOTPLT, symGOTPLT2reg): New expands.
16779         (sym2PIC): New expand.
16780         (shcompact_return_tramp): Use GOTPLT to return trampoline.
16781         (shcompact_return_tramp_i): Use return register explicitly.
16782         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
16783         disable flag_reorder_blocks.
16784         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
16785         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
16786         clobbers, for clarity.
16787         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
16788         restoring of r0 in macl as MAYBE_DEAD.
16789         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
16790         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
16791         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
16792         alter_subreg all over.
16793         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
16794         reload, instead of emitting instructions that would require
16795         reloading.
16796         (casesi_load_media): Add missing modes.
16797         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
16798         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
16799         as used if the argument decoder is called.
16800         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
16801         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
16802         Pmode, then extend it to DImode if necessary.
16803         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
16804         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
16805         constants in FPU-enabled SHmedia, let them be loaded from memory.
16806         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
16807         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
16808         Adjust whitespace in assembly output templates.
16809         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
16810         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
16811         mode of if_then_else.
16812         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
16813         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
16814         sh.h.
16815         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
16816                     Joern Rennecke <amylaar@redhat.com>
16817         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
16818         (SUBTARGET_CPP_PTR_SPEC): New.
16819         (SUBTARGET_CPP_SPEC): Remove.
16820         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
16821         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
16822         Fix typo in previous checkin.
16823         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
16824         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
16825         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
16826                     Alexandre Oliva  <aoliva@redhat.com>
16827         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
16828         what single FP register can hold for SHmedia target.
16829         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
16830                     Alexandre Oliva  <aoliva@redhat.com>
16831         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
16832         Do not split into SUBREG.
16833         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
16834         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
16835         and added new functions as specified in SH5 ABI r9.
16836         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
16837         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
16838         8-byte boundary.
16839         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
16840         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
16841         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
16842         and consttable_window_ends.
16843         2001-06-03  Graham Stott  <grahams@redhat,com>
16844         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
16845         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
16846         * config/sh/sh.c (print_operand): Handle floating-point pair,
16847         vector and matrix registers.
16848         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
16849         vector modes into account.
16850         * config/sh/sh.md (movv2sf): Split move between registers into
16851         movdf.
16852         (movv4sf, movv16sf): Introduce insns that get split only after
16853         reload.
16854         * config/sh/shmedia.h: Fix Copyright dates.
16855         * config/sh/ushmedia.h: Likewise.  Move loop counter
16856         declarations into conditionals that uses them.
16857         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
16858         loop boundary.
16859         * config/sh/sshmedia.h: Fix Copyright dates.
16860         (sh_media_PUTCFG): Fix constraints.
16861         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
16862         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
16863         ptrmemfunc_vbit_in_delta for SH5.
16864         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
16865         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
16866         * invoke.texi: Likewise.
16867         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
16868         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
16869         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
16870         GCC_pop_shmedia_regs_nofpu): New global symbols.
16871         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
16872         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
16873         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
16874         compact function with nonlocal labels.
16875         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
16876         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
16877         (initial_elimination_offset): Account for their stack space.
16878         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
16879         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
16880         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
16881         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
16882         least one of the operands to be a register.
16883         (movv2sf): Likewise.  Renamed to movv2sf_i.
16884         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
16885         prepare_move_operands() before emitting SHmedia insns.
16886         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
16887         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
16888         Don't save nor initialize r12.  Don't mis-align the stack.
16889         Pad the code with a nop.
16890         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
16891         stack.
16892         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
16893         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
16894         [__SHMEDIA__]: Implement.
16895         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
16896         * config/sh/sh.md: Set latency of `pt' closer to reality.
16897         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
16898         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
16899         Set move, load and store type attributes.
16900         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
16901         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
16902         profiling.
16903         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
16904         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
16905         * config/sh/sh.c (sh_media_register_for_return): New function.
16906         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
16907         branch-target register.
16908         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
16909         * config/sh/sh.md (return_media_i): Use any call-clobbered
16910         branch-target register.
16911         (return_media): If r18 wasn't copied in the prologue, copy it
16912         here.
16913         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
16914         Clear class FP0_REGS.
16915         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
16916         from elf.h.
16917         2001-03-08  DJ Delorie  <dj@redhat.com>
16918         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
16919         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
16920         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
16921         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
16922         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
16923         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
16924         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
16925         return value correctly for call_cookie.
16926         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
16927         * config/sh/crt1.asm (start): Modified so as to call
16928         ___setup_argv_and_call_main.
16929         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
16930         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
16931         SHmedia mode.
16932         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
16933         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
16934         (STRIP_NAME_ENCODING): Use it.
16935         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
16936         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
16937         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
16938         prepare_scc_operands().
16939         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
16940         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
16941         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
16942         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
16943         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
16944         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
16945         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
16946         used in shcompact_incoming_args.
16947         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
16948         change.
16949         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
16950         mode.
16951         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
16952         Adjust accordingly.
16953         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
16954         Simplify.  Adjust.  Add sanity check.
16955         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
16956         FPU_SINGLE_BIT.
16957         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
16958         TARGET_SHCOMPACT.
16959         (udivsi3, divsi3): Use them.
16960         (force_mode_for_call): New insn.
16961         (call, call_value, sibcall_value): Emit it before SHcompact
16962         calls.
16963         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
16964         * config/sh/sh.md (call, call_value, sibcall): Make sure the
16965         call cookie is non-NULL before taking its value.
16966         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
16967         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
16968         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
16969         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
16970         block.
16971         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
16972         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
16973         temporary for stack adjusts.  Use MACL and MACH to pass
16974         arguments to shcompact_incoming_args.
16975         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
16976         clobber r1.
16977         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
16978         (nested_trampoline): Load static chain address into r1.
16979         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
16980         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
16981         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
16982         fp_arith_reg_operand().
16983         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
16984         * config/sh/sh.md (casesi): Sign-extend the first two operands,
16985         and use signed compares for them.
16986         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
16987         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
16988         ones properly aligned.
16989         (find_barrier): Account for extra alignment needed for 8-byte wide
16990         constants.
16991         (machine_dependent_reorg): Require a label for the second 4-byte
16992         constant after an 8-byte one.
16993         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
16994         change.
16995         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
16996         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
16997         last_float when switching float modes.
16998         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
16999         auto-increment for general-purpose registers.
17000         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
17001         result.
17002         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
17003         for stack adjust.
17004         * config/sh/sh.c (sh_builtin_saveregs): Support using all
17005         registers for varargs.
17006         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
17007         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
17008         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
17009         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
17010         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
17011         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
17012         call_cookie accordingly.
17013         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
17014         (SHCOMPACT_BYREF): Likewise.
17015         (SHCOMPACT_FORCE_ON_STACK): New macro.
17016         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
17017         (sh_builtin_saveregs): Likewise.
17018         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17019         shcompact_incoming_args): Use new shift values.  Support
17020         sequences of consecutive and non-consecutive pushes/pops.
17021         * config/sh/sh.md (return): Don't explicitly use PR_REG.
17022         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
17023         * config/sh/sh.h (TEXT_SECTION): Define.
17024         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
17025         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
17026         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
17027         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
17028         return values on FPU-enabled SHmedia.
17029         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
17030         FPU-enabled SHmedia.
17031         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
17032         value is returned in a non-FP reg and is not returned by
17033         reference.
17034         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
17035         jump_ind.
17036         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
17037         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
17038         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
17039         quad-aligned to be passed by callee-copy reference.
17040         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
17041         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
17042         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
17043         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
17044         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
17045         copying low-numbered FP regs to r7 and r8.
17046         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
17047         FP regs to general-purpose regs only if the copy was passed on the
17048         stack.
17049         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
17050         copying FP reg to r9.
17051         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
17052         copy FP regs to general-purpose regs only in outgoing calls.
17053         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
17054         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
17055         HOST_WIDE_INT.
17056         * config/sh/sh.h (struct sh_args): Document all fields.
17057         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
17058         passed partially on the stack should not consider making
17059         sibcalls.
17060         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
17061         stack_regs only for incoming calls.  When passing FP args,
17062         make sure there are FP regs available before modifying
17063         call_cookie.
17064         (SHCOMPACT_BYREF): Pass double args in general-purpose
17065         registers by reference.
17066         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
17067         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
17068         attempt to generate sibcalls if the caller got any arguments
17069         by reference.
17070         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
17071         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
17072         to 8-byte boundaries.
17073         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
17074         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
17075         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
17076         stored in the stack.
17077         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
17078         for the offsets to have the ISA bit set.
17079         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
17080         invocation.  Use beq instead of bgt to mark end of sequence of
17081         loads.
17082         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
17083         bgt to mark end of sequence of stores.
17084         * config/sh/sh.c (arith_operand): Don't check whether
17085         CONST_OK_FOR_J for now.
17086         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
17087         instead of long for conversion.
17088         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
17089         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
17090         before passing it to fprintf.
17091         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
17092         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
17093         Call set_fpscr before reading/writing SR.
17094         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
17095         Call set_fpscr.
17096         * config/sh/lib1funcs.asm: Add `.align 2' directives before
17097         SHmedia code.
17098         (FMOVD_WORKS): Define on SH5 with FPU.
17099         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
17100         setting.
17101         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
17102         _fpscr_values.
17103         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
17104         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
17105         address.
17106         (ia_main_table): Ditto.
17107         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
17108         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
17109         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
17110         the definitions from sh.h.
17111         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
17112         TARGET_SH5.
17113         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
17114         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
17115         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
17116         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
17117         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
17118         Increment LABEL_NUSES.
17119
17120         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
17121         TARGET_SH5.
17122         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
17123         defined.
17124         * config/sh/elf.h (SIZE_TYPE): Likewise.
17125         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
17126         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17127         shcompact_incoming_args): Load switch table addresses using
17128         datalabel.
17129         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
17130         (NO_BUILTIN_SIZE_TYPE): Define.
17131         (SIZE_TYPE): Don't define.
17132         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
17133         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
17134         definition of __SH5__=32 for -m5-compact-nofpu.
17135         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
17136         ADDR_DIFF_VEC.
17137         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
17138         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
17139         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
17140         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
17141         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
17142         (INSN_LENGTH_ALIGNMENT): Likewise.
17143         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17144         * config/sh/sh.md (call, call_value, sibcall): Simplify
17145         copying of non-branch-target register.
17146         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17147         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
17148         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
17149         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17150         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
17151         floating-point values as structs.
17152         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
17153         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
17154         general-purpose register.
17155         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
17156         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
17157         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
17158         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
17159         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
17160         (ENCODE_SECTION_INFO): Enclose variables and constants in
17161         DATALABEL unspecs.
17162         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
17163         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
17164         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
17165         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
17166         only for LABEL_REFs.  For SYMBOL_REFs, prepend
17167         SH_DATALABEL_ENCODING to the symbol name.
17168         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
17169         convert_mode().
17170         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
17171         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
17172         UNSPEC_DATALABEL.
17173         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
17174         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
17175         (DATALABEL_REF_P): Don't require CONST.
17176         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
17177         REL label.
17178         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
17179         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
17180         right.
17181         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
17182         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
17183         Use shallow_copy_rtx and PUT_MODE to change the mode of
17184         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
17185         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
17186         on SHmedia using GENERAL_REGs.
17187         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17188         bltu_media_i): Fix reversion of conditions.
17189         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
17190         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
17191         * config/sh/sh.c (output_far_jump): Save r13 in macl.
17192         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
17193         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
17194         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
17195         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
17196         (GCC_nested_trampoline): Likewise.
17197         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
17198         * config/sh/sh.c (gen_datalabel_ref): Define.
17199         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
17200         (INITIALIZE_TRAMPOLINE): Likewise.
17201         (TRAMPOLINE_ADJUST_ADDRESS): Define.
17202         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
17203         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
17204         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
17205         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
17206         (ic_invalidate): Adjust for SH5.
17207         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
17208         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
17209         _nested_trampoline.
17210         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
17211         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
17212         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
17213         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
17214         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
17215         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
17216         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
17217         * config/sh/sh.c (target_reg_operand): Match only target-branch
17218         registers and pseudos that aren't virtual registers.
17219         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17220         Copy operands that don't match target_reg_operand to pseudos.
17221         (call_media, call_value_media, sibcall_media): Use
17222         target_reg_operand instead of target_operand.
17223         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
17224         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
17225         * config/sh/sh.c (target_reg_operand): Match hardware registers
17226         other than branch-target registers.
17227         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
17228         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
17229         (fpscr_values) [SH5 == 32]: Define.
17230         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
17231         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17232         Handle function addresses coming in SUBREGs.
17233         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
17234         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17235         shcompact_return_trampoline): Use datalabel where appropriate.
17236         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
17237         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
17238         general-purpose register to copy one branch-target register to
17239         another.
17240         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
17241         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
17242         SYMBOL_REFs with VOIDmode.
17243         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17244         bltu_media_i): New insns.
17245         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
17246         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
17247         (INIT_CUMULATIVE_ARGS): Likewise.
17248         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
17249         * machmode.def (V16SFmode): New mode.
17250         * c-common.c (type_for_mode): Support V2SF and V16SF.
17251         * tree.c (build_common_tree_nodes_2): Likewise.
17252         * tree.h (tree_index): Likewise.
17253         * calls.c (emit_call_1): Take args_so_far.  Adjust all
17254         callers.  Introduce CALL_POPS_ARGS.
17255         * tm.texi (CALL_POPS_ARGS): Document.
17256         * config/sh/crt1.asm: Implement in SHmedia mode.
17257         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
17258         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
17259         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
17260         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
17261         Implement divsi and udivsi in SHmedia mode.  Introduce
17262         SHcompact trampolines.
17263         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
17264         only in SHmedia64.
17265         (regno_reg_class): Rewrite.
17266         (fp_reg_names): Remove.
17267         (sh_register_names, sh_additional_register_names): New.
17268         (print_operand): Added `u'.  Support SUBREGs in addresses.
17269         Add parentheses around shifted CONSTs.
17270         (output_file_start): Output .mode and .abi directives.
17271         (shiftcosts, addsubcosts, multcosts): Adjust.
17272         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
17273         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
17274         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
17275         bytes, not registers.  Take into account the need for the
17276         SHcompact incoming args trampoline.  Adjust all callers.
17277         (sh_expand_prologue): Take stack_regs into account.  Call
17278         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
17279         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
17280         stack aligned as per SH5 ABI.
17281         (sh_builtin_saveregs): Support SH5 ABI.
17282         (sh_build_va_list, sh_va_start): Likewise.
17283         (initial_elimination_offset): Take alignment into account.
17284         Compute location of PR according to the SH5 stack frame.
17285         (arith_reg_operand): Reject branch-target registers.
17286         (shmedia_6bit_operand): New.
17287         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
17288         (target_reg_operand): Match DImode only.  Accept SUBREGs.
17289         (target_operand): New.
17290         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
17291         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
17292         SIBCALL_REGS for SHmedia.
17293         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
17294         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
17295         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
17296         (TARGET_SWITCHES): New SH5 flags.
17297         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
17298         VALID_REGISTER_P to disable unsupported registers.
17299         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
17300         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
17301         (FUNCTION_ARG_PADDING): Define.
17302         (FASTEST_ALIGNMENT): Adjust.
17303         (SH_REGISTER_NAMES_INITIALIZER): New.
17304         (sh_register_names): Declare.
17305         (DEBUG_REGISTER_NAMES): Define.
17306         (REGISTER_NAMES): Define based on sh_register_names.
17307         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
17308         (sh_additional_register_names): Declare.
17309         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
17310         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
17311         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
17312         (REGISTER_NATURAL_MODE): Define.
17313         (FIRST_PSEUDO_REGISTER): Adjust.
17314         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
17315         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
17316         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
17317         (VECTOR_MODE_SUPPORTED_P): Define.
17318         (REG_CLASS_CONTENTS): Adjust.
17319         (SMALL_REGISTER_CLASSES): Adjust.
17320         (REG_ALLOC_ORDER): Adjust.
17321         (INDEX_REG_CLASS): Adjust.
17322         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
17323         (CONST_OK_FOR_LETTER_P): Adjust.
17324         (PREFERRED_RELOAD_CLASS): Adjust.
17325         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
17326         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
17327         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
17328         (FIRST_FP_PARM_REG): Adjust.
17329         (CALL_POPS_ARGS): Define.
17330         (FUNCTION_ARG_REGNO_P): Adjust.
17331         (struct sh_args): New fields.
17332         (GET_SH_ARG_CLASS): Adjust.
17333         (INIT_CUMULATIVE_ARGS): Adjust.
17334         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
17335         (FUNCTION_ARG_ADVANCE): Adjust.
17336         (FUNCTION_ARG): Adjust.
17337         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
17338         (FUNCTION_ARG_CALLEE_COPIES): Define.
17339         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
17340         (STRICT_ARGUMENT_NAMING): Define.
17341         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
17342         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
17343         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
17344         (SETUP_INCOMING_VARARGS): Adjust.
17345         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
17346         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
17347         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
17348         (SUBREG_OK_FOR_INDEX_P): Adjust.
17349         (EXTRA_CONSTRAINT_S): Update.
17350         (EXTRA_CONSTRAINT_T): New.
17351         (EXTRA_CONSTRAINT): Adjust.
17352         (GO_IF_LEGITIMATE_INDEX): Adjust.
17353         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
17354         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
17355         (MOVE_MAX): Adjust.
17356         (MAX_MOVE_MAX): Define.
17357         (Pmode): Adjust.
17358         (CONST_COSTS): Adjust.
17359         (REGISTER_MOVE_COST): Adjust.
17360         (BRANCH_COST): Adjust.
17361         (TEXT_SECTION_ASM_OP): Adjust.
17362         (DBX_REGISTER_NUMBER): Adjust.
17363         (ASM_OUTPUT_DOUBLE_INT): New.
17364         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
17365         (PREDICATE_CODES): Adjust.
17366         (PROMOTE_MODE): Adjust.
17367         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
17368         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
17369         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
17370         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
17371         (DR0_REG, DR2_REG, DR4_REG): Renumber.
17372         (TR0_REG, TR1_REG, TR2_REG): New.
17373         (XD0_REG): Renumber.
17374         (UNSPEC_COMPACT_ARGS): New.
17375         (type): Added pt and ptabs.
17376         (length): Default to 4 on SHmedia.  Default pt length to 12
17377         and     20 on SHmedia32 and SHmedia64, respectively.
17378         (pt): New function unit.
17379         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
17380         Add whitespace between operands of SHmedia instructions.
17381         (movdicc): Fix.
17382         (adddi3_media, addsi3_media): Adjust constraints.
17383         (subsi3) [SHmedia]: Force operand 1 into a register.
17384         (udivsi3_i1_media, udivsi3_i4_media): New.
17385         (udivsi3): Support SHmedia.
17386         (divsi3_i1_media, divsi3_i4_media): New.
17387         (divsi3): Support SHmedia.
17388         (anddi3, iordi3, xordi3): Adjust constraints.
17389         (zero_extendhidi2, zero_extendqidi2): New.
17390         (extendsidi2, extendhidi2, extendqidi2): New.
17391         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
17392         (pop_e, pop_fpul, pop_4): Likewise.
17393         (movsi_media): Support FP and BT registers.
17394         (movsi_media_nofpu): New.  Adjust splits to DImode.
17395         (lduw, ldub): Renamed to zero_extend* above.
17396         (movqi_media): Fix typo.
17397         (movdi_media): Support FP and BT registers.
17398         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
17399         (movdi_const_32bit): New.
17400         (shori_media): Require immediate operand.  Use `u' for output.
17401         (movdf_media, movsf_media): Simplified.
17402         (movdf_media_nofpu, movsf_media_nofpu): New.
17403         (movdf, movsf): Adjust
17404         (movv2sf, movv2sf, movv16sf): New.
17405         (beq_media, beq_media_i): Adjust constraints.  Don't use
17406         scratch BT register.
17407         (bne_media, bne_media_i): Likewise.
17408         (bgt_media, bgt_media_i): Likewise.
17409         (bge_media, bge_media_i): Likewise.
17410         (bgtu_media, bgtu_media_i): Likewise.
17411         (bgeu_media, bgeu_media_i): Likewise.
17412         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
17413         bunordered): Emit jump insn.  Force operands to registers when
17414         needed.
17415         (jump_media, jump): Simplify.
17416         (call_compact, call_compact_rettramp): New.
17417         (call_value_compact, call_value_compact_rettramp): New.
17418         (call_media, call_value_media): Simplify.
17419         (sibcall_compact, sibcall_media): New.
17420         (call, call_value): Adjust for SHmedia and SHcompact.
17421         (sibcall, sibcall_value, untyped_call): Likewise.
17422         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
17423         (indirect_jump): Adjust for SHmedia.
17424         (casesi_jump_media): New.
17425         (nop): Re-enable for SHmedia.
17426         (call_site): Restrict to SH1.
17427         (casesi): Adjust for SHmedia.
17428         (casesi_shift_media, casesi_load_media): New.
17429         (return): Explicitly use PR register.  Call return trampoline
17430         on SHcompact.
17431         (return_i): Explicitly use PR register.
17432         (shcompact_return_tramp, shcompact_return_tramp_i): New.
17433         (return_media): Adjust.
17434         (shcompact_incoming_args): New.
17435         (epilogue): Adjust.
17436         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17437         (movstrsi): Disable on SH5.
17438         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
17439         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
17440         (subsf3, subsf3_media): Likewise.
17441         (mulsf3, mulsf3_media, mac_media): Likewise.
17442         (divsf3, divsf3_media): Likewise.
17443         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
17444         (floatsisf2, fux_truncsfsi2): Likewise.
17445         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
17446         constraints.
17447         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
17448         (cmpunsf_media, cmpsf): Likewise.
17449         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
17450         (abssf2, abssf2_media): Likewise.
17451         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
17452         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
17453         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
17454         (floatsidf2, fix_truncdfsi2): Likewise.
17455         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
17456         constraints.
17457         (cmpeqdf_media, cmpgtdf_media): Likewise.
17458         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
17459         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
17460         (absdf2, absdf2_media): Likewise.
17461         (extendsfdf2, extendsfdf2_media): Likewise.
17462         (truncsfdf2, truncsfdf2_media): Likewise.
17463         * config/sh/sh64.h: New file.
17464         * config/sh/t-sh64: New file.
17465         * config/sh/shmedia.h: New file.
17466         * config/sh/ushmedia.h: New file.
17467         * config/sh/sshmedia.h: New file.
17468         * configure.in: Added sh64-*-elf.
17469         * configure: Rebuilt.
17470         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
17471         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
17472         (reg_class_from_letter): Use `b' for TARGET_REGS.
17473         (print_operand): Support `%M', `%m', `AND' and
17474         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
17475         (andcosts): Adjust for SHmedia.
17476         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
17477         Likewise.
17478         (target_reg_operand): New function.
17479         * config/sh/sh-protos.h (target_reg_operand): Declare.
17480         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
17481         FP registers on SH5.
17482         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
17483         on SH4.
17484         (TARGET_REGISTER_P): New macro.
17485         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
17486         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
17487         (EXTRA_CONSTRAINT_S): New macro.
17488         (EXTRA_CONSTRAINT): Adjust.
17489         (FLOAT_TYPE_SIZE): Define to 32.
17490         (Pmode): DImode on SHmedia.
17491         (CONST_COSTS): Adjust for SHmedia literals.
17492         (PREDICATE_CODES): Added target_reg_operand.
17493         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
17494         * config/sh/sh.md: Remove all attrs from SHmedia insns.
17495         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
17496         (cmpdi): Accept SHmedia.
17497         (movdicc_false, movdicc_true): New insns.
17498         (movdicc): New expand.
17499         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
17500         no_new_pseudos.
17501         (addsi3_media): Match `S' constraint.
17502         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
17503         (negdi2): Expand for SHmedia.
17504         (one_cmpldi2): New expand.
17505         (zero_extendsidi2): Change from expand to insn.
17506         (extendsidi2): Add constraints.
17507         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
17508         LD/ST address.  Fix SI immediate loading split.
17509         (movhi_media, movqi_media, lduw, ldub): New insns.
17510         (movhi, movqi): Accept SHmedia.
17511         (shori_media, movdi_media): Relax input constraints.  Split
17512         symbolic constants.
17513         (movdf_media, movsf_media): New insn.  New split to movdi.
17514         (movdf, movsf): Match on SHmedia.
17515         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
17516         bgeu_media): New insns and splits.  New insns with `_i' suffix.
17517         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
17518         (bunordered): New expand.
17519         (jump_compact): Renamed from `jump'.
17520         (jump_media): New insn.
17521         (jump): New expand.
17522         (call_media, call_value_media): New insns.
17523         (call, call_value): Adjust.
17524         (indirect_jump_compact): Renamed from `indirect_jump'.
17525         (indirect_jump_media): New insn.
17526         (indirect_jump): New expand.
17527         (untyped_call, return): Accept SHmedia.
17528         (return_media): New insn.
17529         (prologue, epilogue, blockage): Accept SHmedia.
17530         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17531         (sunordered): New expand.
17532         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
17533         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
17534         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
17535         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
17536         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
17537         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
17538         abssf2_media): New insns.
17539         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
17540         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
17541         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
17542         floatdidf2, floatsidf2_media, fix_truncdfdi2,
17543         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
17544         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
17545         absdf2_media): New insns.
17546         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
17547         (extendsfdf2_media, truncdfsf2_media): New insns.
17548         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
17549         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
17550         * config/sh/sh.h (CONST_OK_FOR_J): Document.
17551         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
17552         * config/sh/sh.md (adddi3): New expand.
17553         (adddi3_media, adddi3z_media): New insns.
17554         (adddi3_compact): Renamed from adddi3.
17555         (addsi3_media): Use add.l r63 to add constant zero.
17556         (subdi3): New expand.
17557         (subdi3_media): New insn.
17558         (subdi3_compact): Renamed from subdi3.
17559         (mulsidi3): New expand.
17560         (mulsidi3_media): New insn.
17561         (mulsidi3_compact): Renamed from mulsidi3.
17562         (umulsidi3): New expand.
17563         (umulsidi3_media): New insn.
17564         (umulsidi3_compact): Renamed from umulsidi3.
17565         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
17566         (ashlsi3, ashrsi3, lshrsi3): Use them.
17567         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
17568         (ashldi3, ashrdi3, lshrdi3): Use them.
17569         (zero_extendsidi2): New expand.
17570         (extendsidi2): New insn.
17571         (movsi_media): New insn.  Split to movdi to load constants.
17572         (movsi): Enable for shmedia.
17573         (movdi_media): New insn.  Use shori_media to load wide constants.
17574         (short_media): New insn.
17575         (movdi): Enable for shmedia.
17576         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
17577         * config/sh/sh.h (CPP_SPEC): Added `m5'.
17578         (SUBTARGET_CPP_SPEC): Added `!m5'.
17579         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
17580         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
17581         to all other SH variants.
17582         (TARGET_DEFAULT): Set to SH1_BIT.
17583         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
17584         (BITS_PER_WORD): Raise to 64 on shmedia.
17585         (MAX_BITS_PER_WORD): Change to 64.
17586         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
17587         (INT_TYPE_SIZE): Keep as 32.
17588         (UNITS_PER_WORD): Raise to 8 on shmedia.
17589         (MIN_UNITS_PER_WORD): Keep as 4.
17590         (POINTER_SIZE): Raise to 64 on shmedia.
17591         (CONST_OK_FOR_J): New macro.
17592         (CONST_OK_FOR_LETTER_P): Use it.
17593         (processor_type): Add PROCESSOR_SH5.
17594         * config/sh/sh.md: Conditionalize all expands, insns and
17595         splits to TARGET_SH1.
17596         (cpu): Added sh5.
17597         (addsi3_compact): Renamed from...
17598         (addsi3): Now an expand.
17599         (addsi3_media, subsi3_media): New insns.
17600         (subsi3): Don't negate constants with SHmedia.
17601
17602         * hooks.c: New file.
17603         * hooks.h: New file.
17604         * Makefile.in (HOOKS_H): New.
17605         (TARGET_DEF_H): Added $(HOOKS_H).
17606         (OBJS): Added hooks.o.
17607         (cfgcleanup.o, bb-reorder.o): Added target.h.
17608         (hooks.o): Added dependencies.
17609         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
17610         (TARGET_INITIALIZER): this.
17611         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
17612         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
17613         * bb-reorder.c: Include target.h.
17614         (reorder_basic_blocks): Skip if cannot modify jumps.
17615         * cfgcleanup.c: Include target.h.
17616         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
17617
17618 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
17619
17620         * config/mips/mips.md (casesi_internal, casesi_internal_di):
17621         Protect jump delay slot instructions with .set noreorder and
17622         .set nomacro.
17623
17624 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
17625
17626         * config/mips/mips.md (casesi_internal_di): Calculate
17627         the index into the target offset table correctly.
17628
17629 2002-02-08  Richard Henderson  <rth@redhat.com>
17630
17631         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
17632         * final.c (output_addr_const): Accept and discard SUBREG.
17633         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
17634         mark them unknown instead.
17635         (simplify_subtraction): Handle RTX_UNKNOWN.
17636         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
17637
17638 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
17639
17640         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
17641
17642 2002-02-08  Richard Henderson  <rth@redhat.com>
17643
17644         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
17645
17646 2002-02-08  Andreas Jaeger  <aj@suse.de>
17647
17648         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
17649         * config/i386/t-linux64: New file.
17650
17651 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
17652
17653         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
17654         * c-parse.in (compstmt): Clear last_expr_type.
17655
17656 2002-02-07  Richard Henderson  <rth@redhat.com>
17657
17658         * loop.c (strength_reduce): Sink final_value when not
17659         eliminating a biv.
17660
17661 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
17662
17663         * config/sparc/freebsd.h: Fix mismatched spec {.
17664
17665 2002-02-07  Richard Henderson  <rth@redhat.com>
17666
17667         * cfgrtl.c: Include recog.h and insn-config.h.
17668         (keep_with_call_p): Fix general_operand invocation.
17669         * Makefile.in (cfgrtl.o): Update dependencies.
17670
17671 2002-02-07  Kazu Hirata  <kazu@hxi.com>
17672
17673         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
17674         comment.  Accept HImode only if TARGET_H8300.
17675
17676 2002-02-07  Eric Christopher  <echristo@redhat.com>
17677
17678         * config/mips/crtn.asm: Cleanup #ifdefs.
17679
17680 2002-02-07  Eric Christopher  <echristo@redhat.com>
17681
17682         * config/mips/crti.asm: Add changes for mips16. mips16 uses
17683         register 7 as RA instead of $31.
17684         * config/mips/crtn.asm: Ditto.
17685         * config/mips/mips.c (mips_move_2words): Add case for
17686         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
17687         (compute_frame_size): Fix typo.
17688         (save_restore_insns): Ditto.  Make documentation about using
17689         register $7 as return register more precise.
17690         (mips_expand_epilogue): Fix comment. Add code to work around not
17691         being able to add to the stack pointer directly.
17692         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
17693         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
17694         epilogue.
17695
17696 2002-02-07  Tom Rix  <trix@redhat.com>
17697
17698         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
17699         immediates in ldu and stdu DS opcode field.
17700         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
17701         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
17702         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
17703
17704 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
17705
17706         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
17707         offset for stack bias.
17708
17709 2002-02-07  H.J. Lu <hjl@gnu.org>
17710
17711         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
17712
17713 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
17714
17715         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
17716
17717 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
17718
17719         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
17720         * i386.c (x86_order_regs_for_local_alloc): New global function.
17721         * i386.h (REG_ALLOC_ORDER): CLeanup.
17722         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
17723
17724 2002-02-07  Richard Henderson  <rth@redhat.com>
17725
17726         PR optimization/2463
17727         * alias.c (find_base_value): Recall base values for fixed hard regs.
17728         * loop.c (loop_regs_update): Don't use single_set on non-insns.
17729
17730 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
17731
17732         * config/mips/mips.md (define_delay) [mips16]: Adjust required
17733         length.
17734
17735 2002-02-06  Richard Henderson  <rth@redhat.com>
17736
17737         PR c/5609
17738         * stmt.c (resolve_operand_name_1): Take more care with mixed
17739         named and unnamed operands.
17740
17741 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
17742             Jan Hubicka  <jh@suse.cz>
17743
17744         * loop.c (remove_constant_addition): Avoid clobbering a shared
17745         CONST expression.
17746
17747 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
17748
17749         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
17750         * config/s390/t-linux64: New file.
17751         * config/s390/libgcc-glibc.ver: New file.
17752
17753 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
17754
17755         * config/s390/linux64.h: Delete file.
17756         * config/s390/s390x.h: New file.
17757         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
17758         as target header file.
17759         * config/s390/linux.h (TARGET_VERSION): Define depending on
17760         DEFAULT_TARGET_64BIT.
17761         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
17762         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
17763         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
17764         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
17765         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
17766         (EXTRA_SPEC): New define.
17767         * config/s390/s390.h (TARGET_VERSION): Define depending on
17768         DEFAULT_TARGET_64BIT.
17769         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
17770
17771 2002-02-06  Jason Merrill  <jason@redhat.com>
17772
17773         * c-decl.c (finish_function): Warn about a non-void function with
17774         no return statement and no abnormal exit.
17775         (current_function_returns_abnormally): New variable.
17776         (start_function): Clear it.
17777         (struct c_language_function): Add returns_abnormally.
17778         (push_c_function_context): Save it.
17779         (pop_c_function_context): Restore it.
17780         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
17781         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
17782         an explicit return type.
17783         * c-tree.h: Declare current_function_returns_abnormally.
17784         (C_FUNCTION_IMPLICIT_INT): New macro.
17785         * c-typeck.c (build_function_call): Set it.
17786         (c_expand_return): Set current_function_returns_value even if the
17787         value is erroneous.
17788
17789 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
17790
17791         PR c/5420:
17792         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
17793         unsafe for reevaluation.
17794
17795 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
17796
17797         PR c/5482:
17798         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
17799         EXPR_STMT, but COMPOUND_STMT, recurse into it.
17800
17801 2002-02-06  Richard Henderson  <rth@redhat.com>
17802
17803         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
17804         be a general_operand.  Dest for function value must be a pseudo.
17805
17806 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
17807
17808         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
17809         as SYMBOL_REFs from the constant pool.
17810
17811 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
17812
17813         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
17814         passed by invisible reference.
17815
17816 2002-02-05  Richard Henderson  <rth@redhat.com>
17817
17818         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
17819
17820 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
17821
17822         Implement using "base addresses" in insn operands as default.
17823         * config/mmix/mmix.c (mmix_conditional_register_usage): if
17824         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
17825         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
17826         used to read the rtx value.
17827         (mmix_target_asm_function_epilogue): Fix spacing.
17828         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
17829         (mmix_legitimate_address): Ditto.
17830         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
17831         should be loaded with a GETA insn.  Don't allocate needless extra
17832         char for nul termination and fix misleading comment.
17833         (mmix_print_operand_address): Handle constants if
17834         TARGET_BASE_ADDRESSES.
17835         (mmix_output_register_setting): Use base addressing if
17836         TARGET_BASE_ADDRESSES and the number of insns is 3.
17837         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
17838         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
17839         to use R as constraint, add LDA to match s.
17840         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
17841         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
17842         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
17843         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
17844         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
17845         order with other fixed registers.
17846         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
17847         other parameter/call-clobbered registers.
17848         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
17849         -mbase-addresses, -mno-base-addresses.
17850         (MMIX Options): Ditto.
17851
17852 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17853
17854         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
17855
17856 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
17857
17858         * config/rs6000/altivec.h: Change elem to _S_elem.
17859
17860 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
17861
17862         * config/netbsd.h (WCHAR_TYPE): Define.
17863         (WCHAR_TYPE_SIZE): Ditto.
17864         (WINT_TYPE): Ditto.
17865         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
17866         (WCHAR_UNSIGNED): Ditto.
17867         (WCHAR_TYPE_SIZE): Ditto.
17868         (WINT_TYPE): Ditto.
17869         * config/arm/netbsd.h: Likewise.
17870         * config/i386/netbsd-elf.h: Likewise.
17871         * config/i386/netbsd.h: Likewise.
17872         * config/m68k/netbsd-elf.h: Likewise.
17873         * config/m68k/netbsd.h: Likewise.
17874         * config/ns32k/netbsd.h: Likewise.
17875         * config/sparc/netbsd.h: Likewise.
17876         * config/vax/netbsd.: Likewise.
17877
17878 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
17879
17880         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
17881         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
17882         (TARGET_INITIALIZER): this.
17883         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
17884         (BITFIELD_NBYTES_LIMITED): Markup fix.
17885         * tree.h (default_ms_bitfield_layout_p): Declare.
17886         (record_layout_info): Added prev_field.
17887         * tree.c (default_ms_bitfield_layout_p): New fn.
17888         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
17889         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
17890         * stor-layout.c: Include target.h.
17891         (start_record_layout): Initialize prev_field.
17892         (place_field): Handle MS bit-field layout, and disregard
17893         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
17894         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
17895         * Makefile.in (stor-layout.o): Adjust dependencies.
17896
17897 2002-02-05  Jason Merrill  <jason@redhat.com>
17898
17899         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
17900
17901 2002-02-05  Andreas Jaeger  <aj@suse.de>
17902
17903         * crtstuff.c: Fix comments.
17904
17905 2002-02-05  Richard Henderson  <rth@redhat.com>
17906
17907         PR fortran/3393
17908         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
17909         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
17910
17911         PR fortran/3392
17912         * config/mips/mips.c (function_arg): Handle TImode.
17913         (function_arg_advance): Likewise.
17914
17915 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
17916
17917         * config/rs6000/altivec.h (vec_step_help): Rename to
17918         __vec_step_help.
17919
17920 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
17921
17922         * config/rs6000/altivec.h: Fix typos.
17923
17924 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
17925
17926         * config/arm/netbsd.h: Correct a comment.
17927
17928 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
17929
17930         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
17931         building void typed builtins.
17932
17933         * config/rs6000/altivec.h (vec_ld*): Fix typos.
17934         (vec_step): Implement for C++.
17935
17936 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17937
17938         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
17939
17940 2002-02-04  Richard Henderson  <rth@redhat.com>
17941
17942         * combine.c (nonzero_bits): Re-introduce special case for
17943         sp/fp/ap wrt REGNO_POINTER_ALIGN.
17944
17945 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
17946
17947         * doc/extend.texi: Warn about unsupported usage of altivec
17948         builtins.
17949
17950         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
17951         (altivec_predicate_*): New.
17952
17953         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
17954         Add C++ version of vec_*() functions.
17955
17956         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
17957         (bdesc_2arg): Remove altivec predicates.
17958         (altivec_expand_builtin): Handle predicates.
17959         (altivec_init_builtins): Handle predicates.
17960         (altivec_expand_predicate_builtin): New.
17961
17962 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17963
17964         * pa.c (DO_FRAME_NOTES): Move forward.
17965         (store_reg): Revise handling of frame notes.
17966         (load_reg): Likewise.
17967         (set_reg_plus_d): Likewise.
17968         (hppa_expand_prologue): Likewise.
17969         (hppa_expand_epilogue): Likewise.
17970
17971 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17972
17973         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
17974
17975 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
17976
17977         PR c/4475, c++/3780:
17978         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
17979         * c-common.h (SWITCH_TYPE): Define.
17980         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
17981         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
17982         Rename spareness variable to sparseness.
17983         (expand_end_case_type): Renamed from expand_end_case, use orig_type
17984         if non-NULL instead of TREE_TYPE (orig_index).
17985         * tree.h (expand_end_case_type): Renamed from expand_end_case.
17986         (expand_end_case): Define using expand_end_case_type.
17987         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
17988         to expand_end_case_type.
17989         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
17990
17991 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17992
17993         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
17994         (BIGGEST_ALIGNMENT): Change to 128.
17995
17996 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17997
17998         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
17999
18000 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18001
18002         * pa.md (call_internal_reg_64bit): Remove unused variable.
18003
18004 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
18005
18006         * config/arm/arm.h (machine_function): Add uses_anonymous_args
18007         field.
18008         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
18009         * config/arm/arm.c (current_function_anonymous_args): Delete,
18010         replace uses with cfun->machine->uses_anonymous_args.
18011         (arm_reorg): Do not reset uses_anonymous_args.
18012
18013         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
18014         any geenral register.
18015
18016 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
18017
18018         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
18019         the entry block.
18020
18021 2002-02-04  Richard Henderson  <rth@redhat.com>
18022
18023         * combine.c (force_to_mode): Remove STACK_BIAS code.
18024         (nonzero_bits): Likewise.  Replace sp/fp special case with
18025         REGNO_POINTER_ALIGN.
18026
18027         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
18028         (HARD_FRAME_POINTER_REGNUM): New.
18029         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
18030         (FIXED_REGS, CALL_USED_REGS): Update.
18031         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
18032         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
18033         (HARD_REGNO_NREGS): Update for SFP.
18034         (STACK_POINTER_OFFSET): Include bias here ...
18035         (FIRST_PARM_OFFSET): ... not here.
18036         (STACK_BIAS): Remove.
18037         (INIT_EXPANDERS): New.
18038         (STARTING_FRAME_OFFSET): Do not include bias.
18039         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
18040         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
18041         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
18042         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
18043         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
18044         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
18045         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
18046         (MUST_SAVE_REGISTER): Likewise.
18047         (sparc_flat_function_prologue): Likewise.
18048         (sparc_flat_function_epilogue): Likewise.
18049         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
18050         (sparc_init_modes): SFP is GENERAL_REGS.
18051         (sparc_builtin_saveregs): SFP does not have bias applied.
18052
18053 2002-02-04  Richard Henderson  <rth@redhat.com>
18054
18055         * config/alpha/alpha.c (current_function_is_thunk): Don't check
18056         current_function_is_thunk.
18057         (alpha_sa_mask): Distinguish between current_function_is_thunk
18058         called from ASM_OUTPUT_MI_THUNK and not.
18059         (alpha_does_function_need_gp): Thunks always need gp.
18060         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
18061         (alpha_output_mi_thunk_osf): New.
18062         * config/alpha/alpha-protos.h: Update.
18063         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
18064
18065 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
18066
18067         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
18068         function types, not when they're taken away.
18069
18070 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
18071
18072         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
18073         CODE_LABEL and jump table when replacing a table jump with a
18074         simple jump.
18075
18076 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
18077
18078         * config/s390/s390-protos.h (legitimize_la_operand,
18079         s390_secondary_input_reload_class, s390_plus_operand,
18080         s390_expand_plus_operand): Add prototypes.
18081
18082         config/s390/s390.c (s390_secondary_input_reload_class,
18083         s390_plus_operand, s390_expand_plus_operand): New functions.
18084
18085         (struct s390_address): New member 'pointer'.
18086         (s390_decompose_address): Compute it.
18087         (legitimate_la_operand_p): Use it.
18088         (legitimize_la_operand): New function.
18089         (movti, movdi, movdf splitters): Call it.
18090
18091         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
18092         (PREDICATE_CODES): Add s390_plus_operand.
18093
18094         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
18095         (la_ccclobber): Allow GENERAL_REGS as output operand.
18096
18097         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
18098         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
18099         (*la_64, *la_31, reload_indi, reload_insi): ... these.
18100
18101 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
18102
18103         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
18104         register names for regular asm () construct.
18105
18106 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
18107
18108         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
18109         registers.
18110
18111 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
18112
18113         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
18114         pat for recog.
18115
18116 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
18117
18118         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
18119         constant pool to be identical by string address and index.
18120
18121 2002-02-04  Anthony Green  <green@redhat.com>
18122
18123         * output.h (SECTION_OVERRIDE): Define.
18124         * varasm.c (named_section): Obey SECTION_OVERRIDE.
18125
18126 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
18127
18128         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
18129         by existing arm*-*-netbsd* (a.out) target.
18130         (ns32k-*-netbsdelf*): Likewise.
18131         (sparc-*-netbsdelf*): Likewise.
18132         (vax-*-netbsdelf*): Likewise.
18133
18134 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
18135
18136         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
18137         headers and libobjc headers.
18138
18139 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
18140
18141         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
18142         (_mingw.h): Remove duplicate include.
18143
18144 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
18145
18146         * config.gcc: Set cpu_type to m68k for 68010, as well.
18147         (m68010-*-netbsdelf*): New...
18148         (m68k*-*-netbsdelf*): ...targets.
18149         * config/m68k/netbsd-elf.h: New file.
18150
18151 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18152
18153         * config/h8300/h8300.c (hand_list): Move inside function_arg.
18154
18155 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18156
18157         * config/h8300/h8300.c (h8_push_ops): Move inside
18158         h8300_init_once.
18159         (h8_pop_ops): Likewise.
18160         (h8_move_ops): Likewise.
18161
18162 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18163
18164         * config/h8300/h8300.c (os_task): Make it static.
18165         (monitor): Likewise.
18166         (pragma_saveall): Likewise.
18167
18168 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
18169
18170         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
18171         constant is a valid sign-extension for Pmode.
18172
18173 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18174
18175         * config/h8300/h8300.c: Fix formatting.
18176
18177 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18178
18179         * config/h8300/h8300.md: Fix formatting.
18180
18181 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18182
18183         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
18184         predicates of operands[1].  Split the patterns for each
18185         processor variant.
18186
18187 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18188
18189         * config/h8300/h8300.md (xor patterns): Tighten the predicates
18190         of operands[1] to register_operand.
18191
18192 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
18193
18194         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
18195         * cpphash.c (_cpp_init_hashtable): Similarly.
18196         * cppinit.c (cpp_create_reader): Default the signed_char flag.
18197         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
18198         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
18199         (cpp_handle_option): Handle the new options.
18200         * cpplex.c (cpp_interpret_charconst): Use new flag.
18201         * cpplib.h (struct cpp_options): New member signed_char.
18202         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
18203         (cpp_options): Handle -fsigned-char and -funsigned-char.
18204         (static_specs): Remove signed_char_spec.
18205         (do_spec1): Don't handle %c.
18206         * system.h: Poison SIGNED_CHAR_SPEC.
18207         * tradcif.y (yylex): Use flag_signed_char.
18208         * tradcpp.h (flag_signed_char): New.
18209         * tradcpp.c (flag_signed_char): New.
18210         (main): Handle new command-line options.
18211         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
18212 config:
18213         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
18214         * avr/avr.h: Remove old comments.
18215         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
18216         (CC1_SPEC): Pass -fsigned-char if -mic*.
18217         (SIGNED_CHAR_SPEC): Remove.
18218 doc:
18219         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
18220
18221 2002-02-01  Eric Christopher  <echristo@redhat.com>
18222
18223         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
18224         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
18225         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
18226         (ASM_OUTPUT_REG_POP): Ditto.
18227
18228 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
18229
18230         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
18231         patch.
18232
18233 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
18234
18235         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
18236
18237 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
18238
18239         PR c/5304:
18240         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
18241         unconditionally.
18242
18243 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
18244
18245         * cfganal.c: Include tm_p.h.
18246         (keep_with_call_p): Fix the test that determines if a register holds
18247         the return value of a call.
18248
18249 2002-02-01  DJ Delorie  <dj@redhat.com>
18250
18251         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
18252         we are given conflicting registers, switch to the other one we
18253         had allocated for us.
18254         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
18255         as TImode so we know when the "other" register is available.
18256
18257 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
18258
18259         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
18260         sparc/sparc_bi.h.
18261
18262 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
18263
18264         * cfganal.c (keep_with_call_p): New function.
18265         (flow_call_edges_add): Prevent splitting a block between a call and
18266         a single-set instruction that should be kept in the same block.
18267
18268 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18269
18270         * doc/install.texi (avr): Update outdated URL.
18271
18272 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
18273
18274         * config/stormy16/stormy16.md (pushqi): New.
18275         (popqi): New.
18276         (pushhi): New.
18277         (pophi): New.
18278         (movhi): Remove stack operands.
18279         (movqi): Likewise.
18280         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
18281         nonimmediate_nonstack_operand.
18282         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
18283         New.
18284         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
18285         New.
18286
18287 2002-01-31  Jason Merrill  <jason@redhat.com>
18288
18289         * Makefile.in (c-parse.c): Handle .output file.
18290         * objc/Make-lang.in (objc-parse.c): Likewise.
18291
18292 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
18293
18294         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
18295         the -me[lb] option is given.  Don't output the default flag
18296         twice.
18297
18298 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
18299
18300         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
18301         the primary source file; this has not been done yet.
18302         * c-decl.c (c_expand_body): Reset input_filename from
18303         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
18304
18305 2002-01-31  Kazu Hirata  <kazu@hxi.com>
18306
18307         * rtlanal.c (subreg_regno_offset): Do not use
18308         SUBREG_REGNO_OFFSET.
18309         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
18310         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
18311
18312 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
18313
18314         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
18315         version rather than GNATS version in --version output.
18316
18317 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
18318
18319         * ifcvt.c (noce_process_if_block): Make a copy of the destination
18320         when copying back from a temporary.
18321
18322 2002-01-30  Richard Henderson  <rth@redhat.com>
18323
18324         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
18325         and new_dest are the same.
18326
18327 2002-01-30  Richard Henderson  <rth@redhat.com>
18328
18329         PR opt/5076
18330         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
18331         * rtl.c (note_insn_name): Update.
18332         * emit-rtl.c (remove_unnecessary_notes): Kill it.
18333         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
18334         to perform loop rotation.
18335         (expand_exit_loop_top_cond): New.
18336         * tree.h (expand_exit_loop_top_cond): Declare it.
18337         * c-semantics.c (genrtl_while_stmt): Use it.
18338         (genrtl_for_stmt): Likewise.
18339
18340 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
18341
18342         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
18343         arguments to 64-bit boundaries on 64-bit ABIs.
18344
18345 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
18346
18347         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
18348
18349 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
18350
18351         * c-decl.c (grokdeclarator): Handle type being a typedef for an
18352         invalid type.
18353
18354 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
18355
18356         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
18357         * config/sparc/sparc_bi.h: Remove file.
18358         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
18359
18360 2002-01-30  Richard Henderson  <rth@redhat.com>
18361
18362         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
18363
18364 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
18365
18366         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
18367
18368 2002-01-30  Jason Merrill  <jason@redhat.com>
18369
18370         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
18371         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
18372         (reg_save): Use DW_CFA_offset_extended_sf instead.
18373
18374         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
18375
18376 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18377
18378         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
18379         in cselib_lookup.
18380
18381 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
18382
18383         * rs6000.md ("*call_value_local32"): Remove constraints.
18384         ("*call_value_local64"): Same.
18385         ("*call_value_indirect_nonlocal_aix32"): Same.
18386         ("*call_value_nonlocal_aix32"): Same.
18387         ("*call_value_indirect_nonlocal_aix64"): Same.
18388         ("*call_value_nonlocal_aix64"): Same.
18389         ("*call_value_nonlocal_sysv"): Same.
18390
18391 2002-01-29  Richard Henderson  <rth@redhat.com>
18392
18393         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
18394
18395 2002-01-29  Richard Henderson  <rth@redhat.com>
18396
18397         * expr.c (force_operand): Ignore flag_pic for detecting pic
18398         address loads.
18399         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
18400         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
18401         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
18402         instead of open-coded loop.
18403         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
18404         be fixed when in use.
18405
18406 2002-01-29  Richard Henderson  <rth@redhat.com>
18407
18408         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
18409         * sched-rgn.c (propagate_deps): Update them.
18410         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
18411         clobbers list when either gets too long.
18412
18413 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18414
18415         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
18416         and INDEX_REGS the same as GENERAL_REGS.
18417         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
18418
18419 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
18420
18421         * tree.c (build_nonstandard_integer_type): Correct prototype.
18422
18423 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
18424
18425         * config/s390/s390.md (movstrsico, movstrdix_64,
18426         movstrsix_31): Remove, replace by ...
18427         (movstrdi_short, movstrsi_short, movstrdi_long,
18428         movstrsi_long): ... these.  New.
18429         (movstrdi, movstrsi): Adapt.
18430
18431         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
18432         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
18433         Remove unnecessary CC clobber.
18434         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
18435         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
18436
18437         (divmoddi4): Don't partially initialize TImode register.
18438
18439 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
18440
18441         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
18442
18443 2002-01-29  Richard Henderson  <rth@redhat.com>
18444
18445         * flow.c (print_rtl_and_abort): Remove.
18446         (print_rtl_and_abort_fcn): Remove.
18447         (verify_local_live_at_start): Use dump_bb instead.
18448         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
18449         (verify_wide_reg_1): Return 2 on mode test failure.
18450
18451 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
18452
18453         PR c/3325, c/3326, c/2511, c/3347
18454         * c-decl.c (enum_decl_context): Remove BITFIELD.
18455         (grokdeclarator): Take bitfield width as an input.
18456         Ensure bitfields are given the correct type.  Perform
18457         bitfield width validation with build_bitfield_integer_type
18458         rather than waiting for finish_struct.
18459         (grok_typename, grok_typename_in_parm_context, start_decl,
18460         push_parmdecl, grokfield, start_function): Update calls to
18461         grokdeclarator.
18462         (build_bitfield_integer_type): New function.
18463         (finish_struct): Move bitfield validation to grokdeclarator
18464         and build_bitfield_integer_type.
18465         * tree.c (build_nonstandard_integer_type): New function.
18466         * tree.h (build_nonstandard_integer_type): New prototype.
18467 objc:
18468         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
18469
18470 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18471
18472         PR other/1502:
18473         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
18474         don't ignore unrecognized -W* options.
18475         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
18476         * cpplib.h (cpp_handle_option): Adjust prototype.
18477         * c-decl.c (c_decode_options): Pass 0 as last argument to
18478         cpp_handle_option.
18479
18480         PR c/2896:
18481         * gcc.c (cpp_unique_options): Split from cpp_options.
18482         (cpp_options): Source cpp_unique_options.
18483         (default_compilers): Use cpp_unique_options instead of cpp_options
18484         when used together with cc1_options.
18485         (static_specs): Add cpp_unique_options.
18486         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
18487         when used together with cc1_options.
18488
18489 2002-01-29  Kazu Hirata  <kazu@hxi.com>
18490
18491         * config/h8300/h8300-protos.h: Update the prototype of
18492         output_a_shift.
18493         * config/h8300/h8300.c (output_a_shift): Remove an unused
18494         argument 'insn'.  Remove redundant code.
18495         * config/h8300/h8300.md: Adust to the new prototype of
18496         output_a_shift.
18497
18498 2002-01-29  Kazu Hirata  <kazu@hxi.com>
18499
18500         * config/h8300/h8300-protos.h: Update the prototypes of
18501         emit_a_rotate and expand_a_rotate.
18502         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
18503         first argument to 'enum rtx_code'.
18504         (expand_a_rotate): Likewise.
18505
18506 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18507
18508         * config/h8300/h8300-protos.h: Update the prototype of
18509         output_simode_bld.
18510         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
18511         'log2'.
18512         * config/h8300/h8300.md: Adjust to the new prototype.
18513
18514 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18515
18516         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
18517         redundant code.
18518
18519 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18520
18521         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
18522         is a fixed register before returning pic_offset_table_rtx.
18523         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
18524         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
18525
18526 2002-01-28  Jason Merrill  <jason@redhat.com>
18527
18528         * dwarf2.h: Sync with src version.
18529
18530 2002-01-28  Paul Koning  <pkoning@equallogic.com>
18531
18532         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
18533         BT_FN_VOID_PTR_VAR.
18534         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
18535         * doc/extend.texi (__builtin_prefetch): Update documentation:
18536         first argument is now const void ptr.
18537
18538 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18539
18540         * config/h8300/h8300-protos.h: Remove an unused prototype.
18541
18542 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
18543
18544         * toplev.c (lang_independent_init): Round up identifier size.
18545
18546 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
18547
18548         * config.gcc: Revert previous change.
18549
18550 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
18551
18552         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
18553
18554 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
18555
18556         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
18557         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
18558         other non-elf netbsd config frags.
18559         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
18560         collect2 will does that.
18561         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
18562         shared-lib frobbing will work.
18563
18564 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18565
18566         * config/h8300/h8300.h: Fix formatting.
18567         * config/h8300/h8300.md: Likewise.
18568
18569 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
18570
18571         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
18572         the old, removed AAA_standards fix.
18573         * fixinc/fixincl.x: Rebuilt.
18574
18575 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
18576
18577         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
18578         atexit call in crtbegin, hooked in after call to frame_dummy;
18579         register EH before registering __fini__start.
18580
18581 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
18582
18583         * config/rs6000/altivec.h: Remove spurious semicolons.
18584
18585 2002-01-27  Kazu Hirata  <kazu@hxi.com>
18586
18587         * config/h8300/h8300.md: Replace dead bit extraction patterns
18588         with ones that work.
18589
18590 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18591
18592         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
18593         if not STRICT_ALIGNMENT.
18594         * rtl.h (MEM_ALIGN): Likewise.
18595
18596 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18597
18598         * doc/invoke.texi (-fdump-translation-unit): Revert this
18599         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18600
18601 2002-01-27  Kazu Hirata  <kazu@hxi.com>
18602
18603         * config/h8300/h8300.md (define_constants): New.
18604         (anonymous patterns) Use defined constants appropriately.
18605
18606 2002-01-27  Kazu Hirata  <kazu@hxi.com>
18607
18608         * config/h8300/h8300.c (function_arg): Remove redundant code.
18609
18610 2002-01-26  Richard Henderson  <rth@redhat.com>
18611
18612         * sched-deps.c (reg_pending_uses_head): New.
18613         (reg_pending_barrier): Rename from reg_pending_sets_all.
18614         (find_insn_list): Don't mark inline.
18615         (find_insn_mem_list): Remove.
18616         (add_dependence_list, add_dependence_list_and_free): New.
18617         (flush_pending_lists): Replace only_write param with separate
18618         for_read and for_write parameters.  Update all callers.  Use
18619         add_dependence_list_and_free.
18620         (sched_analyze_1): Do not add reg dependencies here; just set
18621         the pending bits.  Use add_dependence_list.
18622         (sched_analyze_2): Likewise.
18623         (sched_analyze_insn): Replace schedule_barrier_found with
18624         reg_pending_barrier.  Add all dependencies for pending reg
18625         uses, sets, and clobbers.
18626         (sched_analyze): Don't add reg dependencies for calls, just
18627         set pending bits.  Use regs_invalidated_by_call.  Treat
18628         sched_before_next_call as a normal list, not a fake insn.
18629         (init_deps): No funny init for sched_before_next_call.
18630         (free_deps): Free pending mems lists.  Don't zero reg_last.
18631         (init_deps_global): Init reg_pending_uses.
18632         (finish_deps_global): Free it.
18633         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
18634         (find_insn_mem_list): Remove.
18635         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
18636         (propagate_deps): Use them.  Zero temp mem lists.
18637
18638 2002-01-26  Richard Henderson  <rth@redhat.com>
18639
18640         * Makefile.in (CRTSTUFF_CFLAGS): New.
18641         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
18642         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
18643         crtstuff.c instead of alpha assembly version.
18644         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
18645         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
18646         not FORCE_{INIT,FINI}_SECTION_ALIGN.
18647         (__do_global_dtors_aux): Mark used.
18648         (frame_dummy, __do_global_ctors_aux): Mark used.
18649         (fini_dummy, init_dummy): Remove.
18650
18651         * config/alpha/crtbegin.asm: Remove file.
18652         * config/alpha/crtend.asm: Remove file.
18653         * config/alpha/t-crtbe: Remove file.
18654         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
18655         (LINK_EH_SPEC): New.
18656
18657         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
18658         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
18659         calling constructors.
18660         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
18661
18662         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
18663         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
18664         CRT_END_INIT_DUMMY hack.
18665         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
18666         FORCE_{INIT,FINI}_SECTION_ALIGN.
18667
18668         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
18669         FORCE_{INIT,FINI}_SECTION_ALIGN.
18670
18671         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
18672         invocation sequence.
18673         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
18674
18675         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
18676         (FORCE_CODE_SECTION_ALIGN): New.
18677
18678 2002-01-26  Richard Henderson  <rth@redhat.com>
18679
18680         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
18681
18682 2002-01-26  Richard Henderson  <rth@redhat.com>
18683
18684         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
18685         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
18686
18687 2002-01-26  Kazu Hirata  <kazu@hxi.com>
18688
18689         * config/h8300/h8300.md: Remove bit extraction patterns that
18690         cannot be triggered.
18691         Restrict each bit extraction pattern to a variant on which the
18692         pattern is tested.
18693
18694 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
18695
18696         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
18697
18698 2002-01-26  Kazu Hirata  <kazu@hxi.com>
18699
18700         * config/h8300/h8300.md: Remove bit test patterns that cannot
18701         be triggered.
18702         Restrict each bit test pattern to a variant on which the
18703         pattern is tested.
18704
18705 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18706
18707         * builtins.c (expand_builtin_strncat): Remove redundant check for
18708         INTEGER_CST.
18709
18710 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
18711
18712         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
18713         default setting.
18714         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
18715         existing setting.
18716
18717 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
18718
18719         * dbxout.c (dbxout_init): Use assemble_name rather than just
18720         stripping off the first character.
18721         (dbxout_source_file): Likewise.
18722
18723 2002-01-25  DJ Delorie  <dj@redhat.com>
18724
18725         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
18726         using rtx_equal_p, not by comparing pointers.
18727
18728 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
18729
18730         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
18731         for PIC_OFFSET_TABLE_REGNUM.
18732         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
18733
18734 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
18735
18736         * config.gcc (x86_64-*-freebsd*): New target.
18737         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
18738         value.
18739         (i[34567]86-*-freebsd*): Don't include svr4.h.
18740         * config/i386/freebsd64.h: New file.
18741
18742 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
18743
18744         * config/alpha/x-vms (version): Make static.
18745
18746         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
18747         in previous checkin.
18748
18749         * Makefile.in (install-headers-cp): New target.
18750         * config.gcc (alpha-dec-*vms*): Install headers with
18751         install-headers-cp
18752
18753 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
18754
18755         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
18756         avoid it's copies.
18757
18758 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18759
18760         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
18761         of compare_tree_int.
18762         (expand_builtin_strncat): Likewise.
18763         * c-decl.c (finish_struct): Use tree_low_cst.
18764         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
18765         * tree.c (compare_tree_int): Likewise.
18766
18767 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
18768
18769         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
18770         adjustments even if they are implemented by more than two insns.
18771
18772 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
18773
18774         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
18775         * df.h (struct ref): Kill B.
18776         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
18777
18778         * basic-block.h (PROP_EQUAL_NOTES): New flag.
18779         * flow.c (propagate_one_insn): Use it.
18780         (mark_used_regs): Handle NIL.
18781
18782 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
18783
18784         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
18785         to help folding.
18786
18787 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
18788
18789         * rs6000.md (prefetch): Make address V4SI mode so that the address
18790         is restricted to legitimate form for instruction.
18791
18792 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
18793
18794         * doc/install.texi (xtensa-*-elf): New target.
18795         (xtensa-*-linux*): New target.
18796         * doc/contrib.texi: Add myself.
18797
18798 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
18799
18800         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
18801         purpose register to hold an SImode (or smaller) value.
18802
18803 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
18804
18805         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
18806         registry only.
18807         * crtstuff.c: Likewise.
18808
18809 2002-01-25  Kazu Hirata  <kazu@hxi.com>
18810
18811         * config/h8300/h8300.md (negation patterns): Tighten
18812         predicates to register_operand.
18813
18814 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
18815
18816         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
18817         mode, not Pmode.
18818
18819         * builtins.c (expand_builtin_prefetch): Same.
18820
18821 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
18822
18823         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
18824         modes.
18825
18826 2002-01-24  Kazu Hirata  <kazu@hxi.com>
18827
18828         * config/h8300/h8300.c (print_operand): Remove support for
18829         operand character 'A'.
18830         * config/h8300/h8300.md (three anonymous patterns): Replace
18831         operand character 'A' with either 'T' or 'S'.
18832
18833 2002-01-24  Kazu Hirata  <kazu@hxi.com>
18834
18835         * config/h8300/h8300.c (print_operand): Remove support for
18836         operand character 'U'.
18837
18838 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
18839
18840         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
18841
18842 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
18843
18844         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
18845         values to be assigned to the stack pointer.
18846
18847 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
18848
18849         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
18850         to const_double needs to be done right for big-endian systems.
18851
18852 2002-01-24  Jason Merrill  <jason@redhat.com>
18853
18854         PR c++/2432
18855         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
18856         to can_throw_internal.
18857
18858 2002-01-23  Richard Henderson  <rth@redhat.com>
18859
18860         * fold-const.c (fold): Change UINT_MAX test to check vs precision
18861         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
18862
18863 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
18864
18865         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
18866         (symGOT2reg): Use them, then set as GOT value as unchanging.
18867         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
18868         as a temporary, if possible.
18869         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
18870         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
18871
18872 2002-01-23  Kazu Hirata  <kazu@hxi.com>
18873
18874         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
18875         accept to accept 0x80 as operands[2].
18876
18877 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
18878
18879         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
18880
18881 2002-01-23  Richard Henderson  <rth@redhat.com>
18882
18883         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
18884
18885 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
18886
18887         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
18888         (parmlist_or_identifiers_1): Verify that only a parmlist follows
18889         an attribute.
18890
18891 2002-01-23  Richard Henderson  <rth@redhat.com>
18892
18893         * expr.c (move_by_pieces_1): Extend size before negation.
18894
18895         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
18896         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
18897         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
18898         * config/m68k/t-m68kelf: Likewise.
18899
18900 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
18901
18902         * config/xtensa/elf.h: New file.
18903         * config/xtensa/lib1funcs.asm: New file.
18904         * config/xtensa/lib2funcs.S: New file.
18905         * config/xtensa/linux.h: New file.
18906         * config/xtensa/t-xtensa: New file.
18907         * config/xtensa/xtensa-config.h: New file.
18908         * config/xtensa/xtensa-protos.h: New file.
18909         * config/xtensa/xtensa.c: New file.
18910         * config/xtensa/xtensa.h: New file.
18911         * config/xtensa/xtensa.md: New file.
18912         * config.gcc (xtensa-*-elf*): New target.
18913         (xtensa-*-linux*): New target.
18914         * cse.c (canon_hash): Compare rtx pointers instead of register
18915         numbers.  This is required for the Xtensa port.
18916         * integrate.c (copy_insn_list): Handle case where the static
18917         chain is in memory and the memory address has to be copied to
18918         a register.
18919         * doc/invoke.texi (Option Summary): Add Xtensa options.
18920         (Xtensa Options): New node.
18921         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
18922
18923 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
18924
18925         * diagnostic.c (internal_error): Do ICE suppression only
18926         when ENABLE_CHECKING is not defined.
18927
18928         * c-typeck.c (require_complete_type): Return error_mark_node
18929         if type is error_mark_node.
18930
18931 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
18932
18933         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
18934         -Os and issue a warning.
18935
18936 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
18937
18938         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
18939         current (lack of) need for host configuration by hand.
18940
18941         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
18942         references.  Documentation of some target macros moved from
18943         hostconfig.texi to tm.texi.
18944
18945 2002-01-23  Will Cohen  <wcohen@redhat.com>
18946
18947         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
18948         defined.
18949
18950 2002-01-23  Kazu Hirata  <kazu@hxi.com>
18951
18952         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
18953         operand[3].
18954
18955 2002-01-23  Jason Merrill  <jason@redhat.com>
18956
18957         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
18958
18959         * function.c (assign_parms): Don't put args of inline functions
18960         into registers when not optimizing.
18961
18962 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
18963
18964         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
18965         (prologue_use): New pattern.
18966         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
18967         preference to gen_rtx_USE.
18968         (thumb_expand_prologue): Use gen_prologue_use in preference to
18969         gen_rtx_USE.
18970         (thumb_expand_epilogue): Use gen_prologue_use in preference to
18971         gen_rtx_USE.
18972
18973 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
18974
18975         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
18976
18977 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
18978
18979         PR c/3504
18980         * doc/extend.texi: Correct documentation of __alignof__.
18981
18982 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
18983
18984         * params.h: Rename arguments of DEFPARAM so that it will be
18985         recognized as a translation keyword.
18986
18987 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
18988
18989         * extend.texi: Document altivec functions.
18990         Fix N-bit adjectives in X86 builtin documentation.
18991
18992 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
18993
18994         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
18995         auto_inc_dec values.
18996
18997 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
18998
18999         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
19000         after backslash.
19001         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
19002
19003 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
19004
19005         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
19006
19007 2002-01-22  Richard Henderson  <rth@redhat.com>
19008
19009         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
19010         copy_insn not copy_rtx.
19011
19012 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
19013
19014         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
19015         "nonzero" as that might add "1" bits.  Ensure "constop" is
19016         properly sign extened.
19017         (force_to_mode): Tweak for sign extended constop.
19018
19019 2002-01-22  Richard Henderson  <rth@redhat.com>
19020
19021         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
19022         for_each_rtx instead of assuming we're already looking at the MEM.
19023         (split_small_symbolic_mem_operand): Likewise.
19024         * config/alpha/alpha.h (PREDICATE_CODES): Update.
19025         * config/alpha/alpha.md (small symbolic memory splitters): Update.
19026
19027 2002-01-22  Richard Henderson  <rth@redhat.com>
19028
19029         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
19030         sequence number for the literal.
19031         (divmoddi_internal_er): Likewise.
19032
19033 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19034
19035         PR java/4972
19036         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
19037         in LIBICONV variable.
19038         * configure: Regenerated.
19039
19040 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
19041
19042         * dependence.c (build_def_use): Remove array_idx.
19043
19044         * dwarfout.c (last_filename): Remove.
19045         (output_compile_unit_die): Remove last_filename.
19046
19047 2002-01-22  Roger Sayle  <roger@eyesopen.com>
19048             Richard Henderson  <rth@redhat.com>
19049
19050         PR opt/3640
19051         * fold-const.c (fold): Optimize unsigned comparisons against
19052         UINT_MAX (and similar unsigned constants).
19053
19054 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
19055
19056         * Makefile.in (loop.o): Depend on OPTABS_H.
19057         * loop.c (emit_prefetch_instructions): Check the prefetch operand
19058         against the predicate.
19059
19060         PR target/5379
19061         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
19062         for the address operand.
19063
19064 2002-01-22  Richard Henderson  <rth@redhat.com>
19065
19066         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
19067
19068 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19069
19070         PR other/5450
19071         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
19072         preprocessor flags.
19073
19074 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
19075
19076         * config.gcc (x86_64-*-netbsd*): New target.
19077         * config/i386/netbsd64.h: New file.
19078
19079 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
19080
19081         * regrename.c (kill_value): Fix typo.
19082
19083 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
19084
19085         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
19086
19087         * config/rs6000/rs6000.h: Same.
19088
19089         * function.c (instantiate_virtual_regs): Remove
19090         STARTING_FRAME_PHASE.
19091         (assign_stack_local_1): Same.
19092         Calculate frame phase.
19093
19094 2002-01-22  Nick Clifton  <nickc@redhat.com>
19095
19096         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
19097         variable declaration to outer scope in order to simplify
19098         future extensions.
19099         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
19100         arm_hard_regno_mode_ok.
19101         * config/arm/arm-protos.h: Add a prototype for
19102         arm_hard_regno_mode_ok.
19103         * config/arm/arm.c (soft_df_operand): Remove now redundant
19104         check for DImode values using IP_REGNUM.
19105         (nonimmediate_soft_df_operand): Remove now redundant check for
19106         DImode values using IP_REGNUM.
19107         (arm_hard_regno_mode_ok): New function. New check: make sure
19108         that DImode values are not stored in IP_REGNUM.
19109
19110         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
19111         note with a USE.
19112         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
19113
19114 2002-01-22  Jason Merrill  <jason@redhat.com>
19115
19116         * c-semantics.c (genrtl_compound_stmt): Only check nesting
19117         consistency if this COMPOUND_STMT is scoped.
19118
19119 2002-01-22  Kazu Hirata  <kazu@hxi.com>
19120
19121         * predict.c: Fix formatting.
19122         * print-tree.c: Likewise.
19123         * protoize.c: Likewise.
19124         * real.h: Likewise.
19125         * rtl.h: Likewise.
19126         * sbitmap.h: Likewise.
19127         * scan.c: Likewise.
19128         * sched-deps.c: Likewise.
19129         * sched-vis.c: Likewise.
19130         * sdbout.c: Likewise.
19131         * sibcall.c: Likewise.
19132         * ssa.c: Likewise.
19133         * ssa-ccp.c: Likewise.
19134         * ssa-dce.c: Likewise.
19135         * stmt.c: Likewise.
19136         * stor-layout.c: Likewise.
19137         * system.h: Likewise.
19138
19139 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19140
19141         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
19142         if fits in bounds of base type.
19143
19144         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
19145         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
19146         (add_bound_info, default): If can't find a context, make a
19147         SAVE_EXPR.
19148         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
19149
19150 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
19151
19152         * c-typeck.c (parser_build_binary_op): If result from
19153         build_binary_op is ERROR_MARK just return error_mark_node without
19154         further processing.
19155
19156 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
19157
19158         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
19159         Split a.out-specific bits into...
19160         * config/netbsd-aout.h: ...this.
19161         * config/netbsd-elf.h: New file.
19162         * config/alpha/netbsd-elf.h: Remove.
19163         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
19164         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
19165         (STARTFILE_SPEC): Remove redundant definition.
19166         (ENDFILE_SPEC): Likewise.
19167         (LINK_SPEC): Likewise.
19168         (CPP_SPEC): Likewise.
19169         (ASM_SPEC): Likewise.
19170         (LIB_SPEC): Likewise.
19171         (SWITCH_TAKES_ARG): Likewise.
19172         (TARGET_MEM_FUNCTIONS): Likewise.
19173         (CPP_PREDEFINES): Redefine.
19174         (ASM_FINAL_SPEC): Remove redefinition.
19175         (ASM_COMMENT_START): Redefine.
19176         (FUNCTION_PROFILER): Define.
19177         (TARGET_VERSION): Redefine.
19178         Comment and formatting cleanup.
19179         * config/i386/netbsd.h: Include <netbsd-aout.h>.
19180         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
19181         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
19182         big- or little-endian.
19183         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
19184         * config.gcc (*-*-netbsd*): Add definitions common to all
19185         NetBSD configs.
19186         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
19187         gnu_ld definitions.  Add netbsd-elf.h to and remove
19188         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
19189         tmake_file, and don't lose previous tmake_file contents.
19190         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
19191         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
19192         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
19193         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
19194         (mipsel-*-netbsd*): Rename this to...
19195         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
19196         mips/little.h to tm_file for mips*el-*.
19197         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
19198         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
19199         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
19200
19201 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19202
19203         * pa-protos.h (reg_before_reload_operand): New function prototype.
19204         * pa.c (reg_before_reload_operand): New function implementation.
19205         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
19206         contraints to "*m".
19207
19208 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19209
19210         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
19211
19212 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19213
19214         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
19215         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
19216         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
19217         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
19218         (ENDFILE_SPEC): Undefine.
19219         (STARTFILE_SPEC): Redefine for PA.
19220
19221 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19222
19223         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
19224
19225 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
19226
19227         * config.gcc: Add entries to supported PowerPC --with-cpu
19228         types.
19229
19230 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
19231
19232         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
19233         true for 64-bit mode only SSE registers in 32-bit mode.
19234
19235 2002-01-21  Kazu Hirata  <kazu@hxi.com>
19236
19237         * unwind-dw2.c: Fix formatting.
19238         * unwind-dw2-fde.c: Likewise.
19239         * unwind-dw2-fde.h: Likewise.
19240         * unwind-pe.h: Likewise.
19241         * varasm.c: Likewise.
19242         * varray.h: Likewise.
19243
19244 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
19245
19246         Remove workaround for register stack overwrite bug in mmix.
19247         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
19248         support for TARGET_REG_STACK_FILL_BUG.
19249         * config/mmix/mmix.h: Remove member has_call_without_parameters.
19250         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
19251         Delete.
19252         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
19253         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
19254         -mno-reg-stack-fill-bug-workaround.
19255         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
19256         machine member has_call_without_parameters.
19257         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
19258         -mreg-stack-fill-bug-workaround and
19259         -mno-reg-stack-fill-bug-workaround.
19260         (MMIX Options): Ditto.
19261
19262 2002-01-21  Kazu Hirata  <kazu@hxi.com>
19263
19264         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
19265         as appropriate.
19266         Remove redundant code.
19267
19268 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
19269
19270         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
19271         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
19272         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
19273         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
19274         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
19275         out target macro definitions and non-target-specific comments
19276         mostly taken from old versions of the manual.
19277
19278 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19279
19280         * config/h8300/h8300.h: Fix comment formatting.
19281         * config/ia64/aix.h: Likewise.
19282         * config/ia64/ia64-protos.h: Likewise.
19283         * config/ia64/ia64.c: Likewise.
19284         * config/ia64/ia64.h: Likewise.
19285         * config/ia64/ia64intrin.h: Likewise.
19286         * config/ia64/linux.h: Likewise.
19287         * config/ia64/unwind-aix.c: Likewise.
19288         * config/ia64/unwind-ia64.c: Likewise.
19289
19290 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19291
19292         * config/h8300/h8300.c: Revise comments about shift code.
19293
19294 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19295
19296         * config/h8300/h8300.c (function_arg): Update a comment.
19297
19298 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19299
19300         * config/h8300/h8300.md: Update the comments at the beginning
19301         of the file.
19302
19303 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19304
19305         * config/i370/i370.c: Fix comment formatting.
19306         * config/i370/i370.h: Likewise.
19307         * config/i370/i370.md: Likewise.
19308         * config/i370/linux.h: Likewise.
19309
19310 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19311
19312         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
19313
19314         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
19315         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
19316         in incomplete case.
19317
19318 2002-01-20  Graham Stott  <grahams@redhat.com>
19319
19320         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
19321
19322 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19323
19324         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
19325
19326 2002-01-19  Tom Rix  <trix@redhat.com>
19327
19328         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
19329
19330 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
19331
19332         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
19333
19334         * function.c (assign_stack_local_1): Adjust x_frame_offset with
19335         STARTING_FRAME_PHASE.
19336         (STARTING_FRAME_PHASE): New.
19337         (instantiate_virtual_regs): Check saneness of
19338         STARTING_FRAME_PHASE.
19339
19340         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
19341
19342 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
19343
19344         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
19345
19346 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19347
19348         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
19349         be used for bootstrapping GCC 3.0.
19350
19351 2002-01-18  Kazu Hirata  <kazu@hxi.com>
19352
19353         * config/h8300/h8300.md: Fix an insn length.
19354
19355 2002-01-18  Kazu Hirata  <kazu@hxi.com>
19356
19357         * bitmap.h: Fix comment formatting.
19358         * combine.c: Likewise.
19359         * cppfiles.c: Likewise.
19360         * c-pragma.h: Likewise.
19361         * c-typeck.c: Likewise.
19362         * df.c: Likewise.
19363         * dwarf2out.c: Likewise.
19364         * function.c: Likewise.
19365         * gcc.c: Likewise.
19366         * genattrtab.c: Likewise.
19367         * gthr-win32.h: Likewise.
19368         * haifa-sched.c: Likewise.
19369         * predict.c: Likewise.
19370         * rtlanal.c: Likewise.
19371         * rtl.h: Likewise.
19372         * unwind-dw2-fde.h: Likewise.
19373         * unwind-pe.h: Likewise.
19374         * vmsdbgout.c: Likewise.
19375
19376 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19377
19378         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
19379         if type_required and passed decl.
19380
19381 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
19382
19383         * config.gcc (cpu_type): Include altivec.h in powerpc
19384         extra_headers.
19385         Same for darwin.
19386
19387         * config/rs6000/altivec.h: New.
19388
19389 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
19390
19391         * doc/install.texi (*-ibm-aix*): Update assembler and exception
19392         handling information.
19393         * doc/trouble.texi (Interoperation): Add libstdc++ information
19394         for AIX.
19395         (Misunderstandings): Add template instantiation and static template
19396         member information for AIX.
19397
19398 2002-01-17  Jason Merrill  <jason@redhat.com>
19399
19400         * dbxout.c (dbxout_type): Support const and volatile.
19401
19402         * except.c (add_partial_entry): Remove backwards compatibility code.
19403         (end_protect_partials): Likewise.
19404
19405 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
19406
19407         * config/ia64/ia64.md (prologue_use): New.
19408         * config/ia64/ia64.c (ia64_expand_prologue): Use
19409         gen_prologue_use instead of gen_rtx_USE.
19410         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
19411         as CODE_FOR_pred_rel_mutex.
19412         (ia64_sched_reorder2): Likewise.
19413
19414 2002-01-16  Eric Christopher  <echristo@redhat.com>
19415
19416         * config/mips/r3900.h: Reformat.
19417         (SUBTARGET_CPP_SIZE_SPEC): Remove.
19418         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
19419         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
19420         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
19421         * config/mips/t-elf: Remove mips3 multilib.
19422
19423 2002-01-16  H.J. Lu <hjl@gnu.org>
19424
19425         * config/mips/linux.h: Include "mips/abi64.h".
19426
19427 2002-01-16  H.J. Lu <hjl@gnu.org>
19428
19429         * config/mips/t-linux: New.
19430
19431         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
19432
19433         * config/mips/linux.h: Don't include "gofast.h".
19434         (INIT_SUBTARGET_OPTABS): Removed.
19435
19436 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19437
19438         * config/h8300/h8300-protos.h: Replace emit_a_shift with
19439         output_a_shift.
19440         * config/h8300/h8300.c: Likewise.
19441         * config/h8300/h8300.md: Likewise.
19442
19443 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19444
19445         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
19446         spaces after an opcode name.
19447         (pushqi1_h8300hs): Likewise.
19448         (pushhi1_h8300hs): Likewise.
19449
19450 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19451
19452         * doc/extend.texi: Replace "option" with "attribute"
19453         appropriately.
19454
19455 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19456
19457         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
19458         (and:DI () (const_int -8)).
19459         (split_small_symbolic_mem_operand): Split
19460         (mem (and:DI () (const_int -8)).
19461
19462 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19463
19464         PR target/5309:
19465         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
19466         same way as TYPE_IMUL.
19467         (ultrasparc_sched_reorder): Likewise.
19468         * config/sparc/sparc.md (type): Add comment to update
19469         ultrasparc_sched_reorder when making changes.
19470
19471 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19472
19473         * doc/invoke.texi: Change the dump file name of block
19474         reordering pass from 28.bbro to 29.bbro.
19475         Mention -dk option.
19476
19477 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
19478
19479         * i386.md (minsf splitter): Fix pasto.
19480
19481 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
19482
19483         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
19484         to frame pointer initialisation instruction.
19485         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
19486         initialisation instruction.
19487         (soft_df_operand): Do not accept the IP register.
19488         (nonimmediate_soft_df_operand): Do not accept the IP register.
19489
19490 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19491
19492         PR target/5357:
19493         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
19494         MASK_V8 being both set.
19495
19496 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
19497
19498         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
19499         insn for GOT register; add REG_MAYBE_DEAD notes instead.
19500         config/s390/s390.md (call, call_value): Add GOT register to
19501         CALL_INSN_FUNCTION_USAGE where needed.
19502         (call_exp, call_value_exp): New.
19503
19504 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
19505
19506         * config/arm/arm.c: General formatting tidy up.
19507
19508 2002-01-16  Graham Stott  <grahams@redhat.com>
19509
19510         * calls.c (try_to_integrate): Use "(size_t)" intermediate
19511         cast and when casting an integer literal to "rtx" pointer.
19512         (expand_call): Likewise.
19513         * flow.c (try_pre_increment): Likewise.
19514         (find_use_as_address): Likewise.
19515         * integrate.c (expand_iline_function): Likewise.
19516         * regmove.c (try_auto_increment): Likewise.
19517
19518 2002-01-16  Graham Stott  <grahams@redhat.com>
19519
19520         * sched-rgn.c (passed): Use sbitmap_free.
19521         (header): Likewise.
19522         (inner): Likewise.
19523         (in_queue): Likewise.
19524         (in_stack): Likewise.
19525
19526 2002-01-15  Eric Christopher  <echristo@redhat.com>
19527
19528         * flow.c (propagate_one_insn): Change to use fatal_insn.
19529
19530 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19531
19532         * expmed.c (extract_fixed_bit_field): Remove unused code.
19533         * system.h: Poison SLOW_ZERO_EXTEND.
19534         * doc/tm.texi: Remove.
19535         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
19536         * config/arm/arm.h: Likewise.
19537         * config/avr/avr.h: Likewise.
19538         * config/clipper/clipper.h: Likewise.
19539         * config/convex/convex.h: Likewise.
19540         * config/d30v/d30v.h: Likewise.
19541         * config/dsp16xx/dsp16xx.h: Likewise.
19542         * config/elxsi/elxsi.h: Likewise.
19543         * config/fr30/fr30.h: Likewise.
19544         * config/h8300/h8300.h: Likewise.
19545         * config/i370/i370.h: Likewise.
19546         * config/i386/i386.h: Likewise.
19547         * config/m68k/m68k.h: Likewise.
19548         * config/mips/mips.h: Likewise.
19549         * config/ns32k/ns32k.h: Likewise.
19550         * config/pdp11/pdp11.h: Likewise.
19551         * config/pj/pj.h: Likewise.
19552         * config/s390/s390.h: Likewise.
19553         * config/sh/sh.h: Likewise.
19554         * config/stormy16/stormy16.h: Likewise.
19555         * config/v850/v850.h: Likewise.
19556         * config/vax/vax.h: Likewise.
19557         * config/we32k/we32k.h: Likewise.
19558
19559 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
19560
19561         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
19562         (altivec_lvsl): Change constraint to b.
19563         (altivec_lvsr): Same.
19564         (altivec_lvebx): Same.
19565         (altivec_lvehx): Same.
19566         (altivec_lvewx): Same.
19567         (altivec_lvxl): Same.
19568         (altivec_lvx): Same.
19569         (altivec_stvx): Add parallel.
19570         (altivec_stvxl): Same.
19571         (altivec_stvehx): Same.
19572         (altivec_stvebx): Same.
19573         (altivec_stvebx): Same.
19574
19575 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
19576
19577         * config.gcc: Change altivec.h to altivec-defs.h.
19578
19579         * config/rs6000/altivec.h: Delete.
19580
19581         * config/rs6000/altivec-defs.h: Add.
19582
19583 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19584
19585         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
19586         and UMOD modes.
19587
19588         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
19589         less than or equal to eight bytes.
19590
19591         * vax.md (andsi3): Remove constraints and change SET destination
19592         operand type to nonimmediate_operand.
19593         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
19594         when it is a CONST_INT.
19595
19596 2002-01-15  Jason Merrill  <jason@redhat.com>
19597
19598         * c-common.def (FILE_STMT): New code.
19599         * c-common.c (statement_code_p): It's a statement.
19600         * c-common.h (stmt_tree_s): Add x_last_filename.
19601         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
19602         (last_expr_filename): New macro.
19603         * c-semantics.c (begin_stmt_tree): Initialize it.
19604         (add_stmt): If the filename changed, also insert a
19605         FILE_STMT.
19606         (expand_stmt): Handle seeing one.
19607
19608 2002-01-15  Eric Christopher  <echristo@redhat.com>
19609
19610         * flow.c (propagate_one_insn): Add error message and print out
19611         insn for debugging.
19612
19613 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
19614
19615         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
19616         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
19617         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
19618         TRAMPOLINE_ALIGNMENT.
19619         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
19620         to be in bits.
19621         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
19622         PCC_BITFIELD_TYPE_MATTERS.
19623         * config/interix.h (STDC_VALUE): Remove.  Use
19624         STDC_0_IN_SYSTEM_HEADERS.
19625         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
19626         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
19627         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
19628
19629 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19630
19631         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
19632         not work on this platform currently.
19633
19634 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
19635
19636         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
19637         readonly_warning in _().
19638
19639 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
19640
19641         * gcc.c (delete_if_ordinary): Backout previous change.
19642
19643 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19644
19645         * config/h8300/h8300.c (print_operand): Remove support for
19646         unused operand characters.
19647
19648         * read-rtl.c: Fix formatting.
19649         * real.c: Likewise.
19650         * recog.c: Likewise.
19651         * regclass.c: Likewise.
19652         * regmove.c: Likewise.
19653         * reg-stack.c: Likewise.
19654         * reload1.c: Likewise.
19655         * rtlanal.c: Likewise.
19656
19657 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19658
19659         * config/i386/i386.c: Fix formatting.
19660
19661 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
19662
19663         * c-typeck.c (process_init_element): Don't save_expr
19664         COMPOUND_LITERAL_EXPR if just its initializer will be used.
19665
19666 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
19667
19668         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
19669         emit optional traceback table if optimize_size or TARGET_ELF.
19670         * config/rs6000/rs6000.md (prefetch): New.
19671
19672 2002-01-15  Andreas Jaeger  <aj@suse.de>
19673
19674         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
19675
19676 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19677
19678         * mips-tfile.c: Fix formatting.
19679
19680 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
19681
19682         * unroll.c (final_reg_note_copy): Fix previous commit.
19683
19684 2002-01-14  Kazu Hirata  <kazu@hxi.com>
19685
19686         * config/h8300/h8300-protos.h: Remove the prototype for
19687         eq_operator.
19688         * config/h8300/h8300.c (eq_operator): Remove.
19689
19690 2002-01-14  Richard Henderson  <rth@redhat.com>
19691
19692         * config/i386/i386.md (prefetch): Tidy.
19693         (prefetch_3dnow): Fix locality operand.
19694
19695 2002-01-14  Richard Henderson  <rth@redhat.com>
19696
19697         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
19698         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
19699
19700 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
19701
19702         * reload1.c (reload_combine): Pass reg_sum replacement through
19703         copy_rtx in loop performing multiple changes.
19704
19705 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
19706
19707         * except.c (remove_unreachable_regions): New.
19708         (free_eh_status): Clear exception_handler_labels.
19709         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
19710         (find_exception_handler_labels): Don't add the same label more than
19711         once.
19712         (remove_exception_handler_label): Don't die if
19713         find_exception_handler_labels hasn't been called for the current
19714         function yet.
19715
19716 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
19717
19718         * toplev.c (rest_of_compilation): Rebuild jump labels after
19719         gcse.
19720
19721 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
19722
19723         * doc/extend.texi: Move documentation of X86 built-in functions
19724         here.
19725         * doc/invoke.texi: From here.
19726         * doc/sourcebuild.texi: Document location of documentation for
19727         machine built-in functions.
19728
19729 2002-01-13  Christopher Faylor  <cgf@redhat.com>
19730
19731         * cppfiles.c (TEST_THRESHOLD): New macro.
19732         (SHOULD_MMAP): Ditto.
19733         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
19734         be used.
19735
19736 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
19737
19738         * unroll.c (final_reg_note_copy): Properly handle
19739         REG_LABEL
19740         (unroll_loops): Fix LOOP_CONDITION heuristics.
19741
19742 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
19743
19744         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
19745         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
19746
19747 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
19748
19749         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
19750         threaded loop.
19751
19752 2002-01-14  Tom Rix  <trix@redhat.com>
19753
19754         * config/rs6000/rs6000.md: Fix typo with sradi.
19755
19756 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
19757
19758         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
19759         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
19760         (clrstrdi, clrstrsi): Adapt callers.
19761
19762         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
19763
19764         (movti splitter): Never use register 0 as base register.
19765
19766 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
19767
19768         * combine.c (simplify_shift_const): Always generate new rtx
19769         for shift expression instead of reusing given expression.
19770
19771 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19772
19773         * config/alpha/alpha.c (alpha_expand_mov): Don't call
19774         alpha_legitimize_address unless mode is Pmode.
19775
19776 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
19777
19778         * doc/md.texi (Modifiers): Document the '*' constraint for the
19779         user.
19780
19781         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
19782         * doc/extend.texi (Function Attributes): 'interrupt' is valid
19783         for xstormy16 too.
19784
19785 2002-01-13  Richard Henderson  <rth@redhat.com>
19786
19787         * reload.c (find_reloads): Use a hard reg destination as reload reg
19788         for an input reload of the source.
19789
19790 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19791
19792         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
19793         more generic.
19794
19795 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
19796
19797         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
19798         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
19799
19800         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
19801
19802 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19803
19804         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
19805
19806 2002-01-12  Tom Rix  <trix@redhat.com>
19807
19808         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
19809         TARGET_POWERPC64.
19810
19811 2002-01-12  Richard Henderson  <rth@redhat.com>
19812
19813         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
19814
19815         * doc/invoke.texi: Update Alpha options.
19816
19817         * doc/invoke.texi: Update i386 built-in function lists.
19818
19819 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
19820
19821         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
19822         referencing outside.
19823
19824 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19825
19826         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
19827         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
19828         offsets, and change line folding.
19829         * optabs.c (expand_binop): Remove warnings.
19830         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
19831
19832 2002-01-12  Graham Stott <grahams@redhat.com>
19833
19834         * attribs.c (handle_deprecated_attribute): constify WHAT.
19835         * diagnostic.c (warn_deprecated_use): Add braces, fixes
19836         dangling else warning and constify WHAT.
19837         * except.h (struct function, struct inline_remap): Move
19838         struct tag forward defs before all prototypes.
19839         (duplicate_eh_regions): Whitespace.
19840
19841 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
19842
19843         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
19844         MODE_BASE_REG_CLASS.
19845         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
19846
19847 2002-01-12  Richard Henderson  <rth@redhat.com>
19848
19849         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
19850         (ix86_expand_vector_move): New.
19851         (bdesc_2arg): Remove andps, andnps, orps, xorps.
19852         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
19853         Remove old prefetch builtins.  Special case the logicals removed above.
19854         (ix86_expand_builtin): Likewise.
19855         (safe_vector_operand): Use V4SFmode, not TImode.
19856         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
19857         (ix86_expand_timode_binop_builtin): New.
19858         * config/i386/i386-protos.h: Update.
19859         * config/i386/i386.h (enum ix86_builtins): Update.
19860         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
19861         Use ix86_expand_vector_move in vector move expanders.
19862         (movti_internal, movti_rex64): Add xorps alternative.
19863         (sse_clrv4sf): Rename and adjust from sse_clrti.
19864         (prefetch): Don't work so hard.
19865         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
19866         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
19867         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
19868
19869 2002-01-11  Richard Henderson  <rth@redhat.com>
19870
19871         * config/i386/mmintrin.h: New file.
19872         * config/i386/xmmintrin.h: New file.
19873         * config.gcc (i?86-*-*): Add extra_headers.
19874         * simplify-rtx.c (simplify_unary_operation): Handle saturating
19875         truncation codes.
19876         (simplify_binary_operation): Handle saturating arithmetic codes.
19877         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
19878         not the lowpart subreg.
19879         (ix86_expand_builtin): Return a TImode dummy register instead of 0
19880         on error.
19881         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
19882
19883 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
19884
19885         * conflict.c (conflict_graph_compute): Free regsets when finished.
19886         * ssa.c (compute_coalesced_reg_partition): Likewise.
19887
19888 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19889
19890         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
19891         every where we allocate a register.
19892
19893 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
19894
19895         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
19896         * lcm.c (compute_earliest, compute_farthest): Likewise.
19897
19898 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
19899
19900         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
19901
19902 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
19903
19904         * doc/rtl.texi (Insns): Fix 2 typos.
19905
19906 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
19907
19908         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
19909         options.  Use @table @gcctabopt for MMIX options.  Add index
19910         entries for MMIX options.  Start new paragraph with first
19911         heading of the machine-dependent options.
19912
19913 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19914
19915         PR other/5299
19916         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
19917         * combine.c (force_to_mode): Same.
19918         * reload1.c (clear_reload_reg_in_use): Same.
19919
19920 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
19921
19922         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
19923         and 'subtargets'.
19924
19925 2002-01-11  Andreas Jaeger  <aj@suse.de>,
19926             Brad Lucier <lucier@math.purdue.edu>
19927
19928         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
19929         mcpu.
19930
19931 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
19932
19933         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
19934         Protect with IN_LIBGCC.
19935         (LINK_EH_SPEC): Add required trailing space.
19936
19937 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
19938
19939         * c-tree.h: Move function declarations so that they are listed
19940         under the filename which contains them.
19941         (check_identifier, finish_decl_top_level,
19942         lookup_name_current_level_global, shadow_record_fields): Remove.
19943
19944 2002-01-11  Andreas Jaeger  <aj@suse.de>
19945
19946         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
19947         march.
19948
19949 2002-01-10  Richard Henderson  <rth@redhat.com>
19950
19951         * config/alpha/alpha.c (print_operand): Add 'J'.
19952         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
19953         new operand with the sequence number for the lituse.  When splitting
19954         the insns, use gen_movdi_er_high_g and generate a sequence number.
19955         (gen_movdi_er_high_g): Print the sequence number if non-zero.
19956
19957 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
19958
19959         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
19960         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
19961         stvxl.
19962         (altivec_expand_builtin): Same.
19963         (altivec_expand_stv_builtin): New.
19964
19965         * config/rs6000/rs6000.h (rs6000_builtins): Same.
19966
19967         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
19968         ("altivec_lvehx"): New.
19969         ("altivec_lvewx"): New.
19970         ("altivec_lvxl"): New.
19971         ("altivec_lvx"): New.
19972         ("altivec_stvx"): New.
19973         ("altivec_stvebx"): New.
19974         ("altivec_stvehx"): New.
19975         ("altivec_stvewx"): New.
19976         ("altivec_stvxl"): New.
19977
19978 2002-01-10  Richard Henderson  <rth@redhat.com>
19979
19980         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
19981         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
19982         care not to delete instructions twice.
19983
19984 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
19985
19986         * toplev.c: Don't declare environ (it's not used anywhere).
19987         * configure.in: Don't check for declaration of environ.
19988         * config/i386/xm-mingw32.h: Don't #define environ.
19989         * config.in, configure: Regenerate.
19990
19991 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
19992
19993         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
19994         * configure: Regenerate.
19995
19996         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
19997         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
19998         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
19999         alpha/xm-vms.h.
20000         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
20001         LIMITS_H_TEST here, not in m68k/x-next.
20002         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
20003         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
20004
20005         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
20006         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
20007         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
20008
20009         * config/i386/x-djgpp: Renamed i386/t-djgpp.
20010         * config/m88k/x-dolph: Renamed m88k/t-dolph.
20011         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
20012         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
20013         replacement of quadlib.asm with quadlib.c.
20014
20015         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
20016         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
20017         config/rs6000/xm-beos.h: Delete file.
20018
20019         * config.gcc: Update to match above changes.
20020
20021 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20022
20023         * config/h8300/h8300.h: Fix comment typos.
20024         * config/h8300/h8300.md: Likewise.
20025         * config/h8300/lib1funcs.asm: Likewise.
20026
20027 2002-01-10  Dale Johannesen  <dalej@apple.com>
20028
20029         PR optimization/5269
20030         * unroll.c (precondition_loop_p): Make *increment be the correct
20031         sign when n_iterations known, to avoid confusing caller.
20032
20033 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20034
20035         * doc/extend.texi (deprecated): Fix a typo.
20036
20037 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
20038
20039         * basic-block.h (update_br_prob_note): Declare.
20040         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
20041         (try_forward_edges): Care negative frequencies and update note.
20042         (outgoing_edges_match): Tweek conditional merging heuristics.
20043         (try_crossjump_to_edge): use update_br_prob_note.
20044         * cfglayout.c (fixup_reorder_chain): Likewise.
20045         * cfrtl.c (update_br_prob_note): New.
20046         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
20047
20048         * i386.c (ix86_decompose_address): Return -1 if address contains
20049         shift.
20050         (legitimate_address_p): Require ix86_decompose_address to return 1.
20051
20052         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
20053         (cprop_insn): Likewise.
20054
20055 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20056
20057         * toplev.c: Fix formatting.
20058         * tree.c: Likewise.
20059         * tree-dump.c: Likewise.
20060         * unroll.c: Likewise.
20061         * unwind-dw2.c: Likewise.
20062         * unwind-dw2-fde.c: Likewise.
20063         * unwind-dw2-fde-glibc.c: Likewise.
20064         * unwind-sjlj.c: Likewise.
20065
20066 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
20067
20068         * doc/invoke.texi: Document PDP-11 options.
20069
20070 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20071
20072         * config/h8300/h8300.h: Fix formatting.
20073
20074 2002-01-10  Ira Ruben   <ira@apple.com>
20075
20076         Add __attribute__ ((deprecated)).
20077         * extend.texi: Document __attribute__ ((deprecated)).
20078         * invoke.texi: Document -Wno-deprecated-declarations.
20079         * testsuite/g++.dg/other/deprecated.C: New C++ test.
20080         * testsuite/gcc.dg/deprecated.c: New C test.
20081         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
20082         (c_common_attribute_table): Add "deprecated" entry.
20083         (handle_deprecated_attribute): New function.
20084         * c-decl.c (deprecated_states): New enum.
20085         deprecated_state: State of "deprecated" handling.
20086         (start_decl): Set deprecated_state based on attributes.
20087         (grokdeclarator): Test for deprecated uses, propagate attribute.
20088         * c-typeck.c (build_component_ref): Test for deprecated fields.
20089         (build_external_ref): Test for deprecated primaries.
20090         * diagnostic.c (warn_deprecated_use) New function to issue
20091         warnings about __attribute__ ((depricated)) references.
20092         * flags.h (warn_deprecated_decl): Extern declared for
20093         -W[no-]deprecated-declarations option.
20094         * print-tree.c (print_node): Show deprecated flag status.
20095         * toplev.c (warn_deprecated_decl): Defined.
20096         (W_options): Added "deprecated-declaration".
20097         * toplev.h (warn_deprecated_use): Extern declared.
20098         * tree.h (struct tree_common): Define deprecated_flag.
20099         (TREE_DEPRECATED): New macro to access flag.
20100         * cp/call.c (build_call): Test for deprecated calls.
20101         * cp/class.c (add_implicitly_declared_members): Set global
20102         flag to tell grokdeclarator to not issue deprecated warnings.
20103         * cp/cp-tree.h: Add extern for adding_implicit_members.
20104         * cp/decl.c (deprecated_states): New enum.
20105         (start_decl): Set deprecated_state based on attributes.
20106         (grokdeclarator): Test for deprecated uses, propagate attribute.
20107         * cp/lex.c (do_identifier): Test for deprecated primaries.
20108         * cp/typeck.c (build_component_ref): Test for deprecated fields.
20109
20110 2002-01-10  Ira Ruben   <ira@apple.com>
20111
20112         Fix to assign attributes to inline member functions.
20113         * cp/decl.c (start_method): Handle attrlist.
20114
20115 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20116
20117         * combine.c (expand_field_assignment): Use subreg_lsb().
20118
20119 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
20120
20121         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
20122         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
20123         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
20124         Recurse for any operand of AND as long as constant is non-zero.
20125
20126 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20127
20128         * config/h8300/h8300.md: Remove constraints from expanders.
20129
20130 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20131
20132         * varasm.c: Fix formatting.
20133         * varray.c: Likewise.
20134         * vmsdbgout.c: Likewise.
20135         * xcoffout.c: Likewise.
20136
20137 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
20138
20139         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
20140         update edge probabilities to match.
20141
20142 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
20143
20144         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
20145         dependencies.
20146         * doc/languages.texi, doc/sourcebuild.texi: New files.
20147         * doc/configfiles.texi: Make a subsubsection.  Update.
20148         * doc/configterms.texi: Add @node.  Remove warning that this isn't
20149         instructions for building GCC.
20150         * doc/makefile.texi: Make a subsection.
20151         * doc/gccint.texi: Update.
20152
20153 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
20154
20155         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
20156
20157 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
20158
20159         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
20160
20161 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
20162
20163         * optabs.c (expand_fix): Look for wider integer modes first.
20164
20165         * i386.md (mov?f): Avoid the fake const double trick for medium
20166         memory model.
20167         (min?f*/max?f*): Prohibit memory operands for i387 variant.
20168         (fop_df_4): Disable for SSE compilation.
20169
20170 2002-01-10  Graham Stott  <grahams@redhat.com>
20171
20172         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
20173         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
20174
20175 2002-01-10  Richard Henderson  <rth@redhat.com>
20176
20177         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
20178
20179 2002-01-10  Richard Henderson  <rth@redhat.com>
20180
20181         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
20182         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
20183
20184 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20185
20186         * combine.c (can_combine_p): Fix a comment typo.
20187
20188 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
20189
20190         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
20191         empty list correctly.  Change loop index $t to $f for
20192         consistency with rest of Makefile.
20193
20194 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
20195
20196         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
20197         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20198
20199         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
20200         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
20201         (altivec_init_builtins): Same.
20202         (altivec_expand_unop_builtin): Return NULL_RTX on error.
20203         (altivec_expand_binop_builtin): Same.
20204         (altivec_expand_ternop_builtin): Same.
20205         (bdesc_dst): New.
20206
20207         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
20208         ("altivec_vctuxs"): Fix typo.
20209         ("altivec_vnmsubfp"): Same.
20210         ("altivec_dssall"): New.
20211         ("altivec_mfvscr"): New.
20212         ("altivec_dss"): New.
20213         ("altivec_lvsl"): New.
20214         ("altivec_lvsr"): New.
20215         ("altivec_dstt"): New.
20216         ("altivec_dstst"): New.
20217         ("altivec_dststt"): New.
20218         ("altivec_dst"): New.
20219
20220         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
20221         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20222
20223 2002-01-09  Richard Henderson  <rth@redhat.com>
20224
20225         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
20226
20227 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
20228
20229         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
20230         function.
20231         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
20232         prototype.
20233         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
20234
20235 2002-01-09  Kazu Hirata  <kazu@hxi.com>
20236
20237         * read-rtl.c: Fix formatting.
20238         * real.c: Likewise.
20239         * regclass.c: Likewise.
20240         * regrename.c: Likewise.
20241         * reg-stack.c: Likewise.
20242         * reload1.c: Likewise.
20243         * reload.c: Likewise.
20244         * rtl.c: Likewise.
20245
20246 2002-01-09  Kazu Hirata  <kazu@hxi.com>
20247
20248         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
20249         to extract items in the expr_list chain.
20250
20251 2002-01-09  Richard Henderson  <rth@redhat.com>
20252
20253         * config/vax/vax.c (vax_rtx_cost): Never abort.
20254
20255         * config/vax/vax.h (REAL_ARITHMETIC): Define.
20256
20257 2002-01-09  Jan Hubicka  <jh@suse.cz>
20258
20259         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
20260
20261 2002-01-09  Richard Henderson  <rth@redhat.com>
20262
20263         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
20264         Unify code from various alternatives.
20265
20266 2002-01-09  Richard Henderson  <rth@redhat.com>
20267
20268         * regrename.c (copy_value): Ignore the copy if the source register
20269         is present in the value chain with a narrower mode.
20270
20271 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
20272
20273         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
20274         for the c4x target. Also improve layout.
20275
20276 2002-01-09  Richard Henderson  <rth@redhat.com>
20277
20278         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
20279         * config/m32r/m32r.md (and ior xor splitters): Swap operands
20280         to match insn patterns.
20281
20282 2002-01-09  Richard Henderson  <rth@redhat.com>
20283
20284         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
20285         (copyprop_hardreg_forward_1): Likewise.
20286
20287 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20288
20289         * pa.md (decrement_and_branch_until_zero): Change predicate for
20290         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
20291
20292 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
20293
20294         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
20295         gets undefined. For Darwin.
20296
20297 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20298
20299         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
20300
20301 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20302
20303         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
20304
20305 2002-01-08  Richard Henderson  <rth@redhat.com>
20306
20307         * regrename.c (copy_value): Ignore overlapping copies.
20308
20309 2002-01-08  Richard Henderson  <rth@redhat.com>
20310
20311         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
20312         as needed to avoid shared structure.
20313
20314 2002-01-08  Kazu Hirata  <kazu@hxi.com>
20315
20316         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
20317         H8/300H and H8/S.
20318
20319 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20320
20321         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
20322         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
20323         documentation of obsolete macros.
20324         * system.h: Poison these macros.
20325         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
20326         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
20327         config/c4x/c4x.h, config/clipper/clipper.h,
20328         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
20329         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
20330         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
20331         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
20332         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
20333         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
20334         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
20335         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
20336         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
20337         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
20338         config/sparc/sparc.h, config/stormy16/stormy16.h,
20339         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
20340         definitions and commented out definitions of obsolete macros.
20341         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
20342         of MAX_INT_TYPE_SIZE.
20343
20344 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
20345
20346         * config/s390/s390.c (s390_preferred_reload_class): Never
20347         return ADDR_REGS if it isn't a subset of the given class.
20348         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
20349         FP_REGS, but all superclasses as well.
20350
20351         * config/s390/s390.c (s390_function_profiler): Fix thinko.
20352
20353         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
20354         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
20355         must not be a const_int.
20356
20357 2002-01-08  Richard Henderson  <rth@redhat.com>
20358
20359         * Makefile.in (toplev.o): Depend on options.h.
20360         (gcc.o): Depend on specs.h.
20361
20362 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
20363
20364         * expr.c (store_expr): Convert VOIDmode constants back to target's
20365         mode.
20366
20367 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
20368
20369         * doc/invoke.texi: Markup gcc as @command.  Refer to
20370         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
20371         of http://gcc.gnu.org/thanks.html.
20372
20373 2002-01-08  Dale Johannesen  <dalej@apple.com>
20374
20375         * config/rs6000/rs6000.md: Add missing int register
20376         target case to movdf_low.
20377
20378 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
20379
20380         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
20381         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
20382         (cppinit.o): Depend on except.h.
20383         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
20384         s-specs): New rules.
20385
20386         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
20387         Don't create specs.h/options.h/gencheck.h here.  Remove
20388         unnecessary variable settings from last argument of AC_OUTPUT.
20389         * config.in, configure: Regenerate.
20390         * intl.c: Hardcode package name as "gcc".
20391
20392         * cppinit.c: Include except.h.
20393         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
20394         appropriate.
20395         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
20396         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
20397         (!)USING_SJLJ_EXCEPTIONS.
20398         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
20399
20400 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20401
20402         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
20403         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
20404         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
20405         documentation of obsolete macros.
20406         * system.h: Poison these macros.
20407         * config/d30v/d30v.h, config/ns32k/encore.h,
20408         config/stormy16/stormy16.h: Remove definitions and commented out
20409         definitions of obsolete macros.
20410
20411 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
20412
20413         * objc/objc-act.c (handle_class_ref): Mark the declaration of
20414         %sobjc_class_ref_%s as used - to prevent unwanted compiler
20415         warnings.
20416
20417 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
20418
20419         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
20420         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
20421         to insn adjusting stack/frame pointer.
20422         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
20423         accept operands that cause the insn to be non-splittable.
20424
20425 2002-01-08  Graham Stott  <grahams@redhat.com>
20426
20427         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
20428         (C_TYPE_FIELDS_VOLATILE): Likewise.
20429         (C_TYPE_BEING_DEFINED): Likewise.
20430         (C_IS_RESERVED_WORD): Likewise.
20431         (C_TYPE_VARIABLE_SIZE): Likewise.
20432         (C_DECL_VARIABLE_SIZE): Likewise.
20433         (C_MISSING_PROTOTYPE_WARNED): Likewise.
20434         (C_SET_EXP_ORIGINAL_CODE): Likewise.
20435         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
20436         parenthesis.
20437         (C_DECL_ANTICIPATED): Likewise.
20438         (c_build_type_variant): Add parenthesis.
20439
20440 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20441
20442         * gcc.c (option_map): Remove --version.
20443         (process_command): Handle -fversion following the GNU Coding
20444         Standards.  Partially addresses PR other/704.
20445
20446 2002-01-08  Graham Stott  <grahams@redhat.com>
20447
20448         * combine.c (combine_instructions): Fix typo.
20449
20450 2002-01-08  Graham Stott  <grahams@redhat.com>
20451
20452         * debug.h: Use "tree" and "rtx" throughout.
20453
20454         * debug.c: Likewise.
20455
20456 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
20457
20458         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
20459         constant pool, use the pool's version of the symbol instead.
20460
20461 2002-01-07  Richard Henderson  <rth@redhat.com>
20462
20463         * regrename.c (find_oldest_value_reg): Ignore the value chain if
20464         the original register was copied in a mode with a fewer number of
20465         hard registers than the desired mode.
20466         (copyprop_hardreg_forward_1): Likewise.
20467         (debug_value_data): Fix loop test.
20468         * toplev.c (parse_options_and_default_flags): Reenable
20469         -fcprop-registers at -O1.
20470
20471 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20472
20473         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
20474         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
20475
20476         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
20477         predicates.
20478
20479         * config/rs6000/rs6000.md: Add altivec predicate patterns.
20480
20481 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20482
20483         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
20484         (pa_output_function_prologue): Output local label at the beginning of
20485         the prologue when profiling.
20486         (hppa_profile_hook): Use the local label rather than the function label.
20487         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
20488
20489 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20490
20491         * config/rs6000/rs6000.c (print_operand): Remove extra space.
20492         (altivec_expand_unop_builtin): Fix thinko.
20493         (altivec_expand_binop_builtin): Same.
20494         (altivec_expand_ternop_builtin): Same.
20495         (altivec_expand_builtin): Same.
20496
20497 2002-01-07  Richard Henderson  <rth@redhat.com>
20498
20499         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
20500
20501 2002-01-07  Jason Merrill  <jason@redhat.com>
20502
20503         * unwind-dw2.c (execute_cfa_program): Use < again.
20504
20505 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
20506
20507         * predict.c (combine_predictions_for_insn): Avoid division by zero.
20508
20509 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
20510
20511         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
20512         Don't allow -1 - x -> ~x simplifications in the first pass.
20513
20514 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20515
20516         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
20517         arguments.
20518         (altivec_expand_binop_builtin): Same.
20519         (altivec_expand_unop_builtin): Same.
20520         (print_operand): Fix typo.
20521         (bdesc_1arg): Add vupk* variants.
20522
20523         * rs6000.h (rs6000_builtins): Add vupk* enums.
20524
20525         * rs6000.md: Add altivec_vupk* variants.
20526
20527 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
20528
20529         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
20530         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
20531         and last update dates.
20532
20533 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
20534
20535         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
20536
20537 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
20538
20539         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
20540         * config/avr/avr.h (CPP_SPEC): Likewise.
20541         (LINK_SPEC): Likewise.
20542         (CRT_BINUTILS_SPECS): Likewise.
20543         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
20544         * doc/invoke.texi (AVR Options): Document them.
20545
20546 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
20547
20548         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
20549         LABEL_NUSES.
20550
20551 2002-01-07  Graham Stott  <grahams@redhat.com>
20552
20553         * config/i386/i386.h: Update copyright date.
20554         (HALF_PIC_PTR): Add parenthesis.
20555         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
20556         (CONSTANT_ALIGNMENT): Add parenthesis.
20557         (DATA_ALIGNMENT): Likewise.
20558         (LOCAL_ALIGNMENT): Likewise.
20559         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
20560         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
20561         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
20562         (HARD_REGNO_NREGS): Add paranethesis.
20563         (VALID_SSE_REG_MODE): Whitespace.
20564         (VALID_MMX_REG_MODE): Whitespace.
20565         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
20566         (ix86_hard_regno_mode_ok): Add parenthesis.
20567         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
20568         (RETURN_IN_MEMORY): Whitespace.
20569         (N_REG_CLASSES): Add parenthesis.
20570         (INTEGER_CLASS_P): Add parenthesis and wrap.
20571         (FLOAT_CLASS_P): Likewise.
20572         (SSE_CLASS_P): Likewise.
20573         (MMX_CLASS_P): Likewise.
20574         (MAYBE_INTEGER_CLASS_P): Likewise.
20575         (MAYBE_FLOAT_CLASS_P): Likewise.
20576         (MAYBE_SSE_CLASS_P): Likewise.
20577         (MAYBE_MMX_CLASS_P): Likewise.
20578         (Q_CLASS_P): Likewise.
20579         (GENERAL_REGNO_P): Uppercase macro parameter.
20580         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
20581         (FP_REGNO_P): Likewise.
20582         (ANY_FP_REGNO_P): Uppercase macro parameter.
20583         (SSE_REGNO_P): Likewise.
20584         (SSE_REGNO): Likewise.
20585         (SSE_REG_P): Likewise.
20586         (SSE_FLOAT_MODE_P): Likewise.
20587         (MMX_REGNO_P): Likewise.
20588         (MMX_REG_P):Likewise.
20589         (STACK_REG_P): Likewise.
20590         (NON_STACK_REG_P): Likewise.
20591         (STACK_TOP_P): Likewise.
20592         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
20593         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
20594         (SECONDARY_MEMORY_NEEDED): Likewise.
20595         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
20596         (MD_ASM_CLOBBERS): Whitespace and wrap.
20597         (MUST_PASS_IN_STACK): Whitespace and wrap.
20598         (RETURN_POPS_ARGS): Add parenthesis.
20599         (INIT_CUMULATIVE_ARGS): Likewise.
20600         (FUNCTION_ARG): Likewise.
20601         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
20602         (SETUP_INCOMING_VARARGS): Likewise.
20603         (BUILD_VA_LIST_TYPE):  Add parenthesis.
20604         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
20605         parenthsis.
20606         (EXPAND_BUILTIN_VA_ARG): Likewise.
20607         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
20608         (INITIALIZE_TRAMPOLINE): Add parenthesis.
20609         (INITIAL_ELIMINATION_OFFSET): Likewise.
20610         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
20611         (REGNO_OK_FOR_BASE_P): Likewise.
20612         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
20613         (REGNO_OK_FOR_DIREG_P): Likewise.
20614         (REG_OK_FOR_INDEX_P): Whitespace.
20615         (REG_OK_FOR_BASE_P): Whitespace.
20616         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
20617         parenthesis.
20618         (FIND_BASE_TERM): Fix typo.
20619         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
20620         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
20621         (SYMBOLIC_CONST; Whitespace.
20622         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
20623         (ENCODE_SECTION_INFO): Whitespace.
20624         (FINALIZE_PIC): Remove do { ... } while (0).
20625         (PROMOTE_MODE): Wrap in do { ... } while (0).
20626         (CONST_COSTS): Whitespace.
20627         (RTX_COSTS): Add paramethesis, whitespace and wrap.
20628         (REGISTER_MOVE_COST): Add parenthesis.
20629         (MEMORY_MOVE_COST): Likewise.
20630         (EXTRA_CC_MODES): Whitespace.
20631         (SELECT_CC_MODE): Add parenthesis and whitespace.
20632         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
20633         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
20634         (ASM_OUTPUT_LABEL): Add paramethesis.
20635         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
20636         (ASM_OUTPUT_REG_POP): Likewise.
20637         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
20638         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20639
20640         * config/i386/i386.c: Update copyright.
20641         (CHECK_STACK_LIMIT): Add parenthesis.
20642         (AT_BP): Uppercase macro parameter.
20643         (x86_64_int_parameter_registers): Constify.
20644         (x86_64_int_return_registers): Likewise.
20645         (ix86_compare_op0): Use rtx.
20646         (construct_container): Constify INTREG parameter.
20647         (function_arg): Use rtx.
20648
20649         * diagnostic.h: Update copyright date.
20650         (output_buffer_state): Add parenthesis.
20651         (output_buffer_format_args): Likewise.
20652
20653         * combine.c (combine_instructions): Replace XEXP (links, 0)
20654         with link.
20655
20656 2002-01-06  H.J. Lu <hjl@gnu.org>
20657
20658         * cfgcleanup.c (thread_jump): Fix 2 typos.
20659
20660 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
20661
20662         * config.gcc: Add support for --enable-altivec.
20663
20664 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20665
20666         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
20667
20668 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
20669
20670         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
20671         __objc_class_name_*.
20672
20673 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20674
20675         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
20676
20677 2002-01-06  Richard Henderson  <rth@redhat.com>
20678
20679         * reorg.c (emit_delay_sequence): Remove death notes, not merely
20680         nop them out.  Increment label reference count for REG_LABEL.
20681         (fill_slots_from_thread): Frob label reference count around
20682         delete_related_insns.
20683
20684 2002-01-05  Richard Henderson  <rth@redhat.com>
20685
20686         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
20687         jump threading.
20688
20689 2002-01-05  Richard Henderson  <rth@redhat.com>
20690
20691         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
20692         * integrate.c (output_inline_function): Likewise.
20693         * toplev.c (rest_of_compilation): Do it here instead.  Move call
20694         to remove_unnecessary_notes after emitting abstract instance.
20695         Force an emitted nested function to have its parent emited as well.
20696         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
20697         for null.
20698         (rtl_for_decl_location): Do not look at reload data structures
20699         before reload has run.
20700
20701 2002-01-05  Kazu Hirata  <kazu@hxi.com>
20702
20703         * cse.c: Fix formatting.
20704         * dwarf2asm.c: Likewise.
20705         * dwarf2out.c: Likewise.
20706         * explow.c: Likewise.
20707         * expmed.c: Likewise.
20708         * function.c: Likewise.
20709         * gcov.c: Likewise.
20710         * gencheck.c: Likewise.
20711         * genrecog.c: Likewise.
20712         * ggc-common.c: Likewise.
20713         * ggc-page.c: Likewise.
20714         * global.c: Likewise.
20715
20716 2002-01-05  Kazu Hirata  <kazu@hxi.com>
20717
20718         * combine.c: Fix formatting.
20719
20720 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
20721
20722         PR middle-end/1557
20723         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
20724
20725 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
20726
20727         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
20728         as 1 for __powerpc64__ as well.
20729
20730         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
20731
20732         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
20733         return it.
20734
20735 2002-01-05  Daniel Berlin  <dan@dberlin.org>
20736
20737         * lcm.c: Revert change, due to performance regression it causes on
20738         SPEC because it's slightly more conservative (sigh, I hate
20739         edge-based LCM).
20740
20741 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
20742
20743         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
20744
20745 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
20746
20747         * doc/cppinternals.texi: Update.
20748
20749 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
20750
20751         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
20752         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
20753         negatives.
20754         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
20755         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
20756         kludge for pre-october-14th mmix versions to handle new-found bug
20757         with PUSHJ/PUSHGO and the register stack.
20758         * config/mmix/mmix.h (struct machine_function): Rename member
20759         has_call_value_without_parameters to has_call_without_parameters.
20760         All referers changed.
20761         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
20762         TARGET_MASK_BRANCH_PREDICT): New macros.
20763         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
20764         -mno-reg-stack-fill-bug-workaround.
20765         * config/mmix/mmix.md ("call"): Set struct machine member
20766         has_call_without_parameters.
20767
20768 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
20769
20770         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
20771
20772 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
20773
20774         * cfgcleanup.c: Include tm_p.h
20775         (mark_effect): Fix handling of hard register; fix handling of SET
20776
20777 2002-01-04  Kazu Hirata  <kazu@hxi.com>
20778
20779         * config/h8300/h8300.md (anonymous patterns): Check that
20780         operands are registers before using REGNO on them.
20781
20782 2002-01-03  Roland McGrath  <roland@frob.com>
20783
20784         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
20785
20786 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
20787
20788         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
20789         * c-common.h (genrtl_expr_stmt_value): Likewise.
20790         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
20791         (expand_expr_stmt_value): Add maybe_last argument.
20792         Don't warn about statement with no effect if it is the last statement
20793         in expression statement.
20794         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
20795         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
20796         expand_expr_stmt_value.
20797         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
20798         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
20799         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
20800         as maybe_last to expand_expr_stmt_value.
20801
20802 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
20803
20804         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
20805         be passed in, do not build it.
20806         (c_begin_if_stmt): New function.
20807         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
20808         * c-common.h (c_expand_start_cond): Update prototype.
20809         (c_begin_if_stmt): Prototype new function.
20810         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
20811         * c-parse.in (if_prefix): Use c_begin_if_stmt,
20812         c_begin_while_stmt and c_finish_while_stmt_cond.
20813
20814 2002-01-04  William Cohen  <wcohen@redhat.com>
20815
20816         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
20817         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
20818         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
20819         * config/pa/som.h (ASM_FILE_START): Likewise.
20820
20821 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
20822
20823         * lcm.c: Include df.h.
20824         Add available_transfer_function prototype.
20825         (compute_available): Rework to use iterative dataflow framework.
20826         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
20827         with bb_info in df.h
20828         (available_transfer_function): New function.
20829
20830         * Makefile.in (lcm.o): add df.h to dependencies.
20831
20832 2002-01-04  Richard Henderson  <rth@redhat.com>
20833
20834         * config/alpha/alpha.c (some_operand): Accept HIGH.
20835         (input_operand): Likewise; accept simple references to globals.
20836         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
20837         (alpha_const_double_ok_for_letter_p): Likewise.
20838         (alpha_extra_constraint): Likewise.
20839         (alpha_preferred_reload_class): Likewise.  Do not force
20840         symbolic constants to memory.
20841         (alpha_legitimate_address_p): Accept simple references
20842         to small_symbolic_operand.
20843         (alpha_legitimize_address): New arg scratch.  Be prepared to be
20844         called when no_new_pseudos.  Emit simple symbolic references.
20845         Split integers into low, high, and rest.
20846         (alpha_expand_mov): Use alpha_legitimize_address.
20847         (some_small_symbolic_mem_operand): New.
20848         (split_small_symbolic_mem_operand): New.
20849         * config/alpha/alpha-protos.h: Update.
20850         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
20851         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
20852         (EXTRA_CONSTRAINT): Likewise.
20853         (PREFERRED_RELOAD_CLASS): Likewise.
20854         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
20855         (PREDICATE_CODES): Update.
20856         * config/alpha/alpha.md: New post-reload splitters to convert
20857         simplfied symbolic operands to the form that references $29.
20858         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
20859         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
20860
20861 2002-01-03  Richard Henderson  <rth@redhat.com>
20862
20863         * local-alloc.c (function_invariant_p): Update commentary.
20864
20865 2002-01-04  H.J. Lu <hjl@gnu.org>
20866
20867         * toplev.c (rest_of_compilation): Fix a typo when calling
20868         cleanup_cfg.
20869
20870 2002-01-03  Kazu Hirata  <kazu@hxi.com>
20871
20872         * c-common.c: Fix formatting.
20873         * diagnostic.c: Likewise.
20874         * doloop.c: Likewise.
20875         * dwarf2out.c: Likewise.
20876
20877 2002-01-03  Kazu Hirata  <kazu@hxi.com>
20878
20879         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
20880         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
20881
20882 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
20883
20884         * cpperror.c: Update comments and copyright.
20885         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
20886         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
20887
20888 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20889
20890         * collect2.c (main): Use strcmp when testing for "-shared".
20891
20892 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
20893
20894         * cppmacro.c: Don't include intl.h.  Update comments.
20895         (new_number_token): Allocate enough buffer for 64-bit unsigned
20896         integers; update prototype.
20897         * cppmain.c: Update comments.
20898
20899 2002-01-03  William Cohen  <wcohen@redhat.com>
20900
20901         * function.h (struct function): Add profile.
20902         (current_function_profile): New.
20903         doc/extend.texi: Update documentation.
20904         * final.c (final_start_function): Use current_function_profile
20905         instead of profile_flag.
20906         (profile_after_prologue): Likewise.
20907         * function.c (expand_function_start): Likewise.
20908         (expand_function_start): Likewise.
20909         * config/alpha/alpha.c (direct_call_operand):
20910         (alpha_does_function_need_gp): Likewise.
20911         (alpha_expand_prologue): Likewise.
20912         * config/arm/arm.c (arm_expand_prologue): Likewise.
20913         thumb_expand_prologue: Likewise.
20914         * config/d30v/d30v.c (d30v_stack_info): Likewise.
20915         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
20916         (fr30_expand_prologue): Likewise.
20917         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
20918         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
20919         * config/i386/i386.h (FINALIZE_PIC): Likewise.
20920         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
20921         * config/i960/i960.c (i960_output_function_prologue): Likewise.
20922         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
20923         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
20924         (m32r_expand_prologue): Likewise.
20925         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
20926         (m88k_expand_prologue): Likewise.
20927         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
20928         * config/mips/mips.c (compute_frame_size): Likewise.
20929         (mips_expand_prologue): Likewise.
20930         (mips_can_use_return_insn): Likewise.
20931         * config/pa/elf.h (ASM_FILE_START): Likewise.
20932         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
20933         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
20934         * config/pa/som.h (ASM_FILE_START): Likewise.
20935         * config/romp/romp.c (romp_using_r14): Likewise.
20936         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
20937         (rs6000_stack_info): Likewise.
20938         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
20939         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
20940         * config/v850/v850.c (compute_register_save_size): Likewise.
20941
20942 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
20943
20944         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
20945         gen_lowpart_common fails, use gen_lowpart_SUBREG.
20946
20947 2002-01-03  Turly O'Connor  <turly@apple.com>
20948
20949         * darwin.c (machopic_output_possible_stub_label): Don't generate
20950         stub routines for pseudo-stubs which we've just defined.
20951
20952 2002-01-03  Kazu Hirata  <kazu@hxi.com>
20953
20954         * builtins.c: Fix formatting.
20955         * c-typeck.c: Likewise.
20956         * combine.c: Likewise.
20957         * expr.c: Likewise.
20958         * loop.c: Likewise.
20959
20960 2002-01-03  Andreas Schwab  <schwab@suse.de>
20961
20962         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
20963         and return true if _cpp_push_next_buffer pushed a new include
20964         file.
20965         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
20966         _cpp_pop_file_buffer did not push a new file.
20967         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
20968
20969 2002-01-02  Eric Christopher  <echristo@redhat.com>
20970
20971         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
20972         FIND_REG_INC_NOTE call. Update copyright.
20973         * loop.c (canonicalize_condition): Ditto.
20974         * reorg.c (delete_scheduled_jump): Ditto.
20975
20976 2002-01-03  Kazu Hirata  <kazu@hxi.com>
20977
20978         * gcse.c: Fix formatting.
20979
20980 2002-01-03  Graham Stott  <grahams@redhat.com>
20981
20982         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
20983         forward defs for struct tags rtx_def, union_tree, rtvec_def
20984         also output corresponding typedefs for rtx, tree, and rtvec.
20985
20986         * system.h: Move forward defs for struct tags rtx_def, union_tree,
20987         rtvec_def along with corresponding typedefs for rtx, tree, and
20988         rtvec to config.h, hconfig.h, tconfig.h.
20989
20990 2002-01-03  Graham Stott  <grahams@redhat.com>
20991
20992         * tree.h: Update copyright date.
20993         (IS_EXPR_CODE_CLASS): Add parenthesis.
20994         (TREE_SET_CODE): Add whitespace.
20995         (TREE_CHECK): Add parenthesis.
20996         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
20997         (CST_OR_CONSTRUCTOR_CHECK):
20998         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
20999         (TREE_SYMBOL_REFERENCED): Whitespace.
21000         (INT_CST_LT): Likewise.
21001         (INT_CST_LT_UNSIGNED): Likewise.
21002         (tree_real_cst): Unwrap comment.
21003         (tree_string): Likewise.
21004         (tree_complex): Likewise.
21005         (IDENTIFIER_POINTER): correct cast.
21006         (SAVE_EXPR_CONTEXT): Whitespace.
21007         (EXPR_WFL_FILENAME_NODE): Likewise.
21008         (EXPR_WFL_FILENAME): Remove parenthesis.
21009         (DECL_ORIGIN): Add parenthesis.
21010         (DECL_FROM_INLINE): Use NULL_TREE.
21011         (build_int_2): Whitespace.
21012         (build_type_variant): Add parenthesis.
21013
21014         * gcc/jcf-parse.c: Update copyright date.
21015         (yyparse): Constify resource_filename.
21016
21017 2002-01-03  Graham Stott  <grahams@redhat.com>
21018
21019         * rtl.h: Update copyright date.
21020         (RTL_CHECK1): Wrap long line.
21021         (RTL_CHECK2): Likewise.
21022         (RTL_CHECKC1): Wrap long line and whitespace.
21023         (RTL_CHECKC2): Likewise.
21024         (XWINT): Whitespace.
21025         (XINT): Likewise.
21026         (XSTR): Likewise.
21027         (XEXP): Likewise.
21028         (XVEC): Likewise.
21029         (XMODE): Likewise.
21030         (XBITMAP): Likewise.
21031         (XTREE): Likewise.
21032         (XBBDEF): Likewise.
21033         (XTMPL): Likewise.
21034         (X0WINT): Likewise.
21035         (X0INT):Likewise.
21036         (X0UINT): Likewise.
21037         (X0STR): Likewise.
21038         (X0EXP): Likewise.
21039         (X0VEC): Likewise.
21040         (X0MODE): Likewise.
21041         (X0BITMAP): Likewise.
21042         (X0TREE): Likewise.
21043         (X0BBDEF): Likewise.
21044         (X0ADVFLAGS): Likewise.
21045         (X0CSELIB): Likewise.
21046         (X0MEMATTR): Likewise.
21047         (XCWINT): Likewise.
21048         (XCINT): Likewise.
21049         (XCUINT): Likewise.
21050         (XCSTR): Likewise.
21051         (XCEXP): Likewise.
21052         (XCVEC): Likewise.
21053         (XCMODE): Likewise.
21054         (XCBITMAP): Likewise.
21055         (XCTREE): Likewise.
21056         (XCBBDEF): Likewise.
21057         (XCADVFLAGS): Likewise.
21058         (XCCSELIB): Likewise.
21059         (XC2EXP): Likewise.
21060         (INSN_UID): Likewise.
21061         (PREV_INSN): Likewise.
21062         (PATTERN): Likewise.
21063         (INSN_CODE): Likewise.
21064         (PUT_REG_NOTE_KIND): Likewise.
21065         (CODE_LABEL_NUMBER): Likewise.
21066         (NOTE_SOURCE_FILE): Likewise.
21067         (NOTE_BLOCK): Likewise.
21068         (NOTE_EH_HANDLER): Likewise.
21069         (NOTE_RANGE_INFO): Likewise.
21070         (NOTE_LIVE_INFO): Likewise.
21071         (NOTE_BASIC_BLOCK): Likewise.
21072         (NOTE_EXPECTED_VALUE): Likewise.
21073         (NOTE_LINE_NUMBER): Likewise.
21074         (LABEL_NAME): Likewise.
21075         (LABEL_NUSES): Likewise.
21076         (LABEL_ALTERNATE_NAME): Likewise.
21077         (ADDRESSOF_DECL): Likewise.
21078         (JUMP_LABEL): Likewise.
21079         (LABEL_NEXTREF): Likewise.
21080         (REGNO): Likewise.
21081         (ORIGINAL_REGNO: Likewise.
21082         (HARD_REGISTER_NUM_P): Add parenthesis.
21083         (SUBREG_REG): Whitespace.
21084         (SUBREG_BYTE): Likewise.
21085         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
21086         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
21087         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
21088         (ASM_OPERANDS_INPUT_VEC): Likewise.
21089         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
21090         (ASM_OPERANDS_INPUT): Likewise.
21091         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
21092         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
21093         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
21094         (ASM_OPERANDS_INPUT_MODE): Likewise.
21095         (ASM_OPERANDS_SOURCE_FILE): Likewise.
21096         (ASM_OPERANDS_SOURCE_LINE): Likewise.
21097         (MEM_SET_IN_STRUCT_P): Minor reformat.
21098         (TRAP_CONDITION): Whitespace.
21099         (TRAP_CODE): Likewise.
21100         (COND_EXEC_TEST): Likewise.
21101         (COND_EXEC_CODE): Likewise.
21102         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
21103         (PHI_NODE_P): Add parenthesis.
21104         (plus_constant): Whitespace and add parenthesis.
21105
21106 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21107
21108         * config/avr/avr.c: Fix comment typos.
21109         * config/c4x/c4x.md: Likewise.
21110         * config/dsp16xx/dsp16xx.h: Likewise.
21111         * config/dsp16xx/dsp16xx.md: Likewise.
21112         * config/i386/i386.md: Likewise.
21113         * config/ia64/ia64.c: Likewise.
21114         * config/m32r/m32r.h: Likewise.
21115         * config/m68hc11/m68hc11.md: Likewise.
21116         * config/mmix/mmix.c: Likewise.
21117         * config/mn10200/mn10200.c: Likewise.
21118         * config/romp/romp.c: Likewise.
21119         * config/sh/sh.c: Likewise.
21120         * config/stormy16/stormy16.c: Likewise.
21121         * config/stormy16/stormy16.h: Likewise.
21122         * config/stormy16/stormy16.md: Likewise.
21123
21124 2002-01-03  Graham Stott  <grahams@redhat.com>
21125
21126         * loop.h: Update copyright date.
21127         (LOOP_MOVABLES): Fix typo.
21128         (LOOP_REGS): Likewise.
21129         (LOOP_IVS): Likewise.
21130
21131 2002-01-03  Graham Stott  <grahams@redhat.com>
21132
21133         * cppinit.c: Update copyright date.
21134         Don't include output.h
21135         * Makefile.in: Update copyright date.
21136         Update dependency.
21137
21138 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21139
21140         PR c/5226
21141         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
21142         (-pthread) Add to RS/6000 options.
21143
21144 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21145
21146         * except.c: Fix comment typos.
21147         * loop.c: Likewise.
21148         * varasm.c: Likewise.
21149         * doc/tm.texi: Fix a typo.
21150
21151 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
21152
21153         * c-typeck.c (output_init_element): Allow initializing static storage
21154         duration objects with compound literals.
21155
21156 2002-01-02  Richard Henderson  <rth@redhat.com>
21157
21158         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
21159         after abusing it.
21160
21161 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21162
21163         * gcc.c (default_compilers): Const-ify.
21164         * mips-tdump.c (stab_names): Likewise.
21165         * mips-tfile.c (map_coff_types, map_coff_storage,
21166         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
21167         pseudo_ops_t, pseudo_ops): Likewise.
21168         * protoize.c (default_include): Likewise
21169
21170         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
21171         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
21172         Add array size in declaration.
21173         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
21174         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
21175         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
21176         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
21177         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
21178         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
21179         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
21180         emtens, make_nan): Const-ify.
21181         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
21182         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
21183
21184 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
21185
21186         * config.gcc (ia64-*-*): Set extra_headers.
21187         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
21188         * config/alpha/t-osf: Remove.
21189         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
21190
21191 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
21192
21193         * config/rs6000/t-aix43: Revert previous change.
21194
21195 2002-01-02  Jason Merrill  <jason@redhat.com>
21196
21197         * c-decl.c (c_expand_body): Call outlining_inline_function when
21198         emitting an inline function out of line.
21199
21200 2002-01-02  Richard Henderson  <rth@redhat.com>
21201
21202         * dwarf2out.c (limbo_die_node): Add created_for member.
21203         (new_die): New argument created_for.  Update all callers.
21204         (mark_limbo_die_list): New.
21205         (dwarf2out_init): Register limbo_die_list as a root.
21206         (dwarf2out_finish): Force insert limbo dies into their function
21207         context.
21208
21209 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
21210
21211         PR c++/5089
21212         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
21213
21214 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21215
21216         * config/h8300/fixunssfsi.c: Update copyright.
21217         Fix comment typos.
21218         Fix formatting.
21219         * config/h8300/h8300.c: Update copyright.
21220         Eliminate warnings.
21221
21222 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21223
21224         * config/romp/romp.c: Fix comment formatting.
21225         * config/romp/romp.h: Likewise.
21226         * config/romp/romp.md: Likewise.
21227         * config/s390/s390.c: Likewise.
21228         * config/stormy16/stormy16.c: Likewise.
21229         * config/stormy16/stormy16.h: Likewise.
21230
21231 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
21232
21233         * c-common.h (genrtl_expr_stmt_value): Declare.
21234         * c-semantics.c (genrtl_goto_stmt): Redirect to...
21235         (genrtl_goto_stmt_value): ... this new function.  Pass new
21236         argument down to expand_expr_stmt_value, taking
21237         TREE_ADDRESSABLE into account.
21238         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
21239         STMT_EXPR as addressable, i.e., one whose result we want.
21240         * expr.c (expand_expr): Don't save expression statement value
21241         of labeled_blocks or loop_exprs.
21242         * stmt.c (expand_expr_stmt): Redirect to...
21243         (expand_expr_stmt_value): ... this new function.  Use new
21244         argument to tell whether to save expression value.
21245         (expand_end_stmt_expr): Reset last_expr_type and
21246         last_expr_value if we don't have either.
21247         * tree-inline.c (declare_return_variable): Mark its use
21248         statement as addressable.
21249         * tree.h: Document new use of TREE_ADDRESSABLE.
21250         (expand_expr_stmt_value): Declare.
21251
21252 2002-01-01  Tom Rix  <trix@redhat.com>
21253
21254         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
21255         rs6000_emit_allocate_stack.
21256
21257 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
21258
21259         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
21260         ${srcdir}/ginclude/ to every entry in extra_headers.
21261         * configure: Regenerate.
21262         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
21263         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
21264         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
21265         * ginclude/proto.h: Rename to config/convex/proto.h.
21266
21267 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21268
21269         * attribs.c (handle_vector_size_attribute): Use host_integerp
21270         and tree_int_cst; remove warnings.
21271         * caller-save.c (insert_restore): Add cast to get rid of warning.
21272         (insert_save): Likewise.
21273         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
21274         * regmove.c (find_matches): Add temporary var to kill a warning.
21275
21276 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
21277
21278         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
21279         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
21280         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
21281         (vms-dwarf2eh.o): Add Makefile rule.
21282         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
21283         * config/alpha/vms-dwarf2eh.asm: New file.
21284
21285         * gcc.c (delete_if_ordinary): Delete all versions.
21286
21287 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
21288
21289         * config/mmix/mmix.md: Update FIXME to not mention
21290         define_constants.
21291         (MMIX_rJ_REGNUM): New define_constants constant.
21292         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
21293         "*movdicc_real"): Adjust contraints formatting.
21294         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
21295         for branch prediction.
21296         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
21297         output template.
21298         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
21299         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
21300         number.  Delete related FIXMEs.
21301         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
21302         from number to MMIX_rJ_REGNUM.
21303         (TARGET_MASK_BRANCH_PREDICT): New.
21304         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
21305         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
21306         value.  Add -mbranch-predict and -mno-branch-predict.
21307         (TARGET_VERSION): Drop date.
21308         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
21309         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
21310         for finding out global symbols.
21311         (mmix_asm_output_labelref): Revert condition for global symbol.
21312         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
21313         (mmix_print_operand_punct_valid_p): A '+' is valid.
21314
21315 See ChangeLog.6 for earlier changes.