OSDN Git Service

2002-06-30 Aldy Hernandez <aldyh@redhat.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-06-30  Aldy Hernandez  <aldyh@redhat.com>
2
3         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
4
5 2002-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6
7         * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
8
9 2002-06-30  Alan Modra  <amodra@bigpond.net.au>
10
11         * unroll.c (loop_iterations): Handle EQ loops.
12
13 2002-06-29  David Edelsohn  <edelsohn@gnu.org>
14
15         * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
16         constraint in define_expand, not splitter.
17         Formatting.
18
19 2002-06-29  Aldy Hernandez  <aldyh@redhat.com>
20
21         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
22         build_function_type_list instead of build_function_type.
23
24         * config/ia64/ia64.c (ia64_init_builtins): Same.
25
26         * config/alpha/alpha.c (alpha_init_builtins): Same.
27
28         * config/rs6000/rs6000.c (altivec_init_builtins): Same.
29
30         * config/arm/arm.c (arm_init_builtins): Same.
31
32         * tree.h: Add build_function_type_list prototype.
33
34         * tree.c (build_function_type_list): New.
35
36 2002-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
37
38         * collect2.c (scan_prog_file): Fix typo in message.
39
40 2002-06-28  Aaron Lehmann  <aaronl@vitelus.com>
41
42         * fold-cont.c: Remove unused CHARMASK.
43
44 2002-06-29  Neil Booth  <neil@daikokuya.co.uk>
45
46         PR preprocessor/7150
47         * cppmain.c (scan_translation_unit_trad): Simplify.
48         * cpplib.c (cpp_scan_nooutput): Handle traditional case.
49
50 2002-06-29  Neil Booth  <neil@daikokuya.demon.co.uk>
51
52         * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
53         Don't use CPP_PREDEFINES.
54         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
55         Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
56         * config/i386/djgpp.h, config/i386/i386-coff.h,
57         config/i386/i386-interix.h, config/i386/i386-interix3.h,
58         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
59         config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
60         config/i386/uwin.h: Similarly.
61
62 2002-06-29  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
63
64         * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
65         flag_inline_trees to enable inlining.
66
67 2002-06-28  Phil Edwards  <pme@gcc.gnu.org>
68
69         * configure.in (gcc_gxx_include_dir):  Change to match versioned
70         C++ headers if --enable-version-specific-runtime-libs is used.
71         * configure:  Regenerate.
72
73 2002-06-28  Jan Hubicka  <jh@suse.cz>
74
75         * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
76
77 2002-06-28  Stephen Clarke  <stephen.clarke@superh.com>
78
79         * combine.c (combine_simplify_rtx): Pass the mode of the
80         shift count, not the shift operation when trying to simplify
81         a shift on a SHIFT_COUNT_TRUNCATED target.
82
83 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
84
85         * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
86         avoid the auto increment addressing modes.
87         ("*subsi3"): Likewise.
88         (split for add/sub on address): For 68HC12 push the value on 
89         the stack and do the operation with a pop.
90
91 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
92
93         * cpplib.c (_cpp_handle_directive): Move #define-specific
94         code to the #define handler...
95         (do_define): ...here.
96         (lex_macro_node): No longer a need to check for comments here.
97
98 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
99
100         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
101         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
102         Declare.
103         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
104         do not reorder basic blocks at the end when optimizing for size.
105
106 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
107
108         * config/m68hc11/m68hc11.c (autoinc_mode): New function.
109         (m68hc11_make_autoinc_notes): New function.
110         (m68hc11_split_move): Be very cautious when spliting a move with
111         auto increment/decrement modes because this may result in incompatible
112         directions; add REG_INC notes to the resulting insn for CSE reg.
113
114 2002-06-28  Stephane Carrez  <Stephane.Carrez@nerim.fr>
115
116         * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
117         can be a valid address.
118
119 2002-06-28  Aldy Hernandez  <aldyh@redhat.com>
120
121         * config/rs6000/rs6000.c: Remove unusued variables from last
122         patch.
123
124 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
125
126         Revert:
127         * config/rs6000/rs6000.c (rs6000_override_options): Move
128         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
129
130 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
131
132         * config/rs6000/rs6000.c (altivec_expand_builtin): Move
133         lvx/stv/dst builtins...
134         (altivec_expand_ld_builtin): ...to here.
135         (altivec_expand_st_builtin): ...here.
136         (altivec_expand_dst_builtin): ...and here (respectively).
137
138 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
139
140         * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
141
142 2001-06-08  Bernd Schmidt  <bernds@redhat.com>
143
144         * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
145         subregs.
146         * recog.c (general_operand, register_operand): Disallow them.
147
148 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
149
150         PR preprocessor/7138
151         * cpplib.c (_cpp_handle_directive): Do traditional
152         preparation after setting state.angled_headers.
153         * cpptrad.c (scan_out_logical_line): Fix potential
154         quote bug.
155
156 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
157
158         * config/rs6000/rs6000.c (rs6000_override_options): Move
159         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
160
161 2002-06-27  Bob Wilson  <bob.wilson@acm.org>
162
163         * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
164         (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
165         zero_cost_loop_end): Remove unnecessary "parallel" from insns.
166
167 2002-06-27  Roger Sayle  <roger@eyesopen.com>
168
169         * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
170         * config/stormy16/stormy16.h: Likewise.
171
172         * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
173         with #define.
174
175 2002-06-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
176
177         * doc/install.texi (Binaries): Add Sinix/Reliant Unix.  Move
178         Hitachi entry.  Make punctuation more consistent.
179
180 2002-06-27  Matt Kraai  <kraai@alumni.cmu.edu>
181
182         * doc/install.texi: Change ` bit' to `-bit'.
183         * doc/md.texi: Change `-bits' to `-bit'.
184         * doc/tm.texi: Change `-bits' to ` bits'.
185
186 2002-06-27  Daniel Berlin  <dberlin@dberlin.org>
187
188         * gcse.c (hoist_code): Rewrite to only get list of dominated
189         blocks once per BB. Also fix reversed test (by removing need for 
190         the test at all).
191
192 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
193
194         * cpphash.h (_cpp_set_trad_context): Remove.
195         * cpplib.c (prepare_directive_trad): Do nothing for #define.
196         (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
197         * cpptrad.c: Update comments.
198         (_cpp_read_logical_line_trad): Let scan_logical_line handle
199         updating the current context.
200         (scan_logical_line): Update the current context.
201         (_cpp_create_trad_definition): Similarly.
202         (_cpp_set_trad_context): Remove.
203
204 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
205
206         PR preprocessor/7070
207         * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
208
209 2002-06-26  Bob Wilson  <bob.wilson@acm.org>
210
211         * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
212         config/xtensa/xtensa.c (xtensa_return_addr): New function.
213         config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
214         config/xtensa/xtensa.md (fix_return_addr): New pattern.
215
216 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
217
218         * mips.c (coprocessor_operand, coprocessor2_operand,
219         symbolic_operand): Move prototypes from here...
220         * mips-protos.h (coprocessor_operand, coprocessor2_operand,
221         symbolic_operand): ...to here.
222
223 Wed Jun 26 16:32:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
224
225         * config/sh/crt1.asm: remove _stack label definition
226         and sentinel value.
227
228 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
229
230         * varasm.c: Include real.h before output.h.
231
232 2002-06-26  Aldy Hernandez  <aldyh@redhat.com>
233
234         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
235         check for TARGET_ALTIVEC.
236
237 2002-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
238
239         * config.gcc (vax-*-vms*): Make obselete.
240
241 2002-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
242
243         * gcc.c (warn_std): Delete.
244
245 2002-06-25  Loren J. Rittle  <ljrittle@acm.org>
246
247         * doc/extend.texi: Fix formatting of last checkin.
248
249 2002-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
250
251         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
252         underscore from __IEEE_FP and __IEEE_FP_INEXACT.
253
254 2002-06-25  Aldy Hernandez  <aldyh@redhat.com>
255
256         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
257         discrepancies from motorola's documentation.
258
259 Tue Jun 25 21:51:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
260
261         * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
262         GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
263
264         * config/sh/lib1funcs.asm (udivdi3): Make first divide step 
265         produce a 32 bit result before normalization, then normalize with a
266         left shift.  Compute approximative error of 2nd reciprocal
267         approximation in 2's complement.  Fix mask generation from upper
268         longword of second divide stage result.
269         For large divisor, fix shift count used to truncate first stage
270         divide result; make decision if to adjust upwards based on comparison
271         of higher parts of normalized values.
272         (udivdi): Likewise.  Undo normalization of result for large divisor
273         case.
274
275 2002-06-25  David S. Miller  <davem@redhat.com>
276
277         * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
278
279 2002-06-25  Neil Booth  <neil@daikokuya.co.uk>
280
281         * cpplib.c (do_include_common): Revert to correct line number
282         if -traditional.
283         * cpptrad.c (scan_out_logical_line): Treat null directive as
284         white space.  Invlidate MI optimization for non-whitespace
285         text outside a directive.
286
287 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
288
289         * Makefile.in (SHELL): Set to @SHELL@.
290         * fixinc/Makefile.in (SHELL): Likewise.
291
292         * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
293         fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
294         initialization.
295
296 2002-06-24  Jeff Law <law@redhat.com>
297
298         * flow.c (propagate_one_insn): When removing an insn
299         with a REG_LIBCALL note but not the entire libcall sequence,
300         delete the associated REG_RETVAL note.
301
302 Mon Jun 24 21:05:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
303
304         * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
305         (udivsi3): Likewise.  Rewrite SH1 implementation.
306         (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
307         * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
308         (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
309         * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
310         (_moddi3): Likewise.
311
312         * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
313
314         * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
315         arguments into account for stack_regs.
316
317 2002-06-24  Matt Kraai  <kraai@alumni.cmu.edu>
318
319         * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
320         in examples.
321         
322 2002-06-24  Art Haas  <ahaas@neosoft.com>
323
324         * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
325         * doc/tm.texi (Frame Layout): Likewise.
326
327 2002-06-20  Steve Ellcey  <sje@cup.hp.com>
328         * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
329         Set float_format to i128.
330
331 2002-06-24  David S. Miller  <davem@redhat.com>
332
333         * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
334         32-bit ABI libfuncs to NULL.
335
336         * config/sparc/sparc.md: Use define_insn_and_split.  Use braced
337         strings instead of quoted strings for code blocks.
338
339         * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
340         optabs if op1 is const0_rtx.
341
342         * Makefile.in (GTFILES): Add basic-block.h
343         * basic-block.h (label_value_list, tail_recursion_label_list):
344         Mark with GTY.
345
346 2002-06-24  Neil Booth  <neil@daikokuya.co.uk>
347
348         * cpptrad.c (scan_out_logical_line): Check recursing only when
349         we know we have a macro invocation in the function-like case.
350         Only call _cpp_handle_directive if we know we have a good
351         directive, or we want to reject a bad directive.
352
353 2002-06-24  Alan Modra  <amodra@bigpond.net.au>
354
355         * doloop.c (doloop_valid_p): Correct comment.
356         (doloop_modify_runtime <abs_inc != 1>): Simplify.
357         (doloop_modify_runtime <do-while>): Don't emit code when NE.
358
359 Thu Jun 20 00:26:53 2002  Denis Chertykov  <denisc@overta.ru>
360
361         * config.gcc: Add support for ip2k.
362
363 2002-06-23  Jan Hubicka  <jh@suse.cz>
364             Jeff Law <law@redhat.com>
365
366         * function.h (struct emit_status): Clarify potential contents
367         of regno_reg_rtx array.
368         * integrate.c (copy_rtx_and_substitute): Update comments.  Make
369         sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
370
371         * reg-stack.c (convert_regs_exit): Push the registers to stack in
372         proper order.
373
374 2002-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
375
376         PR middle-end/6963
377         * function.c (assign_stack_temp_for_type): Do not return
378         the same MEM rtx for multiple uses of a stack slot.
379
380 2002-06-22  David S. Miller  <davem@redhat.com>
381
382         PR target/6841 target/6770 target/6719
383         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
384         NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
385         GENERAL_OR_EXTRA_FP_REGS.
386
387 2002-06-22  Neil Booth  <neil@daikokuya.co.uk>
388
389         * cpptrad.c (struct fun_macro): Add line number.
390         (scan_out_logical_line): Set it, and use it to report unterminated
391         macro invocations.
392
393 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
394
395         * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
396         VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
397         DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
398         DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
399         REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
400         REGEXP_ONEOF, check_name): Const-ify.
401
402 2002-06-21  Matt Thomas  <matt@3am-software.com>
403
404         * config/vax/vax.c (vax_output_function_prologue): Use
405         REGISTER_PREFIX.  Fix some indentation.
406         * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
407         (VAX_ISTREAM_SYNC): Define.
408         (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC.  Move the
409         i-stream sync to the end.
410         (REGISTER_PREFIX): Define as "".
411         (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
412
413 2002-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
414
415         * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
416         configurations.
417
418 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
419
420         * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
421         tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
422
423 2002-06-21  Matt Thomas  <matt@3am-software.com>
424
425         * config/vax/netbsd.h: Adjust a comment.
426         (TARGET_DEFAULT): Redefine as 0.
427
428 2002-06-21  Richard Henderson  <rth@redhat.com>
429
430         * bb-reorder.c (make_reorder_chain_1): Search harder for the
431         vax casesi fallthru edge.
432         * cfglayout.c (cleanup_unconditional_jumps): Use
433         redirect_edge_succ_nodup.  Do not delete ADDR_VEC insns as dead.
434         * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
435         block after ADDR_VEC.
436
437 2002-06-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
438
439         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
440
441 2002-06-21  Neil Booth  <neil@daikokuya.co.uk>
442
443         * cpperror.c (cpp_error): For traditional CPP, default to
444         diagnostics on pfile->line.
445         * cpplib.c (prepare_directive_trad): Set line number for
446         diagnostics for #define too.
447         * cpptrad.c (skip_whitespace): Skip comments properly.
448         (_cpp_expansions_different_trad): Initialize quote2.
449
450 2002-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
451
452         * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
453         * config/mmix/mmix.h: Ditto.
454         * config/mmix/mmix-protos.h: Ditto.
455         * config/mmix/mmix.c: Ditto.  Fix typo in comment.
456         * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
457         comment.  Comment extra CC modes.
458
459 2002-06-20 Jan Hubicka  <jh@suse.cz>
460
461         * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
462         (scope_to_insns_finalize): Do not call set_block_levels; handle
463         sequences.
464         (choose_inner_scope): New.
465         * rtl.h (choose_inner_scope): Declare.
466
467 2002-06-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
468
469         * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
470         HOST_WIDE_INT.
471         * pa.c (pa_asm_output_mi_thunk): Likewise.
472         (n_deferred_plabels): Change type to size_t.
473         (output_deferred_plabels, output_call): Use size_t instead of int.
474
475 2002-06-20  Richard Henderson  <rth@redhat.com>
476
477         PR target/4041
478         * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
479         pattern and adjust constraints for coldfire.
480
481 2002-06-20  Richard Henderson  <rth@redhat.com>
482
483         * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
484
485 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
486
487         * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
488
489 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
490
491         * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
492
493 2002-06-20  Stan Shebs  <shebs@apple.com>
494
495         * dominance.c: Include errors.h instead of error.h.
496
497 2002-06-20  Neil Booth  <neil@daikokuya.co.uk>
498
499         * cppexp.c (cpp_interpret_integer): Don't force traditional
500         numbers to be unsigned.
501         * cpplib.c (prepare_directive_trad): Set line number for
502         diagnostics.
503         * cpptrad.c (scan_out_logical_line): Continue scanning out
504         at start of buffer.
505         * gcc.c (trad_capable_cpp): Use cc1 always.
506
507 2002-06-20  Jeffrey Law  <law@redhat.com>
508
509         * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
510         elimination in leaf functions by default yet.
511
512 2002-06-20  Richard Sandiford  <rsandifo@redhat.com>
513
514         * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
515
516 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
517
518         * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
519         multilibs.
520         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
521         Fixes PR other/6836.
522
523 Thu Jun 20 19:42:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
524                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
525
526         Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
527
528         * basic-block.h: Do not include et-forest.h
529         (dominance_info): Declare as struct dominance-info.
530         * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
531         deleting block.
532         * dominance.c (struct dominance_info): Define.
533         (BB_NODE, SET_BB_NODE): New macros.
534         (bb_hash_func, bb_eq_func): Kill.
535         (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
536         nearest_common_dominator, dominated_by_p, recount_dominator,
537         add_to_dominance_info, delete_from_dominance_info): update for new
538         representation.
539         (get_dominated_by, redirect_immediate_dominators): Rewrite using
540         enumerate_sons.
541         * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
542         find_if_case_1, find_if_case_2): Remove killed blocks from dominance
543         structure.
544
545         * et-forest.h: Update copyright; revamp all function to operate on
546         nodes
547         (et_forest_value): Kill.
548         (et_forest_enumerate_sons, et_forest_node_value): New.
549         * et-forest.c: Update copyright.
550         * et-forest.h: Update copyright; revamp all function to operate on
551         nodes
552         (et_forest_value): Kill.
553         (et_forest_enumerate_sons, et_forest_node_value): New.
554
555         Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
556
557         * basic-block.h: Inlude et-forest.h
558         (basic_block_def): Kill dominator.
559         (dominance_info): New type.
560         (loops): Use dominace_info.
561         (dominace handling functions): Take dominace_info as argument
562         instead of bitmaps.
563         (create_preheader): Likewise.
564         * cfg.c (entry_exit_blocks): Kill dominator.
565         (dump_flow_info): Do not dump dominators.
566         * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
567         dominators.
568         * cfgloop.c (flow_pre_header_find): Use dominacne_info.
569         (flow_loops_pre_header_scan, make_forwarder_block,
570         canonicale_loop_headers, flow_loops_find): Likewise.
571         * dominance.c: Include error.h
572         (idoms_to_doms): Kill.
573         (bb_hash_func, bb_eq_func): New static functions.
574         (debug_dominace_info): New global function.
575         (calculate_dominance_info): Use new et forest structure.
576         (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
577         get_dominated_by, redirect_immediate_dominators,
578         nearest_common_dominator, dominated_by_p, verify_dominators,
579         recount_dominator, iterate_fix_dominators, add_to_dominace_info,
580         delete_from_dominance_info): New global functions.
581         * gcse.c (domnators): CHange to dominance_info.
582         (alloc_hoist_mem): Do not alloc dominators
583         (free_code_hoist_mem): Use free_dominance_info.
584         (compute_code_hoist_data): Use dominance_info.
585         (hoist_code): Likewise.
586         * ifcvt.c (post_dominators): Likewise.
587         (find_if_case_2, if_convert): Likewise.
588         * predict.c (process_note_predictions, process_note_prediction,
589         estimate-probability): Likewise.
590         * sched-rgn.c (find_rgns, init_regions): Likewise.
591         * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
592         find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
593         * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
594         find_evaluations, convert_to_ssa): Likewise.
595         * ssa.h (compute_dominance_frontiers): Likewise.
596
597         Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
598
599         * Makefile.in (et-forest.c): Add.
600         * et-forest.c: New file.
601         * at-forest.h: New file.
602
603 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
604
605         * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
606         array size calculation.
607         * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
608         Likewise.
609
610         * diagnostic.c (diagnostic_kind_text): Const-ify.
611         * gengtype.c (lang_names): Likewise.
612
613 Thu Jun 20 17:25:29 CEST 2002  JAn HUbicka  <jh@suse.cz>
614
615         * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
616
617 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
618
619         * config/sol2.h: New file.
620         * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
621         (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
622         (sparc-*-chorusos*): Likewise.
623         (sparc-*-elf*): Likewise.
624         (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
625         (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
626         (sparc-hal-solaris2*): Likewise.
627         (sparc-*-solaris2*): Likewise.
628         (sparclite-*-elf*): Likewise.
629         (sparc86x-*-elf*): Likewise.
630         (sparc64-*-elf*): Likewise.
631
632         * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
633         config/sol2.h.
634         (ASM_SPEC): Override config/sol2.h version for now.
635         Removed obsolete GAS_REJECTS_MINUS_S variant.
636         (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
637         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
638         (TARGET_OS_CPP_BUILTINS): Likewise.
639         Assert system=unix.
640         (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
641         (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
642         config/sol2.h.
643         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
644         (ASM_CPU_SPEC): Define.
645         (SUBTARGET_EXTRA_SPECS): Define.
646
647         * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
648         in config/sparc/sol2.h.
649         (ASM_SPEC): Moved to config/sol2.h.
650         (CPP_CPU_SPEC): Simplified.
651         (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
652         consistency.
653         (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
654         (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
655         STARTFILE_ARCH64_SPEC.
656         (STARTFILE_SPEC): Moved to config/sol2.h
657         (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
658         (LINK_ARCH32_SPEC): Moved to config/sol2.h.
659         (LINK_ARCH64_SPEC): Simplified.
660         (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
661         (LINK_SPEC): Moved to config/sol2.h
662
663         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
664         config/sol2.h.
665         Use BITS_PER_WORD for size.
666         (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
667         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
668         (CPP_PREDEFINES): Removed OS-specific part handled by
669         TARGET_OS_CPP_BUILTINS.
670         (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
671         (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
672         (ASM_SPEC): Moved to config/sol2.h.
673         (PREFERRED_DEBUGGING_TYPE): Likewise.
674         (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
675         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
676         (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
677         (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
678
679         * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
680         * config/i386/sol2gas.h: Removed.
681
682 Thu Jun 20 12:14:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
683
684         * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
685
686 2002-06-16  Aldy Hernandez  <aldyh@redhat.com>
687         
688         * gcc.c-torture/execute/simd-1.c: New.
689
690         * gcc.dg/simd-1.c: New.
691
692         * doc/extend.texi (Vector Extensions): Document that we can
693         specify simd types not specifically supported by the hardware.
694         Document that simd types can be used as function arguments.
695         Document that signness does make a difference in SIMD types.
696         Misc cleanups and revisions to the vector extensions section.
697
698         * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
699         constants.
700
701         * expr.c (vector_mode_valid_p): New.
702
703         * expr.h: Add vector_mode_valid_p.
704
705         * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
706
707         * c-common.c (type_for_mode): Always build vector nodes regardless
708         of VECTOR_MODE_SUPPORTED_P.
709         (handle_mode_attribute): Error if we can't emulate a nonexisting
710         vector mode.
711         (handle_vector_size_attribute): Same.
712
713         * optabs.c (expand_binop): Open-code vector operations.
714         (expand_unop): Open-code vector unops.
715         (expand_vector_binop): New.
716         (expand_vector_unop): New.
717         
718         * c-typeck.c (build_binary_op): Allow vectors in binops.
719         Allow vectors in conditional operatiors.
720         (build_unary_op): Allow vectors in unary minus.
721
722         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
723         TARGET_ALTIVEC.
724
725 2002-05-20  Richard Henderson  <rth@redhat.com>
726
727         * c-common.c (c_common_get_alias_set): Correctly handle characters.
728         Rearrange order of expressions; don't handle vectors here.
729         * alias.c (get_alias_set): Let vectors match their components.
730
731 2002-06-19  Chris Demetriou  <cgd@broadcom.com>
732
733         * config/mips/mips.c (mips_emit_prefetch): Use hints which
734         match desired locality.
735
736 2002-06-19  Dhananjay R. Deshpande  <dhananjayd@kpit.com>
737
738         * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
739         (h8300_insert_attributes): New.
740
741 2002-06-19  Akim Demaille  <akim@epita.fr>
742
743         * c-parse.in (initelt: identifier ':' initval): Add an empty
744         action to fix a type clash.
745         (aliasdecl, classdef): Add the missing closing `;'.
746         Whitespace changes.
747         * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
748         $$ = $1 type clashes.
749
750 2002-06-19  Eric Christopher  <echristo@redhat.com>
751
752         * config/mips/mips.c (symbol_operand): New function.
753         (mips_emit_prefetch): Ditto.
754         * config/mips/mips-protos.h: Define.
755         * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
756         (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
757         (LEGITIMIZE_ADDRESS): Ditto.
758         * config/mips/mips.md (prefetch, prefetch_si_address,
759         prefetch_si, prefetch_di_address, prefetch_di): New patterns.
760
761 2002-06-19  Eric Christopher  <echristo@redhat.com>
762
763         * config/fp-bit.h: Add unordered defines for gofast.
764
765 2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>
766
767         * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
768         DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
769         DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
770         REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
771         checking and without it.
772         (decl_name, decl_mode_check_failed, regexp_name,
773         regexp_mode_check_failed): New functions.
774         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
775         gen_presence_set, gen_absence_set, gen_automaton,
776         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
777         gen_regexp_sequence, gen_reserv, gen_insn_reserv,
778         automaton_decl_hash, automaton_decl_eq_p): Use the macros.
779         (find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
780         (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
781         (find_insn_decl): Ditto.  Set up mode of work_insn_decl.
782         (decl_hash, decl_eq_p): Use the macros.
783         (find_decl): Ditto.  Set up mode of work_decl.
784         (process_excls, process_presence_absence, process_decls,
785         check_automaton_usage, process_regexp, process_regexp_decls,
786         check_usage, loop_in_regexp, check_loops_in_regexps,
787         process_regexp_cycles, add_advance_cycle_insn_decl,
788         initiate_states, initiate_excl_sets,
789         initiate_presence_absence_sets, copy_insn_regexp, transform_1,
790         transform_2): Use the macros.
791         (transform_3): Ditto.  Check mode before making transformations of
792         ALLOF.
793         (regexp_transform_func, transform_insn_regexps,
794         process_unit_to_form_the_same_automaton_unit_lists,
795         form_the_same_automaton_unit_lists_from_regexp,
796         form_the_same_automaton_unit_lists,
797         process_seq_for_forming_states, process_alts_for_forming_states,
798         create_alt_states, form_ainsn_with_same_reservs, make_automaton,
799         form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
800         estimate_one_automaton_bound, compare_max_occ_cycle_nums,
801         units_to_automata_heuristic_distr, create_ainsns,
802         units_to_automata_distr, create_automata): Use the macros.
803         (form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
804         (longest_path_length, min_issue_delay_pass_states,
805         output_dead_lock_vect, output_tables, output_insn_code_cases,
806         output_internal_insn_latency_func, output_print_reservation_func,
807         output_description, output_automaton_units, generate): Use the
808         macros.
809         (make_insn_alts_attr): Ditto.  Check case when there are not
810         alternatives in the reservation.
811         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
812         make_bypass_attr, form_important_insn_automata_lists,
813         expand_automata): Use the macros.
814
815 2002-06-20  Tim Josling  <tej@melbpc.org.au>
816
817         * Makefile.in: Clean up code to check for misspecified languages
818         in enable-languages.
819
820 2002-06-19  Andrew Pinski <pinskia@physics.uc.edu>
821
822         * cpptrad.c (_cpp_replacement_text_len): initialize len.
823
824 2002-06-19  Jason Merrill  <jason@redhat.com>
825
826         * Makefile.in (unstrap, restrap): New targets.
827         (bootstrap): Mention restrap.
828
829 2002-06-19  Matt Kraai  <kraai@alumni.cmu.edu>
830
831         * except.c (ehl_free): Remove.
832
833         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
834         builtin_define and builtin_define_std.
835
836 2002-06-19  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
837
838         * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
839         (sCOND): Restrict operand class so that gcc knows how to reload them.
840         (bitfield_set): Merge two unnamed insn's using alternatives.
841         (call_value): Remove constraint on unused uperand.
842         (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
843         (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
844
845         * longlong.h (count_trailing_zeros): Escape newline and beautify.
846
847 2002-06-19  Mark Mitchell  <mark@codesourcery.com>
848
849         * Makefile.in (QMTEST_DIR): Simplify definition.
850
851 2002-06-19  Nick Clifton  <nickc@cambridge.redhat.com>
852
853         * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
854         #define.
855
856 2002-06-19  Neil Booth  <neil@daikokuya.co.uk>
857
858         * cpphash.h (struct cpp_reader): Make date and time strings.
859         (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
860         _cpp_replacement_text_len): New.
861         * cppinit.c (cpp_create_reader): Update.
862         (init_builtins): Register appropriate builtins for -traditional-cpp.
863         * cppmacro.c (new_number_token): Remove.
864         (_cpp_builtin_macro_text): New.
865         (builtin_macro): Use it.
866         (cpp_macro_definition): Update to handle traditional macros.
867         * cppmain.c (cb_line_change): Don't do column positioning for
868         traditional output.
869         * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
870         state ls_fun_close.
871         (skip_whitespace): Fix.
872         (maybe_start_funlike): Don't set state.parsing_args.
873         (scan_out_logical_line): Remove duplicate error.  Use lex_state
874         rather than state.parsing_args.
875         (push_replacement_text): Handle builtins.
876         (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
877
878 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
879             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
880
881         * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
882         attribute __always_inline__.
883
884 2002-06-18  Bob Wilson  <bob.wilson@acm.org>
885
886         * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
887         when generating the call to _mcount.
888         (NO_PROFILE_COUNTERS): Define.
889
890 2002-06-18  Richard Henderson  <rth@redhat.com>
891
892         * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
893         2002-06-02 change.
894
895 Tue Jun 18 20:53:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
896
897         * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
898         config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
899         * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
900         * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
901
902         * sh-protos.h (sh_pr_interrupt): Declare.
903         * sh.c (sh_pr_interrupt): New function.
904         (print_operand, calc_live_regs, sh_expand_prologue): Use it.
905         (sh_hard_regno_rename_ok): Likewise.
906         * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
907
908 2002-06-18  Vladimir Makarov  <vmakarov@redhat.com>
909
910         * rtl.def (DEFINE_AUTOMATON): Add description of new options
911         `time' and `v'.  Fix incorrect description of option `w'.
912
913         * doc/md.texi: Ditto.
914
915         * genautomata.c (TIME_OPTION, V_OPTION): New macros.
916         (gen_automata_option): Process the new options.
917         (transform_2, transform_3): Initialize some variables.
918         (initiate_automaton_gen): Use the new macros.
919
920 2002-06-18  Richard Sandiford  <rsandifo@redhat.com>
921
922         * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
923         (mips_set_return_address, mips_restore_gp): Declare.
924         * config/mips/mips.h (struct mips_frame_info): Move to mips.c
925         (current_frame_info): Remove.
926         (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
927         * config/mips/mips.c: Remove uses of current_frame_info.
928         (struct mips_frame_info): Moved from mips.h.  Remove 'insns_len'.
929         (struct machine_function): Add 'frame' and 'insns_len'.
930         (current_frame_info, zero_frame_info): Remove.
931         (mips_restore_gp, mips_set_return_address): New.
932         (mips_initial_elimination_offset): New.
933         * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
934         (eh_return define_split): Use mips_set_return_address.
935
936 2002-06-18  Neil Booth  <neil@daikokuya.demon.co.uk>
937
938         * cpplib.c (dtable): Update.
939         (end_directive): Decrement expansion prevention count.
940         Clear state.in_expression.
941         (prepare_directive_trad): Set state.in_expression.
942         Increment expansion prevention count.
943         * cpptrad.c (enum ls): New.
944         (_cpp_overlay_buffer): Set overlaid_buffer.
945         (_cpp_remove_overlay): Use overlaid_buffer.
946         (_cpp_read_logcial_line_trad): Update buffer when it might
947         have changed.
948         (scan_out_logical_line): Handle state transitions for assertions
949         and defined() in #if, and for funlike invocations including the
950         directive case.  Handle '<' and '>' as a quote mechanism in
951         #include.  Warn about unterminated macro invocations.
952         * cpphash.h (struct lexer_state): New member in_expression.
953         (struct cpp_reader): New member overlaid buffer.
954
955 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
956
957         * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
958         __always_inline__.
959
960 2002-06-18  Alan Modra  <amodra@bigpond.net.au>
961
962         * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
963
964         * doloop.c (doloop_optimize): Extract pattern from insn.
965
966 2002-06-17  Matt Kraai  <kraai@alumni.cmu.edu>
967
968         * doc/extend.texi (Function Attributes): Remove `,...' from @var.
969
970 2002-06-17  Jeff Law <law@redhat.com>
971
972         * libgcc2.c: Do not include symcat.h or machmode.h.
973
974 2002-06-17  Richard Henderson  <rth@redhat.com>
975
976         PR target/6922
977         * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
978
979 2002-06-17  Tom Tromey  <tromey@redhat.com>
980
981         * dwarfout.c: Include function.h.
982
983 2002-06-17  Andreas Schwab  <schwab@suse.de>
984
985         * print-rtl.c (print_rtx): Print space before vector, not after.
986         (debug_rtx): Clear sawclose before printing.
987         (debug_rtx_list): Print newline after each list element.
988         (debug_rtx_range): Likewise.
989
990 2002-06-17  Richard Henderson  <rth@redhat.com>
991
992         * function.h (struct function) [funcdef_no]: Rename profile_label_no.
993         (current_function_funcdef_no): Similarly.
994         * function.c (funcdef_no): Similarly.
995         (prepare_function_start): Set current_function_funcdef_no.
996         (expand_function_start): Don't set current_function_profile_label_no.
997         * dwarf2out.h (current_funcdef_number): Remove.
998         * dwarf2out.c (current_funcdef_number): Remove.  Replace with
999         current_function_funcdef_no throughout.
1000         * dwarfout.c, vmsdbgout.c: Similarly.
1001         * except.c (sjlj_funcdef_number): Remove.
1002         (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
1003         (output_function_exception_table): Likewise.
1004         * final.c (profile_function): Use current_function_funcdef_no
1005         instead of current_function_profile_label_no.
1006
1007 2002-06-17  Vladimir Makarov  <vmakarov@redhat.com>
1008
1009         * sched-ebb.c (init_ready_list): Check INSN_P first.
1010
1011 Mon Jun 17 17:26:15 2002  J"orn Rennecke <joern.rennecke@superh.com>
1012
1013         * sh.md (divsi3): Update way how to find insns in a sequence.
1014
1015         * reload1.c (merge_assigned_reloads): Don't change reloads
1016         other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
1017         to RELOAD_OTHER when there are conflicting input reloads.
1018
1019 2002-06-17  Richard Earnshaw  (rearnsha@arm.com)
1020
1021         * function.c (epilogue_done): Correctly build a sequence of insns for
1022         a sibcall epilogue.
1023
1024 2002-06-17  Nick Clifton  <nickc@cambridge.redhat.com>
1025
1026         * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
1027         #define.
1028
1029         * config/m32r/m32r.md: Replace gen_sequence with get_insns.
1030
1031 2002-06-16  Richard Henderson  <rth@redhat.com>
1032
1033         * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
1034         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
1035
1036 2002-06-16  Richard Henderson  <rth@redhat.com>
1037
1038         PR opt/6722
1039         * regclass.c (globalize_reg): Update regs_invalidated_by_call.
1040
1041 2002-06-16  Neil Booth  <neil@daikokuya.demon.co.uk>
1042
1043         * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
1044         * config/i386/i386-aout.h, config/i386/i386elf.h,
1045         config/i386/sysv4.h: Remove CPP_PREDEFINES.
1046         * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
1047         config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
1048         config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
1049         config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
1050         CPP_PREDEFINES and part of CPP_SPEC.
1051         * config/i386/sysv4-cpp.h: New.
1052
1053 2002-06-16  Richard Henderson  <rth@redhat.com>
1054
1055         PR c/7030
1056         * dwarf2out.c (modified_type_die): Don't assign the qualified die
1057         to the unqualified type.
1058
1059 Sun Jun 16 22:16:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
1060
1061         * i386-protos.h (x86_field_alignment): Declare.
1062         * i386.c (x86_field_alignment): Define.
1063         * i386.h (ADJUST_FIELD_ALIGNMENT): New.
1064         (BIGGEST_FIELD_ALIGNMENT): Kill.
1065
1066 2002-06-16  Richard Henderson  <rth@redhat.com>
1067
1068         * vax.md (casesi): Use emit_jump_insn.  Tidy expander pattern.
1069
1070 2002-06-16  Richard Henderson  <rth@redhat.com>
1071
1072         * c-common.c (flag_ms_extensions): Move from c++ front end.
1073         * c-common.h (flag_ms_extensions): Declare.
1074         * c-decl.c (c_decode_option): Add -fms-extensions.
1075         (grokfield): Don't accept anonymous structures in ISO C mode;
1076         accept only unnamed anonymous structures in GNU C mode; accept
1077         Plan 9 extensions in MS mode.
1078         * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
1079         SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
1080         (extension): Clear flag_iso.
1081         * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
1082
1083 2002-06-16  Hans-Peter Nilsson  <hp@axis.com>
1084
1085         PR target/7042
1086         * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
1087         early if current_function_epilogue_delay_list is non-empty.
1088         * config/cris/cris.md ("return"): Add sanity check asserting that
1089         current_function_epilogue_delay_list is empty.
1090
1091 2002-06-16  Jeff Law <law@redhat.com>
1092
1093         * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
1094         sharing of hard registers.
1095
1096         * toplev.c (rest_of_compilation): Remove redundant conditional.
1097
1098         * toplev.c (rest_of_compilation): Perform a simpler, less costly
1099         cleanup of the CFG when not optimizing.
1100
1101 2002-06-16  Alan Modra  <amodra@bigpond.net.au>
1102
1103         * gcc.c (main): Correct startfile_prefix_spec check.
1104
1105 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
1106
1107         * config.gcc: Revert rth's patch of 2002-05-18.  Instead,
1108         include both darwin.o and rs6000-c.o.
1109
1110 2002-06-15  Roger Sayle  <roger@eyesopen.com>
1111
1112         * expr.c (compare_from_rtx): Call simplify_relational_operation
1113         on all comparisons, not just those between integer constants,
1114         with the correct (possibly unsigned) comparison code.
1115         (do_compare_rtx_and_jump): Likewise.
1116
1117 2002-06-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1118
1119         * Makefile.in (tm_defines): New configuration variable.
1120         (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
1121         Pass tm_defines in TM_DEFINES.
1122         (cs-tm_p.h): Rename DEFINES to XM_DEFINES.  Pass TM_DEFINES.
1123         * config.gcc (tm_defines): New configuration variable.
1124         (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
1125         pa-7100.h headers.  Change hppa1* scheduling default to 7100LC.
1126         * configure.in: Substitute tm_defines.
1127         * configure: Rebuilt.
1128         * mkconfig.sh: Rename DEFINES to XM_DEFINES.  Output TM_DEFINES.
1129         * doc/install.texi: Update.
1130         * pa/pa-700.h: Delete file.
1131         * pa/pa-7100.h: Delete file.
1132
1133 2002-06-15  Roger Sayle  <roger@eyesopen.com>
1134
1135         * fold-const.c (comparison_to_compcode): New function to convert
1136         an comparison TREE CODE into a bit-based representation.
1137         (compcode_to_comparison): New function to convert from this bit
1138         based representation back to a comparison TREE CODE.
1139         (fold_truthop): Simplify (x<y) && (x==y) and related composite
1140         comparisons.
1141
1142 2002-06-15  Aldy Hernandez  <aldyh@redhat.com>
1143
1144         * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
1145
1146         * stor-layout.c (compute_record_mode): Remove check for
1147         FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
1148         MEMBER_TYPE_FORCES_BLK.  Pass new mode field to
1149         MEMBER_TYPE_FORCES_BLK.
1150
1151         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
1152
1153         * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
1154
1155 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
1156
1157         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
1158
1159 2002-06-14  Steve Ellcey  <sje@cup.hp.com>
1160
1161         * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
1162         USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
1163         * configure, config.in: Regenerate.
1164
1165 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
1166
1167         * loop.c (check_final_value): Use v->always_executed
1168         instead of v->always_computable.
1169         * unroll.c (final_giv_value): Don't calculate the final
1170         value as a function of the biv if the giv is not computed
1171         for every loop iteration.
1172
1173 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
1174
1175         * loop.c (for_each_insn_in_loop): Fix formatting and comments.
1176
1177 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
1178
1179         PR c/6677
1180         * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
1181         the truncation down when the target type is signed.
1182         [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
1183         * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
1184         the conversion if the target type is a smaller type.
1185
1186 2002-06-14  Richard Henderson  <rth@redhat.com>
1187
1188         * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
1189         earlier.  Re-factor comparisons vs extrema.
1190
1191 2002-06-14  Richard Henderson  <rth@redhat.com>
1192
1193         * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
1194
1195 2002-06-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1196
1197         * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
1198         * sched-deps.c (add_dependence): Likewise.
1199         (group_leader): Likewise.
1200         * sched-rgn.c (init_ready_list): Likewise.
1201         * doc/rtl.texi: Adjust accordingly.
1202
1203 2002-06-13  Jeffrey Law  <law@redhat.com>
1204
1205         * gcse.c (delete_null_pointer_checks_1): Inform caller if any
1206         null pointer checks were eliminated.  Update prototype.
1207         (delete_null_pointer_checks): Similarly.
1208         * rtl.h (delete_null_pointer_checks): Update prototype.
1209         * toplev.c (rest_of_compilation): Only run cleanup_cfg if
1210         delete_null_pointer_checks deletes one or more null
1211         pointer checks.  Do not run cleanup_cfg before gcse, the
1212         CFG is accurate and optimized at that point..
1213
1214         * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
1215         of hard registers.
1216
1217 2002-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
1218
1219         * Makefile.in (libgcc.mk): Depend on specs.
1220
1221 Fri Jun 14 12:15:11 2002  J"orn Rennecke <joern.rennecke@superh.com>
1222
1223         * sh.md (mulsi3): Update way how to find insns in a sequence.
1224
1225 Fri Jun 14 12:04:02 2002  Dhananjay R. Deshpande <dhananjayd@kpit.com>
1226
1227         * sh.h: Define HARD_REGNO_RENAME_OK
1228         * sh.c: sh_hard_regno_rename_ok: New. If current function has
1229         interrupt_handler attribute, only registers saved on stack are OK.
1230         * sh-protos.h: Declare sh_hard_regno_rename_ok.
1231
1232 2002-06-14  Kaz Kojima  <kkojima@gcc.gnu.org>
1233
1234         * config/sh/sh.md (jump): Emit jump insn.
1235         (call_pcrel): Get pattern of the result of gen_call_site.
1236         (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
1237
1238 2002-06-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1239
1240         * cpphash.h (struct cpp_buffer): Remove saved_line_base.
1241         * cpptrad.c: Update comments.
1242         (skip_whitespace, copy_comment): Take a new parameter.
1243         (skip_escaped_newlines): Don't duplicate escaped newline test.
1244         (copy_comment): Different location for CUR, decide here how
1245         to copy / replace the comment.
1246         (skip_whitespace): Copy whitespace.
1247         (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
1248         (scan_out_logical_line): Let copy comment handle keeping or
1249         replacing comments.
1250         (scan_parameters, _cpp_create_trad_definition): Update.
1251
1252 2002-06-13  Alan Lehotsky  <apl@alum.mit.edu>
1253
1254         * reload.c (get_secondary_mem,find_reloads_address,
1255         find_reloads_address_1): Pass reference to MEM to find_reloads_address
1256         so that LEGITIMIZE_RELOAD_ADDRESS will be called.
1257
1258 2002-06-13  Jessica Han  <jessica@cup.hp.com>
1259
1260         * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1261         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1262         * doc/tm.texi: Document them.
1263         * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1264         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1265         (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
1266         (ASM_OUTPUT_FDESC): Likewise.
1267
1268 2002-06-13  Eric Christopher  <echristo@redhat.com>
1269
1270         * diagnostic.c (output_format): Fix thinko.
1271
1272 Thu Jun 13 22:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
1273
1274         * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
1275         (DWARF2_UNWIND_INFO): Define to 0.
1276
1277         * config/sh/sh.c (calc_live_regs): Don't use initial_value
1278         optimization for PR_MEDIA_REG.
1279
1280 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1281
1282         * cpphash.h (_cpp_lex_identifier_trad): Remove.
1283         * cpplib.c (end_directive): Don't skip, always remove overlay
1284         apart from #define.
1285         (prepare_directive_trad): Handle NULL pfile->directive.
1286         (_cpp_handle_directive): Always call prepare_directive_trad
1287         if traditional.
1288         * cppmain.c (check_multiline_token): Rename account_for_newlines,
1289         generalize inputs.
1290         (scan_translation_unit_trad): Use it.
1291         * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
1292         output, get escaped newline in comment close correct.
1293         (check_output_buffer, skip_whitespace): Update.
1294         (_cpp_lex_identifier_trad): Remove.
1295         (scan_out_logical_line): Handle -C and comments in directives
1296         properly.
1297
1298 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
1299
1300         * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
1301         * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1302         * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
1303         (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
1304         (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
1305         (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
1306         (SELECT_SH5_COMPACT_NOFPU): Likewise.
1307         (TARGET_SWITCHES): Use them.
1308         (TARGET_CPU_DEFAULT): Define if not already defined.
1309         (TARGET_DEFAULT): Use it.
1310         (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
1311         * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
1312         * config/sh/t-monolib: New file.
1313
1314 2002-06-13  Roger Sayle  <roger@eyesopen.com>
1315
1316         * toplev.c (rest_of_compilation): Simplify (and correct) the
1317         logic of the first delete-null-pointer-checks pass.
1318
1319 Thu Jun 13 18:24:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
1320
1321         * i386.c (ix86_expand_movstr):  Fix pasto.
1322
1323 Thu Jun 13 18:18:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
1324
1325         * reload.c (find_valid_class):  Fix thinko in my previous patch.
1326
1327 2002-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
1328
1329         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
1330         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
1331         (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
1332         (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
1333
1334 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
1335
1336         * tree-inline.c (expand_call_inline): Don' mess with _DECL
1337         fields.
1338
1339 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
1340
1341         * diagnostic.c (output_format): Recognize "%H" as a format
1342         specifier for a location_t.
1343         (text_specifies_location): New function.
1344         (diagnostic_set_info): Use it.
1345
1346 2002-06-13  Jeffrey Law  <law@redhat.com>
1347
1348         * emit-rtl.c (static_regno_reg_rtx): Define.
1349         (init_emit_once): Initialize static_regno_reg_rtx.
1350         (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
1351         of building new hard reg objects once per function.
1352         (gen_rtx_REG): Try to share hard regs.
1353         * regclass.c (init_fake_stack_mems): New function broken out from
1354         init_regs.
1355         * rtl.h (init_fake_stack_mems): Declare.
1356         * toplev.c (lang_independent_init): Call init_regs before
1357         init_emit_once.  Call init_fake_stack_mems after init_emit_once.
1358
1359         * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
1360
1361         * alias.c (argument_registers): Remove.
1362         (init_alias_once): Initialize static_reg_base_value here.  Remove
1363         initialization of argument_registers.
1364         (init_alias_once_per_function): Remove.
1365         (init_alias_analysis): Copy all the entries from static_reg_base_value
1366         into new_reg_base_value all at once.
1367         * rtl.h (init_alias_once_per_function): Remove declaration.
1368         * function.c (prepare_function_start): Do not call
1369         init_alias_once_per_function.
1370
1371         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
1372         starting a sequence and emitting an INSN.
1373
1374 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
1375
1376         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
1377
1378 2002-06-13  David S. Miller  <davem@redhat.com>
1379
1380         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
1381
1382 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1383
1384         * cpplib.c (end_directive): Handle line skipping.  Only remove
1385         the rest of the line if the directive was valid.
1386         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
1387         expanding a traditional macro.
1388         * cpptrad.c (recursive_macro): New.
1389         (read_logical_line_trad): Handle skipping.
1390         (scan_out_logical_line): Continue after a successful directive.
1391         Don't expand macros whilst skipping, or if recursing.
1392         (_cpp_create_trad_definition): scan_out_logical_line now sets
1393         the output current position.
1394
1395 2002-06-12  Eric Christopher  <echristo@redhat.com>
1396
1397         From Chris Demetriou  <cgd@broadcom.com>
1398         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
1399         comment.
1400         (ISA_HAS_MADD_MSUB): Ditto.
1401         (ISA_HAS_NMADD_NMSUB): Ditto.
1402
1403 2002-06-12  Eric Christopher  <echristo@redhat.com>
1404
1405         * config.gcc: Consolidate little endian handling and
1406         little/big endian targets.
1407         * config/mips/elfl.h: Remove file.
1408         * config/mips/elfl64.h: Ditto.
1409         * config/mips/ecoffl.h: Ditto.
1410         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
1411
1412 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
1413
1414         * gengtype.h (xvasprintf): New prototype.
1415         (xasprintf): New prototype.
1416         (struct outf): New.
1417         (get_output_file): Return an outf_p.
1418         (header_file): Is now an outf_p.
1419         (base_files): Now are outf_p.
1420         (oprintf): New.
1421         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
1422         rather than stdio operations.  Use xasprintf in a few places,
1423         when appropriate.
1424         (xvasprintf): New.
1425         (xasprintf): New.
1426         (struct filemap): Delete.
1427         (files): Delete.
1428         (output_files): New.
1429         (oprintf): New.
1430         (create_file): Create an outf_p.  Add parameter to indicate output
1431         file name, change all callers.
1432         (open_base_files): Create gtype-desc.c here.
1433         (get_output_file_with_visibility): Rewrite.
1434         (get_output_file_name): Just look at 'name' field in struct outf.
1435         (close_output_files): Rewrite.
1436
1437 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
1438
1439         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
1440         (MASK_G_FLOAT): Define.
1441         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
1442         (TARGET_SWITCHES): Likewise.
1443         (TARGET_DEFAULT): Likewise.
1444
1445 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
1446
1447         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
1448         * config/mips/mips.c (mips_output_filename): Don't print a
1449         ".file" directive if we are using DWARF-2.
1450         (mips_output_function_prologue): Do not emit source file
1451         name for TARGET_GAS.
1452
1453 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
1454
1455         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
1456         decide whether emit the short opcode.
1457         * i386.h (x86_shift1): Declare.
1458         (TARGET_SHIFT1): New macro.
1459         * i386.c (x86_shift1): New global variable.
1460
1461         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
1462         unconditionally; make loop to rebuild CFG; kill unnecesary
1463         find_basic_block calls; kill compute_bb_for_insn call.
1464         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
1465         * haifa-sched.c (sched_init): Likewise.
1466         * ssa-ccp.c (ssa_const_prop): Likewise.
1467         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1468
1469 2002-06-11  David S. Miller  <davem@redhat.com>
1470
1471         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
1472         active_insn_p.
1473
1474 2002-06-11  Richard Henderson  <rth@redhat.com>
1475
1476         * c-common.c (builtin_define_type_max): New.
1477         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
1478         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
1479
1480         From Joseph S. Myers:
1481         * glimits.h: Rewrite to expect the double underscore definitions
1482         from the compiler.
1483
1484         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
1485         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
1486         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
1487         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
1488         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
1489         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
1490         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
1491         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
1492
1493 2002-06-11  Richard Henderson  <rth@redhat.com>
1494
1495         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
1496         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
1497         (code_for_builtns): Update.
1498         (alpha_init_builtins): Add __builtin_thread_pointer and
1499         __builtin_set_thread_pointer.
1500         (alpha_expand_builtin): Handle void builtins.
1501         * doc/extend.texi (Alpha Built-in Functions): Update.
1502
1503 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
1504
1505         PR target/6997
1506         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
1507
1508 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
1509
1510         * config.gcc: Make the name of the extra-modes file adjustable
1511         by target stanzas.
1512         (s390x, strongarm, xscale stanzas): Use this facility.
1513         * configure.in: Update to match.
1514         * configure: Regenerate.
1515
1516 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
1517
1518         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
1519         max/mins as unsigned GE compares.
1520
1521 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
1522
1523         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
1524         * config/vax/bsd.h: New file.
1525         * config/vax/netbsd.h: Add missing notice.
1526         (CPP_PREDEFINES): Remove.
1527         (TARGET_OS_CPP_BUILTINS): Define.
1528         (CPP_SPEC): Use NETBSD_CPP_SPEC.
1529         * config/vax/openbsd.h: Update copyright years.
1530         (CPP_PREDEFINES): Remove.
1531         (TARGET_OS_CPP_BUILTINS): Define.
1532         * config/vax/ultrix.h: Likewise.
1533         * config/vax/vaxv.h: Likewise.
1534         * config/vax/vms.h: Likewise.
1535         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
1536         (CPP_PREDEFINES, CPP_SPEC): Remove.
1537
1538 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
1539
1540         * i386.md (addqi_1_slp, subqi_1_slp
1541         (andqi_ext0, testqi_ext0): Remove unnecesary check.
1542         (addhi*, addqi*): Simplify "dec" condition.
1543         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
1544         (and, or, xor to QImode splitters): New.
1545         (iorqi_ext*): New.
1546         (xorqi_ext_0): New.
1547         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
1548         (andqi_ext_1_rex64): New.
1549         (ashrqi*_slp): New.
1550         (ashlqi*_slp): New.
1551         (lshlqi*_slp): New.
1552         (rotrqi3*_slp): New.
1553         (rotlqi3*_slp): New.
1554
1555 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
1556
1557         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
1558         softfloat.h.
1559         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
1560         (CPP_ENDIAN_LITTLE_SPEC): Delete.
1561         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
1562         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
1563         __LONG_DOUBLE_128__ setting, _CALL_* setting.
1564         (CPP_DEFAULT_SPEC): Delete.
1565         (CPP_FLOAT_DEFAULT_SPEC): Delete.
1566         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
1567         (CPP_SYSV_DEFAULT_SPEC): Delete.
1568         (CPP_ENDIAN_BIG_SPEC): Delete.
1569         (CPP_ENDIAN_LITTLE_SPEC): Delete.
1570         (CPP_ENDIAN_SPEC): Delete.
1571         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
1572         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
1573         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
1574         cpp_longdouble_default.
1575         * config/rs6000/softfloat.h: Delete.
1576         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
1577         (EXTRA_SPECS): Delete cpp_cpu.
1578         (TARGET_CPU_CPP_BUILTINS): New.
1579         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
1580         prototype.
1581         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
1582         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
1583         (CPP_DEFAULT_SPEC): Delete.
1584         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
1585         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
1586         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
1587         (CPP_DEFAULT_SPEC): Delete.
1588         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1589         (CPLUSPLUS_CPP_SPEC): Likewise.
1590         (CPP_CPU_SPEC): Delete.
1591         (CPP_DEFAULT_SPEC): Delete.
1592         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1593         (CPLUSPLUS_CPP_SPEC): Likewise.
1594         (CPP_CPU_SPEC): Delete.
1595         (CPP_DEFAULT_SPEC): Delete.
1596         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
1597         (CPP_DEFAULT_SPEC): Delete.
1598         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
1599         (CPP_DEFAULT_SPEC): Delete.
1600
1601         * doc/gty.texi: Small updates.
1602
1603 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
1604
1605         * objc/objc-act.c (warn_with_ivar): Adjust calls to
1606         diagnostic_count_error.
1607         (warn_with_method): Likewise.
1608
1609         * diagnostic.h (warnings_are_errors_message): New field of
1610         diagnostic_context.
1611         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
1612         match semantics.
1613         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
1614         (diagnostic_count_diagnostic): Make aware of other kinds of
1615         diagnostics.
1616         (diagnostic_initialize): Initialize warnings_are_errors_message field.
1617
1618 2002-06-11  Tom Tromey  <tromey@redhat.com>
1619
1620         For PR java/6520:
1621         * fold-const.c (fold_convert): Don't modify existing tree's type.
1622
1623 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
1624
1625         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
1626
1627 2002-06-11  Richard Henderson  <rth@redhat.com>
1628
1629         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
1630
1631 2002-06-11  Richard Henderson  <rth@redhat.com>
1632
1633         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
1634         DWARF2_UNWIND_INFO is false.
1635
1636 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
1637
1638         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
1639
1640         * config/s390/s390.c (emit_prologue): gen_store_multiple
1641         returns an insn now, not a pattern.
1642
1643 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1644
1645         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
1646         $(TEXI2DVI) -o.
1647
1648 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
1649
1650         * i386.c (x86_promote_QImode): Set for Athlon
1651         (x86_fast_prefix): New global variable.
1652         (x86_arch_always_fancy_math_387): Fix formating.
1653         * i386.h (x86_fast_prefix): Declare
1654         (TARGET_FAST_PREFIX): define.
1655         * i386.md (and to strict_low_part, HI to SI
1656         promoting splitter): Use new macro.
1657
1658         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
1659
1660 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
1661
1662         * Makefile.in (distclean): Delete junk left in testsuite
1663         directory, too.
1664
1665 2002-06-11  Jeffrey Law <law@redhat.com>
1666
1667         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
1668         last insn created by the splitter.
1669
1670         * caller-save.c (init_caller_save): Move creation of SAVEINSN
1671         and RESTINSN into into the scope of the sequence.
1672
1673         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
1674         RETURN insns.
1675
1676         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
1677
1678         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
1679         not the pattern.  So extract the pattern from the insn.
1680
1681         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
1682
1683 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
1684
1685         * config/s390/s390.md (movsi): Only use floating point
1686         register alternatives when operands are already fprs.
1687         (movdi_31, movdi_64): Likewise.
1688
1689 2002-06-11  David S. Miller  <davem@redhat.com>
1690
1691         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
1692         Only run RTX equality checks on INSN_P rtl.
1693
1694 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
1695
1696         * config/s390/s390.md (reload_base, ltorg): Remove.
1697         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
1698         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
1699         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
1700         s390_asm_output_pool_prologue): Likewise.
1701         * s390.h (s390_pool_start_insn): Likewise.
1702
1703         * s390.c (s390_output_symbolic_const): Remove support for
1704         old-style pool chunks.
1705         (s390_function_epilogue): Likewise.
1706         (s390_output_constant_pool): Likewise.  Also, fix incorrect
1707         alignment for 64-bit literal pools.
1708         (print_operand_address): Remove 'y' and 'Y' format flags.
1709         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
1710         old-style pool chunks.
1711         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
1712         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
1713         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
1714
1715         * s390.c (consttable_operand): New function.
1716         * s390-protos.h (consttable_operand): Declare it.
1717         * s390.h (PREDICATE_CODES): Add consttable_operand.
1718         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
1719         consttable_sf, consttable_df, pool_start_31, pool_end_31,
1720         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
1721         * s390.c (struct constant, struct constant_pool): New data types.
1722         (constant_modes, gen_consttable): New variables.
1723         (s390_start_pool, s390_end_pool, s390_add_pool,
1724         s390_dump_pool, s390_free_pool): New functions.
1725         (s390_chunkify_pool): Completely reimplement literal pool
1726         overflow handling.
1727
1728         * s390.c (s390_pool_overflow): New variable.
1729         * s390.h (s390_pool_overflow): Declare it.
1730         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
1731         jumps in literal pool overflow situations.
1732
1733         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
1734         (s390_frame_info): Account for possible use of RETURN_REGNUM
1735         by new literal pool overflow code.
1736         (s390_emit_prologue): Likewise.
1737
1738 2002-06-05  David S. Miller  <davem@redhat.com>
1739
1740         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
1741         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
1742         emit_insns_before_scope, emit_insns_after,
1743         emit_insns_after_scope): Delete declaration.
1744         * ada/misc.c (insert_code_for): Use emit_insn* instead of
1745         emit_insns_foo.
1746         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
1747         (alpha_set_memflags): Fix comment.
1748         (set_frame_related_p): Use get_insns instead of gen_sequence.
1749         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
1750         emitting no insns.
1751         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
1752         gen_sequence.
1753         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
1754         * config/fr30/fr30.c (fr30_move_double): Likewise.
1755         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
1756         Likewise.
1757         * config/ia64/ia64.c (spill_restore_mem): Likewise.
1758         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
1759         no insns.
1760         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
1761         instead of gen_sequence.
1762         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
1763         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
1764         * config/sh/sh.c (sh_need_epilogue): Likewise.
1765         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
1766         attributes.
1767         (setjmp pattern and split): Use them to avoid splitter which emits
1768         no RTL.
1769         * genattrtab.c (main): Emit include of function.h
1770         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
1771         get_insns instead of gen_sequence.
1772         * config/cris/cris.c (cris_split_movdx): Likewise.
1773         * emit-rtl.c (emit_insns*): Kill.
1774         (try_split): Expect insn list instead of SEQUENCE.
1775         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
1776         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
1777         Make them abort if a SEQUENCE is given and RTL checking is
1778         enabled.
1779         (emit_*_scope): Don't forget to set scope on final insn.
1780         (gen_sequence): Move from here...
1781         * ssa.c (gen_sequence): To here as private function.
1782         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
1783         comments.
1784         (expand_builtin_return, expand_builtin_mathfn): Likewise.
1785         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
1786         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
1787         (expand_builtin_expect_jump): Use get_insns and fix comments.
1788         * calls.c (try_to_integrate): Use emit_insn_foo.
1789         (expand_call, emit_library_call_value_1): Likewise.
1790         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
1791         (emit_move_insn_1): Use get_insns instead of gen_sequence.
1792         (expand_expr): Use emit_insn_foo.
1793         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
1794         * except.c (build_post_landing_pads): Likewise.
1795         * flow.c (attempt_auto_inc): Likewise.
1796         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
1797         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
1798         * function.c (fixup_var_refs_insn): Use get_insns instead of
1799         gen_sequence.
1800         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
1801         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
1802         (fixup_stack_1, purge_addressof_1, expand_main_function,
1803         get_arg_pointer_save_area): Likewise.
1804         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
1805         expand_function_end): Use emit_insn_foo.
1806         (record_insns, keep_stack_depressed): Work with insn list instead
1807         of SEQUENCE, fix comments.
1808         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
1809         noce_try_store_flag_constants, noce_try_store_flag_inc,
1810         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
1811         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
1812         (noce_process_if_block): Use get_insns instead of gen_sequence.
1813         * optabs.c (add_equal_note): Work with insn list, fix comments.
1814         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
1815         (expand_unop, expand_complex_abs, expand_unop_insn,
1816         expand_no_conflict_block): Likewise.
1817         (gen_move_insn): Use get_insns instead of gen_sequence.
1818         (gen_cond_trap): Likewise.
1819         * integrate.c (copy_rtx_and_substitute): Likewise.
1820         (emit_initial_value_sets): Use emit_insn_foo.
1821         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
1822         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
1823         now that RTL generators give insn lists.
1824         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
1825         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
1826         instead of gen_sequence.
1827         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
1828         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
1829         instead of gen_sequence.
1830         * loop.c (move_movables, emit_prefetch_instructions,
1831         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
1832         Likewise.
1833         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
1834         (product_cheap_p): Likewise, and add commentary about RTL wastage
1835         here.
1836         * lcm.c (optimize_mode_switching): Use get_insns instead of
1837         gen_sequence.
1838         * profile.c (gen_edge_profiler): Likewise.
1839         * regmove.c (copy_src_to_dest): Likewise.
1840         * reg-stack.c (compensate_edge): Likewise and fix comment.
1841         * gcse.c (process_insert_insn): Likewise.
1842         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
1843         * jump.c (delete_prior_computation): Update comment.
1844         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
1845         of gen_sequence, update comments to match.
1846         * recog.c (peephole2_optimize): Work with insn lists instead of
1847         SEQUENCE rtl.
1848         * sched-vis.c (print_pattern): Abort on SEQUENCE.
1849         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
1850         Use get_insns instead of gen_sequence.
1851         (copy_loop_body): Likewise and don't emit dummy NOTE.
1852         * genrecog.c: Don't mention SEQUENCE rtl in comments.
1853         * combine.c (try_combine): Expect insn lists from split generator.
1854         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
1855         hand.
1856
1857 2002-06-11  Roger Sayle  <roger@eyesopen.com>
1858             Andreas Jaeger <aj@suse.de>
1859
1860         * cfgbuild.c: Update copyright years.
1861
1862 2002-06-11  Andreas Schwab  <schwab@suse.de>
1863
1864         * config/m68k/m68k.h (PREDICATE_CODES): Define.
1865
1866 2002-06-11  Eric Christopher  <echristo@redhat.com>
1867
1868         * doc/tm.texi (Run-time Target): Add comment about flag_iso
1869         and strict ANSI.
1870         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
1871         * config/mips/ecoffl.h: Ditto.
1872         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
1873         (CPP_PREDEFINES): Ditto.
1874         * config/mips/elfl64.h: Ditto.
1875         * config/mips/elfl.h: Ditto.
1876         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
1877         out until irix header consolidation.
1878         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
1879         with SUBTARGET_OS_CPP_BUILTINS.
1880         * config/mips/iris6.h: Ditto.
1881         (CPLUSPLUS_CPP_SPEC): Remove.
1882         * config/mips/linux.h: Ditto.
1883         * config/mips/netbsd.h: Ditto.
1884         * config/mips/openbsd.h: Ditto.
1885         * config/mips/rtems.h: Ditto.
1886         * config/mips/rtems64.h: Ditto.
1887         * config/mips/sni-svr4.h: Ditto.
1888         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
1889         ISA_MIPS32, ISA_MIPS64): New defines.
1890         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
1891         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
1892         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1893         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
1894         (TARGET_CPU_CPP_BUILTINS): Define.
1895         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
1896         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
1897         (movdicc): Remove check for ISA_MIPS32.
1898          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
1899         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
1900         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
1901         sunge_sf, sunle_df, sunle_sf): New patterns.
1902
1903 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
1904
1905         * Makefile.in: Update cppmain.o.
1906         * cpphash.h (struct cpp_reader): Move some members to a
1907         nested structure.
1908         (trad_line): Rename saved_line.
1909         (_cpp_read_logical_line_trad): Update.
1910         (_cpp_remove_overlay): New.
1911         * cppinit.c (cpp_create_reader): No need to set saved_line.
1912         (cpp_destroy): Update.
1913         (cpp_read_main_file): Only overlay if compiling.
1914         * cpplex.c (continue_after_nul): Return false if in directive.
1915         * cpplib.c (EXPAND): New.
1916         (directive_table, SEEN_EOL): Update.
1917         (end_directive): Remove overlay if traditional; don't skip
1918         line in traditional #define.
1919         (prepare_directive_trad): New.
1920         (_cpp_handle_directive, run_directive): Update for traditional
1921         directives.
1922         (lex_macro_node): Simplify, don't use lex_identifier_trad.
1923         * cpplib.h (struct options): Add preprocess_only.
1924         * cppmain.c: Don't include intl.h.
1925         (cpp_preprocess_file): Set options->preprocess_only.
1926         (scan_translation_unit_trad): Fix, and print line numbers.
1927         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
1928         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
1929         save_replacement_text, _cpp_create_trad_definition): Update for
1930         variable renaming.
1931         (_cpp_overlay_buffer): Save line number.
1932         (_cpp_remove_overlay): Rename from restore_buff, restore line.
1933         (_cpp_read_logical_line_trad): Don't handle overlays here.
1934         (scan_out_logical_line): Process directives.
1935
1936 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
1937
1938         * gthr-win32.h: Wrap functions in extern "C".
1939         (__gthread_key_t): Typedef as unsigned long,
1940         not win32 DWORD.
1941         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
1942         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
1943         (__gthr_win32_once, __gthr_win32_key_create,
1944         __gthr_win32_key_delete, __gthr_win32_getspecific,
1945         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
1946         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
1947         __gthr_win32_mutex_unlock): Declare.
1948         (__gthread_once,__gthread_key_create,
1949         __gthread_key_delete, __gthread_getspecific,
1950         __gthread_setspecific, __gthread_mutex_init_function,
1951         __gthread_mutex_lock,__gthread_mutex_trylock,
1952         __gthread_mutex_unlock): Call corresponding
1953         __gthr_win32_* extern implementations if #defined
1954         __GTHREAD_HIDE_WIN32API.
1955         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
1956         $(srcdir)/config/i386/gthr-win32.c
1957         * config/i386/gthr-win32.c: New implementation file.
1958         (__gthr_win32_once, __gthr_win32_key_create,
1959         __gthr_win32_key_delete, __gthr_win32_getspecific,
1960         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
1961         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
1962         __gthr_win32_mutex_unlock): New functions, based on
1963         static inlines in gthr-win32.h.
1964
1965 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
1966
1967         * config/xtensa/xtensa.c (override_options): Don't warn about
1968         using -fpic or -fPIC when PIC is enabled by default.
1969
1970 2002-06-10  Roger Sayle  <roger@eyesopen.com>
1971
1972         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
1973
1974 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
1975
1976         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
1977         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
1978         exists, substitute its pathname as @extra_modes_file@, define
1979         EXTRA_MODES_FILE to be an appropriate string to #include it
1980         with, and define EXTRA_CC_MODES to 1.
1981
1982         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
1983         it's defined.  Get rid of redundancy in calling sequence for
1984         CC; don't use it to define CCmode, to avoid a warning.
1985         * libgcc2.c: Include symcat.h for the sake of machmode.def.
1986
1987         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
1988         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
1989         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
1990         New files.
1991         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
1992         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
1993
1994         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
1995         defining extra CC modes.
1996
1997 2002-06-10  Roger Sayle  <roger@eyesopen.com>
1998             Andreas Jaeger <aj@suse.de>
1999
2000         * cfgrtl.c (create_basic_block_structure):  Remove index argument
2001         and use last_basic_block++ instead.  (create_basic_block): Update.
2002         * cfgbuild.c (find_basic_blocks_1): Likewise.
2003
2004         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
2005         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
2006         * sched-ebb.c (schedule_ebbs): Likewise.
2007         * sched-rgn.c (schedule_insns): Likewise.
2008         * ssa-ccp.c (ssa_const_prop): Likewise.
2009         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
2010         * toplev.c (rest_of_compilation): Likewise.
2011         * config/ia64/ia64.c (ia64_reorg): Likewise.
2012
2013 2002-06-10  Roger Sayle  <roger@eyesopen.com>
2014
2015         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
2016         of matching registers.
2017
2018 2002-06-10  Roger Sayle  <roger@eyesopen.com>
2019
2020         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
2021         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
2022
2023 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
2024
2025         * config/mmix/mmix.h: Improve comments.
2026         (CPP_SPEC, CPP_PREDEFINES): Don't define.
2027         (TARGET_CPU_CPP_BUILTINS): Define.
2028         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
2029         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
2030         unused predicate.
2031         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
2032         compiler warning.
2033         (mmix_constant_address_p): Remove another
2034         redundant test before case.
2035         (mmix_canonicalize_comparison): Remove unused function.
2036         (mmix_print_operand_address): Don't test and adjust for operand in
2037         non-canonical format.
2038         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
2039         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
2040
2041 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
2042
2043         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
2044         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
2045         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
2046         (gen_compare): Use CCmode unconditionally.
2047
2048 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2049
2050         PR optimization/6759
2051         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
2052         the REQ_EQUAL note.
2053
2054 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2055
2056         PR c/6660
2057         * c-decl.c (grokfield): Allow user defined types if they declare
2058         structs or unions for unnamed fields.
2059
2060 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2061
2062         PR c/6809
2063         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
2064
2065 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2066
2067         PR optimization/6842
2068         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
2069         operand subreg cannot be simplified.
2070
2071 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2072
2073         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
2074         (compare_constant): Likewise.
2075         (output_addressed_constants): Likewise.
2076
2077 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2078
2079         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
2080         merge bb with itself.
2081
2082 2002-06-10  Richard Henderson  <rth@redhat.com>
2083
2084         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
2085         (builtin_zapnot): Likewise.
2086
2087         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
2088         reservation.
2089
2090 2002-06-10  Eric Christopher  <echristo@redhat.com>
2091
2092         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
2093         prototype and function.
2094         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
2095         (call_insn_operand): Remove half pic references.
2096         (legitimate_address_p): Ditto.
2097         * config/i386/i386.h: Remove half pic defines.
2098
2099 2002-06-10  Eric Christopher  <echristo@redhat.com>
2100
2101         * doc/extend.texi (Return Address): Add note explaining the side-
2102         effects of inlining on __builtin_return_address.
2103
2104 2002-06-10  Tom Tromey  <tromey@redhat.com>
2105
2106         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
2107         (c-common.o): Depend on langhooks.h.
2108
2109 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
2110
2111         * cpphash.h (_cpp_read_logical_line_trad,
2112         _cpp_expansions_different_trad): Update prototypes.
2113         * cpplex.c (continue_after_nul): New.
2114         * cppmain.c: Include cpphash.h.
2115         (scan_translation_unit_trad): New.
2116         (cpp_preprocess_file): Call it.
2117         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
2118         overlay.
2119         (_cpp_expansions_different_trad): Update prototype.
2120
2121 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
2122
2123         Fix cfi generation for SH[1-4]:
2124
2125         * sh.c (frame_insn): New function.
2126         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
2127         (push): Now returns rtx.  Use frame_insn.
2128         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
2129         of a DF register.
2130         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
2131
2132 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
2133
2134         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
2135         and gtype-desc.c.
2136         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
2137         (distclean): ... not here.  But do delete all testsuite/*.log,
2138         testsuite/*.sum files here.  Delete mkheaders.  Delete
2139         po/*.gmo and the testsuite directory in a split tree build.
2140
2141 2002-06-10  Jeffrey Law  <law@redhat.com>
2142
2143         * alias.c (static_reg_base_value): New to hold RTL for
2144         items allocated once per function for the aliasing code.
2145         (init_alias_once_per_function): Initialize static_reg_base_value.
2146         (init_alias_analysis): Avoid throw-away allocations of RTL by
2147         using pre-computed values in static_reg_base_value.
2148         * function.c (prepare_function_start): Call
2149         init_alias_once_per_function appropriately.
2150         * rtl.h (init_alias_once_per_function): Declare.
2151         * caller-save (init_caller_save): Restructure slightly to
2152         avoid lots of silly RTL generation.
2153         * expr.c (init_expr_once): Likewise.
2154         * reload1.c (reload_cse_regs_1): Allocate throw-away register
2155         RTL object here.  Pass it into children.
2156         (reload_cse_simplify_operands): Use passed-in register RTL
2157         object.
2158         (reload_cse_simplify): Pass through throw-away register
2159         RTL object.
2160
2161 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
2162
2163         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
2164
2165 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
2166
2167         * gcc.c (process_command): Avoid assignment to read-only location.
2168         Fix sizeof calculation.
2169
2170 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
2171
2172         * cpphash.h (struct cpp_macro): Put comments on their own lines.
2173         (_cpp_expansions_different_trad): New.
2174         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
2175         * cpptrad.c (canonicalize_text): New.
2176         (scan_out_logical_line): Handle no arguments correctly.
2177         (save_replacement_text): Commit memory when finished.
2178         (_cpp_expansions_different_trad): New.
2179
2180 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2181
2182         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
2183         TREELANG and COBOL.
2184         (lang_names): Add treelang and cobol.
2185         (get_file_basename): Add code to support treelang and cobol as
2186         4th and 5th users of c-common.c.
2187
2188 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
2189
2190         * Makefile.in (install-driver): Install driver as
2191         $(target_alias)-gcc-$(version).
2192         * gcc.c (spec_version): Make const.
2193         (process_command): Handle -V and -b by using exec.
2194         * doc/invoke.texi (Target Options): Restore -V option,
2195         update docs for -b option.
2196
2197 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2198
2199         * configure.in (remaining_languages_check):
2200         Added check that all languages specified were found.
2201         Exit if not found. Previous behaviour was silent failure.
2202         * configure: Regenerated.
2203
2204 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2205
2206          First steps to making treelang documentation compliant, based on
2207          instructions in sourcebuild.texi. Also add to gcc.c list of
2208          default languages.
2209
2210         * doc/contrib.texi: Add self as contributor of treelang.
2211
2212         * doc/frontends.texi: Add mention of treelang.
2213
2214         * doc/invoke.texi (Overall Options): Add mention of treelang.
2215
2216         * doc/standards.texi:  Add mention of treelang.
2217
2218 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
2219
2220         * config/cris/cris.c: Include ggc.h
2221
2222 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2223
2224         * cpphash.h (_cpp_push_text_context): Update.
2225         (_cpp_arguments_ok): New.
2226         * cppmacro.c (_cpp_arguments_ok): New, split out from...
2227         (collect_args): ...here.
2228         (_cpp_push_text_context): Change inputs.
2229         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
2230         replace_args_and_push): New.
2231         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
2232         Don't use IS macros directly.
2233         (scan_out_logical_line): Handle function-like macro argument
2234         collection.
2235         (push_replacement_text): Update.
2236         (replacement_length): Remove.
2237         (_cpp_create_trad_definition): Don't skip whitespace before
2238         checking for '('.
2239
2240 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2241
2242         * config/avr/avr.c (avr_mcu_types): Update for new devices.
2243         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
2244         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
2245         * config/avr/avr.md ("type" and "length" attributes): New type
2246         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
2247         output a single "call" or "rcall" insn depending on device size.
2248         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
2249
2250 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
2251
2252         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
2253         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
2254         assembler option.
2255         (CPP_CPU_SPEC): Add power3 and power4.
2256         (PROCESSOR_DEFAULT): Change to 604e.
2257         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
2258         (CPP_CPU_SPEC): Similar additions.
2259         (enum process_type): Add POWER4.
2260         (RTX_COSTS): Add POWER4.
2261         (CPP_CPU_SPEC): Similar additions.
2262         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
2263         (PROCESSOR_DEFAULT64): Define.
2264         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
2265         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
2266         branch adjustment.
2267         (rs6000_issue_rate): Add Power4.
2268         * config/rs6000/rs6000.md (cpu attr): Add power4.
2269         (iu compare): Remove 604, 604e, 620, 630.
2270         Add basic Power4 scheduling information.
2271         (mfcr/mtcrf): Change type attribute to cr_logical.
2272
2273 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2274
2275         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
2276         ATTRIBUTE_PRINTF_2.
2277         * gengtype-lex.l: Fix format specifier warning.
2278
2279         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
2280         not isspace.
2281         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
2282         lieu of isspace/IDchar.
2283         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
2284         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
2285         ISSPACE.
2286
2287 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
2288
2289         * Makefile.in (LIBCPP_OBJS): Take out version.o.
2290         * cpphash.h (cpp_reader): Take out print_version member.
2291         * cppinit.c: (cpp_handle_option): Don't do anything with
2292         -version.  Just set help_only for --version, --target-help.
2293         Just set verbose option for -v.
2294         (cpp_post_options): Don't print a version string.
2295
2296 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2297
2298         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
2299         (avr_section_type_flags): New, handle .noinit* sections.
2300
2301 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2302
2303         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
2304         and include netbsd_entry_point.
2305         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
2306         (NETBSD_ENTRY_POINT): Define.
2307
2308 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2309
2310         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
2311         if not already defined.
2312         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
2313
2314 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2315
2316         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
2317         in a noreturn function.
2318         (avr_output_function_prologue, avr_output_function_epilogue):
2319         Correct function size calculation.  Do not crash on empty function.
2320         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
2321
2322 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2323
2324         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
2325         netbsd_link_spec and netbsd_entry_point.
2326         (LINK_SPEC): Use %(netbsd_link_spec).
2327         (NETBSD_ENTRY_POINT): Define.
2328
2329 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2330
2331         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
2332         linker emulation.
2333         (LINK_ARCH64_SPEC): Likewise.
2334         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
2335         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
2336
2337 2002-06-08  Marc Espie  <espie@openbsd.org>
2338
2339         * lists.c (free_list):  Fix typo in comment.
2340
2341 2002-06-08  Andreas Jaeger  <aj@suse.de>
2342
2343         * lcm.c (optimize_mode_switching): Add unused attribute for
2344         variable.
2345
2346         * sched-deps.c (sched_analyze): Remove unused variable.
2347
2348 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
2349
2350         * diagnostic.def: Don't capitalize diagnostict descriptors.
2351
2352 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2353
2354         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
2355         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
2356         (NETBSD_ENTRY_POINT): Define.
2357
2358 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2359
2360         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
2361         NETBSD_LINK_SPEC_ELF.
2362         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
2363         (NETBSD_ENTRY_POINT): Define.
2364         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
2365         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
2366         netbsd_entry_point.
2367         (NETBSD_ENTRY_POINT): Define.
2368
2369 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2370
2371         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
2372         netbsd_link_spec and netbsd_entry_point.
2373         (LINK_SPEC): Use %(netbsd_link_spec).
2374         (NETBSD_ENTRY_POINT): Define.
2375
2376 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2377
2378         * config/netbsd-elf.h (LINK_SPEC): Rename to...
2379         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
2380         to specify program entry point.
2381
2382 2002-06-07  Jeff Law <law@redhat.com
2383
2384         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
2385         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
2386         than creating a new register.
2387         (distribute_notes): Likewise.
2388         * df.c (df_reg_use_gen): Likewise.
2389         (df_reg_clobber_gen): Likewise.
2390         (df_ref_record): Likewise.
2391         * expr.c (use_regs): Likewise.
2392         * flow.c (propagate_one_insn): Likewise.
2393         (mark_set_1): Likewise.
2394         (mark_used_reg): Likewise.
2395         * reload.c (emit_reload_insns): Likewise.
2396
2397 2002-06-07  Roger Sayle  <roger@eyesopen.com>
2398
2399         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
2400         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
2401         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
2402         comparison code comp can be reversed.
2403
2404 2002-06-07  Roger Sayle  <roger@eyesopen.com>
2405
2406         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
2407         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
2408         equivalent x > -1.0 when -ffast-math.
2409
2410 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2411
2412         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
2413         * config/mips/t-netbsd: New file.
2414
2415 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
2416
2417         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
2418         options their own entries.
2419         (parse_option): Clarify comment.
2420         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
2421         special case.  Replace if/strcmp chain for -W options with
2422         use of new OPT_* entries for them.
2423         (cpp_handle_options): Update to match.
2424         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
2425         * c-decl.c: Update call to cpp_handle_option.
2426
2427 2002-06-07  Akim Demaille  <akim@epita.fr>
2428
2429         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
2430         Whitespace changes.
2431
2432 2002-06-07  Jeffrey Law  <law@redhat.com>
2433
2434         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
2435         on empty lists.
2436
2437 2002-06-07  H.J. Lu  (hjl@gnu.org)
2438
2439         * configure.in: Add --enable-__cxa_atexit.
2440         * configure: Regenerated.
2441         * config.in: Likewise.
2442
2443         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
2444         not defined.
2445
2446 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
2447
2448         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
2449
2450 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2451
2452         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
2453
2454 2002-06-07  Jason Merrill  <jason@redhat.com>
2455
2456         * cppexp.c (num_equality_op): Use a temporary variable to work
2457         around gcc 3.0.4 bug.
2458
2459 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
2460
2461         * diagnostic.c (diagnostic_build_prefix): Tidy.
2462
2463 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
2464
2465         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
2466         scan_parameters, save_replacement_text, replacement_length): New.
2467         (scan_out_logical_line): Take a macro and save parameters if
2468         non-NULL.
2469         (_cpp_logical_line_trad): Update.
2470         (_cpp_create_trad_definition): Update to handle function-like
2471         macros.
2472         * cpplex.c (new_buff): Update.
2473         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
2474         * cpphash.h: ...here.
2475         (CPP_ALIGN2, _cpp_save_parameter): New.
2476         * cppmacro.c (save_parameter): Rename, export.
2477         (parse_params): Update.
2478
2479 2002-06-07  Andreas Jaeger  <aj@suse.de>
2480
2481         * config/mmix/mmix.c: Remove extra broken prototype for
2482         mmix_init_machine_status.
2483
2484 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
2485
2486         * gengtype.c: Add comments before all the routines.
2487
2488 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2489
2490         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
2491         from and add t-sh64 to ${tmake_file}.
2492         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
2493         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
2494         * config/sh/t-netbsd-sh5-32: Remove.
2495         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
2496         MULTILIB_ENDIAN.
2497         (MULTILIB_DIRNAMES): Define.
2498
2499 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
2500
2501         * i386.md (and promoting splitters): Disable QI to SImode promoting
2502         when doing so changes immediate to be 32bit.
2503
2504         * rtl.h (emit_*_scope): Declare.
2505         * emit-rtl.c (emit_*_scope): New global functions.
2506         (try_split): Copy scope.
2507         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2508         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2509         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
2510         noce_process_if_block, find_cond_trap): Copy scopes.
2511         * recog.c (peephole2_optimize): likewise.
2512
2513 2002-06-06  Jeffrey Law  <law@redhat.com>
2514
2515         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
2516
2517 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
2518
2519         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
2520
2521 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2522
2523         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
2524         ($(docdir)/gccinstall.info): New target.
2525         (info): Depend on it.
2526         (gccinstall.dvi): New target.
2527         (dvi): Depend on it.
2528         * doc/.cvsignore: Ignore new info files.
2529         * doc/install.texi (@setfilename): Reflect new info filename.
2530
2531 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
2532
2533         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
2534         on an UNSPEC.
2535
2536 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2537
2538         PR objc/6834
2539         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
2540         c_common_get_alias_set.
2541         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
2542
2543 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2544
2545         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
2546         functions.
2547         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
2548         * avr/avr.c (avr_output_function_epilogue): Use above to determine
2549         function size.
2550         * pa/pa.c (pa_output_function_prologue): Likewise.
2551
2552 2002-06-05  David S. Miller  <davem@redhat.com>
2553
2554         * integrate.c (subst_constants): Handle 'B' RTL format.
2555
2556 2002-06-05  Eric Christopher  <echristo@redhat.com>
2557
2558         * varasm.c (make_decl_rtl): Fix comment for removed
2559         halfpic.c.
2560
2561 2002-06-05  Eric Christopher  <echristo@redhat.com>
2562
2563         * Makefile.in: Remove missed halfpic bits.
2564
2565 2002-06-05  Eric Christopher  <echristo@redhat.com>
2566
2567         * toplev.c: Remove half-pic.
2568         * config/mips/mips.c: Ditto.
2569         * config/mips/mips.h: Ditto. Remove unused defines.
2570         * config/mips/openbsd.h: Update comment to reflect above.
2571         * config/mips/mips.md: Remove half-pic constraints.
2572         * halfpic.h: Delete.
2573         * halfpic.c: Ditto.
2574
2575 2002-06-05  Jeffrey Law  <law@redhat.com>
2576
2577         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
2578         rejects (mem (lo_sum (reg) (unspec))), but will allow
2579         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
2580
2581 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2582
2583         * cpphash.h (_cpp_create_definition): Update prototype.
2584         (_cpp_push_text_context, _cpp_create_trad_definition): New.
2585         ( cpp_lex_identifier_trad): New.
2586         (_cpp_set_trad_context): New.
2587         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
2588         * cpplib.c (SEEN_EOL): Update.
2589         (lex_macro_node): Update for -traditional.
2590         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
2591         * cppmacro.c (_cpp_create_definition): Split into
2592         create_iso_definition() and _cpp_create_trad_definition().
2593         (warn_of_redefinition): Update prototype; handle traditional
2594         macros.
2595         (_cpp_push_text_context): New.
2596         * cpptrad.c (skip_whitespace, push_replacement_text): New.
2597         (lex_identifier): Call ht_lookup with correct start.
2598         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
2599         _cpp_set_trad_context): New.
2600         (scan_out_logical_line): Update to handle changing contexts.
2601
2602 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
2603
2604         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
2605         (shl*-*-elf*): Add.
2606         * config/sh/t-be (MULTILIB_ENDIAN): Set.
2607         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
2608         * t-sh (MULTILIB_ENDIAN): Set.
2609         (MULTILIB_OPTIONS): Use it.
2610         * t-sh64 (MULTILIB_OPTIONS): Likewise.
2611         (MULTILIB_DIRNAMES): Likewise.
2612
2613 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
2614
2615         * toplev.h (report_error_function): Remove.
2616
2617         * diagnostic.h (location_t): New datatype.
2618         (text_info): Likewise.
2619         (diagnostic_info): Likewise.
2620         (output_prefix): New macro.
2621         (diagnostic_last_function_changed): Likewise.
2622         (diagnostic_set_last_function): Likewise.
2623         (diagnostic_last_module_changed): Likewise.
2624         (diagnostic_set_last_module): Likewise.
2625         (report_diagnostic): Now macro.
2626         (diagnostic_set_info): Declare.
2627
2628         * diagnostic.c (report_problematic_module): Rename to
2629         diagnostic_repor_current_module.
2630         (set_diagnostic_context): Remove.
2631         (count_error): Rename to diagnostic_error_count.
2632         (error_function_changed): Remove.
2633         (record_last_error_function): Likewise.
2634         (error_module_changed): Likewise.
2635         (record_last_error_module): Likewise.
2636         (context_as_prefix): Rename to diagnostic_build_prefix.
2637         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
2638         (diagnostic_set_info): New function.
2639
2640         * objc/objc-act.c: #include diagnostic.h
2641         (error_with_ivar): Adjust call to count_error.
2642         (warn_with_method): Likewise.
2643         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
2644
2645 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
2646
2647         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
2648         lang_hooks.types.make_type instead of make_node; set up
2649         __va_list_tag type decl.
2650         (xtensa_builtin_saveregs): Remove broken use of
2651         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
2652         for saved registers; add varargs alias set.
2653
2654 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2655
2656 config:
2657         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
2658         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
2659         CPP_PREDEFINES and part of CPP_SPEC.
2660         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
2661         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
2662
2663 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
2664
2665         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
2666
2667 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
2668
2669         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
2670
2671 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
2672
2673         * gengtype-yacc.y: Make sure all rules end with a semicolon.
2674
2675 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
2676
2677         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
2678         typo in function prototype and include "ggc.h" header.
2679
2680 2002-06-04  Richard Henderson  <rth@redhat.com>
2681
2682         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
2683         (print_operand) ['U']: Likewise.
2684         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
2685         (alpha_expand_unaligned_store_words): Likewise.
2686         (alpha_expand_builtin_vector_binop): Fix typo.
2687         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
2688         umulh, and cix insns.
2689         (one_arg_builtins): Add cix builtins.
2690         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
2691         (alpha_expand_builtin): Fix typo in arity.
2692         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
2693         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
2694         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
2695         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
2696         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
2697         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
2698         builtin_ctlz, builtin_ctpop): New.
2699         * doc/extend.texi (Alpha Built-in Functions): Update.
2700
2701 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
2702
2703         * gengtype.c (write_gc_root): Don't unnecessarily prevent
2704         global variable-length arrays being roots.
2705
2706         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
2707         * configure.in (config_gtfiles): New variable.
2708         (all_gtfiles): Initialise from config_gtfiles.
2709         * configure: Regenerate.
2710
2711 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2712
2713 config/i386:
2714         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
2715         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
2716         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
2717         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
2718         win32.h (CPP_SPEC): Remove cpp_cpu.
2719         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
2720         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
2721
2722 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
2723
2724         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
2725
2726 2002-06-04  Jeff Law <law@redhat.com.
2727             David Edelsohn <edelsohn@gnu.org>
2728             Michael Matz <matz@kde.org>
2729
2730         * sched-int.h (struct deps): New field libcall_block_tail_insn.
2731         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
2732         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
2733         is set, then mark the current insn as being part of a libcall
2734         scheduling group.
2735         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
2736
2737         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
2738         insns against the issue rate.
2739
2740 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
2741
2742         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
2743         * final.c (final_scan_insn): Likewise.
2744         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
2745         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
2746         * haifa-sched.c (unlink_other_notes): Likeewise.
2747         (reemit_notes): Likewise.
2748         * print-rtl.c (print_rtx): Likewise.
2749         * sched-deps (sched-analyze): Likewise.
2750         * rtl.c (note_insn_name): Likewise.
2751         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
2752         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
2753         (RANGE_*): Kill.
2754
2755 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
2756
2757         * varasm.c (mark_constants): Handle RTX format 'B'.
2758
2759 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2760
2761         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
2762         (struct cpp_context): Add traditional fields.
2763         * cppmacro.c (paste_all_tokens, push_ptoken_context,
2764         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
2765         * cpptrad.c (skip_comment, lex_identifier,
2766         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
2767
2768 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
2769
2770         * gbl-ctors.h: Fix formatting.
2771         * gcc.c: Likewise.
2772         * gccspec.c: Likewise.
2773         * gcov.c: Likewise.
2774         * gcov-io.h: Likewise.
2775         * gcse.c: Likewise.
2776         * ggc-common.c: Likewise.
2777         * ggc.h: Likewise.
2778         * ggc-page.c: Likewise.
2779         * ggc-simple.c: Likewise.
2780         * global.c: Likewise.
2781         * graph.h: Likewise.
2782         * gthr-dce.h: Likewise.
2783         * gthr.h: Likewise.
2784         * gthr-posix.h: Likewise.
2785         * gthr-rtems.h: Likewise.
2786         * gthr-solaris.h: Likewise.
2787         * gthr-win32.h: Likewise.
2788
2789 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
2790
2791         Merge from pch-branch:
2792
2793         * gengtype.h (UNION_OR_STRUCT_P): New macro.
2794         * gengtype.c (write_gc_structure_fields): Use it.
2795         (write_gc_root): Use it here too.
2796
2797         * gengtype.c (write_gc_structure_fields): Assume that lengths
2798         of typenames fit into an 'int'; don't pass a size_t to "%d" in
2799         printf.
2800         (write_gc_marker_routine_for_structure): Likewise.
2801         (write_gc_types): Likewise.
2802         (write_gc_root): Likewise.
2803
2804         * varray.h (VARRAY_CLEAR): New.
2805         (varray_clear): Prototype.
2806         * varray.c (varray_clear): New.
2807         * cselib.c (reg_values_old): New.
2808         (used_regs_old): New.
2809         (cselib_init): Use cached varrays if available to avoid
2810         generating large amounts of garbage.
2811         (cselib_finish): Don't throw away old varrays.
2812
2813         * final.c (insn_addresses_): Move out of ifdef.
2814
2815         * varray.c (uses_ggc): Make more varray kinds GCable.
2816         * varray.h (union varray_data_tag): Let gengtype see
2817         fields 'generic' and 'te'.
2818         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
2819         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
2820         (reg_to_stack): Don't call VARRAY_FREE.
2821         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
2822         (insn_addresses_): Use gengtype to mark.
2823         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
2824         pointers; handle generic pointers in unused union fields.
2825         (get_output_file_with_visibility): Include cselib.h,
2826         insn-addr.h in gtype-desc.c.
2827         * function.c (prologue): Use gengtype to mark.
2828         (epilogue): Likewise.
2829         (sibcall_epilogue): Likewise.
2830         * dependence.c: Include gt-dependence.h, ggc.h.
2831         (struct def_use): Use gengtype to mark.
2832         (struct loop): Likewise.
2833         (struct induction): Likewise.
2834         (struct dependence): Likewise.
2835         (def_use_chain): Likewise.
2836         (dep_chain): Likewise.
2837         (loop_chain): Likewise.
2838         (induction_chain): Likewise.
2839         (init_dependence_analysis): Don't free anything, just clear pointers.
2840         (build_def_use): Use GGC to allocate def_use.
2841         (add_loop): Use GGC to allocate loop.
2842         (find_induction_variable): Use GGC to allocate induction.
2843         (check_node_dependence): Use GGC to allocate induction, dependence.
2844         (dump_node_dependence): Don't free varrays.
2845         (end_dependence_analysis): Likewise.
2846         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
2847         (struct elt_loc_list): Likewise.
2848         (struct elt_list): Likewise.
2849         * cselib.c: Don't include obstack.h.
2850         (hash_table): Use gengtype to mark.
2851         (reg_values): Use gengtype to mark.
2852         (used_regs): Use gengtype to mark.
2853         (cselib_obstack): Delete.
2854         (cselib_startobj): Delete.
2855         (empty_vals): Mark as deletable.
2856         (empty_elt_lists): Mark as deletable.
2857         (empty_elt_loc_lists): Mark as deletable.
2858         (new_elt_list): Use GGC to allocate struct elt_list.
2859         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
2860         (clear_table): Don't delete obstack; don't unnecessarily clear
2861         deletable variables.
2862         (new_cselib_val): Use GGC to allocate struct cselib_val.
2863         (cselib_init): Don't set up obstacks.  Use GGC to allocate
2864         hash table.
2865         (cselib_finish): Just clear variables, don't free anything.
2866         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
2867         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
2868         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
2869         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
2870         (gt-reg-stack.h): New rule.
2871         (gt-dependence.h): New rule.
2872         (gtype-desc.o): Add cselib.h, insn-addr.h.
2873
2874         * varray.c: Use only necessary headers.
2875         (element_size): New.
2876         (uses_ggc): New.
2877         (varray_init): Take type, not size.  Use GGC if appropriate.
2878         (varray_grow): Update for change to struct varray_head_tag.
2879         Use GGC if appropriate.
2880         * varray.h (struct const_equiv_data): Use gengtype.
2881         (enum varray_data_enum): New.
2882         (union varray_data_tag): Use gengtype.
2883         (struct varray_head_tag): Use gengtype.  Replace size field with
2884         enum varray_data_enum.
2885         (varray_init): Update prototype.
2886         (VARRAY_SCHED_INIT): Delete.
2887         (VARRAY_*_INIT): Update for change to varray_init.
2888         (VARRAY_SCHED): Delete.
2889         (VARRAY_PUSH_SCHED): Delete.
2890         (VARRAY_TOP_SCHED): Delete.
2891         * tree.h: Update for change to length specifier.
2892         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
2893         (clone_body): Likewise.
2894         * ssa.h (ssa_definition): Use gengtype to mark.
2895         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
2896         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
2897         * rtl.h (struct rtvec_def): Update for change to length specifier.
2898         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
2899         (struct initial_value_struct): Update for change to length specifier.
2900         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
2901         (ggc_add_tree_varray_root): Delete prototype.
2902         (ggc_mark_rtx_varray): Delete prototype.
2903         (ggc_mark_tree_varray): Delete prototype.
2904         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
2905         (ggc_add_tree_varray_root): Delete.
2906         (ggc_mark_rtx_varray): Delete.
2907         (ggc_mark_tree_varray): Delete.
2908         (ggc_mark_rtx_varray_ptr): Delete.
2909         (ggc_mark_tree_varray_ptr): Delete.
2910         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
2911         (create_varray): Delete prototype.
2912         * gengtype.c (varrays): Delete.
2913         (create_varray): Delete.
2914         (adjust_field_type): Detect array of string pointers.
2915         (process_gc_options): Remove code to handle varray_type option.
2916         (set_gc_used_type): Remove TYPE_VARRAY case.
2917         (output_escaped_param): New.
2918         (write_gc_structure_fields): Use output_escaped_param on all
2919         parameters.  Handle 'skip' with 'use_param' option.  Handle
2920         arrays of strings.  Remove TYPE_VARRAY handling.
2921         (write_gc_roots): Use boolean to detect 'length' option.
2922         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
2923         (struct_fields): Call adjust_field_type on array fields.
2924         (type): Remove VARRAY_TYPE case.
2925         (type_option): Likewise.
2926         * gengtype-lex.l: Don't consider varray_type a keyword.
2927         * function.h: Update for change to length specifier.
2928         (free_eh_status): Delete prototype.
2929         * function.c (free_after_compilation): Don't call free_eh_status.
2930         (reorder_blocks): Don't use VARRAY_FREE.
2931         * except.c (struct eh_status): Update for change to length specifier.
2932         remove varray_type specifier.
2933         (free_eh_status): Delete.
2934         * dwarf2out.c: Include gt-dwarf2out.h.
2935         (used_rtx_varray): Use gengtype to mark, move
2936         outside ifdefs.
2937         (incomplete_types): Likewise.
2938         (decl_scope_table): Likewise.
2939         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
2940         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
2941         * c-tree.h (struct lang_type): Update for change to length specifier.
2942         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
2943         * c-objc-common.c: Include gt-c-objc-common.h.
2944         (deferred_fns): Mark for gengtype.
2945         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
2946         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
2947         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
2948         (gtype-desc.o): Update dependencies.
2949         (dwarf2out.o): Add gt-dwarf2out.h.
2950         (varray.o): Update dependencies.
2951         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
2952         (gt-c-objc-common.h): New rule.
2953         (gt-dwarf2out.h): New rule.
2954         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
2955
2956         * doc/gty.texi (GTY Options): Correct spelling.
2957         (GGC Roots): Likewise.
2958         * Makefile.in (TEXI_CPP_FILES): New.
2959         (TEXI_GCC_FILES): New.
2960         (TEXI_GCCINT_FILES): New.
2961         (TEXI_CPPINT_FILES): New.
2962         ($(docdir)/cpp.info): Use new macros.
2963         ($(docdir)/gcc.info): Likewise.
2964         ($(docdir)/gccint.info): Likewise.
2965         ($(docdir)/cppinternals.info): Likewise.
2966         (cpp.dvi): Likewise.
2967         (gcc.dvi): Likewise.
2968         (gccint.dvi): Likewise.
2969         (cppinternals.dvi): Likewise.
2970
2971         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
2972         * doc/gccint.texi (Top): Include gty.texi.
2973         * doc/gty.texi: New file.
2974
2975         * bitmap.c: Include ggc.h, gt-bitmap.h.
2976         (bitmap_ggc_free): New.
2977         (bitmap_elem_to_freelist): New.
2978         (bitmap_element_free): Use bitmap_elem_to_freelist.
2979         (bitmap_element_allocate): Allow use of GGC.
2980         (bitmap_clear): Use bitmap_elem_to_freelist.
2981         (bitmap_copy): Update for change to bitmap_element_allocate.
2982         (bitmap_set_bit): Likewise.
2983         (bitmap_operation): Update for changes elsewhere.
2984         (bitmap_initialize): Allow to create bitmaps that will use GGC.
2985         * bitmap.h (struct bitmap_element_def): Use gengtype.
2986         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
2987         (bitmap_initialize): Add extra parameter.
2988         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
2989         (BITMAP_ALLOCA): Delete.
2990         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
2991         (BITMAP_GGC_ALLOC): New.
2992         * Makefile.in (gtype-desc.o): Add bitmap.h.
2993         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
2994         (GTFILES): Add bitmap.c.
2995         (gt-bitmap.h): New rule.
2996         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
2997         * basic-block.h: Update for changes to bitmap_initialize.
2998         * except.c (exception_handler_label_map): Move into...
2999         (struct eh_status): Here.
3000         (struct eh_region): Make 'aka' GCable.
3001         (free_eh_status): Don't need to specially handle
3002         exception_handler_label_map.
3003         (add_ehl_entry): Update for changes to exception_handler_label_map.
3004         (find_exception_handler_labels): Likewise.
3005         (remove_exception_handler_label): Likewise.
3006         (maybe_remove_eh_handler): Likewise.
3007         (for_each_eh_label): Likewise.
3008         (remove_eh_handler): Allocate 'aka' using GGC.
3009         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
3010         to list of includes.
3011
3012         * gengtype.c (write_gc_marker_routine_for_structure): Name
3013         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
3014         (write_gc_types): Arrange for the tests with NULL to be inlined.
3015         (write_gc_roots): Update uses of procedure pointers.
3016         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
3017
3018         * Makefile.in (explow.o): Add dependency on gt-explow.h.
3019         (sdbout.o): Add dependency on gt-sdbout.h.
3020
3021         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
3022         (mem_attrs_htab): Likewise.
3023         (init_emit_once): Don't call ggc_add_deletable_htab.
3024         * fold-const.c (size_htab): Use gengtype to clear unused entries.
3025         (size_int_type_wide): Don't call ggc_add_deletable_htab.
3026         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
3027         parameters, use them, change callers.
3028         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
3029         (write_gc_roots): Handle 'if_marked' option.
3030         (main): Don't need to call set_gc_used_type any more.
3031         * ggc.h (ggc_htab_marked_p): Delete.
3032         (ggc_htab_mark): Delete.
3033         (struct ggc_cache_tab): New.
3034         (gt_ggc_cache_rtab): New declaration.
3035         * ggc-common.c (struct d_htab_root): Delete.
3036         (d_htab_roots): Delete.
3037         (ggc_add_deletable_htab): Delete.
3038         (ggc_htab_delete): Handle new htab-deleting mechanism.
3039         (ggc_mark_roots): Use new htab-deleting mechanism.
3040         * tree.c (type_hash_table): Use gengtype to clear unused entries.
3041         Make static.
3042         (init_obstacks): Don't call ggc_add_deletable_htab.
3043
3044         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
3045         (struct hashed_entry): Likewise.
3046         (nst_method_hash_list): Likewise.
3047         (cls_method_hash_list): Likewise.
3048         (HASH_ALLOC_LIST_SIZE): Delete.
3049         (ATTR_ALLOC_LIST_SIZE): Delete.
3050         * objc/objc-act.c (hash_init): Use ggc to allocate
3051         nst_method_hash_list, cls_method_hash_list.
3052         (hash_enter): Use ggc to allocate; allocate one entry at a time.
3053         (hash_add_attr): Likewise.
3054         (ggc_mark_hash_table): Delete.
3055         (objc_act_parse_init): Delete.
3056         (objc_init): Delete reference to objc_act_parse_init.
3057         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
3058         obstack.h.  Replace references to 'struct hash_table' with htab_t.
3059         (struct symbol_hash_entry): Replace hash header with key field.
3060         (struct file_hash_entry): Replace hash header with key field.
3061         (struct demangled_hash_entry): Replace hash header with key field.
3062         (hash_string_eq): New.
3063         (hash_string_hash): New.
3064         (symbol_hash_newfunc): Delete.
3065         (symbol_hash_lookup): Modify to use htab_t.
3066         (file_hash_newfunc): Delete.
3067         (file_hash_lookup): Modify to use htab_t.
3068         (demangled_hash_newfunc): Delete.
3069         (demangled_hash_lookup): Modify to use htab_t.
3070         (tlink_init): Modify to use htab_t.
3071         * hash.h: Delete.
3072         * hash.c: Delete.
3073         * ggc.h: Delete forward structure declarations.
3074         Delete prototypes for deleted functions.
3075         * ggc-common.c: Don't include hash.h.
3076         (ggc_add_tree_hash_table_root): Delete.
3077         (ggc_mark_tree_hash_table_entry): Delete.
3078         (ggc_mark_tree_hash_table): Delete.
3079         (ggc_mark_tree_hash_table_ptr): Delete.
3080         * gengtype.c (write_gc_structure_fields): Allow param_is option.
3081         (write_gc_marker_routine_for_structure): Use visibility of
3082         the parameter if there is one.
3083         * function.c: Replace hash.h with hashtab.h.  Replace references
3084         to 'struct hash_table *' with htab_t.
3085         (struct insns_for_mem_entry): Include a plain key.
3086         (fixup_var_refs_insns_with_hash): Update to use htab_t.
3087         (insns_for_mem_newfunc): Delete.
3088         (insns_for_mem_hash): Update to use htab_t.
3089         (insns_for_mem_comp): Likewise.
3090         (insns_for_mem_walk): Likewise.
3091         * c-lang.c: Include ggc.h.
3092         * Makefile.in (OBJS): Remove hash.o.
3093         (c-lang.o): Add GGC_H.
3094         (COLLECT2_OBJS): Remove hash.o.
3095         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
3096         (ggc-common.o): Remove hash.h.
3097         (function.o): Remove hash.h, add HASHTAB_H.
3098         (genautomata.o): Remove hash.h, add HASHTAB_H.
3099
3100         * varasm.c (mark_const_str_htab_1): Delete.
3101         (mark_const_str_htab): Delete.
3102         (const_str_htab_del): Delete.
3103         (const_str_htab): Use gengtype to mark.
3104         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
3105         allocate them.
3106         * tree.c (mark_tree_hashtable_entry): Delete.
3107         (mark_tree_hashtable): Delete.
3108         * tree.h (mark_tree_hashtable): Delete prototype.
3109         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
3110         (ggc_mark): Likewise.
3111         (ggc_calloc): New.
3112         (htab_create_ggc): New.
3113         * ggc-common.c (ggc_calloc): New.
3114         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
3115         (struct type): Add param_struct structure.
3116         * gengtype.c (param_structs): New.
3117         (adjust_field_type): Handle param_is option.
3118         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
3119         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
3120         (write_gc_structure_fields): Add new PARAM parameter.  Update
3121         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
3122         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
3123         Use it to generate function name.  Update callers.
3124         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
3125         Process them.
3126         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
3127         option.
3128         (main): Define PTR as pointer-to-scalar.  Don't specially
3129         mark deferred_string or ehl_map_entry.
3130         * gengtype-yacc.y (PARAM_IS): Add new token.
3131         (externstatic): Use adjust_field_type.
3132         (type_option): Add PARAM_IS.
3133         * gengtype-lex.l: Add rule for typedef of function pointers.
3134         Add rule for PARAM_IS.
3135         (IWORD): Add size_t.
3136         * except.c (exception_handler_label_map): Use gengtype to mark.
3137         (type_to_runtime_map): Likewise.
3138         (mark_ehl_map_entry): Delete.
3139         (mark_ehl_map): Delete.
3140         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
3141         (t2r_mark_1): Delete.
3142         (t2r_mark): Delete.
3143         * Makefile.in (gtype-desc.o): Correct dependencies.
3144         (GTFILES): Add hashtab.h.
3145         (genautomata.o): Actually uses hashtab.h.
3146
3147         * Makefile.in (stringpool.o): Add $(GGC_H).
3148         (dwarf2asm.o): Likewise.
3149         (GTFILES): Add hashtable.h.
3150         * c-common.h (struct c_common_identifier): Use gengtype.
3151         * c-decl.h (c_mark_tree): Delete.
3152         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3153         * c-tree.h (struct lang_identifier): Use gengtype.
3154         (union lang_tree_node): New.
3155         (c_mark_tree): Delete prototype.
3156         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
3157         dwarf2_debug_hooks.
3158         * gengtype-lex.l (IWORD): Allow 'bool'.
3159         (ptr_alias): Match.
3160         * gengtype-yacc.y (ALIAS): New token.
3161         (type_option): New rule.
3162         (option): Use type_option.
3163         * gengtype.c (process_gc_options): New.
3164         (set_gc_used_type): Use it.
3165         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
3166         Add new variable 't' to hold the type of the field being processed.
3167         Add more error checking.  Use UNION_P when looking at 'desc' option.
3168         Handle language-specific structures containing other
3169         language-specific structures.
3170         (write_gc_types): Handle 'ptr_alias' option.
3171         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
3172         * ggc-common.c (ggc_pending_trees): Delete.
3173         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
3174         (ggc_mark_trees): Delete.
3175         (gt_ggc_m_tree_node): Delete.
3176         * ggc.h (ggc_pending_trees): Delete.
3177         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
3178         * hashtable.h (ht_identifier): Use gengtype.
3179         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
3180         * langhooks.h (struct lang_hooks): Delete mark_tree.
3181         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
3182         anyway.
3183         * system.h: Poison LANG_HOOKS_MARK_TREE.
3184         * tree.c (tree_node_structure): New.
3185         * tree.h (struct tree_common): Use gengtype.
3186         (struct tree_int_cst): Likewise.
3187         (struct tree_real_cst): Likewise.
3188         (struct tree_string): Likewise.
3189         (struct tree_complex): Likewise.
3190         (struct tree_vector): Likewise.
3191         (struct tree_identifier): Likewise.
3192         (struct tree_list): Likewise.
3193         (struct tree_vec): Likewise.
3194         (struct tree_exp): Likewise.
3195         (struct tree_block): Likewise.
3196         (struct tree_type): Likewise.
3197         (struct tree_decl): Likewise.
3198         (enum tree_structure_enum): New.
3199         (union tree_node): Use gengtype, with an alias.
3200         (tree_node_structure): Prototype.
3201         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3202
3203         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
3204         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
3205         to LANG_HOOKS_FUNCTION_FINAL.
3206         * Makefile.in (GTFILES): Add bitmap.h.
3207         * except.c (struct eh_region): Mark field 'aka' to be skipped.
3208
3209         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
3210         (alpha_init_machine_status): Give proper type.
3211         * Makefile.in (c-lang.o): Depend on gtype-c.h.
3212         (optabs.o): Depend on gt-optabs.h.
3213         (GTFILES): Add optabs.o.
3214         (gt-optabs.h): Add rule.
3215         * optabs.c: Include gt-optabs.h.
3216
3217         * gengtype.c (set_gc_used_type): Correct some errors in last change.
3218         (write_gc_structure_fields): If a field which should be NULL is
3219         not, abort.
3220         * c-pragma.c: Move struct align_stack and variable alignment_stack
3221         out from the ifdef.
3222
3223         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
3224         * config/xtensa/xtensa.c: Include gt-cris.h.
3225         (struct machine_function): Use gengtype to mark.
3226         * config/mmix/mmix.h (struct machine_function): Use gengtype
3227         to mark.
3228         * config/cris/t-cris: Add dependencies for gt-cris.h.
3229         * config/cris/cris.c: Include gt-cris.h.
3230         (struct machine_function): Use gengtype to mark.
3231         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
3232         to mark.
3233         * doc/tm.texi (Per-Function Data): Delete references to
3234         mark_machine_status.
3235         * config/ia64/ia64.c (ia64_override_options): Don't set
3236         mark_machine_status.
3237         * config/i386/i386.c (override_options): Likewise.
3238         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
3239         * config/arm/arm.c (arm_init_expanders): Likewise.
3240         * config/alpha/alpha.c (override_options): Likewise.
3241         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
3242         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
3243         (write_gc_structure_fields): Don't handle 'really' option.
3244         Handle 'maybe_null' option.
3245         (write_gc_types): Handle 'maybe_null' option.
3246         * function.h (struct function): Don't use "really".
3247         (mark_machine_status): Delete declaration.
3248         (mark_lang_status): Delete declaration.
3249         (gt_ggc_mr_machine_function): Delete prototype.
3250         (gt_ggc_mr_language_function): Delete prototype.
3251         * function.c (mark_machine_status): Delete.
3252         (mark_lang_status): Delete.
3253         (gt_ggc_mr_machine_function): Delete.
3254         (gt_ggc_mr_language_function): Delete.
3255         * c-tree.h (mark_c_function_context): Delete prototype.
3256         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
3257         * c-decl.c (struct language_function): Rename from struct
3258         c_language_function.  Update uses.  Use gengtype to mark.
3259         (mark_c_function_context): Delete.
3260         * c-common.h (struct c_language_function): Rename from struct
3261         language_function.
3262         (mark_stmt_tree): Delete prototype.
3263         (c_mark_lang_decl): Delete prototype.
3264         (mark_c_language_function): Delete prototype.
3265         * c-common.c (mark_stmt_tree): Delete.
3266         (c_mark_lang_decl): Delete.
3267         (mark_c_language_function): Delete.
3268
3269         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
3270         (lang_bitmap): New typedef.  Use where appropriate.
3271         (struct type): Add gc_used field, lang_struct field.
3272         (UNION_P): New macro.
3273         (new_structure): New prototype.
3274         (find_structure): Remove 'pos' parameter.  Change all callers.
3275         * gengtype-lex.l: Update for changes to find_structure.
3276         * gengtype-yacc.y (typedef_struct): Use new_structure.
3277         (yacc_ids): Suppress warning.
3278         (type): Use new_structure.
3279         * gengtype.c (string_type): Update for changes to struct type.
3280         (find_structure): Just find a structure, don't worry about
3281         creating one.
3282         (new_structure): New.
3283         (note_yacc_type): Use new_structure.
3284         (set_gc_used_type): New.
3285         (set_gc_used): New.
3286         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
3287         (write_gc_types): Handle TYPE_LANG_STRUCT.
3288         (write_gc_marker_routine_for_structure): New.
3289         (main): Call set_gc_used.  Add some calls to set_gc_used_type
3290         for places where GCC doesn't use gengtype properly yet.
3291         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
3292         (gt_ggc_m_tree_node): Likewise.
3293
3294         * varasm.c (copy_constant): Call expand_constant if we hit
3295         something we can't recognise.
3296
3297         * ggc-common.c (ggc_mark_rtvec_children): Delete.
3298         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
3299         (lang_mark_false_label_stack): Delete.
3300         * rtl.h (struct rtvec_def): Use gengtype to mark.
3301         * ggc.h (ggc_mark_rtvec): Delete.
3302         (gt_ggc_m_rtvec_def): Delete.
3303         (ggc_mark_nonnull_tree): Delete.
3304         (ggc_mark_rtvec_children): Delete prototype.
3305         (lang_mark_false_label_stack): Delete declaration.
3306
3307         * gengtype.h (note_yacc_type): Add prototype.
3308         * gengtype.c (note_yacc_type): New function.
3309         * gengtype-lex.l: Add lexer support for yacc files.
3310         * gengtype-yacc.y (start): Extract union from yacc files.
3311         (yacc_union): New rule.
3312         (yacc_typematch): New rule.
3313         (yacc_ids): New rule.
3314         (enum_items): Tweak for efficiency.
3315         (optionseq): Likewise.
3316
3317         * c-common.h (struct language_function): Use gengtype.
3318         (struct c_lang_decl): Likewise.
3319         * c-tree.h (struct lang_decl): Likewise.
3320         (struct lang_type): Likewise.
3321         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
3322         tree language substructures.
3323
3324         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
3325         ggc_mark_tree.
3326         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
3327
3328         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
3329
3330         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
3331         mark. Remove 'data.block.cleanup_ptr' field.
3332         (struct stmt_status): Use usual technique to mark struct nesting.
3333         (gt_ggc_mr_nesting_cond): Delete.
3334         (gt_ggc_mr_nesting_loop): Delete.
3335         (gt_ggc_mr_nesting_block): Delete.
3336         (gt_ggc_mr_nesting_case_stmt): Delete.
3337         (expand_start_cond): Set discriminator.
3338         (expand_start_loop): Likewise.
3339         (expand_start_null_loop): Likewise.
3340         (expand_start_bindings_and_block): Set discriminator.  Don't set
3341         deleted fields.
3342         (expand_decl_cleanup): Replace 'cleanup_ptr' with
3343         &thisblock->data.block.cleanups.
3344         (expand_start_case): Set discriminator.
3345         (expand_start_case_dummy): Set discriminator.
3346
3347         * ggc-callbacks.c: Remove.
3348
3349         * gengtype.h (struct type): Add 'u.s.bitmap' field.
3350         (find_structure): Add 'pos' parameter.
3351         * gengtype-lex.l: Update callers to find_structure.
3352         * gengtype-yacc.y: Likewise.
3353         * gengtype.c (find_structure): Allow for structures to be defined
3354         in multiple language backends.
3355         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
3356         (counter): Rename to gc_counter.
3357         (write_gc_structure_fields): Fail when writing out fields for
3358         an incomplete structure.  Ignore arrays of scalars.  Handle
3359         'tree_vec' special.
3360         (write_gc_types): Reset counter for each procedure written.
3361
3362         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
3363         (free_case_nodes): Delete.
3364         (expand_end_case_type): Delete call to free_case_nodes.
3365
3366         * Makefile.in (cselib.o): Include gt-<filename>.h.
3367         (gcse.o): Likewise.
3368         (profile.o): Likewise.
3369         (alias.o): Likewise.
3370         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
3371         alphabetize backend files.
3372         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
3373         * alias.c: Use gengtype for roots.
3374         * c-common.h (struct stmt_tree_s): Use gengtype.
3375         * c-decl.c: Use gengtype for roots.
3376         * cselib.c: Use gengtype for roots.
3377         * expr.c: Use gengtype for roots.
3378         * fold-const.c: Use gengtype for roots.
3379         * gcse.c: Use gengtype for roots.
3380         * gengtype-lex.l: Handle typedefs of function types.
3381         Allow for empty array bounds.
3382         Allow processing to stop on initialisers.
3383         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
3384         (semiequal): New rule.
3385         * gengtype.c (create_file): Tidy output files.
3386         (get_output_file_with_visibility): Fix paren warning.  Fix bug
3387         involving multiple input files mapping to one output file.
3388         (write_gc_structure_fields): Skip arrays of scalars.
3389         (write_gc_types): Tidy output files.
3390         (write_gc_root): New function.
3391         (write_gc_roots): Fix bugs, add support for roots that are
3392         structures.
3393         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
3394         (ggc_mark_tree_ptr): Delete.
3395         (ggc_add_rtx_root): Delete.
3396         (ggc_add_tree_root): Delete.
3397         (ggc_del_root): Delete.
3398         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
3399         allocate struct initial_value_struct.
3400         * profile.c: Use gengtype for roots.
3401         * sdbout.c: Use gengtype for roots.
3402         * varasm.c (mark_weak_decls): Delete unused prototype.
3403         (mark_const_hash_entry): Delete unused function.
3404         * config/darwin-protos.h: Use gengtype for roots.
3405         (machopic_add_gc_roots): Delete.
3406         * config/arm/arm.c: Use gengtype for roots.
3407         * config/arm/arm.h: Use gengtype for roots.
3408         * config/c4x/c4x-protos.h: Use gengtype for roots.
3409         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
3410         * config/d30v/d30v-protos.h: Use gengtype for roots.
3411         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
3412         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
3413         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
3414         * config/ia64/ia64-protos.h: Use gengtype for roots.
3415         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
3416         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
3417         * config/m68hc11/m68hc11.c (z_reg): Make global.
3418         (z_reg_qi): Make global.
3419         (m68hc11_add_gc_roots): Delete.
3420         * config/mcore/mcore-protos.h: Use gengtype for roots.
3421         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
3422         * config/mips/mips.c (mips_add_gc_roots): Delete.
3423         * config/mips/mips.h: Use gengtype for roots.
3424         * config/mmix/mmix.c (override_options): Use gengtype for roots.
3425         * config/mmix/mmix.h: Use gengtype for roots.
3426         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
3427         * config/mn10200/mn10200.h: Use gengtype for roots.
3428         * config/pa/pa.c: Use gengtype for roots, marking.
3429         (struct deferred_plabel): Use GGC, gengtype.
3430         (pa_add_gc_roots): Delete.
3431         (mark_deferred_plabels): Delete.
3432         * config/pj/pj-protos.h: Use gengtype for roots.
3433         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
3434         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
3435         machopic_add_gc_roots.
3436         * config/rs6000/rs6000.h: Use gengtype for roots.
3437         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
3438         (gt-darwin.h): Add rule.
3439         * config/sh/sh.c: Use gengtype for roots.
3440         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
3441         (gt-sh.h): Add rule.
3442         * config/sparc/sparc.c: Use gengtype for roots.
3443         (sparc_add_gc_roots): Delete.
3444         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
3445         (mark_ultrasparc_pipeline_state): Delete.
3446         * config/sparc/sparc.h: Use gengtype for roots.
3447
3448         * Makefile.in (c-parse.o): Update dependencies.
3449         (c-common.o): Likewise.
3450         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
3451         Add dependencies for the files they generate.
3452         * c-common.c: Replace ggc_add_* uses with GTY annotations.
3453         * c-common.h: Likewise.
3454         * c-decl.c: Likewise.
3455         (gt_ggc_mp_binding_level): Delete.
3456         * c-lang.c: Include gtype-c.h.
3457         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
3458         gt-c-parse.h.
3459         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
3460         (gt_ggc_mp_align_stack): Delete.
3461         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
3462         * function.c: Replace ggc_add_* uses with GTY annotations.
3463         (gt_ggc_mp_function): Delete.
3464         * function.h: Replace ggc_add_* uses with GTY annotations.
3465         * gengtype.c (lang_names): New.
3466         (NUM_BASE_FILES): New.
3467         (open_base_files): Create language base files.
3468         (startswith): New.
3469         (get_file_basename): New.
3470         (get_base_file_bitmap): New.
3471         (get_output_file_with_visibility): Rename from get_output_file.
3472         Add more mappings for various C/Objc filenames.
3473         (finish_root_table): New.
3474         (write_gc_roots): Handle dependencies and scoping properly.
3475         * gengtype.h: Add prototypes for new functions.
3476         * ggc-common.c (struct deletable_root): Delete.
3477         (deletables): Delete.
3478         (ggc_add_deletable_root): Delete.
3479         (ggc_mark_roots): No need to deal with deleted functionality.
3480         * ggc.h (ggc_add_deletable_root): Delete prototype.
3481         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
3482         (gtype-objc.h): Add rule to create.
3483         * objc/config-lang.in (gtfiles): New.
3484         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
3485         ggc_add_* with GTY markers.  Include gtype-objc.h.
3486         (ggc_mark_imp_list): Delete.
3487         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
3488         * objc/objc-lang.c: Random Whitespace Change.
3489
3490         * except.h (exception_handler_labels): Delete.
3491         (get_exception_handler_labels): New.
3492         * except.c (exception_handler_labels): Delete.
3493         (struct eh_status): Add exception_handler_labels field.
3494         (doing_eh): Don't add exception_handler_labels as root.
3495         (free_eh_status): Don't need to free exception_handler_labels.
3496         (get_exception_handler_labels): New.
3497         (find_exception_handler_labels): Update for move of
3498         exception_handler_labels.
3499         (remove_exception_handler_label): Likewise.
3500         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
3501         * jump.c (rebuild_jump_labels): Likewise.
3502         * loop.c (find_and_verify_loops): Likewise.
3503         * sched-rgn.c (is_cfg_nonregular): Likewise.
3504
3505         * gengtype.c (write_gc_structure_fields): Handle variable-length
3506         TYPE_ARRAYs.
3507
3508         * varasm.c (struct weak_syms): Use GGC, gengtype.
3509         (mark_weak_decls): Delete.
3510         (weak_decls): Likewise.
3511         (add_weak): Likewise.
3512         (remove_from_pending_weak_list): Likewise.
3513         (init_varasm_once): Likewise.
3514
3515         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
3516         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
3517         stor-layout.c, regclass.c, and lists.c.
3518         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
3519         gt-regclass.h and gt-lists.h on s-gtype.
3520         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
3521         * except.c: Use gengtype for roots.
3522         * explow.c: Use gengtype for roots.  Include gt-explow.h.
3523         * expr.h (init_stor_layout_once): Delete prototype.
3524         * function.c: Use gengtype for roots.
3525         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
3526         * gengtype-yacc.y (start): Can also be an externstatic.
3527         (externstatic): New production.
3528         (struct_fields): Correct array bounds inversion for 2-d arrays.
3529         * gengtype.c (variables): New variable.
3530         (note_variable): New function.
3531         (get_output_file): Include libfuncs.h into gtype-desc.c.
3532         (get_output_file_name): New function.
3533         (write_gc_structure_fields): Suppress warnings.
3534         (write_gc_types): Make static.
3535         (put_mangled_filename): New function.
3536         (write_gc_roots): New function.
3537         (main): Call write_gc_roots.
3538         * gengtype.h (note_variable): Prototype.
3539         (get_output_file_name): Prototype.
3540         (write_gc_types): Delete prototype.
3541         * ggc.h: Clean up unnecessary structure predefinitions.
3542         (struct ggc_root_tab): Define.
3543         (gt_ggc_m_rtx_def): Make function, not macro.
3544         (gt_ggc_m_tree_node): Likewise.
3545         * libfuncs.h: Use gengtype for roots.
3546         * lists.c: Use gengtype for roots.  Include gt-lists.h.
3547         (init_EXPR_INSN_LIST_cache): Delete.
3548         * optabs.c: Use gengtype for roots.
3549         (gt_ggc_mp_optab): Delete.
3550         * optabs.h: Use gengtype for roots.
3551         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
3552         * rtl.h: Use gengtype for roots.
3553         (init_EXPR_INSN_LIST_cache): Delete prototype.
3554         * stor-layout.c: Use gengtype for roots.
3555         Include gt-stor-layout.h.
3556         (init_stor_layout_once): Delete.
3557         * toplev.c: Use gengtype for roots.  Delete calls to deleted
3558         routines.
3559         * tree.c: Use gengtype for roots.
3560         * tree.h: Use gengtype for roots.
3561         * varasm.c: Use gengtype for roots.
3562
3563         * Makefile.in (GTFILES): Add @all_gtfiles@.
3564         * configure: Regenerate.
3565         * configure.in: Construct all_gtfiles from the gtfiles definitions
3566         in config-lang.in.
3567         * gengtype-yacc.y (type): Warn about duplicate structure names.
3568         * gengtype.c (get_output_file): Handle .c files in language
3569         subdirectories.
3570
3571         * Makefile.in (GTFILES): Run gengtype on all the config files
3572         and on the target .c file.
3573         * except.c (mark_eh_region): Delete.
3574         (init_eh_for_function): Use GGC on struct eh_status.
3575         (mark_eh_status): Delete.
3576         (free_eh_status): Use GGC.
3577         (expand_eh_region_start): Use GGC to
3578         (collect_eh_region_array): Allocate last_region_number using GGC.
3579         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
3580         (remove_eh_handler): Let GGC free struct eh_region.
3581         (add_call_site): Use GGC to reallocate call_site_record array.
3582         * function.c (init_machine_status): Update calling sequence.
3583         (mark_machine_status): Likewise.
3584         (mark_lang_status): Likewise.
3585         (prepare_function_start): Update init_machine_status call.
3586         (mark_function_status): Delete.
3587         (maybe_mark_struct_function): Delete.
3588         (ggc_mark_struct_function): Delete.
3589         (gt_ggc_mp_function): New.
3590         (gt_ggc_mr_machine_function): New.
3591         (gt_ggc_mr_language_function): New.
3592         (init_function_once): Use canonical names.
3593         * function.h (struct function): Use gengtype.
3594         (init_machine_status): Return the structure.
3595         (mark_machine_status): Take a 'void *'.
3596         (mark_lang_status): Likewise.
3597         * ggc-common.c (ggc_mark_trees): Use canonical name for
3598         ggc_mark_struct_function.
3599         * tree.h (ggc_mark_struct_function): Delete prototype.
3600         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
3601         (alpha_init_machine_status): Likewise.
3602         (override_options): Use canonical name for alpha_mark_machine_status.
3603         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
3604         * config/arm/arm.h (struct machine_function): Use gengtype.
3605         * config/arm/arm.c (arm_mark_machine_status): Delete.
3606         (arm_init_machine_status): Update calling sequence.
3607         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
3608         * config/cris/cris.c (cris_init_machine_status): Update
3609         calling sequence.
3610         * config/d30v/d30v.h (struct machine_function): Use gengtype.
3611         * config/d30v/d30v.c (d30v_init_machine_status): Update
3612         calling sequence.
3613         (d30v_mark_machine_status): Delete.
3614         * config/i386/i386.c: Include gt-i386.h.
3615         (struct machine_function): Use gengtype.
3616         (ix86_init_machine_status): Update calling sequence.
3617         (ix86_mark_machine_status): Delete.
3618         (override_options): Use canonical namke for ix86_mark_machine_status.
3619         * config/ia64/ia64.h (struct machine_function): Use gengtype.
3620         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
3621         sequence.
3622         (ia64_mark_machine_status): Delete.
3623         (ia64_override_options): Use canonical name for
3624         ia64_mark_machine_status.
3625         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
3626         sequence.
3627         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
3628         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3629         * gengtype.c (get_output_file): Fix warning.
3630         (main): Add prototype to suppress warning.
3631         * tree.c: Remove tree_hash_mark prototype.
3632
3633         * tree.h (init_stmt): Delete prototype.
3634         * toplev.c (lang_independent_init): Don't call init_stmt.
3635         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
3636         (stmt_obstack): Delete.
3637         (POPSTACK): No need to free 'struct nesting'.
3638         (gt_ggc_mr_nesting_cond): Use canonical names.
3639         (gt_ggc_mr_nesting_loop): Use canonical names.
3640         (gt_ggc_mr_nesting_block): Use canonical names.
3641         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
3642         (mark_stmt_status): Delete.
3643         (init_stmt): Delete.
3644         (clear_last_expr): Clear both last_expr_type and last_expr_value.
3645         Use it everywhere that last_expr_type was cleared.
3646         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
3647         (zap_lists): Delete.
3648         * ggc.h (ggc_add_deletable_root): Prototype.
3649         (mark_stmt_status): Remove prototype.
3650         * ggc-common.c (ggc_add_deletable_root): New.
3651         (ggc_mark_roots): Handle deletable roots.
3652         * function.c (ggc_mark_struct_function): Use canonical name
3653         for mark_stmt_status.
3654         * emit-rtl.c (free_sequence_stack): New.
3655         (start_sequence): Use a freelist for sequences.
3656         (end_sequence): Likewise.
3657         (init_emit_once): Add free_sequence_stack as a deleteable root.
3658         * c-pragma.c Include gt-c-pragma.h.
3659         (struct align_stack): Use gengtype.
3660         (push_alignment): Use GGC for struct align_stack.
3661         (mark_align_stack): Delete.
3662         (gt_ggc_mp_align_stack): New.
3663         (init_pragma): Use canonical name for mark_align_stack.
3664         * c-decl.c: Include gt-c-decl.h.
3665         (struct binding_level): Use gengtype.
3666         (make_binding_level): Use GGC; handle the freelist here.
3667         (pop_binding_level): New.
3668         (pushlevel): Move code into make_binding_level.
3669         (push_label_level): Likewise.
3670         (poplevel): Move code into pop_binding_level.
3671         (pop_label_level): Likewise.
3672         (mark_binding_level): Delete.
3673         (gt_ggc_mp_binding_level): New.
3674         (c_init_decl_processing): Use canonical name for mark_binding_level.
3675         Add free_binding_level as deletable root.
3676         (mark_c_function_context): Use canonical name for mark_binding_level.
3677         * Makefile.in (c-decl.o): Add gt-c-decl.h.
3678         (c-pragma.o): Add gt-c-pragma.h.
3679         (GTFILES): Add c-decl.c and c-pragma.c.
3680         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
3681
3682         * tree.c (struct type_hash): Use gengtype.
3683         (init_obstacks): Use canonical name for type_hash_mark.
3684         (type_hash_mark): Delete.
3685         Include gt-tree.h.
3686         * rtl.h (struct mem_attrs): Use gengtype.
3687         * optabs.h (struct optab): Use gengtype.
3688         * optabs.c (expand_binop): Squish signed/unsigned warning.
3689         (mark_optab): Make local, use canonical name, use autogenerated
3690         marker procedure.
3691         (init_optabs): Use canonical name for mark_optab.
3692         (new_optab): Use GGC to allocate optabs.
3693         * ggc.h: Delete mark_optab prototype.
3694         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
3695         mem_attrs marker procedure.
3696         * gengtype.c (get_output_file): Include headers in gtype-desc.c
3697         explicitly rather than deducing them from file names.
3698         (write_gc_structure_fields): Handle arrays of structures.
3699         (main): Return non-zero exit code if errors occur during output.
3700         * emit-rtl.c (mem_attrs_mark): Delete.
3701         (init_emit_once): Use canonical name for mem_attrs marker procedure.
3702         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
3703         (tree.o): Depend on gt-tree.h.
3704         (GTFILES): Add rtl.h, optabs.h, tree.c.
3705         (gt-tree.h): Add it to s-gtype rule.
3706
3707         * .cvsignore: Ignore gengtype flex/bison generated files.
3708         * Makefile.in (GGC_H): Add gtype-desc.h.
3709         (OBJS): Add gtype-desc.o.
3710         (GEN): Add gengtype.
3711         (STAGESTUFF): Add gengtype.
3712         (varasm.o): Add gt-varasm.h.
3713         (stmt.o): Add gt-stmt.h.
3714         (except.o): Add gt-except.h.
3715         (integrate.o): Add gt-integrate.h.
3716         (GTFILES): New.
3717         Add new rules for new files.
3718         * configure: Regenerate.
3719         * configure.in: Correct defaults.h paths.
3720         * emit-rtl.c (mark_sequence_stack): Delete.
3721         (mark_emit_status): Delete.
3722         (start_sequence): Allocate sequence structures using GGC.
3723         (end_sequence): Allocate sequence structures using GGC.
3724         * except.c: Use gengtype for various structures.  Include
3725         gt-except.h.
3726         * expr.c (mark_expr_status): Delete.
3727         * function.c: Use gengtype for various structures.  Include
3728         gt-function.h.
3729         (mark_function_status): Use standard gt_ggc names for marker functions.
3730         (ggc_mark_struct_function): Likewise.
3731         * function.h: Use gengtype for various structures.
3732         * gengtype-lex.l: New file.
3733         * gengtype-yacc.y: New file.
3734         * gengtype.c: New file.
3735         * gengtype.h: New file.
3736         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
3737         the standard names.  Remove some now-unnecessary prototypes.
3738         * integrate.c: Use gengtype for various structures.  Include
3739         gt-integrate.h.
3740         (mark_hard_reg_initial_vals): Delete.
3741         * integrate.h (mark_hard_reg_initial_vals): Delete.
3742         * stmt.c: Use gengtype for various structures.  Include
3743         gt-stmt.h.
3744         (mark_case_node): Delete.
3745         (mark_goto_fixup): Delete.
3746         (mark_stmt_status): Use standard gt_ggc names for marker functions.
3747         * system.h: Define GTY to empty.   In flex/bison files,
3748         don't poison malloc or realloc, instead just define them to
3749         xmalloc and xrealloc.
3750         * varasm.c: Use gengtype for various structures.  Include
3751         gt-varasm.h.  Use standard gt_ggc names for marker functions.
3752         (mark_pool_constant): Delete.
3753         (mark_varasm_status): Delete.
3754         (decode_rtx_const): #if 0 out non-typesafe hack.
3755
3756         * function.h (free_lang_status): Mark as obsolete.
3757         * function.c (free_lang_status): Mark as obsolete.
3758         * c-decl.c (push_c_function_context): Use GC to allocate and free
3759         struct language_function.
3760         (pop_c_function_context): Likewise.
3761         * c-common.c (mark_c_language_function): Mark struct
3762         language_function.
3763
3764         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
3765         Document that the machine_function structures must be allocated
3766         using GC.  Update mark_machine_status documentation.
3767         * function.h: Don't declare free_machine_status.
3768         * function.c (free_machine_status): Don't define.
3769         (free_after_compilation): Don't call free_machine_status.
3770         (ggc_mark_struct_function): Mark f->machine.  Call
3771         mark_machine_status only on non-NULL pointers.
3772         * system.h: Poison free_machine_status.
3773         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
3774         struct machine_function.
3775         (xtensa_free_machine_status): Delete.
3776         (override_options): Don't set free_machine_status.
3777         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
3778         free_machine_status.
3779         (rs6000_init_machine_status): Use GC on struct machine_function.
3780         (rs6000_free_machine_status): Delete.
3781         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
3782         machine_function.
3783         (ia64_mark_machine_status): Likewise.
3784         (ia64_free_machine_status): Delete.
3785         (ia64_override_options): Don't set free_machine_status.
3786         * config/i386/i386.c (override_options): Don't set
3787         free_machine_status.
3788         (ix86_init_machine_status): Use GC on struct machine_function.
3789         (ix86_mark_machine_status): Likewise.
3790         (ix86_free_machine_status): Delete.
3791         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
3792         machine_function.
3793         (d30v_mark_machine_status): Likewise.
3794         (d30v_free_machine_status): Delete.
3795         (d30v_init_expanders): Don't set free_machine_status.
3796         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
3797         machine_function.
3798         (arm_init_machine_status): Likewise.
3799         (arm_free_machine_status): Delete.
3800         (arm_init_expanders): Don't set free_machine_status.
3801         * config/alpha/alpha.c (override_options): Don't set
3802         free_machine_status.
3803         (alpha_init_machine_status): Use GC on struct machine_function.
3804         (alpha_mark_machine_status): Likewise.
3805         (alpha_free_machine_status): Delete.
3806
3807         * varasm.c (compare_constant): Fix typo.
3808
3809         * varasm.c: Don't include obstack.h.
3810         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
3811         (struct rtx_const): Give substructures names, improve formatting.
3812         (struct constant_descriptor): Delete.
3813         (struct constant_descriptor_tree): New, based on constant_descriptor.
3814         (const_hash_table): Is a hash table of trees.
3815         (mark_const_hash_entry): Is used for hashes of trees.  Mark
3816         constant_descriptor_tree structure.
3817         (mark_const_str_htab_1): Mark deferred_string structure.
3818         (compare_constant): Rewrite to compare trees.
3819         (compare_constant_1): Delete.
3820         (record_constant): Delete.
3821         (record_constant_1): Delete.
3822         (output_constant_def): Use struct constant_descriptor_tree.
3823         Don't duplicate trees twice.
3824         (struct constant_descriptor_rtx): New.
3825         (struct pool_constant): Used for rtx constants.
3826         (init_varasm_status): Update for change to struct varasm_status.
3827         (mark_varasm_status): Likewise.
3828         (free_varasm_status): Delete.
3829         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
3830         (record_constant_rtx): Likewise.
3831         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
3832         (force_const_mem): Likewise.
3833         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
3834         * function.c (free_after_compilation): Don't use free_varasm_status.
3835         * function.h: Don't prototype free_varasm_status.
3836
3837         * ggc-common.c (ggc_realloc): Handle X being NULL.
3838
3839         * ggc-common.c (ggc_realloc): New function.
3840         * ggc.h: Prototype it.
3841         * emit-rtl.c (free_emit_status): Delete.
3842         (init_emit): Allocate emit subarrays using GC.
3843         (gen_reg_rtx): Reallocate subarrays using GC.
3844         (init_emit): Use GC to allocate 'struct emit_status' and its
3845         subarrays.
3846         (mark_emit_status): Mark structure and its subarrays.
3847         * stmt.c (free_stmt_status): Delete.
3848         * expr.c (free_expr_status): Delete.
3849         * function.h: Remove prototypes for deleted functions.
3850         * function.c (free_after_compilation): Don't use deleted functions.
3851         Don't call free() on x_parm_reg_stack_loc.
3852         (free_after_parsing): Don't use free_stmt_status.
3853         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
3854         (mark_function_status): Mark x_parm_reg_stack_loc.
3855
3856         * varasm.c (init_varasm_status): Use GC to allocate
3857         'struct varasm_status' and its fields x_const_rtx_hash_table
3858         and x_const_rtx_sym_hash_table.
3859         (mark_varasm_status): Mark them.
3860         (free_varasm_status): Use GC to free them.
3861         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
3862         (mark_expr_status): Mark the structure itself.
3863         (free_expr_status): Use GC to free the structure.
3864         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
3865         (mark_stmt_status): Mark the 'struct stmt_status' itself.
3866         (init_stmt_for_function): Allocate the structure for GC.
3867
3868         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
3869         (equate_type_number_to_die): Likewise.
3870         * tree.h (TYPE_SYMTAB_DIE): New macro.
3871         (struct die_struct): Predeclare.
3872         (struct tree_type): Add field symtab.die.   Add a tag
3873         to the union type of field symtab.
3874
3875         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
3876         'struct rtvec_def *', not 'struct rtvec_def'.
3877
3878         * function.h (original_arg_vector): Make a real rtvec.
3879         * function.c (ggc_mark_struct_function): Adjust.
3880         * integrate.c (expand_inline_function): Adjust.
3881
3882 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
3883
3884         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
3885         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
3886         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
3887         (TARGET_VERSION_CPU): Define according to the
3888         default target.
3889         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
3890         TARGET_VERSION_CPU.
3891         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
3892         if TARGET_SHMEDIA64.
3893         (LINK_DEFAULT_CPU_EMUL): Define according to the
3894         default target.
3895         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
3896         (SUBTARGET_LINK_SPEC): Define.
3897         (LINK_SPEC): Use SH_LINK_SPEC.
3898         (ASM_SPEC): Remove.
3899         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
3900         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
3901         and TARGET_SHMEDIA64 which abort, for now.
3902         * config/sh/t-netbsd-sh5: New file.
3903         * config/sh/t-netbsd-sh5-32: New file.
3904         * config/sh/t-netbsd-sh5-64: New file.
3905
3906 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
3907             Richard Henderson  <rth@redhat.com>
3908
3909         * config/alpha/alpha.c (reg_or_const_int_operand): New.
3910         (some_operand, input_operand): Accept CONST_VECTOR.
3911         (alpha_extra_constraint): Add 'W'.
3912         (alpha_expand_zap_mask): New.
3913         (alpha_expand_builtin_vector_binop): New.
3914         (enum alpha_builtin): New.
3915         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
3916         (alpha_init_builtins, alpha_expand_builtin): New.
3917         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
3918         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
3919         (PREDICATE_CODES): Update.
3920         * config/alpha/alpha-protos.h: Update.
3921         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
3922         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
3923         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
3924         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
3925         (movv2si, movv2si_fix, movv2si_nofix): New.
3926         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
3927         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
3928         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
3929         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
3930         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
3931         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
3932         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
3933         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
3934         builtin_unpkbw, unpkbw): New.
3935         * doc/extend.texi (Alpha Built-in Functions): New.
3936
3937 2002-06-03  Richard Henderson  <rth@redhat.com>
3938
3939         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
3940         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
3941
3942 2002-06-03  Richard Henderson  <rth@redhat.com>
3943
3944         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
3945
3946         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
3947         (const0_operand): New.
3948         (reg_or_fp0_operand, fp0_operand): Remove.
3949         * config/alpha/alpha.h (PREDICATE_CODES): Update.
3950         * config/alpha/alpha-protos.h: Update.
3951         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
3952         and fp0_operand with reg_or_0_operand and const0_operand.
3953
3954 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
3955
3956         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
3957
3958 2002-06-03  Roger Sayle  <roger@eyesopen.com>
3959
3960         * gcse.c (cprop_jump): Use single_set to get the pattern
3961         from the setcc argument.
3962
3963 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
3964
3965         * diagnostic.h (diagnostic_count): Move from output_buffer to
3966         diagnostic_context.
3967         (diagnostic_kind_count): Adjust definition.
3968
3969 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
3970
3971         * except.c (except.c): Do not rebuild CFG.
3972         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
3973         optimization.
3974
3975 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
3976
3977         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
3978         * toplev.c: Include cfglahout.h
3979         * Makefile.in (toplev.c): Add dependnecy.
3980
3981 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
3982
3983         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
3984         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
3985         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
3986
3987 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
3988
3989         * config/ns32k/netbsd.h: Update copyright years.
3990         (TARGET_OS_CPP_BUILTINS): Define.
3991         (CPP_PREDEFINES): Remove.
3992         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
3993         (TARGET_CPU_CPP_BUILTINS): Define.
3994
3995 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
3996
3997         * emit-rtl.c: Fix formatting.
3998         * errors.h: Likewise.
3999         * except.c: Likewise.
4000         * explow.c: Likewise.
4001         * expmed.c: Likewise.
4002         * expr.c: Likewise.
4003         * expr.h: Likewise.
4004
4005 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
4006
4007         * config/h8300/elf.h: Fix formatting.
4008         * config/h8300/rtems.h: Likewise.
4009
4010 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
4011
4012         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
4013
4014 2002-06-02  Tom Tromey  <tromey@redhat.com>
4015
4016         * fixinc/fixincl.x: Rebuilt.
4017         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
4018
4019 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4020
4021 config/i370:
4022         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
4023         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
4024         * mvs.h: Similarly.
4025         * oe.h: Similarly.
4026
4027 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
4028
4029         * final.c (final):  Allow notes to not have computed addresses;
4030         kill no longer needed STACK_REGS ifdef.
4031
4032 2002-06-02  Richard Henderson  <rth@redhat.com>
4033
4034         * gcse.c (bypass_conditional_jumps): Fix typo last change.
4035
4036 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4037
4038         * loop.c (emit_prefetch_instructions): Properly place the address
4039         computation.
4040
4041 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
4042
4043         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
4044         (set_block_for_insn): Turn into macro.
4045         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
4046         * cfglayout.c (insn_scopes): Kill.
4047         (scope_to_insns_initialize): Do not use insn_scopes.
4048         (scope_to_insns_finalize): Likewise.
4049         (duplicate_insn_chain): Likewise.
4050         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
4051         * cfgrtl.c (basic_block_for_insn): Kill.
4052         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
4053         (create_basic_block_structure): Use reorder_insns.
4054         (compute_bb_for_insn): Do not use basic_block_for_insn.
4055         (merge_blocks_nomove): Likewise.
4056         (update_bb_for_insn): Likewise.
4057         (verify_flow_info): Likewise.
4058         (set_block_for_insn): Kill.
4059         * combine.c (try_combine): Update gen_rtx_INSN call.
4060         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
4061         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
4062         scopes and BBs.
4063         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
4064         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
4065         Clear BB.
4066         (emit_insns_after): Simplify.
4067         (emit_copy_of_insn_after): Copy scope.
4068         * final.c (final_start_function): Lower scopes.
4069         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
4070         * integrate.c (copy_insn_list): Cope scopes.
4071         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
4072         * loop.c (loop_optimize): Do not care block notes.
4073         * print-rtl.c (print_rtx): Print BB.
4074         * recog.c (apply_change_group): Simplify.
4075         * rtl.c (copy_rtx): Handle 'B'.
4076         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
4077         * rtl.h (Field accessors): Update indexes.
4078         * sched-ebb.c (schedule_ebbs): Do not lower notes.
4079         * sched-rgn.c (schedule_insns): Likewise.
4080         * toplev.c (rest_of_compilation): Lower notes.
4081         * unroll.c (unroll_loop): Do not care scoping notes.
4082         (copy_loop_body): Copy scopes.
4083
4084 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4085
4086 config/h8300:
4087         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
4088         SUBTARGET_SPEC.
4089         * rtems.h: Similarly.
4090         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
4091         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
4092         (TARGET_CPU_CPP_BUILTINS): Use.
4093
4094 2002-06-02  Richard Henderson  <rth@redhat.com>
4095
4096         * alias.c: Include target.h.
4097         (mark_constant_function): Use targetm.binds_local_p instead
4098         of checking TREE_PUBLIC ourselves.
4099         * Makefile.in (alias.o): Add TARGET_H.
4100
4101 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4102
4103         * c-lex.c: Update copyright and file description.
4104
4105 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4106
4107         * config/fr30/fr30.h: Update to new CPP macros.
4108
4109 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4110
4111         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
4112
4113 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4114             Zack Weinberg <zack@codesourcery.com>
4115
4116         * c-common.c (c_common_init): Override cpplib's default
4117         warn_long_long setting.
4118         * c-lex.c (lex_number): Replace with interpret_integer,
4119         interpret_float, narrowest_unsigned_type and
4120         narrowest_signed_type, taking advantage of the new
4121         cpplib functionality.
4122         * cpperror.c (_cpp_begin_message): If a warning is turned
4123         into an error, avoid printing "warning:".
4124         * cppexp.c (cpp_num_sign_extend): New.
4125         * cppinit.c: Update comment.
4126         * cpplib.h (cpp_num_sign_extend): New.
4127         * tree.h: Update comment.
4128
4129 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
4130
4131         * diagnostic.h (struct diagnostic_context):  Add new member
4132         internal_error.
4133         (internal_error_function): Remove declaration.
4134         * diagnostic.c (internal_error_function): Remove definition..
4135         (internal_error): Adjust use.
4136
4137 2002-06-02  Richard Henderson  <rth@redhat.com>
4138
4139         * rtl.h (CC0_P): New.
4140         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
4141         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
4142         (bypass_block): Save old dest block for dump text.
4143         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
4144         Allow only true SET insns, not single_set.
4145
4146 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
4147
4148         * diagnostic.c (diagnostic_finish): Rename to output_flush.
4149         (clear_disgnostic_info): Rename to output_clear_data.  Use false
4150         instead of 0 for boolean value.
4151         Adjust function call throughout.
4152
4153 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
4154
4155         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
4156         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
4157
4158 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4159
4160         * d30v.h (CPP_PREDEFINES): Replace with
4161         (TARGET_CPU_CPP_BUILTINS): New.
4162
4163 2002-06-02  Roger Sayle  <roger@eyesopen.com>
4164
4165         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
4166
4167 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
4168
4169         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
4170
4171 2002-06-02  Richard Henderson  <rth@redhat.com>
4172
4173         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
4174
4175 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4176
4177         Support for C++ constructors/destructors.
4178         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
4179         instead of looping if main() returns.
4180         (asm_file_start): Output global symbols that cause .data and .bss
4181         initialization code to be linked in, unconditionally for now.
4182         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
4183         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
4184         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
4185         (LIBSTDCXX): New.
4186         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
4187         (__tablejump__): New.
4188         (__do_copy_data, __do_clear_bss): New.
4189         (__do_global_ctors, __do_global_dtors): New.
4190         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
4191         _ctors, _dtors.
4192
4193 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4194
4195         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
4196         (CPP_SPEC, CPP_PREDEFINES): Kill.
4197         * c4x/rtems.h (CPP_PREDEFINES): Kill.
4198         (TARGET_OS_CPP_BUILTINS): New.
4199
4200 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
4201
4202         * Makefile.in (tracer.o): New.
4203         * params.def (TRACER_*): New options.
4204         * rtl.h (tracer): Declare.
4205         * timevar.def (TV_TRACER): New.
4206         * toplev.c (dump_file_index): Add DFI_tracer.
4207         (dump_file_info): Add tracer.
4208         (flag_tracer): New.
4209         (lang_indepdenent_options): Add tracer.
4210         (rest_of_compilation): Call tracer.
4211         * tracer.c: New file.
4212         * invoke.texi (-ftracer): Document.
4213         (--param tracer-*): Document.
4214
4215 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
4216
4217         * tree-inline.c (expand_call_inline): Make the statement
4218         expression we generate have a COMPOUND_STMT.
4219
4220 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4221
4222         * gcse.c (cprop_cc0_jump): Function deleted.
4223         (cprop_jump): Take an additional argument which is the possibly
4224         NULL cc setting insn immediately before the conditional jump.
4225         When a MODE_CC set is present, substitute it into the JUMP_INSN
4226         before attempting the constant propagation.
4227         (cprop_insn):  Recognize cc setters followed by conditional jumps
4228         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
4229         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
4230         (find_bypass_set): New function based upon find_avail_set used by
4231         cprop, but finds constant expressions available at the end of
4232         basic blocks.
4233         (bypass_block): New function.  Given a basic block that begins
4234         with a conditional jump and multiple incoming edges, perform
4235         the jump bypass optimization.
4236         (bypass_conditional_jumps): New function.  Call bypass_block with
4237         each suitable basic block in the CFG using a simple single pass.
4238
4239 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4240
4241         * tree.c (real_minus_onep): New function to test for -1.0.
4242         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
4243
4244 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4245
4246         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
4247         and "!p && !q" into "(p|q) == 0" under suitable conditions.
4248
4249 2002-06-01  Andreas Jaeger  <aj@suse.de>
4250
4251         * cppexp.c (cpp_classify_number): Cast precission to int for
4252         correct printf format.
4253
4254 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4255
4256         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
4257         expected, but don't really exist: atmega83, atmega85, attiny10.
4258         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
4259         emulations for all devices.
4260         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
4261         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
4262
4263 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
4264
4265         * config/h8300/h8300-protos.h: Add a prototype for
4266         h8300_shift_needs_scratch_p.
4267         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
4268         * config/h8300/h8300.h (OK_FOR_R): New.
4269         (OK_FOR_S): Likewise.
4270         (OK_FOR_T): Likewise.
4271         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
4272         * config/h8300/h8300.md (anonymous shift patterns): Use
4273         constraints R, S, and T.
4274
4275 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4276
4277         * basic-block.h (struct basic_block_def): New field loop_father.
4278         (BB_VISITED): New flag.
4279         (struct loop): New field pred, removed field shared.
4280         (struct loops): New field parray.
4281         (LOOP_EXITS_DOMS): Removed.
4282         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
4283         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
4284         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
4285         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
4286         verify_loop_structure): Declare.
4287         * cfg.c (entry_exit_blocks): Initialize loop_father field.
4288         * cfganal.c (dfs_enumerate_from): New function.
4289         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
4290         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
4291         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
4292         flow_loop_dump, flow_loops_dump, flow_loops_free,
4293         flow_loop_tree_node_add, flow_loop_level_compute,
4294         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
4295         flow_loop_outside_edge_p): Modified for new infrastructure.
4296         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
4297         redirect_edge_with_latch_update, flow_loop_free): New static functions.
4298         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
4299         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
4300         find_common_loop, verify_loop_structure, loop_latch_edge,
4301         loop_preheader_edge): New functions.
4302         (flow_loops_cfg_dump): Do not show dominators, as this information
4303         does not remain up to date long.
4304         (flow_loops_find): Store results in new format.
4305         * predict.c (propagate_freq, estimate_probability,
4306         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
4307         infrastructure.
4308
4309 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
4310
4311         * except.c (nothrow_function_p): Walk epilogue delay list
4312         checking the insn, not the chain for potential throws.
4313
4314 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
4315
4316         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
4317         (install): Refer to install-cpp directly.
4318         (uninstall-cpp): Folded into uninstall rule.
4319         * configure.in: Delete all code relating to --disable-cpp.
4320         * configure: Regenerate.
4321         * config/t-install-cpp: Delete.
4322
4323 2002-05-31  Richard Henderson  <rth@redhat.com>
4324
4325         * configure.in (HAVE_AS_TLS): Add alpha tests.
4326         * configure: Rebuild.
4327         * config/alpha/alpha.c (TARGET_AS_TLS): New.
4328         (alpha_tls_size, alpha_tls_size_string): New.
4329         (overide_options): Set it.  Always install machine_status hooks.
4330         (input_operand): Accept got tls predicates.
4331         (local_symbol_p): Merge into ...
4332         (local_symbolic_operand): ... here.  Reject tls symbols.
4333         (global_symbolic_operand): Likewise.
4334         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
4335         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
4336         (tp16_symbolic_operand, tp32_symbolic_operand): New.
4337         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
4338         (alpha_encode_section_info): Handle TLS symbols.
4339         (alpha_strip_name_encoding): Likewise.
4340         (alpha_legitimate_address_p): Likewise.
4341         (alpha_legitimize_address): Likewise.
4342         (alpha_expand_mov): Early exit to avoid nop moves.
4343         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
4344         (alpha_init_machine_status, alpha_mark_machine_status,
4345         alpha_free_machine_status): Always define.
4346         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
4347         (print_operand, print_operand_address): Add TLS relocs.
4348         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
4349         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
4350         (TARGET_SWITCHES): Add -mtls-kernel.
4351         (alpha_tls_size, alpha_tls_size_string): New.
4352         (TARGET_OPTIONS): Add -mtls-size=.
4353         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
4354         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
4355         (ASM_OUTPUT_LABELREF): Skip %.
4356         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
4357         (PREDICATE_CODES): Update.
4358         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
4359         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
4360         UNSPEC_TP, UNSPECV_SET_TP): New.
4361         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
4362         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
4363         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
4364         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
4365         (call_value_osf_2_er): Accept anything as op4.
4366         * config/alpha/alpha-protos.h: Update.
4367         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
4368
4369 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
4370
4371         * cppinit.c (append_include_chain): Always pay attention to
4372         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
4373         marker on argument.
4374
4375 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
4376
4377         * target.h: Fix formatting.
4378         * timevar.h: Likewise.
4379         * tlink.c: Likewise.
4380         * toplev.c: Likewise.
4381         * toplev.h: Likewise.
4382         * tree.c: Likewise.
4383         * tree-dump.h: Likewise.
4384         * tree.h: Likewise.
4385         * tree-inline.h: Likewise.
4386         * unroll.c: Likewise.
4387         * unwind-dw2.c: Likewise.
4388         * unwind-dw2-fde.c: Likewise.
4389         * unwind-dw2-fde-glibc.c: Likewise.
4390         * unwind-dw2-fde.h: Likewise.
4391         * unwind.h: Likewise.
4392         * unwind-sjlj.c: Likewise.
4393         * varasm.c: Likewise.
4394         * varray.h: Likewise.
4395         * vmsdbg.h: Likewise.
4396         * vmsdbgout.c: Likewise.
4397         * xcoffout.h: Likewise.
4398
4399 2002-05-31  Igor Shevlyakov <igor@microunity.com>
4400
4401         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
4402         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
4403
4404 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
4405
4406         * gcc.c (cpp_unique_options): Remove "-d" options.
4407         (cpp_debug_options): New spec string.
4408         (default_compilers): Use it.
4409         * objc/lang-specs.h: Likewise.
4410
4411 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
4412
4413         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
4414         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
4415         * gcc/mklibgcc.in: Likewise.
4416         * gcc/config/arc/t-arc: Likewise.
4417         * gcc/configure.in: Likewise.
4418         * gcc/configure: Regenerate.
4419
4420 2002-05-31  Stan Shebs  <shebs@apple.com>
4421             Turly O'Connor  <turly@apple.com>
4422
4423         * c-decl.c (struct binding_level): Change int field n_incomplete
4424         to tree list incomplete_list.
4425         (clear_binding_level): Init field with NULL.
4426         (pushdecl): Add incomplete type to list.
4427         (mark_binding_level): Mark the incomplete list.
4428         (finish_struct): Scan the incomplete list for types instead
4429         of all decls in the current binding level.
4430
4431 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4432
4433         * pa.c (output_millicode_call): Add missing '%' characters.
4434         (output_call): Likewise.
4435
4436 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
4437
4438         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
4439         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
4440
4441 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
4442
4443         * varasm.c (mark_constant_pool): Walk epilogue delay list
4444         checking the insn, not the chain for potential constants.
4445
4446 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
4447
4448         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
4449
4450 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
4451
4452         * i386.c (classify_argument): Properly handle base types.
4453
4454         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
4455         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
4456         registers.
4457
4458 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4459
4460         * gcse.c (gcse_emit_move_after): New.
4461         (pre_delete, hoist_store): Use it.
4462
4463         * reload1.c (emit_input_reload_insns): Use constrain_operands
4464         instead of constraint_accepts_reg_p to verify optimization.
4465         (constraint_accepts_reg_p): Kill
4466
4467         * reload1.c (reload_cse_delete_noop_set): Kill.
4468         (reload_cse_simplify): use delte_insn_and_edges.
4469
4470 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4471
4472         * cfgloop.c (flow_loops_find): Initialize first and last fields
4473         correctly.
4474
4475 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
4476
4477         * c-common.c (builtin_define_std): Correct logic.
4478
4479 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4480
4481         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
4482         (output_call): Likewise.
4483
4484 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4485
4486         * pa.c: Move output.h include after tree.h include.
4487         (pa_asm_output_mi_thunk): Constify identifier lab.
4488
4489 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4490
4491         * config/ns32k/ns32k.h: Define named constants for the
4492         bits in target_flags and use them.
4493         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
4494
4495 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4496
4497         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
4498         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
4499         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
4500         default scheduling model.
4501         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
4502         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
4503         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
4504         * doc/install.texi (hppa*-*-*): Document default scheduling.
4505
4506 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4507
4508         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
4509
4510 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4511
4512         * config.gcc (ns32k-*-netbsd*): Set tm_file to
4513         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
4514         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
4515         netbsd.h, or netbsd-aout.h.
4516
4517 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4518
4519         * longlong.h (count_trailing_zeros): Add missing \, and clean up
4520         whitespace in __ns32000__ case.
4521
4522 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
4523
4524         * expr.c (expand_expr): Output partially zeroed out vectors with
4525         output_constant_def.
4526
4527 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4528
4529         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
4530         (sh-*-netbsdelf*)
4531         (shl*-*-netbsdelf*): New targets.
4532         * config/sh/netbsd-elf.h: New file.
4533         * config/sh/t-netbsd: New file.
4534
4535 2002-05-30  Richard Henderson  <rth@redhat.com>
4536             Eric Botcazou  <ebotcazou@multimania.com>
4537
4538         PR optimization/6822
4539         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
4540         to unsigned int for op1 comparisons.  Use gen_int_mode.
4541
4542 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
4543
4544         * expmed.c (const_mult_add_overflow_p): New.
4545         * expr.h: Declare it.
4546         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
4547         Don't eliminate the biv if the giv has a constant multiplier and
4548         the rhs argument of the comparison does satisfy the predicate.
4549         Use expand_mult_add to compute the replacement constant.
4550
4551 2002-05-30  Osku Salerma  <osku@iki.fi>
4552
4553         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
4554         (c_common_get_alias_set): Handle it.
4555         * doc/extend.texi: Document it.
4556
4557 2002-05-30  Richard Henderson  <rth@redhat.com>
4558
4559         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4560         * toplev.c (process_options): Don't check it.
4561         * doc/tm.texi: Don't document it.
4562         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
4563         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4564         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
4565         frame pointer optimization if current_function_profile.
4566
4567 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
4568
4569         * langhooks.c: Fix formatting.
4570         * langhooks.h: Likewise.
4571         * lcm.c: Likewise.
4572         * libgcc2.c: Likewise.
4573         * lists.c: Likewise.
4574         * local-alloc.c: Likewise.
4575         * loop.c: Likewise.
4576         * loop.h: Likewise.
4577
4578 2002-05-30  Marc Espie <espie@openbsd.org>
4579
4580         * config.gcc (sparc64-*-openbsd*): New.
4581         * config/sparc/openbsd1-64.h: New.
4582         * config/sparc/openbsd64.h: New.
4583
4584 2002-05-30  Jeff Law <law@redhat.com>
4585
4586         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
4587         a dead insn with a REG_RETVAL note when the entire libcall is not
4588         dead and remove the associated REG_LIBCALL note at the same time.
4589
4590 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
4591
4592         * lcm.c (output.h): #include.
4593         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
4594         as an ordinary block.
4595         (optimize_mode_switching): Don't pretend that the exit block is
4596         an ordinary block, or handle sucessors of entry block specially.
4597         Instead, split edges from entry block and to exit block, and
4598         put a computing definition on the thus gained post-entry-block,
4599         and a need on the pre-exit-block.
4600
4601 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
4602
4603         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
4604         * rtl.texi: Document 'B'
4605
4606 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4607
4608         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
4609         at run-time.
4610         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
4611
4612 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
4613
4614         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
4615         const0_rtx instead of NULL_RTX when in error.
4616         (altivec_expand_abs_builtin): Same.
4617         (rs6000_expand_binop_builtin): Same.
4618         (altivec_expand_predicate_builtin): Same.
4619         (altivec_expand_stv_builtin): Same.
4620         (rs6000_expand_ternop_builtin): Same.
4621         (altivec_expand_builtin): Same.
4622
4623 2002-05-29  David S. Miller  <davem@redhat.com>
4624
4625         * rtl.h (clear_emit_caches): Delete.
4626         * integrate.c (output_inline_function): Don't call it.
4627         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
4628         (clear_emit_caches): Delete definition.
4629         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
4630
4631 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
4632
4633         * config/mmix/mmix.c: Include real.h.
4634         (mmix_constant_address_p): Remove redundant test before switch.
4635
4636 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4637
4638         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
4639         only if not already defined.
4640
4641 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
4642
4643         * config/h8300/h8300-protos.h: Remove prototypes for
4644         ok_for_bclr and small_power_of_two.
4645         * config/h8300/h8300.c (small_power_of_two): Remove.
4646         (ok_for_blcr): Likewise.
4647         (fix_bit_operand): Make WHAT deal with an integer instead of a
4648         constraint character.
4649         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
4650         (CONST_OK_FOR_P): Likewise.
4651         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
4652         CONST_OK_FOR_P any more.
4653         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
4654         of fix_bit_operand.
4655         (iorqi3): Likewise.
4656         (xorqi3): Likewise.
4657
4658 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4659
4660         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4661         (CPP_PREDEFINES): Make sure this is undefined.
4662         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
4663         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
4664         or -U__MIPSEB__ before defining one or the other.  Instead,
4665         use %(subtarget_endian_default) if neither -EB nor -EL are
4666         specified.
4667         (SUBTARGET_EXTRA_SPECS): Define.
4668         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
4669         %(netbsd_cpp_spec).
4670
4671 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
4672
4673         * doc/md.texi (Patterns): Note pattern condition pitfall
4674         for unnamed insn.
4675
4676 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
4677
4678         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
4679         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
4680         ternary operations from here...
4681         (rs6000_expand_builtin): ...to here.
4682         New argument expandedp.
4683         Change all instances of altivec_expand_binop_builtin to
4684         rs6000_expand_binop_builtin.
4685         (altivec_expand_unop_builtin): Rename to
4686         rs6000_expand_unop_builtin.
4687         (altivec_expand_binop_builtin): Rename to
4688         rs6000_expand_binop_builtin.
4689         (altivec_expand_ternop_builtin): Rename to
4690         rs6000_expand_ternop_builtin.
4691
4692 2002-05-29  Richard Henderson  <rth@redhat.com>
4693
4694         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
4695         (TARGET_BI_ARCH): Likewise.
4696         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
4697         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
4698         (TARGET_64BIT_DEFAULT): Default to 0.
4699         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
4700
4701 2002-05-29  Richard Henderson  <rth@redhat.com>
4702
4703         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
4704         (get_pc_thunk_name): New.
4705         (output_set_got): Use it.
4706         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
4707         into linkonce sections.
4708
4709 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4710
4711         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4712         (CPP_PREDEFINES): Make sure this is undefined.
4713         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
4714         (CPP_SUBTARGET_SPEC): Don't provide different versions for
4715         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
4716         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
4717         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
4718         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4719         (CPP_PREDEFINES): Make sure this is undefined.
4720         (SUBTARGET_EXTRA_SPECS): Define.
4721         (CPP_SPEC): Use %(netbsd_cpp_spec).
4722
4723 2002-05-29  Jeff Law <law@redhat.com>
4724
4725         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
4726
4727         * flow.c (propagate_one_insn): Do not remove a dead insn if it
4728         contains a REG_RETVAL note.
4729
4730         * haifa-sched (sched_analyze): Remove another useless clearing
4731         of SCHED_GROUP_P I missed yesterday.
4732
4733         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
4734         * pa.c (pa_asm_output_mi_thunk): New function.
4735         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
4736
4737 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4738             Marek Michalkiewicz  <marekm@amelek.gda.pl>
4739
4740         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
4741         (avr_asm_only_p): Make non-static.
4742         (enum avr_arch): Remove.
4743         (avr_arch_types): New.
4744         (avr_mcu_types): Update.
4745         (avr_override_options): Use avr_arch_types table instead of switch.
4746         * avr.h (CPP_PREDEFINES): Die.
4747         (avr_base_arch_macro, avr_extra_arch_macro): New.
4748         (TARGET_CPU_CPP_BUILTINS): New.
4749         (CPP_SPEC, EXTRA_SPECS): Simplify.
4750         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
4751         CPP_AVR5_SPEC): Die.
4752
4753 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4754
4755         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4756         NETBSD_OS_CPP_BUILTINS_AOUT.
4757         (SUBTARGET_EXTRA_SPECS): Define.
4758         (CPP_SPEC): Use %(netbsd_cpp_spec).
4759
4760 2002-05-29  Richard Henderson  <rth@redhat.com>
4761
4762         * config/i386/i386.c (ix86_output_function_epilogue): New.
4763         (TARGET_ASM_FUNCTION_EPILOGUE): New.
4764         (pic_label_name): Remove.
4765         (pic_labels_used): New.
4766         (ix86_asm_file_end): Emit one pc load stub for each register used.
4767         (output_set_got): Generate deep pc load to any register.
4768         (ix86_select_alt_pic_regnum): New.
4769         (ix86_save_reg): Don't save pic register if we can find a valid
4770         call-clobbered replacement.
4771         (ix86_expand_prologue): If we found a valid replacement, renumber
4772         pic_offset_table_rtx.
4773         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
4774         pic_offset_table_rtx after reload.
4775         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
4776         * config/i386/i386.md (set_got): Make insn, not expander.
4777         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
4778
4779 2002-05-29  Richard Henderson  <rth@redhat.com>
4780
4781         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
4782         alignment for alloca.
4783
4784 2002-05-29  Richard Henderson  <rth@redhat.com>
4785
4786         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
4787         (print_operand_address): Only add rip for symbolic addresses
4788         for which we do not have another relocation type.
4789
4790 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4791
4792         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4793         (EXTRA_SPECS): Add netbsd_cpp_spec.
4794         (CPP_SPEC): Use %(netbsd_cpp_spec).
4795         (CPP_PREDEFINES): Remove.
4796         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4797         (EXTRA_SPECS): Define.
4798         (CPP_SPEC): Use %(netbsd_cpp_spec).
4799         (CPP_PREDEFINES): Remove.
4800
4801 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4802
4803         PR preprocessor/6844
4804         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
4805         NUL.
4806
4807 2002-05-29  Eric Christopher  <echristo@redhat.com>
4808
4809         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
4810         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
4811
4812 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
4813
4814         * config/fr30/fr30.md: Remove previous restriction on splits.
4815         Enforce conformance through gen_lowpart and cont_int_operand.
4816         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
4817         as the assembler does not support ".bss".
4818
4819 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4820
4821         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4822         (CPP_PREDEFINES): Remove.
4823         (SUBTARGET_EXTRA_SPECS): Define.
4824         (CPP_SPEC): Use %(netbsd_cpp_spec).
4825         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4826         (CPP_PREDEFINES): Remove.
4827         (SUBTARGET_EXTRA_SPECS): Define.
4828         (CPP_SPEC): Use %(netbsd_cpp_spec).
4829         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
4830         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
4831         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
4832         Add netbsd_cpp_spec.
4833         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
4834
4835 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4836             Zack Weinberg <zack@codesourcery.com>
4837
4838         * cppexp.c (cpp_num): Move to cpplib.h.
4839         (CPP_ERROR): Remove.
4840         (interpret_float_suffix, interpret_int_suffix): New.
4841         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
4842         (cpp_classify_number, cpp_interpret_integer): New.
4843         (interpret_number): Remove.
4844         (eval_token): Update to use new routines.
4845         * cpphash.h (cpp_num_part): Move to cpplib.h.
4846         * cppinit.c (cpp_post_options): Set warn_long_long.
4847         * cpplib.h (struct cpp_options): Add warn_long_long.
4848         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
4849         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
4850         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
4851         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
4852         cpp_interpret_integer): New.
4853
4854 2002-05-29  Joel Sherrill <joel@OARcorp.com>
4855
4856         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
4857
4858 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4859
4860         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4861         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
4862         (CPP_SUBTARGET_SPEC): Define.
4863         (SUBTARGET_EXTRA_SPECS): Define.
4864         (CPP_SPEC): Remove.
4865
4866 2002-05-29  Chris Lattner  <sabre@nondot.org>
4867
4868         * ssa.c (rename_insn_1): Rename uses of undefined registers to
4869         prevent confusion if/when the register is defined.
4870
4871 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
4872
4873         PR target/6838
4874         * config/cris/cris.md: Fix typos and thinkos in comments.
4875         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
4876         second alternative.
4877         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
4878         ("*mov_sideqi_mem"): Similar, but for operand 3.
4879         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
4880         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
4881         Remove spurious mode specifier on operand 2.
4882
4883 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
4884
4885         * config/h8300/h8300-protos.h: Remove the prototype for
4886         o_operand.
4887         Add prototypes for single_one_operand and single_zero_operand.
4888         * config/h8300/h8300.c (o_operand): Remove.
4889         (single_one_operand): New.
4890         (single_zero_operand): Likewise.
4891         (print_operand): For 'V' operand, and the operand with 0xff.
4892         For 'V' and 'W' operands, do not and the bit position with 7.
4893         * config/h8300/h8300.md (various anonymous patterns): Replace
4894         use of exact_log2 with single_one_operand/single_zero_operand.
4895
4896 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
4897
4898         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
4899
4900 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
4901
4902         * config/s390/s390.c (legitimate_pic_operand_p): Do not
4903         accept symbolic LARL operands.
4904         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
4905         epilogue insns.
4906
4907 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
4908
4909         * config/s390/s390.md (cmpstr_64/31): Mark whole
4910         input registers as used.
4911
4912 2002-05-28  Richard Henderson  <rth@redhat.com>
4913
4914         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
4915         not current_function_uses_pic_offset_table and
4916         current_function_uses_const_pool; examine current_function_profile.
4917         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
4918         input to blockage if needed.
4919         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
4920         (legitimize_pic_address): Likewise.  Set regs_ever_live for
4921         pic_offset_table_rtx when invoked during reload.
4922         * config/i386/i386.h (FINALIZE_PIC): Remove.
4923         * config/i386/i386.md (tablejump): Reformat.  Do not set
4924         current_function_uses_pic_offset_table.
4925         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
4926         (blockage): Accept anything as operand 0.
4927
4928 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
4929
4930         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
4931         common CPP built-ins for all NetBSD a.out targets.
4932         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
4933         common CPP built-ins for all NetBSD ELF targets.
4934         * config/netbsd.h: Add missing notice.
4935         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
4936         for all NetBSD targets.
4937         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
4938         for all NetBSD targets using an LP64 code model.
4939         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
4940         NetBSD targets.
4941
4942 2002-05-28  Richard Henderson  <rth@redhat.com>
4943
4944         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
4945         update if UPDATE_LIFE_LOCAL.
4946
4947 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
4948
4949         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
4950
4951 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
4952                           Jason R. Thorpe <thorpej@wasabisystems.com>
4953
4954         config/sh reorganization to factor out endianness and coff:
4955
4956         * config/sh/little.h: New file.
4957         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
4958         defined, define to 0 to select big-endian.
4959         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
4960         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4961         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
4962         * config/sh/t-be: New file.
4963         * config/sh/t-le: New file.
4964
4965         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
4966         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
4967         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
4968         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
4969         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
4970         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
4971         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
4972         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
4973         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
4974         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
4975         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
4976         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
4977         (LINK_SPEC): Define to SH_LINK_SPEC.
4978         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
4979         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
4980         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
4981         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
4982         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
4983         * config/sh/coff.h: New file.
4984         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
4985         (TARGET_OBJFMT_CPP_BUILTINS): Define.
4986         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
4987         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
4988         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
4989         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
4990         (PTRDIFF_TYPE): Likewise.
4991         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
4992         (CPP_PREDEFINES): Don't define.
4993         (TARGET_OBJFMT_CPP_BUILTINS): Define.
4994         (LINK_SPEC): Define to SH_LINK_SPEC.
4995         (LINK_EMUL_PREFIX): Redefine.
4996         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
4997         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
4998         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
4999         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
5000         (TARGET_OS_CPP_BUILTINS): Define.
5001         (TARGET_DEFAULT): Redefine.
5002         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
5003         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
5004         (LINK_SPEC): Don't redefine.
5005         (LINK_DEFAULT_CPU_EMUL): Redefine.
5006         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
5007         * sh.c (sh_asm_named_section): Don't declare / define.
5008         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
5009         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
5010         (sh64-*-elf* tm_file): Likewise.
5011         (sh-*-rtemself* tm_file): Likewise.
5012         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
5013         (sh-*-linux* tmake_file): Add sh/t-le.
5014         (sh-*-rtems* tm_file): Add sh/coff.h
5015         (sh-*-* tm_file): Likewise.
5016
5017 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
5018
5019         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
5020         CONSTANT_POOL_ADDRESS_P.
5021
5022         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
5023
5024 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
5025             Jeff Law <law@redhat.com>
5026
5027         * optabs.c (expand_binop): Fix nwords sign warnings.
5028         generate pseudo for add_optab.
5029
5030         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
5031         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
5032
5033 2002-05-28      Marc Espie <espie@openbsd.org>
5034
5035         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
5036         inherited from gas.h.
5037         (ASM_QUAD):  Undef.  OpenBSD does not support it.
5038
5039 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
5040
5041         * doc/install.texi (binaries): Change mingw binaries
5042         link to www.mingw.org.
5043
5044 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5045
5046         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
5047
5048 2002-05-28  Richard Henderson  <rth@redhat.com>
5049
5050         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
5051         bottom alignment for leaf functions.
5052
5053 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
5054
5055         * config/pa/milli32.S, config/pa/lib1funcs.asm,
5056         config/sparc/sol2-g1.asm: Delete unused files.
5057
5058 2002-05-28  Richard Henderson  <rth@redhat.com>
5059
5060         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
5061
5062         * flow.c (calculate_global_regs_live): Rename call_used to
5063         invalidated_by_call.  Initialize from regs_invalidated_by_call
5064         instead of call_used_regs.
5065
5066         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
5067         DECL_EXTERNAL.
5068
5069 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
5070
5071         * tree.h: Don't include real.h.
5072         Forward-declare struct realvaluetype.
5073         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
5074         contain it.
5075         (TREE_REAL_CST_PTR): New accessor.
5076         (TREE_REAL_CST): Update.
5077         * real.h: Include machmode.h.
5078         (realvaluetype): Make it struct realvaluetype, not a typedef.
5079         (build_real): Prototype here.
5080
5081         * tree.c: Include real.h.
5082         (build_real): Allocate the REAL_VALUE_TYPE as a separate
5083         object in GC memory, set TREE_REAL_CST_PTR to point to it.
5084         (build_real_from_int_cst): Use build_real.
5085         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
5086         REAL_CST.
5087
5088         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
5089         fold-const.c, print-tree.c, real.c: Include real.h.
5090         * Makefile.in: Update dependency lists.
5091
5092 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5093
5094         * basic-block.h (last_basic_block): Declare.
5095         (expunge_block_nocompact): Declaration removed.
5096         (compact_blocks): Declare.
5097         * cfg.c (last_basic_block): New variable.
5098         (expunge_block_nocompact): Removed.
5099         (expunge_block): Do not compact basic blocks.
5100         (compact_blocks): New.
5101         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
5102         longer change.
5103         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
5104         last_basic_block.
5105         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
5106         real positions of blocks.
5107         (delete_unreachable_blocks): Simplified -- quadratic behavior now
5108         cannot occur.
5109         (cleanup_cfg): Compact blocks.
5110         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
5111         basic_block_info varray.
5112         (flow_delete_block): Comment update.
5113         (back_edge_of_syntactic_loop_p): Modify position check code.
5114         (verify_flow_info): Update checking.
5115         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
5116         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
5117         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
5118         indices no longer change.
5119         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
5120         last_basic_block.
5121         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
5122         * profile.c (branch_prob): Compact blocks.
5123         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
5124         last_basic_block.
5125
5126 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
5127
5128         * config/h8300/h8300.md (two anonymous patterns): New.
5129
5130 2002-05-28  David S. Miller  <davem@redhat.com>
5131
5132         * config/sparc/sparc.md (cpu): Tidy.
5133         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
5134         'trap'.
5135         (in_call_delay): Delete reference to 'return' type.
5136         (eligible_for_return_delay, in_return_delay, define_delay
5137         referencing those): Delete.
5138         (rest of file): Use new type attributes as appropriate.
5139         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
5140         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
5141         * config/sparc/ultra1_2.md (us1_single): New reservation.
5142         (us1_ialuX): Likewise.
5143         * config/sparc/ultra3.md (us3_single): Likewise.
5144         (us3_ialuX): Likewise.
5145         (us3_imul, us3_idiv): Tweak.
5146
5147 2002-05-28  Richard Henderson  <rth@redhat.com>
5148
5149         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
5150         STRING_CST.
5151
5152 2002-05-28  Richard Henderson  <rth@redhat.com>
5153
5154         * config.gcc: Obsolete mn10200.
5155
5156 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5157
5158         * cppexp.c (interpret_number): Optimize for single-digit
5159         and less-than-half-precision cases.
5160         (num_trim, num_positive, num_div_op): Cast constants.
5161
5162 2002-05-27  Bo Thorsen  <bo@suse.de>
5163
5164         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
5165         3.1 branch. The file was made by Jakub Jelinek.
5166         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
5167         support so multilib doesn't break. And don't define this at all
5168         when -Dinhibit_libc is used.
5169         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
5170         * config/i386/t-linux64: Implement full multilib support. Patch
5171         originally done by Andreas Jaeger and Jakub Jelinek.
5172
5173 2002-05-27  Roger Sayle  <roger@eyesopen.com>
5174
5175         * c-common.c: Add support for __attribute__((nothrow)) to specify
5176         that a function cannot throw an exception (using TREE_NOTHROW).
5177         (handle_nothrow_attribute): New function to process this attribute.
5178
5179         * doc/extend.texi: Document the new nothrow function attribute.
5180
5181 2002-05-27  H.J. Lu  (hjl@gnu.org)
5182
5183         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
5184         (num_positive): Likewise.
5185         (num_div_op): Likewise.
5186
5187 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5188
5189         * c-common.c (c_common_init): Always use intmax_t.
5190
5191 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5192
5193         * c-common.c (c_common_init): Use intmax_t for now.
5194
5195 2002-05-24  Andrew Haley  <aph@redhat.com>
5196
5197         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
5198         if T is a boolean type.
5199
5200 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5201
5202         * basic-block.h (last_basic_block): Defined as synonym for
5203         n_basic_blocks.
5204         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
5205         flow_depth_first_order_compute, flow_preorder_transversal_compute,
5206         flow_dfs_compute_reverse_init): Replaced relevant occurences of
5207         n_basic_blocks with last_basic_block.
5208         * cfgbuild.c (make_edges): Likewise.
5209         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
5210         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
5211         * combine.c (combine_instructions): Likewise.
5212         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
5213         iterative_dataflow_bitmap): Likewise.
5214         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5215         calc_idoms, idoms_to_doms): Likewise.
5216         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
5217         Likewise.
5218         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
5219         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
5220         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
5221         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
5222         delete_null_pointer_checks, compute_code_hoist_vbeinout,
5223         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5224         compute_store_table, build_store_vectors): Likewise.
5225         * haifa-sched.c (sched_init): Likewise.
5226         * ifcvt.c (if_convert): Likewise.
5227         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5228         pre_edge_lcm, compute_available, compute_nearerout,
5229         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
5230         Likewise.
5231         * predict.c (estimate_probability, process_note_prediction,
5232         note_prediction_to_br_prob): Likewise.
5233         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
5234         * recog.c (split_all_insns, peephole2_optimize): Likewise.
5235         * regrename.c (copyprop_hardreg_forward): Likewise.
5236         * resource.c (init_resource_info): Likewise.
5237         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
5238         init_regions, schedule_insns): Likewise.
5239         * ssa-ccp.c (ssa_const_prop): Likewise.
5240         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5241         * ssa.c (compute_dominance_frontiers,
5242         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
5243
5244         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
5245         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
5246         sizes consistently.
5247
5248 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
5249
5250         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
5251         new.
5252         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
5253         hoist_insn_after, hoist_insn_to_edge): New.
5254
5255 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
5256
5257         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
5258         (PROP_FINAL): Include.
5259         * flow.c (life_analysis, update_life_info,
5260         init_propagate_block_info, mark_set_1, mark_used_rgs):
5261         Support SCAN_DEAD_STORE.
5262
5263 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5264
5265         * c-common.c (c_common_init): Set CPP arithmetic precision.
5266         * cppexp.c (cpp_num_part): Move typedef ...
5267         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
5268         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
5269         (sanity_checks): Update.
5270
5271 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
5272
5273         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
5274         (mkheaders): New rule.
5275         (install-mkheaders): New rule.
5276         * configure.in (all_outputs): Add mkheaders.
5277         * configure: Regenerate.
5278         * mkheaders.in: New file.
5279
5280 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
5281
5282         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
5283
5284 2002-05-26  Andreas Jaeger  <aj@suse.de>
5285
5286         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
5287
5288 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5289
5290         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
5291         right_shift): Remove.
5292         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
5293         HIGH_PART): New.
5294         (struct op): Use cpp_num.
5295         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
5296         num_part_mul, num_unary_op, num_binary_op, num_negate,
5297         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
5298         num_div_op, num_lshift, num_rshift, append_digit): New.
5299         (interpret_number, parse_defined, eval_token, reduce): Update
5300         for two-integer arithmetic.
5301         (binary_handler): New typedef.
5302         (optab): Update.
5303         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
5304         (_cpp_parse_expr, reduce): Update to handle two-integers.
5305         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
5306
5307 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5308
5309         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
5310         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
5311         branch insn into account, do not assume 1.
5312         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
5313         over single word insn.  Handle upper half of I/O space too.
5314         * config/avr/avr.md (*sbrx_branch): Use it.
5315         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
5316         (*sbix_branch, *sbix_branch_bit7): Likewise.
5317         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
5318         Use RTL peepholes to optimize register operand sign tests.
5319
5320 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5321
5322         * config/avr/avr.c (avr_asm_only_p): New variable.
5323         (avr_override_options): Set it here if AVR1.
5324         (asm_file_start): Test it here, report an error if set.
5325
5326 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
5327
5328         * alias.c: Fix formatting.
5329         * attribs.c: Likewise.
5330         * bb-reorder.c: Likewise.
5331         * bitmap.c: Likewise.
5332         * bitmap.h: Likewise.
5333         * builtins.c: Likewise.
5334
5335 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
5336
5337         * reload.c (find_valid_class): Accept new argument DEST,
5338         choose class accordingly.
5339         (push_reload): Update callers.
5340
5341 2002-05-26  Andreas Jaeger  <aj@suse.de>
5342
5343         * combine.c (combine_instructions): Do not indent #if for
5344         traditional C.
5345
5346 2002-05-25  Richard Henderson  <rth@redhat.com>
5347
5348         * c-pragma.c (apply_pragma_weak): Convert value identifier to
5349         string for decl_attributes.
5350         (handle_pragma_weak): Call assemble_alias if we're modifying
5351         an existing decl.
5352
5353 2002-05-25  Richard Henderson  <rth@redhat.com>
5354
5355         PR target/6788
5356         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
5357         using rtl instead of fprintf.
5358         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
5359         * config/sparc/sparc-protos.h: Update.
5360
5361 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5362
5363         * Makefile.in (C_COMMON_H): Fix.
5364         Update other targets.
5365         * c-common.c: Don't include c-lex.h.
5366         (builtin_define_with_value): Make static and prototype.
5367         (builtin_define_std): Move from c-lex.h.
5368         * c-common.h (init_c_lex): Move from c-lex.h.
5369         * c-decl.c: Don't include c-lex.h.
5370         (make_pointer_declarator): Move from c-parse.in.
5371         * c-lex.c: Don't include c-lex.h.
5372         * c-lex.h: Remove.
5373         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
5374         (make_pointer_declarator): Move to c-decl.c.
5375         * c-pragma.c: Don't include c-lex.h.
5376         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
5377         * c-tree.h (make_pointer_declarator): New.
5378 doc:
5379         * passes.texi, tm.texi: Update.
5380 objc:
5381         * Make-lang.in: Update and correct.
5382         * objc-act.c: Don't include c-lex.h or cpplib.h.
5383 treelang:
5384         * treetree.c: Don't include c-lex.h.
5385 config:
5386         * darwin-c.c: Don't include c-lex.h.
5387         * c4x/c4x-c.c: Don't include c-lex.h.
5388         * c4x/t-c4x: Update.
5389         * i370/i370-c.c: Don't include c-lex.h.
5390         * i370/t-i370: Update.
5391         * i960/i960-c.c: Don't include c-lex.h.
5392         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
5393         * i960/t-960bare: Update.
5394         * i960/t-vxworks: Update.
5395         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
5396         * rs6000/t-darwin: Update.
5397         * rs6000/t-rs6000-c-rule: Update.
5398         * v850/v850-c.c: Don't include c-lex.h.
5399         * v850/v850.c: Don't include c-lex.h or cpplib.h.
5400
5401
5402 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
5403
5404         * tree.def: Fix typos.
5405         * doc/install.texi: Likewise.
5406
5407 2002-05-25  Richard Henderson  <rth@redhat.com>
5408
5409         * configure.in (HAVE_AS_TLS): Add ia64 test.
5410         * configure: Rebuild.
5411         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
5412         (override_options): Set it.
5413         (TARGET_HAVE_TLS): New.
5414         (sdata_symbolic_operand): Look for 's'.
5415         (tls_symbolic_operand): New.
5416         (ia64_expand_load_address): Abort for tls symbols.
5417         (gen_tls_get_addr): New.
5418         (gen_thread_pointer): New.
5419         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
5420         (rtx_needs_barrier): Add new unspecs.
5421         (ia64_encode_section_info): Handle tls symbols.
5422         (ia64_strip_name_encoding): Strip two encoding chars.
5423         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
5424         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
5425         (TARGET_OPTIONS): Add tls-size.
5426         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
5427         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
5428         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
5429         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
5430         (movsf, movdf): Likewise.
5431         (movdi_symbolic): Use match_scratch.  Don't split if we won't
5432         have a scratch availiable.
5433         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
5434         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
5435         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
5436         * config/ia64/ia64-protos.h: Update.
5437         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
5438         sdata_symbolic_operand.
5439         (ASM_OUTPUT_LABELREF): Strip two characters.
5440
5441 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
5442
5443         * combine.c (simplify_set): Remove an unnecessary subreg.
5444
5445 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5446
5447         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
5448
5449         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
5450
5451 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
5452
5453         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
5454
5455 2002-05-25  Roger Sayle  <roger@eyesopen.com>
5456
5457         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
5458         (cond (compare x y) 0) into the equivalent (cond x y).
5459
5460 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
5461
5462         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
5463
5464 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
5465
5466         * config.gcc: Remove all stanzas for previously obsoleted
5467         systems.  Where necessary, add explicit error stanzas to
5468         prevent removed systems from being misidentified as something
5469         else.  Begin a fresh obsoletions list, with the systems that
5470         were reprieved last round.
5471         * doc/install.texi: Remove all mention of dead targets.
5472         * fixinc/mkfixinc.sh: Likewise.
5473
5474         * config/arm/arm.h: Bit 31 of target_flags is no longer
5475         reserved.
5476
5477         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
5478         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
5479         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
5480         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
5481         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
5482         config/alpha/osf12.h, config/alpha/osf2or3.h,
5483         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
5484         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
5485         config/clipper/clipper-protos.h, config/clipper/clipper.c,
5486         config/clipper/clipper.h, config/clipper/clipper.md,
5487         config/clipper/clix.h, config/convex/convex-protos.h,
5488         config/convex/convex.c, config/convex/convex.h,
5489         config/convex/convex.md, config/convex/fixinc.convex,
5490         config/convex/proto.h, config/elxsi/elxsi-protos.h,
5491         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
5492         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
5493         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
5494         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
5495         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
5496         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
5497         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
5498         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
5499         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
5500         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
5501         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
5502         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
5503         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
5504         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
5505         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
5506         config/m68k/altos3068.h, config/m68k/apollo68.h,
5507         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
5508         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
5509         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
5510         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
5511         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
5512         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
5513         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
5514         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
5515         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
5516         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
5517         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
5518         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
5519         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
5520         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
5521         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
5522         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
5523         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
5524         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
5525         config/mips/dec-osf1.h, config/mips/elflorion.h,
5526         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
5527         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
5528         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
5529         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
5530         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
5531         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
5532         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
5533         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
5534         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
5535         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
5536         config/ns32k/sequent.h, config/ns32k/tek6000.h,
5537         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
5538         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
5539         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
5540         config/sparc/rtems.h, config/we32k/we32k-protos.h,
5541         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
5542         Delete file.
5543
5544 2002-05-24  Richard Henderson  <rth@redhat.com>
5545
5546         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
5547         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
5548         * config/i386/i386.c (tls_model_chars): Add leading space.
5549         (tls_symbolic_operand): Don't bias by 1.
5550         (legitimize_address): Don't unbias by 1.
5551
5552 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
5553
5554         * lcm.c (optimize_mode_switching): Change bb used as indices
5555         to bb->index.
5556
5557 2002-05-24  Richard Henderson  <rth@redhat.com>
5558
5559         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
5560         of update_life_info_in_dirty_blocks.
5561
5562 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
5563
5564         PR other/6782
5565         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
5566
5567 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5568
5569         PR preprocessor/6780
5570         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
5571
5572 2002-05-24  Jim Blandy  <jimb@redhat.com>
5573
5574         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
5575         entry with a type code of zero, marking the end of the compilation
5576         unit's macro info.
5577
5578 2002-05-24  Richard Henderson  <rth@redhat.com>
5579
5580         * varasm.c (asm_output_bss): Always output one byte.
5581         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
5582
5583 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5584
5585         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
5586         namespace.
5587
5588 2002-05-24  Andreas Jaeger  <aj@suse.de>
5589
5590         * ggc-page.c (alloc_page): Cast variables of type size_t to
5591         unsigned long, adjust printf format string.
5592         (ggc_alloc): Likewise.
5593         (ggc_print_statistics): Likewise.
5594         (ggc_print_statistics): Correct printf format string for SCALE to
5595         use unsigned long.
5596
5597 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
5598
5599         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
5600
5601 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
5602             Zack Weinberg     <zack@codesourcery.com>
5603
5604         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
5605         quoted strings.
5606         * dwarf2out.c (lookup_filename): Properly quote filename in .file
5607         directive in assembly file.
5608         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5609         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5610         * config/pj/pj.h (ASM_FILE_START): Likewise.
5611         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5612         * config/avr/avr.c (asm_file_end): Likewise.
5613         * toplev.c (output_quoted_string): Handle possibly signed plain
5614         char.
5615         * toplev.h (output_clean_symbol_name): Declare
5616         * toplev.c (output_clean_symbol_name): Define.
5617         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
5618         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
5619
5620 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
5621
5622         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
5623
5624 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
5625
5626         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
5627         of size of unsigned.
5628
5629 2002-05-23  Richard Henderson  <rth@redhat.com>
5630
5631         * configure.in (HAVE_AS_TLS): New test.
5632         * config.in, configure: Rebuild.
5633         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
5634         (ix86_tls_dialect_string, ix86_tls_dialect): New.
5635         (override_options): Set it.
5636         (tls_model_chars, tls_symbolic_operand): New.
5637         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
5638         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
5639         (local_exec_symbolic_operand): New.
5640         (get_pic_label_name): Merge into output_set_got.
5641         (ix86_asm_file_end): Emit pic_label_name if defined.
5642         (legitimate_constant_p, constant_address_p): New.
5643         (legitimate_pic_operand_p): New.
5644         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
5645         (legitimate_address_p): Likewise.
5646         (ix86_encode_section_info): Rename from i386_; handle tls decls.
5647         (ix86_strip_name_encoding): New.
5648         (get_thread_pointer): New.
5649         (legitimize_address): Handle tls symbols.
5650         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
5651         Remove UNSPEC_PLT.
5652         (struct machine_function): Add some_ld_name.
5653         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
5654         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
5655         (output_addr_const_extra): New.
5656         (maybe_get_pool_constant): New.
5657         (ix86_split_to_parts): Use it.
5658         (ix86_expand_move): Handle tls symbols.
5659         (ix86_tls_get_addr): New.
5660         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
5661         (TARGET_OPTIONS): Add tls-dialect.
5662         (CONSTANT_ADDRESS_P): Use new out-of-line function.
5663         (LEGITIMATE_CONSTANT_P): Likewise.
5664         (LEGITIMATE_PIC_OPERAND_P): Likewise.
5665         (TARGET_STRIP_NAME_ENCODING): New.
5666         (ASM_OUTPUT_LABELREF): New.
5667         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
5668         (OUTPUT_ADDR_CONST_EXTRA): New.
5669         (PREDICATE_CODES): Update.
5670         (ix86_tls_dialect, ix86_tls_dialect_string): New.
5671         * config/i386/i386.md: Regroup and renumber unspec constants.
5672         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
5673         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
5674         (tls_global_dynamic, tls_local_dynamic_base): New.
5675         (tls_local_dynamic_once): New.
5676         * config/i386/i386-protos.h: Update.
5677
5678 2002-05-23  Richard Henderson  <rth@redhat.com>
5679
5680         * genemit.c (gen_insn): Print file:lineno comment before function.
5681         (main): likewise.
5682         * gensupport.c (struct queue_elem): Add filename member.
5683         (queue_pattern): Initialize it; update all callers.
5684         (process_include): Don't free filename.
5685         (read_md_rtx): Set read_rtx_filename.
5686
5687 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
5688
5689         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
5690
5691 2002-05-23  Richard Henderson  <rth@redhat.com>
5692
5693         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
5694
5695 2002-05-23  Richard Henderson  <rth@redhat.com>
5696
5697         * doc/extend.texi (C++98 Thread-Local Edits): Update with
5698         commentary from Mark.
5699
5700 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5701
5702         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
5703         Use FOR_EACH_BB macros to iterate over basic block chain.
5704         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
5705         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
5706         Likewise.
5707         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
5708         find_unreachable_blocks, create_edge_list, verify_edge_list,
5709         remove_fake_edges, add_noreturn_fake_exit_edges,
5710         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
5711         Likewise.
5712         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
5713         find_sub_basic_blocks): Likewise.
5714         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
5715         Likewise.
5716         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
5717         Likewise.
5718         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
5719         Likewise.
5720         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
5721         commit_edge_insertions, commit_edge_insertions_watch_calls,
5722         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
5723         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
5724         * conflict.c (conflict_graph_compute): Likewise.
5725         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5726         df_modified_p, df_refs_unlink, df_dump): Likewise.
5727         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
5728         * final.c (compute_alignments): Likewise.
5729         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
5730         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
5731         count_or_remove_death_notes): Likewise.
5732         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
5733         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
5734         classic_gcse, compute_transp, cprop, compute_pre_data,
5735         compute_transpout, invalidate_nonnull_info,
5736         delete_null_pointer_checks_1, delete_null_pointer_checks,
5737         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
5738         compute_store_table, build_store_vectors, store_motion): Likewise.
5739         * global.c (global_conflicts, mark_elimination): Likewise.
5740         * graph.c (print_rtl_graph_with_bb): Likewise.
5741         * haifa-sched.c (sched_init): Likewise.
5742         * ifcvt.c (if_convert): Likewise.
5743         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5744         compute_available, compute_nearerout, compute_rev_insert_delete,
5745         optimize_mode_switching): Likewise.
5746         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
5747         * predict.c (estimate_probability, note_prediction_to_br_prob,
5748         propagate_freq, counts_to_freqs, expensive_function_p,
5749         estimate_bb_frequencies): Likewise.
5750         * profile.c (instrument_edges, get_exec_counts,
5751         compute_branch_probabilities, compute_checksum, branch_prob,
5752         find_spanning_tree): Likewise.
5753         * recog.c (split_all_insns, peephole2_optimize): Likewise.
5754         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
5755         Likewise.
5756         * regclass.c (scan_one_insn, regclass): Likewise.
5757         * regmove.c (mark_flags_life_zones, regmove_optimize,
5758         record_stack_memrefs): Likewise.
5759         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
5760         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
5761         * resource.c (find_basic_block): Likewise.
5762         * sched-ebb.c (schedule_ebbs): Likewise.
5763         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
5764         find_single_block_region, find_rgns, schedule_insns)
5765         * sibcall.c (optimize_sibling_and_tail_recursive_call)
5766         * ssa-ccp.c (optimize_unexecutable_edges,
5767         ssa_ccp_df_delete_unreachable_insns): Likewise.
5768         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5769         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
5770         rename_block, convert_to_ssa, compute_conservative_reg_partition,
5771         compute_coalesced_reg_partition, rename_equivalent_regs,
5772         convert_from_ssa): Likewise.
5773         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
5774         process_for_unwind_directive): Likewise.
5775
5776         * df.c (FOR_ALL_BBS): Removed.
5777         * gcse.c (struct null_pointer_info): Type of current_block field
5778         changed.
5779         (struct reg_avail_info): Type of last_bb field changed.
5780         * config/ia64/ia64.c (block_num): Removed.
5781         (need_copy_state): Type changed.
5782         (last_block): New.
5783
5784 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5785
5786         * cppinit.c (mark_named_operators): Split out from init_builtins.
5787         (cpp_finish_options): Call it from here instead.
5788
5789 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
5790
5791         * builtin-attrs.def: Update copyright years.
5792         (ATTR_NONNULL): New attribute identifier.
5793         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
5794         attribute tree lists.
5795         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
5796         format operand.
5797         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
5798         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
5799         attribute lists.  Chain the appropriate nonnull attribute.
5800         * c-format.c (check_format_arg): Remove null format string
5801         warning.
5802         * testsuite/gcc.dg/format/null-1.c: New test.
5803
5804 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5805
5806         * Makefile.in (ADAC): Define.
5807         (SYSLIBS): Define.
5808         (.SUFFIXES): Move before language makefile fragments.
5809         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
5810
5811 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
5812
5813         * varasm.c (make_decl_rtl): Don't allow weak variables to be
5814         placed in common.
5815
5816 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5817
5818         * cfg.c (dump_flow_info): Print results of
5819         maybe_hot/probably_never_executed predicates.
5820         * toplev.c (open_dump_file): Print function frequency.
5821
5822 2002-05-23  David S. Miller  <davem@redhat.com>
5823
5824         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
5825         regsets.
5826
5827 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
5828
5829         * c-common.c (warn_nonnull): Declare.
5830         (c_common_attribute_table): Add "nonnull" attribute.
5831         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
5832         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
5833         check_function_arguments_recurse): New functions.
5834         * c-common.h (warn_nonnull): Declare extern.
5835         (check_function_arguments, check_function_arguments_recurse): New
5836         prototypes.
5837         * c-decl.c (c_decode_option): Add -Wnonnull option.
5838         * c-format.c (set_Wformat): Set warn_nonnull if enabling
5839         format checking.
5840         (format_check_context): New structure.
5841         (check_format_info_recurse): Remove recursion and rename to...
5842         (check_format_arg): ...this.  Update comment.
5843         (check_format_info): Use check_function_arguments_recurse.
5844         * c-typeck.c (build_function_call): Call check_function_arguments
5845         instead of check_function_format.
5846         * doc/extend.texi: Document "nonnull" attribute.
5847         * doc/invoke.texi: Docuemnt -Wnonnull option.
5848         * testsuite/gcc.dg/nonnull-1.c: New test.
5849         * testsuite/gcc.dg/nonnull-2.c: New test.
5850
5851 2002-05-23  David S. Miller  <davem@redhat.com>
5852
5853         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
5854         * cfgcleanup.c (cleanup_cfg): If it is set do not
5855         attempt to delete trivially dead insns.
5856         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
5857         * toplev.c (rest_of_compilation): Document non-trivial aspect
5858         the RTL before optimize_save_area_alloca is run.
5859
5860 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5861
5862         * c-lex.c (indent_level): Remove.
5863         (cb_file_change, c_lex): Remove indent level handling.
5864         * c-lex.h (indent_level): Remove.
5865         * input.h (struct file_stack): Remove indent_level.
5866         * toplev.c (push_srcloc): Remove indent_level handling.
5867
5868 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5869
5870         PR target/6753
5871         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
5872         of x in constraints for clarity.
5873         (sse_mov?fcc split): abort if op2 == op3.
5874         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
5875         sse_movsfcc_const0_4): Add earlyclobber.
5876         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
5877         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
5878         Use Y instead of x in constraints.
5879
5880 2002-05-23  Richard Henderson  <rth@redhat.com>
5881
5882         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
5883         (C++98 Thread-Local Edits): New subsection.
5884
5885         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
5886         (ix86_arch): Set type to enum processor_type.
5887
5888         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
5889         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
5890
5891 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5892
5893         * configure.in: Fix as version test for binutils 2.12.1 releases
5894         (without dates).
5895         * configure: Rebuilt.
5896
5897 2002-05-23  Richard Henderson  <rth@redhat.com>
5898
5899         * config/i386/i386.c (get_pic_label_name): New.
5900         (load_pic_register): Remove.
5901         (output_set_got): New.
5902         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
5903         * config/i386/i386.md (UNSPEC_SET_GOT): New.
5904         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
5905         (prologue_set_got, prologue_get_pc): Remove.
5906         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
5907         (builtin_setjmp_receiver): Use gen_set_got.
5908         * config/i386/i386-protos.h: Update.
5909
5910 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
5911
5912         * gcse.c (hash_expr): Do not use alias set for hashing.
5913
5914 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
5915
5916         * dbxout.c (dbxout_class_name_qualifiers): New function.
5917         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
5918
5919 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5920
5921         * cpperror.c (_cpp_begin_message): No special casing
5922         of CPP_FATAL_LIMIT.
5923         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
5924         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
5925         * cpplib.c (do_include_common): Use DL_ERROR.
5926         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
5927         (DL_ICE): Renumber.
5928         * fix-header.c (read_scan_file): Update.
5929
5930 2002-05-22  Richard Henderson  <rth@redhat.com>
5931
5932         * config/i386/i386.c (ix86_expand_call): New function, extracted
5933         from md call patterns.  Add pic_offset_table_rtx to
5934         CALL_INSN_FUNCTION_USAGE when needed.
5935         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
5936         (call_value_pop, call_value, untyped_call): Likewise.
5937         (call_exp, call_value_exp): Remove.
5938         * config/i386/i386-protos.h: Update.
5939
5940 2002-05-22  Richard Henderson  <rth@redhat.com>
5941
5942         * varasm.c (default_section_type_flags): Check for VAR_DECL
5943         before using DECL_THREAD_LOCAL.
5944
5945 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
5946
5947         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
5948         (STARTFILE_SPEC): Delete PE crt0.o.
5949         * config/rs6000/aix51.h: Same.
5950         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
5951         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
5952         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
5953         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
5954         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
5955
5956 2002-05-22  Richard Henderson  <rth@redhat.com>
5957
5958         * varasm.c (default_section_type_flags): Handle tls data and
5959         default sections.
5960         (default_unique_section): Handle tls sections.
5961
5962 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
5963
5964         * configure.in (CROSS): Define NATIVE_CROSS.
5965         * configure: Regenerate.
5966         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
5967         (startfile_prefix_spec): New var.
5968         (static_specs): Add startfile_prefix_spec.
5969         (do_spec_2): Split out from..
5970         (do_spec): ..here.
5971         (main): Process startfile_prefix_spec.
5972         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
5973         dynamic linker.
5974         (STARTFILE_PREFIX_SPEC): Define.
5975         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
5976         absolute paths.
5977
5978 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
5979
5980         * cpperror.c: Fix formatting.
5981         * cppexp.c: Likewise.
5982         * cppfiles.c: Likewise.
5983         * cpphash.c: Likewise.
5984         * cpphash.h: Likewise.
5985         * cppinit.c: Likewise.
5986         * cpplex.c: Likewise.
5987         * cpplib.c: Likewise.
5988         * cppmacro.c: Likewise.
5989         * cppmain.c: Likewise.
5990         * cppspec.c: Likewise.
5991
5992 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
5993
5994         * combine.c (force_to_mode): Use gen_int_mode.
5995         Don't clear CONST_INT bits outside of mode.
5996
5997 2002-05-22  Richard Henderson  <rth@redhat.com>
5998
5999         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
6000         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
6001
6002 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
6003
6004         PR c/6643
6005         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
6006         if DECL_SIZE_UNIT is INTEGER_CST.
6007
6008 2002-05-22  Richard Henderson  <rth@redhat.com>
6009
6010         * flow.c (life_analysis): Delete broken reg_label check.
6011
6012 2002-05-22  Richard Henderson  <rth@redhat.com>
6013
6014         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
6015         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
6016
6017 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
6018
6019         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
6020         (embed-bb.c): New rule.
6021         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
6022         * config/sh/embed_bb.c: Delete.
6023
6024 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
6025
6026         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
6027
6028 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
6029
6030         * config/h8300/h8300.md (*andorqi3): New.
6031
6032 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6033
6034         PR preprocessor/6517
6035         * Makefile.in: Update.
6036         * c-common.c (c_common_post_options): Add preprocessor
6037         errors to the error count.
6038         * c-lang.c (c_post_options): Kill.
6039         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
6040         * hooks.h: Add header guards.
6041         * langhooks-def.h: Include hooks.h.
6042         (LANG_HOOKS_POST_OPTIONS): Update.
6043         * langhooks.h (struct lang_hooks): Update post_options.
6044         * toplev.c (parse_options_and_default_flags): Update.
6045 objc:
6046         * objc-lang.c (objc_post_options): Kill.
6047         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
6048
6049 2002-05-21  Bruce Korb  <bkorb@gnu.org>
6050
6051         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
6052         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
6053         * fixinc/fixincl.x: regen.
6054
6055 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
6056
6057         * cfgbuild.c: Fix formatting.
6058         * cfg.c: Likewise.
6059         * cfgcleanup.c: Likewise.
6060         * cfglayout.c: Likewise.
6061         * cfgloop.c: Likewise.
6062         * cfgrtl.c: Likewise.
6063
6064 2002-05-21  Richard Henderson  <rth@redhat.com>
6065
6066         * c-common.h (enum rid): Add RID_THREAD.
6067         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
6068         (grokdeclarator): Grok __thread.
6069         * c-parse.in (reswords): Add __thread.
6070         (rid_to_yy): Add RID_THREAD.
6071
6072         * tree.h (DECL_THREAD_LOCAL): New.
6073         (struct tree_decl): Add thread_local_flag.
6074         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
6075         * tree.c (staticp): TLS variables are not static.
6076
6077         * target-def.h (TARGET_HAVE_TLS): New.
6078         * target.h (have_tls): New.
6079         * output.h (SECTION_TLS): New.
6080         * varasm.c (assemble_variable): TLS variables can't be common for now.
6081         (default_section_type_flags): Handle .tdata and .tbss.
6082         (default_elf_asm_named_section): Handle SECTION_TLS.
6083         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
6084
6085         * flags.h (flag_tls_default): Declare.
6086         * toplev.c (flag_tls_default): Define.
6087         (display_help): Display help for it.
6088         (decode_f_option): Set it.
6089
6090         * doc/extend.texi (Thread-Local): New node describing language-level
6091         thread-local storage.
6092         * doc/invoke.texi (-ftls-model): Document.
6093
6094         * fixinc/inclhack.def (thread_keyword): New.
6095         * fixinc/fixincl.x: Rebuild.
6096
6097 2002-05-21  Jeffrey A Law  <law@redhat.com>
6098
6099         * optabs.c (expand_binop): For double-word integer multiplies,
6100         do not compute intermediate results into something that is
6101         not a register (such as a SUBREG or MEM).
6102
6103         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
6104         (ix86_sched_reorder): Make sure to initialize scheduling
6105         data even when there's only one insn in the ready queue.
6106
6107 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
6108
6109         * genautomata.c (reserv_sets_hash_value): Fix a typo.
6110
6111 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
6112
6113         * genautomata.c (reserv_sets_hash_value): Define hash_value as
6114         set_el_t.  Transform the hash value into unsigned.
6115         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
6116         (transform_3): Add code to process `(A,B)+(D,E)'.
6117
6118 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
6119
6120         * reload1.c (do_output_reload): Run delete_output_reload
6121         only if optimizing.
6122
6123 2002-05-21  Roger Sayle  <roger@eyesopen.com>
6124
6125         PR middle-end/6600
6126         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
6127         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
6128         (can_store_by_pieces): ... and here to limit the largest mode used.
6129         Add a comment to document this function.
6130
6131 2002-05-21  Richard Henderson  <rth@redhat.com>
6132
6133         * flow.c (life_analysis): Fix test for deleted label.
6134
6135 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6136
6137         * doc/tm.texi: Fix typo.
6138
6139 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
6140
6141         * c-common.c (c_common_init): Set options->unsigned_char from
6142         flag_signed_char.
6143         (cb_register_builtins): Define __STRICT_ANSI__ and
6144         __CHAR_UNSIGNED__ here...
6145         * cppinit.c (init_builtins): Not here.
6146         (cpp_create_reader): unsigned_char option defaults to 0, not
6147         !DEFAULT_SIGNED_CHAR.
6148         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
6149         and -funsigned-char.
6150
6151         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
6152         * cpphash.c (_cpp_init_hashtable): Don't set it.
6153         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
6154         directly.  Clarify comment.
6155
6156 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6157
6158         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
6159         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
6160         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
6161         BASIC_BLOCK (n_basic_blocks - 1).
6162         * cfganal.c (can_fallthru, flow_call_edges_add,
6163         flow_preorder_transversal_compute): Too.
6164         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
6165         find_sub_basic_blocks): Too.
6166         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
6167         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
6168         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
6169         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
6170         * combine.c (this_basic_block): Type changed to basic_block.
6171         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
6172         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
6173         get_last_value, distribute_notes, distribute_links): Too.
6174         * final.c (compute_alignments): Too.
6175         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
6176         * function.c (thread_prologue_and_epilogue_insns): Too.
6177         * gcse.c (compute_code_hoist_vbeinout): Too.
6178         * global.c (build_insn_chain): Too.
6179         * ifcvt.c (find_if_block, find_cond_trap): Too.
6180         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
6181         * regmove.c (regmove_optimize): Too.
6182         * resource.c (find_basic_block): Too.
6183         * sched-ebb.c (schedule_ebbs): Too.
6184         * ssa-dce.c (find_control_dependence, find_pdom): Too.
6185
6186 2002-05-21  Andreas Jaeger  <aj@suse.de>
6187
6188         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
6189
6190 2002-05-21  Richard Henderson  <rth@redhat.com>
6191
6192         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
6193         unspec names, not numbers.
6194
6195 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6196
6197         * doc/sourcebuild.texi: Mention snapshot-README and
6198         snapshot-index.html as needing updating for new front ends.
6199
6200 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6201
6202         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
6203         disabling checking, and avoid multiple evaluation of RTX.
6204
6205 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
6206
6207         * bitmap.c (bitmap_find_bit): Return early if we have the correct
6208         element cached.
6209
6210 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
6211
6212         * profile.c (gen_edge_profiler):  Set alias set before the memory is
6213         used.
6214
6215 2002-05-20  David S. Miller  <davem@redhat.com>
6216
6217         * cselib.c (max_value_regs): New.
6218         (cselib_lookup, cselib_invalidate_regno): Initialize it when
6219         adding new entries to the REG_VALUES table and we are dealing with
6220         a hard register.
6221         (clear_table): Initialize it.
6222         (cselib_invalidate_regno): Use it to determine which hard
6223         registers to scan when mode is not VOIDmode.
6224
6225 2002-05-20  Duraid Madina   <duraid@fl.net.au>
6226
6227         * tradcpp.c (fixup_newlines): Use old-style function header.
6228
6229 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
6230
6231         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
6232
6233 2002-05-20  H.J. Lu  (hjl@gnu.org)
6234
6235         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
6236
6237         * config/mips/mips.h (DFMODE_NAN): Defined.
6238         (SFMODE_NAN): Likewise.
6239
6240 2002-05-20  Dale Johannesen  <dalej@apple.com>
6241
6242         * combine.c (cant_combine_insn_p):  Back out my
6243         previous patch.
6244
6245 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
6246
6247         * params.c: Fix formatting.
6248         * params.h: Likewise.
6249         * predict.c: Likewise.
6250         * prefix.c: Likewise.
6251         * print-rtl.c: Likewise.
6252         * print-tree.c: Likewise.
6253         * profile.c: Likewise.
6254
6255 2002-05-20  H.J. Lu  (hjl@gnu.org)
6256
6257         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
6258
6259 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
6260
6261         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
6262         switches straight on to the assembler, do not abbreviate them.
6263         * config/arm/elf.h (ASM_SPEC): As above.
6264         * config/arm/semi.h (ASM_SPEC): As above.
6265         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
6266         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
6267         -mcpu=xscale on to the assembler by default.
6268         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
6269
6270 2002-05-20  Richard Henderson  <rth@redhat.com>
6271
6272         * cse.c (canon_hash): Reorder do_not_record test.  Always
6273         allow pic_offset_table_rtx.
6274
6275 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
6276
6277         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
6278         (expand_binop): Ditto (3 times).
6279
6280 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
6281
6282         * Makefile.in (distclean): Remove QMTest stuff.
6283         (QMTEST_PATH): New variable.
6284         (QMTESTFLAGS): Likewise.
6285         (QMTESTRUNFLAGS): Likewise.
6286         (QMTEST): Likewise.
6287         (QMTEST_GPP_TESTS): Likewise.
6288         (QMTEST_DIR): Likewise.
6289         (QMTEST_DIR/context): New target.
6290         (qmtest-g++): Likeise.
6291         (qmtest-gui): Likewise.
6292         (QMTEST_DIR/gpp-expected.qmr): Likewise.
6293
6294 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
6295
6296         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
6297         an altivec register if TARGET_ALTIVEC.
6298
6299         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
6300         to ALTIVEC_VECTOR_MODE.
6301         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
6302         (rs6000_va_arg): Vectors may go in registers if they are not
6303         altivec vectors.
6304
6305 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
6306
6307         * protoize.c: Fix formatting.
6308
6309 2002-05-19  Richard Henderson  <rth@redhat.com>
6310
6311         * gensupport.c (init_include_reader): Merge into ...
6312         (process_include): ... here.  Simplify composite path creation.
6313         Plug memory leaks.  Fix file/line number tracking.  Do not
6314         process_define_cond_exec.  Return void.
6315         (process_rtx): Don't check process_include return value.
6316
6317 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6318
6319         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
6320         fields.
6321         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
6322         traversing basic block chain.
6323         (create_basic_block_structure, create_basic_block): Declaration changed.
6324         (link_block, unlink_block): Declare.
6325         * cfg.c (entry_exit_blocks): Initialize new fields.
6326         (link_block, unlink_block): New.
6327         (expunge_block_nocompact): Unlink basic block.
6328         (dump_flow_info): Print prev_bb/next_bb fields.
6329         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
6330         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
6331         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
6332         * cfgrtl.c (create_basic_block_structure, create_basic_block,
6333         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
6334         (verify_flow_info): Check that list agrees with numbering.
6335
6336 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6337
6338         * c-common.c (preprocessing_asm): New macro.
6339         * c-lex.h (builtin_define, builtin_assert): Use pfile.
6340 doc:
6341         * tm.texi: Update.
6342 config/alpha:
6343         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
6344         (CPP_SPEC): Simplify.
6345         (TARGET_CPU_CPP_BUILTINS): Update.
6346         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
6347         (CPP_SPEC): Simplify.
6348         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
6349         (TARGET_OS_CPP_BUILTINS): Update.
6350         * osf.h (CPP_XFLOAT_SPEC): Kill.
6351         (TARGET_OS_CPP_BUILTINS): Update.
6352         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
6353         * osf5.h (CPP_XFLOAT_SPEC): Kill.
6354         * vms.h (CPP_SUBTARGET_SPEC): Kill.
6355         (TARGET_OS_CPP_BUILTINS): Update.
6356
6357 2002-05-19  Richard Henderson  <rth@redhat.com>
6358
6359         * varasm.c (default_binds_local_p): Fix typo.
6360
6361 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6362
6363         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
6364         CONST_INT operand to the correct mode after adding 1 to it.
6365
6366 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
6367
6368         * config.gcc (powerpc-wrs-windiss*): New target.
6369
6370 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6371
6372         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
6373         (ashrdi3): Use it.
6374
6375 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
6376
6377         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
6378         alphasort.
6379         * config.in: Regenerated.
6380         * configure: Regenerated.
6381
6382 2002-05-19  Richard Henderson  <rth@redhat.com>
6383
6384         * target-def.h (TARGET_BINDS_LOCAL_P): New.
6385         * target.h (struct gcc_target): Move boolean fields to the end.
6386         Add binds_local_p.
6387         * varasm.c (default_binds_local_p): New.
6388         * output.h: Declare it.
6389
6390         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
6391         * config/cris/cris.c (cris_encode_section_info): Likewise.
6392         * config/i386/i386.c (i386_encode_section_info): Likewise.
6393         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
6394         * config/sh/sh.c (sh_encode_section_info): Likewise.
6395
6396         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
6397         (TARGET_BINDS_LOCAL_P): New.
6398
6399 2002-05-19  Richard Henderson  <rth@redhat.com>
6400
6401         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
6402         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
6403         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
6404
6405         * toplev.c (display_help): Kill -a -ax help.
6406
6407         * config/1750a/1750a.h, config/alpha/alpha.h,
6408         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
6409         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
6410         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
6411         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
6412
6413         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
6414         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
6415
6416         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
6417         (ix86_output_function_block_profiler): Kill.
6418         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
6419         (m68hc11_function_block_profiler): Kill.
6420         * config/m68hc11/m68hc11-protos.h: Update.
6421         * config/m88k/m88k.c (output_block_profiler): Kill.
6422         (output_function_block_profiler): Kill.
6423         * config/m88k/m88k-protos.h: Update.
6424
6425 2002-05-19  Richard Henderson  <rth@redhat.com>
6426
6427         * system.h (STRIP_NAME_ENCODING): Poison it.
6428         * output.h (STRIP_NAME_ENCODING): Remove.
6429         (default_strip_name_encoding): Declare.
6430         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
6431         * target.h (strip_name_encoding): New.
6432         * varasm.c (default_strip_name_encoding): New.
6433
6434         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
6435         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
6436         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
6437         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
6438         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
6439         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
6440         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
6441         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
6442         config/v850/v850.h: Use the hook, not the macro.
6443
6444         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6445         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
6446         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
6447         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
6448         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
6449         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
6450         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
6451         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
6452         config/v850/v850.c, config/v850/v850.h:
6453         Move STRIP_NAME_ENCODING to out-of-line function and add
6454         TARGET_STRIP_NAME_ENCODING.
6455
6456         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
6457         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
6458         with TARGET_STRIP_NAME_ENCODING referencing existing function;
6459         make function static.
6460
6461         * xcoffout.c: Include target.h
6462         * Makefile.in (xcoffout.o): Update.
6463
6464         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
6465         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
6466         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
6467         reloc argument unused.
6468         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
6469
6470         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
6471         STRIP_NAME_ENCODING docs.
6472
6473 2002-05-19  Andreas Jaeger  <aj@suse.de>
6474
6475         * gengenrtl.c: Add prototype for excluded_rtx.
6476
6477         * real.h: Add prototype for exact_real_truncate.
6478
6479 2002-05-18  Richard Henderson  <rth@redhat.com>
6480
6481         * system.h (ENCODE_SECTION_INFO): Poison it.
6482         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
6483         * target.h (encode_section_info): New.
6484         * varasm.c (make_decl_rtl, output_constant_def): Use it.
6485         * hooks.c (hook_tree_int_void): New.
6486         * hooks.h: Declare it.
6487
6488         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6489         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
6490         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
6491         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
6492         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
6493         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
6494         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6495         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
6496         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
6497         config/mcore/mcore-protos.h, config/mcore/mcore.c,
6498         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
6499         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
6500         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
6501         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
6502         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
6503         referencing existing function.  Make function static.
6504
6505         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
6506         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
6507         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
6508         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
6509         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
6510         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
6511         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
6512         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
6513         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
6514         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
6515         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
6516         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
6517         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
6518         Move ENCODE_SECTION_INFO to out-of-line function and add
6519         TARGET_ENCODE_SECTION_INFO.
6520
6521         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
6522         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
6523
6524         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
6525         from SUBTARGET_*
6526         (switch_to_section): Replace in_rdata case with in_readonly_data.
6527
6528         * config/h8300/h8300.c (h8300_encode_label): Make static.
6529         * config/h8300/h8300-protos.h: Update.
6530
6531         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
6532         from rs6000_encode_section_info; make static.
6533         (rs6000_xcoff_encode_section_info): New.
6534
6535         * config/v850/v850.c (v850_encode_data_area): Make static.
6536         * config/v850/v850-protos.h: Update.
6537
6538         * config/vax/vax.c: Include flags.h.
6539         (vms_select_section): Fix typo.
6540
6541         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
6542         ENCODE_SECTION_INFO docs.
6543
6544 2002-05-18  Richard Henderson  <rth@redhat.com>
6545
6546         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
6547         REGISTER_TARGET_PRAGMAS.
6548         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
6549
6550         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
6551
6552 2002-05-18  Richard Henderson  <rth@redhat.com>
6553
6554         * system.h (SELECT_RTX_SECTION): Poison.
6555         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
6556         * target.h (select_rtx_section): New.
6557         * varasm.c (output_constant_pool): Use it.
6558         (default_select_rtx_section, default_elf_select_rtx_section): New.
6559         * output.h: Declare them.
6560
6561         * config/darwin.h (SELECT_RTX_SECTION): Move ...
6562         * config/darwin.c (machopic_select_rtx_section): ... here.
6563         * config/darwin-protos.h: Update.
6564
6565         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
6566         * config/nextstep.c (machopic_select_rtx_section): ... here.
6567         (nextstep_select_section): Rename variable to avoid macro clash.
6568         * config/nextstep-protos.h: Update.
6569
6570         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
6571         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
6572         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
6573         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
6574         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
6575         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
6576         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
6577         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
6578         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
6579         (SELECT_RTX_SECTION): Remove.
6580
6581         * config/darwin.h, config/elfos.h, config/nextstep.h,
6582         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
6583         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
6584         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
6585         config/sparc/lynx.h, config/xtensa/xtensa.c
6586         (TARGET_ASM_SELECT_RTX_SECTION): New.
6587
6588         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
6589         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
6590         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
6591         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
6592         (ia64_aix_select_rtx_section): New.
6593         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
6594         redefining.
6595         * config/mips/mips.c (mips_select_rtx_section): Make static.
6596         Support ELF SHF_MERGE features.
6597         * config/mips/mips-protos.h: Update.
6598         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
6599         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
6600         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
6601         make static, fall back to default_elf_select_rtx_section.
6602         * config/rs6000/rs6000-protos.h: Update.
6603         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
6604         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
6605         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
6606         * config/romp/romp.c (romp_select_rtx_section): New.
6607         * config/s390/s390.c (s390_select_rtx_section): New.
6608         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
6609         declarations before target macro definition.
6610         (xtensa_emit_call): Use static buffer.
6611         (xtensa_select_rtx_section): New.
6612         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
6613         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
6614         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
6615
6616         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
6617         SELECT_RTX_SECTION docs.
6618
6619 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
6620
6621         * i386.md (movsi/movdi): Fix template.
6622         (sse2 patterns): Set attributes consistently.
6623
6624         * i386.md (pushqi2, ashrqi_*): Fix constraint.
6625
6626 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
6627
6628         * optabs.c (complex_part_zero_p): New.
6629         * (expand_cmplxdiv_straight): Use it.
6630         * (expand_cmplxdiv_wide): Ditto.
6631         * (expand_binop): Ditto.
6632
6633 2002-05-18  Richard Henderson  <rth@redhat.com>
6634
6635         * final.c (HAVE_READONLY_DATA_SECTION): New.
6636         (shorten_branches): Use it instead of ifdefs.
6637         * varasm.c (enum in_section): Add in_readonly_data.
6638         (text_section, data_section): Tidy.
6639         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
6640
6641         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
6642         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
6643         (READONLY_DATA_SECTION): Don't undef.
6644
6645         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
6646         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
6647         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
6648
6649         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
6650         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
6651         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
6652         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
6653
6654         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
6655         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
6656         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6657         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
6658         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
6659         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
6660         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
6661         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
6662         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
6663
6664         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
6665         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
6666         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
6667         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
6668         config/pa/pa64-hpux.h, config/sparc/litecoff.h
6669         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
6670
6671         * config/elfos.h, config/netware.h, config/svr3.h,
6672         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6673         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6674         config/h8300/h8300.h, config/i386/i386-interix.h,
6675         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6676         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
6677
6678         * config/elfos.h, config/netware.h, config/svr3.h,
6679         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6680         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
6681         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6682         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
6683
6684         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
6685         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
6686         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
6687         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
6688         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
6689         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
6690         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
6691         config/rs6000/sysv4.h, config/v850/v850.h
6692         (EXTRA_SECTIONS): Remove in_const/in_rdata.
6693         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
6694
6695         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
6696         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
6697         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
6698         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
6699         * config/alpha/alpha.c (alpha_start_function): Likewise.
6700         (alpha_write_linkage): Likewise.
6701         * config/m32r/m32r.c (m32r_select_section): Likewise.
6702         * config/m88k/m88k.c (m88k_select_section): Likewise.
6703         * config/mips/mips.c (mips_select_rtx_section): Likewise.
6704         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
6705         (rs6000_elf_select_section): Likewise.
6706         * config/v850/v850.c (v850_select_section): Likewise.
6707
6708         * config/1750a/1750a.h, config/i860/sysv3.h
6709         (READONLY_DATA_SECTION_ASM_OP): New.
6710         READONLY_DATA_SECTION_ASM_OP.
6711         * config/i386/interix.c, config/i386/winnt.c
6712         (i386_pe_unique_section): Always use .rdata prefix.
6713         * config/pa/som.h (readonly_data): Always switch to read-only section.
6714         (READONLY_DATA_SECTION): Predicate on flag_pic.
6715         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
6716         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
6717         (READONLY_DATA_SECTION): Update.
6718
6719 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
6720
6721         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
6722         is used without -Wformat.
6723         * c-common.h (warn_format_zero_length): Declare extern.
6724         * c-decl.c (warn_options): Add "format-zero-length".
6725         * c-format.c (warn_format_zero_length): Declare.
6726         (set_Wformat): Set warn_format_zero_length for -Wformat.
6727         (check_format_info): Only warn about zero-length formats if
6728         warn_format_zero_length is true.  Include the format type
6729         name in the warning message.
6730         * doc/invoke.texi: Document -Wformat-zero-length.
6731         * testsuite/gcc.dg/format/zero-length-1.c: New test.
6732
6733 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
6734
6735         * timevar.c: Fix formatting.
6736         * tlink.c: Likewise.
6737         * toplev.c: Likewise.
6738         * tree-dump.c: Likewise.
6739         * tree-inline.c: Likewise.
6740
6741 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6742
6743         * cppinit.c (cpp_post_options): If preprocessed, turn off
6744         traditional.  If traditional, turn off column numbers.
6745         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
6746         * cpptrad.c (handle_newline): Update line_base.
6747         (skip_comment): Handle -Wcomment.
6748
6749 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
6750
6751         * cppinit.c (struct builtin): Remove unused fields.
6752         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
6753         (operator_array): New - was second half of builtin_array.
6754         (init_builtins): Simplify loop over builtin_array/operator_array.
6755
6756 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6757
6758         * defaults.h (UNIQUE_SECTION): Remove.
6759         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
6760
6761 2002-05-17  Richard Henderson  <rth@redhat.com>
6762
6763         * expr.c (init_expr_once): Don't use start/end_sequence.
6764         Use rtx_alloc instead of emit_insn.
6765         * toplev.c (lang_dependent_init): Run init_expr_once here ...
6766         (lang_independent_init): ... not here.
6767
6768 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
6769
6770         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
6771
6772 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6773
6774         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
6775         for fixed registers, possibly used for global register variables.
6776         (initial_elimination_offset, avr_output_function_prologue,
6777         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
6778
6779 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6780
6781         * Makefile.in: Update for cpptrad.c.
6782         * cpphash.h (struct cpp_buffer): New members for buffer
6783         overlays.
6784         (struct cpp_reader): New members for traditional output.
6785         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
6786         * cppinit.c (cpp_create_reader): Set trad_line.
6787         (cpp_destroy): Free trad_out_base if used.
6788         (cpp_read_main_file): Overlay an empty buffer if traditional.
6789         (cpp_finish_options): Don't do builtins.
6790         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
6791         (cpp_handle_option): Handle it.
6792         * cpplex.c (continue_after_nul): New.
6793         (_cpp_lex_direct): Use handle_nul.
6794         * cpplib.h (struct cpp_options): New traditional option.
6795         * cpptrad.c: New file.
6796
6797 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6798
6799         * c-common.c (c_common_init_options): Use C89 for Objective-C,
6800         and set the options flag.
6801         * cppinit.c (lang_flags): Remove objc.
6802         (lang_defaults): Remove OBJC and OBJCXX.
6803         (set_lang): Update.
6804         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
6805         (cpp_handle_option): Remove -+ and -lang-objc++.
6806         For ObjC, just set a flag.
6807         (print_help): Update.
6808         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
6809
6810 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6811
6812         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
6813         bootstrap with -mips3.
6814
6815 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
6816
6817         * final.c: Fix formatting.
6818         * fix-header.c: Likewise.
6819         * flow.c: Likewise.
6820         * fold-const.c: Likewise.
6821         * function.c: Likewise.
6822
6823 2002-05-17  David S. Miller  <davem@redhat.com>
6824
6825         PR c/6689, PR optimization/6615
6826         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
6827         and make it a pointer to rtx.  Update comments.
6828         (update_equiv_regs): When scanning for equivalences, record
6829         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
6830         it while making the equiv replacements.
6831
6832 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6833
6834         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
6835
6836 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6837
6838         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
6839         when encoding visibility into SYMBOL_REF_FLAG.
6840
6841 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
6842
6843         * expr.c (force_operand): Fix reversed move.
6844
6845 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
6846
6847         * doc/install.texi (Testing): Mention two common DejaGnu warnings
6848         that can be ignored.
6849
6850 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6851
6852         * doc/install.texi (Final install): Recommend to install into a
6853         "clean" target directory.
6854
6855 2002-05-17  Richard Henderson  <rth@redhat.com>
6856
6857         * config/ia64/ia64.md: Use braced strings instead of quoted strings
6858         for code blocks.  Tidy whitespace.
6859
6860 2002-05-17  Richard Henderson  <rth@redhat.com>
6861
6862         * hooks.c (hook_tree_bool_false): New.
6863         * hooks.h: Declare it.
6864         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
6865         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
6866         * target.h (select_section, unique_section): New.
6867         (in_small_data_p): New.
6868         * varasm.c (resolve_unique_section): Use hooks instead of macros.
6869         (variable_section, output_constant_def_contents): Likewise.
6870         (default_select_section, default_unique_section): New.
6871         (categorize_decl_for_section, default_elf_select_section): New.
6872         * output.h: Declare them.
6873
6874         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
6875         (TARGET_ASM_SELECT_SECTION): New.
6876         (SELECT_SECTION): Move ...
6877         * config/darwin.c (machopic_select_section): ... here.
6878         * config/darwin-protos.h: Update.
6879
6880         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
6881         (SELECT_SECTION): Move ...
6882         * config/nextstep.c (nextstep_select_section): ... here.
6883         * config/nextstep-protos.h: Update.
6884
6885         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
6886         (TARGET_ASM_SELECT_SECTION): New.
6887         * config/svr3.h (SELECT_SECTION): Remove.
6888
6889         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
6890         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
6891         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
6892         (alpha_encode_section_info): Use it.
6893         * config/alpha/alpha-protos.h: Update.
6894         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
6895         (SELECT_SECTION, UNIQUE_SECTION): Remove.
6896         (TARGET_ASM_SELECT_SECTION): New.
6897         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
6898
6899         * config/arm/pe.h (UNIQUE_SECTION): Remove.
6900         (TARGET_ASM_UNIQUE_SECTION): New.
6901
6902         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
6903         (avr_unique_section): Rename from unique_section; make static.
6904         * config/avr/avr-protos.h: Update.
6905         * config/avr/avr.h (UNIQUE_SECTION): Remove.
6906
6907         * config/c4x/c4x.h (SELECT_SECTION): Remove.
6908
6909         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
6910         (TARGET_ASM_UNIQUE_SECTION): New.
6911         * config/i386/i386-interix.h: Likewise.
6912         * config/i386/win32.h: Likewise.
6913         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
6914         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
6915         * config/i386/sco5.h (SELECT_SECTION): Remove.
6916         (TARGET_ASM_SELECT_SECTION): New.
6917         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
6918
6919         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
6920         instead of SELECT_SECTION.
6921         * config/m68k/dpx2.h: Likewise.
6922         * config/rs6000/lynx.h: Likewise.
6923
6924         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6925         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
6926         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
6927         (ia64_in_small_data_p): New.
6928         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
6929         (ia64_aix_select_section, ia64_aix_unique_section): New.
6930         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
6931         (SELECT_SECTION, UNIQUE_SECTION): Remove.
6932
6933         * config/m32r/m32r.h (SELECT_SECTION): Remove.
6934         (TARGET_ASM_SELECT_SECTION): New.
6935         * config/m32r/m32r.c (m32r_select_section): Take align argument.
6936         * config/m32r/m32r-protos.h: Update.
6937
6938         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
6939         (SELECT_SECTION): Move ...
6940         * config/m88k/m88k.c (m88k_select_section): ... here.
6941
6942         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
6943         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
6944         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
6945         (mcore_unique_section): Make static.
6946         * config/mcore/mcore-protos.h: Update.
6947
6948         * config/mips/elf.h (UNIQUE_SECTION): Remove.
6949         (TARGET_ASM_UNIQUE_SECTION): New.
6950         * config/mips/elf64.h: Likewise.
6951         * config/mips/iris6gld.h: Likewise.
6952         * config/mips/linux.h: Likewise.
6953         * config/mips/mips-protos.h: Update.
6954         * config/mips/mips.c (mips_select_section): Add align argument.
6955         * config/mips/mips.h (SELECT_SECTION): Remove.
6956         (TARGET_ASM_SELECT_SECTION): New.
6957
6958         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6959         * config/mmix/mmix.c (mmix_select_section): Remove.
6960         (mmix_unique_section): Remove.
6961         * config/mmix/mmix-protos.h: Update.
6962
6963         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
6964         (SELECT_SECTION): Move ...
6965         * config/pa/pa.c (pa_select_section): ... here.
6966         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
6967
6968         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
6969         from rs6000_select_section and make static.
6970         (rs6000_elf_unique_section): Similarly.
6971         (rs6000_xcoff_select_section): From xcoff.h.
6972         (rs6000_xcoff_unique_section): Likewise.
6973         * config/rs6000/rs6000-protos.h: Update.
6974         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6975         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
6976         * config/rs6000/xcoff.h: Likewise.
6977
6978         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
6979         (SELECT_SECTION): Move ...
6980         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
6981
6982         * config/v850/v850.h (SELECT_SECTION): Move ...
6983         * config/v850/v850.c (v850_select_section): ... here.
6984         (TARGET_ASM_SELECT_SECTION): New.
6985
6986         * config/vax/vms.h (SELECT_SECTION): Move ...
6987         * config/vax/vax.c (vms_select_section): ... here.
6988         (TARGET_ASM_SELECT_SECTION): New.
6989
6990         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
6991         for the target hooks.
6992
6993 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
6994
6995         * config/arm/arm.c (emit_multi_reg_push): Do not set
6996         RTX_FRAME_RELATED_P on the SEQUENCE.
6997
6998 2002-05-16  Richard Henderson  <rth@redhat.com>
6999
7000         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
7001         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
7002
7003 2002-05-16  Richard Henderson  <rth@redhat.com>
7004
7005         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
7006
7007         * config/ia64/ia64.c (saveable_obstack): Do not declare.
7008
7009 2002-05-16  Richard Henderson  <rth@redhat.com>
7010
7011         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
7012         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
7013         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
7014         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
7015         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
7016         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
7017         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
7018         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
7019         Revert "Basic block renumbering removal", and two followup patches.
7020
7021 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
7022
7023         * lcm.c (optimize_mode_switching): Revert previous change.
7024
7025 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7026
7027         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
7028         with only extant block numbers.
7029
7030 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
7031
7032         * lcm.c (optimize_mode_switching): Fix typo.
7033
7034 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7035
7036         * flow.c (calculate_global_regs_live): Queue blocks in program order.
7037
7038 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7039
7040         * doc/install.texi (Configuration): Document PWDCMD.
7041
7042 2002-05-16  Dale Johannesen  <dalej@apple.com>
7043
7044         * combine.c (cant_combine_insn_p):  Reenable combinations
7045         involving hard regs unless CLASS_LIKELY_SPILLED_P.
7046
7047 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7048
7049         * c-common.c (cb_register_builtins): Handle more built-ins
7050         here rather than in gcc.c specs.
7051         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
7052         (cpp_options): Pass -O flags even when only preprocessing.
7053         * toplev.c (set_fast_math_flags): New prototype.
7054         (fast_math_flags_set_p): New.
7055         (set_no_fast_math_flags): Remove.
7056         (decode_f_option): Update.
7057         * toplev.h (set_fast_math_flags): Update.
7058         (fast_math_flags_set_p): New.
7059         (set_no_fast_math_flags): Remove.
7060 config:
7061         * c4x/c4x.c (c4x_override_options): Update.
7062
7063 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
7064
7065         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
7066         Default-define here.
7067         (builtin_define_with_value): Can now wrap the expansion in
7068         quotation marks if such is wanted.
7069         (cb_register_builtins): Update calls to builtin_define_with_value.
7070         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
7071         here.
7072         (c_common_init): Set options->stdc_0_in_system_headers.
7073         * c-lex.h: Update prototype of builtin_define_with_value.
7074         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
7075         and REGISTER_PREFIX.
7076
7077         * cppinit.c (VERS, ULP, C, X): Kill.
7078         (builtin_array): Remove entries for __VERSION__,
7079         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
7080         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
7081         a constant.
7082         (init_builtins): Kill off a bunch of now-dead code.
7083         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
7084         -fno-leading-underscore.
7085         (cpp_handle_option): Remove code to set user_label_prefix.
7086         (cpp_post_options): Likewise.
7087
7088         * cpplib.h (struct cpp_options): Remove user_label_prefix.
7089         (stdc_0_in_system_headers): New.
7090         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
7091         stdc_0_in_system_headers) too to decide the value of __STDC__.
7092
7093         * tradcpp.c (user_label_prefix): Kill.
7094         (main): Remove code handling -f(no-)leading-underscore.
7095         (initialize_builtins): Don't define __REGISTER_PREFIX__
7096         or __USER_LABEL_PREFIX__.
7097         (install_value): Wrap compound statement in dummy loop so the
7098         macro works properly in an if statement.
7099
7100
7101 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
7102
7103         * loop.h (struct loop_info): Add member has_prefetch.
7104         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
7105         (prescan_loop): Initialize has_prefetch.
7106         (struct prefetch_info): Change prefetch_in_loop and
7107         prefetch_before_loop from bit fields to ints.
7108         (emit_prefetch_instructions): Several small fixes.
7109         (check_dbra_loop): Don't reverse loop that uses prefetch.
7110
7111 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7112
7113         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
7114         * configure.in: Likewise.
7115         * fixinc/check.tpl: Likewise.
7116         * fixinc/fixinc.dgux: Likewise.
7117         * fixinc/fixinc.svr4: Likewise.
7118         * fixinc/fixinc.winnt: Likewise.
7119         * fixinc/fixincl.sh: Likewise.
7120         * fixproto: Likewise.
7121         * configure: Regenerate.
7122
7123 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7124
7125         Basic block renumbering removal:
7126         * basic_block.h (struct basic_block_def): Renamed index to sindex,
7127         added prev_bb and next_bb fields.
7128         (n_basic_blocks): Renamed to num_basic_blocks.
7129         (last_basic_block): New, index of last basic block.
7130         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
7131         traversing basic block chain.
7132         (BLOCK_NUM): index -> sindex.
7133         (create_basic_block_structure, create_basic_block): Declaration changed.
7134         (debug_num2bb): Declare.
7135         (expunge_block_nocompact): Declaration removed.
7136         (link_block, unlink_block, compact_blocks): Declare.
7137         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
7138         * cfg.c (entry_exit_blocks): Initialize new fields.
7139         (clear_edges, alloc_block, expunge_block, cached_make_edge,
7140         redirect_edge_pred, dump_flow_info, dump_edge_info,
7141         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
7142         free_aux_for_edges): Modified.
7143         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
7144         (expunge_block_nocompact): Removed.
7145         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
7146         find_unreachable_blocks, create_edge_list, print_edge_list,
7147         verify_edge_list, flow_edge_list_print, remove_fake_successors,
7148         remove_fake_edges, flow_reverse_top_sort_order_compute,
7149         flow_depth_first_order_compute, flow_preorder_transversal_compute,
7150         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
7151         flow_dfs_compute_reverse_execute): Modified.
7152         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
7153         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
7154         Modified.
7155         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
7156         merge_blocks_move_predecessor_nojumps,
7157         merge_blocks_move_successor_nojumps, merge_blocks,
7158         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
7159         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
7160         * cfglayout.c (skip_insns_after_block, label_for_bb,
7161         record_effective_endpoints, scope_to_insns_finalize,
7162         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
7163         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
7164         cfg_layout_duplicate_bb): Modified.
7165         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
7166         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
7167         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
7168         flow_loops_find, flow_loop_outside_edge_p): Modified.
7169         * cfgrtl.c (create_basic_block_structure, create_basic_block,
7170         flow_delete_block, compute_bb_for_insn, split_block,
7171         try_redirect_by_replacing_jump, redirect_edge_and_branch,
7172         force_nonfallthru_and_redirect, tidy_fallthru_edge,
7173         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
7174         commit_edge_insertions, commit_edge_insertions_watch_calls,
7175         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
7176         purge_all_dead_edges): Modified.
7177         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
7178         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
7179         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
7180         Modified.
7181         * conflict.c (conflict_graph_compute): Modified.
7182         * df.c (FOR_ALL_BBS): Removed.
7183         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7184         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
7185         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
7186         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
7187         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
7188         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
7189         * final.c (compute_alignments, final_scan_insn): Modified.
7190         * flow.c (verify_local_live_at_start, update_life_info,
7191         update_life_info_in_dirty_blocks, free_basic_block_vars,
7192         delete_noop_moves, calculate_global_regs_live,
7193         initialize_uninitialized_subregs, allocate_bb_life_data,
7194         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
7195         mark_used_reg, count_or_remove_death_notes): Modified.
7196         * function.c (thread_prologue_and_epilogue_insns): Modified.
7197         * gcse.c (struct null_pointer_info): Change typo of current_block
7198         to basic_block.
7199         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
7200         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
7201         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
7202         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
7203         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
7204         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
7205         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
7206         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
7207         pre_delete, one_pre_gcse_pass, compute_transpout,
7208         invalidate_nonnull_info, delete_null_pointer_checks_1,
7209         free_code_hoist_mem, compute_code_hoist_vbeinout,
7210         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
7211         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
7212         compute_store_table, build_store_vectors, insert_insn_start_bb,
7213         insert_store, replace_store_insn, free_store_memory, store_motion):
7214         Modified.
7215         * global.c (global_alloc, global_conflicts, mark_elimination,
7216         build_insn_chain): Modified.
7217         * graph.c (print_rtl_graph_with_bb): Modified.
7218         * haifa-sched.c (sched_init): Modified.
7219         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
7220         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
7221         if_convert): Modified.
7222         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
7223         compute_insert_delete, pre_edge_lcm, compute_available,
7224         compute_farthest, compute_nearerout, compute_rev_insert_delete,
7225         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
7226         Modified.
7227         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
7228         * loop.c (loop_dump_aux): Modified.
7229         * predict.c (combine_predictions_for_insn, estimate_probability,
7230         last_basic_block_p, process_note_prediction, process_note_predictions,
7231         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
7232         expensive_function_p, estimate_bb_frequencies,
7233         compute_function_frequency): Modified.
7234         * print-rtl.c (print_rtx): Modified.
7235         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
7236         get_exec_counts, compute_branch_probabilities, compute_checksum,
7237         branch_prob, find_spanning_tree): Modified.
7238         * recog.c (split_all_insns, peephole2_optimize): Modified.
7239         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
7240         convert_regs_1, convert_regs_2, convert_regs): Modified.
7241         * regclass.c (scan_one_insn, regclass): Modified.
7242         * regmove.c (mark_flags_life_zones, regmove_optimize,
7243         combine_stack_adjustments): Modified.
7244         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
7245         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
7246         * reorg.c (dbr_schedule): Modified.
7247         * resource.c (find_basic_block, init_resource_info): Modified.
7248         * sbitmap.c (sbitmap_intersection_of_succs,
7249         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
7250         sbitmap_union_of_preds): Modified.
7251         * sched-deps.c (init_dependency_caches): Modified.
7252         * sched-ebb.c (schedule_ebbs): Modified.
7253         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
7254         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
7255         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
7256         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
7257         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
7258         ssa_const_prop): Modified.
7259         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
7260         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
7261         * ssa.c (remove_phi_alternative, find_evaluations,
7262         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
7263         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
7264         make_regs_equivalent_over_bad_edges,
7265         make_equivalent_phi_alternatives_equival,
7266         compute_conservative_reg_partition,
7267         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
7268         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
7269         Modified.
7270
7271 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
7272
7273         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
7274
7275 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
7276
7277         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
7278         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7279         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
7280         calling CONSTANT_POOL_ADDRESS_P.
7281         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
7282         to decide whether to define __arm__ or __thumb.
7283         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
7284         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7285
7286 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7287
7288         * config/arc/arc.h (CPP_PREDEFINES): Remove.
7289         (CPP_SPEC): Update.
7290         (TARGET_CPU_CPP_BUILTINS): New.
7291
7292 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7293
7294         * cpphash.h (cpp_macro): Move here, and make expansion a union.
7295         * cppmacro.c (cpp_macro): Remove.
7296         (enter_macro_context, replace_args, warn_of_redefinition,
7297         _cpp_create_definition, cpp_macro_definition): Update.
7298
7299 2002-05-16  Jason Merrill  <jason@redhat.com>
7300
7301         * config/mips/mips.c (mips_output_external): Don't do sdata
7302         optimization for a variable with DECL_COMDAT set.
7303
7304 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7305
7306         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
7307         Cleanups for accepting modifiers on pointers.
7308         Fix predicate typos.
7309         Allow long pointers as well as int pointers.
7310
7311 2002-05-15  Richard Henderson  <rth@redhat.com>
7312
7313         * varasm.c (merge_weak): Remove special case for extern and common.
7314
7315 2002-05-15  Matt Hiller  <hiller@redhat.com>
7316
7317         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
7318         XFAILing.
7319         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
7320         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
7321         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
7322         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
7323         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
7324         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
7325
7326 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7327
7328         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
7329
7330 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7331
7332         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
7333         ("altivec_mfvscr"): Read from VSCR.
7334
7335         Add vscr sets for the following insns: altivec_vctuxs,
7336         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
7337         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
7338         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
7339         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
7340         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
7341         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
7342         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
7343         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
7344         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
7345         altivec_vsum2sws, altivec_vsumsws.
7346
7347         * config/rs6000/rs6000.h: Add VSCR fixed register.
7348         (CALL_REALLY_USED_REGISTERS): Add vscr.
7349         (CALL_USED_REGISTERS): Same.
7350         (FIXED_REGISTERS): Same.
7351         (REG_ALLOC_ORDER): Same.
7352         (reg_class): Add VSCR_REGS.
7353         (REG_CLASS_NAMES): Same.
7354         (REG_CLASS_CONTENTS): Same.
7355         (VSCR_REGNO): New.
7356         (REGISTER_NAMES): Add vscr.
7357         (DEBUG_REGISTER_NAMES): Same.
7358         (ADDITIONAL_REGISTER_NAMES): Same.
7359         (FIRST_PSEUDO_REGISTER): Increment.
7360         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
7361
7362 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
7363
7364         * fold-const.c (fold): Fix a typo.
7365
7366 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
7367
7368         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
7369         comparison against the highest or lowest integer value before
7370         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
7371         transformation and that of an unsigned comparison against 0
7372         right after.
7373
7374 2002-05-15  Richard Henderson  <rth@redhat.com>
7375
7376         * varasm.c (merge_weak): Error for any weakening after definition.
7377         Adjust weakening after use warning to catch more cases.
7378         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
7379         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
7380
7381 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
7382
7383         * invoke.texi (-malign-double): Re-add lost warning.
7384
7385         * i386-protos.h (x86_output_mi_thunk): Declare.
7386         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
7387         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
7388
7389         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
7390         when flag_asynchronous_unwind_tables is set.
7391
7392         * flags.h (flag_reorder_functions): Declare.
7393         * function.c (prepare_function_start): Initialize frequnecy.
7394         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
7395         * Makefile.in (predict.o): Add dependency on target.h and params.h
7396         * defaults.h (HOT_TEXT_SECTION_NAME,
7397         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
7398         * predict.c (choose_function_section): New function.
7399         (estimate_bb_frequencies): Use it.
7400         * toplev.c (flag_reorder_functions): New global variable.
7401         (lang_independent_options): New.
7402         (parse_options_and_default_flags): Set.
7403         * varasm.c (assemble_start_function): Bypass functdion alignment
7404         for never executed functions.
7405         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
7406         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
7407         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
7408         Document.
7409
7410         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
7411
7412         * predict.c: Inlude profile.h
7413         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
7414         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
7415         Use the information about maximal counter in the program.
7416
7417         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
7418
7419         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
7420         probably_never_executed_bb_p): New functions.
7421         * cfgcleanup.c (outgoing_edges_match): Use them.
7422         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
7423         (maybe_hot_bb_p, probably_cold_bb_p,
7424         probably_never_executed_bb_p): New functions.
7425
7426         * function.h (function): Add new field function_frequency.
7427         * predict.c (compute_function_frequency): New function.
7428         (estimate_probability): Call it.
7429
7430 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
7431
7432         PR optimization/5172, optimization/5200
7433         * gcse.c (gcse_main): Disable store_motion.
7434
7435 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
7436
7437         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
7438         (c_common_nodes_and_builtins): Use it.
7439         (builtin_define_with_value): New function.
7440         (cb_register_builtins): Define __SIZE_TYPE__,
7441         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
7442         using builtin_define_with_value.  Use consistent notation when
7443         defining __GXX_WEAK__.
7444         (WCHAR_TYPE_SIZE): Don't redefine.
7445         (combine_strings): Don't use WCHAR_TYPE_SIZE.
7446
7447         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
7448         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
7449         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
7450         * tradcpp.c (initialize_builtins): Likewise.
7451         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
7452
7453         * c-lex.h (builtin_define_with_value): Prototype.
7454         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
7455         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
7456         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
7457
7458         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
7459         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
7460         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
7461         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
7462         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
7463         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
7464         config/sparc/sol2-bi.h, config/sparc/sparc.h:
7465         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
7466         to __SIZE_TYPE__ etc from all spec strings. When this makes
7467         extra specs empty, delete them.
7468
7469 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7470
7471         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
7472         for PA8000 or generating dwarf2 call frame information.
7473         (output_call): Remove DO_FRAME_NOTES check from return pointer
7474         optimization.
7475         (following_call): Return 0 when scheduling for PA8000 or generating
7476         dwarf2 call frame information.  Revise comment.
7477
7478 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7479
7480 config/alpha:
7481         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
7482         and __IEEE_FP_INEXACT as appropriate.
7483         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
7484         (CPP_SPEC): Remove ieee defines.
7485         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
7486
7487 2002-05-14  Richard Henderson  <rth@redhat.com>
7488
7489         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
7490         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
7491
7492 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7493
7494         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
7495         (CPP_SPEC): Update.
7496         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
7497         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
7498         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
7499         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
7500         (EXTRA_SPECS): Update.
7501         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
7502         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
7503         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
7504         define TARGET_OS_CPP_BUILTINS if necessary.
7505
7506 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7507
7508         * gcc.c (cpp_options): Must pass -m* and -f* options
7509         to the front end even when only preprocessing.
7510         (cc1_options): Remove redundant -lang-c.
7511         * tradcpp.c (main): Ignore -m options.
7512 objc:
7513         * lang-specs.h: Similarly.
7514
7515 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
7516
7517         * genautomata.c (transform_3): Add code for transformation
7518         `(A,B,...)+C -> A+C,B,...'.
7519
7520 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
7521
7522         * final.c (end_final): Do not output profile_arcs constructor, when
7523         no functions are instrumented.
7524
7525 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
7526
7527         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
7528
7529 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7530
7531         * doc/install.texi: Remove special markup originally required for
7532         HTML generation with texi2html.
7533
7534 2002-05-14  Andreas Schwab  <schwab@suse.de>
7535
7536         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
7537         SELECT_SECTION.
7538         (UNIQUE_SECTION): Define to get small data correctly.
7539
7540         * varasm.c (resolve_unique_section): Add third parameter
7541         flag_function_or_data_sections and use it instead of
7542         flag_function_sections.
7543         (assemble_start_function): Pass flag_function_sections.
7544         (asm_emit_uninitialised): Pass flag_data_sections.
7545         (assemble_variable): Likewise.
7546
7547 2002-05-14  Richard Henderson  <rth@redhat.com>
7548
7549         * config/i386/i386.md: Use define_constants for unspec numbers.
7550         * config/i386/i386.c: Likewise.
7551
7552 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7553
7554         * doc/contrib.texi: Update my entry.
7555
7556 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
7557
7558         * fixinc/inclhack.def (winidss_valist): Limit applicability.
7559         * fixinc/fixincl.x: Regenerated.
7560         * fixinc/tests/base/math.h: Update.
7561         * fixinc/tests/base/testing.h: Likewise.
7562
7563 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
7564
7565         * genattr.c (gen_attr): Don't emit a comma after the last
7566         enumerator.
7567
7568 2002-05-13  Richard Henderson  <rth@redhat.com>
7569
7570         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
7571         by non-local gotos.
7572         * recog.c (peephole2_optimize): Likewise.
7573
7574 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
7575
7576         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
7577         input to O_BINARY.
7578
7579 2002-05-13  Jeffrey A Law  (law@redhat.com)
7580
7581         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
7582         Update prototype and callers.
7583         (propagate_one_insn): Stack pointer adjustments kill MEMs on
7584         the mem_set_list which reference the stack pointer, as do
7585         calls to constant functions as they may clobber outgoing
7586         argument space.
7587
7588         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
7589
7590         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7591         (ia32_multipass_dfa_lookahead): New function.
7592
7593 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7594
7595         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
7596         (translate_options): Remove 'V'.
7597         (process_command): Similarly.
7598 doc:
7599         * invoke.texi: Remove documentation of 'V'.
7600
7601 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
7602
7603         * config/s390/linux.h: Revert 2002-04-22 changes.
7604
7605 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
7606
7607         * config/fr30/fr30.md: Only allow splits of immediate loads
7608         if the destination is a register.
7609
7610 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7611
7612         * Makefile.in (c-common.o, cppinit.o): Update.
7613         * c-common.c: Include except.h.
7614         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
7615         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
7616         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
7617         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
7618         CPP_PREDEFINES): Handle here.
7619 config:
7620         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
7621         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
7622         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
7623         TARGET_OS_CPP_BUILTINS.
7624         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
7625         (CPP_SPEC, EXTRA_SPECS): Update.
7626         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
7627         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
7628         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
7629         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
7630         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
7631 doc:
7632         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
7633         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
7634
7635 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
7636
7637         * emit-rtl.c (global_rtl): Update comment.
7638         (const_double_htab, const_double_htab_hash,
7639         const_double_htab_hash, lookup_const_double): New.
7640         (const_int_htab_hash, const_int_htab_eq): Remove const
7641         qualifiers, which cause tons of warnings with RTL checking on.
7642         (gen_rtx_CONST_DOUBLE): Deleted.
7643         (const_double_from_real_value): New function - bears some
7644         resemblance to the former immed_real_const_1.
7645         (immed_double_const): Moved here from varasm.c and
7646         simplified.
7647         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
7648         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
7649         (gen_rtx): Use immed_double_const.
7650         (init_emit_once): Initialize the const_double_htab.  Use
7651         REAL_VALUE_FROM_INT where possible.  Can now use
7652         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
7653         * varasm.c (struct varasm_status): Remove x_const_double_chain.
7654         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
7655         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
7656         (init_varasm_status, mark_varasm_status): Don't touch
7657         x_const_double_chain.
7658
7659         * output.h: Delete prototype for clear_const_double_mem.
7660         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
7661         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
7662         const_double_from_real_value, not immed_real_const_1, and use
7663         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
7664         CONST_DOUBLE_ATOF.
7665         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
7666         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
7667         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
7668         (gen_rtx_REG): Second arg is unsigned.
7669
7670         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
7671         (excluded_rtx): New, return true for CONST_DOUBLE.
7672         (genmacro): Write nothing for excluded codes.
7673         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
7674         * expr.c (expand_expr): Likewise.
7675         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
7676         CONST_DOUBLE_CHAIN.
7677         * toplev.c (rest_of_compilation): Don't call
7678         clear_const_double_mem.
7679
7680         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
7681         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
7682         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
7683         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
7684         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
7685         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
7686         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
7687         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
7688
7689 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7690
7691         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
7692
7693 2002-05-12  Tom Tromey  <tromey@redhat.com>
7694
7695         * tree.h (copy_node): Don't mention TREE_PERMANENT.
7696
7697 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
7698
7699         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
7700         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
7701         * gensupport.h: Prototype new routines.
7702         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
7703         use of printf.
7704         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
7705         (next_comma_elt): Use scan_comma_elt.
7706
7707         * config/i386/i386.md: Use new attribute notation to break up
7708         long lines in define_attr forms.
7709
7710 2002-05-12  Richard Henderson  <rth@redhat.com>
7711
7712         * expr.c (compress_float_constant): New.
7713         (emit_move_insn): Use it.
7714         (float_extend_from_mem): New.
7715         (init_expr_once): Initialize it.
7716         * real.c (exact_real_truncate): New.
7717
7718         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
7719         dropped into memory; penalize for size.
7720         (RTX_COSTS): FLOAT_EXTEND is free.
7721         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
7722         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
7723
7724 2002-05-12  Richard Henderson  <rth@redhat.com>
7725
7726         * profile.h (profile_info): Add missing extern to declaration.
7727         * profile.c (profile_info): Define it.
7728
7729 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7730
7731         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
7732         used for DImode and TImode.
7733
7734 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
7735
7736         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
7737         fake a newline.
7738
7739 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
7740
7741         * config/rs6000/rs6000.c (rs6000_default_long_calls,
7742         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
7743         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
7744         (rs6000_override_options): Handle -m(no-)longcall.
7745         (init_cumulative_args, output_mi_thunk): Check for both
7746         longcall and shortcall attributes on the function.
7747         (rs6000_attribute_table): Add "shortcall".
7748         (rs6000_handle_longcall_attribute): Update comment.
7749         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
7750         altivec_expand_ternop_builtin): Add default clauses to switches
7751         to silence warnings.
7752
7753         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
7754         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
7755         (TARGET_OPTIONS): Add longcall and no-longcall.
7756
7757         * config/rs6000/rs6000.md (call_nonlocal_sysv,
7758         call_value_nonlocal_sysv): Split by alternatives.  One pair
7759         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
7760         the call cookie.  The other pair accepts only LR/CTR and has
7761         no restriction.
7762
7763         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
7764         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
7765         tmake_file.
7766         * config/rs6000/rs6000-c.c: New file.
7767         * config/rs6000/t-rs6000-c-rule: New file.
7768         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
7769         Prototype rs6000_pragma_longcall.
7770
7771         * doc/extend.texi: Document shortcall attribute.
7772         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
7773
7774 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7775
7776         * reorg.c (dbr_schedule): Remove unnecessary test.
7777
7778 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
7779
7780         * i386.md (testsi to testqi spliters): New.
7781
7782         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
7783
7784         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
7785
7786         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
7787
7788         * basic-block.h: New flag EDGE_CAN_FALLTHRU
7789         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
7790         that can be made fallthru.
7791
7792         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
7793
7794         * cfglayout.c (cleanup_unconditional_jumps): New static function.
7795         (cfg_layout_initialize): Use it.
7796
7797 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7798
7799         * config/avr/avr.c (avr_mcu_types): Update supported devices.
7800         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7801         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7802
7803 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
7804
7805         * dbxout.c: Fix formatting.
7806         * dependence.c: Likewise.
7807         * df.c: Likewise.
7808         * diagnostic.c: Likewise.
7809         * doloop.c: Likewise.
7810         * dominance.c: Likewise.
7811         * doschk.c: Likewise.
7812         * dwarf2asm.c: Likewise.
7813         * dwarf2out.c: Likewise.
7814         * dwarfout.c: Likewise.
7815
7816 2002-05-10  Richard Henderson  <rth@redhat.com>
7817
7818         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
7819         Convert integers constants as needed.  Replace "nwords" field with
7820         "sizeof_bb".
7821         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
7822         * function.h: Fix typo in comment.
7823         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
7824
7825 2002-05-10  Roger Sayle  <roger@eyesopen.com>
7826
7827         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
7828         into the equivalent (signed char)c > 0.
7829
7830 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
7831
7832         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
7833         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
7834         (struct prefetch_info): Fix spelling of member bytes_accessed.
7835         (emit_prefetch_instructions): Make dump messages more regular;
7836         restructure code to add more dump messages; use new macros for
7837         heuristics. (There are no code generation changes in any of this).
7838
7839 2002-05-10  David S. Miller  <davem@redhat.com>
7840
7841         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
7842         (struct rtx_def): Update unchanging flag comment.
7843         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
7844         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
7845         to be handled to INSN too.
7846         (dbr_schedule): Likewise.
7847         * resource.c (next_insn_no_annul): Likewise.
7848
7849         * cse.c (rtx_cost): Remove multiplication by power of 2 special
7850         casing.
7851
7852 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7853
7854         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
7855         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
7856         (possibly) work around broken /bin/sh.
7857
7858 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7859
7860         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
7861         . as N64/N32 libgcc_s.so subdirs.
7862
7863 2002-05-10  David S. Miller  <davem@redhat.com>
7864
7865         * config/sparc/sparc.md: Use define_constants for unspec numbers.
7866
7867         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
7868         more accurately.
7869         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
7870         comment.
7871         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
7872         * doc/rtl.texi: Document these macros more accurately.
7873         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
7874         JUMP_INSNs and CALL_INSNs.
7875         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
7876         or INSN_FROM_TARGET_P if the code is appropriate.
7877
7878 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7879
7880         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
7881         before using SYMBOL_REF_FLAG (addr).
7882
7883         * config/avr/avr-protos.h (avr_io_address_p): Declare.
7884         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
7885         Make non-static.  Update all callers.
7886         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
7887         New insns to clear/set/test a single bit in I/O address space.
7888
7889 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7890
7891         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
7892
7893 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
7894
7895         * Makefile.in: Update.
7896         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
7897         builtin_define_std): New.
7898         (c_common_init): Register CPP builtins callback.
7899         * c-common.h (flag_iso, flag_undef): New.
7900         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
7901         * c-lex.c: Don't include target.h.
7902         (cb_register_builtins): Move to c-common.c.
7903         (init_c_lex): Don't register hook here.
7904         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
7905         (cpp_define, cpp_assert): Remove.
7906         * gcc.c (cc1_options): Pass -undef to front end.
7907         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
7908         (TARGET_INITIALIZER): Update.
7909         * target.h (struct cpp_reader): Don't predeclare.
7910         (struct gcc_target): Remove cpp builtin hook.
7911         * tree.c (default_register_cpp_builtins): Remove.
7912 doc:
7913         * tm.texi: Update.
7914
7915 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
7916
7917         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
7918
7919 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7920
7921         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
7922         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
7923
7924 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
7925
7926         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
7927         * config/sparc/libgcc-sparc-glibc.ver: New file.
7928         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
7929         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
7930
7931 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
7932
7933         PR target/6429
7934         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
7935         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
7936         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
7937         base multilibs.
7938         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
7939         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
7940         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
7941         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
7942
7943 2002-05-09  Richard Henderson  <rth@redhat.com>
7944
7945         * config/ia64/ia64.md: Use define_constants for unspec numbers.
7946         * config/ia64/ia64.c: Likewise.
7947
7948 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
7949
7950         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
7951         (save_restore_insns): Likewise.
7952         (mips_expand_prologue, mips_expand_epilogue): Update callers.
7953         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
7954
7955 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
7956
7957         * athlon.md, k6.md, pentium.md, ppro.md): New files.
7958         * i386.md: Move scheduling information into new files.
7959
7960         * i386.md (type attribute): Add "rotate" for rotate insns.
7961         (rotate insns): Set type to "rotate".
7962         (various attributes and function units): Treat rotate like shift.
7963         (pent_pair attribute): Only rotates by one bit position are
7964         pairable.
7965         (sbb insns): Explicitly set pent_pair attribute on a couple
7966         that were missing it.
7967
7968 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
7969
7970         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
7971         make sure that buffer starts on odd word address.
7972         (sh_va_arg): Skip odd fp registers when reading a double precision
7973         value.
7974
7975 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
7976
7977         * tree.h (preserve_data, object_permanent_p, type_precision):
7978         Remove.
7979
7980 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
7981
7982         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
7983         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
7984 doc:
7985         * cpp.texi: Update for removal of obsolete features.
7986
7987 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
7988                           Jeffrey A Law  (law@redhat.com)
7989
7990         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
7991         the DFA interface for Pentium processors.
7992         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
7993         (attr_pent_pair, ix86_pent_find_pair): Remove.
7994         (ix86_sched_reorder_pentium): Remove.
7995         (ix86_sched_reorder): Remove reordering for Pentium.
7996         * i386.md (Pentium scheduling): Rewrite using DFA description.
7997
7998 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
7999
8000         * cfganal.c (can_fallthru): Fix fast path.
8001         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
8002         with edges to the next block.
8003
8004 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
8005                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
8006
8007         * final.c (end_final): Use C trees to output data structures for profiling.
8008
8009         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
8010         (profile.o): New dependency profile.h
8011         (final.o): New dependency profile.h
8012         * profile.h: New file. New global structure profile_info.
8013         * final.h (count_edges_instrumented_now): Declare.
8014         (current_function_cfg_checksum): Declare.
8015         (function_list): New structure.
8016         (functions_head, functions_tail): New static variables.
8017         (end_final): Emits more data, removed some -ax stuff.
8018         (final): Stores function names and chcksums.
8019         * gcov-io.h (__write_gcov_string): New function.
8020         (__read_gcov_string): New function.
8021         * gcov.c (read_profile): New function.
8022         (create_program_flow_graph): Uses read_profile instead of reading
8023         da_file.
8024         (read_files): Removed da_file checking, it's done by read_profile now.
8025         * libgcc2.c (bb_function_info): New structure.
8026         (bb): New field in structure, removed some -ax stuff.
8027         (__bb_exit_func): Changed structure of da_file.
8028         * profile.c (count_edges_instrumented_now): New global variable.
8029         (current_function_cfg_checksum): New global variable.
8030         (max_counter_in_program): New global variable.
8031         (get_exec_counts): New function.
8032         (compute_checksum): New function.
8033         (instrument_edges): Sets count_edges_instrumented_now.
8034         (compute_branch_probabilities): Uses get_exec_counts instead of
8035         reading da_file.
8036         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
8037         (init_branch_prob): Removed da_file checking, done in get_exec_counts
8038         now.
8039         (end_branch_prob): Removed da_file checking, done in get_exec_counts
8040         now.
8041         * gcov.texi: Updated information about gcov file format.
8042
8043 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
8044
8045         * sbitmap.c: Fix formatting.
8046         * scan.c: Likewise.
8047         * scan-decls.c: Likewise.
8048         * sched-deps.c: Likewise.
8049         * sched-ebb.c: Likewise.
8050         * sched-rgn.c: Likewise.
8051         * sched-vis.c: Likewise.
8052         * sdbout.c: Likewise.
8053         * sibcall.c: Likewise.
8054         * simplify-rtx.c: Likewise.
8055         * ssa.c: Likewise.
8056         * ssa-ccp.c: Likewise.
8057         * ssa-dce.c: Likewise.
8058         * stmt.c: Likewise.
8059         * stor-layout.c: Likewise.
8060         * stringpool.c: Likewise.
8061
8062 2002-05-09  David S. Miller  <davem@redhat.com>
8063
8064         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
8065
8066 2002-05-07  David S. Miller  <davem@redhat.com>
8067
8068         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
8069         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
8070         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
8071         library implementation clobbers the output before the inputs
8072         are fully consumed, use stack temporary for the output.
8073
8074 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
8075
8076         * config/netbsd.h (CPP_SPEC): Remove.
8077         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
8078         * config/i386/netbsd.h (CPP_SPEC): Define.
8079         * config/ns32k/netbsd.h (CPP_SPEC): Define.
8080         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
8081         * config/sparc/netbsd.h (CPP_SPEC): Define.
8082         * config/vax/netbsd.h (CPP_SPEC): Define.
8083
8084 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
8085
8086         * read-rtl.c: Fix formatting.
8087         * real.c: Likewise.
8088         * recog.c: Likewise.
8089         * regclass.c: Likewise.
8090         * regmove.c: Likewise.
8091         * reg-stack.c: Likewise.
8092         * reload1.c: Likewise.
8093         * reload.c: Likewise.
8094         * resource.c: Likewise.
8095         * rtlanal.c: Likewise.
8096         * rtl.c: Likewise.
8097         * rtl-error.c: Likewise.
8098
8099 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8100
8101         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
8102         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
8103
8104 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
8105
8106         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
8107         use __SSE2__ macro instead.
8108         * config/i386/xmmintrin.h: Likewise.
8109
8110 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
8111
8112         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
8113         and use it in all invocations of these macros.  Clean up comments.
8114         * rtl.c (rtl_check_failed_flag): Add an argument for the name
8115         of the flag access macro whose check failed.
8116         * doc/rtl.texi (Flags): Document additional flag uses.
8117
8118 2002-05-08  Robert Spier <rspier@pobox.com>
8119             Neil Booth  <neil@daikokuya.demon.co.uk>
8120
8121         PR preprocessor/6521
8122         * cppfiles.c (handle_missing_header): Don't do anything
8123         different for <> includes.
8124 doc:
8125         * cppopts.texi: Update documentation for -MG.
8126
8127 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
8128
8129         * cpplex.c (cpp_interpret_charconst): Truncate as well as
8130         sign-extend.
8131 doc:
8132         * cpp.texi: Clarify multichar charconst valuation.
8133
8134 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
8135
8136         * doc/invoke.texi: Document -mwindiss option.
8137
8138 2002-05-08  Jason Merrill  <jason@redhat.com>
8139
8140         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
8141
8142         * dwarf2out.c (gen_type_die): Abort on broken recursion.
8143
8144         PR c++/6381
8145         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
8146         REAL_CST.
8147
8148 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
8149
8150         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
8151         little-endian multilibs to override arm/thumb multilibs.
8152         Do not build hardware floating point multilibs, nor apcs-26
8153         multilibs for the Thumb.
8154
8155 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
8156
8157         PR c/6569.
8158         * varasm.c (mark_weak): New function.
8159         (merge_weak): Use it.  Do not call declare_weak.
8160         (declare_weak): Use merge_weak.
8161
8162 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
8163
8164         * cse.c (dead_libcall_p): Update counts.
8165         (delete_trivially_dead_insns): Update call of dead_libcall_p.
8166
8167 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
8168
8169         * cfglayout.c (function_tail_eff_head): Rename to ...
8170         (function_footer): ... this one.
8171         (unlink_insn_chain): New functions.
8172         (label_for_bb): Only call block_label and emit debug message.
8173         (record_effective_endpoints): Actually unlink the headers and footers.
8174         (fixup_reorder_cahin): Re-insert the unlinked sequences.
8175         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
8176         * cfglayout.h (struct reorder_block_def): New fields footer/header;
8177         remove eff_head/eff_end.
8178         * rtl.h (set_first_insn): Declare.
8179         * emit-rtl.c (set_first_insn): New function.
8180
8181         * cfglayout.c (fixup_reorder_chain): Dump duplicated
8182         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8183         cfg_layout_duplicate_bb): New global function.
8184         (duplicate_insn_chain): New static function.
8185         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8186         cfg_layout_duplicate_bb): Declare.
8187         (struct reorder_block_def): Add "original" field.
8188         * emit-rtl.c (emit_copy_of_insn_after): New function.
8189         * rtl.h (emit_copy_of_insn_after): Declare.
8190
8191         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
8192         (fixup_reorder_chain): properly handle edges to exit block.
8193
8194 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8195                                Jan Hubicka  <jh@suse.cz>
8196
8197         * basic-block.h (note_prediction_to_br_prob): declare.
8198         * c-semantics.c: Inlucde predit.h
8199         (expand_stmt): predict GOTO_STMT as not taken.
8200         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
8201         (cleanup_cfg): Do not free tail_recursion_list.
8202         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
8203         (flow_delete_block): Kill predictions past end of basic block.
8204         * output.h (delete_unreachable_blocks): Declare.
8205         * predict.c (predicted_by_p, process_note_predictions,
8206         process_note_prediction, last_block_p): New function.
8207         (estimate_probability): Bypass loop on PRED_CONTINUE;
8208         do not handle noreturn heuristics; kill PRED_RETURN; add
8209         PRED_EARLY_RETURN.
8210         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
8211         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
8212         * predict.h (IS_TAKEN): New constant.
8213         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
8214         * rtl.c (NOTE_INSN_PREDICTION): New.
8215         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
8216         New macro.
8217         (insn_note): add NOTE_INSN_PREDICTION.
8218         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
8219         CFG; free tail_recursion_label_list.
8220         * stmt.c: Include predict.h;
8221         (return_prediction): New.
8222         (expand_value_return): Use it.
8223         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
8224
8225 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
8226
8227         * config/mips/mips.md: Name the unspecs with define_constant.
8228         (*HILO_delay): Rename to 'hilo_delay' (no star).
8229         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
8230         (reload_outdi, reload_outsi): Likewise.
8231
8232 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
8233
8234         * toplev.c: Fix formatting.
8235
8236 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
8237
8238         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
8239         * configure.in (ac_rtlflag_checking): New.
8240         * doc/install.texi (--enable-checking): Document RTL flag checking.
8241
8242 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
8243
8244         * c-common.c (c_common_init): Set options->unsigned_wchar.
8245         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
8246         group target dependencies.
8247         (init_builtins, cpp_handle_option): Update.
8248         * cpplex.c (cpp_interpret_charconst): Update.
8249         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
8250         signed_char to unsigned_char, group target dependencies.
8251         * defaults.h (WCHAR_UNSIGNED): Remove.
8252         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
8253 config:
8254         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
8255         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
8256         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
8257         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
8258         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
8259 doc:
8260         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
8261
8262 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
8263
8264         * fixinc/inclhack.def (windiss_math1): New fix.
8265         (windiss_math2): Likewise.
8266         (windiss_valist): Likewise.
8267         * fixinc/fixincl.x: Regenerated.
8268
8269 2002-05-07  Andreas Jaeger  <aj@suse.de>
8270
8271         * genautomata.c (output_internal_min_issue_delay_func): Add
8272         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
8273         (output_internal_trans_func): Likewise.
8274
8275 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
8276
8277         * pa.c (hppa_profile_hook): Use force_reg to get the address
8278         of the profile hook into an appropriate pseudo register.
8279
8280 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
8281
8282         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
8283         (LINK_START_SPEC): Handle it.
8284         (LINK_OS_SPEC): Likewise.
8285         (CPP_SPEC): Likewise.
8286         (STARTFILE_SPEC): Likewise.
8287         (LIB_SPEC): Likewise.
8288         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
8289         all platforms.
8290         (CRTSAVRES_DEFAULT_SPEC): New macro.
8291         (LIB_WINDISS_SPEC): New macro.
8292         (CPP_OS_WINDISS_SPEC): Likewise.
8293         (STARTFILE_WINDISS_SPEC): Likewise.
8294         (ENDFILE_WINDISS_SPEC): Likewise.
8295         (LINK_START_WINDISS_SPEC): Likewise.
8296         (LINK_OS_WINDISS_SPEC): Likewise.
8297         * config/rs6000/windiss.h: New file.
8298
8299 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
8300
8301         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
8302
8303 2002-05-06  David S. Miller  <davem@redhat.com>
8304
8305         * config/sparc/sparc.md (shift insns): Do not mask off
8306         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
8307         take care of it.
8308
8309 2002-05-06  Richard Henderson  <rth@redhat.com>
8310
8311         PR c++/6212
8312         * expr.c (highest_pow2_factor_for_type): New.
8313         (expand_assignment): Use it.
8314
8315 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
8316
8317         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
8318         unspec_volatile.
8319         ("altivec_mfvscr"): Same.
8320
8321 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
8322
8323         * rtl.h (struct rtx_def): Update comments.
8324         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
8325         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
8326         RTL_FLAG_CHECK macros with list of expected RTL codes.
8327         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
8328         (rtl_check_failed_flag): New.
8329         * reload1.c (reload): Use REG macro before changing rtx to MEM.
8330         (reload_cse_noop_set_p): Check rtx code before using access macro.
8331         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
8332         before using access macro.
8333
8334 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
8335
8336         * doc/rtl.texi (Flags): Update to reflect current usage.
8337
8338 2002-05-06  Roger Sayle  <roger@eyesopen.com>
8339
8340         PR opt/3995
8341         * fold-const.c (sign_bit_p): New function.
8342         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
8343         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
8344         Reapply fold when converting (A & C) == C into (A & C) != 0.
8345         (fold_binary_op_with_conditional_arg): Fix typo in comment.
8346
8347 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
8348
8349         * c-common.c (warn_multichar): New.
8350         (c_common_init): Set CPP's warn_multichar.
8351         * c-common.h (warn_multichar): New.
8352         * c-decl.c (warn_multichar): Remove.
8353         * c-lex.c (lex_charconst): Update.
8354         * c-tree.h (warn_multichar): Remove.
8355         * cppexp.c (eval_token): Sign-extend charconst value.
8356         * cppinit.c (cpp_create_reader): Set warn_multichar.
8357         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
8358         each character.  Update prototype.  Sign-extend the result.
8359         * cpplib.h: Fix conditions.
8360         (struct cpp_options): Add new warning flag.
8361         (cpp_interpret_charconst): Update prototype.
8362 doc:
8363         * cpp.texi: Update documentation.
8364
8365 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
8366
8367         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
8368         Fix typo in usage of allof instead of unit.
8369
8370 2002-05-06  Richard Henderson  <rth@redhat.com>
8371
8372         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
8373         and any jump or call for IN.
8374
8375 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
8376
8377         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
8378         -msse2.
8379         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
8380
8381 2002-05-06  Roger Sayle  <roger@eyesopen.com>
8382
8383         * fold-const.c (lshift-double): Cast the high word to an unsigned
8384         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
8385         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
8386         avoid compiler warning.  (fold): Remove redundant code from
8387         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
8388
8389 2002-05-06  Jeff Law  <law@redhat.com>
8390
8391         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
8392         * pa.c (pa_adjust_cost): Remove all true dependency cost
8393         adjustments.  Also remove support for non-DFA scheduling.
8394         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
8395         to adjust true dependency costs.  Update various comments.
8396         (7100lc, 7200, 7300 scheduling): Simplify by combining the
8397         FP ALU & MPY units into a single unit.
8398
8399 2002-05-06  Catherine Moore  <clm@redhat.com>
8400
8401         * config/v850/v850.c (compute_register_save_size): Make sure
8402         to count all of the registers that will be saved.
8403
8404 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
8405
8406         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
8407
8408 2002-05-06  David S. Miller  <davem@redhat.com>
8409
8410         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
8411         allow result to overlap input operands in memory.
8412
8413 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
8414
8415 doc:
8416         * cpp.texi: Update multichar charconst docs.
8417
8418 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
8419
8420         * cpplex.c (cpp_interpret_charconst): Sign-extend each
8421         character.  Don't ignore excess characters.  Treat
8422         multicharacter character constants as signed.
8423         (cpp_parse_escape): Clarify diagnostic.
8424
8425 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
8426
8427         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
8428         use add instead of shift.
8429         (ashldi3_sp64): Likewise.
8430         (ashlsi3_const1, ashldi3_const1): Remove.
8431         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
8432         * config/sparc/sparc.c (const1_operand): New.
8433
8434 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
8435
8436         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
8437
8438 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
8439
8440         PR target/6561
8441         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
8442
8443 2002-05-05  Richard Henderson  <rth@redhat.com>
8444
8445         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
8446         memory latency adjustments.
8447         (alpha_variable_issue): Remove.
8448         (alpha_use_dfa_pipeline_interface): New.
8449         (alpha_multipass_dfa_lookahead): New.
8450         * config/alpha/alpha.md: Remove define_function_unit scheduling;
8451         include new dfa scheduling.
8452         (attr type): Add none.
8453         (blockage): Use it.
8454         * config/alpha/ev4.md: New.
8455         * config/alpha/ev5.md: New.
8456         * config/alpha/ev6.md: New.
8457
8458 2002-05-05  David S. Miller  <davem@redhat.com>
8459
8460         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
8461
8462 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
8463
8464         * cse.c: Fix formatting.
8465         * emit-rtl.c: Likewise.
8466
8467 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
8468
8469         * genautomata.c (initiate_states): Add additional guard to
8470         initialize `units_array'.
8471
8472 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
8473
8474         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
8475         process_unit_to_form_the_same_automaton_unit_lists,
8476         form_the_same_automaton_unit_lists
8477         check_unit_distributions_to_automata): New prototypes and
8478         functions.
8479         (check_automata): Rename it into `check_automata_insn_issues'.
8480         (unit_decl): New fields `the_same_automaton_unit' and
8481         `the_same_automaton_message_reported_p'.
8482         (unit_decl_t): New typedef.
8483         (the_same_automaton_lists): New gloval variable.
8484         (unit_regexp, unit_set_el, units_array, units_cmp,
8485         output_get_cpu_unit_code_func): Use the typedef.
8486         (evaluate_max_reserv_cycles): Increment
8487         `description->max_insn_reserv_cycles'.
8488         (initiate_states): Don't increment `max_cycles_num'.
8489         (transform_insn_regexps): Move code around transformation of
8490         regexps from `generate'.
8491         (generate): Remove call of `transform_insn_regexps'.
8492         (expand_automata): Call `transform_insn_regexps' and
8493         `check_unit_distributions_to_automata'.  Check errors before
8494         `generate'.
8495
8496         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
8497         automaton `ultrasparc3_1'.
8498
8499 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
8500
8501         * c-common.c (c_common_init): Set up CPP arithmetic.
8502         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
8503         something reasonable for the host.
8504         (sanity_checks): Add checks.
8505         (cpp_read_main_file): Call sanity_checks() from here...
8506         (cpp_post_options): ... not here.
8507         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
8508         * cpplib.h (struct cpp_options): New member int_precision.
8509
8510 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8511
8512         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
8513
8514 2002-05-04  David S. Miller  <davem@redhat.com>
8515
8516         * config/sparc/linux.h, config/sparc/linux64.h
8517         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
8518
8519         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
8520         more RTX codes.
8521         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
8522
8523         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
8524         of SETs.
8525
8526 2002-05-05  Tim Josling  <tej@melbpc.org.au>
8527
8528         * treelang; New directory for new sample language treelang.
8529
8530 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8531
8532         * Makefile.in (c-lex.o): Update.
8533         * c-lex.c: Include target.h.
8534         (cb_register_builtins): New.
8535         (init_c_lex): Set builtins callback.
8536         * c-lex.h (cpp_define, cpp_assert): New prototypes.
8537         * cppinit.c (init_builtins): Use callback, including for
8538         GXX_WEAK.
8539         * cpplib.h (struct cpp_callbacks): New member.
8540         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
8541         (TARGET_INITIALIZER): Update.
8542         * target.h (struct gcc_target): New hook.
8543         * tree.c (default_register_cpp_builtins): New.
8544         * tree.h (default_register_cpp_builtins): New.
8545 doc:
8546         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
8547
8548 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8549
8550         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
8551         (cpp_post_options): Move sanity checks to...
8552         (sanity_checks): New.
8553         * cpplex.c (maybe_read_ucs): Fix prototype.
8554         (parse_string, cpp_parse_escape): Cast for %c format specifier.
8555         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
8556         if necessary.
8557
8558 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
8559
8560         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
8561         builtins.  Use V2DI patterns instead of TI for logical operations.
8562         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
8563         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
8564         (ix86_expand_builtins): Change the pattern used for movntdq.
8565         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
8566         sse2_nandv2di3): New patterns.
8567         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
8568         on operands.
8569         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
8570         (cvtdq2pd): Correct mode on operand 1.
8571         (sse2_umulsidi3): Describe without unspec.
8572         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
8573         machine modes.
8574         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
8575         (ashlv2di3): Likewise, from sse2_ashlv2di3.
8576         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
8577         ashlv4si3, ashlv2di3): Use SImode for shift count.
8578         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
8579         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
8580         New patterns.
8581         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
8582         New typedefs.
8583         (__m128i, __m128d): New macros.
8584         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
8585         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
8586         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
8587         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
8588         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
8589         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
8590         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
8591         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
8592         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
8593         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
8594         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
8595         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
8596         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
8597         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
8598         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
8599         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
8600         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
8601         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
8602         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
8603         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
8604         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
8605         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
8606         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
8607         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
8608         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
8609         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
8610         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
8611         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
8612         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
8613         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
8614         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
8615         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
8616         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
8617         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
8618         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
8619         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
8620         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
8621         functions.
8622         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
8623         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
8624
8625 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
8626
8627         * dwarf2out.c: Fix formatting.
8628         * varasm.c: Likewise.
8629
8630 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
8631
8632         PR c/6543
8633         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
8634         clobber and use result as temporary value.
8635
8636 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
8637
8638         * expr.c (force_operand): Use expand_simple_* to handle more
8639         cases.
8640
8641 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8642
8643         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
8644         and sign-extension.
8645         (lex_charconst): Update for change in prototype of
8646         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
8647         appropriately.
8648         * cpphash.h (BITS_PER_CPPCHAR_T): New.
8649         * cppinit.c (cpp_create_reader): Initialize them for no
8650         change in semantics.
8651         (cpp_post_options): Add sanity checks.
8652         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
8653         and truncation issues.  Calculate in type cppchar_t.
8654         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
8655         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
8656         run-time dependent precision correctly.  Return whether the
8657         result is signed or not.
8658         * cpplib.c (dequote_string): Use cppchar_t; update.
8659         * cpplib.h (cppchar_signed_t): New.
8660         struct cpp_options): New precision members.
8661         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
8662         * cppexp.c (eval_token): Update.
8663
8664 2002-05-03  David S. Miller  <davem@redhat.com>
8665
8666         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
8667         * config/sparc/sparc.c (sparc_rtx_costs): New function
8668         implementing RTX_COSTS and CONST_COSTS.
8669         * config/sparc/sparc.h (CONST_COSTS): Delete.
8670         (RTX_COSTS_CASES): Define.
8671         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
8672         the work.
8673
8674         * config/sparc/sparc.md (DFA schedulers): Split out...
8675         * config/sparc/cypress.md, config/sparc/hypersparc.md,
8676         config/sparc/sparclet.md, config/sparc/supersparc.md,
8677         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
8678
8679         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
8680         checks on it, always defined for Sparc.
8681
8682         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
8683         Tweak, and add more detailed comments.
8684
8685 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
8686
8687         * Re-apply patch accidentally reverted with
8688         DFA scheduler merge: remove all rules and variables to slurp
8689         source files out of libiberty and rebuild them with HOST_CC.
8690         ($(HOST_PREFIX_1)varray.o): New rule.
8691         (genattrtab rule): Word wrap.
8692
8693 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
8694
8695         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
8696         (CPP_SUBTARGET_SPEC): Define.
8697         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
8698         cpp_subtarget specs.
8699         (CPP_SPEC): Redefine to include %(cpp_subtarget).
8700
8701 2002-05-03  David S. Miller  <davem@redhat.com>
8702
8703         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
8704         * target.h (struct gcc_target): Delete cycle_display member.
8705
8706         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
8707         (rtx_needs_barrier): Delete reference to cycle_display unspec.
8708         (ia64_sched_reorder2): Mention need for cycle display handling
8709         once such notes exist.
8710
8711 2002-05-03  Richard Henderson  <rth@redhat.com>
8712
8713         * real.c (etoasc): Strip most trailing zeros for clarity.
8714         * sched-vis.c: Include real.h.
8715         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
8716         * Makefile.in (sched-vis.o): Add real.h.
8717
8718 2002-05-03  David S. Miller  <davem@redhat.com>
8719
8720         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
8721         no longer needed.
8722
8723 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
8724
8725         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
8726         when we get an out of range literal.
8727         (altivec_expand_ternop_builtin): Same.
8728         (altivec_expand_unop_builtin): Same.
8729         (altivec_expand_builtin): Same, for dss.
8730         (altivec_expand_builtin): Use trees instead of rtl when
8731         determining literal argument validity.
8732
8733 2002-05-03  David S. Miller  <davem@redhat.com>
8734
8735         Delete cycle display scheduling hook.
8736         * config/ia64/ia64.c (ia64_cycle_display,
8737         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
8738         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
8739         and use emit_insn_before instead of ia64_emit_insn_before.
8740         * config/ia64/ia64.md (unspec usage): Delete cycle display.
8741         (cycle_display): Delete insn pattern.
8742         * config/sparc/sparc.md (unspec usage): Delete cycle display.
8743         (cycle_display): Delete insn pattern.
8744         * config/sparc/sparc.c (sparc_cycle_display,
8745         TARGET_SCHED_CYCLE_DISPLAY): Delete.
8746         * doc/md.texi (cycle_display): Don't mention.
8747         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
8748
8749 2002-05-03  Richard Henderson  <rth@redhat.com>
8750
8751         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
8752         * recog.h: Declare them.
8753
8754         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
8755         * config/sparc/sparc.md: Use store_data_bypass_p instead.
8756         * config/sparc/sparc-protos.h: Update.
8757
8758 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
8759
8760         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
8761         -D__arch64__.  Add -D_LP64.
8762         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
8763         from sparc.h.
8764         (CPP_ARCH64_SPEC): Likewise.
8765         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
8766         (NO_BUILTIN_SIZE_TYPE): Undef.
8767
8768 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
8769
8770         * genautomata.c (min_issue_delay_pass_states): Change return type
8771         in the prototype.
8772         (min_issue_delay_pass_states): Change the algorithm.
8773         (min_issue_delay): Set up min_insn_issue_delay for the state.
8774         (output_min_issue_delay_table): Interchange the nested loops and
8775         and initiate min_insn_issue_delay for states.
8776
8777 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
8778
8779         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
8780         jump is simplejump.
8781
8782 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
8783
8784         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
8785         sequence.
8786
8787 2002-05-03  Richard Henderson  <rth@redhat.com>
8788
8789         PR opt/6534
8790         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
8791         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
8792         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
8793         code before JUMP, not EARLIEST.
8794
8795 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
8796
8797         * c-format.c (check_format_info_main): Don't check for presence of
8798         parameter for * width until after operand number has been read,
8799         and only check for it if format parameters are available.
8800         Fixes PR c/6547.
8801
8802 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
8803
8804         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
8805         (LINK_SPEC): Undef before defining.
8806
8807 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
8808
8809         PR preprocessor/6489
8810         * tradcpp.c (fixup_newlines): New.
8811         (main, finclude): Use it.
8812
8813 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
8814
8815         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
8816         * config/mips/mips.c (mips_unique_section): Strip encoding from
8817         decl name.
8818
8819 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
8820
8821         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
8822         mode.
8823
8824 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8825
8826         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
8827         (Specific): Removed buildstats references.
8828         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
8829         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
8830         Accomodate Solaris versions beyond 8.
8831         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
8832         (Specific, *-*-solaris2.8): Removed, obsolete.
8833
8834 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
8835
8836         PR target/6542
8837         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
8838         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
8839         fill leaf_reg_remap with identity.
8840         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
8841
8842 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
8843
8844         * config/h8300/crti.asm: Remove trailing spaces.
8845         * config/h8300/h8300.c: Likewise.
8846         * config/h8300/lib1funcs.asm: Likewise.
8847
8848 2002-05-02  Jason Merrill  <jason@redhat.com>
8849
8850         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
8851         * c-decl.c (c_init_decl_processing): Use it.
8852         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
8853         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
8854         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
8855
8856 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
8857
8858         * regrename.c: Fix formatting.
8859         * tree.c: Likewise.
8860
8861 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
8862
8863         * i386.md (attribute memory): Handle compares properly.
8864
8865 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
8866
8867         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
8868         to none.
8869
8870 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
8871
8872         * function.c: Fix formatting.
8873
8874 2002-05-02  Jan Hubicka  <jh@suse.cz>
8875
8876         * haifa-sched.c (schedule_insn): Print table of instructions and
8877         reservations.
8878         (sched_block): Do not print ready list at verbosity level 1.
8879         * sched-vis.c (print_insn): Make global.
8880         * sched-ebb.c (ebb_print_insn): Rename from...
8881         (print_insn): ... this one.
8882         * sched-int.h (print_insn): Declare
8883
8884 2002-05-02  Richard Henderson  <rth@redhat.com>
8885
8886         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
8887         emitted by cycle_display.
8888
8889 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
8890
8891         * doc/install.texi (*-*-freebsd*): Update to latest status.
8892
8893 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
8894
8895         PR target/6540
8896         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
8897         * config/float-sparc.h: Assume 128-bit long double if
8898         __LONG_DOUBLE_128__ is defined.
8899
8900 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
8901
8902         * genattrtab.c (write_function_unit_info): Add a dummy element
8903         when num_units == 0.
8904
8905 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8906
8907         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
8908         TYPE_MODE (double_type_node) instead of DFmode.
8909
8910 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
8911
8912         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
8913         jumps post reload.
8914         * toplev.c (rest_of_compilation): Revert Richard's patch.
8915
8916 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8917
8918         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
8919
8920 2002-05-02  Catherine Moore  <clm@redhat.com>
8921
8922         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
8923
8924 2002-05-02  Kazu Hirata  <kazu@hxi.com>
8925
8926         * combine.c: Fix comment typos.
8927         * expr.c: Likewise.
8928         * genautomata.c: Likewise.
8929         * stmt.c: Likewise.
8930         * tree.h: Likewise.
8931
8932 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
8933
8934         * doc/install.texi: State GNAT version requirements.
8935
8936 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
8937
8938         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
8939         of the frame pointer or arg pointer register which strict register
8940         checking is not enabled.
8941
8942 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
8943
8944         * gcc.dg/altivec-8.c: New.
8945
8946         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
8947         PRE_INC and PRE_DEC for altivec modes.
8948
8949 2002-05-01  Bruce Korb  <bkorb@gnu.org>
8950
8951         * fixinc/check.tpl(set-writable): make sure the function exists first
8952         * fixinc/inclhack.def(alpha_assert): fix test_text
8953         * fixinc/tests/base/assert.h: add in missing result
8954
8955 2002-05-01  Jeff Law  <law@redhat.com>
8956
8957         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
8958         'T' constraint.
8959
8960 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
8961
8962         * dbxout.c (dbxout_type): Emit size information for range types,
8963         as well, but only when using GDB extensions.
8964
8965 2002-05-01  Richard Henderson  <rth@redhat.com>
8966
8967         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
8968         target-independent gnu binutils date test.
8969
8970 2002-05-01  Richard Henderson  <rth@redhat.com>
8971
8972         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
8973         info before expunging the block.
8974
8975 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
8976
8977         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
8978         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
8979         -M -or -MM is in effect.
8980
8981 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
8982
8983         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
8984         A29k configurations.
8985         * doc/install.texi: Update to match.
8986
8987 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8988
8989         PR bootstrap/6514
8990         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
8991         for duplicates. Always loop over whole list.
8992
8993 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8994
8995         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
8996
8997 2002-05-01      Joel Sherrill <joel@OARcorp.com>
8998
8999         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
9000         support routines.
9001
9002 2002-05-01      Joel Sherrill <joel@OARcorp.com>
9003
9004         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
9005
9006 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
9007
9008         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
9009         (nabs_nopower): Same.
9010         (floatdisf2): New pattern.
9011         (absdi2): Convert to define_insn_and_split.
9012         (nabsdi2): Same.
9013         (trunctfsf2): Same.
9014         (floatditf2): Same.
9015         (floatsitf2): Same.
9016         (fix_trunctfdi2): Same.
9017         (fix_trunctfsi2): Same.
9018
9019 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
9020
9021         * doc/install.texi: Update Texinfo version requirement
9022         documentation.
9023
9024 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
9025
9026         PR target/6512, PR target/5628
9027         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
9028         when memory is not aligned.
9029         (movdf_insn_v9only_vis): Likewise.
9030         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
9031         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
9032         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
9033
9034 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
9035
9036         * gcc.dg/altivec-7.c: New.
9037
9038         * config/rs6000/altivec.h: Cleanup.
9039
9040 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
9041
9042         * doc/invoke.texi (Option Summary): Add -mvrsave=.
9043         (RS/6000 and PowerPC Options): Document -mvrsave=.
9044
9045         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
9046         (rs6000_altivec_vrsave_string): Same.
9047         (rs6000_override_options): Call rs6000_parse_vrsave_option.
9048         (rs6000_parse_vrsave_option): New.
9049         (rs6000_stack_info): Only generate vrsave instructions when
9050         TARGET_ALTIVEC_VRSAVE.
9051
9052         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
9053         (rs6000_altivec_vrsave_string): Define extern.
9054         (rs6000_altivec_vrsave): Same.
9055         (TARGET_ALTIVEC_VRSAVE): New.
9056
9057 2002-04-30  Richard Henderson  <rth@redhat.com>
9058
9059         PR opt/6516
9060         * toplev.c (rest_of_compilation): Don't run cross-jump before
9061         bb-reorder.
9062
9063 2002-04-30  Tom Rix  <trix@redhat.com>
9064
9065         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
9066         check which_alternative.
9067
9068 2002-04-30  Kazu Hirata  <kazu@hxi.com>
9069
9070         * cpplex.c: Fix comment formatting.
9071         * function.c: Likewise.
9072         * integrate.c: Likewise.
9073         * regrename.c: Likewise.
9074         * sibcall.c: Likewise.
9075         * simplify-rtx.c: Likewise.
9076         * tree-inline.c: Likewise.
9077
9078 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9079
9080         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
9081         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
9082         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
9083         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
9084         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
9085         * pa/x-ada: New file.  Define ADA_CFLAGS.
9086
9087 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
9088
9089         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
9090         from MMIX_LAST_REGISTER_FILE_REGNUM.
9091         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
9092         (struct machine_function): New member highest_saved_stack_register
9093         previously static variable in mmix.c.
9094         (MACHINE_DEPENDENT_REORG): Define.
9095         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
9096         (MMIX_OUTPUT_REGNO): New.
9097         (mmix_target_asm_function_prologue): Move calculation of last used
9098         saved-stack-register into...
9099         (mmix_machine_dependent_reorg): New function.  Update to also handle
9100         !TARGET_ABI_GNU.
9101         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
9102         register names, simplify somewhat by new variable regno.
9103         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
9104         register.
9105         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
9106         emitting register names.
9107         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
9108         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
9109         Remove fixed FIXME.
9110         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
9111         Declare.
9112
9113         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
9114
9115 2002-04-30  Richard Henderson  <rth@redhat.com>
9116
9117         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
9118         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
9119         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
9120         emit_tfmode_cvt): New.
9121         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
9122         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
9123         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
9124         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
9125         * config/sparc/sparc-protos.h: Update.
9126
9127 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
9128
9129         * install.texi (Final install): Add to the list of info to include
9130         in a report of a successful bootstrap, and add link to 3.1 list.
9131
9132 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
9133
9134         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
9135         (mode): Add vector modes
9136         (i387): Kill attribute.
9137         (unit): New attribute.
9138         (length_immediate): Grok new types.
9139         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
9140         (modrm): Use "unit".
9141         (memory): Handle MMX/SSE properly.
9142         (scheduling descriptions): Kill uses of fop1.
9143         (sse, mmx, fp patterns): Set type and mode properly.
9144
9145 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
9146
9147         * pa.c (override_options): Default to PA8000 scheduling.
9148         * doc/invoke.texi (HP-PA options): Mention newly added 7300
9149         scheduling parameter.
9150
9151         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
9152         handling of double precision multiplies.
9153
9154         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
9155         fpdiv and fpsqrt instructions.
9156         (7200 & 7300 scheduling): Fix typo in handling of
9157         store-load and store-store penalties.
9158
9159 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9160
9161         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
9162         mips.  Add two missing commas.
9163
9164 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
9165
9166         * doc/contrib.texi (Contributors): Update Paolo Carlini's
9167         and Benjamin Kosnik's entries.
9168
9169 2002-04-29  David S. Miller  <davem@redhat.com>
9170
9171         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
9172         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
9173         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
9174         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9175
9176 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9177
9178         * combine.c (find_split_point): Use gen_int_mode.
9179
9180 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
9181
9182         Merging code from dfa-branch:
9183
9184         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
9185
9186         * genautomata.c (output_reserv_sets): Fix typo.
9187
9188         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
9189
9190         * genautomata.c (output_reserv_sets): Remove
9191         next_cycle_output_flag.
9192
9193         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
9194
9195         * sched-rgn.c (init_ready_list): Make the DFA code handle
9196         USE/CLOBBER insns in the same way as the traditional
9197         scheduler.
9198         (new_ready): Similarly..
9199
9200         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
9201
9202         * haifa-sched.c (schedule_block): Change the DFA state only after
9203         issuing insn.
9204
9205         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
9206
9207         * pa.c (hppa_use_dfa_pipeline_interface): New function.
9208         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
9209         (override_options): Add PA7300 scheduling support.
9210         (pa_adjust_cost): Update various comments.  Properly
9211         handle anti and output dependencies when using the
9212         DFA scheduler.
9213         (pa_issue_rate): Add PA7300 scheduling support.
9214         (pa_can_combine_p): Call extract_insn before calling
9215         constrain_operands (taken from mainline tree).
9216         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
9217         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
9218         descriptions using DFA descriptions.  Add PA7300
9219         scheduling support.
9220
9221         2002-03-30  David S. Miller  <davem@redhat.com>
9222
9223         Add UltraSPARC-III DFA scheduling support.
9224         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
9225         Update FP conditional move on register insn patterns to use it, as
9226         appropriate.
9227         (define_attr cpu): Add ultrasparc3.
9228         (define_attr us3load_type): New, update integer load patterns to
9229         set it, as appropriate.
9230         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
9231         (rest): Add UltraSPARC3 scheduling description.
9232         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
9233         (PROCESSOR_ULTRASPARC3): New.
9234         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
9235         ({ASM,CPP}_CPU_SPEC): Likewise.
9236         (REGISTER_MOVE_COST): Likewise.
9237         (RTX_COSTS): Likewise.
9238         * config/sparc/sparc.c (sparc_override_options,
9239         sparc_initialize_trampoline, sparc64_initialize_trampoline,
9240         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9241         sparc_issue_rate): Likewise.
9242         * config/sparc/sol2.h: Likewise.
9243         * config/sparc/sol2-sld-64.h: Likewise.
9244         * config/sparc/linux64.h: Likewise.
9245
9246         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
9247
9248         * doc/md.texi: Add comments about usage the latency time for the
9249         different dependencies and about case when two or more conditions
9250         in different define_insn_reservations returns TRUE for an insn.
9251
9252         * doc/md.texi: Add reference for automaton based pipeline
9253         description.
9254
9255         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
9256
9257         * doc/passes.texi: Add missed information about genattrtab.
9258
9259         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
9260
9261         * genautomata.c (output_automata_list_transition_code): Check
9262         automata_list on NULL.
9263
9264         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
9265
9266         * genautomata.c (output_insn_code_cases,
9267         output_automata_list_min_issue_delay_code,
9268         output_automata_list_transition_code,
9269         output_automata_list_state_alts_code): Comment the functions.
9270
9271         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
9272
9273         * genautomata.c (automata_list_el_t): New typedef.
9274         (get_free_automata_list_el,free_automata_list_el,
9275         free_automata_list, automata_list_hash, automata_list_eq_p,
9276         initiate_automata_lists, automata_list_start, automata_list_add,
9277         automata_list_finish, finish_automata_lists,
9278         output_insn_code_cases, output_automata_list_min_issue_delay_code,
9279         output_automata_list_transition_code,
9280         output_automata_list_state_alts_code, add_automaton_state,
9281         form_important_insn_automata_lists): New functions and prototypes.
9282         (insn_reserv_decl): Add members important_automata_list and
9283         processed_p.
9284         (ainsn): Add members important_p.
9285         (automata_list_el): New structure.
9286         (first_free_automata_list_el, current_automata_list,
9287         automata_list_table): New global variables.
9288         (create_ainsns): Initiate member important_p.
9289         (output_internal_min_issue_delay_func): Generate the switch and
9290         call output_insn_code_cases.
9291         (output_internal_trans_func, output_internal_state_alts_func):
9292         Ditto.
9293         (generate): Call initiate_automata_lists.
9294         (automaton_states): New global variable.
9295         (expand_automata): Call form_important_insn_automata_lists.
9296         (write_automata): Call finish_automata_lists.
9297
9298         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
9299
9300         * genautomata.c (add_excls, add_presence_absence): Check that
9301         cpu units in the sets belong the same automaton.
9302
9303         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
9304         about that cpu units in the sets belong the same automaton.
9305
9306         * doc/md.texi: Ditto.
9307
9308         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
9309                     Nitin Gupta  <niting@noida.hcltech.com>
9310
9311         * config/sh/sh.c (sh_use_dfa_interface): New function.
9312
9313         (sh_issue_rate): New Function.
9314         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
9315         TARGET_SCHED_ISSUE_RATE: define.
9316
9317         * config/sh/sh.md: Add DFA based pipeline description for SH4.
9318
9319         (define_attr insn_class): New attribute used for DFA
9320          scheduling.
9321         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
9322         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
9323          cmpeqdi_t): Likewise.
9324
9325         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
9326          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
9327          ex_group.
9328         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
9329
9330         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
9331
9332         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
9333         break.
9334
9335         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
9336
9337         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
9338         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
9339         necessary.
9340         (output_dfa_start_func): Initiate new variable insn_codes_length,
9341         (write_automata): Output definition of the new variable.
9342
9343         2001-10-02  David S. Miller  <davem@redhat.com>
9344
9345         * haifa-sched.c (advance_one_cycle): New function.
9346         (schedule_block): Use it.
9347         (queue_to_ready): Use it, and also make sure to advance the DFA
9348         state on all stall cycles, not just those where insn_queue links
9349         are found.
9350
9351         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
9352
9353         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
9354         non-zero if the highest-priority instruction could be scheduled.
9355         (choose_ready): Remove last argument from max_issue call.
9356
9357         2001-09-28  David S. Miller  <davem@redhat.com>
9358
9359         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
9360         ultrasparc and 3 for other multi-issue sparcs.
9361
9362         2001-09-27  David S. Miller  <davem@redhat.com>
9363
9364         * config/sparc/sparc.md (cycle_display): New pattern.
9365         * config/sparc/sparc.c (sparc_cycle_display): New.
9366         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
9367
9368         2001-09-25  David S. Miller  <davem@redhat.com>
9369
9370         Convert all of Sparc scheduling to DFA
9371         * config/sparc/sparc.md: Kill all define_function_unit
9372         directives and replace with DFA equivalent.
9373         * config/sparc/sparc.c (ultrasparc_adjust_cost,
9374         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
9375         ultra_fpmode_conflict_exists, ultra_find_type,
9376         ultra_build_types_avail, ultra_flush_pipeline,
9377         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
9378         ultrasparc_variable_issue, ultrasparc_sched_init,
9379         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
9380         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
9381         ultra_cur_hist, ultra_cycles_elapsed): Kill.
9382         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9383         ultrasparc_store_bypass_p): New.
9384         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
9385         Declare.
9386
9387         2001-09-24  David S. Miller  <davem@redhat.com>
9388
9389         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
9390         ready->vec[foo] not ready[foo].
9391
9392         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
9393
9394         * doc/md.texi: Correct examples for define_insn_reservations
9395         `mult' and `div'.
9396
9397         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
9398
9399         * genautomata.c (create_automata): Print message about creation of
9400         each automaton.
9401         (generate): Remove printing meease about creation of
9402         automata.
9403
9404         2001-09-05  David S. Miller  <davem@redhat.com>
9405
9406         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
9407         * config/sparc/linux64.h: Likewise.
9408
9409         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
9410
9411         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
9412         schedule_block, sched_init, sched_finish): Add missed calls of
9413         use_dfa_pipeline_interface.
9414
9415         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
9416         Ditto.
9417
9418         * sched-vis.c (get_visual_tbl_length): Ditto.
9419
9420         2001-08-27  Richard Henderson  <rth@redhat.com>
9421
9422         * genattr.c (main): Emit state_t even when not doing scheduling.
9423
9424         2001-08-27  Richard Henderson  <rth@redhat.com>
9425
9426         * genautomata.c (expand_automata): Always create a description.
9427
9428         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
9429
9430         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
9431         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
9432         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
9433         RTL constructions.
9434
9435         * genattr.c (main): New variable num_insn_reservations.  Increase
9436         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
9437         pipeline hazard recognizer interface.
9438
9439         * genattrtab.h: New file.
9440
9441         * genattrtab.c: Include genattrtab.h.
9442         (attr_printf, check_attr_test, make_internal_attr,
9443         make_numeric_value): Move protypes into genattrtab.h.  Define them
9444         as external.
9445         (num_dfa_decls): New global variable.
9446         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
9447         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
9448         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
9449         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
9450
9451         * genautomata.c: New file.
9452
9453         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
9454
9455         * sched-int.h: (curr_state): Add the external definition for
9456         automaton pipeline interface.
9457         (haifa_insn_data): Add comments for members blockage and units.
9458
9459         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9460         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9461         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9462         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9463         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9464         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9465         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
9466         macros.
9467         (TARGET_SCHED): Use the new macros.
9468
9469         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
9470         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
9471         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
9472         dfa_bubble): New members in gcc_target.sched.
9473
9474         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
9475         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
9476         (insn_queue): Redefine it as pointer to array.
9477         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
9478         INSN_QUEUE_SIZE.
9479         (max_insn_queue_index_macro_value): New variable.
9480         (curr_state, dfa_state_size, ready_try): New varaibles for
9481         automaton interface.
9482         (ready_element, ready_remove, max_issue): New function prototypes
9483         for automaton interface.
9484         (choose_ready): New function prototype.
9485         (insn_unit, blockage_range): Add comments.
9486         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
9487         FUNCTION_UNITS_SIZE == 0.
9488         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
9489         actual_hazard, potential_hazard): Add comments.
9490         (insn_cost): Use cost -1 as undefined value.  Remove
9491         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
9492         pipeline interface.
9493         (ready_element, ready_remove): New functions for automaton
9494         interface.
9495         (schedule_insn): Add new code for automaton pipeline interface.
9496         (queue_to_ready): Add new code for automaton pipeline interface.
9497         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
9498         (debug_ready_list): Print newline when the queue is empty.
9499         (max_issue): New function for automaton pipeline interface.
9500         (choose_ready): New function.
9501         (schedule_block): Add new code for automaton pipeline interface.
9502         Print ready list before scheduling each insn.
9503         (sched_init): Add new code for automaton pipeline interface.
9504         Initiate insn cost by -1.
9505         (sched_finish): Free the current automaton state and finalize
9506         automaton pipeline interface.
9507
9508         * sched-rgn.c: Include target.h.
9509         (init_ready_list, new_ready, debug_dependencies): Add new code for
9510         automaton pipeline interface.
9511
9512         * sched-vis.c: Include target.h.
9513         (get_visual_tbl_length): Add code for automaton interface.
9514         (target_units, print_block_visualization):  Add comments.
9515
9516         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
9517         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
9518         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
9519         (getruntime.o, genautomata.o): New entries.
9520         (genattrtab.o): Add new dependency file genattrtab.h.
9521         (genattrtab): Add new dependencies.  Link it with `libm.a'.
9522         (getruntime.o, hashtab.o): New entries for canadian cross.
9523
9524         * doc/md.texi: Description of automaton based model.
9525
9526         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
9527         Add comments.
9528         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9529         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9530         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9531         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9532         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9533         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9534         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
9535         hook descriptions.
9536         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
9537         MAX_DFA_ISSUE_RATE): New macro descriptions.
9538
9539         * doc/contrib.texi: Add dfa based scheduler contribution.
9540
9541         * doc/gcc.texi: Add more information about genattrtab.
9542
9543 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9544
9545         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
9546         adjust_address_nv call.
9547
9548 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
9549
9550         * doc/install.texi (Testing): Provide additional information, and
9551         a stronger encouragement, for running the testsuites.
9552
9553 2002-04-29  DJ Delorie  <dj@redhat.com>
9554
9555         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
9556         given in upper case.
9557
9558 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9559
9560         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
9561         Solaris 2 <widec.h> if missing.
9562         * fixinc/fixincl.x: Regenerate.
9563         * fixinc/tests/base/widec.h: New file.
9564
9565 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
9566
9567         * toplev.c (f_options): Add "profile" switch so that
9568         -fno-profile can be used to disable -p.
9569
9570 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
9571
9572         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
9573         UV2DImode.
9574         * tree.c (build_common_tree_nodes_2): Likewise.
9575         * tree.h (enum tree_index): Likewise.
9576         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
9577
9578         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
9579         entries.
9580         (init_mmx_sse_builtins): Initialize SSE2 builtins.
9581         (ix86_expand_builtin): Add support for SSE2 builtins.
9582         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
9583         (VALID_SSE_REG_MODE): Use it.
9584         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
9585         (enum ix86_builtins): Add SSE2 builtins.
9586         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
9587         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
9588         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
9589         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
9590         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
9591         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
9592         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
9593         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
9594         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
9595         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
9596         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
9597         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
9598         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
9599         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
9600         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
9601         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
9602         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
9603         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
9604         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
9605         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
9606         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
9607         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
9608         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
9609         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
9610         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
9611         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
9612         lfence_insn): New patterns.
9613         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
9614         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
9615
9616 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
9617
9618         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
9619
9620 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9621
9622         * doc/contrib.texi (Contributors): Add Paolo Carlini and
9623         Janis Johnson.
9624         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
9625         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
9626         and CPU instead of cpu.
9627
9628 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
9629
9630         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
9631         variables.
9632         (lang_independent_options): Add -fif-conversion, -fif-conversion2
9633         (rest_of_compilation): Do if conversion only when asked for.
9634         (parse_options_and_default_flags): Set new variables to 1 for -O1
9635         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
9636
9637 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
9638
9639         * i386.c (dbx64_register_map): Fix typo.
9640
9641 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
9642
9643         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
9644         real_one_half, real_bb_freq_max): New static variables.
9645         (debug_profile_bbauxs): Kill.
9646         (process_note_predictions): Kill unused variable.
9647         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
9648         volatile double.
9649         (propagate_freq): Use REAL_ARITHMETICS.
9650         (estimate_bb_frequencies): Likevise; init new static variables.
9651         * Makefile.in (predict.o): Add dependency on real.h
9652
9653 2002-04-28  David S. Miller  <davem@redhat.com>
9654
9655         PR target/6500
9656         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
9657         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
9658         several {reads,writes} instead.
9659         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
9660         Define.
9661
9662 2002-04-27  David S. Miller  <davem@redhat.com>
9663
9664         PR target/6494
9665         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
9666         of the stack bias.
9667
9668         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
9669         including signal.h and sys/ucontext.h, not needed.
9670
9671 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
9672
9673         * varasm.c (output_constant_def): Correct test for not calling
9674         ENCODE_SECTION_INFO for INTEGER_CST.
9675
9676 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9677
9678         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
9679         keep most cases as function eval_token.
9680         (eval_token): New function.
9681         (_cpp_parse_expr): Read token here for improved diagnostics.
9682         Don't use op_as_text.  Detect bad ':' here.
9683         (reduce): Don't detect bad ':' here.
9684         (op_as_text): Remove.
9685         * cpphash.h (_cpp_test_assertion): Change prototype.
9686         * cpplib.c (_cpp_test_assertion): Change prototype.
9687
9688 2002-04-28  Richard Henderson  <rth@redhat.com>
9689
9690         PR c/5154
9691         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
9692         (ggc_mark_rtx_children): New.
9693
9694 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
9695
9696         PR target/6496
9697         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
9698         after call peepholes for UltraSPARC.
9699         (call + jump 64-bit peepholes): Remove.
9700
9701 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9702
9703         PR c/6497
9704         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
9705         result as temporary value.
9706
9707 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
9708
9709         PR c++/6396
9710         * toplev.c (rest_of_compilation): Only run regrename and copy
9711         propagation if optimizing.
9712
9713 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
9714
9715         PR optimization/6475
9716         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
9717         register of REGNO_DECL (i).
9718         * Makefile.in (reload1.o): Add $(TREE_H).
9719
9720 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
9721
9722         * cppexp.c (lex): Update to use state.skip_eval.
9723         (struct op): Remove prio and flags members.
9724         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
9725         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
9726         (LEFT_ASSOC): New macro.
9727         (optab): New table of operator priorities and flags.
9728         (SHIFT): Update.
9729         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
9730         malloc-ed parser stack.
9731         (reduce): New; reduce the operator stack.
9732         (_cpp_expand_op_stack): Expand the operator stack as necessary.
9733         * cpphash.h (struct op): Predeclare.
9734         (struct cpp_reader): New members op_stack, op_limit.
9735         (struct lexer_state): New member skip_eval.
9736         (_cpp_parse_expr): Update.
9737         (_cpp_expand_op_stack): New.
9738         * cpplib.c (do_if): Update.
9739         * cppinit.c (cpp_create_reader): Create op stack.
9740         (cpp_destroy): And destroy it.
9741         * cpplib.h (CPP_LAST_CPP_OP): Correct.
9742         (TTYPE_TABLE): Correct.
9743
9744 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9745
9746         PR c/6343
9747         * c-decl.c (duplicate_decls): Call merge_weak.
9748         * c-pragma.c (apply_pragma_weak): Warn about misuse.
9749         * output.h (merge_weak): Prototype merge_weak.
9750         * varasm.c (merge_weak): New function.
9751         (declare_weak): Make sure we don't give an error on VAR_DECLs.
9752         Mark RTL with SYMBOL_REF_WEAK.
9753
9754 2002-04-27  Kurt Garloff <garloff@suse.de>
9755
9756         * tree-inline.c (inlinable_function_p): Improve heuristics
9757         by using a smoother function to cut down allowable inlinable size.
9758         * param.def: Add parameters max-inline-insns-single,
9759         max-inline-slope, min-inline-insns that determine the exact
9760         shape of the above function.
9761         * param.h: Likewise.
9762
9763 2002-04-26  Richard Henderson  <rth@redhat.com>
9764
9765         * c-parse.in (malloced_yyss, malloced_yyvs): New.
9766         (yyoverflow): Re-add.  Set them.
9767         (free_parser_stacks): New.
9768         * c-common.h: Declare it.
9769         * c-lex.c (c_common_parse_file): Call it.
9770
9771 2002-04-26  Richard Henderson  <rth@redhat.com>
9772
9773         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
9774         for fallthru search.
9775
9776 2002-04-26  Eric Christopher  <echristo@redhat.com>
9777
9778         PR optimization/3700
9779         * config/mips/mips.c (mips_issue_rate): Define.  New function.
9780         (TARGET_SCHED_ISSUE_RATE): Use.
9781
9782 2002-04-25  David S. Miller  <davem@redhat.com>
9783
9784         PR target/6422
9785         * reorg.c (optimize_skip): Do not allow exception causing
9786         instructions to be considered for delay slots.
9787         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
9788         (relax_delay_slots): Do not try to consider exception causing
9789         instructions as redundant.
9790
9791 2002-04-26  Richard Henderson  <rth@redhat.com>
9792
9793         PR c/5225
9794         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
9795
9796 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
9797
9798         PR bootstrap/6445
9799         * config/i386/i386.md (untyped_call): Return the value in a float
9800         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
9801         TARGET_80387.
9802
9803 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
9804
9805         * tree.c (tree_int_cst_lt): Compare constants whose types differ
9806         in unsigned-ness correctly.
9807
9808 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9809
9810         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
9811         portable runtime model.
9812
9813 2002-04-26  Richard Henderson  <rth@redhat.com>
9814
9815         * c-parse.in (yyoverflow): Revert.
9816
9817 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
9818             Richard Henderson  <rth@redhat.com>
9819
9820         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
9821         result as temporary value.
9822
9823 2002-04-26  Richard Henderson  <rth@redhat.com>
9824
9825         PR c/3581
9826         * c-common.c (fix_string_type): Split out of ...
9827         (combine_strings): ... here.  Take a varray, not a tree list.
9828         (c_expand_builtin_printf): Use fix_string_type.
9829         * c-common.h: Update decls.
9830         * c-parse.in (string): Remove.  Update all uses to use STRING
9831         instead, and not call combine_strings.
9832         (yylexstring): New.
9833         (_yylex): Use it.
9834         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
9835         (build_asm_stmt): Likewise.
9836         * objc/objc-act.c (my_build_string): Use fix_string_type.
9837         (build_objc_string_object): Build varray for combine_strings.
9838
9839 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
9840
9841         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
9842         x86-64.
9843
9844 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
9845
9846         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
9847         (HAVE_NO_R_OPERAND): Remove.
9848         (HAVE_VALUE): Remove.
9849         (op_to_prio): Update.
9850         (UNARY): Don't alter flags.
9851         (_cpp_parse_expr): want_value used to indicate whether
9852         a number or unary operator is expected next.  Distinguish
9853         unary and binary +/-.
9854         (op_as_text): Update for unary operators.
9855
9856 2002-04-25  Richard Henderson  <rth@redhat.com>
9857
9858         PR c/2161
9859         * c-parse.in (yyoverflow): New.
9860
9861 2002-04-25  Richard Henderson  <rth@redhat.com>
9862
9863         PR c/2098
9864         * c-common.c (shorten_compare): Simplfy conditions leading to
9865         the generation of a warning.
9866
9867 2002-04-25  Richard Henderson  <rth@redhat.com>
9868
9869         PR c/2035
9870         * expmed.c (extract_bit_field): Fall through to generic code rather
9871         than aborting on subreg special case.
9872
9873 2002-04-25  David S. Miller  <davem@redhat.com>
9874
9875         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
9876         for DECL being NULL.
9877
9878 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
9879
9880         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
9881
9882 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
9883
9884         * c-decl.c (grokdeclarator): Remove outdated ??? note
9885         on invalid declaration of flexible array members.
9886
9887 2002-04-25  Richard Henderson  <rth@redhat.com>
9888
9889         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
9890
9891 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
9892
9893         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
9894         needed by the compiler, even if they are used as global regs.
9895
9896 2002-04-25  Matt Hiller  <hiller@redhat.com>
9897
9898         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
9899         functions.
9900         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
9901         of the corresponding functions.
9902         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
9903         New prototypes.
9904
9905 2002-04-25  Matt Hiller  <hiller@redhat.com>
9906
9907         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
9908
9909         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
9910         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
9911         registers, adjust comment accordingly.
9912         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
9913         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
9914         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
9915         for coprocessor registers.
9916         (ADDITIONAL_REGISTER_NAMES): Include
9917         ALL_COP_ADDITIONAL_REGISTER_NAMES.
9918
9919         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
9920         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
9921         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
9922         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
9923         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
9924
9925         (mips_char_to_class): Adjust comment to include coprocessor
9926         constraint letters.
9927
9928         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
9929         New functions.
9930         (mips_reg_names, mips_regno_to_class): Include coprocessor
9931         information.
9932         (mips_sw_reg_names): Ditto, make non-static.
9933         (mips_move_1word): Handle moves to and from coprocessor registers.
9934         (mips_move_2words): Handle moves to and from coprocessor
9935         registers.
9936         (mips_class_max_nregs, mips_register_move_cost): Handle
9937         coprocessor register classes.
9938         (override_options): Initialize mips_char_to_class and
9939         mips_hard_regno_mode_ok properly for coprocessor registers.
9940
9941         * config/mips/mips.md (movdi_internal, movdi_internal2,
9942         movsi_internal1, movsi_internal2): Add constraint-sets for
9943         coprocessor registers.
9944         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
9945         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
9946         isn't mips.
9947         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
9948         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
9949         isn't mips.
9950         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
9951         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
9952         isn't mips.
9953         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
9954         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
9955         isn't mips.
9956
9957         * doc/tm.texi: Document feature.
9958
9959 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
9960
9961         * integrate.c (function_attribute_inlinable_p): Simplify.
9962         Check the table pointer is not NULL.
9963
9964 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
9965
9966         * doc/c-tree.texi: Fix typo in introduction.
9967
9968 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
9969
9970         * c-common.h (c_common_parse_file): Update.
9971         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
9972         * c-lex.c (YYDEBUG): Get from c-lex.h.
9973         (c_common_parse_file): Update.
9974         * c-lex.h (YYDEBUG, yydebug): New.
9975         * c-parse.in (YYDEBUG): Get from c-lex.h.
9976         (c_set_yydebug): Remove.
9977         * c-tree.h (c_set_yydebug): Remove.
9978         * langhooks-def.h (lhd_do_nothing_i): New.
9979         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
9980         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
9981         * langhooks.c  (lhd_do_nothing_i): New.
9982         (lhd_set_yydebug): Remove.
9983         * langhooks.h (struct lang_hooks): Update.
9984         * toplev.c (set_yydebug): New.
9985         (compile_file): Update call to parse_file hook.
9986         (decode_d_option): Update.
9987 objc:
9988         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
9989
9990 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
9991
9992         * loop.c (load_mems): Don't change the interface of called functions.
9993
9994         * calls.c (expand_call): Take current_function_pretend_args_size
9995         into account when setting argblock for sibcalls.
9996
9997 2002-04-24  Matt Hiller  <hiller@redhat.com>
9998
9999         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
10000         * c-lex.c: Ditto.
10001
10002         * cpplex.c (skip_line_comment): Process comment one multibyte
10003         character at a time rather than one char at a time, if
10004         appropriate.
10005         (parse_string): Process string one multibyte character at a time
10006         rather than one char at a time, if appropriate.
10007         * c-lex.c (lex_string): Lex and copy multibyte strings
10008         appropriately.
10009         * cpplib.h (cppchar_t): Change to unsigned.
10010
10011 2002-04-24  Richard Henderson  <rth@redhat.com>
10012
10013         PR c/3467
10014         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
10015         for c99.
10016
10017 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
10018
10019         * sh.c (sh_va_arg): If argument was passed by reference,
10020         dereference the pointer.
10021
10022         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10023
10024         * sh.md (divsi3_i4_media): Use match_operand for input values
10025         rather than hard registers.
10026         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
10027         unnecessarily through hard registers.  Keep copies of pseudo
10028         registers outside of the libcall sequence.
10029
10030         * sh.md (casesi_shift_media): Add modes.
10031
10032         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
10033         values in memory.
10034
10035 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10036
10037         * attribs.c (c_common_attribute_table): Move table and handlers
10038         to c-common.c.
10039         (format_attribute_table, lang_attribute_table,
10040         lang_attribute_common): Remove.
10041         (init_attributes): Replace NULL pointers with pointers to the
10042         empty table.
10043         (handle_packed_attribute, handle_nocommon_attribute,
10044         handle_common_attribute, handle_noreturn_attribute,
10045         handle_noinline_attribute, handle_always_inline_attribute,
10046         handle_used_attribute, handle_unused_attribute,
10047         handle_const_attribute, handle_transparent_union_attribute,
10048         handle_constructor_attribute, handle_destructor_attribute,
10049         handle_mode_attribute, handle_section_attribute,
10050         handle_aligned_attribute, handle_weak_attribute,
10051         handle_alias_attribute, handle_visibility_attribute,
10052         handle_no_instrument_function_attribute, handle_malloc_attribute,
10053         handle_no_limit_stack_attribute, handle_pure_attribute,
10054         handle_deprecated_attribute, handle_vector_size_attribute,
10055         vector_size_helper): Move to c-common.c.
10056         * c-common.c (c_common_attribute_table,
10057         handle_packed_attribute, handle_nocommon_attribute,
10058         handle_common_attribute, handle_noreturn_attribute,
10059         handle_noinline_attribute, handle_always_inline_attribute,
10060         handle_used_attribute, handle_unused_attribute,
10061         handle_const_attribute, handle_transparent_union_attribute,
10062         handle_constructor_attribute, handle_destructor_attribute,
10063         handle_mode_attribute, handle_section_attribute,
10064         handle_aligned_attribute, handle_weak_attribute,
10065         handle_alias_attribute, handle_visibility_attribute,
10066         handle_no_instrument_function_attribute, handle_malloc_attribute,
10067         handle_no_limit_stack_attribute, handle_pure_attribute,
10068         handle_deprecated_attribute, handle_vector_size_attribute,
10069         vector_size_helper): Move from attribs.c.
10070         * c-common.h (c_common_attribute_table,
10071         c_common_format_attribute_table): New.
10072         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
10073         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
10074         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
10075         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
10076         (LANG_HOOKS_INITIALIZER): Update.
10077         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
10078         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
10079         * target.h: Update comment.
10080         * tree.c (default_target_attribute_table): Remove.
10081         * tree.h (default_target_attribute_table, format_attribute_table,
10082         lang_attribute_table, lang_attribute_common): Remove.
10083 objc:
10084         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
10085         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
10086
10087 2002-04-24  Jason Merrill  <jason@redhat.com>
10088
10089         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
10090         * dwarf2out.c (dwarf_attr_name): Support it.
10091         (gen_array_type_die): Emit it.
10092         (lookup_type_die): No special handling for VECTOR_TYPE.
10093         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
10094
10095 2002-04-24  Richard Henderson  <rth@redhat.com>
10096
10097         * config/mips/mips.md (movdi_usd): Renumber.
10098
10099 2002-04-24  David S. Miller  <davem@redhat.com>
10100
10101         PR target/6420
10102         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
10103         32-bit Sparc and current_function_returns_struct is true.
10104
10105 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
10106
10107         * loop.c (canonicalize_condition): Use gen_int_mode.
10108
10109 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
10110
10111         * config/rs6000/altivec.h: Cleanup file.  Add non individual
10112         variants.
10113         (vec_vaddubm): New.
10114         (vec_vadduhm): New.
10115         (vec_vadduwm): New.
10116         (vec_vaddfp): New.
10117         (vec_vaddcuw): New.
10118         (vec_vaddubs): New.
10119         (vec_vaddsbs): New.
10120         (vec_vadduhs): New.
10121         (vec_vadduws): New.
10122         (vec_vaddsws): New.
10123         (vec_vand): New.
10124         (vec_vandc): New.
10125         (vec_vavgub): New.
10126         (vec_vavgsb): New.
10127         (vec_vavguh): New.
10128         (vec_vavgsh): New.
10129         (vec_vavguw): New.
10130         (vec_vavgsw): New.
10131         (vec_vrfip): New.
10132         (vec_vcmpbfp): New.
10133         (vec_vcmpequb): New.
10134         (vec_vcmpequh): New.
10135         (vec_vcmpequw): New.
10136         (vec_vcmpeqfp): New.
10137         (vec_vcmpgefp): New.
10138         (vec_vcmpgtub): New.
10139         (vec_vcmpgtsb): New.
10140         (vec_vcmpgtuh): New.
10141         (vec_vcmpgtsh): New.
10142         (vec_vcmpgtuw): New.
10143         (vec_vcmpgtsw): New.
10144         (vec_vcmpgtfp): New.
10145         (vec_vcmpgefp): New.
10146         (vec_vcfux): New.
10147         (vec_vcfsx): New.
10148         (vec_vctsxs): New.
10149         (vec_vctuxs): New.
10150         (vec_vexptefp): New.
10151         (vec_vrfim): New.
10152         (vec_lvx): New.
10153         (vec_lvebx): New.
10154         (vec_lvehx): New.
10155         (vec_lde): Add vector float variant.
10156         (vec_lvewx): New.
10157         (vec_lvxl): New.
10158         (vec_vlogefp): New.
10159         (vec_vmaddfp): New.
10160         (vec_vmhaddshs): New.
10161         (vec_vmaxub): New.
10162         (vec_vmaxsb): New.
10163         (vec_vmaxuh): New.
10164         (vec_vmaxsh): New.
10165         (vec_vmaxuw): New.
10166         (vec_vmaxsw): New.
10167         (vec_vmaxsw): New.
10168         (vec_vmaxfp): New.
10169         (vec_vmrghb): New.
10170         (vec_vmrghh): New.
10171         (vec_vmrghw): New.
10172         (vec_vmrglb): New.
10173         (vec_vmrglh): New.
10174         (vec_vmrglw): New.
10175         (vec_vminub): New.
10176         (vec_vminsb): New.
10177         (vec_vminuh): New.
10178         (vec_vminsh): New.
10179         (vec_vminuw): New.
10180         (vec_vminsw): New.
10181         (vec_vminfp): New.
10182         (vec_vmladduhm): New.
10183         (vec_vmhraddshs): New.
10184         (vec_msumubm): New.
10185         (vec_vmsummbm): New.
10186         (vec_vmsumuhm): New.
10187         (vec_vmsumshm): New.
10188         (vec_vmsumuhs): New.
10189         (vec_vmsumshs): New.
10190         (vec_vmuleub): New.
10191         (vec_vmulesb): New.
10192         (vec_vmuleuh): New.
10193         (vec_vmulesh): New.
10194         (vec_vmuloub): New.
10195         (vec_mulosb): New.
10196         (vec_vmulouh): New.
10197         (vec_vmulosh): New.
10198         (vec_vnmsubfp): New.
10199         (vec_vnor): New.
10200         (vec_vor): New.
10201         (vec_vpkuhum): New.
10202         (vec_vpkuwum): New.
10203         (vec_vpkpx): New.
10204         (vec_vpkuhus): New.
10205         (vec_vpkshss): New.
10206         (vec_vpkuwus): New.
10207         (vec_vpkswss): New.
10208         (vec_vpkshus): New.
10209         (vec_vpkswus): New.
10210         (vec_vperm): New.
10211         (vec_vrefp): New.
10212         (vec_vrlb): New.
10213         (vec_vrlh): New.
10214         (vec_vrlw): New.
10215         (vec_vrfin): New.
10216         (vec_vrsqrtefp): New.
10217         (vec_vsel): New.
10218         (vec_vslb): New.
10219         (vec_vslh): New.
10220         (vec_vslw): New.
10221         (vec_vsldoi): New.
10222         (vec_vsl): New.
10223         (vec_vslo): New.
10224         (vec_vspltb): New.
10225         (vec_vsplth): New.
10226         (vec_vspltw): New.
10227         (vec_vspltisb): New.
10228         (vec_vspltish): New.
10229         (vec_vspltisw): New.
10230         (vec_vsrb): New.
10231         (vec_vsrh): New.
10232         (vec_vsrw): New.
10233         (vec_vsrab): New.
10234         (vec_vsrah): New.
10235         (vec_vsraw): New.
10236         (vec_vsr): New.
10237         (vec_vsro): New.
10238         (vec_stvx): New.
10239         (vec_stvebx): New.
10240         (vec_stvehx): New.
10241         (vec_stvewx): New.
10242         (vec_stvxl): New.
10243         (vec_vsububm): New.
10244         (vec_vsubuhm): New.
10245         (vec_vsubuwm): New.
10246         (vec_vsubfp): New.
10247         (vec_vsubcuw): New.
10248         (vec_vsububs): New.
10249         (vec_vsubsbs): New.
10250         (vec_vsubuhs): New.
10251         (vec_vsubshs): New.
10252         (vec_vsubuws): New.
10253         (vec_vsubsws): New.
10254         (vec_vsum4ubs): New.
10255         (vec_vsum4sbs): New.
10256         (vec_vsum4shs): New.
10257         (vec_vsum2sws): New.
10258         (vec_vsumsws): New.
10259         (vec_vrfiz): New.
10260         (vec_vupkhsb): New.
10261         (vec_vupkhpx): New.
10262         (vec_vupkhsh): New.
10263         (vec_vupklsb): New.
10264         (vec_vupklpx): New.
10265         (vec_vupklsh): New.
10266         (vec_vxor): New.
10267
10268 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
10269
10270         PR c/5430
10271         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
10272         added literals from substracted literals.
10273         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
10274         (fold) [associate]: Preserve MINUS_EXPR if needed.
10275
10276 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
10277
10278         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
10279         are obsoleted.
10280
10281 2002-04-23  Tom Tromey  <tromey@redhat.com>
10282
10283         * gcc.c: Added --resource.  For PR java/6314.
10284
10285 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
10286
10287         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
10288         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
10289         these libraries.
10290
10291 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
10292
10293         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
10294
10295 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
10296
10297         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
10298         workaround.
10299         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
10300         (ix86_expand_clrstr): Fix typo.
10301         * loop.c (gen_load_of_final_value): New.
10302         (loop_givs_rescan, strength_reduce, check_dbra_loop):
10303         Use it.
10304
10305 2002-04-23  Roger Sayle  <roger@eyesopen.com>
10306
10307         * builtins.c (builtin_memset_gen_str): New function.
10308         (expand_builtin_memset): Optimize the case of constant length, but
10309         unknown value.
10310
10311 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
10312
10313         * config/rs6000/altivec.h (vec_step): Remove extraneous
10314         parentheses.
10315         (vec_ctu): Cast return.
10316
10317 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
10318
10319         PR target/6413
10320         * function.h: (struct function): Add profile_label_no field.
10321         (current_function_profile_label_no): Define.
10322         * function.c: (profile_label_no): New static var.
10323         (expand_function_start): Increment it, and copy to
10324         current_function_profile_label_no.
10325         * output.h (profile_label_no): Delete.
10326         * final.c (profile_label_no): Delete.
10327         (profile_function): Use current_function_profile_label_no.
10328         (final_end_function): Don't increment profile_label_no here.
10329         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
10330         profile_label_no with current_function_profile_label_no.
10331         * config/pa/pa.c (current_function_number): Delete.
10332         (pa_output_function_prologue): Don't output profile label here.
10333         (hppa_profile_hook): Use label_no param rather than
10334         current_function_number.
10335         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
10336         * config/pa/pa.h: .. here.
10337         (FUNCTION_PROFILER): Output profile label here.
10338
10339 2002-04-22  Eric Christopher  <echristo@redhat.com>
10340
10341         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
10342         patch of 2002-04-09 due to binutils issues.
10343         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
10344
10345 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
10346
10347         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
10348         constraint to 'o' for m=r and r=m alternatives.
10349         ("*movv8hi_internal1"): Same.
10350         ("*movv16qi_internal1"): Same.
10351         ("*movv4sf_internal1"): Same.
10352
10353 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
10354
10355         * rtl.h (RTX_FLAG): New macro.
10356         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
10357         * final.c (alter_subreg): Use macro to access rtx flag.
10358         * integrate.c (copy_rtx_and_substitute): Use new access macro.
10359         * print-rtl.c (print_rtx): Use new access macro.
10360
10361         * cse.c (insert): Check rtx code before accessing flag.
10362
10363         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
10364         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
10365         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
10366         convert_const_symbol_ref, make_canonical, make_alternative_compare,
10367         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
10368         simplify_test_exp, optimize_attrs, simplify_by_exploding,
10369         find_and_mark_used_attributes, unmark_used_attributes,
10370         add_values_to_cover, simplify_with_current_value,
10371         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
10372         copy_rtx_unchanging, main): Use new access macros.
10373
10374 2002-04-22  Tom Rix  <trix@redhat.com>
10375
10376         * expmed.c (init_expmed): Generate shifted constant once.
10377
10378 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
10379
10380         * c-lex.c (lex_charconst): Call convert to get constant in
10381         proper type; don't just smash the type field.
10382         Fixes PR c/6300.
10383
10384         * config.gcc: Add list of obsolete configurations.  Disallow
10385         building these without --enable-obsolete.
10386         * doc/install.texi: Document --enable-obsolete and obsoletion
10387         policy.  Mention obsoletion of individual targets in
10388         appropriate places.
10389
10390 2002-04-22  Richard Henderson  <rth@redhat.com>
10391
10392         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
10393
10394 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
10395
10396         PR f/6138.
10397         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
10398         (walk_fixup_memory_subreg): Likewise.
10399         (fixup_var_refs_insn): Adjust accordingly.
10400         (fixup_var_refs_1): Likewise.
10401
10402 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
10403
10404         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
10405         LIBPATH_ARCH64_SPEC): Define.
10406         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
10407         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
10408         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
10409         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
10410
10411 2002-04-22      Joel Sherrill <joel@OARcorp.com>
10412
10413         * gthr-rtems.h: Correct prototypes to remove warnings.
10414
10415 2002-04-22  Richard Henderson  <rth@redhat.com>
10416
10417         PR c/6344
10418         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
10419
10420         * gcse.c (free_insn_expr_list_list): New.
10421         (clear_modify_mem_tables): Use it.  Fix bit set usage.
10422         (canon_list_insert): Use EXPR_LISTs for expressions.
10423         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
10424
10425 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10426
10427         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
10428         file change and include code to _cpp_pop_buffer.
10429         * cpphash.h (struct pending_option): Predeclare.
10430         (struct cpp_reader): New member next_include_file.
10431         (_cpp_pop_file_buffer): Update.
10432         (_cpp_push_next_buffer): Update, rename.
10433         * cppinit.c (cpp_destroy): Free include chain and pending here.
10434         (cpp_finish_options): Simplify.
10435         (_cpp_push_next_buffer): Rename and clean up.
10436         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
10437         Clarify.
10438         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
10439
10440 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
10441
10442         * config/rs6000/altivec.h (vec_xor): Add variant for both args
10443         being vector signed int.
10444         (vec_andc): Same.
10445         (vec_xor): Add variant for both args being vector signed char.
10446         Remove redundant variant.
10447         (vec_andc): Same.
10448
10449 2002-04-21  David S. Miller  <davem@redhat.com>
10450
10451         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
10452         compare mode in output RTL.
10453
10454 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
10455
10456         * config/rs6000/rs6000.c (rs6000_override_options): Correct
10457         style and formatting of previous patch.
10458
10459 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
10460
10461         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
10462         flag_pic for ABI_AIX.
10463
10464 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10465
10466         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
10467         * cppfiles.c (read_include_file): Similarly.
10468         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
10469         uxstrdup ustrchr, ufputs): Similarly.
10470         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
10471         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
10472         cpp_ideq, parse_identifier, parse_number): Similarly.
10473         * cpplib.c (struct directive, dequote_string, D, run_directive,
10474         cpp_push_buffer): Similarly.
10475         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
10476         _cpp_create_definition, check_trad_stringification,
10477         cpp_macro_definition): Similarly.
10478
10479 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10480
10481         * cppmacro.c (funlike_invocation_p): Don't step back
10482         over CPP_EOF.
10483
10484 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
10485
10486         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
10487         labelno.
10488
10489 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
10490
10491         * doc/invoke.texi: Remove Chill references.
10492         * doc/gcc.texi: Update last modified date.
10493
10494 2002-04-20  Kazu Hirata  <kazu@hxi.com>
10495
10496         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
10497         push and pop.  Replace add.l with add.w.
10498
10499 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10500
10501         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
10502         multiply instructions for H8/300H case.
10503
10504 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10505
10506         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
10507         Bum three instructions from each routine.
10508
10509 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
10510
10511         * Makefile.in: Update.
10512         * decl.c (push_c_function_context, pop_c_function_context,
10513         mark_c_function_context): Rename for consistency.
10514         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
10515         * c-tree.h (push_c_function_context, pop_c_function_context,
10516         mark_c_function_context): Rename for consistency.
10517         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10518         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10519         * function.c (init_lang_status, save_lang_status,
10520         restore_lang_status, mark_lang_status, free_lang_status):
10521         Move to langhooks.h.
10522         (push_function_context_to, pop_function_context_from,
10523         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
10524         Update.
10525         * function.h (init_lang_status, save_lang_status,
10526         restore_lang_status, mark_lang_status, free_lang_status):
10527         Move to langhooks.h.
10528         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
10529         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
10530         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
10531         LANG_HOOKS_FUNCTION_INITIALIZER): New.
10532         (LANG_HOOKS_INITIALIZER): Update.
10533         (lhd_do_nothing_f): New.
10534         * langhooks.h (struct lang_hooks_for_functions): New.
10535         (struct lang_hooks): New hooks.
10536         * langhooks.c (lhd_do_nothing_f): New.
10537 objc:
10538         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10539         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10540
10541 2002-04-19  David S. Miller  <davem@redhat.com>
10542
10543         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
10544         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
10545
10546 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
10547
10548         PR optimization/3756
10549         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
10550         x = ((int) y < 0) ? cst1 : cst2.
10551
10552 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
10553
10554         PR c/6358
10555         * function.c: Reapply patch for c/6358.
10556         (expand_function_end): Copy decl_rtl's mode, not
10557         current_function_return_rtx mode.
10558
10559 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
10560
10561         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
10562         targets.
10563
10564 2002-04-19  Tom Tromey  <tromey@redhat.com>
10565
10566         * doc/install.texi (Specific): Update status of Solaris 2.8.
10567         For PR libgcj/6158.
10568
10569 2002-04-19  Andreas Schwab  <schwab@suse.de>
10570
10571         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
10572         (PUT_REAL): Restore old definition.
10573
10574 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
10575             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10576
10577         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
10578         binutils 2.11.2 and higher generate smaller binaries than Sun's
10579         native tools.
10580
10581 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
10582
10583         PR c++/6352
10584         * toplev.c (rest_of_compilation): Do not defer functions for which
10585         TREE_SYMBOL_REFERENCED has already been set.
10586
10587 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
10588
10589         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
10590         alternative.
10591
10592 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
10593
10594         * builtins.c: Include langhooks.h.
10595         (lang_type_promotes_to): Remove.
10596         (expand_builtin_va_arg): Use new hook.
10597         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
10598         (simple_type_promotes_to): Move to c-typeck.c.
10599         * c-common.h (simple_type_promotes_to): Remove.
10600         * c-decl.c (duplicate_decls, grokdeclarator): Update.
10601         * c-format.c: Include langhooks.h.
10602         (check_format_types): Update.
10603         * c-tree.h (c_type_promotes_to): New.
10604         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
10605         (type_lists_compatible_p): Update.
10606         * langhooks-def.h (lhd_type_promotes_to): New.
10607         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
10608         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10609         * langhooks.c (lhd_type_promotes_to): New.
10610         * langhooks.h (struct lang_hooks_for_types): New hook.
10611         * tree.h (lang_type_promotes_to): Remove.
10612 objc:
10613         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
10614
10615 2002-04-18  Richard Henderson  <rth@redhat.com>
10616
10617         * function.c: Revert patch for c/6358.
10618
10619 2002-04-18  Richard Henderson  <rth@redhat.com>
10620
10621         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
10622         blocks.  Handle multiple references to the TRAP block.  Handle
10623         non-adjacent THEN and OTHER blocks.
10624
10625 2002-04-18  Richard Henderson  <rth@redhat.com>
10626
10627         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
10628         crash with no type for by-mode libcalls.
10629
10630         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
10631
10632 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
10633
10634         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
10635         __xtensa_nonlocal_goto): Use a syscall instructions to flush
10636         the register windows.
10637
10638 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
10639
10640         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
10641         appropriate.  Document need for extended precision even when
10642         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
10643         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
10644         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
10645         instead of relying on later syntax error when REAL_WIDTH > 5.
10646         * real.c: Define NE based only on whether or not we have a
10647         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
10648         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
10649         define GET_REAL and PUT_REAL as simple memcpy operations; no
10650         need to byteswap or round.
10651         Use #error instead of #ifdef-ing out the entire file, for
10652         prompt error detection.
10653
10654         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
10655
10656 2002-04-18  David S. Miller  <davem@redhat.com>
10657
10658         * config/sparc/sparc.h (BRANCH_COST): Define.
10659
10660         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
10661         does it.
10662
10663 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
10664
10665         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
10666         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
10667         propagate_block calls after relaxation loop using new variable
10668         stabilized_prop_flags.
10669
10670 2002-04-18  Richard Henderson  <rth@redhat.com>
10671
10672         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
10673         (ia64_va_arg): Expect variable sized types by reference.
10674         * config/ia64/ia64-protos.h: Update.
10675         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
10676         ia64_function_arg_pass_by_reference.
10677
10678 2002-04-18  Richard Henderson  <rth@redhat.com>
10679
10680         * ifcvt.c: Include except.h.
10681         (block_has_only_trap): Break out from find_cond_trap.
10682         (find_cond_trap): Use it.  Always delete the trap block.
10683         (merge_if_block): Allow then block null.  Be less simplistic about
10684         what insns can end a block.
10685         * Makefile.in (ifcvt.o): Depend on except.h.
10686
10687         * config/ia64/ia64.md (trap, conditional_trap): New.
10688
10689 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
10690
10691         PR c/6358
10692         * function.c (assign_parms): Assign hard current_function_return_rtx
10693         register here...
10694         (expand_function_end): ...not here.
10695
10696 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
10697
10698         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10699         * c-tree.h (c_incomplete_type_error): New.
10700         * c-typeck.c (require_complete_type, build_component_ref): Update.
10701         (incomplete_type_error): Rename.
10702         * langhooks-def.h (lhd_incomplete_type_error): New.
10703         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
10704         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10705         * langhooks.c (lhd_incomplete_type_error): New.
10706         * langhooks.h (struct lang_hooks_for_types): New hook.
10707         * tree.c (size_in_bytes): Use new hook.
10708         * tree.h (incomplete_type_error): Remove.
10709 objc:
10710         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10711
10712 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
10713
10714         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
10715         TARGET_FLOAT_FORMAT blocks.
10716
10717 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10718
10719         * doc/install.texi (Downloading the source): Do not mention Chill
10720         any longer, but mention Ada.
10721         (Configuration): Do not mention Chill any longer.
10722
10723 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
10724
10725         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
10726
10727 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
10728
10729         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
10730         in last patch.
10731
10732 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
10733
10734         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
10735         instead of unsigned_type.
10736
10737 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
10738
10739         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
10740         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
10741         later.
10742
10743 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
10744
10745         * attribs.c (vector_type_node_list): New static variable.
10746         (handle_vector_size_attribute): Use it to avoid generating a
10747         new type node each time we are called.
10748
10749         * combine.c (subst): Avoid trying to make a vector mode subreg of
10750         an integer constant.
10751         (gen_lowpart_for_combine): Likewise.
10752
10753 2002-04-18  Roger Sayle  <roger@eyesopen.com>
10754             Jakub Jelinek  <jakub@redhat.com>
10755
10756         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
10757         for integer constant c (if x has unsigned type or sign bit is not
10758         set in c).  This folds the zero/sign extension into the bit-wise and
10759         operation.
10760
10761 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
10762
10763         PR middle-end/6205
10764         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
10765         otherwise xorps.
10766
10767 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
10768
10769         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
10770
10771 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
10772
10773         * gcc.c (read_specs): Detect and fail if an attempt is made to
10774         rename a spec string to an already existing string.
10775
10776 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
10777
10778         * config/s390/s390.c (legitimize_pic_address): Do not generate
10779         illegal address constant without CONST.
10780
10781 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10782
10783         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
10784         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10785
10786 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
10787
10788         PR optimization/6305
10789         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
10790         to make sure previous reloads are taken into account.  Generate
10791         better code if one operand is an in-range immediate constant.
10792
10793 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
10794
10795         * doc/install.texi (Building): libgcj requires GNU make.
10796
10797 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
10798
10799         PR bootstrap/6315
10800         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
10801         even if hard quad and register is not floating.
10802         (movtf reg<-mem split): Disallow splitting if hard quad and
10803         register is floating.
10804         (movtf mem<-reg split): Likewise.
10805         * config/sparc/sparc.c (fp_register_operand): New predicate.
10806         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
10807
10808 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
10809
10810         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
10811         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
10812         (unprotoize.o): Ditto.  Build from protoize.c.  Define
10813         UNPROTOIZE on command line.
10814         * protoize.c: Include cppdefault.h.  Delete include_defaults.
10815         (in_system_include_dir): Use cpp_include_defaults (defined in
10816         cppdefault.o).
10817         * unprotoize.c: Delete file.
10818
10819 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
10820
10821         * config/rs6000/altivec.h (vec_ld): Add array variants.
10822         (vec_lde): Same.
10823         (vec_ldl): Same.
10824
10825 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
10826             Aldy Hernandez <aldyh@redhat.com>
10827
10828         * config/rs6000/altivec.h: Define __ALTIVEC__.
10829         (bool): New.
10830         (__pixel): New.
10831         (pixel): New.
10832         (vec_cfux): New.
10833         (vec_vmaddfp): New.
10834         (vec_vsldoi): New.
10835         Add parentheses to all macro arguments.
10836
10837 2002-04-16  Richard Henderson  <rth@redhat.com>
10838
10839         PR c++/6320
10840         * except.c (remove_eh_handler): Insert inner regions at beginning
10841         of sibling chain.  Refactor expressions.
10842
10843 2002-04-16  Richard Henderson  <rth@redhat.com>
10844
10845         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
10846         * config/sparc/sol2-gas-bi.h: New file.
10847         * config.gcc (sparc*-solaris): Add it as needed.
10848         * configure.in (AS_SPARC64_FLAG): Remove check.
10849         * config.in, configure: Regenerate.
10850
10851         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
10852
10853 2002-04-16  Richard Henderson  <rth@redhat.com>
10854
10855         * config/mips/mips.c (override_options): Don't override N32 for
10856         a 64-bit ISA.
10857
10858         PR 6202
10859         * config/mips/mips.md (can_delay): Split out of existing define_delays.
10860         (HILO_delay): Set can_delay false.
10861
10862 2002-04-16  Dale Johannesen <dalej@apple.com>
10863
10864         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
10865         instruction addresses.
10866         (rs6000_output_function_epilogue): Likewise.
10867
10868 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
10869
10870         * c-parse.in (poplevel, compstmt_start,
10871         compstmt_primary_start): Add ending ';', in accordance
10872         with POSIX.
10873
10874 2002-04-16  Richard Henderson  <rth@redhat.com>
10875
10876         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
10877         Adjust tm_file order to get TARGET_DEFAULT set properly.
10878         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
10879         * doc/install.texi (sparc-solaris): Update.
10880
10881 2002-04-16  Dale Johannesen <dalej@apple.com>
10882
10883         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
10884         comparison operands do not match each other or if modes of
10885         conditions do not match result.
10886
10887 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
10888
10889         PR target/6305
10890         * config/s390/s390.md (mulsidi3): Set both subregs of the
10891         multiword register.
10892
10893 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
10894
10895         * config/rs6000/altivec.h (vec_addc): Type check.
10896
10897 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
10898
10899         PR middle-end/6279
10900         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
10901
10902         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
10903
10904 2002-04-15  Richard Henderson  <rth@redhat.com>
10905
10906         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
10907         call_really_used_regs too.
10908
10909 2002-04-15  Richard Henderson  <rth@redhat.com>
10910
10911         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
10912
10913 2002-04-15  David S. Miller  <davem@redhat.com>
10914
10915         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
10916         as being CLOBBERed.
10917
10918 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
10919
10920         PR c/6290
10921         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
10922         CONST_VECTOR is { 0, ... 0 }.
10923
10924 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
10925
10926         * doc/install.texi (Installing GCC: Configuration): Clarify
10927         the only supported ways to configure gcc.
10928
10929 2002-04-15  Roland McGrath  <roland@frob.com>
10930
10931         * config.gcc (alpha*-*-gnu*): New target configuration.
10932         * config/alpha/gnu.h: New file for it.
10933         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
10934
10935 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
10936
10937         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
10938         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
10939         * tree.h (expand_start_stmt_expr): Update prototype.
10940         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
10941         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
10942         on the STMT_EXPR created for the inline function.
10943
10944 2002-04-15  Richard Henderson  <rth@redhat.com>
10945
10946         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
10947         config/i386/linux-aout.h, config/i386/linux-oldld.h,
10948         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
10949         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
10950         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
10951         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
10952         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
10953         Define __gnu_linux__, not gnu_linux.
10954         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
10955
10956 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
10957
10958         Remove Chill front end.
10959         * gcc.c (default_compilers): Remove Chill entries.
10960         * ch: Remove directory.
10961         * doc/frontends.texi: Remove information about Chill.
10962         * doc/sourcebuild.texi: Likewise.
10963         * doc/standards.texi: Likewise.
10964
10965 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
10966
10967         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
10968         (LONGLONG_STANDALONE): Define.
10969
10970 2002-04-15  David S. Miller  <davem@redhat.com>
10971
10972         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
10973         Call emit_library_call with LCT_NORMAL.
10974         (sparc_initialize_trampoline): Use LCT_foo instead of
10975         magic constant in emit_library_call invocations.
10976         (sparc64_initialize_trampoline): Likewise.
10977         (sparc_profile_hook): Likewise.
10978         * config/sparc/sparc.md: Likewise.
10979
10980         * config/sparc/sparc.c (sparc_extra_constraint_check):
10981         Fix type of argument 'c'.
10982         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
10983         Likewise.
10984
10985 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
10986
10987         * diagnostic.h (output_buffer_state): Redefine.
10988         (output_format_decoder): New macro.
10989         (output_prefixing_rule): Likewise.
10990         (output_line_cutoff): Likewise.
10991         (diagnostic_format_decoder): Adjust.
10992         (diagnostic_prefixing_rule): Likewise.
10993         (diagnostic_line_cutoff): Likewise.
10994         (diagnostic_state): Likewise.
10995         (diagnostic_kind_count): Likewise.
10996         (diagnostic_buffer): Now a macro.
10997
10998         * diagnostic.c (diagnostic_buffer): Remove definition.
10999         (output_is_line_wrapping): Adjust.
11000         (set_real_maximum_length): Likewise.
11001         (output_set_maximum_length): Likewise.
11002         (init_output_buffer): Likewise.
11003         (lhd_print_error_function): Likewise.
11004         (output_do_verbatim): Likewise.
11005
11006 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
11007
11008         * cpperror.c (print_location): Don't print include chain
11009         if line == 0.
11010         (cpp_begin_message): Update to use DL_ macros.
11011         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
11012         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
11013         cpp_notice, cpp_notice_from_errno): Remove.
11014         (cpp_error, cpp_error_with_line): Update to take a diagnostic
11015         level.
11016         (cpp_errno): New.
11017         * cppexp.c (CPP_ICE): Remove.
11018         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
11019         lex, integer_overflow, _cpp_parse_expr): Update.
11020         * cppfiles.c (read_include_file, find_include_file,
11021         handle_missing_header, _cpp_read_file, remap_filename): Update.
11022         * cpphash.h (enum error_type): Remove.
11023         (_cpp_begin_message): Update.
11024         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
11025         cpp_handle_option, cpp_post_options): Update.
11026         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
11027         skip_whitespace, parse_identifier, parse_slow, parse_string,
11028         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
11029         cpp_interpret_charconst): Update.
11030         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
11031         lex_macro_node, do_undef, glue_header_name, parse_include,
11032         do_include_common, read_flag, do_line, do_linemarker, do_ident,
11033         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
11034         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
11035         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
11036         _cpp_pop_buffer, do_diagnostic): Update.
11037         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
11038         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
11039         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
11040         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
11041         cpp_notice, cpp_notice_from_errno): Remove.
11042         (cpp_error, cpp_error_with_line): Update to take a diagnostic
11043         level.
11044         (cpp_errno): New.
11045         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
11046         collect_args, enter_macro_context, save_parameter, parse_params,
11047         _cpp_create_definition, check_trad_stringification,
11048         cpp_macro_definition): Update.
11049         * cppmain.c (cpp_preprocess_file): Update.
11050         * fix-header.c (read_scan_file): Update.
11051
11052 2002-04-14  Andreas Schwab  <schwab@suse.de>
11053
11054         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
11055
11056 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
11057
11058         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
11059
11060 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
11061
11062         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
11063         not gnu_hurd.
11064
11065 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
11066
11067         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
11068
11069 2002-04-13      Joel Sherrill <joel@OARcorp.com>
11070
11071         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
11072         sparc-elf and sparc-rtems targets.
11073
11074 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
11075
11076         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
11077         defined, and __gnu_hurd__ wherever __GNU__ is defined.
11078         * arm/linux-elf.h: Likewise.
11079         * cris/aout.h: Likewise.
11080         * cris/linux.h: Likewise.
11081         * i370/linux.h: Likewise.
11082         * i386/gnu.h: Likewise.
11083         * i386/linux-aout.h: Likewise.
11084         * i386/linux-oldld.h: Likewise.
11085         * i386/linux.h: Likewise.
11086         * i386/linux64.h: Likewise.
11087         * ia64/linux.h: Likewise.
11088         * m68k/linux-aout.h: Likewise.
11089         * m68k/linux.h: Likewise.
11090         * mips/linux.h: Likewise.
11091         * pa/pa-linux.h: Likewise.
11092         * pj/linux.h: Likewise.
11093         * rs6000/sysv4.h: Likewise.
11094         * s390/linux.h: Likewise.
11095         * sh/linux.h: Likewise.
11096         * sparc/linux-aout.h: Likewise.
11097         * sparc/linux.h: Likewise.
11098         * sparc/linux64.h: Likewise.
11099         * xtensa/linux.h: Likewise.
11100
11101 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
11102
11103         * stmt.c (check_unique_operand_names): Expect operand names to
11104         be strings rather than identifiers.  Use simple_cst_equal to
11105         compare them.
11106         (resolve_operand_name_1): Make same identifier to string change here.
11107         * c-parse.in (asm_operand): Convert a named operand into a string.
11108         * cp/parse.y (asm_operand): Likewise.
11109
11110 2002-04-13  Andreas Schwab  <schwab@suse.de>
11111
11112         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
11113
11114 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
11115
11116         Revert these changes:
11117
11118         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
11119
11120         PR c++/5571
11121         * stor-layout.c (layout_decl): Reset the RTL for the decl.
11122
11123 2002-04-12  Richard Henderson  <rth@redhat.com>
11124
11125         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
11126         (sparc*-*-solaris): Clean up header files.
11127         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
11128         and plan on generating 64-bit code.
11129         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
11130         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
11131         * config/sparc/sol2-sld-64.h: Rename ...
11132         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
11133         for AS_SPARC64_FLAG not defined.
11134         * config/sparc/sol2-gld-bi.h: New.
11135         * config/sparc/sol2-sld.h: Remove.
11136         * config/sparc/sol26-sld.h: New.
11137         * config/sparc/sol2.h: Tidy comments.
11138         * doc/install.texi: Document sparc-solaris configury changes.
11139
11140 2002-04-12  Richard Henderson  <rth@redhat.com>
11141
11142         * recog.c (offsettable_address_p): Match the logic in adjust_address.
11143
11144         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
11145         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
11146
11147 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11148
11149         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
11150
11151 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
11152
11153         * pa.c (pa_can_combine_p): Call extract_insn before calling
11154         constrain_operands.
11155
11156 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
11157
11158         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
11159         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
11160         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
11161         (CPP_PREDEFINES): Handle __declspec.
11162         * config/i386/t-interix (USER_H): Remove.
11163
11164 2002-04-12  DJ Delorie  <dj@redhat.com>
11165
11166         * integrate.c (compare_blocks): Make comparisons safe for when
11167         sizeof(int) < sizeof(char *).
11168         (find_block): Likewise.
11169
11170 2002-04-12  Jan Hubicka  <jh@suse.cz>
11171             David Edelsohn  <edelsohn@gnu.org>
11172
11173         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
11174         registers.
11175         (symbol_ref_operand): New.
11176         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
11177         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
11178
11179 2002-04-12  Andreas Schwab  <schwab@suse.de>
11180
11181         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
11182         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
11183         overrides the definition in config/svr4.h.
11184
11185 2002-04-12      Eric Norum <eric.norum@usask.ca>
11186
11187         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
11188         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
11189         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
11190         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
11191         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
11192         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
11193         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
11194         definitions to config/rtems.h and make the targets more similar.
11195
11196 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11197
11198         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
11199         POINTERS_EXTEND_UNSIGNED.
11200         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
11201         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
11202
11203         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
11204         not specified.
11205
11206 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
11207
11208         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
11209         depends on TARGET_SHMEDIA, not TARGET_SH5.
11210
11211 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
11212
11213         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
11214         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
11215
11216 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
11217
11218         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
11219         no r0 clobber.
11220
11221 2002-04-12  Andreas Schwab  <schwab@suse.de>
11222
11223         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
11224
11225 2002-04-12  Richard Henderson  <rth@redhat.com>
11226
11227         PR bootstrap/4191
11228         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
11229
11230         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
11231         modes spanning multiple hard regs.
11232
11233         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
11234
11235 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11236
11237         * pa.c (pa_output_function_prologue): Don't accumulate the total
11238         number of code bytes when using TARGET_64BIT, or gas, SOM and not
11239         the portable runtime.
11240         (output_deferred_plabels): Handle 64bit plabels.
11241         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
11242         generating pic code using the GAS assembler for object formats that
11243         are not SOM (ie., ELF32 and ELF64).
11244         (output_millicode_call): Check attribute type if attribute length is 28.
11245         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
11246         dbr_sequence_length once.
11247         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
11248         dbr_sequence_length once.
11249         * pa.h (TARGET_SOM): Define if not defined.
11250         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
11251         with GAS and not SOM.
11252         (jump, call_internal_reg, call_value_internal_reg): Likewise.
11253         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
11254
11255 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11256
11257         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
11258         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
11259         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
11260         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
11261         elfos.h and dbxelf.h values are fine now.
11262         * config/i386/freebsd.h, config/alpha/freebsd.h
11263         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
11264
11265 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11266
11267         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
11268         or set Acpu or Amachine.  Reformat.
11269         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11270         define.
11271         (LINK_SPEC): Do not need to undef.
11272         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
11273         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
11274         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11275         define.
11276         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
11277         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
11278         (LINK_SPEC): Do not need to undef.
11279         (DONT_USE_BUILTIN_SETJMP): Do not define.
11280         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
11281         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
11282         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
11283         Remove trailing spaces.
11284         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
11285         __ELF__, or set Acpu or Amachine.  Reformat.
11286         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11287         define.
11288
11289 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11290
11291         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
11292         all other *-*-freebsd* targets.
11293
11294 2002-04-11  Richard Henderson  <rth@redhat.com>
11295
11296         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
11297
11298 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11299
11300         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
11301         Include {cpu}/{cpu}.h thru tm_file.
11302         (alpha*-*-linux*ecoff): Remove target.
11303         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
11304         (LINK_SPEC): Remove, is not OS independent.
11305         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
11306         (LINK_SPEC): Do not need to #undef any longer.
11307         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
11308         any longer.
11309         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
11310         __ELF__.
11311         (LINK_SPEC): Moved here from alpha/elf.h.
11312         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
11313         SUB_CPP_PREDEFINES.
11314         * config/alpha/linux-ecoff.h: Remove.
11315         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
11316         (CPP_SPEC): Define _POSIX_SOURCE as needed.
11317         (CPP_SUBTARGET_SPEC): Do not define.
11318         (LINK_SPEC): Do not need to #undef any longer.
11319         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
11320         * config/alpha/vms.h: Likewise.
11321
11322 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
11323
11324         * doc/extend.texi: Remove old claim that typedefs cannot have
11325         an alignment attribute.
11326
11327 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
11328
11329         PR optimization/6177
11330         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
11331         bitpos is 0 and bitsize CONCAT size.
11332
11333 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
11334
11335         PR c/6223
11336         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
11337
11338 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
11339
11340         * config/alpha/freebsd.h: Minor reformatting.
11341         (CPP_SPEC): Define ELF and add cpp_subtarget.
11342         (ASM_SPEC): No longer needed.
11343
11344 2002-04-11  Richard Henderson  <rth@redhat.com>
11345
11346         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
11347         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
11348         (dimode mem/zero splitter): New.
11349
11350 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
11351
11352         * config/cris/cris.c (cris_override_options): Tweak error message
11353         for PIC not implemented.
11354
11355         * config/cris/cris.h: Tweak comments related to parameter-passing.
11356
11357         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
11358
11359 2002-04-10  Richard Henderson  <rth@redhat.com>
11360
11361         * except.c (add_ehl_entry): Allow duplicates after landing pad
11362         creation.
11363
11364 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
11365
11366         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
11367
11368 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
11369
11370         * c-decl.c (c_init_decl_processing): Move generation of
11371         decls for g77_integer_type_node and friends from here ...
11372         * c-common.c (c_common_nodes_and_builtins): ... to here.
11373
11374 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
11375
11376         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
11377         is only used as frame pointer when frame_pointer_needed is true.
11378
11379 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
11380
11381         PR target/817
11382         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
11383         for the fact that the pool entry uses two words.
11384         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
11385         1k bytes.
11386         (movdf_soft_insn): Similarly.
11387         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
11388         for the fact that the pool entry uses three words.
11389
11390 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
11391
11392         * config/mips/mips.c (mips_va_arg): When using the struct version
11393         of the EABI va_list, allow arguments in the register save area to
11394         take up less room than a stack argument.
11395
11396 2002-04-10  Richard Henderson  <rth@redhat.com>
11397
11398         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
11399         if EXPAND_INITIALIZER.
11400
11401 2002-04-09  Richard Henderson  <rth@redhat.com>
11402
11403         * config/alpha/alpha.md (movdi_er_maybe_g): New.
11404         * config/alpha/alpha.c (alpha_expand_mov): Use it.
11405
11406 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
11407
11408         PR optimization/6233
11409         * rtlanal.c (pure_call_p): New function.
11410         * rtl.h (pure_call_p): Declare.
11411         * loop.c (prescan_loop): Use it to set has_nonconst_call.
11412         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
11413
11414 2002-04-09  Eric Christopher  <echristo@redhat.com>
11415
11416         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
11417         information to .comm directive.
11418
11419 2002-04-09  Richard Henderson  <rth@redhat.com>
11420
11421         PR c/5078
11422         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
11423
11424 2002-04-09  Richard Henderson  <rth@redhat.com>
11425
11426         * basic-block.h (flow_delete_block_noexpunge): Declare.
11427         (expunge_block_nocompact): Declare.
11428         * cfg.c (expunge_block_nocompact): Split out from ...
11429         (expunge_block): ... here.
11430         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
11431         (flow_delete_block_noexpunge): Split out from ...
11432         (flow_delete_block): ... here.
11433         * cfgcleanup.c (delete_unreachable_blocks): Compact while
11434         removing dead blocks.
11435         * except.c (exception_handler_labels): Remove.
11436         (exception_handler_label_map): New.
11437         (struct eh_region): Add aka member.
11438         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
11439         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
11440         (for_each_eh_label, for_each_eh_label_1): New.
11441         (init_eh): Register exception_handler_label_map.
11442         (free_eh_status): Use free_region.
11443         (find_exception_handler_labels): Use the map, not the list.
11444         (remove_exception_handler_label): Likewise.
11445         (maybe_remove_eh_handler): Likewise.
11446         (remove_eh_handler): Use the region aka bitmap.
11447         * except.h (exception_handler_labels): Remove.
11448         (for_each_eh_label): Declare.
11449         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
11450         * loop.c (invalidate_loops_containing_label): New.
11451         (find_and_verify_loops): Use it.  Use for_each_eh_label.
11452         * sched-rgn.c (is_cfg_nonregular): Use
11453         current_function_has_exception_handlers.
11454
11455 2002-04-09  Richard Henderson  <rth@redhat.com>
11456
11457         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
11458         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
11459         Do not return changed status.
11460         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
11461         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
11462         New functions that do return changed status.
11463         * sbitmap.h: Update decls.
11464         * gcse.c, lcm.c: Use _cg functions as needed.
11465
11466 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
11467
11468         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
11469         (sh64-*-elf*, sh-*-rtemself*): Likewise.
11470         * config/sh/embed_bb.c: New file.
11471         * config/sh/embed-elf.h: New file.
11472         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
11473         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
11474         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11475         __PTRDIFF_TYPE__ .
11476         (SUBTARGET_CPP_PTR_SPEC): Don't define.
11477         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
11478         Add subtarget_asm_endian_spec.
11479         (ASM_SPEC): Use subtarget_asm_endian_spec.
11480         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
11481         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
11482         (WCHAR_UNSIGNED): Define.
11483         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
11484         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11485         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
11486         Fix value.
11487         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
11488         (sh_adjust_cost): Likewise.
11489         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11490         __PTRDIFF_TYPE__ .
11491         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
11492         (WCHAR_TYPE_SIZE): Likewise.
11493         (ASM_SPEC): Use subtarget_asm_endian_spec.
11494         (SH_ELF_WCHAR_TYPE): #undef/ #define.
11495         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
11496         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
11497         (MAX_WCHAR_TYPE_SIZE): Don't #define .
11498         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
11499         (USER_LABEL_PREFIX): Don't #undef /#define .
11500         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11501         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
11502         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
11503         (ASM_SPEC): Likewise.
11504         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
11505         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
11506         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
11507         (LIB2FUNCS_EXTRA): Define.
11508         * t-sh64 (LIB2FUNCS_EXTRA): Define.
11509         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
11510         (LIB1ASMFUNCS_CACHE): Define.
11511         (LIB2FUNCS_EXTRA): Redefine empty.
11512
11513 2002-04-08  Richard Henderson  <rth@redhat.com>
11514
11515         * reorg.c (get_branch_condition): Use reversed_comparison_code.
11516
11517 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11518
11519         * config/m68hc11/larith.asm (__map_data_section): Fix condition
11520         and optimize for size.
11521         (__do_global_ctors): Fix pointer comparison.
11522         (__do_global_dtors): Likewise.
11523
11524 2002-04-09  David S. Miller  <davem@redhat.com>
11525
11526         * config/sparc/sparc.c (sparc_extra_constraint_check): New
11527         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
11528         allow reloading pseudos.
11529         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
11530         * config/sparc/sparc-protos.h: Declare it.
11531
11532         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
11533         unsigned comparison warning.
11534         (output_restore_regs): Mark leaf_function as unused.
11535
11536 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11537
11538         * expr.c (is_aligning_offset): New function.
11539         (expand_expr, case COMPONENT_EXPR): Call it.
11540
11541 2002-04-08  David S. Miller  <davem@redhat.com>
11542
11543         PR target/6082
11544         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
11545
11546         Make init_priority work on Sparc when using GNU ld.
11547         * config/sparc/linux.h, config/sparc/linux64.h,
11548         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
11549         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
11550         * config/sparc/sol2-gld.h: New file to do the same.
11551         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
11552         sparc/sol2-gld.h to tm_file.
11553
11554         PR optimization/4328
11555         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
11556         * doc/md.texi: Document it.
11557         * config/sparc/sparc.md (movdi_insn_sp64_novis,
11558         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
11559         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
11560         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
11561         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
11562
11563 2002-04-08  Andreas Jaeger  <aj@suse.de>
11564
11565         * stmt.c (expand_asm_operands): Revert last patch from Richard
11566         Henderson.
11567
11568 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11569
11570         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
11571         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
11572
11573 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11574
11575         * doc/contrib.texi (Contributors): Add David O'Brien.
11576
11577 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
11578
11579         * configure.in (auto-build.h): Use target_alias and build_alias
11580         when running configure.
11581         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
11582         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
11583         * configure: Regenerate.
11584
11585 2002-04-07  David S. Miller  <davem@redhat.com>
11586
11587         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
11588
11589 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11590
11591         PR 5933
11592         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
11593         generating 32-bit pic code.
11594
11595 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
11596
11597         * cppinit.c (cpp_create_reader): Initialize
11598         discard_comments_in_macro_exp.
11599         (COMMAND_LINE_OPTIONS): Add "-CC" option.
11600         (cpp_handle_option): Handle "-CC" option.
11601         * cpplex.c (save_comment): If saving a C++ comment in
11602         a directive, convert it to a C comment.
11603         (_cpp_lex_direct): Pass second comment start character to
11604         save_comment to indicate comment type.
11605         * cpplib.c (_cpp_handle_directive): If processing
11606         a "#define" directive and discard_comments_in_macro_exp
11607         is false,  re-enable saving of comments.
11608         (lex_macro_node): If discard_comments_in_macro_exp is false,
11609         discard any comments before the macro identifier.
11610         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
11611         member.
11612         * cppmacro.c (cpp_get_token): If expanding a macro while
11613         processing a directive, discard any comments we might encounter.
11614         (parse_params): If discard_comments_in_macro_exp is false,
11615         ignore comments in the macro parameter list.
11616         * gcc.c (cpp_unique_options): Add "-CC" option.
11617         (option_map): Map "--comments-in-macros" to "-CC".
11618         * doc/cppopts.texi: Document "-CC" option.
11619         * f/lang-specs.h: Add "-CC" option.
11620         * testsuite/gcc.dg/cpp/maccom1.c: New test.
11621         * testsuite/gcc.dg/cpp/maccom2.c: New test.
11622         * testsuite/gcc.dg/cpp/maccom3.c: New test.
11623         * testsuite/gcc.dg/cpp/maccom4.c: New test.
11624         * testsuite/gcc.dg/cpp/maccom5.c: New test.
11625         * testsuite/gcc.dg/cpp/maccom6.c: New test.
11626
11627 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11628
11629         PR middle-end/6180
11630         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
11631
11632 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
11633
11634         PR c++/5571
11635         * stor-layout.c (layout_decl): Reset the RTL for the decl.
11636
11637         PR opt/5120
11638         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
11639         RTX_UNCHANGING_P for the functions arguments when a tail call
11640         is made.
11641
11642 2002-04-06  Jason Merrill  <jason@redhat.com>
11643
11644         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
11645         (parse_options_and_default_flags): Set them appropriately.
11646         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
11647
11648 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
11649
11650         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
11651         here.
11652
11653         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
11654         semicolon.
11655
11656         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
11657         types come in by-reference.  Fix typo in comment.
11658
11659 2002-04-05  David S. Miller  <davem@redhat.com>
11660
11661         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
11662         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
11663         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
11664         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
11665
11666 2002-04-05  David S. Miller  <davem@redhat.com>
11667
11668         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
11669         are not going to emit return instructions, emit at least a nop
11670         for the sake of sane backtraces.
11671
11672 2002-04-05  Richard Henderson  <rth@redhat.com>
11673
11674         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
11675
11676 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
11677
11678         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
11679
11680 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
11681
11682         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
11683         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
11684         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
11685
11686 2002-04-05  Andreas Schwab  <schwab@suse.de>
11687
11688         * c-convert.c: Include c-common.h.
11689         * Makefile.in (c-convert.o): Updated.
11690
11691 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
11692
11693         * mklibgcc.in: Use separate libgcc.map for each multilib.
11694         * Makefile.in (distclean): Don't remove libgcc.map here.
11695
11696 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
11697
11698         * Makefile.in (s-mlib): Handle --disable-multilib by separate
11699         genmultilib invocation.
11700
11701 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
11702
11703         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
11704         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
11705         to num_gprs for symmetry.
11706         * config/mips/mips.c: Adjust accordingly.
11707
11708 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
11709
11710         * c-common.c (truthvalue_conversion): Rename, update.
11711         * c-common.h (c_common_truthvalue_conversion): New.
11712         * c-convert.c (convert): Update.
11713         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11714         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
11715         * c-typeck.c (build_binary_op, build_unary_op,
11716         build_conditional_expr): Update.
11717         * fold-const.c (constant_boolean_node, fold): Use langhook.
11718         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
11719         * langhooks.h (struct lang_hooks): New hook.
11720         * stmt.c (expand_decl_cleanup): Use langhook.
11721         * tree.h (truthvalue_conversion): Remove.
11722 objc:
11723         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11724
11725 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
11726
11727         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
11728         Add rules to make null object file.
11729
11730 2002-04-04  Jim Blandy  <jimb@redhat.com>
11731
11732         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
11733         macro formal parameter names.
11734
11735 2002-04-04  David S. Miller  <davem@redhat.com>
11736
11737         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
11738
11739 2002-04-04  Richard Henderson  <rth@redhat.com>
11740
11741         PR middle-end/5099
11742         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
11743         Support copies into and out of memory.  Don't accept allows_reg
11744         and allows_mem as gospel.
11745
11746 2002-04-04  Richard Henderson  <rth@redhat.com>
11747
11748         PR opt/6165
11749         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
11750         (write_dependence_p): Likewise.
11751
11752 2002-04-04  Richard Henderson  <rth@redhat.com>
11753
11754         * predict.c (estimate_bb_frequencies): Do frequency calculation
11755         with a volatile temporary.
11756
11757 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
11758
11759         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
11760
11761 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11762
11763         PR c++/6119
11764         * final.c (final_start_function): Don't bump profile_label_no here...
11765         (final_end_function): ...but here.
11766
11767 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11768
11769         * config/sparc/sparc.md (pic): New attribute.
11770         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
11771         into stack slots.
11772         (split after do_builtin_setjmp_setup): New.
11773
11774 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11775
11776         PR fortran/6106
11777         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
11778         change.
11779
11780 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11781
11782         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
11783         UNITS_PER_WORD for zero sized aggregates.
11784
11785 2002-04-03  David S. Miller  <davem@redhat.com>
11786
11787         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
11788         one-character spec for this, just use %(link_gcc_c_sequence).
11789
11790 2002-04-03  David S. Miller  <davem@redhat.com>
11791
11792         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
11793         handling.
11794
11795 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11796
11797         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
11798         (DWARF_FRAME_RETURN_COLUMN): Move.
11799         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11800         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
11801         * pa.c (except.h, predict.h): Include.
11802         (FRP): Delete.
11803         (store_reg_modify, set_reg_plus_d): Revise prototypes.
11804         (output_ascii): Add cast.
11805         (store_reg_modify): Revise to add frame notes.
11806         (set_reg_plus_d): Likewise.
11807         (compute_frame_size): Include space for eh data registers in frame if
11808         the current function calls eh_return.
11809         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
11810         function calls eh_return.  Save eh data registers if the current
11811         function calls eh_return.  Fix code to add frame notes.  Emit
11812         blockage to prevent insns with frame notes being scheduled in the
11813         delay slot of calls.
11814         (hppa_expand_epilogue): Restore eh data registers and do final stack
11815         adjustment if the current function calls eh_return.  Don't add frame
11816         notes.
11817         (output_call): Revise for change in length of call insn.  Don't do
11818         return pointer adjustment for an unconditional jump in the delay slot
11819         of a call when using frame notes.
11820         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
11821         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
11822         (ARG_POINTER_CFA_OFFSET): Define.
11823         * pa.md (return_external_pic): New pattern.
11824         (prologue): Correct formatting.  Use return_external_pic if current
11825         function calls eh_return.
11826         (call_internal_symref, call_value_internal_symref,
11827         sibcall_internal_symref, sibcall_value_internal_symref): Change default
11828         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
11829         respectively.
11830         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
11831
11832         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
11833         list of targets to check using "nop" insn.
11834         * configure: Rebuilt.
11835
11836 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
11837
11838         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
11839
11840 2002-04-03  David S. Miller  <davem@redhat.com>
11841
11842         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
11843         library sequence passed to the linker.
11844         (LINK_COMMAND_SPEC): Use it.
11845         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
11846         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
11847         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11848
11849 2002-04-03  Jason Merrill  <jason@redhat.com>
11850
11851         * except.c (struct eh_status): Remove protect_list.
11852         (begin_protect_partials, end_protect_partials): Remove.
11853         (add_partial_entry): Remove.
11854         * except.h: Remove prototypes.
11855
11856         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
11857         expand_decl_cleanup_eh.
11858
11859         PR c++/5636
11860         * tree.h (CLEANUP_EH_ONLY): New macro.
11861         * stmt.c (expand_decl_cleanup_eh): New fn.
11862         (expand_cleanups): Check CLEANUP_EH_ONLY.
11863         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
11864         Use expand_decl_cleanup_eh.
11865         (expand_stmt): Adjust.
11866         * c-common.h: Adjust prototype.
11867
11868 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
11869
11870         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
11871         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
11872         (cris_target_asm_function_epilogue): Ditto.
11873         (cris_initial_frame_pointer_offset): Ditto.
11874         (cris_simple_epilogue): Ditto.
11875         (cris_expand_builtin_va_arg): Variable-size types come in
11876         by-reference.
11877
11878 2002-04-03  David S. Miller  <davem@redhat.com>
11879
11880         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
11881         little-endian.
11882         (set_fast_math): Correct 'fsr' type.
11883
11884 2002-04-03  Richard Henderson  <rth@redhat.com>
11885
11886         PR opt/3569
11887         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
11888         * toplev.c (check_global_declarations): Use it.
11889         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
11890         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11891         (LANG_HOOKS_DECLS): Add it.
11892         * langhooks.c (lhd_warn_unused_global_decl): New.
11893         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11894         * c-objc-common.c (c_warn_unused_global_decl): New.
11895         * c-tree.h (c_warn_unused_global_decl): Declare.
11896         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11897
11898 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
11899
11900         * langhooks-def.h (lhd_set_decl_assembler_name,
11901         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
11902         (LANG_HOOKS_INITIALIZER): Update.
11903         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
11904         * langhooks.h (struct lang_hooks): New hook.
11905         * tree.c (set_decl_assembler_name): Move to langhooks.c.
11906         (lang_set_decl_assembler_name): Remove.
11907         (init_obstacks): Don't set hook.
11908         (decl_assembler_name): New function.
11909         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
11910         (decl_assembler_name): New.
11911         (lang_set_decl_assembler_name): Remove.
11912
11913 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
11914
11915         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
11916         works properly with .hidden symbols.
11917         * configure: Rebuilt.
11918         * config.in: Rebuilt.
11919         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
11920         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
11921         properly with .hidden symbols.
11922
11923 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
11924
11925         PR middle-end/6102
11926         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
11927         USE argument.
11928
11929 2002-04-03  Richard Henderson  <rth@redhat.com>
11930
11931         PR opt/4120
11932         * sched-rgn.c (sets_likely_spilled): New.
11933         (sets_likely_spilled_1): New.
11934         (add_branch_dependences): Use it.
11935
11936 2002-04-02  Richard Henderson  <rth@redhat.com>
11937
11938         PR opt/4311
11939         * loop.h (LOOP_FIRST_PASS): New.
11940         * loop.c (strength_reduce): Mind it when deciding to unroll.
11941         * toplev.c (rest_of_compilation): Set it.
11942
11943 2002-04-02  David S. Miller  <davem@redhat.com>
11944
11945         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
11946         mems_ok_for_ldd_peep when the order of the loads being examined
11947         is reversed.
11948         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
11949         existing comment to increase comprehension of this situation.
11950
11951 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
11952
11953         * config/sh/sh.md: Don't use union real_extract.
11954
11955 2002-04-02  Richard Henderson  <rth@redhat.com>
11956
11957         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
11958
11959 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
11960
11961         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
11962         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
11963         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
11964         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
11965         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
11966         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
11967         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
11968         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
11969         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
11970         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
11971         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
11972         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
11973         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
11974         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
11975         Include as many configury headers via tm_file as possible.  This
11976         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
11977         * config/openbsd-oldgas.h: New file.
11978         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
11979         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
11980         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
11981         config/i386/i386-coff.h, config/i386/i386-interix.h,
11982         config/i386/iscdbx.h, config/i386/linux-aout.h,
11983         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
11984         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
11985         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
11986         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
11987         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
11988         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
11989         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
11990         config/i386/vxi386.h: Do not directly include configury headers.
11991         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
11992         Directly include configury headers that are no longer automatically
11993         included by the above headers.
11994         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
11995         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
11996         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
11997         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
11998         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
11999         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
12000         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
12001         (TARGET_VERSION): Define.
12002         * config/i386/beos-elf.h, config/i386/freebsd.h,
12003         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
12004         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
12005         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
12006         config/i386/sco5.h, config/i386/sysv4.h
12007         (TARGET_VERSION): Do not need to protect.
12008         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
12009         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
12010         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
12011         config/i386/i386-interix.h, config/i386/linux-aout.h,
12012         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
12013         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
12014         (YES_UNDERSCORES): Do not define - not needed.
12015         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
12016         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
12017         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
12018         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
12019         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
12020         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
12021         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
12022         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
12023
12024 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
12025             Richard Henderson  <rth@redhat.com>
12026
12027         PR c/5484
12028         * function.c (assign_temp): Accept either type or decl argument.
12029         Detect variables whose size is too large to fit into an integer.
12030         * stmt.c (expand_decl): Pass the decl, not the type.
12031
12032 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
12033
12034         * protoize.c: Match include directory usage with cppdefault.c.
12035
12036 2002-04-03  Jeffrey A Law  (law@redhat.com)
12037             Hans-Peter Nilsson  <hp@bitrange.com>
12038
12039         * combine.c (simplify_comparison): Avoid narrowing a comparison
12040         with a paradoxical subreg when doing so would drop signficant bits.
12041
12042 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
12043
12044         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
12045         if POINTERS_EXTEND_UNSIGNED is defined.
12046
12047 2002-04-02  Richard Henderson  <rth@redhat.com>
12048
12049         PR opt/3967
12050         * local-alloc.c (contains_replace_regs): LO_SUM may contain
12051         replace regs.
12052
12053 2002-04-02  Richard Henderson  <rth@redhat.com>
12054
12055         * doc/standards.texi: Document required freestanding libc entry points.
12056
12057 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
12058
12059         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
12060         associated splitter.  Remove MQ constraint.
12061         (ctrdi_internal4): Correct CCmode clobber.
12062
12063 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12064
12065         * milli64.S ($$dyncall): New function.
12066         * t-linux (LIB1ASMFUNCS): Revise module list.
12067         (LIB1ASMSRC): Use pa/milli64.S.
12068
12069 2002-04-02  Richard Henderson  <rth@redhat.com>
12070
12071         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
12072         rename solaris_sys_varargs_h.
12073
12074 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12075
12076         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
12077         the same mode as its component.
12078
12079 2002-04-02  Richard Henderson  <rth@redhat.com>
12080
12081         PR opt/190
12082         * final.c (this_is_asm_operands): Export.
12083         * output.h (this_is_asm_operands): Declare.
12084         * config/i386/i386.c (print_operand): Error odd asm operands.
12085
12086 2002-04-02  Richard Henderson  <rth@redhat.com>
12087
12088         PR opt/420
12089         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
12090
12091 2002-04-01  Richard Henderson  <rth@redhat.com>
12092
12093         PR target/1538
12094         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
12095         * fixinc/fixincl.x: Rebuild.
12096
12097 2002-04-01  Richard Henderson  <rth@redhat.com>
12098
12099         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
12100         (atomic_alloc, atomic_free): New.
12101         (SIZE, MASK_FOR, PTR_IN): New.
12102         (emergency_reg_state, emergency_reg_state_free): New.
12103         (emergency_labeled_state, emergency_labeled_state_free): New.
12104         (reg_state_alloced, labeled_state_alloced): New.
12105         (alloc_reg_state, free_reg_state): New.
12106         (alloc_label_state, free_label_state, free_label_states): New.
12107         (push, pop, dup_state_stack, free_state_stack): Use them.
12108         (desc_label_state): Likewise.
12109         (uw_frame_state_for): Free label states and state stack.
12110         (uw_update_reg_address): Eliminate warnings.
12111
12112 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
12113
12114         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
12115         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
12116
12117 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12118
12119         * c-decl.c (grokdeclarator): Update.
12120         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12121         * c-tree.h (c_mark_addressable): New.
12122         * c-typeck.c (default_function_array_conversion, build_unary_op,
12123         build_array_ref, convert_for_assignment): Update.
12124         (mark_addressable): Rename.
12125         * calls.c (try_to_integrate, expand_call): Use langhook.
12126         * expr.c (expand_expr): Use langhook.
12127         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
12128         * langhooks.h (struct lang_hooks): New hook.
12129         * stmt.c (expand_asm_operands): Use langhook.
12130         * tree.h (mark_addressable): Remove.
12131 objc:
12132         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12133
12134 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
12135
12136         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
12137         in previous change.
12138
12139 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
12140
12141         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
12142         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
12143
12144 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12145
12146         * c-common.c (unsigned_conversion_warning, convert_and_check,
12147         unsigned_type, signed_type, shorten_compare,
12148         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
12149         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
12150         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
12151         New.
12152         * c-decl.c (grokdeclarator): Update.
12153         * c-format.c (check_format_types): Update.
12154         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12155         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12156         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
12157         * convert.c (convert_to_integer): Use new hooks.
12158         * expmed.c (make_tree): Use new hooks.
12159         * expr.c (store_expr): Use new hooks.
12160         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
12161         all_ones_mask_p, unextend, fold): Use new hooks.
12162         * langhooks.h (struct lang_hooks_for_types): New hooks.
12163         * tree.h (signed_or_unsigned_type, signed_type,
12164         unsigned_type): Remove.
12165 objc:
12166         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12167         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12168
12169 2002-03-31  Richard Henderson  <rth@redhat.com>
12170
12171         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
12172         (desc_frgr_mem): Fix reference to f16-f31.
12173
12174 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12175
12176         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
12177         RTVEC_ELT): Const-ify.
12178         * varray.h (VARRAY_CHECK): Const-ify.
12179         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
12180         ggc_mark_rtvec, ggc_mark): Const-ify.
12181
12182 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12183
12184         * diagnostic.c: Include langhooks-def.h.
12185         * Makefile.in (diagnostic.o): Update.
12186
12187 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
12188
12189         * c-common.c (c_unsafe_for_reeval): Rename.
12190         * c-common.h (c_unsafe_for_reeval): Rename.
12191         * c-decl.c (finish_incomplete_decl): Rename.
12192         (c_init_decl_processing): Don't set langhook.
12193         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12194         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12195         * c-objc-common.c (c_objc_common_init): Don't set langhook.
12196         * c-tree.h (finish_incomplete_decl): Rename.
12197         * langhooks-def.h (lhd_unsafe_for_reeval): New.
12198         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
12199         (LANG_HOOKS_INITIALIZER): Update.
12200         * langhooks.c (lhd_unsafe_For_reeval): New.
12201         * langhooks.h (struct langhooks): New hooks.
12202         * toplev.c (incomplete_decl_finalize_hook): Remove.
12203         (wrapup_global_declarations): Update.
12204         * tree.c (lang_unsafe_for_reeval): Remove.
12205         (unsafe_for_reeval): Update.
12206         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
12207         Remove.
12208 objc:
12209         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12210         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12211
12212 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
12213
12214         * diagnostic.c (print_error_function): Remove.
12215         (default_print_error_function): Rename.
12216         (report_error_function): Update.
12217         * diagnostic.h (print_error_function): Remove.
12218         (default_print_error_function): Remove.
12219         * langhooks-def.h (struct diagnostic_context): Predeclare.
12220         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
12221         (LANG_HOOKS_INITIALIZER): Update.
12222         * langhooks.h (struct diagnostic context): Predeclare.
12223         (struct lang_hooks): New hook.
12224
12225 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12226
12227         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
12228         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
12229         !flag_pic.
12230         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
12231         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
12232         of PIC_OFFSET_TABLE_REGNUM thruout.
12233         * config/rs6000/rs6000.md: Likewise.
12234         * config/rs6000/darwin.h: Likewise.
12235
12236 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12237
12238         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
12239         unsigned HOST_WIDE_INT, not unsigned int.
12240
12241 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12242
12243         PR middle-end/6096, middle-end/6098, middle-end/6099
12244         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
12245         CODE_LABELs.
12246         (fill_slots_from_thread): Likewise.
12247
12248 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12249
12250         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
12251         floating fields in float regs.
12252         (function_arg_record_value_2): Likewise.
12253
12254 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
12255
12256         * config/mmix/mmix.md (define_constants): Remove misleading
12257         FIXME.  Add MMIX_fp_rO_OFFSET.
12258         ("nonlocal_goto_receiver"): Don't have stack-frame address of
12259         saved rO as part of the pattern.  Remove FIXME.
12260         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
12261         here, at output-time.
12262
12263 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12264
12265         PR middle-end/6100
12266         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
12267         REG_BR_PRED.
12268         (output_v9branch): Likewise.
12269
12270 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
12271
12272         * gcc.c: Revert previous patch for now.
12273         * config/i386/djgpp.h: Likewise.
12274
12275 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
12276
12277         * config/mmix/crti.asm (_init): Register _fini with atexit.
12278         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
12279
12280 2002-03-31  Richard Henderson  <rth@redhat.com>
12281
12282         PR target/3997
12283         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
12284         (ASM_OUTPUT_DEF_FROM_DECLS): New.
12285
12286 2002-03-31  Richard Henderson  <rth@redhat.com>
12287
12288         * libgcc2.c (__bb_exit_func): Make static.
12289
12290         * config/alpha/alpha.md (trap): New.
12291
12292 2002-03-31  Richard Henderson  <rth@redhat.com>
12293
12294         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
12295         promoted argument types; build trap.
12296         (expand_builtin_trap): New.
12297         (expand_builtin): Use it.
12298         * stmt.c (expand_nl_goto_receivers): Likewise.
12299         * expr.h (expand_builtin_trap): Declare.
12300         * libfuncs.h (LTI_abort, abort_libfunc): New.
12301         * optabs.c (init_optabs): Init abort_libfunc.
12302
12303 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
12304
12305         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
12306         (LINK_COMMAND_SPEC): ... from here.
12307         (init_gcc_specs): Duplicate it here too, omitting
12308         shared_name in the second copy.
12309         (init_spec): Test for duplicate
12310         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
12311
12312 2002-03-30  David S. Miller  <davem@redhat.com>
12313
12314         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12315         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
12316
12317 2002-03-30  Roger Sayle <roger@eyesopen.com>
12318             Richard Henderson  <rth@redhat.com>
12319
12320         * regmove.c (combine_stack_adjustments_for_block): Avoid
12321         emitting a stack adjustment of zero bytes.  Let delete_insn
12322         update bb->head.
12323
12324 2002-03-30  Richard Henderson  <rth@redhat.com>
12325
12326         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
12327         (sparc_emitting_epilogue): New.
12328         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
12329         * config/sparc/sparc-protos.h: Update.
12330         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
12331         (TARGET_SWITCHES): Update.
12332         * config/sparc/sparc.md (return): Remove.
12333         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
12334         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
12335         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
12336         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
12337         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
12338         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
12339         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
12340         Remove MASK_EPILOGUE.
12341         * doc/invoke.texi: Update.
12342
12343 2002-03-30  Daniel Berlin  <dan@dberlin.org>
12344
12345         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
12346         CPP will start the file for us.
12347
12348 2002-03-30  Richard Henderson  <rth@redhat.com>
12349
12350         PR target/5446
12351         * config/ia64/ia64.c (group_barrier_needed_p): Special case
12352         prologue_allocate_stack.
12353         (ia64_single_set): Use insn codes for recognition of special
12354         cases, not rtl matching.
12355         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
12356
12357 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
12358
12359         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
12360
12361 2002-03-30  Richard Henderson  <rth@redhat.com>
12362
12363         PR target/6032
12364         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
12365         or -fomit-frame-pointer with profiling.
12366         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
12367         (FUNCTION_PROFILER): Do nothing.
12368         (PROFILE_HOOK): New.
12369         * config/sparc/sparc.c (sparc_override_options): Don't check
12370         code models for profiling.
12371         (sparc_function_profiler): Remove.
12372         (sparc_profile_hook): New.
12373         * config/sparc/sparc-protos.h: Update.
12374
12375 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
12376
12377         PR optimization/6086
12378         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
12379         of SUBREG of volatile MEM or because the MEM was mode dependent,
12380         return CLOBBER instead of unmodified SUBREG.
12381
12382 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
12383
12384         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
12385         when not optimizing.
12386
12387         * toplev.c (rest_of_compilation): Cann mark_constant_function
12388         only when optimizing.
12389
12390         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
12391         are NULL.
12392
12393         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
12394         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
12395         (try_optimize_cfg): clear all AUX fields.
12396
12397         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
12398         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
12399         (ix86_address_cost): Be prepared for SUBREGed registers.
12400         (legitimate_address_p): Accept SUBREGed registers.
12401
12402 2002-03-29  Richard Henderson  <rth@redhat.com>
12403
12404         PR target/5672
12405         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
12406
12407 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12408
12409         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
12410         for aggregate and TFmode types.
12411
12412 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
12413
12414         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
12415
12416 2002-03-29  Richard Henderson  <rth@redhat.com>
12417
12418         PR target/5886
12419         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
12420         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
12421
12422 2002-03-29  Richard Henderson  <rth@redhat.com>
12423
12424         PR target/6041
12425         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
12426         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
12427         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
12428         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
12429         conditional.
12430         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
12431
12432 2002-03-29  Dale Johannesen <dalej@apple.com>
12433
12434         * loop.c (combine_movables): Do allow combination of pseudos.
12435
12436 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
12437
12438         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
12439         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
12440         No functional change except ...
12441         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
12442         * doc/install.texi (*-*-freebsd*): Document port configuration.
12443
12444 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12445
12446         * Makefile.in (convert.o, calls.o, expmed.o): Update.
12447         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
12448         Use new hooks.
12449         * builtin-types.def (BT_PTRMODE): Update.
12450         * c-common.c (type_for_size): Rename c_common_type_for_size.
12451         (type_for_mode): Similarly.
12452         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
12453         Use new hook.
12454         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
12455         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
12456         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
12457         Redefine.
12458         * c-typeck.c (common_type, comptypes, default_conversion):
12459         Use new hooks.
12460         * calls.c: Include langhooks.h.
12461         (emit_library_call_value_1): Use new hooks.  Avoid redundant
12462         calls.
12463         * convert.c: Include langhooks.h
12464         (convert_to_pointer, convert_to_integer): Use new hooks.
12465         * except.c (init_eh): Similarly.
12466         * expmed.c: Include langhooks.h.
12467         (expand_mult_add): Use new hooks.
12468         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
12469         try_casesi): Similarly.
12470         * fold-const.c (optimize_bit_field_compare, make_range,
12471         decode_field_reference, fold_truthop, fold): Similarly.
12472         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
12473         put_var_into_stack): Similarly.
12474         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
12475         LANG_HOOKS_TYPE_FOR_SIZE): New.
12476         (LANG_HOOKS_TYPES_INITIALIZER): Update.
12477         * langhooks.h (lang_hooks_for_types): New hooks.
12478         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
12479         * tree.c (get_unwidened, get_narrower): Similarly.
12480         * tree.h (type_for_mode, type_for_size): Remove.
12481         * varasm.c (force_const_mem): Use new hooks.
12482         * utils2.c (nonbinary_modular_operation): Update.
12483 objc:
12484         * objc-act.c (handle_impent): Update.
12485         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
12486         Redefine.
12487
12488 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
12489
12490         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
12491         * config/ia64/ia64.c (basereg_operand): New.
12492         * config/ia64/ia64-protos.h (basereg_operand): Declare.
12493         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
12494
12495 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
12496
12497         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
12498         unwind information when frame_pointer_needed.
12499         (mmix_assemble_integer): Tweak wording in comment.
12500
12501 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12502
12503         * Makefile.in (except.o): Update.
12504         * except.c: Include langhooks.h.
12505         (init_eh): Use langhook.
12506         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
12507         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
12508         (LANG_HOOKS_INITIALIZER): Update.
12509         * langhooks.h (lang_hooks_for_types): New.
12510         (struct lang_hooks): Add it.
12511         * tree.c (make_lang_type_fn, make_lang_type): Remove.
12512         * tree.h (make_lang_type_fn, make_lang_type): Remove.
12513 config:
12514         * alpha/alpha.c: Include langhooks.h.
12515         (alpha_build_va_list): Use langhook.
12516         * d30v/d30v.c: Include langhooks.h.
12517         (d30v_build_va_list): Use langhook.
12518         * i386/i386.c: Include langhooks.h.
12519         (ix86_build_va_list): Use langhook.
12520         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
12521         * s390/s390.c: Include langhooks.h.
12522         (s390_build_va_list): Use langhook.
12523         * stormy16/stormy16.c: Include langhooks.h.
12524         (stormy16_build_va_list): Use langhook.
12525
12526 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
12527
12528         PR c++/5964
12529         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
12530         attributes.
12531         (length): Compute variable length for branches/calls/jumps here.
12532         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
12533         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
12534         define branch_type attribute.
12535         (divsi3_sp32): Maximum length is 6 not 7.
12536         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
12537         call_address_untyped_struct_value_sp32,
12538         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
12539         * config/sparc/sparc.c (empty_delay_slot): New function.
12540         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
12541         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
12542
12543 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
12544
12545         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
12546         nonzero_bits if not needed.
12547         (nonzero_bits) [XOR]: Likewise.
12548         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
12549         reg_last_set_mode and mode are both MODE_INT, but not equal.
12550         (record_value_for_reg): Compute reg_last_set_nonzero_bits
12551         in nonzero_bits_mode for MODE_INT modes.
12552
12553 2002-03-28  Richard Henderson  <rth@redhat.com>
12554
12555         PR target/5715
12556         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
12557         to GAS.  Correct drift between alternatives.
12558
12559 2002-03-28  Richard Henderson  <rth@redhat.com>
12560
12561         PR target/6087
12562         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
12563
12564 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
12565
12566         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
12567         emulation to the linker.
12568
12569 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
12570
12571         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
12572         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
12573
12574 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
12575
12576         * combine.c (simplify_and_const_int): Make sure to apply mask
12577         when force_to_mode returns a constant integer.  PR3311.
12578
12579 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12580
12581         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
12582
12583 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12584
12585         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
12586         and Objective-C Dialect Options.
12587
12588 2002-03-28  Richard Henderson  <rth@redhat.com>
12589
12590         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
12591         comparison should be done vs !=0 not >0 return code.  Tidy cases.
12592
12593 2002-03-28  Richard Henderson  <rth@redhat.com>
12594
12595         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
12596         on to c_expand_body.
12597         * c-tree.h (finish_function): Update decl.
12598         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
12599
12600 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
12601
12602         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
12603
12604 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
12605
12606         * rtlanal.c: Include flags.h
12607         (may_trap_p): Do not mark FP operations if trapping
12608         if !flag_trapping_math
12609         * Makefile.in (rtlanal.o): Add dependency on flag.h
12610         * ifcvt.c (noce_operand_ok): Avoid the lameness.
12611
12612 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
12613
12614         * mips.md: Use dconst1, not 1.0, as first argument of
12615         REAL_VALUE_LDEXP.  Don't use union real_extract.
12616
12617 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
12618
12619         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
12620         rather than $target.  Heed program_prefix and
12621         program_transform_name.  Search for gas in cross-compiler case too.
12622         "test -x" rather than "test -f".
12623         (gcc_cv_ld): Likewise.
12624         (gcc_cv_nm): Heed program_prefix and program_transform_name.
12625         (gcc_cv_objdump): Likewise.
12626         * configure: Regenerate.
12627
12628 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12629
12630         * Makefile.in (attribs.o): Update.
12631         * attribs.c: Include langhooks.h.
12632         (decl_attributes): Use langhook.
12633         * c-decl.c (insert_default_attributes): Rename.
12634         * c-tree.h (c_insert_default_attributes): New.
12635         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
12636         (LANG_HOOKS_INITIALIZER): Update.
12637         * langhooks.h (struct lang_hooks): New hook.
12638         * tree.h (insert_default_attributes): Remove.
12639 objc:
12640         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
12641
12642 2002-03-27  Andreas Schwab  <schwab@suse.de>
12643
12644         * config/i386/i386.c (classify_argument): Also check for
12645         QUAL_UNION_TYPE.
12646
12647 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12648
12649         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
12650         any more.
12651
12652 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12653
12654         * i960.md (ret): Set PC.
12655         (nonlocal_goto): Fix expander.
12656         * builtins.c (epxand_builin_longjmp): Check that we've emitted
12657         some jump or call.
12658
12659 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
12660
12661         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
12662         of libcall regions.
12663
12664 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12665
12666         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
12667         assigning to BLOCK_FOR_INSN directly.
12668
12669 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
12670
12671         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
12672
12673 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12674
12675         * c-common.c (c_expand_expr): Fix prototype.
12676         * c-common.h (c_expand_expr): Always declare, update.
12677         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12678         * c-objc-common.c (c_objc_common_init): No global hook.
12679         * expr.c (expand_expr): Use langhook.
12680         * expr.h (enum expand_modifier): Conditionally declare.
12681         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
12682         (LANG_HOOKS_INITIALIZER): Update.
12683         * langhooks.c (lhd_expand_expr): New.
12684         * langhooks.h (struct lang_hooks): New hook.
12685         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
12686         (lang_independent_init): Don't default hook.
12687 objc:
12688         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12689
12690 2002-03-27  Richard Henderson  <rth@redhat.com>
12691
12692         PR target/6054
12693         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
12694         TARGET_CONST_GP.  Simplify conditions.
12695
12696 2002-03-27  Richard Henderson  <rth@redhat.com>
12697
12698         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12699         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
12700         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
12701
12702 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
12703
12704         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
12705         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
12706         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
12707         Remove unnecessary masks.
12708         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
12709         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
12710         -mwindows, -mdll switches and their negations.
12711
12712 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12713
12714         * gcc-common.c (lang_mark_false_label_stack): Remove.
12715         * ggc.h (lang_mark_false_label_stack): Similarly.
12716
12717 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
12718
12719         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
12720
12721         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
12722         or __rtems_ is defined.
12723
12724 2002-03-26  Richard Henderson  <rth@redhat.com>
12725
12726         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
12727         if a non-trivial load was emitted.
12728         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
12729         in high+extra+low case.
12730
12731 2002-03-26  Richard Henderson  <rth@redhat.com>
12732
12733         * config.gcc (sparc*-solaris): Use float_format=sparc.
12734
12735 2002-03-26  Richard Henderson  <rth@redhat.com>
12736
12737         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12738         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
12739         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
12740         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
12741         (WINT_TYPE_SIZE): Fix at 32.
12742
12743 2002-03-26  Richard Henderson  <rth@redhat.com>
12744
12745         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
12746         until after eh landing pad generation.
12747         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
12748         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
12749
12750 2002-03-26  Richard Henderson  <rth@redhat.com>
12751
12752         * expr.h (ADD_PARM_SIZE): One more convert for INC.
12753
12754 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
12755
12756         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
12757         and warning switches.
12758         (cc1_options):  Likewise.
12759
12760 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
12761
12762         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
12763         Restore more of the signal context.  Set no_reg_stack_frame.
12764         * config/ia64/unwind-ia64.c (unw_state_record):
12765         Add no_reg_stack_frame, comments.
12766         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
12767         (uw_update_context): Adjust bsp when unwinding from leaf,
12768         but not signal frame.
12769
12770 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
12771
12772         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
12773
12774 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
12775
12776         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
12777
12778 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
12779
12780         PR target/5621
12781         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
12782         "Add a pool_range attribute", which was lost during the ARM/Thumb
12783         merge.
12784
12785 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
12786
12787         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
12788         a register into the MAC16 accumulator.
12789
12790 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
12791
12792         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
12793         (Warning Options): Document -Wswitch-enum.
12794         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
12795         -Wswitch.
12796         (warn_switch_enum): Define variables.
12797         * flags.h (warn_switch_enum): Declare variables.
12798         * stmt.c (expand_end_case_type): When warn_switch_enum /
12799         -Wswitch-enum, perform switch checks.
12800         Fix PR c/5044.
12801
12802 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
12803
12804         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
12805         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
12806         (reload_muladdsi_compare0_scratch): Delete.
12807
12808 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
12809
12810         * doc/install.texi (*-*-freebsd*): Update.
12811
12812 2002-03-26  Richard Henderson  <rth@redhat.com>
12813
12814         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
12815         (SUB_PARM_SIZE): Cast DEC to ssizetype.
12816
12817         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
12818         types from the normal argument frame.
12819
12820         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
12821         variable sized objects by reference.
12822         (sparc_va_arg): Receive them by reference too.
12823
12824 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
12825
12826         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
12827         code to not restoring global registers.
12828
12829 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
12830
12831         * Makefile.in (ggc-common.o): Update.
12832         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
12833         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12834         * c-tree.h (c_mark_tree): New.
12835         * ggc-common.c: Include langhooks.h.
12836         (gcc_mark_trees): Use new langhook.
12837         * ggc-callbacks.c: Delete file.
12838         * ggc.h (lang_mark_tree): Remove.
12839         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
12840         (LANG_HOOKS_INITIALIZER): Update.
12841         * langhooks.h (struct lang_hooks): New hook.
12842 objc:
12843         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12844
12845 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
12846
12847         * doc/cpp.texi: Exclude entire Top node from printed manual.
12848         Move option index after directive index.  Insert page breaks
12849         before GFDL and concept index.  Index environment variables
12850         with command line options.
12851         * doc/cppenv.texi: Use @vtable for environment variable list.
12852         Add paragraph explaining semantics of empty elements in path
12853         variables.  Exclude a cross-reference to Fishkill from the
12854         manpage.  Remove an unnecessary cross-reference of the entry
12855         right above the referer.  Don't use @anchor in text that goes
12856         into manpage.
12857         * doc/cppopts.texi: Cross-reference the environment variables
12858         section, not the specific environment variable, for consistency.
12859
12860 2002-03-25  Richard Henderson  <rth@redhat.com>
12861
12862         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
12863         anywhere in the block.  Don't refer to insns that have been
12864         removed from the chain.  Iterate backward through the new insns.
12865         Don't refer to edges that have been removed.
12866
12867 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
12868
12869         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
12870         test for overflow of constant.
12871
12872 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
12873
12874         PR target/2623
12875         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
12876         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
12877         these patterns on arm_archv4.
12878
12879 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
12880
12881         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
12882         int".
12883
12884 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
12885
12886         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
12887         float_handled, float_handler, float_signal, set_float_handler,
12888         and do_float_handler.  Set handler for SIGFPE to crash_signal.
12889         * toplev.h: Don't prototype do_float_handler.
12890
12891         * c-lex.c: Fold parse_float into lex_number.  Make warning
12892         about portability of hex float constants more informative, and
12893         don't issue it on top of a syntax error.
12894         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
12895         their callers.
12896         * real.h: Define REAL_VALUE_ABS here...
12897         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
12898         simplify_unary_real, simplify_binary_real, and
12899         simplify_binary_is2orm1 into their callers.
12900         * tree.c: Fold build_real_from_int_cst_1 into caller.
12901
12902         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
12903
12904         * tsystem.h: Include float.h here...
12905         * libgcc2.c: ... not here.
12906
12907 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
12908
12909         Fixes for: PR bootstrap/3591, target/5676
12910         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
12911         defined.  Do not disable exceptions or rtti.
12912         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
12913         mcore.h.  Disable exceptions and rtti, since they are not
12914         supported by EPOC.
12915
12916 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
12917
12918         * c-decl.c (maybe_build_cleanup): Remove.
12919         * expr.c (expand_expr): Use langhook.
12920         * langhooks-def.h (lhd_return_null_tree,
12921         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
12922         (LANGHOOKS_INITIALIZER): Update.
12923         * langhooks.c (lhd_return_null_tree): New.
12924         * langhooks.h (struct lang_hooks): New hook.
12925         * tree-inline.c (initialize_inlined_parameters): Use langhook.
12926         * tree.h (maybe_build_cleanup): Remove.
12927
12928 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
12929
12930         * regrename.c (build_def_use): Move recog_memoized
12931         before extract_insn.
12932
12933 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
12934
12935         PR target/6043
12936         * expr.c (emit_group_store): Handle storing into CONCAT.
12937
12938 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
12939
12940         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
12941         corresponding MATCH_DUP.
12942
12943 2002-03-24  Richard Henderson  <rth@redhat.com>
12944
12945         * unroll.c (unroll_loop): Zero label_map.
12946
12947         * gcse.c: Include except.h.
12948         * Makefile.in (gcse.o): Update.
12949
12950 2002-03-24  Richard Henderson  <rth@redhat.com>
12951
12952         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
12953         Do resolve_unique_section before shared data clause.
12954
12955 2002-03-24  Richard Henderson  <rth@redhat.com>
12956
12957         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
12958
12959 2002-03-24  Richard Henderson  <rth@redhat.com>
12960
12961         * recog.c (peephole2_optimize): Split blocks when EH insns are
12962         generated in the middle of a block.  Do global life update if
12963         zapped EH edges.
12964
12965 2002-03-24  Richard Henderson  <rth@redhat.com>
12966
12967         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
12968
12969 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
12970
12971         preprocessor/3951
12972         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
12973         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
12974         (init_dependency_output): Don't make no_output decision here.
12975
12976 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
12977
12978         * stmt.c (check_for_full_enumeration_handling): Remove tests of
12979         warn_switch.  Update description.
12980         (expand_end_case_type): Call check_for_full_enumeration_handling
12981         when warn_switch.
12982
12983 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12984
12985         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
12986         (m68hc11_split_move): Call it to see if the source and destination
12987         operands use the same direction auto inc/dec mode, otherwise make the
12988         source an offsetable memory operand and generate an add.
12989
12990 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12991
12992         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
12993         register for operand 2.
12994         ("*subsi3_zero_extendqi"): Likewise.
12995         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
12996         bits so that it is compatible with a pop.
12997         ("*andhi3_gen"): Likewise.
12998         ("xorhi3"): Likewise.
12999
13000 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
13001
13002         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
13003         -pedantic here...
13004         (cpp_post_options): ... not here.
13005
13006 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
13007             Aldy Hernandez  <aldyh@redhat.com>
13008
13009         Removal of separate preprocessor cpp0.
13010
13011         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
13012         cpp0, install-common): Update.
13013         * c-common.c (flag_preprocess_only): New.
13014         (c_common_init): Preprocess for -E.
13015         * c-common.h (flag_preprocess_only): New.
13016         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
13017         * c-objc-common.c (c_init_decl_processing): Exit quickly
13018         for NULL return from c_common_init.
13019         * cpplib.h (cpp_preprocess_file): New.
13020         * cppmain.c (main, general_init, pfile, progname): Remove.
13021         (do_preprocessing): Rename cpp_preprocess_file, don't call
13022         cpp_finish.  Don't close stdout here.
13023         (setup_callbacks): Update prototype.
13024         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
13025         Update.
13026         * tradcpp.c (main): Ignore -quiet.
13027 objc:
13028         * lang-specs.h (default_compilers): Preprocess with cc1obj.
13029
13030 2002-03-24  Richard Henderson  <rth@redhat.com>
13031
13032         PR optimization/5742
13033         * machmode.def: Add inner mode field to complex modes.
13034         * config/mips/mips.c (mips_function_value): Always define.  Add
13035         new argument to handle libcalls.
13036         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
13037         (FUNCTION_VALUE): Likewise.
13038         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
13039         * config/mips/mips-protos.h: Update.
13040
13041 2002-03-23  Richard Henderson  <rth@redhat.com>
13042
13043         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
13044         * config/sparc/sparc-protos.h: Update.
13045         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
13046
13047 2002-03-23  Richard Henderson  <rth@redhat.com>
13048
13049         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
13050         _start or _init begins the text segment.
13051
13052 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
13053
13054         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
13055         not HOST_WIDEST_INT.
13056         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
13057
13058 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
13059
13060         PR java/5489
13061         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
13062         operand argument to output_return_instruction.
13063         * arm.c (arm_print_operand, case 'd'): If the operand is
13064         const_true_rtx then just return.
13065         (arm_print_operand, case 'D'): If the operand is const_true_rtx
13066         then abort.
13067
13068 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
13069
13070         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
13071         (Warning Options): Document -Wswitch-default.
13072         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
13073         -Wswitch.
13074         (warn_switch_default): Define variable.
13075         (warn_switch): Update comment.
13076         * flags.h (warn_switch_default): Declare variable.
13077         (warn_switch): Update comment.
13078         * stmt.c (expand_end_case): Check for and, when
13079         warn_switch_no_default, warn of a missing default case.
13080
13081 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
13082
13083         * real.h (N): Special case 128 bit doubles.
13084
13085         * combine.c (simplify_comparison): When widening modes, ignore
13086         sign extension on CONST_INTs.
13087
13088 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
13089
13090         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
13091         passed to adjust_address.  Fix comment formatting.
13092
13093
13094 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
13095
13096         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
13097         Always make REAL_VALUE_TYPE a struct containing an array of
13098         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
13099         big it is.  Don't declare or use union real_extract.
13100
13101         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
13102         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
13103         (print_operand), config/arm/arm.c (output_move_double),
13104         config/arm/arm.md (consttable_4, consttable_8),
13105         config/romp/romp.c (output_fpops), config/s390/s390.h
13106         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
13107         (xtensa_output_literal): Don't use union real_extract.
13108
13109         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
13110         (sfmode_constant_to_ulong), config/ns32k/merlin.h
13111         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
13112         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
13113         (PRINT_OPERAND): Don't use local version of union
13114         real_extract.
13115
13116         * config/convex/convex.c (check_float_value), config/vax/vax.c
13117         (vax_float_literal), config/m88k/m88k.md (divdf3),
13118         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
13119         config/pdp11/pdp11.c (output_move_quad): Don't do host
13120         arithmetic on target floating point quantities.
13121
13122         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
13123         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
13124
13125         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
13126         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
13127
13128         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
13129         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
13130         INFINITY.
13131         * print-rtl.c (print_rtx): Disable code which needs
13132         floating-point emulator.
13133         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
13134         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
13135         depending on HOST_FLOAT_FORMAT to be defined properly.
13136
13137         * config/1750a/1750a.c (get_double, float_label): Delete.
13138         (print_operand): Delete huge commented-out chunk.  Use
13139         REAL_VALUE_TO_DECIMAL.
13140         * config/1750a/1750a-protos.h: Delete prototypes of deleted
13141         functions.
13142         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
13143         IEEE_FLOAT_FORMAT.
13144         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
13145         Use REAL_VALUE_TO_DECIMAL as ELF version does.
13146         * config/m88k/m88k.c (real_power_of_2_operand,
13147         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
13148         real_extract out of the union; run the input through
13149         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
13150         from that into the union.
13151         * config/pdp11/pdp11.c (output_move_double): Rearrange
13152         parentheses to make automatic indenter happy.
13153
13154         * doc/tm.texi (Cross-compilation): Rename node to "Floating
13155         Point" and rewrite to describe current situation.  Also adjust
13156         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
13157         match code.
13158         * doc/rtl.texi: Adjust cross reference.
13159
13160 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
13161
13162         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
13163         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
13164         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
13165         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
13166         prevent use of sp as a reload register.
13167         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
13168         non_acc_reg_operand.
13169         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
13170         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
13171         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
13172         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
13173
13174 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
13175
13176         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
13177         * cpplex.c (unterminated): Delete.
13178         (parse_string): No string literal may extend over multiple
13179         lines.  Suppress the error when preprocessing assembly.
13180         * cppmain.c (scan_translation_unit): Strings are single-line.
13181
13182         * doc/cpp.texi: Update to match.
13183
13184 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
13185
13186         PR optimization/5854
13187         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
13188         Shut up warnings.
13189         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
13190         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
13191         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
13192         const0 if scratch register was not allocated.
13193         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
13194         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
13195         with GEN_INT (...).
13196         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
13197         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
13198         with GEN_INT (...) everywhere.  Remove constraints in define_split
13199         patterns.
13200         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
13201         require scratch register for setting 0 into regs/non-pushable memory.
13202
13203 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
13204
13205         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
13206         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
13207
13208 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
13209
13210         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
13211         * cppinit.c (cpp_create_reader):  On by default.
13212         (cpp_handle_option):  Handle -W[no-]endif-labels.
13213         (cpp_post_options):  Also enable if -pedantic.
13214         * cpplib.c (do_else):  Use it.
13215         (do_endif):  Likewise.
13216         * doc/cppopts.texi:  Document new option.
13217         * doc/invoke.texi:  Document new option.
13218
13219 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
13220
13221         * config/i386/i386.c, config/i386/i386.md: Change all occurences
13222         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
13223
13224 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
13225
13226         * flow.c (calculate_global_regs_live): Clear aux fields of
13227         ENTRY and EXIT.
13228
13229 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
13230
13231         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
13232         REG or MEM subregs, pass rtx * instead of rtx to it.
13233         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
13234         rtx * instead of rtx to alter_subreg.
13235         * config/m32r/m32r.c (gen_split_move_double): Likewise.
13236         * config/pj/pj.c (pj_output_rval): Likewise.
13237
13238 2002-03-22  Richard Henderson  <rth@redhat.com>
13239
13240         PR target/3177
13241         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
13242         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
13243         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
13244         (ia64_expand_prologue): Look at int_regs, not words, for number
13245         of incomming int regs.
13246
13247 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
13248
13249         * expr.c (expand_expr): A RESULT_DECL is part of a call.
13250
13251 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
13252
13253         * toplev.c (flag_loop_optimize, flag_crossjumping):
13254         New static variables.
13255         (rest_of_compilation): Conditionalize crossjumping and
13256         loop optimizer.
13257         (parse_options_and_default_flags): Default loop_optimize and
13258         crossjumping.
13259         (lang_independent_options): Add -fcrossjumping and -floop-optimize
13260         * invoke.texi (crossjumping, loop-optimize): Document.
13261
13262 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13263
13264         * real.c (eiisneg): Move outside #ifdef NANS.
13265
13266 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
13267
13268         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
13269         frequencies match; avoid match on different loop depths.
13270         (try_crossjump_to_bb): Kill tests that no longer brings time
13271         savings.
13272         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
13273         updating code.
13274         (split_edge): Likewise.
13275
13276         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
13277         variable.
13278
13279         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
13280         * cfgrtl.c: Include insn-config.h
13281         (split_block) Dirtify block in presence of conditional execution
13282
13283 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13284
13285         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
13286         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
13287         (function_arg): Constify CUMULATIVE_ARGS.
13288         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
13289         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
13290         (UNITS_PER_DOUBLE): New macro.
13291         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
13292         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
13293         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
13294         fp_regs and stack_words.
13295         (EABI_FLOAT_VARARGS_P): New macro.
13296         * config/mips/mips.c (struct mips_arg_info): New.
13297         (mips_arg_info): New function.
13298         (function_arg_advance): Use it.  Add adjustment instructions here
13299         rather than in function_arg.
13300         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
13301         for VOIDmode at the beginning of the function.
13302         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
13303         (function_arg_pass_by_reference): Likewise.
13304         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
13305         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
13306         (mips_va_start): Likewise.  Use the new stack_words field of
13307         CUMULATIVE_ARGS to set up overflow area.  Reformat.
13308         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
13309         doubles and other types, aligning the overflow pointer for non-doubles
13310         too.  Remove some code duplication.  Replace hard-coded constants.
13311
13312 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13313
13314         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
13315         (CLASS_UNITS): Undefine.
13316         (CLASS_MAX_NREGS): Use FP_INC.
13317         * config/mips/mips.c (compute_frame_size): Likewise.
13318         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
13319
13320 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
13321
13322         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
13323         prototype, and handle lexing numbers and identifiers.
13324         (parse_identifier): Update to new form of parse_slow.
13325         (parse_number): Fast path only, use parse_slow otherwise.
13326         (_cpp_lex_direct): Update calls to parse_number.
13327
13328 2002-03-21  DJ Delorie  <dj@redhat.com>
13329
13330         * bb-reorder.c (make_reorder_chain_1): Protect against
13331         when redundant edges are omitted.
13332         * predict.c (dump_prediction): Likewise.
13333
13334 2002-03-21  Richard Henderson  <rth@redhat.com>
13335
13336         PR target/5996
13337         * fixinc/inclhack.def (solaris_stdio_tag): New.
13338         * fixinc/fixincl.x: Regenerate.
13339
13340 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
13341
13342         PR c/5597
13343         * c-typeck.c (process_init_element): Flag non-static
13344         initialization of a flexible array member as illegal.
13345
13346 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
13347
13348         * config/rs6000/t-linux64: New.
13349         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
13350         t-ppccomm.  Use t-rs6000 and t-linux64.
13351         (powerpc64-*-gnu* <tmake_file>): Likewise.
13352         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
13353         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
13354         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
13355
13356 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
13357
13358         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
13359         flag_really_no_inline instead of optimize == 0.
13360
13361         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
13362
13363         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
13364
13365         * flags.h (flag_really_no_inline): New.
13366
13367         * c-common.c (c_common_post_options): Initialize
13368         flag_really_no_inline.
13369
13370         * toplev.c (flag_really_no_inline): New.
13371
13372 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
13373
13374         * config/avr/avr.md (length): Fix length computation for
13375         conditional branches.
13376
13377 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
13378
13379         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
13380         sdbout.o, profile.o): Update.
13381         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
13382         langhook.
13383         * c-common.h (gettags): Move here from tree.h.
13384         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
13385         insert_block, getdecls, kept_level_p, global_bindings_p): New.
13386         * dbxout.c (dbxout_init): Use getdecls langhook.
13387         * expr.c (expand_expr): Use insert_block langhook.
13388         * fold-const.c: Include langhooks.h.
13389         (fold_range_test, fold_binary_op_with_conditional_arg,
13390         fold): Use global_bindings_p langhook.
13391         * integrate.c (expand_inline_function): Use insert_block langhook.
13392         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
13393         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
13394         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
13395         LANG_HOOKS_GETDECLS): New.
13396         (LANG_HOOKS_INITIALIZER): Update.
13397         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
13398         langhook.
13399         * langhooks.h (struct lang_hooks_for_decls): New.
13400         (struct lang_hooks): Update.
13401         * profile.c: Include langhooks.h.
13402         (output_func_start_profiler): Use new langhooks.
13403         * sdbout.c: Include langhooks.h.
13404         (sdbout_init, sdbout_finish): Use getdecls langhook.
13405         * stmt.c: Include langhooks.h.
13406         (expand_fixup, fixup_gotos): Use new langhooks.
13407         * stor-layout.c: Include langhooks.h.
13408         (variable_size): Use global_bindings_p langhook.
13409         * toplev.c (compile_file): Use getdecls langhook.
13410         * tree-inline.c (remap_block): Use insert_block langhook.
13411         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
13412         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
13413
13414 2002-03-21  Richard Henderson  <rth@redhat.com>
13415
13416         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
13417         constants in .data when -fpic.
13418
13419 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13420
13421         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
13422         where appropriate.
13423
13424 2002-03-21  Tom Tromey  <tromey@redhat.com>
13425
13426         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
13427
13428 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13429
13430         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
13431
13432         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
13433
13434 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
13435             Richard Henderson  <rth@redhat.com>
13436
13437         PR c/5354
13438         * c-common.c (c_expand_expr): Preserve result of a statement
13439         expression if needed.
13440
13441 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
13442
13443         PR bootstrap/4195
13444         * genrecog.c (maybe_both_true_mode): Remove.
13445         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
13446         * machmode.def (Pmode): Likewise.
13447
13448 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
13449
13450         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
13451         (nonlocal_mentioned_p_1): New function.
13452         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
13453         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
13454         (mark_constant_function): Recognize pure functions.
13455         * rtl.h (global_reg_mentioned_p): New prototype.
13456         * rtlanal.c (global_reg_mentioned_p,
13457         global_reg_mentioned_p_1): New function.
13458
13459 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13460
13461         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
13462         UNIX assert.h.
13463         * fixinc/fixincl.x: Regenerate.
13464
13465 2002-03-20  Jason Merrill  <jason@redhat.com>
13466
13467         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
13468
13469 2002-03-20  Michael Meissner  <meissner@redhat.com>
13470
13471         * doc/invoke.texi (Optimize Options): Document that -O2 sets
13472         -fstrict-aliasing.
13473
13474 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
13475
13476         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
13477         ".literal_position" directive before the constant pool.
13478
13479 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13480
13481         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
13482         Add Craig Rodrigues.
13483         Add Brad Lucier to testers.
13484
13485 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13486
13487         PR target/4792
13488         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
13489         to if_then_else.
13490         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
13491         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
13492         instead of insn_extract.
13493
13494 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13495
13496         PR bootstrap/4192
13497         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
13498
13499         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
13500         stmt if some case has been output.
13501
13502 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13503
13504         PR c/5972
13505         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
13506         movsfcc_1, movdfcc_1): Add %O2.
13507         * config/i386/i386.c (print_operand): Handle %ON.
13508         Print . before float condition codes in Sun as cmov syntax.
13509         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
13510         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
13511         no longer true.
13512
13513 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
13514
13515         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
13516         return instruction if PC was popped.
13517
13518 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
13519
13520         * config/xtensa/xtensa.md: Remove unused type attributes.
13521         (adddi_carry, subddi_carry): Change type attribute to "multi".
13522
13523 2002-03-19  Dale Johannesen  <dalej@apple.com>
13524
13525         PR optimization/5999, middle-end/5731
13526         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
13527         multiplications by reciprocals.
13528
13529 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
13530
13531         * Makefile.in: Update.
13532         * c-common.c: Include langhooks.h.
13533         (inline_forbidden_p): Use new hook.
13534         * diagnostic.c: Include langhooks.h.
13535         (format_with_decl, announce_function,
13536         default_print_error_function): Use new hook.
13537         * dwarf2out.c (dwarf2_name): Use new hook.
13538         * function.c: Include langhooks.h.
13539         (init_function_start): Use new hook.
13540         * langhooks-def.h (lhd_decl_printable_name): New.
13541         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
13542         (LANGHOOKS_INITIALIZER): Update.
13543         * langhooks.c (lhd_decl_printable_name): New.
13544         * langhooks.h (struct lang_hooks): New hook.
13545         * toplev.c (decl_name, decl_printable_name): Remove.
13546         (open_dump_file): Use new hook.
13547         (process_options): Remove old hook.
13548         * tree.h (decl_printable_name): Remove.
13549 objc:
13550         * objc-act.c (objc_init): Remove old hook.
13551         (objc_printable_name): Export.
13552         * objc-act.h (objc_printable_name): New.
13553         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
13554
13555 2002-03-19  Jim Blandy  <jimb@redhat.com>
13556
13557         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
13558         the start_source_file debug hook, not the current line number.
13559
13560 2002-03-19  Richard Henderson  <rth@redhat.com>
13561
13562         * flow.c (EH_USES): Provide default.
13563         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
13564         * doc/tm.texi (EH_USES): New.
13565
13566         * config/ia64/ia64.c (ia64_eh_uses): New.
13567         * config/ia64/ia64-protos.h: Update.
13568         * config/ia64/ia64.h (EH_USES): New.
13569
13570 2002-03-19  Richard Henderson  <rth@redhat.com>
13571
13572         * varasm.c (output_constant_def): Fix stupid typo.
13573
13574 2002-03-19  Richard Henderson  <rth@redhat.com>
13575
13576         PR 5879
13577         * except.c (current_function_has_exception_handlers): New.
13578         * except.h: Declare it.
13579         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
13580         Combine tests that disable all sibcalls for the function.
13581
13582 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
13583
13584         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
13585         for INTEGER_CST.
13586
13587 2002-03-19  Richard Henderson  <rth@redhat.com>
13588
13589         PR 5977, 5991
13590         * config/ia64/ia64.c: Revert 2002-03-01 patch.
13591         * config/ia64/ia64.h (INIT_EXPANDERS): New.
13592
13593 2002-03-19  Jim Blandy  <jimb@redhat.com>
13594
13595         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
13596         name, even if the replacement list contains no tokens, as required
13597         by Dwarf.
13598
13599 2002-03-19  Jason Merrill  <jason@redhat.com>
13600
13601         * varasm.c (globalize_decl): Get the name from the RTL, not
13602         DECL_ASSEMBLER_NAME.
13603
13604         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
13605
13606 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
13607
13608         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
13609         subdi_carry): Define.
13610
13611 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
13612
13613         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
13614         about -fpic/-fPIC if extra_warnings set.
13615
13616 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
13617
13618         * expr.c (expand_expr): Sign-extend CONST_INT generated from
13619         TREE_STRING_POINTER.
13620         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
13621
13622 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13623
13624         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
13625         in favor of SP if FRAME_POINTER_REQUIRED is false.
13626
13627 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
13628
13629         * emit-rtl.c (gen_int_mode): New function.
13630         * rtl.h: Prototype for it.
13631         * combine.c (make_extraction, simplify_comparison), expmed.c
13632         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
13633         (convert_modes, store_field), optabs.c (expand_fix),
13634         simplify-rtx.c (neg_const_int, simplify_unary_real),
13635
13636         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
13637         Use it instead of GEN_INT (trunc_int_for_mode (...)).
13638
13639 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
13640
13641         PR c/5656
13642         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
13643         convert_parm_for_inlining.
13644         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
13645         Define.
13646         * langhooks-def.h: Likewise.
13647         * objc/objc-lang.c: Likewise.
13648         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
13649         function.
13650         * tree-inline.c (initialize_inlined_parameters):
13651         Call convert_parm_for_inlining lang hook if needed.
13652         * c-typeck.c (c_convert_parm_for_inlining): New function.
13653         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
13654
13655 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
13656
13657         * calls.c (precompute_arguments): Do not assume that temporaries
13658         can be destroyed after expanding the argument.
13659         (expand_call): Likewise.
13660
13661 2002-03-15  Eric Christopher  <echristo@redhat.com>
13662
13663         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
13664         Fix register preference on last change.
13665         * config/mips/mips.c (mips_return_in_memory): New function.
13666         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
13667         * config/mips/mips-protos.h: Declare.
13668         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
13669         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
13670
13671 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
13672
13673         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
13674         a register too.
13675         (anddi3, iorsi3): Likewise.
13676
13677         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
13678         use %gprel for symbols that are going to be placed in linkonce
13679         sections.
13680
13681         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
13682         RETURN_ADDRESS_POINTER_REGNUM to $ra.
13683         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
13684         not needed.  Disregard leaf_function_p().
13685         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
13686         mips16 frame pointer.
13687         * config/mips/mips.md (store ra): Only to small SP offsets.
13688         2001-08-22  Graham Stott  <grahams@redhat.com>
13689         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
13690         return a REG rtx for the return address register.
13691
13692 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
13693
13694         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
13695         constant-pool addresses as "mode-dependent".
13696         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
13697
13698 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
13699
13700         PR target/5740
13701         * expr.c (emit_group_load): Use extract_bit_field if
13702         needed for CONCAT arguments.
13703
13704 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
13705
13706         PR target/4863
13707         * arm.md (tablejump): Make this a define_expand.  For PIC add the
13708         offset to the base of the table.
13709         (thumb_tablejump): Matcher for Thumb tablejump insn.
13710         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
13711         as the difference of two labels.
13712         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13713         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
13714         tables in the code.
13715         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
13716         * arm.c (get_jump_table_size): If the table is not in the text
13717         section, return zero.
13718
13719 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
13720
13721         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
13722         of gen_rtx_SUBREG.
13723         (arm_reload_out_hi): Use gen_lowpart instead of
13724         gen_rtx_SUBREG to access QImode components.
13725         * config/arm/arm.md: Disable zero_extend split for QImode
13726         subregs in BIG_ENDIAN mode.
13727         (storehi_bigend): Match use of least significant byte.
13728         (storeinthi): Remove extraneous SUBREG.
13729         Add missing construction of operands[2].
13730         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
13731         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
13732         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
13733
13734 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
13735
13736         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
13737         any_operand.
13738
13739 2002-03-17  Richard Henderson  <rth@redhat.com>
13740
13741         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
13742         explicitly.
13743
13744 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
13745
13746         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
13747         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
13748
13749 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13750
13751         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
13752
13753         * predict.c (estimate_bb_frequencies): Delete unused variables.
13754
13755 2002-03-17  Richard Henderson  <rth@redhat.com>
13756
13757         * config/ia64/ia64.c (ia64_attribute_table): Move before
13758         targetm definition.  Make static.
13759
13760 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
13761
13762         * c-common.h (yyparse, c_common_parse_file): New.
13763         * c-lang.c: Include c-common.h.
13764         (LANG_HOOKS_PARSE_FILE): Redefine.
13765         * c-lex.c: Include c-common.h.
13766         (yyparse): Rename c_common_parse_file.  Call yyparse.
13767         * c-parse.in (yyparse): Remove macro.
13768         * c-tree.h (yyparse_1): Remove.
13769         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
13770         (LANG_HOOKS_INITIALIZER): Update.
13771         * langhooks.h (struct lang_hoooks): New hook parse_file.
13772         * toplev.c (compile_file): Use parse_file hook.
13773         * tree.h (yyparse): Remove.
13774         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
13775
13776 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
13777
13778         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
13779         float_truncate, not fix.
13780         ("*truncdfsf2_real"): Ditto.
13781         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
13782
13783         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
13784
13785 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
13786
13787         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
13788         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
13789         where appropriate.  Make the second reference to
13790         leaf_function_p a function call, as intended.  Reindented.
13791
13792         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
13793         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
13794
13795         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
13796         add register to non-constant into sp.
13797
13798         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
13799         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
13800         (mips16_gp_pseudo_rtx): Lose.
13801         (INIT_EXPANDERS): Deleted.
13802         * config/mips/mips.c (mips_init_machine_status): New.
13803         (mips_free_machine_status): New.
13804         (mips_mark_machine_status): New.
13805         (override_options): Set them.
13806         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
13807         (struct machine_function): ... new.  Replaced all references.
13808         (mips_add_gc_roots): Don't mark them.
13809         (embedded_pic_fnaddr_reg): New, extracted from...
13810         (embedded_pic_offset): ... here.
13811         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
13812         (movsi): Likewise.
13813
13814 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
13815
13816         * cppinit.c: Revert -MD removal.
13817
13818 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13819
13820         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
13821         soft registers by default for 68HC12.
13822         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
13823         when compiling with -fomit-frame-pointer.
13824         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
13825         (expand_epilogue): Likewise.
13826         (m68hc11_gen_rotate): Use exg when rotating by 8.
13827
13828 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13829
13830         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
13831         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
13832         (splits): Remove unused add splits.
13833         ("*addhi3_68hc12"): Tune constraints.
13834         ("addhi_sp"): Try to use X instead of Y in all cases and if the
13835         constant fits in 8-bits and D is dead use abx/aby instructions.
13836         ("*addhi3"): Remove extern declaration of ix_reg.
13837         ("*subsi3"): Optimize and provide new split.
13838         ("subhi3"): Cleanup.
13839         ("*subhi3_sp"): Avoid saving X if we know it is dead.
13840         (arith splits): For 68hc12 save the address register on the stack
13841         and do the arithmetic operation with a pop.
13842
13843 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13844
13845         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
13846         allocating QImode in address registers.
13847         ("*movqi_m68hc11"): Likewise.
13848
13849 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
13850
13851         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
13852
13853 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
13854
13855         * cppinit.c (print_help): Display -MD and -MMD.
13856         Don't display usage string.  Update assertion syntax and
13857         typo.
13858         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
13859         (cpp_handle_option): Update.
13860
13861 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
13862
13863         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
13864         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
13865         and define it so that regardless of target CPU size,
13866         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
13867         of "int" rather than "long."
13868
13869 2002-03-15  Richard Henderson  <rth@redhat.com>
13870
13871         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
13872         size as a tree.
13873
13874 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13875
13876         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
13877         ("tstqi" split): Avoid using memory for tstqi on address register.
13878         (splits): Remove constraints.
13879         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
13880         ("cmpdf", "cmpsf"): Remove since not used.
13881         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
13882         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
13883
13884 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13885
13886         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
13887         ("neghi2"): Tighten constraints.
13888         ("one_cmplsi2"): Optimize and simplify split.
13889         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
13890
13891 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13892
13893         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
13894         and split of AND operation to clear the upper bits.
13895         ("*logicalsi3_zextqi"): Likewise.
13896         ("*logicallhi3_zexthi_ashift8"): Likewise.
13897         ("*logicalsi3_silshr16"): Likewise.
13898         ("logicalsi3_silshl16"): Likewise.
13899         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
13900
13901 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13902
13903         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
13904         (m68hc11_indirect_p): New function.
13905         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
13906         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
13907         TARGET_M6812.
13908         (asm_print_register): Likewise.
13909         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
13910         (m68hc11_indirect_p): Declare.
13911         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
13912         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
13913         (TARGET_SWITCHES): New option -mrelax.
13914         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
13915         destination.
13916         ("iorsi3", "xorsi3"): Likewise.
13917         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
13918         ("*andhi3_mem"): New to handle destination in memory with bclr
13919         and a scratch register.
13920         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
13921         ("*andhi3_const"): New when operand2 is constant.
13922         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
13923         ("*andhi3_gen"): Cleanup of the old "andhi3".
13924         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
13925         ("xorqi3"): Update constraints.
13926
13927 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13928
13929         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
13930         for reg_equiv_memory_loc when the operand is a register that does
13931         not get a hard register (stack location).
13932         (tst_operand): After reload, accept all memory operand.
13933         (symbolic_memory_operand): Fix detection of symbolic references.
13934         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
13935         accept symbols and any constant.
13936
13937 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13938
13939         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
13940         note on the insn that sets the soft frame register.
13941         (must_parenthesize): ix and iy are also reserved names.
13942         (print_operand_address): One more place where parenthesis are required
13943         to avoid confusion with register names.
13944         (m68hc11_gen_movhi): Allow push of stack pointer.
13945         (m68hc11_check_z_replacement): Fix handling of parallel with a
13946         clobber.
13947         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
13948         the replacement register is.
13949         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
13950         and D8_REGS classes.
13951         (MODES_TIEABLE_P): All modes are tieable except QImode.
13952
13953 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13954
13955         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
13956         (___subdi3): Likewise.
13957         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
13958         (__map_data_section): Optimize 68hc11 case.
13959
13960 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13961
13962         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
13963         than a shift to avoid adding a register with itself.
13964         (m68hc11_memory_move_cost): Take into account NO_REGS.
13965         (m68hc11_register_move_cost): Update and use memory move cost
13966         for soft registers.
13967         (m68hc11_address_cost): Make cost of valid offset not 0 so that
13968         it gives more opportunities to cse to optimize.
13969         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
13970         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
13971
13972 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
13973
13974         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
13975         * c-common.def (CLEANUP_STMT): New tree node.
13976         * c-common.h (CLEANUP_DECL): New macro.
13977         (CLEANUP_EXPR): Likewise.
13978         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
13979         * expr.c (expand_expr): Tidy.
13980         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
13981         * tree-inline.c (initialize_inlined_parameters): Clean up
13982         new local variables.
13983
13984 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
13985
13986         PR bootstrap/4128
13987         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
13988         before movrXX only, use reg_overlap_mentioned_p.
13989         Only special case NE if just one insn can be generated.
13990
13991 2002-03-15  Jason Merrill  <jason@redhat.com>
13992
13993         * varasm.c (assemble_variable): Call resolve_unique_section before
13994         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
13995         of error_mark_node.
13996
13997 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
13998
13999         PR target/5170
14000         * arm.md (split pattern for thumb shiftable immediates): Add comment
14001         explaining non-obvious test.
14002
14003 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
14004
14005         PR target/5712
14006         * arm.md (movaddr, movaddr_insn): Delete.
14007
14008 2002-03-15  Jason Merrill  <jason@redhat.com>
14009
14010         * toplev.c (wrapup_global_declarations): Clarify variable handling.
14011         -fkeep-static-consts doesn't apply to comdats.
14012
14013 2002-03-14  Richard Henderson  <rth@redhat.com>
14014
14015         * c-decl.c: Include c-pragma.h.
14016         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
14017         (finish_function): Tidy.
14018         * c-pragma.c: Include c-common.h.
14019         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
14020         (handle_pragma_weak): Use them.
14021         (init_pragma): Register pending_weaks.
14022         * c-pragma.h (maybe_apply_pragma_weak): Declare.
14023         * print-tree.c (print_node): Print DECL_WEAK.
14024         * varasm.c (mark_weak_decls): Remove.
14025         (remove_from_pending_weak_list): Remove.
14026         (add_weak): Remove.
14027         (asm_emit_uninitialised): Call globalize_decl for weak commons.
14028         (weak_decls): Make a tree_list.
14029         (declare_weak): Cons weak_decls directly.
14030         (globalize_decl): Remove weak_decls elements directly.
14031         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
14032         symbols.  Don't pretend to handle aliases.
14033         (init_varasm_once): Update weak_decls registry.
14034         * Makefile.in: Update dependencies.
14035
14036 2002-03-14  Richard Henderson  <rth@redhat.com>
14037
14038         PR target/5312
14039         * config/ia64/ia64.c: Include tm_p.h last.
14040         (gen_nop_type): Remove duplicate definition.
14041         (cycle_end_fill_slots): Set sched_data for second L slot.
14042         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
14043         (nop_cycles_until): Fix typos.
14044
14045 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
14046
14047         PR optimization/5891
14048         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
14049
14050 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
14051
14052         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
14053           descriptors correctly.
14054
14055 2002-03-14  Michael Meissner  <meissner@redhat.com>
14056
14057         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
14058         100, allowing MAX_UNROLLED_INSNS to be overridden.
14059
14060         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
14061         --param.
14062
14063         * unroll.c (params.h): Include.
14064         (MAX_UNROLLED_INSNS): Delete, now in params.h.
14065
14066         * doc/invoke.texi (--param max-unroll-insns): Document.
14067
14068         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
14069
14070 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
14071
14072         * arm.md: Fix warnings about constraints in peepholes and splits.
14073
14074 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
14075
14076         * cpphash.h (struct lexer_state): Remove line_extension member.
14077         * cpplib.c (dequote_string, do_linemarker): New functions.
14078         (linemarker_dir): New data object.
14079         (DIRECTIVE_TABLE): No longer need to interpret #line in
14080         preprocessed source.  Delete obsolete comment about return
14081         values of handlers.
14082         (end_directive, directive_diagnostics, _cpp_handle_directive):
14083         Don't muck with line_extension.
14084         (directive_diagnostics): No need to issue warnings for
14085         linemarkers here.
14086         (_cpp_handle_directive): Issue warnings for linemarkers here,
14087         when appropriate.  Dispatch linemarkers to do_linemarker, not
14088         do_line.
14089         (do_line): Code to handle linemarkers split out to do_linemarker.
14090         Convert escape sequences in filename argument, both places.
14091
14092         * cppmacro.c (quote_string): Rename cpp_quote_string and
14093         export.  All callers changed.
14094         * cpplib.h (cpp_quote_string): Prototype.
14095         * cppmain.c (print_line): Call cpp_quote_string on to_file
14096         before printing it.
14097
14098         * doc/cpp.texi: Document that escapes are now interpreted in
14099         #line and in linemarkers, and that non-printing characters are
14100         converted to octal escapes when linemarkers are generated.
14101
14102 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
14103
14104         * emit-rtl.c (try_split): Use delete_insns.
14105         * recog.c (split_all_insns): Fix terminating condition.
14106
14107 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
14108             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
14109
14110         PR target/5828
14111         * arm.c (arm_output_epilogue): Fix floating-point register save
14112         adjustment when using a frame pointer.
14113
14114 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
14115
14116         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
14117         * config/mips/mips.c (compute_frame_size): Retrofit them here.
14118         (save_restore_insns, mips_expand_epilogue): And here.
14119         (build_mips16_call_stub): And here.
14120         (mips_function_value): Use the new macros to decide whether a single
14121         or complex float can be returned in floating-point registers.  Return
14122         a parallel rtx in the complex case.
14123
14124 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
14125
14126         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
14127         call after liveness analysis.
14128
14129         * recog.c (split_insn): Use delete_insn_and_edges.
14130
14131         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
14132         instructions to have branch prediction notes.
14133         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
14134
14135 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
14136
14137         * configure.in: Don't pass -Wno-long-long to a ADA compiler
14138         that doesn't support it.
14139         * configure: Regenerate.
14140
14141 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14142
14143         PR target/5626
14144         * config/sparc/sparc.md (normal_branch, inverted_branch,
14145         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
14146         inverted_fp_branch): Adjust calls to output_cbranch.
14147         Set length attribute.
14148         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
14149         output_v9branch.  Set length attribute.
14150         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
14151         predicates.
14152         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
14153         (output_cbranch): Likewise.  Handle far branches.
14154         (output_v9branch): Handle far branches.
14155         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
14156         Adjust prototypes.
14157         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
14158         noov_compare64_op predicates.
14159
14160 2002-03-13  Jason Merrill  <jason@redhat.com>
14161
14162         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
14163         into the function and constify it.
14164         * gthr-dce.h, gthr-solaris.h: Likewise.
14165
14166 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
14167
14168         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
14169         * config/rs6000/rs6000.c (rs6000_va_arg): Use
14170         std_expand_builtin_va_arg if not ABI_V4.
14171
14172 2002-03-13  Jason Merrill  <jason@redhat.com>
14173
14174         * varasm.c (globalize_decl): New fn.
14175         (assemble_start_function): Use it.
14176         (asm_emit_uninitialized): Use it.
14177         (assemble_alias): Use it.
14178         (assemble_variable): Use it.
14179
14180 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
14181
14182         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
14183         2002-03-12 internal visibility change.
14184         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
14185         visibility into SYMBOL_REF_FLAG.
14186
14187 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
14188
14189         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
14190         VOIDmode operand.  Add compile-time optimization for constant results.
14191
14192 2002-03-12  Jason Merrill  <jason@redhat.com>
14193
14194         * c-typeck.c (convert_for_assignment): Don't allow conversions
14195         between pointers and references.  Only allow lvalues to convert to
14196         reference.
14197
14198 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
14199
14200         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
14201         before prologue, to avoid scheduling problems.
14202
14203 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14204
14205         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
14206         (ELIMINABLE_REGS): Add sfp->sp.
14207         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
14208
14209 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14210
14211         PR optimization/5892
14212         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
14213
14214 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14215
14216         * loop.c (basic_induction_var): Don't call convert_modes if mode
14217         classes are different.
14218
14219 2002-03-12  Richard Henderson  <rth@redhat.com>
14220
14221         PR optimization/5901
14222         * function.c (reposition_prologue_and_epilogue_notes): Position
14223         the markers after/before the last/first insn not deleted.
14224
14225 2002-03-12  Richard Henderson  <rth@redhat.com>
14226
14227         PR optimization/5878
14228         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
14229         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
14230         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
14231
14232         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
14233         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
14234         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
14235
14236         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
14237         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
14238         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
14239         also.  Don't set it if not flag_pic.
14240         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
14241         to be INVALID_REGNUM when not used.
14242
14243 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
14244
14245         * expmed.c (store_bit_field): Reset alias set for memory.
14246         (extract_bit_field): Same.
14247
14248 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14249
14250         * c-common.c (c_tree_code_type, c_tree_code_length,
14251         c_tree_code_name, add_c_tree_codes): Delete.
14252         * c-common.h (add_c_tree_codes): Delete.
14253         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
14254         Define.
14255         * c-objc-common.c (c_objc_common_init): Don't call
14256         add_c_tree_codes, instead set lang_unsafe_for_reeval.
14257         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
14258         objc_tree_code_name, add_objc_tree_codes): Delete.
14259         (objc_init): Don't call add_objc_tree_codes.
14260         * objc/objc-lang.c (tree_code_type, tree_code_length,
14261         tree_code_name): Define.
14262         * toplev.c (lang_independent_init): Don't set
14263         tree_code_length[IDENTIFIER_NODE].
14264         * tree.c (tree_code_type, tree_code_length, tree_code_name):
14265         Delete definitions, moved to language front-ends.
14266         * tree.def (IDENTIFIER_NODE): Hardwire the length.
14267         * tree.h (tree_code_type, tree_code_length, tree_code_name):
14268         Const-ify.
14269         (tree_code_length): Change type to unsigned char.
14270
14271 2002-03-12  Richard Henderson  <rth@redhat.com>
14272
14273         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
14274         internal visibility change.
14275
14276 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14277
14278         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
14279         validize_mem() instead of change_address to avoid clobbering
14280         memory attributes.
14281
14282 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
14283
14284         * c-lex.h (position_after_whitespace): Remove.
14285
14286 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
14287
14288         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
14289         (lex_string): Use unsigned char pointers.
14290
14291 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
14292
14293         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
14294         is not a valid memory_operand.
14295
14296 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14297
14298         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
14299         * config/xtensa/lib1funcs.asm: Fix copyright to include
14300         special case for libgcc files.
14301         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
14302         (__divsi3): Likewise.
14303         (__umodsi3): Likewise.
14304         (__modsi3): Likewise.
14305         * config/xtensa/lib2funcs.S: Fix copyright to include
14306         special case for libgcc files.
14307
14308 2002-03-12  Tom Rix  <trix@redhat.com>
14309
14310         * collect2.c (resolve_lib_name): Move outside of
14311         OBJECT_FORMAT_COFF ifdef.
14312         (ignore_library): Same.
14313
14314 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14315
14316         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
14317
14318 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14319
14320         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
14321         to function_section before writing out the constant pool.
14322
14323 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
14324
14325         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
14326         zero_constant.
14327         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
14328
14329 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
14330
14331         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
14332         (adddi3): Likewise.
14333         (movdf): Likewise.
14334         (movdi): Likewise.
14335         (cmpsi splitter): Likewise.
14336         (modsi3): Fail if <= 0.
14337         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
14338         redundant test when HOST_BITS_PER_WIDE_INT != 32.
14339         (reg_or_sub_cint64_operand): Likewise.
14340         (num_insns_constant_wide): Optimize sign extension.
14341         (rs6000_legitimize_address): Likewise.
14342
14343 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
14344
14345         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14346         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14347
14348 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
14349
14350         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
14351         address calculation.
14352
14353 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
14354
14355         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
14356         scratch register to DImode / TImode.
14357         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
14358         register used does not overlap the target.
14359
14360 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14361
14362         * Makefile.in (debug.o): Depend on debug.h.
14363         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
14364         * debug.c (do_nothing_debug_hooks): Likewise.
14365         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
14366         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
14367         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
14368         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
14369         * dwarfout.c (dwarf_debug_hooks): Likewise.
14370         * integrate.c (output_inline_function): Likewise.
14371         * objc/objc-act.c (synth_module_prologue): Likewise.
14372         * sdbout.c (sdb_debug_hooks): Likewise.
14373         * toplev.c (debug_hooks): Likewise.
14374         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14375
14376 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14377
14378         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
14379         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
14380         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
14381         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
14382         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
14383         * defaults.h (POINTER_SIZE): Define.
14384         * doc/tm.texi (POINTER_SIZE): Document default.
14385
14386 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14387
14388         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
14389
14390 2002-03-11  Richard Henderson  <rth@redhat.com>
14391
14392         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
14393         if rebuild_label_notes_after_reload.
14394
14395 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
14396
14397         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
14398         emit pic register load if "internal" visibility.
14399         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
14400         (cris_expand_builtin_va_arg): Do all computations on trees.
14401
14402 2002-03-11  Richard Henderson  <rth@redhat.com>
14403
14404         * rtlanal.c: Include recog.h.
14405         (keep_with_call_p): Fix thinko.
14406         * Makefile.in (rtlanal.o): Update dependencies.
14407
14408 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
14409
14410         * genflags.c (gen_insn): Use IS_VSPACE.
14411         * genoutput.c (output_insn_data): Likewise.
14412         (process_template): Likewise.
14413
14414 2002-03-11  Richard Henderson  <rth@redhat.com>
14415
14416         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
14417
14418 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
14419
14420         * Makefile.in: Update.
14421         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
14422         Update documentation.
14423         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
14424         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
14425
14426 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
14427
14428         * Makefile.in: Give texi2pod its input file as a command line
14429         argument, not on stdin.
14430
14431 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
14432             Daniel Berlin  <dan@dberlin.org>
14433
14434         C++ alias analysis improvement.
14435         * alias.c (record_component_aliases): Record aliases for base
14436         classes too.
14437
14438 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
14439
14440         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
14441
14442 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
14443
14444         * toplev.c (vms_fopen): Remove, not needed.
14445
14446         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
14447
14448         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
14449
14450         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
14451         for FP, already done later.
14452
14453         * toplev.c (debug_args): Add entry for VMS_DEBUG.
14454         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
14455
14456 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
14457
14458         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
14459         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
14460         LARGEST_EXPONENT_IS_NORMAL for the given mode.
14461         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
14462         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
14463         (ediv, emul, eldexp, esqrt): Likewise.
14464         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
14465         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
14466         (saturate): New function.
14467         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
14468         (make_nan): Use a saturation value instead of a NaN if
14469         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
14470         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
14471         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
14472         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
14473         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
14474         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
14475         !ROUND_TOWARDS_ZERO.
14476         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
14477         (ROUND_TOWARDS_ZERO): Document.
14478
14479 2002-03-11  Andreas Jaeger  <aj@suse.de>
14480
14481         * cfg.c (dump_flow_info): Remove unused variable.
14482
14483 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
14484
14485         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
14486         computations on trees.
14487
14488 2002-03-10  Richard Henderson  <rth@redhat.com>
14489
14490         PR 5693:
14491         * reload.c (copy_replacements_1): New.
14492         (copy_replacements): Use it to recurse through the rtx.
14493
14494 2002-03-10  Richard Henderson  <rth@redhat.com>
14495
14496         * loop.c (strength_reduce): Compute number of iterations as
14497         unsigned HOST_WIDE_INT.
14498
14499 2002-03-10  Richard Henderson  <rth@redhat.com>
14500
14501         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
14502         to move away from the end of the block.
14503
14504 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
14505
14506         PR preprocessor/5899
14507         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
14508
14509 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14510
14511         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
14512
14513         * attribs.c (decl_attributes): Fix signed/unsigned warning.
14514
14515 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
14516
14517         * config/mmix/mmix.c: Improve comments.
14518         (mmix_target_asm_function_prologue): Drop variable
14519         empty_stack_frame.  Don't allocate unused slot above fp.
14520         (mmix_target_asm_function_epilogue): Mirror prologue changes.
14521         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
14522         brace in first column.
14523         (enum reg_class): Ditto.
14524         (FIRST_PARM_OFFSET): Now 0.
14525         (USER_LABEL_PREFIX): Remove #if 0:d definition.
14526
14527 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14528
14529         * combine.c (make_extraction): Fix error in last change.
14530
14531 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14532
14533         * c4x.c (c4x_fp_reglist): Const-ify.
14534         * cris.c (cris_print_operand): Likewise.
14535         * i386.c (ix86_va_arg): Likewise.
14536         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
14537         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
14538         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
14539         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
14540         * mcore.h (regno_reg_class): Likewise.
14541         * mips.c (gen_int_relational): Likewise.
14542         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
14543         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
14544         * pdp11.c (move_costs): Likewise.
14545         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
14546         * s390.c (s390_branch_condition_mnemonic, regclass_map):
14547         Likewise.
14548         * s390.h (regclass_map): Likewise.
14549         * sh.c (shift_amounts): Likewise.
14550         * sh.md (rotlsi3): Likewise.
14551
14552 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
14553
14554         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
14555         (ne0+5): Use new clobber to generate proper shift pattern.
14556         Patch by Michael Matz <matz@kde.org>.
14557
14558 2002-03-09  Andreas Schwab  <schwab@suse.de>
14559
14560         * gcc.c (validate_all_switches): Also handle `%W{...}'.
14561
14562 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
14563
14564         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
14565
14566 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
14567
14568         PR middle-end/5877
14569         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
14570         even for non-representable constants.
14571
14572 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14573
14574         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
14575         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
14576         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
14577         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
14578         (pop_function_context): Compute MAY_SHARE parameter for
14579         fixup_var_refs.
14580         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
14581         (gen_mem_addressof): Call fixup_var_refs with new parm.
14582
14583         * combine.c (make_extraction): Don't make extension of CONST_INT.
14584
14585 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
14586
14587         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
14588         in o32 and o64 ABIs.
14589         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
14590         but getting fixed-size structs passed in registers regardless of
14591         padding in o32 and o64 ABIs.
14592
14593         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
14594         offset before loading address of argument passed by transparent
14595         reference.
14596
14597 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14598
14599         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
14600
14601 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
14602
14603         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
14604         marker such that registers after it are saved.
14605
14606 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14607
14608         * sparc.c (arith_4096_operand): Fix error in last change.
14609
14610 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
14611
14612         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
14613         defaults for MEABI.
14614
14615 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
14616
14617         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
14618         vectors.
14619
14620 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
14621
14622         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
14623
14624 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14625
14626         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
14627         removed; fix return value.
14628         * combine.c (combine_instructions): Dirtify blocks where we failed to
14629         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
14630         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
14631
14632 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14633
14634         * gcse.c (insert_insn_end_bb): Fix typo in last change.
14635
14636 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
14637
14638         * recog.c (peephole2_optimize): Re-distribute EH edges.
14639
14640 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
14641
14642         * expr.c (expand_expr): Use unsave lang hook.
14643         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
14644         (LANG_HOOKS_INITIALIZER): Update.
14645         * langhooks.h (struct lang_hooks): New hook unsave.
14646         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
14647         (unsave_expr_1): Remove unused lang_unsave_expr_now.
14648         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
14649         (unsave_expr_now): Remove.
14650         * tree.h (unsave_expr_now, lang_unsave,
14651         lang_unsave_expr_now): Remove.
14652         (lhd_unsave): New.
14653
14654 2002-03-08  Andreas Jaeger  <aj@suse.de>
14655
14656         * flow.c (propagate_block_delete_insn): Remove unused variable.
14657
14658 2002-03-08  Kazu Hirata  <kazu@hxi.com>
14659
14660         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
14661         insn length for memory load/store.
14662
14663 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14664
14665         * doc/install.texi (--with-libiconv-prefix): Document.
14666
14667 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
14668
14669         * doc/sourcebuild.texi: Fix typo.
14670
14671 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
14672
14673         PR c/3711
14674         * builtins.c (std_expand_builtin_va_arg): Do all computations on
14675         trees.
14676
14677 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14678
14679         * rtl.c (copy_most_rtx): Move from here ...
14680         * emit-rtl.c (copy_most_rtx): ... to here.
14681
14682 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
14683
14684         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
14685         SUBTARGET_CPP_SIZE_SPEC.
14686         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
14687
14688         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
14689
14690 2002-03-07  Matt Hiller  <hiller@redhat.com>
14691
14692         * gensupport.c (first_dir_md_include): Renamed from include;
14693         change all references.
14694         (last_dir_md_include): Renamed from last_include; change all
14695         references.
14696         (init_md_reader): Unconditionally initialize base_dir whether or
14697         not filename is a relative path.
14698
14699 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
14700
14701         * config/fp-bit.c (_unord_f2): Compile it in even if
14702         US_SOFTWARE_GOFAST is enabled.
14703
14704         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
14705         NULL_RTX.  Set all HFmode operations as NULL_RTX.
14706         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
14707         NULL_RTX, try reversing the comparison and the operands.
14708
14709 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
14710
14711         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
14712         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
14713         and MATCH_OP_DUP.
14714
14715 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
14716
14717         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
14718
14719 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
14720
14721         * basic-block.h (fixup_abnormal_edges): Declare.
14722         * reload1.c (fixup_abnormal_edges): New function.
14723         * reg-stack.c (convert_regs): Use it.
14724
14725         * gcse.c (insert_insn_end_bb): Handle trapping insns.
14726
14727         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
14728
14729 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
14730
14731         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
14732         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
14733         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
14734         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
14735         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
14736         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
14737         unless x and y could be infinite.
14738         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
14739         Check that the common type of both arguments is a real, even for
14740         targets without unordered comparisons.  Allow an integer argument
14741         to be compared against a real.
14742         (expand_tree_builtin): Use expand_unordered_cmp.
14743         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
14744         * cse.c (fold_rtx): Likewise.  Fix indentation.
14745         * fold-const.c (fold_real_zero_addition_p): New.
14746         (fold): Use it, and the new HONOR_... macros.
14747         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
14748         * jump.c (reversed_comparison_code_parts): After searching for
14749         the true comparison mode, use HONOR_NANS to decide whether it
14750         can be safely reversed.
14751         (reverse_condition_maybe_unordered): Remove IEEE check.
14752         * simplify-rtx.c (simplify_binary_operation): Use the new macros
14753         to decide which simplifications are valid.  Allow the following
14754         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
14755         and (a - -b) to (a + b).
14756         (simplify_relational_operation): Use HONOR_NANS.
14757         * doc/tm.texi: Document the MODE_HAS_... macros.
14758
14759 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
14760
14761         * combine.c (simplify_comparison): If simplifying a logical shift
14762         right and compare with constant, force the comparison to unsigned.
14763
14764 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
14765
14766         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
14767
14768         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
14769         -mabi=no-altivec
14770         (alt_reg_names): Remove % for vrsave.
14771
14772 2002-03-06  Richard Henderson  <rth@redhat.com>
14773
14774         PR optimization/5844
14775         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
14776         if used indicates we've already emitted one copy of an operand.
14777         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
14778         (gen_split): Supply a non-null used.
14779
14780 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
14781
14782         * reload1.c (reload): Unshare all rtl after reload is done.
14783
14784         * simplify-rtx.c (simplify_plus_minus): Do not abort,
14785         but simply fail if the expression is too complex to simplify.
14786         (simplify_gen_binary): Handle simplify_plus_minus failures.
14787
14788 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
14789
14790         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
14791         consistently call delete_trivially_dead_insns after CSE and GCSE;
14792         fix DFI_life dumping; do jump threading after liveness; do crossjumping
14793         after liveness2; update comment in last crossjumping.
14794         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
14795
14796 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
14797
14798         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
14799         after completing fast dead code elimination.
14800
14801         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
14802         COMPARE operator.
14803
14804 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
14805
14806         * version.c:  Fix misplaced leading blanks on first line.
14807
14808 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
14809
14810         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
14811
14812 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
14813
14814         * cfgcleanup.c (mentions_nonequal_regs): New function.
14815         (thread_jump): Use it.
14816         * toplev.c (rest_of_compilation): Run jump threading after
14817         liveness.
14818
14819 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
14820
14821         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
14822         patch.
14823
14824 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
14825
14826         * predict.c (estimate_bb_frequencies): Do not reload the
14827         frequencies from notes.
14828
14829 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
14830
14831         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
14832         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
14833
14834         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
14835         delete_noop_moves): Return indeger.
14836         * flow.c (ndead): New variable.
14837         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
14838         BB argument; update callers.
14839         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
14840         (life_analysis): Do not call purge_all_dead_edges.
14841         (update_life_info): Return number of deleted insns; print statistics.
14842         (update_life_info_in_dirty_blocks): likewise.
14843         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
14844         return number of insns deleted.
14845
14846         * cse.c: Include timevar.h
14847         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
14848         iterate until stabilizes; print statistics; return number of killed
14849         insns.
14850         * Makefile.in: (cse.o): Add timevar.h dependency
14851         * rtl.h (delete_trivially_dead_insns): New.
14852         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
14853         * toplev.c (rest_of_compilation): Update callers.
14854
14855         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
14856         (try_optimize_cfg): Do not update liveness.
14857         (cleanup-cfg): Loop until try_optimize_cfg and dead code
14858         removal stabilizes; use delete_trivially_dead_insns.
14859
14860         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
14861
14862 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
14863
14864         * cppmain.c (setup_callbacks): Disable #pragma and #ident
14865         callbacks when processing assembly language.
14866
14867 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14868
14869         * pa.h (ASM_FILE_END): Define.
14870         * som.h (ASM_FILE_END): Delete.
14871
14872         * pa.c (function_arg): Don't pass floats in general registers in
14873         indirect calls if TARGET_ELF32.
14874
14875 2002-03-05  Richard Henderson  <rth@redhat.com>
14876
14877         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
14878
14879 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
14880
14881         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
14882
14883 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
14884
14885         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
14886         -r command line.  Don't hide any symbols if not building
14887         shared libgcc.
14888
14889 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
14890
14891         * cfg.c (dump_flow_info): Warn about profile mismatches.
14892         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
14893         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
14894
14895 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
14896
14897         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
14898         wide volatile memory by parts.
14899
14900 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
14901
14902         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
14903         is NULL.
14904
14905 2002-03-05  Richard Henderson  <rth@redhat.com>
14906
14907         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
14908
14909 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
14910
14911         * toplev.c (documented_lang_options): Document more
14912         language-specific options.
14913         * doc/invoke.texi (Warning Options): Correct documentation for
14914         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
14915         * c-decl.c (c_decode_option): Use a table to handle warning options.
14916
14917 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
14918
14919         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
14920         parameter to mmix_encode_section_info.
14921         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
14922         relocatably.  Always produce ELF, not mmo if linking relocatably.
14923         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
14924         first is non-zero, don't add symbol prefix.
14925         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
14926         prototype accordingly.
14927
14928 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
14929
14930         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
14931
14932 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
14933
14934         * configure.in: Increase required makeinfo version to 4.1.
14935         * configure: Regenerate.
14936
14937 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
14938
14939         * .cvsignore: Remove *.info* and genrtl*; these files are generated
14940         elsewhere now.
14941
14942 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
14943
14944         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
14945         * doc/invoke.texi: Fix @math uses.
14946
14947 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
14948
14949         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
14950         removal
14951
14952 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
14953
14954         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
14955         (powerpc-*-eabisimaltivec*): Same.
14956
14957         * config/rs6000/t-ppcendian: New.
14958
14959 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
14960
14961         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
14962         nonimmediate_src_operand and nonimmediate_lsrc_operand to
14963         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
14964
14965 2002-03-03  Richard Henderson  <rth@redhat.com>
14966
14967         * toplev.c (rest_of_decl_compilation): Revert last two changes.
14968
14969 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
14970
14971         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
14972         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
14973         tree.c, config/m68k/m68k.c:
14974         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
14975         REAL_ARITHMETIC blocks unconditional.  Delete some further
14976         #ifdef blocks predicated on REAL_ARITHMETIC.
14977         * flags.h, toplev.c: Delete remaining references to
14978         flag_pretend_float.
14979
14980         * doc/invoke.texi: Remove documentation of -fpretend-float.
14981         * doc/tm.texi: Describe the various REAL_* macros as provided by
14982         real.h, not by the target configuration files.
14983
14984         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
14985         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
14986         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14987         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
14988         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
14989         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
14990         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
14991         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
14992         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
14993         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
14994         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
14995         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
14996         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
14997         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
14998         config/xtensa/xtensa.h:
14999         Do not define, undefine, or mention in comments any of
15000         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
15001         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
15002         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
15003         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
15004         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
15005         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
15006         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
15007         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
15008         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
15009
15010 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15011
15012         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
15013         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
15014         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
15015         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
15016         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
15017         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
15018         Delete.
15019         * defaults.h (BITS_PER_WORD): Define.
15020         * doc/tm.texi (BITS_PER_WORD): Document default value.
15021
15022         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
15023         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
15024         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
15025
15026 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15027
15028         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
15029         lieu of explicit sizeof/sizeof.
15030         * i386.c (override_options, ix86_init_mmx_sse_builtins,
15031         ix86_expand_builtin): Likewise.
15032         * mips.c (mips_add_gc_roots): Likewise.
15033         * mmix.c (mmix_output_condition): Likewise.
15034         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
15035         altivec_init_builtins): Likewise.
15036         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
15037         * cppexp.c (Nsuff, parse_number): Likewise.
15038         * cppinit.c (builtin_array_end): Likewise.
15039         * gcc.c (n_default_compilers, process_command): Likewise.
15040         * genpreds.c (output_predicate_decls): Likewise.
15041         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
15042         * lcm.c (N_ENTITIES): Likewise.
15043         * stor-layout.c (set_sizetype): Likewise.
15044
15045 2002-03-03  Richard Henderson  <rth@redhat.com>
15046
15047         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
15048         for types or labels.
15049
15050 2002-03-03  Richard Henderson  <rth@redhat.com>
15051
15052         * c-decl.c (start_decl): Initialized variables are not common.
15053
15054 2002-03-02  Per Bothner  <per@bothner.com>
15055
15056         * gcc.c (option_map):  Suport new --bootclasspath option.
15057         --CLASSPATH is now just an alias for --classpath.
15058
15059 2002-03-02  Richard Henderson  <rth@redhat.com>
15060
15061         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
15062         load if "internal" visibility.
15063         * doc/extend.texi: Document visibility meanings.
15064
15065 2002-03-02  Richard Henderson  <rth@redhat.com>
15066
15067         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
15068         to functions as well.
15069
15070 2002-03-02  Richard Henderson  <rth@redhat.com>
15071
15072         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
15073         (handle_visibility_attribute): Don't call assemble_visibility.
15074         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
15075         without asmspec.  Invoke assemble_alias when needed.
15076         * varasm.c (maybe_assemble_visibility): New.
15077         (assemble_start_function, assemble_variable, assemble_alias): Use it.
15078
15079 2002-03-02  Richard Henderson  <rth@redhat.com>
15080
15081         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
15082         invoke ENCODE_SECTION_INFO with first call flag.
15083
15084         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
15085         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
15086         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
15087         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
15088         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
15089         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
15090         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
15091         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
15092         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
15093         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
15094         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
15095         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
15096         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
15097         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
15098         config/mcore/mcore-protos.h, config/mcore/mcore.c,
15099         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
15100         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
15101         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
15102         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
15103         config/sh/sh.h, config/sparc/sparc.h,
15104         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
15105         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
15106         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
15107         FIRST argument.  As needed, examine it and do nothing.
15108
15109         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
15110         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15111         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
15112
15113         * config/arm/t-pe (pe.o): Add dependencies.
15114
15115 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15116
15117         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
15118         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
15119         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
15120         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
15121         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
15122         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
15123         * defaults.h (BITS_PER_UNIT): Define.
15124         * doc/tm.texi (BITS_PER_UNIT): Document default value.
15125
15126 2002-03-02  Kazu Hirata  <kazu@hxi.com>
15127
15128         * config/h8300/h8300-protos.h: Add a prototype for
15129         compute_a_shift_length.
15130         * config/h8300/h8300.c (h8300_asm_insn_count): New.
15131         (compute_a_shift_length): Likewise.
15132         (h8300_adjust_insn_length): Do not adjust insn length of shift
15133         insns.
15134         * config/h8300/h8300.md (anonymous shift patterns): Use
15135         compute_a_shift_length.
15136
15137 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15138
15139         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
15140         trunc_int_for_mode.
15141
15142         * emit-rtl.c (offset_address): Call update_temp_slot_address.
15143
15144 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15145
15146         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
15147         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
15148         * flags.h (flag_zero_initialized_in_bss): Declare.
15149         * toplev.c (flag_zero_initialized_in_bss): New flag.
15150         (lang_independent_options): Add flag_zero_initialized_in_bss.
15151         * tree.c (initializer_zerop): New function.
15152         * tree.h (initializer_zerop): Declare.
15153         * varasm.c (assemble_variable): If we can emit bss, put zero
15154         initializers in the bss section.
15155
15156 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
15157
15158         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
15159         like more than one symbol per .weak directive.
15160
15161 2002-03-01  Richard Henderson  <rth@redhat.com>
15162
15163         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
15164         adjust argument_pointer by pretend_args_size.
15165         (ia64_va_start): Adjust va_start address by -pretend_args_size.
15166
15167 2002-03-01  Kazu Hirata  <kazu@hxi.com>
15168
15169         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
15170
15171 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
15172
15173         * toplev.c (rest_of_compilation): Delete dead jumptables before
15174         loop.
15175         * flow.c (delete_dead_jumptables): Make global.
15176         * rtl.h (delete_dead_jumptables): Declare.
15177
15178 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
15179
15180         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
15181         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
15182         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
15183
15184 2002-03-01  Kazu Hirata  <kazu@hxi.com>
15185
15186         * config/h8300/h8300-protos.h: Fix formatting.
15187         * config/h8300/h8300.c: Likewise.
15188         * config/h8300/h8300.h: Likewise.
15189
15190 2002-03-01  Kazu Hirata  <kazu@hxi.com>
15191
15192         * config/h8300/h8300.c (print_operand): Support 16-bit
15193         constant addresses.
15194         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
15195
15196 2002-02-28  Richard Henderson  <rth@redhat.com>
15197
15198         * expmed.c (store_bit_field): Prevent generation of CONCATs;
15199         pun complex values as integers; use gen_lowpart instead of
15200         gen_rtx_SUBREG.
15201         (extract_bit_field): Likewise.
15202
15203 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
15204             David Edelsohn  <edelsohn@gnu.org>
15205
15206         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
15207         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
15208         (SUPPORTS_WEAK): Likewise.
15209         * output.h (add_weak): Add tree param.
15210         * varasm.c (add_weak): Likewise.  Save decl.
15211         (struct weak_syms): Add decl field.
15212         (mark_weak_decls): New function.
15213         (init_varasm_once): ggc_add_root mark_weak_decls.
15214         (assemble_start_function): Use ASM_WEAKEN_DECL.
15215         (assemble_variable): Likewise.
15216         (assemble_alias): Likewise.
15217         (declare_weak): Pass decl to add_weak.
15218         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
15219         (remove_from_pending_weak_list): Declare and define for
15220         ASM_WEAKEN_DECL.
15221         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
15222         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
15223         * defaults.h (SUPPORTS_WEAK): Likewise.
15224         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15225         .weak for code sym.  Do emit .size for descriptor sym.
15226         (ASM_DECLARE_FUNCTION_SIZE): Define.
15227         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
15228         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
15229         .lglobl unless TARGET_XCOFF.  Formatting fixes.
15230         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15231         .weak for code sym.
15232         (HANDLE_PRAGMA_WEAK): Remove.
15233         (ASM_WEAKEN_LABEL): Remove.
15234         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
15235
15236 2002-03-01  Jason Merrill  <jason@redhat.com>
15237
15238         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
15239         (TARGET_EXPR_CLEANUP): New macro.
15240
15241 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
15242
15243         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
15244         to take ptr_extend into account as third type of extension.
15245         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
15246         fields used by SUBREG_PROMOTED_UNSIGNED_P.
15247         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
15248         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
15249         * calls.c (precompute_arguments): Use new macro.
15250         (expand_call): Ditto.
15251         * combine.c (nonzero_bits): Ditto.
15252         (record_promoted_value): Ditto.
15253         * expr.c (store_expr): Ditto.
15254         (expand_expr): Ditto.
15255         * function.c (assign_parms): Ditto.
15256
15257 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
15258
15259         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
15260         override -shared and -shared-libgcc.
15261
15262 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
15263
15264         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
15265         of "ultrasparc".
15266         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
15267         to be broken.
15268
15269 2002-02-28  Richard Henderson  <rth@redhat.com>
15270
15271         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
15272         4 cycle latency from MM producers.
15273         (ia64_internal_sched_reorder): Likewise with pipeline flush.
15274
15275 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
15276
15277         * mklibgcc.in: Don't use GNU make extension.
15278
15279 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
15280
15281         * c-parse.in (STATIC): New terminal.
15282         (scspec): New non-terminal.  Update productions accordingly.
15283         (program): Remove bogus ifc / end ifc.
15284         (array_declarator): Simplify production using STATIC.
15285
15286 2002-02-28  Jim Meyering  <meyering@lucent.com>
15287
15288         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
15289         \a still means TARGET_BELL.
15290
15291 2002-02-28  Richard Henderson  <rth@redhat.com>
15292
15293         * haifa-sched.c (sched_emit_insn): New.
15294         (schedule_block): Use last_scheduled_insn to track last insn.
15295         * sched-int.h (sched_emit_insn): Prototype.
15296         * config/ia64/ia64.c (last_issued): Remove.
15297         (ia64_variable_issue): Don't set it.
15298         (nop_cycles_until): Use sched_emit_insn.
15299
15300 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
15301
15302         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
15303         extended constants.
15304
15305 2002-02-28  Kazu Hirata  <kazu@hxi.com>
15306
15307         * config/h8300/h8300.c: Fix formatting.
15308         * config/h8300/h8300.h: Likewise.
15309
15310 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
15311
15312         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
15313         which may overwrite the high byte of the frame pointer.
15314
15315 2002-02-28  Bo Thorsen  <bo@suse.de>
15316
15317         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
15318         (STARTFILE_SPEC): Add 64 bit files.
15319         (ENDFILE_SPEC): Likewise.
15320
15321 2002-02-28  Jason Merrill  <jason@redhat.com>
15322
15323         * c-decl.c (finish_function): Only warn about missing return
15324         statement with -Wreturn-type.
15325
15326 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
15327
15328         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
15329
15330         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
15331         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
15332
15333 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
15334
15335         * basic-block.h (BB_REACHABLE): Renumber.
15336         (BB_DIRTY, BB_NEW): New flags.
15337         (clear_bb_flags): Declare.
15338         (update_life_info_in_dirty_blocks): Declare.
15339         * cfg.c (clear_bb_flags): New function.
15340         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
15341         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
15342         reorder_insns, emit_insn_after): Mark block as dirty.
15343         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
15344         (update_life_info_in_dirty_blocks): New function.
15345         * recog.c (apply_change_group): Dirtify block.
15346
15347         * cse.c (cse_insn): Reorder emitting of jump insn to keep
15348         cfg consistent.
15349         * gcse.c (delete_null_pointer_checks): Likewise.
15350
15351         * toplev.c (dump_file_index): Move cse2 after bp,
15352         add DFI_null
15353         (dump_file_info): Similary.
15354         (rest_of_compilation): Avoid most of CFG rebuilds;
15355         do first if converision after null pointer checks, do cse2
15356         after branch prediction; avoid full liveness rebuild after
15357         initializing subregs.
15358         * invoke.texi (-d options): Document -du, renumber.
15359
15360         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
15361         (notice_new_block): Do not set BB_UPDATE_LIFE.
15362         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
15363          merge_blocks_move_successor_nojumps, merge_blocks,
15364          try_crossjump_to_edge): Likewise.
15365         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
15366         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
15367         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
15368         (merge_of_block): Do not use life_data_ok.
15369         (find_if_case_1): Do not use SET_UPDATE_LIFE.
15370         (if_convert): Use BB_DIRTY mechanizm to update life.
15371         * lcm.c (optimize_mode_switching): Update
15372         update_life_info_in_dirty_blocks
15373
15374 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
15375
15376         * Makefile.in (integrate.o): Update.
15377         * c-decl.c (copy_lang_decl): Rename.
15378         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15379         * integrate.c: Include langhooks.h.
15380         (copy_decl_for_inlining): Update to use langhook.
15381         * langhooks-def.h (lhd_do_nothing_t,
15382         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
15383         (LANG_HOOKS_INITIALIZER): Update.
15384         * langhooks.c (lhd_do_nothing_t): New.
15385         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
15386         * tree.h (copy_lang_decl): Remove.
15387 objc:
15388         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15389
15390 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
15391
15392         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
15393         POST_DEC, and POST_MODIFY.
15394
15395 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15396
15397         * c-typeck.c (digest_init): Remove unused parameter; all
15398         callers changed.
15399
15400 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
15401
15402         * expmed.c (expand_shift): Correctly test for low part of a
15403         subreg.
15404
15405 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
15406
15407         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
15408         insn UIDs with insn addresses.
15409
15410 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15411
15412         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
15413         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
15414         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
15415         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
15416         gcc.c, toplev.c: Delete code implementing -traditional mode.
15417
15418         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
15419         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
15420         Document removal of -traditional mode for compilation, and
15421         remove documentation only relevant to that mode.
15422
15423         * config/nextstep.h, config/ptx4.h, config/svr4.h,
15424         config/convex/convex.h, config/d30v/d30v.h,
15425         config/i386/dgux.h, config/i386/osf1elf.h,
15426         config/i386/osfelf.h, config/i386/osfrose.h,
15427         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
15428         config/m68k/hp310.h, config/m88k/dgux.h,
15429         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
15430         config/m88k/m88k.h, config/m88k/openbsd.h,
15431         config/mips/abi64.h, config/mips/osfrose.h,
15432         config/mips/svr4-5.h, config/mips/svr4-t.h,
15433         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
15434         config/stormy16/stormy16.h: Remove all references to
15435         -traditional from target specs.  Delete all mention of the
15436         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
15437         delete a couple of commented-out definitions of
15438         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
15439         to -traditional.
15440
15441         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
15442         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
15443
15444 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15445
15446         * mklibgcc.in: Don't use \n in a line subject to
15447         interpretation by echo.
15448
15449 2002-02-27  Graham Stott  <grahams@redhat.com>
15450
15451         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
15452         Constify NAME.
15453
15454         * loop.c (prescan_loop): Handle PARALLEL.
15455
15456         * unroll.c (loop_iterations): Return 0 if the add_val for
15457         a BIV is REG.
15458
15459         * final.c (output_operand_lossage): Constify PFX_STR.
15460
15461         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
15462
15463 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15464
15465         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
15466         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
15467
15468 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
15469
15470         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
15471
15472 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
15473
15474         * cpplex.c (_cpp_lex_token): Handle directives in macro
15475         arguments.
15476         * cpplib.c (_cpp_handle_directive): Save and restore state
15477         if parsing macro args when entering a directive.
15478         * cppmacro.c (collect_args): No need to handle directives
15479         in macro arguments.
15480         (enter_macro_context, replace_args): Use the original macro
15481         definition in case it was redefined whilst collecting arguments.
15482 doc:
15483         * cpp.texi: Update.
15484
15485 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
15486
15487         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
15488         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
15489         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
15490         method on AIX.
15491         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
15492         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
15493         (load_toc_v4_PIC_2): Same.
15494
15495 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
15496
15497         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
15498
15499 2002-02-26  Richard Henderson  <rth@redhat.com>
15500
15501         * config/alpha/alpha.md (ashldi_se): Re-enable.
15502
15503 2002-02-26  Richard Henderson  <rth@redhat.com>
15504
15505         * config/alpha/alpha.c (alpha_encode_section_info): Examine
15506         MODULE_LOCAL_P; improve commentary.
15507
15508 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
15509
15510         * doc/cpp.texi: Clarify documentation of relationship between
15511         #line and #include.
15512
15513 2002-02-26  Kazu Hirata  <kazu@hxi.com>
15514
15515         * config/h8300/h8300-protos.h: Update the prototype for
15516         compute_logical_op_length.  Add the prototype for
15517         compute_logical_op_cc.
15518         * config/h8300/h8300.c (compute_logical_op_length): Figure out
15519         code from operands.
15520         (compute_logical_op_cc): New.
15521         * config/h8300/h8300.md: Combine all the logical op patterns
15522         in HImode and SImode.  Use compute_logical_op_cc.
15523
15524 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
15525
15526         * config/i386/i386.c (print_operand): Don't append ATT-style
15527         length suffixs to x87 opcodes when in Intel mode.
15528
15529 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
15530
15531         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
15532         (init_emit_once): Update calls.
15533         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
15534         (init_syntax_once): Prototype.
15535
15536 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15537
15538         * pa-linux.h (LIB_SPEC): Update definition.
15539         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15540
15541 2002-02-26  Richard Henderson  <rth@redhat.com>
15542
15543         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
15544         if we emitted a stop bit.
15545
15546 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15547
15548         * configure.in (libgcc_visibility): Substitute.
15549         * configure: Rebuilt.
15550         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
15551         defined symbols .hidden.
15552
15553 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15554
15555         * attribs.c (c_common_attribute_table): Add visibility.
15556         (handle_visibility_attribute): New function.
15557         * varasm.c (assemble_visibility): New function.
15558         * output.h (assemble_visibility): Add prototype.
15559         * tree.h (MODULE_LOCAL_P): Define.
15560         * crtstuff.c (__dso_handle): Use visibility attribute.
15561         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
15562         for MODULE_LOCAL_P symbols too.
15563         * config/ia64/ia64.c (ia64_encode_section_info): Handle
15564         MODULE_LOCAL_P symbols the same way as local symbols.
15565         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
15566         into .sdata/.sbss by the user.
15567         * doc/extend.texi (Function Attributes): Document visibility
15568         attribute.
15569
15570 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15571
15572         PR debug/5770
15573         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
15574         STRING_CST initializer spanning the whole variable without
15575         embedded zeros.
15576         If expand_expr returned MEM, don't use it.
15577
15578 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
15579
15580         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
15581         generate a die for the lexical block.
15582
15583 2002-02-26  Kazu Hirata  <kazu@hxi.com>
15584
15585         * config/h8300/h8300-protos.h: Add a prototype for
15586         compute_logical_op_length.
15587         * config/h8300/h8300.c (compute_logical_op_length): New.
15588         * config/h8300/h8300.md (anonymous logical patterns): Use
15589         compute_logical_op_length for length.
15590
15591 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15592
15593         * dwarf2out.c (modified_type_die): Do not call type_main_variant
15594         for vectors.
15595         (gen_type_die): Same.
15596
15597         * attribs.c (handle_vector_size_attribute): Set debug information.
15598
15599 2002-02-26  Daniel Egger  <degger@fhm.edu>
15600
15601         * config/rs6000/rs6000.md: Swap define_insn attributes to
15602         fix incorrect generation of merge high instructions instead
15603         of merge low.
15604
15605 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15606
15607         * c-typeck.c (really_start_incremental_init): Use
15608         bitsize_zero_node for vectors.
15609
15610 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15611
15612         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
15613         ("*set_vrsave_internal"): Same.
15614
15615 2002-02-25  Richard Henderson  <rth@redhat.com>
15616
15617         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
15618         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
15619
15620 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
15621
15622         PR target/5755
15623         * config/i386/i386.c (ix86_return_pops_args): Only pop
15624         fake structure return argument if it was passed on the stack.
15625
15626 2002-02-25  Jason Merrill  <jason@redhat.com>
15627
15628         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
15629         RESULT_DECL.
15630
15631 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
15632
15633         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
15634         link with shared_name only.
15635         * doc/invoke.texi (Link Options): Document new behavior.
15636
15637 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
15638
15639         * c-typeck.c (push_init_level): Handle vectors.
15640
15641 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
15642
15643         * config/sparc/sparc.c (const64_high_operand): Zero-extend
15644         operands of SPARC_SETHI_P.
15645         (input_operand): Likewise.
15646         (sparc_emit_set_const32): Likewise.
15647         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
15648         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
15649         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
15650         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
15651         (movdi_insn_sp64_vis): Likewise.
15652         (movdi split, movdf split): Use SETHI32.
15653         * doc/md.texi: Document SPARC constraints L, M and N.
15654
15655 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
15656
15657         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
15658         ("*set_vrsave_internal"): use mfspr for Darwin.
15659
15660         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
15661         gen_get_vrsave_internal.
15662
15663 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15664
15665         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
15666
15667 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
15668
15669         * cpplex.c (cpp_interpret_charconst): Get signedness or
15670         otherwise of wide character constants correct.
15671         * cppexp.c (lex): Get signedness of wide charconsts correct.
15672
15673 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15674
15675         * optabs.c (widen_operand): Only call convert_modes for
15676         promoted SUBREG if signedness matches.
15677         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
15678
15679 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15680
15681         * cpplib.c (glue_header_name): Use local buffer to build up
15682         header name.
15683
15684 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15685
15686         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
15687
15688 2002-02-23  Kazu Hirata  <kazu@hxi.com>
15689
15690         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
15691         H8/300[HS] separately.
15692         * config/h8300/h8300.md: Remove the early clobber constraint
15693         from bit field patterns.
15694
15695 2002-02-23  Kazu Hirata  <kazu@hxi.com>
15696
15697         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
15698         register_operand.
15699         (mulhisi3): Likewise.
15700         (umulqisi3): Likewise.
15701         (umulhisi3): Likewise.
15702
15703 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15704
15705         * cppinit.c (output_deps): Correct test for stdout output.
15706         (init_dependency_output): Cure warning.
15707
15708 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15709
15710         * expr.c (store_expr): When converting expression to promoted
15711         equivalent type, allow using SUBREG_REG of TARGET as the target
15712         of the expansion of EXP.
15713         * loop.c (basic_induction_var, case SUBREG): Always look inside.
15714         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
15715         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
15716         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
15717         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
15718
15719 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
15720
15721         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
15722         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
15723         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
15724
15725 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
15726
15727         PR optimization/5747
15728         * loop.c (scan_loop): Update reg info if move_movables created new
15729         pseudos.
15730
15731 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
15732
15733         * gcc.c (init_gcc_spec): Revert last change.
15734
15735 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
15736
15737         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
15738         gpc_reg_operand constraint.
15739
15740 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
15741
15742         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
15743         Simplify comparison of `low'.
15744         (add_operand): Fix formatting.
15745         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
15746         (mask_operand): Disallow mask to wrap in 64-bit mode.
15747         (rs6000_stack_info): Remove redundant test setting push_p.
15748         (output_toc): Fix formatting.
15749         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
15750         cc_reg_not_cr0_operand constraint.
15751         (booldi3, boolcdi3 splitters): Same.
15752
15753 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
15754
15755         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
15756
15757 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
15758
15759         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
15760         gcc invoked with -shared-libgcc.
15761
15762 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
15763
15764         PR c++/5748
15765         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
15766         decl if any of elements was TREE_USED.
15767
15768 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
15769
15770         * config/sparc/sol2.h: Don't include sys/mman.h.
15771         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
15772         (arith_4096_operand): Don't throw high bits away.
15773         (const64_operand): Take sign extension of CONST_INTs into account.
15774         (const64_high_operand, sparc_emit_set_const32): Likewise.
15775         (GEN_HIGHINT64): Likewise.
15776         (sparc_emit_set_const64_quick1): Likewise.
15777         (const64_is_2insns): Likewise.
15778         (print_operand): Use trunc_int_for_mode for sign extension.
15779         * config/sparc/sparc.h (SMALL_INT32): Likewise.
15780         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
15781         chars.  Assume CONST_INT is already properly sign-extended.
15782         (movdi split): Sign-extend each SImode part.
15783         (andsi3 split): Don't mask high bits off, so that result
15784         remains properly sign-extend.
15785         (iorsi3 split): Likewise.
15786         (xorsi3 split): Likewise.
15787
15788 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
15789
15790         * fold-const.c (fold): Fix typo in comments.
15791
15792 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
15793
15794         * Makefile.in (langhooks.o): Update dependencies.
15795
15796 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
15797
15798         * langhooks.c: Include flags.h.
15799
15800 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
15801
15802         * testsuite/gcc.dg/attr-alwaysinline.c: New.
15803
15804         * c-common.c (c_common_post_options): Set inline trees by
15805         default.
15806
15807         * doc/extend.texi (Function Attributes): Document always_inline
15808         attribute.
15809         Update documentation about inlining when not optimizing.
15810
15811         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
15812
15813         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
15814         unless DECL_ALWAYS_INLINE.
15815
15816         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
15817         unless DECL_ALWAYS_INLINE.
15818         (c_disregard_inline_limits): Disregard if always_inline set.
15819
15820         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
15821         Disregard if always_inline set.
15822         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
15823         unless DECL_ALWAYS_INLINE.
15824
15825         * attribs.c (handle_always_inline_attribute): New.
15826         (c_common_attribute_table): Add always_inline.
15827
15828         * config/rs6000/altivec.h: Add prototypes for builtins
15829         requiring the always_inline attribute.
15830
15831 2002-02-21  Eric Christopher  <echristo@redhat.com>
15832
15833         * expmed.c (store_bit_field): Try to simplify the subreg
15834         before generating a new one when when the mode size of
15835         value is less than maxmode.
15836
15837 2002-02-21  Richard Henderson  <rth@redhat.com>
15838
15839         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
15840         than gen_rtx_PLUS to form the sum.
15841         * explow.c (force_reg): Rearrange to not allocate new pseudo
15842         when force_operand returns a register.
15843         * expr.c (expand_assignment): Allow offset_rtx expansion to
15844         return a sum.  Do not force addresses into registers.
15845         (expand_expr): Likewise.
15846         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
15847         to canonicalize arithmetic that didn't simpify.
15848         (simplify_plus_minus): New argument force; update
15849         all callers.  Don't split CONST unless we can do something with it,
15850         and wouldn't lose the constness of the operands.
15851
15852         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
15853         that we generated earlier.
15854
15855 2002-02-21  Tom Tromey  <tromey@redhat.com>
15856
15857         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15858         (output_line_info): Use constant `1', with a long explanatory
15859         comment.
15860         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
15861
15862 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
15863
15864         * jump.c (redirect_jump): If old label has no UID, don't try to
15865         delete it.
15866
15867 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
15868
15869         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
15870         If input is constant, do shifts at compile time.
15871
15872 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
15873
15874         * doc/extend.texi: Fix some more overfull hboxes.
15875
15876 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
15877
15878         PR optimization/4994
15879         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
15880         register moves.
15881
15882 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
15883
15884         PR c++/4574
15885         * expr.h (expand_and): Add mode argument.
15886         * expmed.c (expand_and): Add mode argument.
15887         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
15888         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
15889         * except.c (expand_builtin_extract_return_addr): Likewise.
15890         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
15891         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
15892         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
15893         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
15894         * config/c4x/c4x.md: Use GEN_INT (x) instead of
15895         gen_rtx (CONST_INT, VOIDmode, x).
15896
15897 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
15898
15899         PR c/4697:
15900         * stmt.c (warn_if_unused_value): Move side effects test once more.
15901
15902 2002-02-20  Torbjorn Granlund  <tege@swox.com>
15903
15904         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
15905         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
15906
15907 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
15908
15909         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
15910         SUBREG or ZERO_EXTEND.
15911
15912 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
15913
15914         * sh.h (current_function_anonymous_args): Remove.
15915         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
15916         of current_function_varargs and current_function_stdarg is set.
15917         * sh.c (sh_expand_prologue): Check current_function_varargs /
15918         current_function_stdarg / TARGET_SH5 instead of
15919         current_function_anonymous_args.
15920
15921         * sh64.h (TARGET_VERSION): Define.
15922
15923 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
15924
15925         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
15926         VRSAVE_REGNO on TARGET_ALTIVEC.
15927
15928 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
15929
15930         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
15931         bits of SImode const_int.
15932         (includes_rshift_p): Likewise.
15933         (print_operand): Call mask_operand and mask64_operand with correct
15934         mode.
15935         (rs6000_output_function_epilogue): Pad traceback table to word.
15936         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
15937         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
15938         mask64_operand with correct mode.
15939         (FUNCTION_ARG_REGNO_P): Correct parentheses.
15940
15941 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
15942
15943         PR debug/4461
15944         * varasm.c (get_pool_constant_mark): New.
15945         * rtl.h (get_pool_constant_mark): Add prototype.
15946         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
15947         be represented if it has not been output.
15948
15949 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
15950
15951         * combine.c (do_SUBST): Sanity check substitutions of
15952         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
15953         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
15954         CONST_INT into its operand.
15955         (known_cond): Likewise, for ZERO_EXTEND.
15956         * simplify-rtx.c (simplify_unary_operation): Fix condition to
15957         allow for simplification of wide modes.  Reject CONST_INTs in
15958         ZERO_EXTEND when their actual mode is not given.
15959
15960 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
15961
15962         * c-decl.c (pushdecl): If no global declaration is found for an
15963         extern declaration in block scope, try a limbo one.
15964
15965 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
15966
15967         PR c++/4401
15968         * c-common.c (pointer_int_sum): Moved from...
15969         * c-typeck.c (pointer_int_sum): ...here.
15970         * c-common.h (pointer_int_sum): Add prototype.
15971
15972 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
15973
15974         PR c++/5713
15975         * c-decl.c (duplicate_decls): Return 0 if issued error about
15976         redeclaration.
15977
15978 2002-02-20  Roger Sayle  <roger@eyesopen.com>
15979             Jakub Jelinek  <jakub@redhat.com>
15980
15981         PR c/4389
15982         * tree.c (host_integerp): Ensure that the constant integer is
15983         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
15984         when pos is zero or non-zero respectively.  Clarify comment.
15985         * c-format.c (check_format_info_recurse): Fix host_integerp
15986         usage; the pos argument should be zero when assigning to a
15987         signed HOST_WIDE_INT.
15988
15989 2002-02-20  Richard Henderson  <rth@redhat.com>
15990
15991         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
15992         of the operand, rather than assuming TImode.
15993         (ix86_expand_binop_builtin): Cope with commutative patterns
15994         using nonimmediate_operand for both operands.
15995         (ix86_expand_timode_binop_builtin): Likewise.
15996         (ix86_expand_store_builtin): Validate operand 1.
15997         (ix86_expand_unop1_builtin): Likewise.
15998
15999 2002-02-20  Philip Blundell  <philb@gnu.org>
16000
16001         PR 5705
16002         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
16003
16004 2002-02-20  Richard Henderson  <rth@redhat.com>
16005
16006         PR c/5615
16007         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
16008
16009 2002-02-20  Tom Tromey  <tromey@redhat.com>
16010
16011         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16012         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16013         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16014         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16015         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
16016         unconditionally.
16017
16018 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
16019
16020         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
16021           for (const_int 0) in X not just INTVAL.
16022
16023 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
16024
16025         * doc/extend.texi: Avoid or reduce overfull hboxes.
16026
16027 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
16028
16029         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
16030         operations if the field does not start at a mode boundary.
16031
16032 2001-02-20      Joel Sherrill <joel@OARcorp.com>
16033
16034         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
16035         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
16036         Also done for -Acpu and -Amachine.
16037
16038 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
16039
16040         * cppinit.c (init_dependency_output): Take deps output file
16041         from -o if none given with -MF.  Suppress normal output.
16042         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
16043         * doc/cpp.texi, doc/invoke.texi: Update.
16044
16045 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
16046
16047         * toplev.c (output_quoted_string): Write unprintable
16048         characters with octal escapes.
16049
16050 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
16051
16052         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
16053         really_call_used[VRSAVE_REGNO] if not Altivec.
16054
16055 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
16056
16057         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
16058         MODE_MASK.
16059         (constant_pool_expr_1): Fix formatting.
16060         (rs6000_legitimize_reload_address): Likewise.
16061
16062 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16063
16064         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
16065         now that we have one.
16066
16067 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
16068
16069         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
16070         end of first block of bitfields (which was only seven bits);
16071         rename dummy to unused_1; remove comment which is no longer true.
16072
16073 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
16074
16075         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
16076
16077 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
16078
16079         PR 5399
16080         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
16081         if generating PIC.
16082
16083         PR 5054
16084         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
16085         arm_is_longcall_p rather than inspecting call-type cookie
16086         directly.
16087         (call_value_insn) [TARGET_THUMB]: Likewise.
16088
16089 2002-02-19  Graham Stott  <grahams@redhat.com>
16090
16091         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
16092
16093 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
16094
16095         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
16096         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
16097         (FP_SAVE_INLINE): Delete.
16098
16099         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
16100         * config/rs6000/eabi.asm: Remove ABI save restore routines.
16101         * config/rs6000/t-ppccomm: Build crtsavres.o.
16102         * config/rs6000/crtsavres.asm: New file.
16103
16104 2002-02-19  Philip Blundell  <philb@gnu.org>
16105
16106         * config/arm/arm.c (use_return_insn): Don't reject interrupt
16107         functions.
16108         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
16109         (output_return_instruction): Allow interrupt functions to return with
16110         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
16111         (arm_expand_prologue): Subtract 4 before stacking LR in an
16112         interrupt function.
16113
16114 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
16115
16116         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
16117         decl, not just FUNCTION_DECL.
16118         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
16119         (arm_assemble_integer): Likewise.
16120         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
16121         marked local.
16122
16123 2002-02-19  matthew green  <mrg@eterna.com.au>
16124
16125         * config.gcc (sparc-*-netbsdelf*): Enable target.
16126         (sparc64-*-netbsd*): New target.
16127         * config/sparc/netbsd-elf.h: New file.
16128         * config/sparc/t-netbsd64: New file.
16129
16130 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
16131
16132         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
16133
16134 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
16135
16136         * doc/invoke.texi: explicitly list the style guidelines that
16137         -Weffc++ checks for.
16138
16139 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
16140
16141         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
16142
16143 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
16144
16145         PR other/5718
16146         * gcc.c (cpp_unique_options): Treat -o as indicating object file
16147         only if not -E.  If -E, pass -o through to the preprocessor.
16148
16149 2002-02-19  Kazu Hirata  <kazu@hxi.com>
16150
16151         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
16152         register number with an appropriate macro.
16153
16154 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16155
16156         * doc/rtl.texi (Constants): Close @code tag.
16157
16158 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
16159
16160         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
16161         ("mmx_uavgv4hi3"): Same.
16162         ("pmulhrwv4hi3"): Same.
16163
16164         * tree-inline.c (walk_tree): Handle vectors.
16165
16166         * c-common.c (constant_expression_warning): Handle vectors.
16167         (overflow_warning): Same.
16168
16169         * sched-deps.c (sched_analyze_2): Handle vectors.
16170
16171         * rtlanal.c (rtx_unstable_p): Handle vectors.
16172         (rtx_varies_p): Same.
16173         (count_occurrences): Same.
16174         (regs_set_between_p): Same.
16175         (modified_between_p): Same.
16176         (modified_in_p): Same.
16177         (volatile_insn_p): Same.
16178         (volatile_refs_p): Same.
16179         (side_effects_p): Same.
16180         (may_trap_p): Same.
16181         (inequality_comparisons_p): Same.
16182         (replace_regs): Same.
16183         (computed_jump_p_1): Same.
16184
16185         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
16186         argument.
16187         (inner_mode_array): New.
16188         (copy_rtx): Handle vectors.
16189         (copy_most_rtx): Same.
16190         (rtx_equal_p): Same.
16191         (get_mode_alignment): Adjust for vectors.
16192
16193         * resource.c (mark_referenced_resources): Handle vectors.
16194         (mark_set_resources): Same.
16195
16196         * reload1.c (eliminate_regs): Handle vectors.
16197         (elimination_effects): Same.
16198         (scan_paradoxical_subregs): Same.
16199
16200         * reload.c (subst_reg_equivs): Handle vectors.
16201
16202         * regrename.c (scan_rtx): Handle vectors.
16203
16204         * regclass.c (reg_scan_mark_refs): Handle vectors.
16205
16206         * recog.c (find_single_use_1): Handle vectors.
16207
16208         * local-alloc.c (equiv_init_varies_p): Handle vectors.
16209         (contains_replace_regs): Same.
16210         (memref_referenced_p): Same.
16211
16212         * integrate.c (copy_rtx_and_substitute): Handle vectors.
16213         (subst_constants): Same.
16214
16215         * genattrtab.c (attr_copy_rtx): Handle vectors.
16216         (encode_units_mask): Same.
16217         (clear_struct_flag): Same.
16218         (count_sub_rtxs): Same.
16219
16220         * gcse.c (want_to_gcse_p): Handle vectors.
16221         (oprs_unchanged_p): Same.
16222         (hash_expr_1): Same.
16223         (oprs_not_set_p): Same.
16224         (expr_killed_p): Same.
16225         (compute_transp): Same.
16226         (store_ops_ok): Same.
16227
16228         * function.c (purge_addressof_1): Do not allow paradoxical subregs
16229         of vectors.
16230         (fixup_var_refs_1): Same.
16231         (instantiate_virtual_regs_1): Same.
16232
16233         * fold-const.c (operand_equal_p): Handle vectors.
16234         (fold): Same.
16235         (rtl_expr_nonnegative_p): Same.
16236
16237         * flow.c (mark_used_regs): Handle vectors.
16238
16239         * df.c (df_uses_record): Handle vectors.
16240
16241         * cselib.c (cselib_subst_to_values): Handle vectors.
16242         (cselib_mem_conflict_p): Same.
16243         (hash_rtx): Same.
16244
16245         * cse.c (canon_reg): Handle vectors.
16246         (fold_rt): Same.
16247         (cse_process_notes): Same.
16248         (count_reg_usage): Same.
16249         (canon_hash): Same.
16250
16251         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
16252
16253         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
16254
16255         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
16256         (gen_rtx): Handle CONST_VECTOR.
16257         (gen_const_vector_0): New.
16258         (copy_rtx_if_shared): CONST_VECTORs can be shared.
16259         (reset_used_flags): Same.
16260         (copy_insn_1): Same.
16261         (initializer_constant_valid_p): Handle VECTOR_CST.
16262
16263         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
16264
16265         * doc/rtl.texi (Constants): Document const_vector.
16266         (CONST0_RTX): Update for vectors.
16267         (RTL sharing): Same.
16268
16269         * print-tree.c (print_node): Add case for VECTOR_CST.
16270
16271         * tree.h (TREE_VECTOR_CST_ELTS): New.
16272         (struct tree_vector): New.
16273         (union tree_node): Add vector node.
16274         (build_vector): Add prototype.
16275
16276         * tree.def (VECTOR_CST): New.
16277
16278         * tree.c (build_vector): New.
16279
16280         * expmed.c (make_tree): Handle CONST_VECTOR.
16281
16282         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
16283         (CONST_VECTOR_ELT): New.
16284         (CONST_VECTOR_NUNITS): New.
16285
16286         * machmode.h (GET_MODE_INNER): New.
16287         (DEF_MACHMODE): Accept 8th arg.
16288
16289         * machmode.def: Add 8th argument for vector inner mode.
16290         Add inner vector modes for vectors.
16291
16292         * rtl.def (VEC_CONST): Remove.
16293         (CONST_VECTOR): New.
16294
16295         * expr.c (clear_storage): Allow vectors.
16296         (is_zeros_p): Handle VECTOR_CST.
16297
16298         * varasm.c (output_constant_pool): Handle vectors.
16299         (rtx_const): Add veclo and vechi fields.
16300         (kind): Add RTX_VECTOR.
16301         (decode_rtx_const): Add case for vector.
16302
16303         * config/rs6000/rs6000-protos.h: Add zero_constant.
16304
16305         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
16306         constants.  Force easy vector constants into memory.
16307         (easy_vector_constant): New.
16308         (emit_easy_vector_constant): New.
16309         (rs6000_legitimize_reload_address): Do not generate bad reloads on
16310         darwin.
16311
16312         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
16313         instruction does.
16314         ("altivec_lvxl"): Same.
16315         (altivec_lvebx): Same.
16316         (altivec_lvehx): Same.
16317         (altivec_lvewx): Same.
16318         ("*movv4si_const0"): New.
16319         ("*movv4sf_const0"): New.
16320         ("*movv8hi_const0"): New.
16321         ("*movv16qi_const0"): New.
16322
16323 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16324
16325         * config/h8300/h8300.c (notice_update_cc): Use
16326         cc_status.value2.
16327
16328 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16329
16330         * config/h8300/h8300.md (divmod patterns): Change the
16331         constraints for operands[1] to register_operand.
16332
16333 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16334
16335         * config/h8300/h8300-protos.h: Remove the prototype for
16336         p_operand.
16337         * config/h8300/h8300.c (p_operand): Remove.
16338         * config/h8300/h8300.md: Replace p_operand with
16339         const_int_operand.
16340
16341 2002-02-18 Philip Blundell <pb@nexus.co.uk>
16342
16343         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
16344         comment.
16345         (output_return_instruction): Allow use of LDR to unstack
16346         return addresss even for interrupt handlers or when
16347         interworking.  If compiling for ARMv5, use interworking-safe
16348         return instructions by default.  Remove duplicated code and
16349         lengthy "strcat" sequences.
16350
16351 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16352
16353         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
16354         (LINK_EH_SPEC): Define.
16355         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
16356
16357 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
16358
16359         * config/s390/s390.c (s390_emit_prologue): Do not set the
16360         frame_related flag for call-clobbered registers.
16361
16362 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
16363
16364         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
16365         (construct_container): Fix handling of SSE operands.
16366         (ix86_expand_builtin): Fix handling of 64bit pointers.
16367         (mmx_maskmovq_rex): New pattern.
16368
16369 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
16370
16371         * regrename.c (kill_set_value): Handle subregs properly.
16372
16373 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
16374
16375         * objc/objc-act.c (handle_impent): Remove leading '*'
16376         from objc_class_name.
16377
16378 2002-02-17  Richard Henderson  <rth@redhat.com>
16379
16380         * config/alpha/alpha.c (some_small_symbolic_operand,
16381         some_small_symbolic_operand_1, split_small_symbolic_operand,
16382         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
16383         Handle small SYMBOL_REFs anywhere, not just inside memories.
16384         * config/alpha/alpha-protos.h: Update.
16385         * config/alpha/alpha.h (PREDICATE_CODES): Update.
16386         * config/alpha/alpha.md (small symbolic operand splitter): Update.
16387
16388 2002-02-17  Roland McGrath  <roland@frob.com>
16389
16390         * config.gcc (powerpc-*-gnu-gnualtivec*,
16391         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
16392         * config/rs6000/gnu.h: New file.
16393         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
16394         Grok "gnu" in rs6000_abi_name.
16395         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
16396         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
16397         Grok -mcall-gnu analogous to -mcall-linux et al.
16398         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
16399         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
16400         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
16401
16402 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
16403
16404         PR c/3444:
16405         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
16406         shortening.
16407
16408 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16409
16410         * config/cris/cris.h: Undefine STARTFILE_SPEC and
16411         ENDFILE_SPEC before (re)defining them.
16412
16413 2002-02-17  Kazu Hirata  <kazu@hxi.com>
16414
16415         * config/h8300/h8300.c: Fix formatting.
16416         * config/h8300/h8300.h: Likewise.
16417
16418 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16419
16420         * doc/tm.texi: Explain why empty strings should not be
16421         marked for translation.
16422
16423 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16424
16425         * final.c (output_operand_lossage): Changed to accept
16426         printf style arguments. Change calls where necessary.
16427         * output.h (output_operand_lossage): Change declaration
16428         accordingly. Update copyright.
16429         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
16430         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
16431         Update copyright date where necessary.
16432
16433         * config/i386/i386.c (print_operand): Likewise. Remove use of
16434         sprintf.
16435
16436         * config/cris/cris.c (cris_operand_lossage): Likewise.
16437         Rename parameter so that exgettext recognizes it as
16438         translatable message.
16439         (LOSE_AND_RETURN): Rename parameter to msgid.
16440
16441 2002-02-17  Kazu Hirata  <kazu@hxi.com>
16442
16443         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
16444         hard coded register number with an appropriate macro.
16445         (HARD_REGNO_MODE_OK): Likewise.
16446         (ARG_POINTER_REGNUM): Likewise.
16447         (STATIC_CHAIN_REGNUM): Likewise.
16448         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
16449         * config/h8300/h8300.md (define_constants): Define more
16450         register numbers.
16451
16452 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16453
16454         * config/i386/i386.h: Don't mark empty strings for translation.
16455
16456 2002-02-16  H.J. Lu <hjl@gnu.org>
16457
16458         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
16459
16460 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
16461
16462         * cppinit.c (merge_include_chains): Check for brack being
16463         NULL before attempting to merge it with qtail.
16464
16465 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
16466
16467         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
16468         DBX_DEBUG.
16469
16470 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16471
16472         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
16473
16474 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16475
16476         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
16477         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
16478         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
16479
16480 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16481
16482         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
16483         now only if !TARGET_FIX.
16484         (*movsi_nt_vms_fix): New pattern.
16485
16486 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
16487
16488         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
16489         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
16490         (alpha_sa_mask, alpha_sa_size): Reflect above change.
16491         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
16492         (alpha_start_function, alpha_expand_epilogue): Likewise.
16493         (unicosmk_gen_dsib): Likewise.
16494
16495 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16496
16497         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
16498
16499 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
16500
16501         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
16502         check_and_change_labels, s390_final_chunkify): Delete.
16503         (s390_split_branches, s390_chunkify_pool): New functions.
16504         (s390_function_prologue): Call them.
16505
16506         * config/s390/s390.h (S390_REL_MAX): Delete.
16507         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
16508
16509         * config/s390/s390.md (cjump, icjump, jump): Fix length
16510         attribute calculation.
16511
16512
16513 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
16514
16515         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
16516         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
16517
16518 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16519
16520         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
16521         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
16522         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
16523
16524 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
16525
16526         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
16527
16528 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
16529
16530         * reload.c (find_dummy_reload): Check that an output register
16531         is valid for its mode.
16532
16533 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
16534
16535         * combine.c (known_cond): After replacing the REG of a SUBREG, try
16536         to simplify it.
16537
16538         * function.c (assign_parms): Demote promoted argument passed by
16539         transparent reference.
16540
16541 2001-02-14      Joel Sherrill <joel@OARcorp.com>
16542
16543         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
16544         -Acpu() and -Amachine() to eliminate warnings.
16545
16546 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
16547
16548         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
16549
16550 2002-02-14  Kazu Hirata  <kazu@hxi.com>
16551
16552         * config/h8300/h8300-protos.h: Update the prototype for
16553         const_costs.
16554         * config/h8300/h8300.c (const_costs): Treat SET as a little
16555         more expensive operation.
16556         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
16557         reference to const_costs.
16558
16559 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
16560
16561         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
16562
16563 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
16564
16565         PR c/5503:
16566         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
16567         use arguments from newtype.
16568
16569 2002-02-13  Eric Christopher  <echristo@redhat.com>
16570
16571         * config/mips/mips.c (override_options): Add check for march/mipsX
16572         on the same command line. Fix error message in cpu processing.
16573         Remove architecture and ISA checks.
16574
16575 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
16576
16577         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
16578
16579         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
16580
16581 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
16582
16583         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
16584         alternatives.
16585         ("*movv8hi_internal1"): Same.
16586         ("*movv16qi_internal1"): Same.
16587         ("*movv4sf_internal1"): Same.
16588
16589         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
16590         not push_reload for altivec modes.
16591
16592 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
16593
16594         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
16595         all RTEMS targets including removal of #includes from config/*/rtems*.h
16596         file and adding them to tm_file setting. Added xm_defines=POSIX to
16597         many targets.
16598         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
16599         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
16600         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
16601         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
16602         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
16603         config/m68k/rtemself.h: Ditto.
16604         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
16605         config/mips/rtems64.h: Ditto.
16606         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
16607         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
16608         Ditto.
16609         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
16610         config/sparc/rtemself.h: Ditto.
16611         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
16612         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
16613         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
16614         more like arm-elf.
16615         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
16616         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
16617         target made more similar to i386-elf.
16618         * config/i386/t-rtems-i386: Added soft float support and multilibs.
16619         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
16620         be similar to config/m68k/t-m68kelf.
16621         * gthr-rtems.h: Encapsulate with extern "C" for C++.
16622
16623 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
16624
16625         * regmove.c (kill_value): Handle subregs.
16626
16627 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
16628
16629         * i386.md (mul patterns): Allow memory operand to be first;
16630         add expanders where needed; fix constraints.
16631         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
16632         Allow memory operand to be the first.
16633
16634         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
16635         operands.
16636
16637 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
16638
16639         PR c/5681:
16640         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
16641         GET_MODE (x).
16642
16643 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
16644
16645         PR optimization/5547:
16646         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
16647         all valid IA-32 address modes involving non-scaled %ebx and
16648         GOT/GOTOFF as displacement.
16649
16650 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
16651
16652         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
16653         after emitting ltorg insns.
16654
16655         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
16656         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
16657         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
16658         *abssf2): Fix "op_type" attribute.
16659
16660 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
16661
16662         * mkconfig.sh: Avoid using a subshell redirect.
16663         ($output.T): Change to $(output)T.
16664         (ENABLE_NLS): Remove unneeded undef.
16665
16666         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
16667         * config/alpha/x-vms (libsubdir): Define.
16668
16669         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
16670         register frame procedures. Optimize retrieving context.
16671
16672         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
16673         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
16674         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
16675
16676 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16677
16678         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
16679         Make same change as for find_base_value.
16680
16681 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16682
16683         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
16684         of QImode and SImode.
16685
16686 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16687
16688         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
16689         length computation of movsi.
16690         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
16691
16692 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16693
16694         * config/h8300/h8300.md (subqi3): Tighten the predicate for
16695         operands[2] to register_operand.
16696
16697 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
16698
16699         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
16700
16701 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
16702
16703         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
16704         for altivec_lvx* and altivec_stvx*.
16705         ("*movv4si_internal"): Add constraint for loading from GPRs.
16706         ("*movv8hi_internal1"): Same.
16707         ("*movv16qi_internal1"): Same.
16708         ("*movv4sf_internal1"): Same.
16709
16710         * config/rs6000/rs6000.c (altivec_register_operand): New.
16711
16712         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
16713         altivec_register_operand.
16714
16715 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
16716
16717         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
16718         handle SYMBOL_REF.
16719
16720 2002-02-13  Stan Shebs  <shebs@apple.com>
16721
16722         * c-typeck.c (digest_init): Handle vectors.
16723         (really_start_incremental_init): Same.
16724         (pop_init_level): Same.
16725         (process_init_element): Same.
16726
16727         * varasm.c (output_constant): Same.
16728
16729         * expr.c (clear_storage): Same.
16730         (store_constructor): Same.
16731
16732 2002-02-12  Eric Christopher  <echristo@redhat.com>
16733
16734         * explow.c (hard_function_value): Add comment explaining
16735         signed/unsigned comparison.
16736
16737 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
16738
16739         * jump.c (never_reached_warning): Add finish argument.
16740         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
16741         real insn after end.
16742         * rtl.h (never_reached_warning): Adjust prototype.
16743         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
16744         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
16745         never_reached_warning.
16746
16747 2002-02-12  Graham Stott  <grahams@redhat.com>
16748
16749         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
16750
16751 2002-02-12  Kazu Hirata  <kazu@hxi.com>
16752
16753         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
16754         logical shifts on H8/300.
16755         (shift_alg_si): Improve several shifts on H8/300.
16756         (get_shift_alg): Likewise.
16757
16758 2002-02-12  Graham Stott  <grahams@redhat.com>
16759
16760         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
16761
16762 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16763
16764         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
16765         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
16766
16767 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
16768
16769         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
16770         non-CONST_INT through default_assemble_integer.
16771         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
16772         <case 8>: Abort for CONST_DOUBLE.
16773
16774 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16775
16776         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
16777         is specified.
16778         * config/pa/pa-linux.h (LIB_SPEC): Delete.
16779         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
16780
16781 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
16782
16783         * config/stormy16/stormy16.md (zero_extendqihi2): New.
16784
16785 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
16786
16787         * regrename.c (regrename_optimize): Don't accept a
16788         part-clobbered register if the replaced register is not part
16789         clobbered.
16790
16791         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
16792         take padding into account when computing the argument value.
16793
16794         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
16795
16796         * combine.c (try_combine): Apply substitutions in
16797         CALL_INSN_FUNCTION_USAGE too.
16798
16799 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
16800
16801         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
16802         __builtin_altivec_abs*.
16803         (bdesc_abs): New.
16804
16805         * config/rs6000/rs6000.h (rs6000_builtins): Add
16806         ALTIVEC_BUILTIN_ABS*.
16807
16808         * config/rs6000/altivec.h: Use const char for builtins expecting
16809         literals.
16810         (vec_abs): New versions for C and C++.
16811         (vec_abss): Same.
16812
16813 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16814
16815         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
16816         using Pmode.
16817
16818 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16819
16820         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
16821         constant definition from h8300.md.
16822         (FRAME_POINTER_REGNUM): Likewise.
16823         * config/h8300/h8300.md (define_constants): Add FP_REG.
16824
16825 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16826
16827         * config/h8300/h8300.c (print_operand): Remove redundant code.
16828
16829 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16830
16831         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
16832         * config/h8300/h8300.c (byte_reg): Make it static.
16833
16834 2002-02-10  Richard Henderson  <rth@redhat.com>
16835
16836         PR c/5623
16837         * c-typeck.c (incomplete_type_error): Handle flexible array members.
16838
16839 2002-02-10  Richard Henderson  <rth@redhat.com>
16840
16841         PR c++/5624
16842         * tree.c (append_random_chars): Don't abort if main_input_filename
16843         does not exist.
16844
16845 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
16846
16847         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
16848
16849 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16850
16851         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
16852         (pushhi1): Likewise.
16853
16854 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16855
16856         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
16857         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
16858
16859 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
16860
16861         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
16862         remove MASK_VIS.
16863         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
16864
16865 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16866
16867         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
16868         a half of an SImode register on H8/300.
16869
16870 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
16871
16872         * i386.md (movdi_2): Add missing '!'.
16873
16874 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16875
16876         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
16877         definitions.
16878
16879 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16880
16881         * config/h8300/h8300.md (length): Correct the distance valid
16882         for the short branch.
16883
16884 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16885
16886         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
16887
16888 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
16889
16890         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
16891         registers in SImode.
16892         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
16893         part-clobbered.
16894
16895         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
16896         patch.
16897
16898         Contribute sh64-elf.
16899         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
16900         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
16901         (sh_cannot_modify_jumps_p): New function.
16902         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
16903         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
16904         (sh_ms_bitfield_layout_p): New function.
16905         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
16906                     Zack Weinberg  <zack@codesourcery.com>
16907         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
16908         expand_simple_binop instead of expand_binop.
16909         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
16910         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
16911         use of .quad and .uaquad.
16912         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
16913         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
16914         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
16915         * config/sh/sh.md (movdi_const, movdi_const_32bit,
16916         movdi_const_16bit): Make sure all CONSTs have modes.
16917         (sym2PIC): Ditto, but by adjusting all callers.
16918         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
16919         if the prologue calls the SHmedia argument decoder or register
16920         saver.
16921         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
16922         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
16923         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
16924         (sh_expand_epilogue): Don't emit USE of return target register.
16925         (prepare_move_operands): Legitimize DImode PIC addresses.
16926         (sh_media_register_for_return): Skip tr0, used to initialize the
16927         PIC register.
16928         (sh_expand_prologue): Remove explicit USE of return register.
16929         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
16930         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
16931         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
16932         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
16933         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
16934         EXTRA_CONSTRAINT_T.
16935         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
16936         (MOVI_SHORI_BASE_OPERAND_P): New.
16937         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
16938         (EXTRA_CONSTRAINT_T): Define in terms of them.
16939         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
16940         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
16941         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
16942         alternatives supporting TARGET_REGS.
16943         (UNSPEC_GOTPLT): New constant.
16944         (movdi split): Move incrementing of LABEL_NUSES...
16945         (movdi_const, movdi_const_32bit): Here.  Use
16946         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
16947         (movdi_const_16bit): New.
16948         (call, call_value) [flag_pic]: Use GOTPLT.
16949         (call_pop, call_value_pop): New expands.
16950         (call_pop_compact, call_pop_rettramp): New insns.
16951         (call_value_pop_compact, call_value_pop_rettramp): New insns.
16952         (sibcall) [flag_pic]: Use GOT.
16953         (builtint_setjmp_receiver): Remove bogus, unused expand.
16954         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
16955         (*pt, *ptb, ptrel): New insns.
16956         (sym2GOT): Handle DImode GOT.
16957         (sym2GOTPLT, symGOTPLT2reg): New expands.
16958         (sym2PIC): New expand.
16959         (shcompact_return_tramp): Use GOTPLT to return trampoline.
16960         (shcompact_return_tramp_i): Use return register explicitly.
16961         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
16962         disable flag_reorder_blocks.
16963         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
16964         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
16965         clobbers, for clarity.
16966         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
16967         restoring of r0 in macl as MAYBE_DEAD.
16968         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
16969         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
16970         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
16971         alter_subreg all over.
16972         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
16973         reload, instead of emitting instructions that would require
16974         reloading.
16975         (casesi_load_media): Add missing modes.
16976         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
16977         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
16978         as used if the argument decoder is called.
16979         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
16980         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
16981         Pmode, then extend it to DImode if necessary.
16982         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
16983         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
16984         constants in FPU-enabled SHmedia, let them be loaded from memory.
16985         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
16986         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
16987         Adjust whitespace in assembly output templates.
16988         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
16989         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
16990         mode of if_then_else.
16991         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
16992         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
16993         sh.h.
16994         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
16995                     Joern Rennecke <amylaar@redhat.com>
16996         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
16997         (SUBTARGET_CPP_PTR_SPEC): New.
16998         (SUBTARGET_CPP_SPEC): Remove.
16999         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
17000         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
17001         Fix typo in previous checkin.
17002         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
17003         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
17004         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
17005                     Alexandre Oliva  <aoliva@redhat.com>
17006         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
17007         what single FP register can hold for SHmedia target.
17008         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
17009                     Alexandre Oliva  <aoliva@redhat.com>
17010         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
17011         Do not split into SUBREG.
17012         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
17013         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
17014         and added new functions as specified in SH5 ABI r9.
17015         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
17016         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
17017         8-byte boundary.
17018         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
17019         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
17020         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
17021         and consttable_window_ends.
17022         2001-06-03  Graham Stott  <grahams@redhat,com>
17023         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
17024         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
17025         * config/sh/sh.c (print_operand): Handle floating-point pair,
17026         vector and matrix registers.
17027         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
17028         vector modes into account.
17029         * config/sh/sh.md (movv2sf): Split move between registers into
17030         movdf.
17031         (movv4sf, movv16sf): Introduce insns that get split only after
17032         reload.
17033         * config/sh/shmedia.h: Fix Copyright dates.
17034         * config/sh/ushmedia.h: Likewise.  Move loop counter
17035         declarations into conditionals that uses them.
17036         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
17037         loop boundary.
17038         * config/sh/sshmedia.h: Fix Copyright dates.
17039         (sh_media_PUTCFG): Fix constraints.
17040         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
17041         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
17042         ptrmemfunc_vbit_in_delta for SH5.
17043         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
17044         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
17045         * invoke.texi: Likewise.
17046         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
17047         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
17048         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
17049         GCC_pop_shmedia_regs_nofpu): New global symbols.
17050         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
17051         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
17052         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
17053         compact function with nonlocal labels.
17054         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
17055         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
17056         (initial_elimination_offset): Account for their stack space.
17057         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
17058         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
17059         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
17060         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
17061         least one of the operands to be a register.
17062         (movv2sf): Likewise.  Renamed to movv2sf_i.
17063         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
17064         prepare_move_operands() before emitting SHmedia insns.
17065         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
17066         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
17067         Don't save nor initialize r12.  Don't mis-align the stack.
17068         Pad the code with a nop.
17069         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
17070         stack.
17071         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
17072         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
17073         [__SHMEDIA__]: Implement.
17074         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
17075         * config/sh/sh.md: Set latency of `pt' closer to reality.
17076         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
17077         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
17078         Set move, load and store type attributes.
17079         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
17080         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
17081         profiling.
17082         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
17083         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
17084         * config/sh/sh.c (sh_media_register_for_return): New function.
17085         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
17086         branch-target register.
17087         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
17088         * config/sh/sh.md (return_media_i): Use any call-clobbered
17089         branch-target register.
17090         (return_media): If r18 wasn't copied in the prologue, copy it
17091         here.
17092         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
17093         Clear class FP0_REGS.
17094         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
17095         from elf.h.
17096         2001-03-08  DJ Delorie  <dj@redhat.com>
17097         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
17098         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
17099         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
17100         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
17101         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
17102         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
17103         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
17104         return value correctly for call_cookie.
17105         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
17106         * config/sh/crt1.asm (start): Modified so as to call
17107         ___setup_argv_and_call_main.
17108         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
17109         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
17110         SHmedia mode.
17111         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
17112         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
17113         (STRIP_NAME_ENCODING): Use it.
17114         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
17115         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
17116         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
17117         prepare_scc_operands().
17118         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
17119         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
17120         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
17121         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
17122         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
17123         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
17124         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
17125         used in shcompact_incoming_args.
17126         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
17127         change.
17128         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
17129         mode.
17130         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
17131         Adjust accordingly.
17132         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
17133         Simplify.  Adjust.  Add sanity check.
17134         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
17135         FPU_SINGLE_BIT.
17136         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
17137         TARGET_SHCOMPACT.
17138         (udivsi3, divsi3): Use them.
17139         (force_mode_for_call): New insn.
17140         (call, call_value, sibcall_value): Emit it before SHcompact
17141         calls.
17142         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
17143         * config/sh/sh.md (call, call_value, sibcall): Make sure the
17144         call cookie is non-NULL before taking its value.
17145         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
17146         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
17147         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
17148         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
17149         block.
17150         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
17151         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
17152         temporary for stack adjusts.  Use MACL and MACH to pass
17153         arguments to shcompact_incoming_args.
17154         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
17155         clobber r1.
17156         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
17157         (nested_trampoline): Load static chain address into r1.
17158         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
17159         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
17160         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
17161         fp_arith_reg_operand().
17162         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
17163         * config/sh/sh.md (casesi): Sign-extend the first two operands,
17164         and use signed compares for them.
17165         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
17166         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
17167         ones properly aligned.
17168         (find_barrier): Account for extra alignment needed for 8-byte wide
17169         constants.
17170         (machine_dependent_reorg): Require a label for the second 4-byte
17171         constant after an 8-byte one.
17172         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
17173         change.
17174         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
17175         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
17176         last_float when switching float modes.
17177         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
17178         auto-increment for general-purpose registers.
17179         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
17180         result.
17181         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
17182         for stack adjust.
17183         * config/sh/sh.c (sh_builtin_saveregs): Support using all
17184         registers for varargs.
17185         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
17186         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
17187         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
17188         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
17189         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
17190         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
17191         call_cookie accordingly.
17192         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
17193         (SHCOMPACT_BYREF): Likewise.
17194         (SHCOMPACT_FORCE_ON_STACK): New macro.
17195         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
17196         (sh_builtin_saveregs): Likewise.
17197         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17198         shcompact_incoming_args): Use new shift values.  Support
17199         sequences of consecutive and non-consecutive pushes/pops.
17200         * config/sh/sh.md (return): Don't explicitly use PR_REG.
17201         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
17202         * config/sh/sh.h (TEXT_SECTION): Define.
17203         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
17204         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
17205         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
17206         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
17207         return values on FPU-enabled SHmedia.
17208         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
17209         FPU-enabled SHmedia.
17210         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
17211         value is returned in a non-FP reg and is not returned by
17212         reference.
17213         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
17214         jump_ind.
17215         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
17216         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
17217         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
17218         quad-aligned to be passed by callee-copy reference.
17219         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
17220         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
17221         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
17222         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
17223         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
17224         copying low-numbered FP regs to r7 and r8.
17225         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
17226         FP regs to general-purpose regs only if the copy was passed on the
17227         stack.
17228         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
17229         copying FP reg to r9.
17230         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
17231         copy FP regs to general-purpose regs only in outgoing calls.
17232         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
17233         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
17234         HOST_WIDE_INT.
17235         * config/sh/sh.h (struct sh_args): Document all fields.
17236         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
17237         passed partially on the stack should not consider making
17238         sibcalls.
17239         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
17240         stack_regs only for incoming calls.  When passing FP args,
17241         make sure there are FP regs available before modifying
17242         call_cookie.
17243         (SHCOMPACT_BYREF): Pass double args in general-purpose
17244         registers by reference.
17245         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
17246         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
17247         attempt to generate sibcalls if the caller got any arguments
17248         by reference.
17249         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
17250         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
17251         to 8-byte boundaries.
17252         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
17253         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
17254         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
17255         stored in the stack.
17256         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
17257         for the offsets to have the ISA bit set.
17258         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
17259         invocation.  Use beq instead of bgt to mark end of sequence of
17260         loads.
17261         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
17262         bgt to mark end of sequence of stores.
17263         * config/sh/sh.c (arith_operand): Don't check whether
17264         CONST_OK_FOR_J for now.
17265         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
17266         instead of long for conversion.
17267         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
17268         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
17269         before passing it to fprintf.
17270         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
17271         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
17272         Call set_fpscr before reading/writing SR.
17273         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
17274         Call set_fpscr.
17275         * config/sh/lib1funcs.asm: Add `.align 2' directives before
17276         SHmedia code.
17277         (FMOVD_WORKS): Define on SH5 with FPU.
17278         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
17279         setting.
17280         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
17281         _fpscr_values.
17282         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
17283         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
17284         address.
17285         (ia_main_table): Ditto.
17286         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
17287         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
17288         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
17289         the definitions from sh.h.
17290         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
17291         TARGET_SH5.
17292         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
17293         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
17294         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
17295         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
17296         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
17297         Increment LABEL_NUSES.
17298
17299         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
17300         TARGET_SH5.
17301         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
17302         defined.
17303         * config/sh/elf.h (SIZE_TYPE): Likewise.
17304         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
17305         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17306         shcompact_incoming_args): Load switch table addresses using
17307         datalabel.
17308         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
17309         (NO_BUILTIN_SIZE_TYPE): Define.
17310         (SIZE_TYPE): Don't define.
17311         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
17312         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
17313         definition of __SH5__=32 for -m5-compact-nofpu.
17314         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
17315         ADDR_DIFF_VEC.
17316         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
17317         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
17318         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
17319         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
17320         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
17321         (INSN_LENGTH_ALIGNMENT): Likewise.
17322         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17323         * config/sh/sh.md (call, call_value, sibcall): Simplify
17324         copying of non-branch-target register.
17325         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17326         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
17327         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
17328         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17329         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
17330         floating-point values as structs.
17331         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
17332         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
17333         general-purpose register.
17334         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
17335         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
17336         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
17337         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
17338         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
17339         (ENCODE_SECTION_INFO): Enclose variables and constants in
17340         DATALABEL unspecs.
17341         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
17342         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
17343         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
17344         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
17345         only for LABEL_REFs.  For SYMBOL_REFs, prepend
17346         SH_DATALABEL_ENCODING to the symbol name.
17347         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
17348         convert_mode().
17349         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
17350         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
17351         UNSPEC_DATALABEL.
17352         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
17353         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
17354         (DATALABEL_REF_P): Don't require CONST.
17355         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
17356         REL label.
17357         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
17358         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
17359         right.
17360         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
17361         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
17362         Use shallow_copy_rtx and PUT_MODE to change the mode of
17363         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
17364         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
17365         on SHmedia using GENERAL_REGs.
17366         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17367         bltu_media_i): Fix reversion of conditions.
17368         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
17369         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
17370         * config/sh/sh.c (output_far_jump): Save r13 in macl.
17371         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
17372         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
17373         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
17374         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
17375         (GCC_nested_trampoline): Likewise.
17376         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
17377         * config/sh/sh.c (gen_datalabel_ref): Define.
17378         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
17379         (INITIALIZE_TRAMPOLINE): Likewise.
17380         (TRAMPOLINE_ADJUST_ADDRESS): Define.
17381         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
17382         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
17383         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
17384         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
17385         (ic_invalidate): Adjust for SH5.
17386         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
17387         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
17388         _nested_trampoline.
17389         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
17390         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
17391         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
17392         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
17393         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
17394         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
17395         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
17396         * config/sh/sh.c (target_reg_operand): Match only target-branch
17397         registers and pseudos that aren't virtual registers.
17398         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17399         Copy operands that don't match target_reg_operand to pseudos.
17400         (call_media, call_value_media, sibcall_media): Use
17401         target_reg_operand instead of target_operand.
17402         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
17403         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
17404         * config/sh/sh.c (target_reg_operand): Match hardware registers
17405         other than branch-target registers.
17406         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
17407         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
17408         (fpscr_values) [SH5 == 32]: Define.
17409         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
17410         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17411         Handle function addresses coming in SUBREGs.
17412         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
17413         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17414         shcompact_return_trampoline): Use datalabel where appropriate.
17415         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
17416         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
17417         general-purpose register to copy one branch-target register to
17418         another.
17419         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
17420         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
17421         SYMBOL_REFs with VOIDmode.
17422         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17423         bltu_media_i): New insns.
17424         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
17425         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
17426         (INIT_CUMULATIVE_ARGS): Likewise.
17427         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
17428         * machmode.def (V16SFmode): New mode.
17429         * c-common.c (type_for_mode): Support V2SF and V16SF.
17430         * tree.c (build_common_tree_nodes_2): Likewise.
17431         * tree.h (tree_index): Likewise.
17432         * calls.c (emit_call_1): Take args_so_far.  Adjust all
17433         callers.  Introduce CALL_POPS_ARGS.
17434         * tm.texi (CALL_POPS_ARGS): Document.
17435         * config/sh/crt1.asm: Implement in SHmedia mode.
17436         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
17437         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
17438         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
17439         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
17440         Implement divsi and udivsi in SHmedia mode.  Introduce
17441         SHcompact trampolines.
17442         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
17443         only in SHmedia64.
17444         (regno_reg_class): Rewrite.
17445         (fp_reg_names): Remove.
17446         (sh_register_names, sh_additional_register_names): New.
17447         (print_operand): Added `u'.  Support SUBREGs in addresses.
17448         Add parentheses around shifted CONSTs.
17449         (output_file_start): Output .mode and .abi directives.
17450         (shiftcosts, addsubcosts, multcosts): Adjust.
17451         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
17452         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
17453         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
17454         bytes, not registers.  Take into account the need for the
17455         SHcompact incoming args trampoline.  Adjust all callers.
17456         (sh_expand_prologue): Take stack_regs into account.  Call
17457         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
17458         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
17459         stack aligned as per SH5 ABI.
17460         (sh_builtin_saveregs): Support SH5 ABI.
17461         (sh_build_va_list, sh_va_start): Likewise.
17462         (initial_elimination_offset): Take alignment into account.
17463         Compute location of PR according to the SH5 stack frame.
17464         (arith_reg_operand): Reject branch-target registers.
17465         (shmedia_6bit_operand): New.
17466         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
17467         (target_reg_operand): Match DImode only.  Accept SUBREGs.
17468         (target_operand): New.
17469         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
17470         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
17471         SIBCALL_REGS for SHmedia.
17472         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
17473         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
17474         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
17475         (TARGET_SWITCHES): New SH5 flags.
17476         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
17477         VALID_REGISTER_P to disable unsupported registers.
17478         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
17479         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
17480         (FUNCTION_ARG_PADDING): Define.
17481         (FASTEST_ALIGNMENT): Adjust.
17482         (SH_REGISTER_NAMES_INITIALIZER): New.
17483         (sh_register_names): Declare.
17484         (DEBUG_REGISTER_NAMES): Define.
17485         (REGISTER_NAMES): Define based on sh_register_names.
17486         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
17487         (sh_additional_register_names): Declare.
17488         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
17489         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
17490         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
17491         (REGISTER_NATURAL_MODE): Define.
17492         (FIRST_PSEUDO_REGISTER): Adjust.
17493         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
17494         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
17495         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
17496         (VECTOR_MODE_SUPPORTED_P): Define.
17497         (REG_CLASS_CONTENTS): Adjust.
17498         (SMALL_REGISTER_CLASSES): Adjust.
17499         (REG_ALLOC_ORDER): Adjust.
17500         (INDEX_REG_CLASS): Adjust.
17501         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
17502         (CONST_OK_FOR_LETTER_P): Adjust.
17503         (PREFERRED_RELOAD_CLASS): Adjust.
17504         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
17505         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
17506         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
17507         (FIRST_FP_PARM_REG): Adjust.
17508         (CALL_POPS_ARGS): Define.
17509         (FUNCTION_ARG_REGNO_P): Adjust.
17510         (struct sh_args): New fields.
17511         (GET_SH_ARG_CLASS): Adjust.
17512         (INIT_CUMULATIVE_ARGS): Adjust.
17513         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
17514         (FUNCTION_ARG_ADVANCE): Adjust.
17515         (FUNCTION_ARG): Adjust.
17516         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
17517         (FUNCTION_ARG_CALLEE_COPIES): Define.
17518         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
17519         (STRICT_ARGUMENT_NAMING): Define.
17520         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
17521         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
17522         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
17523         (SETUP_INCOMING_VARARGS): Adjust.
17524         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
17525         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
17526         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
17527         (SUBREG_OK_FOR_INDEX_P): Adjust.
17528         (EXTRA_CONSTRAINT_S): Update.
17529         (EXTRA_CONSTRAINT_T): New.
17530         (EXTRA_CONSTRAINT): Adjust.
17531         (GO_IF_LEGITIMATE_INDEX): Adjust.
17532         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
17533         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
17534         (MOVE_MAX): Adjust.
17535         (MAX_MOVE_MAX): Define.
17536         (Pmode): Adjust.
17537         (CONST_COSTS): Adjust.
17538         (REGISTER_MOVE_COST): Adjust.
17539         (BRANCH_COST): Adjust.
17540         (TEXT_SECTION_ASM_OP): Adjust.
17541         (DBX_REGISTER_NUMBER): Adjust.
17542         (ASM_OUTPUT_DOUBLE_INT): New.
17543         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
17544         (PREDICATE_CODES): Adjust.
17545         (PROMOTE_MODE): Adjust.
17546         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
17547         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
17548         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
17549         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
17550         (DR0_REG, DR2_REG, DR4_REG): Renumber.
17551         (TR0_REG, TR1_REG, TR2_REG): New.
17552         (XD0_REG): Renumber.
17553         (UNSPEC_COMPACT_ARGS): New.
17554         (type): Added pt and ptabs.
17555         (length): Default to 4 on SHmedia.  Default pt length to 12
17556         and     20 on SHmedia32 and SHmedia64, respectively.
17557         (pt): New function unit.
17558         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
17559         Add whitespace between operands of SHmedia instructions.
17560         (movdicc): Fix.
17561         (adddi3_media, addsi3_media): Adjust constraints.
17562         (subsi3) [SHmedia]: Force operand 1 into a register.
17563         (udivsi3_i1_media, udivsi3_i4_media): New.
17564         (udivsi3): Support SHmedia.
17565         (divsi3_i1_media, divsi3_i4_media): New.
17566         (divsi3): Support SHmedia.
17567         (anddi3, iordi3, xordi3): Adjust constraints.
17568         (zero_extendhidi2, zero_extendqidi2): New.
17569         (extendsidi2, extendhidi2, extendqidi2): New.
17570         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
17571         (pop_e, pop_fpul, pop_4): Likewise.
17572         (movsi_media): Support FP and BT registers.
17573         (movsi_media_nofpu): New.  Adjust splits to DImode.
17574         (lduw, ldub): Renamed to zero_extend* above.
17575         (movqi_media): Fix typo.
17576         (movdi_media): Support FP and BT registers.
17577         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
17578         (movdi_const_32bit): New.
17579         (shori_media): Require immediate operand.  Use `u' for output.
17580         (movdf_media, movsf_media): Simplified.
17581         (movdf_media_nofpu, movsf_media_nofpu): New.
17582         (movdf, movsf): Adjust
17583         (movv2sf, movv2sf, movv16sf): New.
17584         (beq_media, beq_media_i): Adjust constraints.  Don't use
17585         scratch BT register.
17586         (bne_media, bne_media_i): Likewise.
17587         (bgt_media, bgt_media_i): Likewise.
17588         (bge_media, bge_media_i): Likewise.
17589         (bgtu_media, bgtu_media_i): Likewise.
17590         (bgeu_media, bgeu_media_i): Likewise.
17591         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
17592         bunordered): Emit jump insn.  Force operands to registers when
17593         needed.
17594         (jump_media, jump): Simplify.
17595         (call_compact, call_compact_rettramp): New.
17596         (call_value_compact, call_value_compact_rettramp): New.
17597         (call_media, call_value_media): Simplify.
17598         (sibcall_compact, sibcall_media): New.
17599         (call, call_value): Adjust for SHmedia and SHcompact.
17600         (sibcall, sibcall_value, untyped_call): Likewise.
17601         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
17602         (indirect_jump): Adjust for SHmedia.
17603         (casesi_jump_media): New.
17604         (nop): Re-enable for SHmedia.
17605         (call_site): Restrict to SH1.
17606         (casesi): Adjust for SHmedia.
17607         (casesi_shift_media, casesi_load_media): New.
17608         (return): Explicitly use PR register.  Call return trampoline
17609         on SHcompact.
17610         (return_i): Explicitly use PR register.
17611         (shcompact_return_tramp, shcompact_return_tramp_i): New.
17612         (return_media): Adjust.
17613         (shcompact_incoming_args): New.
17614         (epilogue): Adjust.
17615         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17616         (movstrsi): Disable on SH5.
17617         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
17618         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
17619         (subsf3, subsf3_media): Likewise.
17620         (mulsf3, mulsf3_media, mac_media): Likewise.
17621         (divsf3, divsf3_media): Likewise.
17622         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
17623         (floatsisf2, fux_truncsfsi2): Likewise.
17624         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
17625         constraints.
17626         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
17627         (cmpunsf_media, cmpsf): Likewise.
17628         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
17629         (abssf2, abssf2_media): Likewise.
17630         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
17631         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
17632         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
17633         (floatsidf2, fix_truncdfsi2): Likewise.
17634         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
17635         constraints.
17636         (cmpeqdf_media, cmpgtdf_media): Likewise.
17637         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
17638         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
17639         (absdf2, absdf2_media): Likewise.
17640         (extendsfdf2, extendsfdf2_media): Likewise.
17641         (truncsfdf2, truncsfdf2_media): Likewise.
17642         * config/sh/sh64.h: New file.
17643         * config/sh/t-sh64: New file.
17644         * config/sh/shmedia.h: New file.
17645         * config/sh/ushmedia.h: New file.
17646         * config/sh/sshmedia.h: New file.
17647         * configure.in: Added sh64-*-elf.
17648         * configure: Rebuilt.
17649         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
17650         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
17651         (reg_class_from_letter): Use `b' for TARGET_REGS.
17652         (print_operand): Support `%M', `%m', `AND' and
17653         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
17654         (andcosts): Adjust for SHmedia.
17655         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
17656         Likewise.
17657         (target_reg_operand): New function.
17658         * config/sh/sh-protos.h (target_reg_operand): Declare.
17659         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
17660         FP registers on SH5.
17661         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
17662         on SH4.
17663         (TARGET_REGISTER_P): New macro.
17664         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
17665         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
17666         (EXTRA_CONSTRAINT_S): New macro.
17667         (EXTRA_CONSTRAINT): Adjust.
17668         (FLOAT_TYPE_SIZE): Define to 32.
17669         (Pmode): DImode on SHmedia.
17670         (CONST_COSTS): Adjust for SHmedia literals.
17671         (PREDICATE_CODES): Added target_reg_operand.
17672         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
17673         * config/sh/sh.md: Remove all attrs from SHmedia insns.
17674         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
17675         (cmpdi): Accept SHmedia.
17676         (movdicc_false, movdicc_true): New insns.
17677         (movdicc): New expand.
17678         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
17679         no_new_pseudos.
17680         (addsi3_media): Match `S' constraint.
17681         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
17682         (negdi2): Expand for SHmedia.
17683         (one_cmpldi2): New expand.
17684         (zero_extendsidi2): Change from expand to insn.
17685         (extendsidi2): Add constraints.
17686         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
17687         LD/ST address.  Fix SI immediate loading split.
17688         (movhi_media, movqi_media, lduw, ldub): New insns.
17689         (movhi, movqi): Accept SHmedia.
17690         (shori_media, movdi_media): Relax input constraints.  Split
17691         symbolic constants.
17692         (movdf_media, movsf_media): New insn.  New split to movdi.
17693         (movdf, movsf): Match on SHmedia.
17694         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
17695         bgeu_media): New insns and splits.  New insns with `_i' suffix.
17696         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
17697         (bunordered): New expand.
17698         (jump_compact): Renamed from `jump'.
17699         (jump_media): New insn.
17700         (jump): New expand.
17701         (call_media, call_value_media): New insns.
17702         (call, call_value): Adjust.
17703         (indirect_jump_compact): Renamed from `indirect_jump'.
17704         (indirect_jump_media): New insn.
17705         (indirect_jump): New expand.
17706         (untyped_call, return): Accept SHmedia.
17707         (return_media): New insn.
17708         (prologue, epilogue, blockage): Accept SHmedia.
17709         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17710         (sunordered): New expand.
17711         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
17712         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
17713         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
17714         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
17715         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
17716         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
17717         abssf2_media): New insns.
17718         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
17719         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
17720         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
17721         floatdidf2, floatsidf2_media, fix_truncdfdi2,
17722         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
17723         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
17724         absdf2_media): New insns.
17725         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
17726         (extendsfdf2_media, truncdfsf2_media): New insns.
17727         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
17728         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
17729         * config/sh/sh.h (CONST_OK_FOR_J): Document.
17730         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
17731         * config/sh/sh.md (adddi3): New expand.
17732         (adddi3_media, adddi3z_media): New insns.
17733         (adddi3_compact): Renamed from adddi3.
17734         (addsi3_media): Use add.l r63 to add constant zero.
17735         (subdi3): New expand.
17736         (subdi3_media): New insn.
17737         (subdi3_compact): Renamed from subdi3.
17738         (mulsidi3): New expand.
17739         (mulsidi3_media): New insn.
17740         (mulsidi3_compact): Renamed from mulsidi3.
17741         (umulsidi3): New expand.
17742         (umulsidi3_media): New insn.
17743         (umulsidi3_compact): Renamed from umulsidi3.
17744         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
17745         (ashlsi3, ashrsi3, lshrsi3): Use them.
17746         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
17747         (ashldi3, ashrdi3, lshrdi3): Use them.
17748         (zero_extendsidi2): New expand.
17749         (extendsidi2): New insn.
17750         (movsi_media): New insn.  Split to movdi to load constants.
17751         (movsi): Enable for shmedia.
17752         (movdi_media): New insn.  Use shori_media to load wide constants.
17753         (short_media): New insn.
17754         (movdi): Enable for shmedia.
17755         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
17756         * config/sh/sh.h (CPP_SPEC): Added `m5'.
17757         (SUBTARGET_CPP_SPEC): Added `!m5'.
17758         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
17759         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
17760         to all other SH variants.
17761         (TARGET_DEFAULT): Set to SH1_BIT.
17762         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
17763         (BITS_PER_WORD): Raise to 64 on shmedia.
17764         (MAX_BITS_PER_WORD): Change to 64.
17765         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
17766         (INT_TYPE_SIZE): Keep as 32.
17767         (UNITS_PER_WORD): Raise to 8 on shmedia.
17768         (MIN_UNITS_PER_WORD): Keep as 4.
17769         (POINTER_SIZE): Raise to 64 on shmedia.
17770         (CONST_OK_FOR_J): New macro.
17771         (CONST_OK_FOR_LETTER_P): Use it.
17772         (processor_type): Add PROCESSOR_SH5.
17773         * config/sh/sh.md: Conditionalize all expands, insns and
17774         splits to TARGET_SH1.
17775         (cpu): Added sh5.
17776         (addsi3_compact): Renamed from...
17777         (addsi3): Now an expand.
17778         (addsi3_media, subsi3_media): New insns.
17779         (subsi3): Don't negate constants with SHmedia.
17780
17781         * hooks.c: New file.
17782         * hooks.h: New file.
17783         * Makefile.in (HOOKS_H): New.
17784         (TARGET_DEF_H): Added $(HOOKS_H).
17785         (OBJS): Added hooks.o.
17786         (cfgcleanup.o, bb-reorder.o): Added target.h.
17787         (hooks.o): Added dependencies.
17788         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
17789         (TARGET_INITIALIZER): this.
17790         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
17791         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
17792         * bb-reorder.c: Include target.h.
17793         (reorder_basic_blocks): Skip if cannot modify jumps.
17794         * cfgcleanup.c: Include target.h.
17795         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
17796
17797 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
17798
17799         * config/mips/mips.md (casesi_internal, casesi_internal_di):
17800         Protect jump delay slot instructions with .set noreorder and
17801         .set nomacro.
17802
17803 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
17804
17805         * config/mips/mips.md (casesi_internal_di): Calculate
17806         the index into the target offset table correctly.
17807
17808 2002-02-08  Richard Henderson  <rth@redhat.com>
17809
17810         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
17811         * final.c (output_addr_const): Accept and discard SUBREG.
17812         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
17813         mark them unknown instead.
17814         (simplify_subtraction): Handle RTX_UNKNOWN.
17815         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
17816
17817 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
17818
17819         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
17820
17821 2002-02-08  Richard Henderson  <rth@redhat.com>
17822
17823         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
17824
17825 2002-02-08  Andreas Jaeger  <aj@suse.de>
17826
17827         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
17828         * config/i386/t-linux64: New file.
17829
17830 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
17831
17832         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
17833         * c-parse.in (compstmt): Clear last_expr_type.
17834
17835 2002-02-07  Richard Henderson  <rth@redhat.com>
17836
17837         * loop.c (strength_reduce): Sink final_value when not
17838         eliminating a biv.
17839
17840 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
17841
17842         * config/sparc/freebsd.h: Fix mismatched spec {.
17843
17844 2002-02-07  Richard Henderson  <rth@redhat.com>
17845
17846         * cfgrtl.c: Include recog.h and insn-config.h.
17847         (keep_with_call_p): Fix general_operand invocation.
17848         * Makefile.in (cfgrtl.o): Update dependencies.
17849
17850 2002-02-07  Kazu Hirata  <kazu@hxi.com>
17851
17852         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
17853         comment.  Accept HImode only if TARGET_H8300.
17854
17855 2002-02-07  Eric Christopher  <echristo@redhat.com>
17856
17857         * config/mips/crtn.asm: Cleanup #ifdefs.
17858
17859 2002-02-07  Eric Christopher  <echristo@redhat.com>
17860
17861         * config/mips/crti.asm: Add changes for mips16. mips16 uses
17862         register 7 as RA instead of $31.
17863         * config/mips/crtn.asm: Ditto.
17864         * config/mips/mips.c (mips_move_2words): Add case for
17865         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
17866         (compute_frame_size): Fix typo.
17867         (save_restore_insns): Ditto.  Make documentation about using
17868         register $7 as return register more precise.
17869         (mips_expand_epilogue): Fix comment. Add code to work around not
17870         being able to add to the stack pointer directly.
17871         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
17872         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
17873         epilogue.
17874
17875 2002-02-07  Tom Rix  <trix@redhat.com>
17876
17877         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
17878         immediates in ldu and stdu DS opcode field.
17879         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
17880         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
17881         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
17882
17883 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
17884
17885         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
17886         offset for stack bias.
17887
17888 2002-02-07  H.J. Lu <hjl@gnu.org>
17889
17890         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
17891
17892 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
17893
17894         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
17895
17896 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
17897
17898         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
17899         * i386.c (x86_order_regs_for_local_alloc): New global function.
17900         * i386.h (REG_ALLOC_ORDER): CLeanup.
17901         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
17902
17903 2002-02-07  Richard Henderson  <rth@redhat.com>
17904
17905         PR optimization/2463
17906         * alias.c (find_base_value): Recall base values for fixed hard regs.
17907         * loop.c (loop_regs_update): Don't use single_set on non-insns.
17908
17909 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
17910
17911         * config/mips/mips.md (define_delay) [mips16]: Adjust required
17912         length.
17913
17914 2002-02-06  Richard Henderson  <rth@redhat.com>
17915
17916         PR c/5609
17917         * stmt.c (resolve_operand_name_1): Take more care with mixed
17918         named and unnamed operands.
17919
17920 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
17921             Jan Hubicka  <jh@suse.cz>
17922
17923         * loop.c (remove_constant_addition): Avoid clobbering a shared
17924         CONST expression.
17925
17926 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
17927
17928         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
17929         * config/s390/t-linux64: New file.
17930         * config/s390/libgcc-glibc.ver: New file.
17931
17932 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
17933
17934         * config/s390/linux64.h: Delete file.
17935         * config/s390/s390x.h: New file.
17936         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
17937         as target header file.
17938         * config/s390/linux.h (TARGET_VERSION): Define depending on
17939         DEFAULT_TARGET_64BIT.
17940         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
17941         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
17942         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
17943         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
17944         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
17945         (EXTRA_SPEC): New define.
17946         * config/s390/s390.h (TARGET_VERSION): Define depending on
17947         DEFAULT_TARGET_64BIT.
17948         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
17949
17950 2002-02-06  Jason Merrill  <jason@redhat.com>
17951
17952         * c-decl.c (finish_function): Warn about a non-void function with
17953         no return statement and no abnormal exit.
17954         (current_function_returns_abnormally): New variable.
17955         (start_function): Clear it.
17956         (struct c_language_function): Add returns_abnormally.
17957         (push_c_function_context): Save it.
17958         (pop_c_function_context): Restore it.
17959         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
17960         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
17961         an explicit return type.
17962         * c-tree.h: Declare current_function_returns_abnormally.
17963         (C_FUNCTION_IMPLICIT_INT): New macro.
17964         * c-typeck.c (build_function_call): Set it.
17965         (c_expand_return): Set current_function_returns_value even if the
17966         value is erroneous.
17967
17968 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
17969
17970         PR c/5420:
17971         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
17972         unsafe for reevaluation.
17973
17974 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
17975
17976         PR c/5482:
17977         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
17978         EXPR_STMT, but COMPOUND_STMT, recurse into it.
17979
17980 2002-02-06  Richard Henderson  <rth@redhat.com>
17981
17982         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
17983         be a general_operand.  Dest for function value must be a pseudo.
17984
17985 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
17986
17987         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
17988         as SYMBOL_REFs from the constant pool.
17989
17990 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
17991
17992         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
17993         passed by invisible reference.
17994
17995 2002-02-05  Richard Henderson  <rth@redhat.com>
17996
17997         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
17998
17999 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
18000
18001         Implement using "base addresses" in insn operands as default.
18002         * config/mmix/mmix.c (mmix_conditional_register_usage): if
18003         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
18004         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
18005         used to read the rtx value.
18006         (mmix_target_asm_function_epilogue): Fix spacing.
18007         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
18008         (mmix_legitimate_address): Ditto.
18009         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
18010         should be loaded with a GETA insn.  Don't allocate needless extra
18011         char for nul termination and fix misleading comment.
18012         (mmix_print_operand_address): Handle constants if
18013         TARGET_BASE_ADDRESSES.
18014         (mmix_output_register_setting): Use base addressing if
18015         TARGET_BASE_ADDRESSES and the number of insns is 3.
18016         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
18017         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
18018         to use R as constraint, add LDA to match s.
18019         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
18020         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
18021         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
18022         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
18023         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
18024         order with other fixed registers.
18025         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
18026         other parameter/call-clobbered registers.
18027         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
18028         -mbase-addresses, -mno-base-addresses.
18029         (MMIX Options): Ditto.
18030
18031 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18032
18033         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
18034
18035 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
18036
18037         * config/rs6000/altivec.h: Change elem to _S_elem.
18038
18039 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
18040
18041         * config/netbsd.h (WCHAR_TYPE): Define.
18042         (WCHAR_TYPE_SIZE): Ditto.
18043         (WINT_TYPE): Ditto.
18044         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
18045         (WCHAR_UNSIGNED): Ditto.
18046         (WCHAR_TYPE_SIZE): Ditto.
18047         (WINT_TYPE): Ditto.
18048         * config/arm/netbsd.h: Likewise.
18049         * config/i386/netbsd-elf.h: Likewise.
18050         * config/i386/netbsd.h: Likewise.
18051         * config/m68k/netbsd-elf.h: Likewise.
18052         * config/m68k/netbsd.h: Likewise.
18053         * config/ns32k/netbsd.h: Likewise.
18054         * config/sparc/netbsd.h: Likewise.
18055         * config/vax/netbsd.: Likewise.
18056
18057 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
18058
18059         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
18060         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
18061         (TARGET_INITIALIZER): this.
18062         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
18063         (BITFIELD_NBYTES_LIMITED): Markup fix.
18064         * tree.h (default_ms_bitfield_layout_p): Declare.
18065         (record_layout_info): Added prev_field.
18066         * tree.c (default_ms_bitfield_layout_p): New fn.
18067         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
18068         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
18069         * stor-layout.c: Include target.h.
18070         (start_record_layout): Initialize prev_field.
18071         (place_field): Handle MS bit-field layout, and disregard
18072         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
18073         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
18074         * Makefile.in (stor-layout.o): Adjust dependencies.
18075
18076 2002-02-05  Jason Merrill  <jason@redhat.com>
18077
18078         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
18079
18080 2002-02-05  Andreas Jaeger  <aj@suse.de>
18081
18082         * crtstuff.c: Fix comments.
18083
18084 2002-02-05  Richard Henderson  <rth@redhat.com>
18085
18086         PR fortran/3393
18087         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
18088         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
18089
18090         PR fortran/3392
18091         * config/mips/mips.c (function_arg): Handle TImode.
18092         (function_arg_advance): Likewise.
18093
18094 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
18095
18096         * config/rs6000/altivec.h (vec_step_help): Rename to
18097         __vec_step_help.
18098
18099 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
18100
18101         * config/rs6000/altivec.h: Fix typos.
18102
18103 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
18104
18105         * config/arm/netbsd.h: Correct a comment.
18106
18107 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
18108
18109         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
18110         building void typed builtins.
18111
18112         * config/rs6000/altivec.h (vec_ld*): Fix typos.
18113         (vec_step): Implement for C++.
18114
18115 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18116
18117         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
18118
18119 2002-02-04  Richard Henderson  <rth@redhat.com>
18120
18121         * combine.c (nonzero_bits): Re-introduce special case for
18122         sp/fp/ap wrt REGNO_POINTER_ALIGN.
18123
18124 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
18125
18126         * doc/extend.texi: Warn about unsupported usage of altivec
18127         builtins.
18128
18129         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
18130         (altivec_predicate_*): New.
18131
18132         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
18133         Add C++ version of vec_*() functions.
18134
18135         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
18136         (bdesc_2arg): Remove altivec predicates.
18137         (altivec_expand_builtin): Handle predicates.
18138         (altivec_init_builtins): Handle predicates.
18139         (altivec_expand_predicate_builtin): New.
18140
18141 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18142
18143         * pa.c (DO_FRAME_NOTES): Move forward.
18144         (store_reg): Revise handling of frame notes.
18145         (load_reg): Likewise.
18146         (set_reg_plus_d): Likewise.
18147         (hppa_expand_prologue): Likewise.
18148         (hppa_expand_epilogue): Likewise.
18149
18150 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18151
18152         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
18153
18154 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
18155
18156         PR c/4475, c++/3780:
18157         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
18158         * c-common.h (SWITCH_TYPE): Define.
18159         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
18160         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
18161         Rename spareness variable to sparseness.
18162         (expand_end_case_type): Renamed from expand_end_case, use orig_type
18163         if non-NULL instead of TREE_TYPE (orig_index).
18164         * tree.h (expand_end_case_type): Renamed from expand_end_case.
18165         (expand_end_case): Define using expand_end_case_type.
18166         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
18167         to expand_end_case_type.
18168         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
18169
18170 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18171
18172         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
18173         (BIGGEST_ALIGNMENT): Change to 128.
18174
18175 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18176
18177         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
18178
18179 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18180
18181         * pa.md (call_internal_reg_64bit): Remove unused variable.
18182
18183 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
18184
18185         * config/arm/arm.h (machine_function): Add uses_anonymous_args
18186         field.
18187         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
18188         * config/arm/arm.c (current_function_anonymous_args): Delete,
18189         replace uses with cfun->machine->uses_anonymous_args.
18190         (arm_reorg): Do not reset uses_anonymous_args.
18191
18192         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
18193         any geenral register.
18194
18195 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
18196
18197         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
18198         the entry block.
18199
18200 2002-02-04  Richard Henderson  <rth@redhat.com>
18201
18202         * combine.c (force_to_mode): Remove STACK_BIAS code.
18203         (nonzero_bits): Likewise.  Replace sp/fp special case with
18204         REGNO_POINTER_ALIGN.
18205
18206         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
18207         (HARD_FRAME_POINTER_REGNUM): New.
18208         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
18209         (FIXED_REGS, CALL_USED_REGS): Update.
18210         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
18211         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
18212         (HARD_REGNO_NREGS): Update for SFP.
18213         (STACK_POINTER_OFFSET): Include bias here ...
18214         (FIRST_PARM_OFFSET): ... not here.
18215         (STACK_BIAS): Remove.
18216         (INIT_EXPANDERS): New.
18217         (STARTING_FRAME_OFFSET): Do not include bias.
18218         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
18219         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
18220         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
18221         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
18222         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
18223         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
18224         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
18225         (MUST_SAVE_REGISTER): Likewise.
18226         (sparc_flat_function_prologue): Likewise.
18227         (sparc_flat_function_epilogue): Likewise.
18228         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
18229         (sparc_init_modes): SFP is GENERAL_REGS.
18230         (sparc_builtin_saveregs): SFP does not have bias applied.
18231
18232 2002-02-04  Richard Henderson  <rth@redhat.com>
18233
18234         * config/alpha/alpha.c (current_function_is_thunk): Don't check
18235         current_function_is_thunk.
18236         (alpha_sa_mask): Distinguish between current_function_is_thunk
18237         called from ASM_OUTPUT_MI_THUNK and not.
18238         (alpha_does_function_need_gp): Thunks always need gp.
18239         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
18240         (alpha_output_mi_thunk_osf): New.
18241         * config/alpha/alpha-protos.h: Update.
18242         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
18243
18244 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
18245
18246         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
18247         function types, not when they're taken away.
18248
18249 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
18250
18251         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
18252         CODE_LABEL and jump table when replacing a table jump with a
18253         simple jump.
18254
18255 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
18256
18257         * config/s390/s390-protos.h (legitimize_la_operand,
18258         s390_secondary_input_reload_class, s390_plus_operand,
18259         s390_expand_plus_operand): Add prototypes.
18260
18261         config/s390/s390.c (s390_secondary_input_reload_class,
18262         s390_plus_operand, s390_expand_plus_operand): New functions.
18263
18264         (struct s390_address): New member 'pointer'.
18265         (s390_decompose_address): Compute it.
18266         (legitimate_la_operand_p): Use it.
18267         (legitimize_la_operand): New function.
18268         (movti, movdi, movdf splitters): Call it.
18269
18270         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
18271         (PREDICATE_CODES): Add s390_plus_operand.
18272
18273         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
18274         (la_ccclobber): Allow GENERAL_REGS as output operand.
18275
18276         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
18277         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
18278         (*la_64, *la_31, reload_indi, reload_insi): ... these.
18279
18280 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
18281
18282         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
18283         register names for regular asm () construct.
18284
18285 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
18286
18287         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
18288         registers.
18289
18290 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
18291
18292         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
18293         pat for recog.
18294
18295 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
18296
18297         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
18298         constant pool to be identical by string address and index.
18299
18300 2002-02-04  Anthony Green  <green@redhat.com>
18301
18302         * output.h (SECTION_OVERRIDE): Define.
18303         * varasm.c (named_section): Obey SECTION_OVERRIDE.
18304
18305 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
18306
18307         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
18308         by existing arm*-*-netbsd* (a.out) target.
18309         (ns32k-*-netbsdelf*): Likewise.
18310         (sparc-*-netbsdelf*): Likewise.
18311         (vax-*-netbsdelf*): Likewise.
18312
18313 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
18314
18315         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
18316         headers and libobjc headers.
18317
18318 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
18319
18320         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
18321         (_mingw.h): Remove duplicate include.
18322
18323 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
18324
18325         * config.gcc: Set cpu_type to m68k for 68010, as well.
18326         (m68010-*-netbsdelf*): New...
18327         (m68k*-*-netbsdelf*): ...targets.
18328         * config/m68k/netbsd-elf.h: New file.
18329
18330 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18331
18332         * config/h8300/h8300.c (hand_list): Move inside function_arg.
18333
18334 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18335
18336         * config/h8300/h8300.c (h8_push_ops): Move inside
18337         h8300_init_once.
18338         (h8_pop_ops): Likewise.
18339         (h8_move_ops): Likewise.
18340
18341 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18342
18343         * config/h8300/h8300.c (os_task): Make it static.
18344         (monitor): Likewise.
18345         (pragma_saveall): Likewise.
18346
18347 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
18348
18349         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
18350         constant is a valid sign-extension for Pmode.
18351
18352 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18353
18354         * config/h8300/h8300.c: Fix formatting.
18355
18356 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18357
18358         * config/h8300/h8300.md: Fix formatting.
18359
18360 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18361
18362         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
18363         predicates of operands[1].  Split the patterns for each
18364         processor variant.
18365
18366 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18367
18368         * config/h8300/h8300.md (xor patterns): Tighten the predicates
18369         of operands[1] to register_operand.
18370
18371 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
18372
18373         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
18374         * cpphash.c (_cpp_init_hashtable): Similarly.
18375         * cppinit.c (cpp_create_reader): Default the signed_char flag.
18376         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
18377         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
18378         (cpp_handle_option): Handle the new options.
18379         * cpplex.c (cpp_interpret_charconst): Use new flag.
18380         * cpplib.h (struct cpp_options): New member signed_char.
18381         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
18382         (cpp_options): Handle -fsigned-char and -funsigned-char.
18383         (static_specs): Remove signed_char_spec.
18384         (do_spec1): Don't handle %c.
18385         * system.h: Poison SIGNED_CHAR_SPEC.
18386         * tradcif.y (yylex): Use flag_signed_char.
18387         * tradcpp.h (flag_signed_char): New.
18388         * tradcpp.c (flag_signed_char): New.
18389         (main): Handle new command-line options.
18390         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
18391 config:
18392         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
18393         * avr/avr.h: Remove old comments.
18394         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
18395         (CC1_SPEC): Pass -fsigned-char if -mic*.
18396         (SIGNED_CHAR_SPEC): Remove.
18397 doc:
18398         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
18399
18400 2002-02-01  Eric Christopher  <echristo@redhat.com>
18401
18402         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
18403         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
18404         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
18405         (ASM_OUTPUT_REG_POP): Ditto.
18406
18407 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
18408
18409         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
18410         patch.
18411
18412 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
18413
18414         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
18415
18416 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
18417
18418         PR c/5304:
18419         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
18420         unconditionally.
18421
18422 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
18423
18424         * cfganal.c: Include tm_p.h.
18425         (keep_with_call_p): Fix the test that determines if a register holds
18426         the return value of a call.
18427
18428 2002-02-01  DJ Delorie  <dj@redhat.com>
18429
18430         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
18431         we are given conflicting registers, switch to the other one we
18432         had allocated for us.
18433         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
18434         as TImode so we know when the "other" register is available.
18435
18436 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
18437
18438         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
18439         sparc/sparc_bi.h.
18440
18441 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
18442
18443         * cfganal.c (keep_with_call_p): New function.
18444         (flow_call_edges_add): Prevent splitting a block between a call and
18445         a single-set instruction that should be kept in the same block.
18446
18447 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18448
18449         * doc/install.texi (avr): Update outdated URL.
18450
18451 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
18452
18453         * config/stormy16/stormy16.md (pushqi): New.
18454         (popqi): New.
18455         (pushhi): New.
18456         (pophi): New.
18457         (movhi): Remove stack operands.
18458         (movqi): Likewise.
18459         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
18460         nonimmediate_nonstack_operand.
18461         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
18462         New.
18463         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
18464         New.
18465
18466 2002-01-31  Jason Merrill  <jason@redhat.com>
18467
18468         * Makefile.in (c-parse.c): Handle .output file.
18469         * objc/Make-lang.in (objc-parse.c): Likewise.
18470
18471 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
18472
18473         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
18474         the -me[lb] option is given.  Don't output the default flag
18475         twice.
18476
18477 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
18478
18479         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
18480         the primary source file; this has not been done yet.
18481         * c-decl.c (c_expand_body): Reset input_filename from
18482         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
18483
18484 2002-01-31  Kazu Hirata  <kazu@hxi.com>
18485
18486         * rtlanal.c (subreg_regno_offset): Do not use
18487         SUBREG_REGNO_OFFSET.
18488         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
18489         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
18490
18491 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
18492
18493         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
18494         version rather than GNATS version in --version output.
18495
18496 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
18497
18498         * ifcvt.c (noce_process_if_block): Make a copy of the destination
18499         when copying back from a temporary.
18500
18501 2002-01-30  Richard Henderson  <rth@redhat.com>
18502
18503         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
18504         and new_dest are the same.
18505
18506 2002-01-30  Richard Henderson  <rth@redhat.com>
18507
18508         PR opt/5076
18509         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
18510         * rtl.c (note_insn_name): Update.
18511         * emit-rtl.c (remove_unnecessary_notes): Kill it.
18512         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
18513         to perform loop rotation.
18514         (expand_exit_loop_top_cond): New.
18515         * tree.h (expand_exit_loop_top_cond): Declare it.
18516         * c-semantics.c (genrtl_while_stmt): Use it.
18517         (genrtl_for_stmt): Likewise.
18518
18519 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
18520
18521         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
18522         arguments to 64-bit boundaries on 64-bit ABIs.
18523
18524 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
18525
18526         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
18527
18528 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
18529
18530         * c-decl.c (grokdeclarator): Handle type being a typedef for an
18531         invalid type.
18532
18533 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
18534
18535         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
18536         * config/sparc/sparc_bi.h: Remove file.
18537         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
18538
18539 2002-01-30  Richard Henderson  <rth@redhat.com>
18540
18541         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
18542
18543 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
18544
18545         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
18546
18547 2002-01-30  Jason Merrill  <jason@redhat.com>
18548
18549         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
18550         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
18551         (reg_save): Use DW_CFA_offset_extended_sf instead.
18552
18553         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
18554
18555 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18556
18557         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
18558         in cselib_lookup.
18559
18560 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
18561
18562         * rs6000.md ("*call_value_local32"): Remove constraints.
18563         ("*call_value_local64"): Same.
18564         ("*call_value_indirect_nonlocal_aix32"): Same.
18565         ("*call_value_nonlocal_aix32"): Same.
18566         ("*call_value_indirect_nonlocal_aix64"): Same.
18567         ("*call_value_nonlocal_aix64"): Same.
18568         ("*call_value_nonlocal_sysv"): Same.
18569
18570 2002-01-29  Richard Henderson  <rth@redhat.com>
18571
18572         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
18573
18574 2002-01-29  Richard Henderson  <rth@redhat.com>
18575
18576         * expr.c (force_operand): Ignore flag_pic for detecting pic
18577         address loads.
18578         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
18579         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
18580         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
18581         instead of open-coded loop.
18582         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
18583         be fixed when in use.
18584
18585 2002-01-29  Richard Henderson  <rth@redhat.com>
18586
18587         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
18588         * sched-rgn.c (propagate_deps): Update them.
18589         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
18590         clobbers list when either gets too long.
18591
18592 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18593
18594         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
18595         and INDEX_REGS the same as GENERAL_REGS.
18596         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
18597
18598 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
18599
18600         * tree.c (build_nonstandard_integer_type): Correct prototype.
18601
18602 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
18603
18604         * config/s390/s390.md (movstrsico, movstrdix_64,
18605         movstrsix_31): Remove, replace by ...
18606         (movstrdi_short, movstrsi_short, movstrdi_long,
18607         movstrsi_long): ... these.  New.
18608         (movstrdi, movstrsi): Adapt.
18609
18610         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
18611         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
18612         Remove unnecessary CC clobber.
18613         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
18614         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
18615
18616         (divmoddi4): Don't partially initialize TImode register.
18617
18618 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
18619
18620         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
18621
18622 2002-01-29  Richard Henderson  <rth@redhat.com>
18623
18624         * flow.c (print_rtl_and_abort): Remove.
18625         (print_rtl_and_abort_fcn): Remove.
18626         (verify_local_live_at_start): Use dump_bb instead.
18627         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
18628         (verify_wide_reg_1): Return 2 on mode test failure.
18629
18630 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
18631
18632         PR c/3325, c/3326, c/2511, c/3347
18633         * c-decl.c (enum_decl_context): Remove BITFIELD.
18634         (grokdeclarator): Take bitfield width as an input.
18635         Ensure bitfields are given the correct type.  Perform
18636         bitfield width validation with build_bitfield_integer_type
18637         rather than waiting for finish_struct.
18638         (grok_typename, grok_typename_in_parm_context, start_decl,
18639         push_parmdecl, grokfield, start_function): Update calls to
18640         grokdeclarator.
18641         (build_bitfield_integer_type): New function.
18642         (finish_struct): Move bitfield validation to grokdeclarator
18643         and build_bitfield_integer_type.
18644         * tree.c (build_nonstandard_integer_type): New function.
18645         * tree.h (build_nonstandard_integer_type): New prototype.
18646 objc:
18647         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
18648
18649 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18650
18651         PR other/1502:
18652         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
18653         don't ignore unrecognized -W* options.
18654         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
18655         * cpplib.h (cpp_handle_option): Adjust prototype.
18656         * c-decl.c (c_decode_options): Pass 0 as last argument to
18657         cpp_handle_option.
18658
18659         PR c/2896:
18660         * gcc.c (cpp_unique_options): Split from cpp_options.
18661         (cpp_options): Source cpp_unique_options.
18662         (default_compilers): Use cpp_unique_options instead of cpp_options
18663         when used together with cc1_options.
18664         (static_specs): Add cpp_unique_options.
18665         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
18666         when used together with cc1_options.
18667
18668 2002-01-29  Kazu Hirata  <kazu@hxi.com>
18669
18670         * config/h8300/h8300-protos.h: Update the prototype of
18671         output_a_shift.
18672         * config/h8300/h8300.c (output_a_shift): Remove an unused
18673         argument 'insn'.  Remove redundant code.
18674         * config/h8300/h8300.md: Adust to the new prototype of
18675         output_a_shift.
18676
18677 2002-01-29  Kazu Hirata  <kazu@hxi.com>
18678
18679         * config/h8300/h8300-protos.h: Update the prototypes of
18680         emit_a_rotate and expand_a_rotate.
18681         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
18682         first argument to 'enum rtx_code'.
18683         (expand_a_rotate): Likewise.
18684
18685 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18686
18687         * config/h8300/h8300-protos.h: Update the prototype of
18688         output_simode_bld.
18689         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
18690         'log2'.
18691         * config/h8300/h8300.md: Adjust to the new prototype.
18692
18693 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18694
18695         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
18696         redundant code.
18697
18698 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18699
18700         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
18701         is a fixed register before returning pic_offset_table_rtx.
18702         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
18703         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
18704
18705 2002-01-28  Jason Merrill  <jason@redhat.com>
18706
18707         * dwarf2.h: Sync with src version.
18708
18709 2002-01-28  Paul Koning  <pkoning@equallogic.com>
18710
18711         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
18712         BT_FN_VOID_PTR_VAR.
18713         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
18714         * doc/extend.texi (__builtin_prefetch): Update documentation:
18715         first argument is now const void ptr.
18716
18717 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18718
18719         * config/h8300/h8300-protos.h: Remove an unused prototype.
18720
18721 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
18722
18723         * toplev.c (lang_independent_init): Round up identifier size.
18724
18725 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
18726
18727         * config.gcc: Revert previous change.
18728
18729 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
18730
18731         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
18732
18733 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
18734
18735         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
18736         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
18737         other non-elf netbsd config frags.
18738         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
18739         collect2 will does that.
18740         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
18741         shared-lib frobbing will work.
18742
18743 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18744
18745         * config/h8300/h8300.h: Fix formatting.
18746         * config/h8300/h8300.md: Likewise.
18747
18748 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
18749
18750         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
18751         the old, removed AAA_standards fix.
18752         * fixinc/fixincl.x: Rebuilt.
18753
18754 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
18755
18756         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
18757         atexit call in crtbegin, hooked in after call to frame_dummy;
18758         register EH before registering __fini__start.
18759
18760 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
18761
18762         * config/rs6000/altivec.h: Remove spurious semicolons.
18763
18764 2002-01-27  Kazu Hirata  <kazu@hxi.com>
18765
18766         * config/h8300/h8300.md: Replace dead bit extraction patterns
18767         with ones that work.
18768
18769 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18770
18771         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
18772         if not STRICT_ALIGNMENT.
18773         * rtl.h (MEM_ALIGN): Likewise.
18774
18775 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18776
18777         * doc/invoke.texi (-fdump-translation-unit): Revert this
18778         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18779
18780 2002-01-27  Kazu Hirata  <kazu@hxi.com>
18781
18782         * config/h8300/h8300.md (define_constants): New.
18783         (anonymous patterns) Use defined constants appropriately.
18784
18785 2002-01-27  Kazu Hirata  <kazu@hxi.com>
18786
18787         * config/h8300/h8300.c (function_arg): Remove redundant code.
18788
18789 2002-01-26  Richard Henderson  <rth@redhat.com>
18790
18791         * sched-deps.c (reg_pending_uses_head): New.
18792         (reg_pending_barrier): Rename from reg_pending_sets_all.
18793         (find_insn_list): Don't mark inline.
18794         (find_insn_mem_list): Remove.
18795         (add_dependence_list, add_dependence_list_and_free): New.
18796         (flush_pending_lists): Replace only_write param with separate
18797         for_read and for_write parameters.  Update all callers.  Use
18798         add_dependence_list_and_free.
18799         (sched_analyze_1): Do not add reg dependencies here; just set
18800         the pending bits.  Use add_dependence_list.
18801         (sched_analyze_2): Likewise.
18802         (sched_analyze_insn): Replace schedule_barrier_found with
18803         reg_pending_barrier.  Add all dependencies for pending reg
18804         uses, sets, and clobbers.
18805         (sched_analyze): Don't add reg dependencies for calls, just
18806         set pending bits.  Use regs_invalidated_by_call.  Treat
18807         sched_before_next_call as a normal list, not a fake insn.
18808         (init_deps): No funny init for sched_before_next_call.
18809         (free_deps): Free pending mems lists.  Don't zero reg_last.
18810         (init_deps_global): Init reg_pending_uses.
18811         (finish_deps_global): Free it.
18812         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
18813         (find_insn_mem_list): Remove.
18814         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
18815         (propagate_deps): Use them.  Zero temp mem lists.
18816
18817 2002-01-26  Richard Henderson  <rth@redhat.com>
18818
18819         * Makefile.in (CRTSTUFF_CFLAGS): New.
18820         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
18821         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
18822         crtstuff.c instead of alpha assembly version.
18823         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
18824         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
18825         not FORCE_{INIT,FINI}_SECTION_ALIGN.
18826         (__do_global_dtors_aux): Mark used.
18827         (frame_dummy, __do_global_ctors_aux): Mark used.
18828         (fini_dummy, init_dummy): Remove.
18829
18830         * config/alpha/crtbegin.asm: Remove file.
18831         * config/alpha/crtend.asm: Remove file.
18832         * config/alpha/t-crtbe: Remove file.
18833         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
18834         (LINK_EH_SPEC): New.
18835
18836         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
18837         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
18838         calling constructors.
18839         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
18840
18841         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
18842         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
18843         CRT_END_INIT_DUMMY hack.
18844         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
18845         FORCE_{INIT,FINI}_SECTION_ALIGN.
18846
18847         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
18848         FORCE_{INIT,FINI}_SECTION_ALIGN.
18849
18850         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
18851         invocation sequence.
18852         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
18853
18854         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
18855         (FORCE_CODE_SECTION_ALIGN): New.
18856
18857 2002-01-26  Richard Henderson  <rth@redhat.com>
18858
18859         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
18860
18861 2002-01-26  Richard Henderson  <rth@redhat.com>
18862
18863         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
18864         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
18865
18866 2002-01-26  Kazu Hirata  <kazu@hxi.com>
18867
18868         * config/h8300/h8300.md: Remove bit extraction patterns that
18869         cannot be triggered.
18870         Restrict each bit extraction pattern to a variant on which the
18871         pattern is tested.
18872
18873 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
18874
18875         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
18876
18877 2002-01-26  Kazu Hirata  <kazu@hxi.com>
18878
18879         * config/h8300/h8300.md: Remove bit test patterns that cannot
18880         be triggered.
18881         Restrict each bit test pattern to a variant on which the
18882         pattern is tested.
18883
18884 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18885
18886         * builtins.c (expand_builtin_strncat): Remove redundant check for
18887         INTEGER_CST.
18888
18889 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
18890
18891         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
18892         default setting.
18893         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
18894         existing setting.
18895
18896 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
18897
18898         * dbxout.c (dbxout_init): Use assemble_name rather than just
18899         stripping off the first character.
18900         (dbxout_source_file): Likewise.
18901
18902 2002-01-25  DJ Delorie  <dj@redhat.com>
18903
18904         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
18905         using rtx_equal_p, not by comparing pointers.
18906
18907 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
18908
18909         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
18910         for PIC_OFFSET_TABLE_REGNUM.
18911         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
18912
18913 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
18914
18915         * config.gcc (x86_64-*-freebsd*): New target.
18916         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
18917         value.
18918         (i[34567]86-*-freebsd*): Don't include svr4.h.
18919         * config/i386/freebsd64.h: New file.
18920
18921 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
18922
18923         * config/alpha/x-vms (version): Make static.
18924
18925         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
18926         in previous checkin.
18927
18928         * Makefile.in (install-headers-cp): New target.
18929         * config.gcc (alpha-dec-*vms*): Install headers with
18930         install-headers-cp
18931
18932 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
18933
18934         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
18935         avoid it's copies.
18936
18937 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18938
18939         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
18940         of compare_tree_int.
18941         (expand_builtin_strncat): Likewise.
18942         * c-decl.c (finish_struct): Use tree_low_cst.
18943         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
18944         * tree.c (compare_tree_int): Likewise.
18945
18946 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
18947
18948         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
18949         adjustments even if they are implemented by more than two insns.
18950
18951 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
18952
18953         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
18954         * df.h (struct ref): Kill B.
18955         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
18956
18957         * basic-block.h (PROP_EQUAL_NOTES): New flag.
18958         * flow.c (propagate_one_insn): Use it.
18959         (mark_used_regs): Handle NIL.
18960
18961 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
18962
18963         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
18964         to help folding.
18965
18966 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
18967
18968         * rs6000.md (prefetch): Make address V4SI mode so that the address
18969         is restricted to legitimate form for instruction.
18970
18971 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
18972
18973         * doc/install.texi (xtensa-*-elf): New target.
18974         (xtensa-*-linux*): New target.
18975         * doc/contrib.texi: Add myself.
18976
18977 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
18978
18979         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
18980         purpose register to hold an SImode (or smaller) value.
18981
18982 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
18983
18984         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
18985         registry only.
18986         * crtstuff.c: Likewise.
18987
18988 2002-01-25  Kazu Hirata  <kazu@hxi.com>
18989
18990         * config/h8300/h8300.md (negation patterns): Tighten
18991         predicates to register_operand.
18992
18993 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
18994
18995         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
18996         mode, not Pmode.
18997
18998         * builtins.c (expand_builtin_prefetch): Same.
18999
19000 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
19001
19002         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
19003         modes.
19004
19005 2002-01-24  Kazu Hirata  <kazu@hxi.com>
19006
19007         * config/h8300/h8300.c (print_operand): Remove support for
19008         operand character 'A'.
19009         * config/h8300/h8300.md (three anonymous patterns): Replace
19010         operand character 'A' with either 'T' or 'S'.
19011
19012 2002-01-24  Kazu Hirata  <kazu@hxi.com>
19013
19014         * config/h8300/h8300.c (print_operand): Remove support for
19015         operand character 'U'.
19016
19017 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
19018
19019         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
19020
19021 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
19022
19023         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
19024         values to be assigned to the stack pointer.
19025
19026 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
19027
19028         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
19029         to const_double needs to be done right for big-endian systems.
19030
19031 2002-01-24  Jason Merrill  <jason@redhat.com>
19032
19033         PR c++/2432
19034         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
19035         to can_throw_internal.
19036
19037 2002-01-23  Richard Henderson  <rth@redhat.com>
19038
19039         * fold-const.c (fold): Change UINT_MAX test to check vs precision
19040         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
19041
19042 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
19043
19044         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
19045         (symGOT2reg): Use them, then set as GOT value as unchanging.
19046         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
19047         as a temporary, if possible.
19048         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
19049         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
19050
19051 2002-01-23  Kazu Hirata  <kazu@hxi.com>
19052
19053         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
19054         accept to accept 0x80 as operands[2].
19055
19056 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
19057
19058         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
19059
19060 2002-01-23  Richard Henderson  <rth@redhat.com>
19061
19062         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
19063
19064 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
19065
19066         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
19067         (parmlist_or_identifiers_1): Verify that only a parmlist follows
19068         an attribute.
19069
19070 2002-01-23  Richard Henderson  <rth@redhat.com>
19071
19072         * expr.c (move_by_pieces_1): Extend size before negation.
19073
19074         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
19075         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
19076         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
19077         * config/m68k/t-m68kelf: Likewise.
19078
19079 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
19080
19081         * config/xtensa/elf.h: New file.
19082         * config/xtensa/lib1funcs.asm: New file.
19083         * config/xtensa/lib2funcs.S: New file.
19084         * config/xtensa/linux.h: New file.
19085         * config/xtensa/t-xtensa: New file.
19086         * config/xtensa/xtensa-config.h: New file.
19087         * config/xtensa/xtensa-protos.h: New file.
19088         * config/xtensa/xtensa.c: New file.
19089         * config/xtensa/xtensa.h: New file.
19090         * config/xtensa/xtensa.md: New file.
19091         * config.gcc (xtensa-*-elf*): New target.
19092         (xtensa-*-linux*): New target.
19093         * cse.c (canon_hash): Compare rtx pointers instead of register
19094         numbers.  This is required for the Xtensa port.
19095         * integrate.c (copy_insn_list): Handle case where the static
19096         chain is in memory and the memory address has to be copied to
19097         a register.
19098         * doc/invoke.texi (Option Summary): Add Xtensa options.
19099         (Xtensa Options): New node.
19100         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
19101
19102 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
19103
19104         * diagnostic.c (internal_error): Do ICE suppression only
19105         when ENABLE_CHECKING is not defined.
19106
19107         * c-typeck.c (require_complete_type): Return error_mark_node
19108         if type is error_mark_node.
19109
19110 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
19111
19112         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
19113         -Os and issue a warning.
19114
19115 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
19116
19117         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
19118         current (lack of) need for host configuration by hand.
19119
19120         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
19121         references.  Documentation of some target macros moved from
19122         hostconfig.texi to tm.texi.
19123
19124 2002-01-23  Will Cohen  <wcohen@redhat.com>
19125
19126         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
19127         defined.
19128
19129 2002-01-23  Kazu Hirata  <kazu@hxi.com>
19130
19131         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
19132         operand[3].
19133
19134 2002-01-23  Jason Merrill  <jason@redhat.com>
19135
19136         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
19137
19138         * function.c (assign_parms): Don't put args of inline functions
19139         into registers when not optimizing.
19140
19141 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
19142
19143         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
19144         (prologue_use): New pattern.
19145         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
19146         preference to gen_rtx_USE.
19147         (thumb_expand_prologue): Use gen_prologue_use in preference to
19148         gen_rtx_USE.
19149         (thumb_expand_epilogue): Use gen_prologue_use in preference to
19150         gen_rtx_USE.
19151
19152 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
19153
19154         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
19155
19156 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
19157
19158         PR c/3504
19159         * doc/extend.texi: Correct documentation of __alignof__.
19160
19161 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
19162
19163         * params.h: Rename arguments of DEFPARAM so that it will be
19164         recognized as a translation keyword.
19165
19166 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
19167
19168         * extend.texi: Document altivec functions.
19169         Fix N-bit adjectives in X86 builtin documentation.
19170
19171 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
19172
19173         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
19174         auto_inc_dec values.
19175
19176 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
19177
19178         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
19179         after backslash.
19180         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
19181
19182 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
19183
19184         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
19185
19186 2002-01-22  Richard Henderson  <rth@redhat.com>
19187
19188         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
19189         copy_insn not copy_rtx.
19190
19191 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
19192
19193         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
19194         "nonzero" as that might add "1" bits.  Ensure "constop" is
19195         properly sign extened.
19196         (force_to_mode): Tweak for sign extended constop.
19197
19198 2002-01-22  Richard Henderson  <rth@redhat.com>
19199
19200         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
19201         for_each_rtx instead of assuming we're already looking at the MEM.
19202         (split_small_symbolic_mem_operand): Likewise.
19203         * config/alpha/alpha.h (PREDICATE_CODES): Update.
19204         * config/alpha/alpha.md (small symbolic memory splitters): Update.
19205
19206 2002-01-22  Richard Henderson  <rth@redhat.com>
19207
19208         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
19209         sequence number for the literal.
19210         (divmoddi_internal_er): Likewise.
19211
19212 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19213
19214         PR java/4972
19215         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
19216         in LIBICONV variable.
19217         * configure: Regenerated.
19218
19219 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
19220
19221         * dependence.c (build_def_use): Remove array_idx.
19222
19223         * dwarfout.c (last_filename): Remove.
19224         (output_compile_unit_die): Remove last_filename.
19225
19226 2002-01-22  Roger Sayle  <roger@eyesopen.com>
19227             Richard Henderson  <rth@redhat.com>
19228
19229         PR opt/3640
19230         * fold-const.c (fold): Optimize unsigned comparisons against
19231         UINT_MAX (and similar unsigned constants).
19232
19233 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
19234
19235         * Makefile.in (loop.o): Depend on OPTABS_H.
19236         * loop.c (emit_prefetch_instructions): Check the prefetch operand
19237         against the predicate.
19238
19239         PR target/5379
19240         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
19241         for the address operand.
19242
19243 2002-01-22  Richard Henderson  <rth@redhat.com>
19244
19245         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
19246
19247 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19248
19249         PR other/5450
19250         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
19251         preprocessor flags.
19252
19253 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
19254
19255         * config.gcc (x86_64-*-netbsd*): New target.
19256         * config/i386/netbsd64.h: New file.
19257
19258 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
19259
19260         * regrename.c (kill_value): Fix typo.
19261
19262 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
19263
19264         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
19265
19266         * config/rs6000/rs6000.h: Same.
19267
19268         * function.c (instantiate_virtual_regs): Remove
19269         STARTING_FRAME_PHASE.
19270         (assign_stack_local_1): Same.
19271         Calculate frame phase.
19272
19273 2002-01-22  Nick Clifton  <nickc@redhat.com>
19274
19275         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
19276         variable declaration to outer scope in order to simplify
19277         future extensions.
19278         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
19279         arm_hard_regno_mode_ok.
19280         * config/arm/arm-protos.h: Add a prototype for
19281         arm_hard_regno_mode_ok.
19282         * config/arm/arm.c (soft_df_operand): Remove now redundant
19283         check for DImode values using IP_REGNUM.
19284         (nonimmediate_soft_df_operand): Remove now redundant check for
19285         DImode values using IP_REGNUM.
19286         (arm_hard_regno_mode_ok): New function. New check: make sure
19287         that DImode values are not stored in IP_REGNUM.
19288
19289         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
19290         note with a USE.
19291         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
19292
19293 2002-01-22  Jason Merrill  <jason@redhat.com>
19294
19295         * c-semantics.c (genrtl_compound_stmt): Only check nesting
19296         consistency if this COMPOUND_STMT is scoped.
19297
19298 2002-01-22  Kazu Hirata  <kazu@hxi.com>
19299
19300         * predict.c: Fix formatting.
19301         * print-tree.c: Likewise.
19302         * protoize.c: Likewise.
19303         * real.h: Likewise.
19304         * rtl.h: Likewise.
19305         * sbitmap.h: Likewise.
19306         * scan.c: Likewise.
19307         * sched-deps.c: Likewise.
19308         * sched-vis.c: Likewise.
19309         * sdbout.c: Likewise.
19310         * sibcall.c: Likewise.
19311         * ssa.c: Likewise.
19312         * ssa-ccp.c: Likewise.
19313         * ssa-dce.c: Likewise.
19314         * stmt.c: Likewise.
19315         * stor-layout.c: Likewise.
19316         * system.h: Likewise.
19317
19318 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19319
19320         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
19321         if fits in bounds of base type.
19322
19323         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
19324         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
19325         (add_bound_info, default): If can't find a context, make a
19326         SAVE_EXPR.
19327         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
19328
19329 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
19330
19331         * c-typeck.c (parser_build_binary_op): If result from
19332         build_binary_op is ERROR_MARK just return error_mark_node without
19333         further processing.
19334
19335 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
19336
19337         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
19338         Split a.out-specific bits into...
19339         * config/netbsd-aout.h: ...this.
19340         * config/netbsd-elf.h: New file.
19341         * config/alpha/netbsd-elf.h: Remove.
19342         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
19343         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
19344         (STARTFILE_SPEC): Remove redundant definition.
19345         (ENDFILE_SPEC): Likewise.
19346         (LINK_SPEC): Likewise.
19347         (CPP_SPEC): Likewise.
19348         (ASM_SPEC): Likewise.
19349         (LIB_SPEC): Likewise.
19350         (SWITCH_TAKES_ARG): Likewise.
19351         (TARGET_MEM_FUNCTIONS): Likewise.
19352         (CPP_PREDEFINES): Redefine.
19353         (ASM_FINAL_SPEC): Remove redefinition.
19354         (ASM_COMMENT_START): Redefine.
19355         (FUNCTION_PROFILER): Define.
19356         (TARGET_VERSION): Redefine.
19357         Comment and formatting cleanup.
19358         * config/i386/netbsd.h: Include <netbsd-aout.h>.
19359         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
19360         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
19361         big- or little-endian.
19362         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
19363         * config.gcc (*-*-netbsd*): Add definitions common to all
19364         NetBSD configs.
19365         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
19366         gnu_ld definitions.  Add netbsd-elf.h to and remove
19367         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
19368         tmake_file, and don't lose previous tmake_file contents.
19369         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
19370         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
19371         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
19372         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
19373         (mipsel-*-netbsd*): Rename this to...
19374         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
19375         mips/little.h to tm_file for mips*el-*.
19376         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
19377         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
19378         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
19379
19380 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19381
19382         * pa-protos.h (reg_before_reload_operand): New function prototype.
19383         * pa.c (reg_before_reload_operand): New function implementation.
19384         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
19385         contraints to "*m".
19386
19387 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19388
19389         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
19390
19391 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19392
19393         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
19394         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
19395         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
19396         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
19397         (ENDFILE_SPEC): Undefine.
19398         (STARTFILE_SPEC): Redefine for PA.
19399
19400 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19401
19402         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
19403
19404 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
19405
19406         * config.gcc: Add entries to supported PowerPC --with-cpu
19407         types.
19408
19409 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
19410
19411         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
19412         true for 64-bit mode only SSE registers in 32-bit mode.
19413
19414 2002-01-21  Kazu Hirata  <kazu@hxi.com>
19415
19416         * unwind-dw2.c: Fix formatting.
19417         * unwind-dw2-fde.c: Likewise.
19418         * unwind-dw2-fde.h: Likewise.
19419         * unwind-pe.h: Likewise.
19420         * varasm.c: Likewise.
19421         * varray.h: Likewise.
19422
19423 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
19424
19425         Remove workaround for register stack overwrite bug in mmix.
19426         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
19427         support for TARGET_REG_STACK_FILL_BUG.
19428         * config/mmix/mmix.h: Remove member has_call_without_parameters.
19429         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
19430         Delete.
19431         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
19432         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
19433         -mno-reg-stack-fill-bug-workaround.
19434         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
19435         machine member has_call_without_parameters.
19436         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
19437         -mreg-stack-fill-bug-workaround and
19438         -mno-reg-stack-fill-bug-workaround.
19439         (MMIX Options): Ditto.
19440
19441 2002-01-21  Kazu Hirata  <kazu@hxi.com>
19442
19443         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
19444         as appropriate.
19445         Remove redundant code.
19446
19447 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
19448
19449         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
19450         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
19451         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
19452         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
19453         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
19454         out target macro definitions and non-target-specific comments
19455         mostly taken from old versions of the manual.
19456
19457 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19458
19459         * config/h8300/h8300.h: Fix comment formatting.
19460         * config/ia64/aix.h: Likewise.
19461         * config/ia64/ia64-protos.h: Likewise.
19462         * config/ia64/ia64.c: Likewise.
19463         * config/ia64/ia64.h: Likewise.
19464         * config/ia64/ia64intrin.h: Likewise.
19465         * config/ia64/linux.h: Likewise.
19466         * config/ia64/unwind-aix.c: Likewise.
19467         * config/ia64/unwind-ia64.c: Likewise.
19468
19469 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19470
19471         * config/h8300/h8300.c: Revise comments about shift code.
19472
19473 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19474
19475         * config/h8300/h8300.c (function_arg): Update a comment.
19476
19477 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19478
19479         * config/h8300/h8300.md: Update the comments at the beginning
19480         of the file.
19481
19482 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19483
19484         * config/i370/i370.c: Fix comment formatting.
19485         * config/i370/i370.h: Likewise.
19486         * config/i370/i370.md: Likewise.
19487         * config/i370/linux.h: Likewise.
19488
19489 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19490
19491         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
19492
19493         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
19494         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
19495         in incomplete case.
19496
19497 2002-01-20  Graham Stott  <grahams@redhat.com>
19498
19499         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
19500
19501 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19502
19503         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
19504
19505 2002-01-19  Tom Rix  <trix@redhat.com>
19506
19507         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
19508
19509 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
19510
19511         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
19512
19513         * function.c (assign_stack_local_1): Adjust x_frame_offset with
19514         STARTING_FRAME_PHASE.
19515         (STARTING_FRAME_PHASE): New.
19516         (instantiate_virtual_regs): Check saneness of
19517         STARTING_FRAME_PHASE.
19518
19519         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
19520
19521 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
19522
19523         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
19524
19525 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19526
19527         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
19528         be used for bootstrapping GCC 3.0.
19529
19530 2002-01-18  Kazu Hirata  <kazu@hxi.com>
19531
19532         * config/h8300/h8300.md: Fix an insn length.
19533
19534 2002-01-18  Kazu Hirata  <kazu@hxi.com>
19535
19536         * bitmap.h: Fix comment formatting.
19537         * combine.c: Likewise.
19538         * cppfiles.c: Likewise.
19539         * c-pragma.h: Likewise.
19540         * c-typeck.c: Likewise.
19541         * df.c: Likewise.
19542         * dwarf2out.c: Likewise.
19543         * function.c: Likewise.
19544         * gcc.c: Likewise.
19545         * genattrtab.c: Likewise.
19546         * gthr-win32.h: Likewise.
19547         * haifa-sched.c: Likewise.
19548         * predict.c: Likewise.
19549         * rtlanal.c: Likewise.
19550         * rtl.h: Likewise.
19551         * unwind-dw2-fde.h: Likewise.
19552         * unwind-pe.h: Likewise.
19553         * vmsdbgout.c: Likewise.
19554
19555 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19556
19557         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
19558         if type_required and passed decl.
19559
19560 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
19561
19562         * config.gcc (cpu_type): Include altivec.h in powerpc
19563         extra_headers.
19564         Same for darwin.
19565
19566         * config/rs6000/altivec.h: New.
19567
19568 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
19569
19570         * doc/install.texi (*-ibm-aix*): Update assembler and exception
19571         handling information.
19572         * doc/trouble.texi (Interoperation): Add libstdc++ information
19573         for AIX.
19574         (Misunderstandings): Add template instantiation and static template
19575         member information for AIX.
19576
19577 2002-01-17  Jason Merrill  <jason@redhat.com>
19578
19579         * dbxout.c (dbxout_type): Support const and volatile.
19580
19581         * except.c (add_partial_entry): Remove backwards compatibility code.
19582         (end_protect_partials): Likewise.
19583
19584 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
19585
19586         * config/ia64/ia64.md (prologue_use): New.
19587         * config/ia64/ia64.c (ia64_expand_prologue): Use
19588         gen_prologue_use instead of gen_rtx_USE.
19589         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
19590         as CODE_FOR_pred_rel_mutex.
19591         (ia64_sched_reorder2): Likewise.
19592
19593 2002-01-16  Eric Christopher  <echristo@redhat.com>
19594
19595         * config/mips/r3900.h: Reformat.
19596         (SUBTARGET_CPP_SIZE_SPEC): Remove.
19597         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
19598         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
19599         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
19600         * config/mips/t-elf: Remove mips3 multilib.
19601
19602 2002-01-16  H.J. Lu <hjl@gnu.org>
19603
19604         * config/mips/linux.h: Include "mips/abi64.h".
19605
19606 2002-01-16  H.J. Lu <hjl@gnu.org>
19607
19608         * config/mips/t-linux: New.
19609
19610         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
19611
19612         * config/mips/linux.h: Don't include "gofast.h".
19613         (INIT_SUBTARGET_OPTABS): Removed.
19614
19615 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19616
19617         * config/h8300/h8300-protos.h: Replace emit_a_shift with
19618         output_a_shift.
19619         * config/h8300/h8300.c: Likewise.
19620         * config/h8300/h8300.md: Likewise.
19621
19622 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19623
19624         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
19625         spaces after an opcode name.
19626         (pushqi1_h8300hs): Likewise.
19627         (pushhi1_h8300hs): Likewise.
19628
19629 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19630
19631         * doc/extend.texi: Replace "option" with "attribute"
19632         appropriately.
19633
19634 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19635
19636         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
19637         (and:DI () (const_int -8)).
19638         (split_small_symbolic_mem_operand): Split
19639         (mem (and:DI () (const_int -8)).
19640
19641 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19642
19643         PR target/5309:
19644         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
19645         same way as TYPE_IMUL.
19646         (ultrasparc_sched_reorder): Likewise.
19647         * config/sparc/sparc.md (type): Add comment to update
19648         ultrasparc_sched_reorder when making changes.
19649
19650 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19651
19652         * doc/invoke.texi: Change the dump file name of block
19653         reordering pass from 28.bbro to 29.bbro.
19654         Mention -dk option.
19655
19656 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
19657
19658         * i386.md (minsf splitter): Fix pasto.
19659
19660 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
19661
19662         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
19663         to frame pointer initialisation instruction.
19664         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
19665         initialisation instruction.
19666         (soft_df_operand): Do not accept the IP register.
19667         (nonimmediate_soft_df_operand): Do not accept the IP register.
19668
19669 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19670
19671         PR target/5357:
19672         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
19673         MASK_V8 being both set.
19674
19675 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
19676
19677         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
19678         insn for GOT register; add REG_MAYBE_DEAD notes instead.
19679         config/s390/s390.md (call, call_value): Add GOT register to
19680         CALL_INSN_FUNCTION_USAGE where needed.
19681         (call_exp, call_value_exp): New.
19682
19683 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
19684
19685         * config/arm/arm.c: General formatting tidy up.
19686
19687 2002-01-16  Graham Stott  <grahams@redhat.com>
19688
19689         * calls.c (try_to_integrate): Use "(size_t)" intermediate
19690         cast and when casting an integer literal to "rtx" pointer.
19691         (expand_call): Likewise.
19692         * flow.c (try_pre_increment): Likewise.
19693         (find_use_as_address): Likewise.
19694         * integrate.c (expand_iline_function): Likewise.
19695         * regmove.c (try_auto_increment): Likewise.
19696
19697 2002-01-16  Graham Stott  <grahams@redhat.com>
19698
19699         * sched-rgn.c (passed): Use sbitmap_free.
19700         (header): Likewise.
19701         (inner): Likewise.
19702         (in_queue): Likewise.
19703         (in_stack): Likewise.
19704
19705 2002-01-15  Eric Christopher  <echristo@redhat.com>
19706
19707         * flow.c (propagate_one_insn): Change to use fatal_insn.
19708
19709 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19710
19711         * expmed.c (extract_fixed_bit_field): Remove unused code.
19712         * system.h: Poison SLOW_ZERO_EXTEND.
19713         * doc/tm.texi: Remove.
19714         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
19715         * config/arm/arm.h: Likewise.
19716         * config/avr/avr.h: Likewise.
19717         * config/clipper/clipper.h: Likewise.
19718         * config/convex/convex.h: Likewise.
19719         * config/d30v/d30v.h: Likewise.
19720         * config/dsp16xx/dsp16xx.h: Likewise.
19721         * config/elxsi/elxsi.h: Likewise.
19722         * config/fr30/fr30.h: Likewise.
19723         * config/h8300/h8300.h: Likewise.
19724         * config/i370/i370.h: Likewise.
19725         * config/i386/i386.h: Likewise.
19726         * config/m68k/m68k.h: Likewise.
19727         * config/mips/mips.h: Likewise.
19728         * config/ns32k/ns32k.h: Likewise.
19729         * config/pdp11/pdp11.h: Likewise.
19730         * config/pj/pj.h: Likewise.
19731         * config/s390/s390.h: Likewise.
19732         * config/sh/sh.h: Likewise.
19733         * config/stormy16/stormy16.h: Likewise.
19734         * config/v850/v850.h: Likewise.
19735         * config/vax/vax.h: Likewise.
19736         * config/we32k/we32k.h: Likewise.
19737
19738 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
19739
19740         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
19741         (altivec_lvsl): Change constraint to b.
19742         (altivec_lvsr): Same.
19743         (altivec_lvebx): Same.
19744         (altivec_lvehx): Same.
19745         (altivec_lvewx): Same.
19746         (altivec_lvxl): Same.
19747         (altivec_lvx): Same.
19748         (altivec_stvx): Add parallel.
19749         (altivec_stvxl): Same.
19750         (altivec_stvehx): Same.
19751         (altivec_stvebx): Same.
19752         (altivec_stvebx): Same.
19753
19754 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
19755
19756         * config.gcc: Change altivec.h to altivec-defs.h.
19757
19758         * config/rs6000/altivec.h: Delete.
19759
19760         * config/rs6000/altivec-defs.h: Add.
19761
19762 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19763
19764         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
19765         and UMOD modes.
19766
19767         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
19768         less than or equal to eight bytes.
19769
19770         * vax.md (andsi3): Remove constraints and change SET destination
19771         operand type to nonimmediate_operand.
19772         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
19773         when it is a CONST_INT.
19774
19775 2002-01-15  Jason Merrill  <jason@redhat.com>
19776
19777         * c-common.def (FILE_STMT): New code.
19778         * c-common.c (statement_code_p): It's a statement.
19779         * c-common.h (stmt_tree_s): Add x_last_filename.
19780         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
19781         (last_expr_filename): New macro.
19782         * c-semantics.c (begin_stmt_tree): Initialize it.
19783         (add_stmt): If the filename changed, also insert a
19784         FILE_STMT.
19785         (expand_stmt): Handle seeing one.
19786
19787 2002-01-15  Eric Christopher  <echristo@redhat.com>
19788
19789         * flow.c (propagate_one_insn): Add error message and print out
19790         insn for debugging.
19791
19792 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
19793
19794         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
19795         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
19796         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
19797         TRAMPOLINE_ALIGNMENT.
19798         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
19799         to be in bits.
19800         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
19801         PCC_BITFIELD_TYPE_MATTERS.
19802         * config/interix.h (STDC_VALUE): Remove.  Use
19803         STDC_0_IN_SYSTEM_HEADERS.
19804         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
19805         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
19806         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
19807
19808 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19809
19810         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
19811         not work on this platform currently.
19812
19813 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
19814
19815         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
19816         readonly_warning in _().
19817
19818 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
19819
19820         * gcc.c (delete_if_ordinary): Backout previous change.
19821
19822 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19823
19824         * config/h8300/h8300.c (print_operand): Remove support for
19825         unused operand characters.
19826
19827         * read-rtl.c: Fix formatting.
19828         * real.c: Likewise.
19829         * recog.c: Likewise.
19830         * regclass.c: Likewise.
19831         * regmove.c: Likewise.
19832         * reg-stack.c: Likewise.
19833         * reload1.c: Likewise.
19834         * rtlanal.c: Likewise.
19835
19836 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19837
19838         * config/i386/i386.c: Fix formatting.
19839
19840 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
19841
19842         * c-typeck.c (process_init_element): Don't save_expr
19843         COMPOUND_LITERAL_EXPR if just its initializer will be used.
19844
19845 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
19846
19847         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
19848         emit optional traceback table if optimize_size or TARGET_ELF.
19849         * config/rs6000/rs6000.md (prefetch): New.
19850
19851 2002-01-15  Andreas Jaeger  <aj@suse.de>
19852
19853         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
19854
19855 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19856
19857         * mips-tfile.c: Fix formatting.
19858
19859 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
19860
19861         * unroll.c (final_reg_note_copy): Fix previous commit.
19862
19863 2002-01-14  Kazu Hirata  <kazu@hxi.com>
19864
19865         * config/h8300/h8300-protos.h: Remove the prototype for
19866         eq_operator.
19867         * config/h8300/h8300.c (eq_operator): Remove.
19868
19869 2002-01-14  Richard Henderson  <rth@redhat.com>
19870
19871         * config/i386/i386.md (prefetch): Tidy.
19872         (prefetch_3dnow): Fix locality operand.
19873
19874 2002-01-14  Richard Henderson  <rth@redhat.com>
19875
19876         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
19877         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
19878
19879 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
19880
19881         * reload1.c (reload_combine): Pass reg_sum replacement through
19882         copy_rtx in loop performing multiple changes.
19883
19884 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
19885
19886         * except.c (remove_unreachable_regions): New.
19887         (free_eh_status): Clear exception_handler_labels.
19888         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
19889         (find_exception_handler_labels): Don't add the same label more than
19890         once.
19891         (remove_exception_handler_label): Don't die if
19892         find_exception_handler_labels hasn't been called for the current
19893         function yet.
19894
19895 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
19896
19897         * toplev.c (rest_of_compilation): Rebuild jump labels after
19898         gcse.
19899
19900 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
19901
19902         * doc/extend.texi: Move documentation of X86 built-in functions
19903         here.
19904         * doc/invoke.texi: From here.
19905         * doc/sourcebuild.texi: Document location of documentation for
19906         machine built-in functions.
19907
19908 2002-01-13  Christopher Faylor  <cgf@redhat.com>
19909
19910         * cppfiles.c (TEST_THRESHOLD): New macro.
19911         (SHOULD_MMAP): Ditto.
19912         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
19913         be used.
19914
19915 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
19916
19917         * unroll.c (final_reg_note_copy): Properly handle
19918         REG_LABEL
19919         (unroll_loops): Fix LOOP_CONDITION heuristics.
19920
19921 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
19922
19923         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
19924         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
19925
19926 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
19927
19928         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
19929         threaded loop.
19930
19931 2002-01-14  Tom Rix  <trix@redhat.com>
19932
19933         * config/rs6000/rs6000.md: Fix typo with sradi.
19934
19935 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
19936
19937         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
19938         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
19939         (clrstrdi, clrstrsi): Adapt callers.
19940
19941         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
19942
19943         (movti splitter): Never use register 0 as base register.
19944
19945 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
19946
19947         * combine.c (simplify_shift_const): Always generate new rtx
19948         for shift expression instead of reusing given expression.
19949
19950 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19951
19952         * config/alpha/alpha.c (alpha_expand_mov): Don't call
19953         alpha_legitimize_address unless mode is Pmode.
19954
19955 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
19956
19957         * doc/md.texi (Modifiers): Document the '*' constraint for the
19958         user.
19959
19960         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
19961         * doc/extend.texi (Function Attributes): 'interrupt' is valid
19962         for xstormy16 too.
19963
19964 2002-01-13  Richard Henderson  <rth@redhat.com>
19965
19966         * reload.c (find_reloads): Use a hard reg destination as reload reg
19967         for an input reload of the source.
19968
19969 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19970
19971         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
19972         more generic.
19973
19974 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
19975
19976         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
19977         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
19978
19979         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
19980
19981 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19982
19983         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
19984
19985 2002-01-12  Tom Rix  <trix@redhat.com>
19986
19987         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
19988         TARGET_POWERPC64.
19989
19990 2002-01-12  Richard Henderson  <rth@redhat.com>
19991
19992         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
19993
19994         * doc/invoke.texi: Update Alpha options.
19995
19996         * doc/invoke.texi: Update i386 built-in function lists.
19997
19998 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
19999
20000         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
20001         referencing outside.
20002
20003 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20004
20005         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
20006         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
20007         offsets, and change line folding.
20008         * optabs.c (expand_binop): Remove warnings.
20009         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
20010
20011 2002-01-12  Graham Stott <grahams@redhat.com>
20012
20013         * attribs.c (handle_deprecated_attribute): constify WHAT.
20014         * diagnostic.c (warn_deprecated_use): Add braces, fixes
20015         dangling else warning and constify WHAT.
20016         * except.h (struct function, struct inline_remap): Move
20017         struct tag forward defs before all prototypes.
20018         (duplicate_eh_regions): Whitespace.
20019
20020 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
20021
20022         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
20023         MODE_BASE_REG_CLASS.
20024         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
20025
20026 2002-01-12  Richard Henderson  <rth@redhat.com>
20027
20028         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
20029         (ix86_expand_vector_move): New.
20030         (bdesc_2arg): Remove andps, andnps, orps, xorps.
20031         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
20032         Remove old prefetch builtins.  Special case the logicals removed above.
20033         (ix86_expand_builtin): Likewise.
20034         (safe_vector_operand): Use V4SFmode, not TImode.
20035         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
20036         (ix86_expand_timode_binop_builtin): New.
20037         * config/i386/i386-protos.h: Update.
20038         * config/i386/i386.h (enum ix86_builtins): Update.
20039         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
20040         Use ix86_expand_vector_move in vector move expanders.
20041         (movti_internal, movti_rex64): Add xorps alternative.
20042         (sse_clrv4sf): Rename and adjust from sse_clrti.
20043         (prefetch): Don't work so hard.
20044         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
20045         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
20046         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
20047
20048 2002-01-11  Richard Henderson  <rth@redhat.com>
20049
20050         * config/i386/mmintrin.h: New file.
20051         * config/i386/xmmintrin.h: New file.
20052         * config.gcc (i?86-*-*): Add extra_headers.
20053         * simplify-rtx.c (simplify_unary_operation): Handle saturating
20054         truncation codes.
20055         (simplify_binary_operation): Handle saturating arithmetic codes.
20056         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
20057         not the lowpart subreg.
20058         (ix86_expand_builtin): Return a TImode dummy register instead of 0
20059         on error.
20060         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
20061
20062 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20063
20064         * conflict.c (conflict_graph_compute): Free regsets when finished.
20065         * ssa.c (compute_coalesced_reg_partition): Likewise.
20066
20067 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20068
20069         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
20070         every where we allocate a register.
20071
20072 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20073
20074         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
20075         * lcm.c (compute_earliest, compute_farthest): Likewise.
20076
20077 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
20078
20079         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
20080
20081 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
20082
20083         * doc/rtl.texi (Insns): Fix 2 typos.
20084
20085 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
20086
20087         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
20088         options.  Use @table @gcctabopt for MMIX options.  Add index
20089         entries for MMIX options.  Start new paragraph with first
20090         heading of the machine-dependent options.
20091
20092 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20093
20094         PR other/5299
20095         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
20096         * combine.c (force_to_mode): Same.
20097         * reload1.c (clear_reload_reg_in_use): Same.
20098
20099 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
20100
20101         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
20102         and 'subtargets'.
20103
20104 2002-01-11  Andreas Jaeger  <aj@suse.de>,
20105             Brad Lucier <lucier@math.purdue.edu>
20106
20107         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
20108         mcpu.
20109
20110 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
20111
20112         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
20113         Protect with IN_LIBGCC.
20114         (LINK_EH_SPEC): Add required trailing space.
20115
20116 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
20117
20118         * c-tree.h: Move function declarations so that they are listed
20119         under the filename which contains them.
20120         (check_identifier, finish_decl_top_level,
20121         lookup_name_current_level_global, shadow_record_fields): Remove.
20122
20123 2002-01-11  Andreas Jaeger  <aj@suse.de>
20124
20125         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
20126         march.
20127
20128 2002-01-10  Richard Henderson  <rth@redhat.com>
20129
20130         * config/alpha/alpha.c (print_operand): Add 'J'.
20131         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
20132         new operand with the sequence number for the lituse.  When splitting
20133         the insns, use gen_movdi_er_high_g and generate a sequence number.
20134         (gen_movdi_er_high_g): Print the sequence number if non-zero.
20135
20136 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
20137
20138         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
20139         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
20140         stvxl.
20141         (altivec_expand_builtin): Same.
20142         (altivec_expand_stv_builtin): New.
20143
20144         * config/rs6000/rs6000.h (rs6000_builtins): Same.
20145
20146         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
20147         ("altivec_lvehx"): New.
20148         ("altivec_lvewx"): New.
20149         ("altivec_lvxl"): New.
20150         ("altivec_lvx"): New.
20151         ("altivec_stvx"): New.
20152         ("altivec_stvebx"): New.
20153         ("altivec_stvehx"): New.
20154         ("altivec_stvewx"): New.
20155         ("altivec_stvxl"): New.
20156
20157 2002-01-10  Richard Henderson  <rth@redhat.com>
20158
20159         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
20160         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
20161         care not to delete instructions twice.
20162
20163 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
20164
20165         * toplev.c: Don't declare environ (it's not used anywhere).
20166         * configure.in: Don't check for declaration of environ.
20167         * config/i386/xm-mingw32.h: Don't #define environ.
20168         * config.in, configure: Regenerate.
20169
20170 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
20171
20172         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
20173         * configure: Regenerate.
20174
20175         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
20176         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
20177         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
20178         alpha/xm-vms.h.
20179         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
20180         LIMITS_H_TEST here, not in m68k/x-next.
20181         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
20182         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
20183
20184         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
20185         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
20186         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
20187
20188         * config/i386/x-djgpp: Renamed i386/t-djgpp.
20189         * config/m88k/x-dolph: Renamed m88k/t-dolph.
20190         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
20191         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
20192         replacement of quadlib.asm with quadlib.c.
20193
20194         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
20195         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
20196         config/rs6000/xm-beos.h: Delete file.
20197
20198         * config.gcc: Update to match above changes.
20199
20200 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20201
20202         * config/h8300/h8300.h: Fix comment typos.
20203         * config/h8300/h8300.md: Likewise.
20204         * config/h8300/lib1funcs.asm: Likewise.
20205
20206 2002-01-10  Dale Johannesen  <dalej@apple.com>
20207
20208         PR optimization/5269
20209         * unroll.c (precondition_loop_p): Make *increment be the correct
20210         sign when n_iterations known, to avoid confusing caller.
20211
20212 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20213
20214         * doc/extend.texi (deprecated): Fix a typo.
20215
20216 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
20217
20218         * basic-block.h (update_br_prob_note): Declare.
20219         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
20220         (try_forward_edges): Care negative frequencies and update note.
20221         (outgoing_edges_match): Tweek conditional merging heuristics.
20222         (try_crossjump_to_edge): use update_br_prob_note.
20223         * cfglayout.c (fixup_reorder_chain): Likewise.
20224         * cfrtl.c (update_br_prob_note): New.
20225         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
20226
20227         * i386.c (ix86_decompose_address): Return -1 if address contains
20228         shift.
20229         (legitimate_address_p): Require ix86_decompose_address to return 1.
20230
20231         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
20232         (cprop_insn): Likewise.
20233
20234 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20235
20236         * toplev.c: Fix formatting.
20237         * tree.c: Likewise.
20238         * tree-dump.c: Likewise.
20239         * unroll.c: Likewise.
20240         * unwind-dw2.c: Likewise.
20241         * unwind-dw2-fde.c: Likewise.
20242         * unwind-dw2-fde-glibc.c: Likewise.
20243         * unwind-sjlj.c: Likewise.
20244
20245 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
20246
20247         * doc/invoke.texi: Document PDP-11 options.
20248
20249 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20250
20251         * config/h8300/h8300.h: Fix formatting.
20252
20253 2002-01-10  Ira Ruben   <ira@apple.com>
20254
20255         Add __attribute__ ((deprecated)).
20256         * extend.texi: Document __attribute__ ((deprecated)).
20257         * invoke.texi: Document -Wno-deprecated-declarations.
20258         * testsuite/g++.dg/other/deprecated.C: New C++ test.
20259         * testsuite/gcc.dg/deprecated.c: New C test.
20260         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
20261         (c_common_attribute_table): Add "deprecated" entry.
20262         (handle_deprecated_attribute): New function.
20263         * c-decl.c (deprecated_states): New enum.
20264         deprecated_state: State of "deprecated" handling.
20265         (start_decl): Set deprecated_state based on attributes.
20266         (grokdeclarator): Test for deprecated uses, propagate attribute.
20267         * c-typeck.c (build_component_ref): Test for deprecated fields.
20268         (build_external_ref): Test for deprecated primaries.
20269         * diagnostic.c (warn_deprecated_use) New function to issue
20270         warnings about __attribute__ ((depricated)) references.
20271         * flags.h (warn_deprecated_decl): Extern declared for
20272         -W[no-]deprecated-declarations option.
20273         * print-tree.c (print_node): Show deprecated flag status.
20274         * toplev.c (warn_deprecated_decl): Defined.
20275         (W_options): Added "deprecated-declaration".
20276         * toplev.h (warn_deprecated_use): Extern declared.
20277         * tree.h (struct tree_common): Define deprecated_flag.
20278         (TREE_DEPRECATED): New macro to access flag.
20279         * cp/call.c (build_call): Test for deprecated calls.
20280         * cp/class.c (add_implicitly_declared_members): Set global
20281         flag to tell grokdeclarator to not issue deprecated warnings.
20282         * cp/cp-tree.h: Add extern for adding_implicit_members.
20283         * cp/decl.c (deprecated_states): New enum.
20284         (start_decl): Set deprecated_state based on attributes.
20285         (grokdeclarator): Test for deprecated uses, propagate attribute.
20286         * cp/lex.c (do_identifier): Test for deprecated primaries.
20287         * cp/typeck.c (build_component_ref): Test for deprecated fields.
20288
20289 2002-01-10  Ira Ruben   <ira@apple.com>
20290
20291         Fix to assign attributes to inline member functions.
20292         * cp/decl.c (start_method): Handle attrlist.
20293
20294 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20295
20296         * combine.c (expand_field_assignment): Use subreg_lsb().
20297
20298 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
20299
20300         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
20301         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
20302         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
20303         Recurse for any operand of AND as long as constant is non-zero.
20304
20305 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20306
20307         * config/h8300/h8300.md: Remove constraints from expanders.
20308
20309 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20310
20311         * varasm.c: Fix formatting.
20312         * varray.c: Likewise.
20313         * vmsdbgout.c: Likewise.
20314         * xcoffout.c: Likewise.
20315
20316 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
20317
20318         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
20319         update edge probabilities to match.
20320
20321 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
20322
20323         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
20324         dependencies.
20325         * doc/languages.texi, doc/sourcebuild.texi: New files.
20326         * doc/configfiles.texi: Make a subsubsection.  Update.
20327         * doc/configterms.texi: Add @node.  Remove warning that this isn't
20328         instructions for building GCC.
20329         * doc/makefile.texi: Make a subsection.
20330         * doc/gccint.texi: Update.
20331
20332 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
20333
20334         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
20335
20336 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
20337
20338         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
20339
20340 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
20341
20342         * optabs.c (expand_fix): Look for wider integer modes first.
20343
20344         * i386.md (mov?f): Avoid the fake const double trick for medium
20345         memory model.
20346         (min?f*/max?f*): Prohibit memory operands for i387 variant.
20347         (fop_df_4): Disable for SSE compilation.
20348
20349 2002-01-10  Graham Stott  <grahams@redhat.com>
20350
20351         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
20352         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
20353
20354 2002-01-10  Richard Henderson  <rth@redhat.com>
20355
20356         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
20357
20358 2002-01-10  Richard Henderson  <rth@redhat.com>
20359
20360         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
20361         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
20362
20363 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20364
20365         * combine.c (can_combine_p): Fix a comment typo.
20366
20367 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
20368
20369         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
20370         empty list correctly.  Change loop index $t to $f for
20371         consistency with rest of Makefile.
20372
20373 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
20374
20375         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
20376         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20377
20378         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
20379         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
20380         (altivec_init_builtins): Same.
20381         (altivec_expand_unop_builtin): Return NULL_RTX on error.
20382         (altivec_expand_binop_builtin): Same.
20383         (altivec_expand_ternop_builtin): Same.
20384         (bdesc_dst): New.
20385
20386         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
20387         ("altivec_vctuxs"): Fix typo.
20388         ("altivec_vnmsubfp"): Same.
20389         ("altivec_dssall"): New.
20390         ("altivec_mfvscr"): New.
20391         ("altivec_dss"): New.
20392         ("altivec_lvsl"): New.
20393         ("altivec_lvsr"): New.
20394         ("altivec_dstt"): New.
20395         ("altivec_dstst"): New.
20396         ("altivec_dststt"): New.
20397         ("altivec_dst"): New.
20398
20399         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
20400         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20401
20402 2002-01-09  Richard Henderson  <rth@redhat.com>
20403
20404         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
20405
20406 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
20407
20408         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
20409         function.
20410         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
20411         prototype.
20412         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
20413
20414 2002-01-09  Kazu Hirata  <kazu@hxi.com>
20415
20416         * read-rtl.c: Fix formatting.
20417         * real.c: Likewise.
20418         * regclass.c: Likewise.
20419         * regrename.c: Likewise.
20420         * reg-stack.c: Likewise.
20421         * reload1.c: Likewise.
20422         * reload.c: Likewise.
20423         * rtl.c: Likewise.
20424
20425 2002-01-09  Kazu Hirata  <kazu@hxi.com>
20426
20427         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
20428         to extract items in the expr_list chain.
20429
20430 2002-01-09  Richard Henderson  <rth@redhat.com>
20431
20432         * config/vax/vax.c (vax_rtx_cost): Never abort.
20433
20434         * config/vax/vax.h (REAL_ARITHMETIC): Define.
20435
20436 2002-01-09  Jan Hubicka  <jh@suse.cz>
20437
20438         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
20439
20440 2002-01-09  Richard Henderson  <rth@redhat.com>
20441
20442         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
20443         Unify code from various alternatives.
20444
20445 2002-01-09  Richard Henderson  <rth@redhat.com>
20446
20447         * regrename.c (copy_value): Ignore the copy if the source register
20448         is present in the value chain with a narrower mode.
20449
20450 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
20451
20452         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
20453         for the c4x target. Also improve layout.
20454
20455 2002-01-09  Richard Henderson  <rth@redhat.com>
20456
20457         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
20458         * config/m32r/m32r.md (and ior xor splitters): Swap operands
20459         to match insn patterns.
20460
20461 2002-01-09  Richard Henderson  <rth@redhat.com>
20462
20463         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
20464         (copyprop_hardreg_forward_1): Likewise.
20465
20466 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20467
20468         * pa.md (decrement_and_branch_until_zero): Change predicate for
20469         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
20470
20471 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
20472
20473         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
20474         gets undefined. For Darwin.
20475
20476 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20477
20478         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
20479
20480 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20481
20482         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
20483
20484 2002-01-08  Richard Henderson  <rth@redhat.com>
20485
20486         * regrename.c (copy_value): Ignore overlapping copies.
20487
20488 2002-01-08  Richard Henderson  <rth@redhat.com>
20489
20490         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
20491         as needed to avoid shared structure.
20492
20493 2002-01-08  Kazu Hirata  <kazu@hxi.com>
20494
20495         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
20496         H8/300H and H8/S.
20497
20498 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20499
20500         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
20501         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
20502         documentation of obsolete macros.
20503         * system.h: Poison these macros.
20504         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
20505         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
20506         config/c4x/c4x.h, config/clipper/clipper.h,
20507         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
20508         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
20509         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
20510         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
20511         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
20512         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
20513         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
20514         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
20515         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
20516         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
20517         config/sparc/sparc.h, config/stormy16/stormy16.h,
20518         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
20519         definitions and commented out definitions of obsolete macros.
20520         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
20521         of MAX_INT_TYPE_SIZE.
20522
20523 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
20524
20525         * config/s390/s390.c (s390_preferred_reload_class): Never
20526         return ADDR_REGS if it isn't a subset of the given class.
20527         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
20528         FP_REGS, but all superclasses as well.
20529
20530         * config/s390/s390.c (s390_function_profiler): Fix thinko.
20531
20532         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
20533         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
20534         must not be a const_int.
20535
20536 2002-01-08  Richard Henderson  <rth@redhat.com>
20537
20538         * Makefile.in (toplev.o): Depend on options.h.
20539         (gcc.o): Depend on specs.h.
20540
20541 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
20542
20543         * expr.c (store_expr): Convert VOIDmode constants back to target's
20544         mode.
20545
20546 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
20547
20548         * doc/invoke.texi: Markup gcc as @command.  Refer to
20549         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
20550         of http://gcc.gnu.org/thanks.html.
20551
20552 2002-01-08  Dale Johannesen  <dalej@apple.com>
20553
20554         * config/rs6000/rs6000.md: Add missing int register
20555         target case to movdf_low.
20556
20557 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
20558
20559         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
20560         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
20561         (cppinit.o): Depend on except.h.
20562         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
20563         s-specs): New rules.
20564
20565         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
20566         Don't create specs.h/options.h/gencheck.h here.  Remove
20567         unnecessary variable settings from last argument of AC_OUTPUT.
20568         * config.in, configure: Regenerate.
20569         * intl.c: Hardcode package name as "gcc".
20570
20571         * cppinit.c: Include except.h.
20572         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
20573         appropriate.
20574         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
20575         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
20576         (!)USING_SJLJ_EXCEPTIONS.
20577         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
20578
20579 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20580
20581         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
20582         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
20583         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
20584         documentation of obsolete macros.
20585         * system.h: Poison these macros.
20586         * config/d30v/d30v.h, config/ns32k/encore.h,
20587         config/stormy16/stormy16.h: Remove definitions and commented out
20588         definitions of obsolete macros.
20589
20590 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
20591
20592         * objc/objc-act.c (handle_class_ref): Mark the declaration of
20593         %sobjc_class_ref_%s as used - to prevent unwanted compiler
20594         warnings.
20595
20596 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
20597
20598         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
20599         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
20600         to insn adjusting stack/frame pointer.
20601         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
20602         accept operands that cause the insn to be non-splittable.
20603
20604 2002-01-08  Graham Stott  <grahams@redhat.com>
20605
20606         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
20607         (C_TYPE_FIELDS_VOLATILE): Likewise.
20608         (C_TYPE_BEING_DEFINED): Likewise.
20609         (C_IS_RESERVED_WORD): Likewise.
20610         (C_TYPE_VARIABLE_SIZE): Likewise.
20611         (C_DECL_VARIABLE_SIZE): Likewise.
20612         (C_MISSING_PROTOTYPE_WARNED): Likewise.
20613         (C_SET_EXP_ORIGINAL_CODE): Likewise.
20614         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
20615         parenthesis.
20616         (C_DECL_ANTICIPATED): Likewise.
20617         (c_build_type_variant): Add parenthesis.
20618
20619 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20620
20621         * gcc.c (option_map): Remove --version.
20622         (process_command): Handle -fversion following the GNU Coding
20623         Standards.  Partially addresses PR other/704.
20624
20625 2002-01-08  Graham Stott  <grahams@redhat.com>
20626
20627         * combine.c (combine_instructions): Fix typo.
20628
20629 2002-01-08  Graham Stott  <grahams@redhat.com>
20630
20631         * debug.h: Use "tree" and "rtx" throughout.
20632
20633         * debug.c: Likewise.
20634
20635 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
20636
20637         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
20638         constant pool, use the pool's version of the symbol instead.
20639
20640 2002-01-07  Richard Henderson  <rth@redhat.com>
20641
20642         * regrename.c (find_oldest_value_reg): Ignore the value chain if
20643         the original register was copied in a mode with a fewer number of
20644         hard registers than the desired mode.
20645         (copyprop_hardreg_forward_1): Likewise.
20646         (debug_value_data): Fix loop test.
20647         * toplev.c (parse_options_and_default_flags): Reenable
20648         -fcprop-registers at -O1.
20649
20650 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20651
20652         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
20653         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
20654
20655         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
20656         predicates.
20657
20658         * config/rs6000/rs6000.md: Add altivec predicate patterns.
20659
20660 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20661
20662         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
20663         (pa_output_function_prologue): Output local label at the beginning of
20664         the prologue when profiling.
20665         (hppa_profile_hook): Use the local label rather than the function label.
20666         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
20667
20668 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20669
20670         * config/rs6000/rs6000.c (print_operand): Remove extra space.
20671         (altivec_expand_unop_builtin): Fix thinko.
20672         (altivec_expand_binop_builtin): Same.
20673         (altivec_expand_ternop_builtin): Same.
20674         (altivec_expand_builtin): Same.
20675
20676 2002-01-07  Richard Henderson  <rth@redhat.com>
20677
20678         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
20679
20680 2002-01-07  Jason Merrill  <jason@redhat.com>
20681
20682         * unwind-dw2.c (execute_cfa_program): Use < again.
20683
20684 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
20685
20686         * predict.c (combine_predictions_for_insn): Avoid division by zero.
20687
20688 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
20689
20690         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
20691         Don't allow -1 - x -> ~x simplifications in the first pass.
20692
20693 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20694
20695         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
20696         arguments.
20697         (altivec_expand_binop_builtin): Same.
20698         (altivec_expand_unop_builtin): Same.
20699         (print_operand): Fix typo.
20700         (bdesc_1arg): Add vupk* variants.
20701
20702         * rs6000.h (rs6000_builtins): Add vupk* enums.
20703
20704         * rs6000.md: Add altivec_vupk* variants.
20705
20706 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
20707
20708         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
20709         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
20710         and last update dates.
20711
20712 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
20713
20714         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
20715
20716 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
20717
20718         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
20719         * config/avr/avr.h (CPP_SPEC): Likewise.
20720         (LINK_SPEC): Likewise.
20721         (CRT_BINUTILS_SPECS): Likewise.
20722         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
20723         * doc/invoke.texi (AVR Options): Document them.
20724
20725 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
20726
20727         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
20728         LABEL_NUSES.
20729
20730 2002-01-07  Graham Stott  <grahams@redhat.com>
20731
20732         * config/i386/i386.h: Update copyright date.
20733         (HALF_PIC_PTR): Add parenthesis.
20734         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
20735         (CONSTANT_ALIGNMENT): Add parenthesis.
20736         (DATA_ALIGNMENT): Likewise.
20737         (LOCAL_ALIGNMENT): Likewise.
20738         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
20739         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
20740         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
20741         (HARD_REGNO_NREGS): Add paranethesis.
20742         (VALID_SSE_REG_MODE): Whitespace.
20743         (VALID_MMX_REG_MODE): Whitespace.
20744         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
20745         (ix86_hard_regno_mode_ok): Add parenthesis.
20746         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
20747         (RETURN_IN_MEMORY): Whitespace.
20748         (N_REG_CLASSES): Add parenthesis.
20749         (INTEGER_CLASS_P): Add parenthesis and wrap.
20750         (FLOAT_CLASS_P): Likewise.
20751         (SSE_CLASS_P): Likewise.
20752         (MMX_CLASS_P): Likewise.
20753         (MAYBE_INTEGER_CLASS_P): Likewise.
20754         (MAYBE_FLOAT_CLASS_P): Likewise.
20755         (MAYBE_SSE_CLASS_P): Likewise.
20756         (MAYBE_MMX_CLASS_P): Likewise.
20757         (Q_CLASS_P): Likewise.
20758         (GENERAL_REGNO_P): Uppercase macro parameter.
20759         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
20760         (FP_REGNO_P): Likewise.
20761         (ANY_FP_REGNO_P): Uppercase macro parameter.
20762         (SSE_REGNO_P): Likewise.
20763         (SSE_REGNO): Likewise.
20764         (SSE_REG_P): Likewise.
20765         (SSE_FLOAT_MODE_P): Likewise.
20766         (MMX_REGNO_P): Likewise.
20767         (MMX_REG_P):Likewise.
20768         (STACK_REG_P): Likewise.
20769         (NON_STACK_REG_P): Likewise.
20770         (STACK_TOP_P): Likewise.
20771         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
20772         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
20773         (SECONDARY_MEMORY_NEEDED): Likewise.
20774         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
20775         (MD_ASM_CLOBBERS): Whitespace and wrap.
20776         (MUST_PASS_IN_STACK): Whitespace and wrap.
20777         (RETURN_POPS_ARGS): Add parenthesis.
20778         (INIT_CUMULATIVE_ARGS): Likewise.
20779         (FUNCTION_ARG): Likewise.
20780         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
20781         (SETUP_INCOMING_VARARGS): Likewise.
20782         (BUILD_VA_LIST_TYPE):  Add parenthesis.
20783         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
20784         parenthsis.
20785         (EXPAND_BUILTIN_VA_ARG): Likewise.
20786         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
20787         (INITIALIZE_TRAMPOLINE): Add parenthesis.
20788         (INITIAL_ELIMINATION_OFFSET): Likewise.
20789         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
20790         (REGNO_OK_FOR_BASE_P): Likewise.
20791         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
20792         (REGNO_OK_FOR_DIREG_P): Likewise.
20793         (REG_OK_FOR_INDEX_P): Whitespace.
20794         (REG_OK_FOR_BASE_P): Whitespace.
20795         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
20796         parenthesis.
20797         (FIND_BASE_TERM): Fix typo.
20798         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
20799         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
20800         (SYMBOLIC_CONST; Whitespace.
20801         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
20802         (ENCODE_SECTION_INFO): Whitespace.
20803         (FINALIZE_PIC): Remove do { ... } while (0).
20804         (PROMOTE_MODE): Wrap in do { ... } while (0).
20805         (CONST_COSTS): Whitespace.
20806         (RTX_COSTS): Add paramethesis, whitespace and wrap.
20807         (REGISTER_MOVE_COST): Add parenthesis.
20808         (MEMORY_MOVE_COST): Likewise.
20809         (EXTRA_CC_MODES): Whitespace.
20810         (SELECT_CC_MODE): Add parenthesis and whitespace.
20811         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
20812         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
20813         (ASM_OUTPUT_LABEL): Add paramethesis.
20814         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
20815         (ASM_OUTPUT_REG_POP): Likewise.
20816         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
20817         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20818
20819         * config/i386/i386.c: Update copyright.
20820         (CHECK_STACK_LIMIT): Add parenthesis.
20821         (AT_BP): Uppercase macro parameter.
20822         (x86_64_int_parameter_registers): Constify.
20823         (x86_64_int_return_registers): Likewise.
20824         (ix86_compare_op0): Use rtx.
20825         (construct_container): Constify INTREG parameter.
20826         (function_arg): Use rtx.
20827
20828         * diagnostic.h: Update copyright date.
20829         (output_buffer_state): Add parenthesis.
20830         (output_buffer_format_args): Likewise.
20831
20832         * combine.c (combine_instructions): Replace XEXP (links, 0)
20833         with link.
20834
20835 2002-01-06  H.J. Lu <hjl@gnu.org>
20836
20837         * cfgcleanup.c (thread_jump): Fix 2 typos.
20838
20839 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
20840
20841         * config.gcc: Add support for --enable-altivec.
20842
20843 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20844
20845         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
20846
20847 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
20848
20849         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
20850         __objc_class_name_*.
20851
20852 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20853
20854         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
20855
20856 2002-01-06  Richard Henderson  <rth@redhat.com>
20857
20858         * reorg.c (emit_delay_sequence): Remove death notes, not merely
20859         nop them out.  Increment label reference count for REG_LABEL.
20860         (fill_slots_from_thread): Frob label reference count around
20861         delete_related_insns.
20862
20863 2002-01-05  Richard Henderson  <rth@redhat.com>
20864
20865         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
20866         jump threading.
20867
20868 2002-01-05  Richard Henderson  <rth@redhat.com>
20869
20870         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
20871         * integrate.c (output_inline_function): Likewise.
20872         * toplev.c (rest_of_compilation): Do it here instead.  Move call
20873         to remove_unnecessary_notes after emitting abstract instance.
20874         Force an emitted nested function to have its parent emited as well.
20875         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
20876         for null.
20877         (rtl_for_decl_location): Do not look at reload data structures
20878         before reload has run.
20879
20880 2002-01-05  Kazu Hirata  <kazu@hxi.com>
20881
20882         * cse.c: Fix formatting.
20883         * dwarf2asm.c: Likewise.
20884         * dwarf2out.c: Likewise.
20885         * explow.c: Likewise.
20886         * expmed.c: Likewise.
20887         * function.c: Likewise.
20888         * gcov.c: Likewise.
20889         * gencheck.c: Likewise.
20890         * genrecog.c: Likewise.
20891         * ggc-common.c: Likewise.
20892         * ggc-page.c: Likewise.
20893         * global.c: Likewise.
20894
20895 2002-01-05  Kazu Hirata  <kazu@hxi.com>
20896
20897         * combine.c: Fix formatting.
20898
20899 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
20900
20901         PR middle-end/1557
20902         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
20903
20904 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
20905
20906         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
20907         as 1 for __powerpc64__ as well.
20908
20909         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
20910
20911         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
20912         return it.
20913
20914 2002-01-05  Daniel Berlin  <dan@dberlin.org>
20915
20916         * lcm.c: Revert change, due to performance regression it causes on
20917         SPEC because it's slightly more conservative (sigh, I hate
20918         edge-based LCM).
20919
20920 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
20921
20922         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
20923
20924 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
20925
20926         * doc/cppinternals.texi: Update.
20927
20928 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
20929
20930         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
20931         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
20932         negatives.
20933         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
20934         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
20935         kludge for pre-october-14th mmix versions to handle new-found bug
20936         with PUSHJ/PUSHGO and the register stack.
20937         * config/mmix/mmix.h (struct machine_function): Rename member
20938         has_call_value_without_parameters to has_call_without_parameters.
20939         All referers changed.
20940         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
20941         TARGET_MASK_BRANCH_PREDICT): New macros.
20942         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
20943         -mno-reg-stack-fill-bug-workaround.
20944         * config/mmix/mmix.md ("call"): Set struct machine member
20945         has_call_without_parameters.
20946
20947 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
20948
20949         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
20950
20951 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
20952
20953         * cfgcleanup.c: Include tm_p.h
20954         (mark_effect): Fix handling of hard register; fix handling of SET
20955
20956 2002-01-04  Kazu Hirata  <kazu@hxi.com>
20957
20958         * config/h8300/h8300.md (anonymous patterns): Check that
20959         operands are registers before using REGNO on them.
20960
20961 2002-01-03  Roland McGrath  <roland@frob.com>
20962
20963         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
20964
20965 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
20966
20967         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
20968         * c-common.h (genrtl_expr_stmt_value): Likewise.
20969         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
20970         (expand_expr_stmt_value): Add maybe_last argument.
20971         Don't warn about statement with no effect if it is the last statement
20972         in expression statement.
20973         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
20974         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
20975         expand_expr_stmt_value.
20976         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
20977         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
20978         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
20979         as maybe_last to expand_expr_stmt_value.
20980
20981 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
20982
20983         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
20984         be passed in, do not build it.
20985         (c_begin_if_stmt): New function.
20986         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
20987         * c-common.h (c_expand_start_cond): Update prototype.
20988         (c_begin_if_stmt): Prototype new function.
20989         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
20990         * c-parse.in (if_prefix): Use c_begin_if_stmt,
20991         c_begin_while_stmt and c_finish_while_stmt_cond.
20992
20993 2002-01-04  William Cohen  <wcohen@redhat.com>
20994
20995         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
20996         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
20997         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
20998         * config/pa/som.h (ASM_FILE_START): Likewise.
20999
21000 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
21001
21002         * lcm.c: Include df.h.
21003         Add available_transfer_function prototype.
21004         (compute_available): Rework to use iterative dataflow framework.
21005         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
21006         with bb_info in df.h
21007         (available_transfer_function): New function.
21008
21009         * Makefile.in (lcm.o): add df.h to dependencies.
21010
21011 2002-01-04  Richard Henderson  <rth@redhat.com>
21012
21013         * config/alpha/alpha.c (some_operand): Accept HIGH.
21014         (input_operand): Likewise; accept simple references to globals.
21015         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
21016         (alpha_const_double_ok_for_letter_p): Likewise.
21017         (alpha_extra_constraint): Likewise.
21018         (alpha_preferred_reload_class): Likewise.  Do not force
21019         symbolic constants to memory.
21020         (alpha_legitimate_address_p): Accept simple references
21021         to small_symbolic_operand.
21022         (alpha_legitimize_address): New arg scratch.  Be prepared to be
21023         called when no_new_pseudos.  Emit simple symbolic references.
21024         Split integers into low, high, and rest.
21025         (alpha_expand_mov): Use alpha_legitimize_address.
21026         (some_small_symbolic_mem_operand): New.
21027         (split_small_symbolic_mem_operand): New.
21028         * config/alpha/alpha-protos.h: Update.
21029         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
21030         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
21031         (EXTRA_CONSTRAINT): Likewise.
21032         (PREFERRED_RELOAD_CLASS): Likewise.
21033         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
21034         (PREDICATE_CODES): Update.
21035         * config/alpha/alpha.md: New post-reload splitters to convert
21036         simplfied symbolic operands to the form that references $29.
21037         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
21038         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
21039
21040 2002-01-03  Richard Henderson  <rth@redhat.com>
21041
21042         * local-alloc.c (function_invariant_p): Update commentary.
21043
21044 2002-01-04  H.J. Lu <hjl@gnu.org>
21045
21046         * toplev.c (rest_of_compilation): Fix a typo when calling
21047         cleanup_cfg.
21048
21049 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21050
21051         * c-common.c: Fix formatting.
21052         * diagnostic.c: Likewise.
21053         * doloop.c: Likewise.
21054         * dwarf2out.c: Likewise.
21055
21056 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21057
21058         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
21059         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
21060
21061 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
21062
21063         * cpperror.c: Update comments and copyright.
21064         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
21065         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
21066
21067 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21068
21069         * collect2.c (main): Use strcmp when testing for "-shared".
21070
21071 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
21072
21073         * cppmacro.c: Don't include intl.h.  Update comments.
21074         (new_number_token): Allocate enough buffer for 64-bit unsigned
21075         integers; update prototype.
21076         * cppmain.c: Update comments.
21077
21078 2002-01-03  William Cohen  <wcohen@redhat.com>
21079
21080         * function.h (struct function): Add profile.
21081         (current_function_profile): New.
21082         doc/extend.texi: Update documentation.
21083         * final.c (final_start_function): Use current_function_profile
21084         instead of profile_flag.
21085         (profile_after_prologue): Likewise.
21086         * function.c (expand_function_start): Likewise.
21087         (expand_function_start): Likewise.
21088         * config/alpha/alpha.c (direct_call_operand):
21089         (alpha_does_function_need_gp): Likewise.
21090         (alpha_expand_prologue): Likewise.
21091         * config/arm/arm.c (arm_expand_prologue): Likewise.
21092         thumb_expand_prologue: Likewise.
21093         * config/d30v/d30v.c (d30v_stack_info): Likewise.
21094         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
21095         (fr30_expand_prologue): Likewise.
21096         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
21097         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
21098         * config/i386/i386.h (FINALIZE_PIC): Likewise.
21099         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
21100         * config/i960/i960.c (i960_output_function_prologue): Likewise.
21101         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
21102         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
21103         (m32r_expand_prologue): Likewise.
21104         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
21105         (m88k_expand_prologue): Likewise.
21106         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
21107         * config/mips/mips.c (compute_frame_size): Likewise.
21108         (mips_expand_prologue): Likewise.
21109         (mips_can_use_return_insn): Likewise.
21110         * config/pa/elf.h (ASM_FILE_START): Likewise.
21111         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
21112         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
21113         * config/pa/som.h (ASM_FILE_START): Likewise.
21114         * config/romp/romp.c (romp_using_r14): Likewise.
21115         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
21116         (rs6000_stack_info): Likewise.
21117         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21118         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
21119         * config/v850/v850.c (compute_register_save_size): Likewise.
21120
21121 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
21122
21123         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
21124         gen_lowpart_common fails, use gen_lowpart_SUBREG.
21125
21126 2002-01-03  Turly O'Connor  <turly@apple.com>
21127
21128         * darwin.c (machopic_output_possible_stub_label): Don't generate
21129         stub routines for pseudo-stubs which we've just defined.
21130
21131 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21132
21133         * builtins.c: Fix formatting.
21134         * c-typeck.c: Likewise.
21135         * combine.c: Likewise.
21136         * expr.c: Likewise.
21137         * loop.c: Likewise.
21138
21139 2002-01-03  Andreas Schwab  <schwab@suse.de>
21140
21141         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
21142         and return true if _cpp_push_next_buffer pushed a new include
21143         file.
21144         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
21145         _cpp_pop_file_buffer did not push a new file.
21146         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
21147
21148 2002-01-02  Eric Christopher  <echristo@redhat.com>
21149
21150         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
21151         FIND_REG_INC_NOTE call. Update copyright.
21152         * loop.c (canonicalize_condition): Ditto.
21153         * reorg.c (delete_scheduled_jump): Ditto.
21154
21155 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21156
21157         * gcse.c: Fix formatting.
21158
21159 2002-01-03  Graham Stott  <grahams@redhat.com>
21160
21161         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
21162         forward defs for struct tags rtx_def, union_tree, rtvec_def
21163         also output corresponding typedefs for rtx, tree, and rtvec.
21164
21165         * system.h: Move forward defs for struct tags rtx_def, union_tree,
21166         rtvec_def along with corresponding typedefs for rtx, tree, and
21167         rtvec to config.h, hconfig.h, tconfig.h.
21168
21169 2002-01-03  Graham Stott  <grahams@redhat.com>
21170
21171         * tree.h: Update copyright date.
21172         (IS_EXPR_CODE_CLASS): Add parenthesis.
21173         (TREE_SET_CODE): Add whitespace.
21174         (TREE_CHECK): Add parenthesis.
21175         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
21176         (CST_OR_CONSTRUCTOR_CHECK):
21177         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
21178         (TREE_SYMBOL_REFERENCED): Whitespace.
21179         (INT_CST_LT): Likewise.
21180         (INT_CST_LT_UNSIGNED): Likewise.
21181         (tree_real_cst): Unwrap comment.
21182         (tree_string): Likewise.
21183         (tree_complex): Likewise.
21184         (IDENTIFIER_POINTER): correct cast.
21185         (SAVE_EXPR_CONTEXT): Whitespace.
21186         (EXPR_WFL_FILENAME_NODE): Likewise.
21187         (EXPR_WFL_FILENAME): Remove parenthesis.
21188         (DECL_ORIGIN): Add parenthesis.
21189         (DECL_FROM_INLINE): Use NULL_TREE.
21190         (build_int_2): Whitespace.
21191         (build_type_variant): Add parenthesis.
21192
21193         * gcc/jcf-parse.c: Update copyright date.
21194         (yyparse): Constify resource_filename.
21195
21196 2002-01-03  Graham Stott  <grahams@redhat.com>
21197
21198         * rtl.h: Update copyright date.
21199         (RTL_CHECK1): Wrap long line.
21200         (RTL_CHECK2): Likewise.
21201         (RTL_CHECKC1): Wrap long line and whitespace.
21202         (RTL_CHECKC2): Likewise.
21203         (XWINT): Whitespace.
21204         (XINT): Likewise.
21205         (XSTR): Likewise.
21206         (XEXP): Likewise.
21207         (XVEC): Likewise.
21208         (XMODE): Likewise.
21209         (XBITMAP): Likewise.
21210         (XTREE): Likewise.
21211         (XBBDEF): Likewise.
21212         (XTMPL): Likewise.
21213         (X0WINT): Likewise.
21214         (X0INT):Likewise.
21215         (X0UINT): Likewise.
21216         (X0STR): Likewise.
21217         (X0EXP): Likewise.
21218         (X0VEC): Likewise.
21219         (X0MODE): Likewise.
21220         (X0BITMAP): Likewise.
21221         (X0TREE): Likewise.
21222         (X0BBDEF): Likewise.
21223         (X0ADVFLAGS): Likewise.
21224         (X0CSELIB): Likewise.
21225         (X0MEMATTR): Likewise.
21226         (XCWINT): Likewise.
21227         (XCINT): Likewise.
21228         (XCUINT): Likewise.
21229         (XCSTR): Likewise.
21230         (XCEXP): Likewise.
21231         (XCVEC): Likewise.
21232         (XCMODE): Likewise.
21233         (XCBITMAP): Likewise.
21234         (XCTREE): Likewise.
21235         (XCBBDEF): Likewise.
21236         (XCADVFLAGS): Likewise.
21237         (XCCSELIB): Likewise.
21238         (XC2EXP): Likewise.
21239         (INSN_UID): Likewise.
21240         (PREV_INSN): Likewise.
21241         (PATTERN): Likewise.
21242         (INSN_CODE): Likewise.
21243         (PUT_REG_NOTE_KIND): Likewise.
21244         (CODE_LABEL_NUMBER): Likewise.
21245         (NOTE_SOURCE_FILE): Likewise.
21246         (NOTE_BLOCK): Likewise.
21247         (NOTE_EH_HANDLER): Likewise.
21248         (NOTE_RANGE_INFO): Likewise.
21249         (NOTE_LIVE_INFO): Likewise.
21250         (NOTE_BASIC_BLOCK): Likewise.
21251         (NOTE_EXPECTED_VALUE): Likewise.
21252         (NOTE_LINE_NUMBER): Likewise.
21253         (LABEL_NAME): Likewise.
21254         (LABEL_NUSES): Likewise.
21255         (LABEL_ALTERNATE_NAME): Likewise.
21256         (ADDRESSOF_DECL): Likewise.
21257         (JUMP_LABEL): Likewise.
21258         (LABEL_NEXTREF): Likewise.
21259         (REGNO): Likewise.
21260         (ORIGINAL_REGNO: Likewise.
21261         (HARD_REGISTER_NUM_P): Add parenthesis.
21262         (SUBREG_REG): Whitespace.
21263         (SUBREG_BYTE): Likewise.
21264         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
21265         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
21266         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
21267         (ASM_OPERANDS_INPUT_VEC): Likewise.
21268         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
21269         (ASM_OPERANDS_INPUT): Likewise.
21270         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
21271         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
21272         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
21273         (ASM_OPERANDS_INPUT_MODE): Likewise.
21274         (ASM_OPERANDS_SOURCE_FILE): Likewise.
21275         (ASM_OPERANDS_SOURCE_LINE): Likewise.
21276         (MEM_SET_IN_STRUCT_P): Minor reformat.
21277         (TRAP_CONDITION): Whitespace.
21278         (TRAP_CODE): Likewise.
21279         (COND_EXEC_TEST): Likewise.
21280         (COND_EXEC_CODE): Likewise.
21281         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
21282         (PHI_NODE_P): Add parenthesis.
21283         (plus_constant): Whitespace and add parenthesis.
21284
21285 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21286
21287         * config/avr/avr.c: Fix comment typos.
21288         * config/c4x/c4x.md: Likewise.
21289         * config/dsp16xx/dsp16xx.h: Likewise.
21290         * config/dsp16xx/dsp16xx.md: Likewise.
21291         * config/i386/i386.md: Likewise.
21292         * config/ia64/ia64.c: Likewise.
21293         * config/m32r/m32r.h: Likewise.
21294         * config/m68hc11/m68hc11.md: Likewise.
21295         * config/mmix/mmix.c: Likewise.
21296         * config/mn10200/mn10200.c: Likewise.
21297         * config/romp/romp.c: Likewise.
21298         * config/sh/sh.c: Likewise.
21299         * config/stormy16/stormy16.c: Likewise.
21300         * config/stormy16/stormy16.h: Likewise.
21301         * config/stormy16/stormy16.md: Likewise.
21302
21303 2002-01-03  Graham Stott  <grahams@redhat.com>
21304
21305         * loop.h: Update copyright date.
21306         (LOOP_MOVABLES): Fix typo.
21307         (LOOP_REGS): Likewise.
21308         (LOOP_IVS): Likewise.
21309
21310 2002-01-03  Graham Stott  <grahams@redhat.com>
21311
21312         * cppinit.c: Update copyright date.
21313         Don't include output.h
21314         * Makefile.in: Update copyright date.
21315         Update dependency.
21316
21317 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21318
21319         PR c/5226
21320         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
21321         (-pthread) Add to RS/6000 options.
21322
21323 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21324
21325         * except.c: Fix comment typos.
21326         * loop.c: Likewise.
21327         * varasm.c: Likewise.
21328         * doc/tm.texi: Fix a typo.
21329
21330 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
21331
21332         * c-typeck.c (output_init_element): Allow initializing static storage
21333         duration objects with compound literals.
21334
21335 2002-01-02  Richard Henderson  <rth@redhat.com>
21336
21337         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
21338         after abusing it.
21339
21340 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21341
21342         * gcc.c (default_compilers): Const-ify.
21343         * mips-tdump.c (stab_names): Likewise.
21344         * mips-tfile.c (map_coff_types, map_coff_storage,
21345         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
21346         pseudo_ops_t, pseudo_ops): Likewise.
21347         * protoize.c (default_include): Likewise
21348
21349         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
21350         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
21351         Add array size in declaration.
21352         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
21353         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
21354         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
21355         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
21356         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
21357         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
21358         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
21359         emtens, make_nan): Const-ify.
21360         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
21361         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
21362
21363 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
21364
21365         * config.gcc (ia64-*-*): Set extra_headers.
21366         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
21367         * config/alpha/t-osf: Remove.
21368         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
21369
21370 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
21371
21372         * config/rs6000/t-aix43: Revert previous change.
21373
21374 2002-01-02  Jason Merrill  <jason@redhat.com>
21375
21376         * c-decl.c (c_expand_body): Call outlining_inline_function when
21377         emitting an inline function out of line.
21378
21379 2002-01-02  Richard Henderson  <rth@redhat.com>
21380
21381         * dwarf2out.c (limbo_die_node): Add created_for member.
21382         (new_die): New argument created_for.  Update all callers.
21383         (mark_limbo_die_list): New.
21384         (dwarf2out_init): Register limbo_die_list as a root.
21385         (dwarf2out_finish): Force insert limbo dies into their function
21386         context.
21387
21388 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
21389
21390         PR c++/5089
21391         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
21392
21393 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21394
21395         * config/h8300/fixunssfsi.c: Update copyright.
21396         Fix comment typos.
21397         Fix formatting.
21398         * config/h8300/h8300.c: Update copyright.
21399         Eliminate warnings.
21400
21401 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21402
21403         * config/romp/romp.c: Fix comment formatting.
21404         * config/romp/romp.h: Likewise.
21405         * config/romp/romp.md: Likewise.
21406         * config/s390/s390.c: Likewise.
21407         * config/stormy16/stormy16.c: Likewise.
21408         * config/stormy16/stormy16.h: Likewise.
21409
21410 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
21411
21412         * c-common.h (genrtl_expr_stmt_value): Declare.
21413         * c-semantics.c (genrtl_goto_stmt): Redirect to...
21414         (genrtl_goto_stmt_value): ... this new function.  Pass new
21415         argument down to expand_expr_stmt_value, taking
21416         TREE_ADDRESSABLE into account.
21417         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
21418         STMT_EXPR as addressable, i.e., one whose result we want.
21419         * expr.c (expand_expr): Don't save expression statement value
21420         of labeled_blocks or loop_exprs.
21421         * stmt.c (expand_expr_stmt): Redirect to...
21422         (expand_expr_stmt_value): ... this new function.  Use new
21423         argument to tell whether to save expression value.
21424         (expand_end_stmt_expr): Reset last_expr_type and
21425         last_expr_value if we don't have either.
21426         * tree-inline.c (declare_return_variable): Mark its use
21427         statement as addressable.
21428         * tree.h: Document new use of TREE_ADDRESSABLE.
21429         (expand_expr_stmt_value): Declare.
21430
21431 2002-01-01  Tom Rix  <trix@redhat.com>
21432
21433         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
21434         rs6000_emit_allocate_stack.
21435
21436 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
21437
21438         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
21439         ${srcdir}/ginclude/ to every entry in extra_headers.
21440         * configure: Regenerate.
21441         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
21442         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
21443         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
21444         * ginclude/proto.h: Rename to config/convex/proto.h.
21445
21446 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21447
21448         * attribs.c (handle_vector_size_attribute): Use host_integerp
21449         and tree_int_cst; remove warnings.
21450         * caller-save.c (insert_restore): Add cast to get rid of warning.
21451         (insert_save): Likewise.
21452         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
21453         * regmove.c (find_matches): Add temporary var to kill a warning.
21454
21455 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
21456
21457         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
21458         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
21459         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
21460         (vms-dwarf2eh.o): Add Makefile rule.
21461         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
21462         * config/alpha/vms-dwarf2eh.asm: New file.
21463
21464         * gcc.c (delete_if_ordinary): Delete all versions.
21465
21466 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
21467
21468         * config/mmix/mmix.md: Update FIXME to not mention
21469         define_constants.
21470         (MMIX_rJ_REGNUM): New define_constants constant.
21471         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
21472         "*movdicc_real"): Adjust contraints formatting.
21473         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
21474         for branch prediction.
21475         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
21476         output template.
21477         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
21478         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
21479         number.  Delete related FIXMEs.
21480         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
21481         from number to MMIX_rJ_REGNUM.
21482         (TARGET_MASK_BRANCH_PREDICT): New.
21483         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
21484         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
21485         value.  Add -mbranch-predict and -mno-branch-predict.
21486         (TARGET_VERSION): Drop date.
21487         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
21488         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
21489         for finding out global symbols.
21490         (mmix_asm_output_labelref): Revert condition for global symbol.
21491         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
21492         (mmix_print_operand_punct_valid_p): A '+' is valid.
21493
21494 See ChangeLog.6 for earlier changes.