Makefile.in: Remove all trace of tradcpp.c, tradcpp.h, tradcif.y and related files.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
2
3         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
4         tradcif.y and related files.
5
6 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
7
8         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
9
10 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11
12         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
13
14 2002-06-30  Devang Patel  <dpatel@apple.com>
15
16         * objc/objc-act.c (finish_file): Avoid finish_objc() if
17         -fsyntax-only.
18
19 Fri Jun 28 17:22:37 2002  Denis Chertykov  <denisc@overta.ru>
20                           Frank Ch. Eigler  <fche@redhat.com>
21                           Matthew Green  <mrg@redhat.com>
22                           Richard Henderson <rtl@redhat.com>
23                           Dave Hudson  <dave.hudson@ubicom.com>
24                           Jeff Johnston  <jjohnstn@redhat.com>
25                           Alan Lehotsky <apl@alum.mit.edu>
26                           Bernd Schmidt  <bernds@redhat.com>
27                           Graham Stott  <grahams@redhat.com>
28                           
29         * doc/extend.texi: Add ip2k port to description of attribute
30         naked.
31         * doc/install.texi (Specific): Add ip2k description.
32         * doc/install-old.texi (Configurations): Add ip2k to possible
33         cpu types.
34         * doc/md.texi: Document ip2k constraints.
35         * config/ip2k/crt0.S: New file.
36         * config/ip2k/ip2k-protos.h: New file.
37         * config/ip2k/ip2k.c: New file.
38         * config/ip2k/ip2k.h: New file.
39         * config/ip2k/ip2k.md: New file.
40         * config/ip2k/libgcc.S: New file.
41         * config/ip2k/t-ip2k: New file.
42
43 2002-06-30  Hans-Peter Nilsson  <hp@bitrange.com>
44
45         * config/mmix/mmix.md ("return"): New pattern.
46         * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
47         (TARGET_USE_RETURN_INSN): New macros.
48         (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
49         (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
50         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
51         (MMIX_POP_ARGUMENT): New macro.
52         (mmix_target_asm_function_prologue): When no epilogue is executed,
53         just emit a blank line.  Use MMIX_POP_ARGUMENT with final POP insn.
54         (mmix_print_operand) <case '.'>: New case.
55         (mmix_print_operand_punct_valid_p): Match '.'.
56         (mmix_use_simple_return): New function.
57         * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
58         * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
59         -msingle-exit, -mno-single-exit.
60         (MMIX Options): Ditto.
61
62 2002-06-30  Aldy Hernandez  <aldyh@redhat.com>
63
64         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
65
66 2002-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
67
68         * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
69
70 2002-06-30  Alan Modra  <amodra@bigpond.net.au>
71
72         * unroll.c (loop_iterations): Handle EQ loops.
73
74 2002-06-29  David Edelsohn  <edelsohn@gnu.org>
75
76         * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
77         constraint in define_expand, not splitter.
78         Formatting.
79
80 2002-06-29  Aldy Hernandez  <aldyh@redhat.com>
81
82         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
83         build_function_type_list instead of build_function_type.
84
85         * config/ia64/ia64.c (ia64_init_builtins): Same.
86
87         * config/alpha/alpha.c (alpha_init_builtins): Same.
88
89         * config/rs6000/rs6000.c (altivec_init_builtins): Same.
90
91         * config/arm/arm.c (arm_init_builtins): Same.
92
93         * tree.h: Add build_function_type_list prototype.
94
95         * tree.c (build_function_type_list): New.
96
97 2002-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
98
99         * collect2.c (scan_prog_file): Fix typo in message.
100
101 2002-06-28  Aaron Lehmann  <aaronl@vitelus.com>
102
103         * fold-cont.c: Remove unused CHARMASK.
104
105 2002-06-29  Neil Booth  <neil@daikokuya.co.uk>
106
107         PR preprocessor/7150
108         * cppmain.c (scan_translation_unit_trad): Simplify.
109         * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
110
111 2002-06-29  Neil Booth  <neil@daikokuya.demon.co.uk>
112
113         * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
114         Don't use CPP_PREDEFINES.
115         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
116         Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
117         * config/i386/djgpp.h, config/i386/i386-coff.h,
118         config/i386/i386-interix.h, config/i386/i386-interix3.h,
119         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
120         config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
121         config/i386/uwin.h: Similarly.
122
123 2002-06-29  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
124
125         * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
126         flag_inline_trees to enable inlining.
127
128 2002-06-28  Phil Edwards  <pme@gcc.gnu.org>
129
130         * configure.in (gcc_gxx_include_dir):  Change to match versioned
131         C++ headers if --enable-version-specific-runtime-libs is used.
132         * configure:  Regenerate.
133
134 2002-06-28  Jan Hubicka  <jh@suse.cz>
135
136         * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
137
138 2002-06-28  Stephen Clarke  <stephen.clarke@superh.com>
139
140         * combine.c (combine_simplify_rtx): Pass the mode of the
141         shift count, not the shift operation when trying to simplify
142         a shift on a SHIFT_COUNT_TRUNCATED target.
143
144 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
145
146         * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
147         avoid the auto increment addressing modes.
148         ("*subsi3"): Likewise.
149         (split for add/sub on address): For 68HC12 push the value on 
150         the stack and do the operation with a pop.
151
152 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
153
154         * cpplib.c (_cpp_handle_directive): Move #define-specific
155         code to the #define handler...
156         (do_define): ...here.
157         (lex_macro_node): No longer a need to check for comments here.
158
159 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
160
161         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
162         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
163         Declare.
164         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
165         do not reorder basic blocks at the end when optimizing for size.
166
167 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
168
169         * config/m68hc11/m68hc11.c (autoinc_mode): New function.
170         (m68hc11_make_autoinc_notes): New function.
171         (m68hc11_split_move): Be very cautious when spliting a move with
172         auto increment/decrement modes because this may result in incompatible
173         directions; add REG_INC notes to the resulting insn for CSE reg.
174
175 2002-06-28  Stephane Carrez  <Stephane.Carrez@nerim.fr>
176
177         * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
178         can be a valid address.
179
180 2002-06-28  Aldy Hernandez  <aldyh@redhat.com>
181
182         * config/rs6000/rs6000.c: Remove unusued variables from last
183         patch.
184
185 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
186
187         Revert:
188         * config/rs6000/rs6000.c (rs6000_override_options): Move
189         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
190
191 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
192
193         * config/rs6000/rs6000.c (altivec_expand_builtin): Move
194         lvx/stv/dst builtins...
195         (altivec_expand_ld_builtin): ...to here.
196         (altivec_expand_st_builtin): ...here.
197         (altivec_expand_dst_builtin): ...and here (respectively).
198
199 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
200
201         * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
202
203 2001-06-08  Bernd Schmidt  <bernds@redhat.com>
204
205         * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
206         subregs.
207         * recog.c (general_operand, register_operand): Disallow them.
208
209 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
210
211         PR preprocessor/7138
212         * cpplib.c (_cpp_handle_directive): Do traditional
213         preparation after setting state.angled_headers.
214         * cpptrad.c (scan_out_logical_line): Fix potential
215         quote bug.
216
217 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
218
219         * config/rs6000/rs6000.c (rs6000_override_options): Move
220         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
221
222 2002-06-27  Bob Wilson  <bob.wilson@acm.org>
223
224         * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
225         (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
226         zero_cost_loop_end): Remove unnecessary "parallel" from insns.
227
228 2002-06-27  Roger Sayle  <roger@eyesopen.com>
229
230         * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
231         * config/stormy16/stormy16.h: Likewise.
232
233         * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
234         with #define.
235
236 2002-06-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
237
238         * doc/install.texi (Binaries): Add Sinix/Reliant Unix.  Move
239         Hitachi entry.  Make punctuation more consistent.
240
241 2002-06-27  Matt Kraai  <kraai@alumni.cmu.edu>
242
243         * doc/install.texi: Change ` bit' to `-bit'.
244         * doc/md.texi: Change `-bits' to `-bit'.
245         * doc/tm.texi: Change `-bits' to ` bits'.
246
247 2002-06-27  Daniel Berlin  <dberlin@dberlin.org>
248
249         * gcse.c (hoist_code): Rewrite to only get list of dominated
250         blocks once per BB. Also fix reversed test (by removing need for 
251         the test at all).
252
253 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
254
255         * cpphash.h (_cpp_set_trad_context): Remove.
256         * cpplib.c (prepare_directive_trad): Do nothing for #define.
257         (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
258         * cpptrad.c: Update comments.
259         (_cpp_read_logical_line_trad): Let scan_logical_line handle
260         updating the current context.
261         (scan_logical_line): Update the current context.
262         (_cpp_create_trad_definition): Similarly.
263         (_cpp_set_trad_context): Remove.
264
265 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
266
267         PR preprocessor/7070
268         * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
269
270 2002-06-26  Bob Wilson  <bob.wilson@acm.org>
271
272         * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
273         config/xtensa/xtensa.c (xtensa_return_addr): New function.
274         config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
275         config/xtensa/xtensa.md (fix_return_addr): New pattern.
276
277 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
278
279         * mips.c (coprocessor_operand, coprocessor2_operand,
280         symbolic_operand): Move prototypes from here...
281         * mips-protos.h (coprocessor_operand, coprocessor2_operand,
282         symbolic_operand): ...to here.
283
284 Wed Jun 26 16:32:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
285
286         * config/sh/crt1.asm: remove _stack label definition
287         and sentinel value.
288
289 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
290
291         * varasm.c: Include real.h before output.h.
292
293 2002-06-26  Aldy Hernandez  <aldyh@redhat.com>
294
295         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
296         check for TARGET_ALTIVEC.
297
298 2002-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
299
300         * config.gcc (vax-*-vms*): Make obselete.
301
302 2002-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
303
304         * gcc.c (warn_std): Delete.
305
306 2002-06-25  Loren J. Rittle  <ljrittle@acm.org>
307
308         * doc/extend.texi: Fix formatting of last checkin.
309
310 2002-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
311
312         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
313         underscore from __IEEE_FP and __IEEE_FP_INEXACT.
314
315 2002-06-25  Aldy Hernandez  <aldyh@redhat.com>
316
317         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
318         discrepancies from motorola's documentation.
319
320 Tue Jun 25 21:51:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
321
322         * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
323         GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
324
325         * config/sh/lib1funcs.asm (udivdi3): Make first divide step 
326         produce a 32 bit result before normalization, then normalize with a
327         left shift.  Compute approximative error of 2nd reciprocal
328         approximation in 2's complement.  Fix mask generation from upper
329         longword of second divide stage result.
330         For large divisor, fix shift count used to truncate first stage
331         divide result; make decision if to adjust upwards based on comparison
332         of higher parts of normalized values.
333         (udivdi): Likewise.  Undo normalization of result for large divisor
334         case.
335
336 2002-06-25  David S. Miller  <davem@redhat.com>
337
338         * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
339
340 2002-06-25  Neil Booth  <neil@daikokuya.co.uk>
341
342         * cpplib.c (do_include_common): Revert to correct line number
343         if -traditional.
344         * cpptrad.c (scan_out_logical_line): Treat null directive as
345         white space.  Invlidate MI optimization for non-whitespace
346         text outside a directive.
347
348 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
349
350         * Makefile.in (SHELL): Set to @SHELL@.
351         * fixinc/Makefile.in (SHELL): Likewise.
352
353         * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
354         fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
355         initialization.
356
357 2002-06-24  Jeff Law <law@redhat.com>
358
359         * flow.c (propagate_one_insn): When removing an insn
360         with a REG_LIBCALL note but not the entire libcall sequence,
361         delete the associated REG_RETVAL note.
362
363 Mon Jun 24 21:05:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
364
365         * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
366         (udivsi3): Likewise.  Rewrite SH1 implementation.
367         (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
368         * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
369         (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
370         * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
371         (_moddi3): Likewise.
372
373         * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
374
375         * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
376         arguments into account for stack_regs.
377
378 2002-06-24  Matt Kraai  <kraai@alumni.cmu.edu>
379
380         * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
381         in examples.
382         
383 2002-06-24  Art Haas  <ahaas@neosoft.com>
384
385         * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
386         * doc/tm.texi (Frame Layout): Likewise.
387
388 2002-06-20  Steve Ellcey  <sje@cup.hp.com>
389         * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
390         Set float_format to i128.
391
392 2002-06-24  David S. Miller  <davem@redhat.com>
393
394         * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
395         32-bit ABI libfuncs to NULL.
396
397         * config/sparc/sparc.md: Use define_insn_and_split.  Use braced
398         strings instead of quoted strings for code blocks.
399
400         * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
401         optabs if op1 is const0_rtx.
402
403         * Makefile.in (GTFILES): Add basic-block.h
404         * basic-block.h (label_value_list, tail_recursion_label_list):
405         Mark with GTY.
406
407 2002-06-24  Neil Booth  <neil@daikokuya.co.uk>
408
409         * cpptrad.c (scan_out_logical_line): Check recursing only when
410         we know we have a macro invocation in the function-like case.
411         Only call _cpp_handle_directive if we know we have a good
412         directive, or we want to reject a bad directive.
413
414 2002-06-24  Alan Modra  <amodra@bigpond.net.au>
415
416         * doloop.c (doloop_valid_p): Correct comment.
417         (doloop_modify_runtime <abs_inc != 1>): Simplify.
418         (doloop_modify_runtime <do-while>): Don't emit code when NE.
419
420 Thu Jun 20 00:26:53 2002  Denis Chertykov  <denisc@overta.ru>
421
422         * config.gcc: Add support for ip2k.
423
424 2002-06-23  Jan Hubicka  <jh@suse.cz>
425             Jeff Law <law@redhat.com>
426
427         * function.h (struct emit_status): Clarify potential contents
428         of regno_reg_rtx array.
429         * integrate.c (copy_rtx_and_substitute): Update comments.  Make
430         sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
431
432         * reg-stack.c (convert_regs_exit): Push the registers to stack in
433         proper order.
434
435 2002-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
436
437         PR middle-end/6963
438         * function.c (assign_stack_temp_for_type): Do not return
439         the same MEM rtx for multiple uses of a stack slot.
440
441 2002-06-22  David S. Miller  <davem@redhat.com>
442
443         PR target/6841 target/6770 target/6719
444         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
445         NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
446         GENERAL_OR_EXTRA_FP_REGS.
447
448 2002-06-22  Neil Booth  <neil@daikokuya.co.uk>
449
450         * cpptrad.c (struct fun_macro): Add line number.
451         (scan_out_logical_line): Set it, and use it to report unterminated
452         macro invocations.
453
454 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
455
456         * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
457         VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
458         DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
459         DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
460         REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
461         REGEXP_ONEOF, check_name): Const-ify.
462
463 2002-06-21  Matt Thomas  <matt@3am-software.com>
464
465         * config/vax/vax.c (vax_output_function_prologue): Use
466         REGISTER_PREFIX.  Fix some indentation.
467         * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
468         (VAX_ISTREAM_SYNC): Define.
469         (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC.  Move the
470         i-stream sync to the end.
471         (REGISTER_PREFIX): Define as "".
472         (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
473
474 2002-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
475
476         * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
477         configurations.
478
479 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
480
481         * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
482         tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
483
484 2002-06-21  Matt Thomas  <matt@3am-software.com>
485
486         * config/vax/netbsd.h: Adjust a comment.
487         (TARGET_DEFAULT): Redefine as 0.
488
489 2002-06-21  Richard Henderson  <rth@redhat.com>
490
491         * bb-reorder.c (make_reorder_chain_1): Search harder for the
492         vax casesi fallthru edge.
493         * cfglayout.c (cleanup_unconditional_jumps): Use
494         redirect_edge_succ_nodup.  Do not delete ADDR_VEC insns as dead.
495         * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
496         block after ADDR_VEC.
497
498 2002-06-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
499
500         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
501
502 2002-06-21  Neil Booth  <neil@daikokuya.co.uk>
503
504         * cpperror.c (cpp_error): For traditional CPP, default to
505         diagnostics on pfile->line.
506         * cpplib.c (prepare_directive_trad): Set line number for
507         diagnostics for #define too.
508         * cpptrad.c (skip_whitespace): Skip comments properly.
509         (_cpp_expansions_different_trad): Initialize quote2.
510
511 2002-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
512
513         * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
514         * config/mmix/mmix.h: Ditto.
515         * config/mmix/mmix-protos.h: Ditto.
516         * config/mmix/mmix.c: Ditto.  Fix typo in comment.
517         * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
518         comment.  Comment extra CC modes.
519
520 2002-06-20 Jan Hubicka  <jh@suse.cz>
521
522         * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
523         (scope_to_insns_finalize): Do not call set_block_levels; handle
524         sequences.
525         (choose_inner_scope): New.
526         * rtl.h (choose_inner_scope): Declare.
527
528 2002-06-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
529
530         * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
531         HOST_WIDE_INT.
532         * pa.c (pa_asm_output_mi_thunk): Likewise.
533         (n_deferred_plabels): Change type to size_t.
534         (output_deferred_plabels, output_call): Use size_t instead of int.
535
536 2002-06-20  Richard Henderson  <rth@redhat.com>
537
538         PR target/4041
539         * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
540         pattern and adjust constraints for coldfire.
541
542 2002-06-20  Richard Henderson  <rth@redhat.com>
543
544         * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
545
546 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
547
548         * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
549
550 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
551
552         * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
553
554 2002-06-20  Stan Shebs  <shebs@apple.com>
555
556         * dominance.c: Include errors.h instead of error.h.
557
558 2002-06-20  Neil Booth  <neil@daikokuya.co.uk>
559
560         * cppexp.c (cpp_interpret_integer): Don't force traditional
561         numbers to be unsigned.
562         * cpplib.c (prepare_directive_trad): Set line number for
563         diagnostics.
564         * cpptrad.c (scan_out_logical_line): Continue scanning out
565         at start of buffer.
566         * gcc.c (trad_capable_cpp): Use cc1 always.
567
568 2002-06-20  Jeffrey Law  <law@redhat.com>
569
570         * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
571         elimination in leaf functions by default yet.
572
573 2002-06-20  Richard Sandiford  <rsandifo@redhat.com>
574
575         * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
576
577 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
578
579         * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
580         multilibs.
581         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
582         Fixes PR other/6836.
583
584 Thu Jun 20 19:42:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
585                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
586
587         Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
588
589         * basic-block.h: Do not include et-forest.h
590         (dominance_info): Declare as struct dominance-info.
591         * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
592         deleting block.
593         * dominance.c (struct dominance_info): Define.
594         (BB_NODE, SET_BB_NODE): New macros.
595         (bb_hash_func, bb_eq_func): Kill.
596         (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
597         nearest_common_dominator, dominated_by_p, recount_dominator,
598         add_to_dominance_info, delete_from_dominance_info): update for new
599         representation.
600         (get_dominated_by, redirect_immediate_dominators): Rewrite using
601         enumerate_sons.
602         * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
603         find_if_case_1, find_if_case_2): Remove killed blocks from dominance
604         structure.
605
606         * et-forest.h: Update copyright; revamp all function to operate on
607         nodes
608         (et_forest_value): Kill.
609         (et_forest_enumerate_sons, et_forest_node_value): New.
610         * et-forest.c: Update copyright.
611         * et-forest.h: Update copyright; revamp all function to operate on
612         nodes
613         (et_forest_value): Kill.
614         (et_forest_enumerate_sons, et_forest_node_value): New.
615
616         Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
617
618         * basic-block.h: Inlude et-forest.h
619         (basic_block_def): Kill dominator.
620         (dominance_info): New type.
621         (loops): Use dominace_info.
622         (dominace handling functions): Take dominace_info as argument
623         instead of bitmaps.
624         (create_preheader): Likewise.
625         * cfg.c (entry_exit_blocks): Kill dominator.
626         (dump_flow_info): Do not dump dominators.
627         * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
628         dominators.
629         * cfgloop.c (flow_pre_header_find): Use dominacne_info.
630         (flow_loops_pre_header_scan, make_forwarder_block,
631         canonicale_loop_headers, flow_loops_find): Likewise.
632         * dominance.c: Include error.h
633         (idoms_to_doms): Kill.
634         (bb_hash_func, bb_eq_func): New static functions.
635         (debug_dominace_info): New global function.
636         (calculate_dominance_info): Use new et forest structure.
637         (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
638         get_dominated_by, redirect_immediate_dominators,
639         nearest_common_dominator, dominated_by_p, verify_dominators,
640         recount_dominator, iterate_fix_dominators, add_to_dominace_info,
641         delete_from_dominance_info): New global functions.
642         * gcse.c (domnators): CHange to dominance_info.
643         (alloc_hoist_mem): Do not alloc dominators
644         (free_code_hoist_mem): Use free_dominance_info.
645         (compute_code_hoist_data): Use dominance_info.
646         (hoist_code): Likewise.
647         * ifcvt.c (post_dominators): Likewise.
648         (find_if_case_2, if_convert): Likewise.
649         * predict.c (process_note_predictions, process_note_prediction,
650         estimate-probability): Likewise.
651         * sched-rgn.c (find_rgns, init_regions): Likewise.
652         * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
653         find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
654         * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
655         find_evaluations, convert_to_ssa): Likewise.
656         * ssa.h (compute_dominance_frontiers): Likewise.
657
658         Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
659
660         * Makefile.in (et-forest.c): Add.
661         * et-forest.c: New file.
662         * at-forest.h: New file.
663
664 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
665
666         * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
667         array size calculation.
668         * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
669         Likewise.
670
671         * diagnostic.c (diagnostic_kind_text): Const-ify.
672         * gengtype.c (lang_names): Likewise.
673
674 Thu Jun 20 17:25:29 CEST 2002  JAn HUbicka  <jh@suse.cz>
675
676         * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
677
678 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
679
680         * config/sol2.h: New file.
681         * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
682         (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
683         (sparc-*-chorusos*): Likewise.
684         (sparc-*-elf*): Likewise.
685         (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
686         (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
687         (sparc-hal-solaris2*): Likewise.
688         (sparc-*-solaris2*): Likewise.
689         (sparclite-*-elf*): Likewise.
690         (sparc86x-*-elf*): Likewise.
691         (sparc64-*-elf*): Likewise.
692
693         * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
694         config/sol2.h.
695         (ASM_SPEC): Override config/sol2.h version for now.
696         Removed obsolete GAS_REJECTS_MINUS_S variant.
697         (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
698         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
699         (TARGET_OS_CPP_BUILTINS): Likewise.
700         Assert system=unix.
701         (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
702         (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
703         config/sol2.h.
704         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
705         (ASM_CPU_SPEC): Define.
706         (SUBTARGET_EXTRA_SPECS): Define.
707
708         * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
709         in config/sparc/sol2.h.
710         (ASM_SPEC): Moved to config/sol2.h.
711         (CPP_CPU_SPEC): Simplified.
712         (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
713         consistency.
714         (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
715         (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
716         STARTFILE_ARCH64_SPEC.
717         (STARTFILE_SPEC): Moved to config/sol2.h
718         (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
719         (LINK_ARCH32_SPEC): Moved to config/sol2.h.
720         (LINK_ARCH64_SPEC): Simplified.
721         (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
722         (LINK_SPEC): Moved to config/sol2.h
723
724         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
725         config/sol2.h.
726         Use BITS_PER_WORD for size.
727         (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
728         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
729         (CPP_PREDEFINES): Removed OS-specific part handled by
730         TARGET_OS_CPP_BUILTINS.
731         (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
732         (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
733         (ASM_SPEC): Moved to config/sol2.h.
734         (PREFERRED_DEBUGGING_TYPE): Likewise.
735         (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
736         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
737         (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
738         (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
739
740         * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
741         * config/i386/sol2gas.h: Removed.
742
743 Thu Jun 20 12:14:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
744
745         * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
746
747 2002-06-16  Aldy Hernandez  <aldyh@redhat.com>
748         
749         * gcc.c-torture/execute/simd-1.c: New.
750
751         * gcc.dg/simd-1.c: New.
752
753         * doc/extend.texi (Vector Extensions): Document that we can
754         specify simd types not specifically supported by the hardware.
755         Document that simd types can be used as function arguments.
756         Document that signness does make a difference in SIMD types.
757         Misc cleanups and revisions to the vector extensions section.
758
759         * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
760         constants.
761
762         * expr.c (vector_mode_valid_p): New.
763
764         * expr.h: Add vector_mode_valid_p.
765
766         * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
767
768         * c-common.c (type_for_mode): Always build vector nodes regardless
769         of VECTOR_MODE_SUPPORTED_P.
770         (handle_mode_attribute): Error if we can't emulate a nonexisting
771         vector mode.
772         (handle_vector_size_attribute): Same.
773
774         * optabs.c (expand_binop): Open-code vector operations.
775         (expand_unop): Open-code vector unops.
776         (expand_vector_binop): New.
777         (expand_vector_unop): New.
778         
779         * c-typeck.c (build_binary_op): Allow vectors in binops.
780         Allow vectors in conditional operatiors.
781         (build_unary_op): Allow vectors in unary minus.
782
783         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
784         TARGET_ALTIVEC.
785
786 2002-05-20  Richard Henderson  <rth@redhat.com>
787
788         * c-common.c (c_common_get_alias_set): Correctly handle characters.
789         Rearrange order of expressions; don't handle vectors here.
790         * alias.c (get_alias_set): Let vectors match their components.
791
792 2002-06-19  Chris Demetriou  <cgd@broadcom.com>
793
794         * config/mips/mips.c (mips_emit_prefetch): Use hints which
795         match desired locality.
796
797 2002-06-19  Dhananjay R. Deshpande  <dhananjayd@kpit.com>
798
799         * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
800         (h8300_insert_attributes): New.
801
802 2002-06-19  Akim Demaille  <akim@epita.fr>
803
804         * c-parse.in (initelt: identifier ':' initval): Add an empty
805         action to fix a type clash.
806         (aliasdecl, classdef): Add the missing closing `;'.
807         Whitespace changes.
808         * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
809         $$ = $1 type clashes.
810
811 2002-06-19  Eric Christopher  <echristo@redhat.com>
812
813         * config/mips/mips.c (symbol_operand): New function.
814         (mips_emit_prefetch): Ditto.
815         * config/mips/mips-protos.h: Define.
816         * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
817         (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
818         (LEGITIMIZE_ADDRESS): Ditto.
819         * config/mips/mips.md (prefetch, prefetch_si_address,
820         prefetch_si, prefetch_di_address, prefetch_di): New patterns.
821
822 2002-06-19  Eric Christopher  <echristo@redhat.com>
823
824         * config/fp-bit.h: Add unordered defines for gofast.
825
826 2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>
827
828         * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
829         DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
830         DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
831         REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
832         checking and without it.
833         (decl_name, decl_mode_check_failed, regexp_name,
834         regexp_mode_check_failed): New functions.
835         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
836         gen_presence_set, gen_absence_set, gen_automaton,
837         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
838         gen_regexp_sequence, gen_reserv, gen_insn_reserv,
839         automaton_decl_hash, automaton_decl_eq_p): Use the macros.
840         (find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
841         (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
842         (find_insn_decl): Ditto.  Set up mode of work_insn_decl.
843         (decl_hash, decl_eq_p): Use the macros.
844         (find_decl): Ditto.  Set up mode of work_decl.
845         (process_excls, process_presence_absence, process_decls,
846         check_automaton_usage, process_regexp, process_regexp_decls,
847         check_usage, loop_in_regexp, check_loops_in_regexps,
848         process_regexp_cycles, add_advance_cycle_insn_decl,
849         initiate_states, initiate_excl_sets,
850         initiate_presence_absence_sets, copy_insn_regexp, transform_1,
851         transform_2): Use the macros.
852         (transform_3): Ditto.  Check mode before making transformations of
853         ALLOF.
854         (regexp_transform_func, transform_insn_regexps,
855         process_unit_to_form_the_same_automaton_unit_lists,
856         form_the_same_automaton_unit_lists_from_regexp,
857         form_the_same_automaton_unit_lists,
858         process_seq_for_forming_states, process_alts_for_forming_states,
859         create_alt_states, form_ainsn_with_same_reservs, make_automaton,
860         form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
861         estimate_one_automaton_bound, compare_max_occ_cycle_nums,
862         units_to_automata_heuristic_distr, create_ainsns,
863         units_to_automata_distr, create_automata): Use the macros.
864         (form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
865         (longest_path_length, min_issue_delay_pass_states,
866         output_dead_lock_vect, output_tables, output_insn_code_cases,
867         output_internal_insn_latency_func, output_print_reservation_func,
868         output_description, output_automaton_units, generate): Use the
869         macros.
870         (make_insn_alts_attr): Ditto.  Check case when there are not
871         alternatives in the reservation.
872         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
873         make_bypass_attr, form_important_insn_automata_lists,
874         expand_automata): Use the macros.
875
876 2002-06-20  Tim Josling  <tej@melbpc.org.au>
877
878         * Makefile.in: Clean up code to check for misspecified languages
879         in enable-languages.
880
881 2002-06-19  Andrew Pinski <pinskia@physics.uc.edu>
882
883         * cpptrad.c (_cpp_replacement_text_len): initialize len.
884
885 2002-06-19  Jason Merrill  <jason@redhat.com>
886
887         * Makefile.in (unstrap, restrap): New targets.
888         (bootstrap): Mention restrap.
889
890 2002-06-19  Matt Kraai  <kraai@alumni.cmu.edu>
891
892         * except.c (ehl_free): Remove.
893
894         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
895         builtin_define and builtin_define_std.
896
897 2002-06-19  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
898
899         * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
900         (sCOND): Restrict operand class so that gcc knows how to reload them.
901         (bitfield_set): Merge two unnamed insn's using alternatives.
902         (call_value): Remove constraint on unused uperand.
903         (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
904         (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
905
906         * longlong.h (count_trailing_zeros): Escape newline and beautify.
907
908 2002-06-19  Mark Mitchell  <mark@codesourcery.com>
909
910         * Makefile.in (QMTEST_DIR): Simplify definition.
911
912 2002-06-19  Nick Clifton  <nickc@cambridge.redhat.com>
913
914         * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
915         #define.
916
917 2002-06-19  Neil Booth  <neil@daikokuya.co.uk>
918
919         * cpphash.h (struct cpp_reader): Make date and time strings.
920         (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
921         _cpp_replacement_text_len): New.
922         * cppinit.c (cpp_create_reader): Update.
923         (init_builtins): Register appropriate builtins for -traditional-cpp.
924         * cppmacro.c (new_number_token): Remove.
925         (_cpp_builtin_macro_text): New.
926         (builtin_macro): Use it.
927         (cpp_macro_definition): Update to handle traditional macros.
928         * cppmain.c (cb_line_change): Don't do column positioning for
929         traditional output.
930         * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
931         state ls_fun_close.
932         (skip_whitespace): Fix.
933         (maybe_start_funlike): Don't set state.parsing_args.
934         (scan_out_logical_line): Remove duplicate error.  Use lex_state
935         rather than state.parsing_args.
936         (push_replacement_text): Handle builtins.
937         (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
938
939 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
940             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
941
942         * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
943         attribute __always_inline__.
944
945 2002-06-18  Bob Wilson  <bob.wilson@acm.org>
946
947         * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
948         when generating the call to _mcount.
949         (NO_PROFILE_COUNTERS): Define.
950
951 2002-06-18  Richard Henderson  <rth@redhat.com>
952
953         * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
954         2002-06-02 change.
955
956 Tue Jun 18 20:53:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
957
958         * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
959         config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
960         * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
961         * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
962
963         * sh-protos.h (sh_pr_interrupt): Declare.
964         * sh.c (sh_pr_interrupt): New function.
965         (print_operand, calc_live_regs, sh_expand_prologue): Use it.
966         (sh_hard_regno_rename_ok): Likewise.
967         * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
968
969 2002-06-18  Vladimir Makarov  <vmakarov@redhat.com>
970
971         * rtl.def (DEFINE_AUTOMATON): Add description of new options
972         `time' and `v'.  Fix incorrect description of option `w'.
973
974         * doc/md.texi: Ditto.
975
976         * genautomata.c (TIME_OPTION, V_OPTION): New macros.
977         (gen_automata_option): Process the new options.
978         (transform_2, transform_3): Initialize some variables.
979         (initiate_automaton_gen): Use the new macros.
980
981 2002-06-18  Richard Sandiford  <rsandifo@redhat.com>
982
983         * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
984         (mips_set_return_address, mips_restore_gp): Declare.
985         * config/mips/mips.h (struct mips_frame_info): Move to mips.c
986         (current_frame_info): Remove.
987         (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
988         * config/mips/mips.c: Remove uses of current_frame_info.
989         (struct mips_frame_info): Moved from mips.h.  Remove 'insns_len'.
990         (struct machine_function): Add 'frame' and 'insns_len'.
991         (current_frame_info, zero_frame_info): Remove.
992         (mips_restore_gp, mips_set_return_address): New.
993         (mips_initial_elimination_offset): New.
994         * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
995         (eh_return define_split): Use mips_set_return_address.
996
997 2002-06-18  Neil Booth  <neil@daikokuya.demon.co.uk>
998
999         * cpplib.c (dtable): Update.
1000         (end_directive): Decrement expansion prevention count.
1001         Clear state.in_expression.
1002         (prepare_directive_trad): Set state.in_expression.
1003         Increment expansion prevention count.
1004         * cpptrad.c (enum ls): New.
1005         (_cpp_overlay_buffer): Set overlaid_buffer.
1006         (_cpp_remove_overlay): Use overlaid_buffer.
1007         (_cpp_read_logcial_line_trad): Update buffer when it might
1008         have changed.
1009         (scan_out_logical_line): Handle state transitions for assertions
1010         and defined() in #if, and for funlike invocations including the
1011         directive case.  Handle '<' and '>' as a quote mechanism in
1012         #include.  Warn about unterminated macro invocations.
1013         * cpphash.h (struct lexer_state): New member in_expression.
1014         (struct cpp_reader): New member overlaid buffer.
1015
1016 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
1017
1018         * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
1019         __always_inline__.
1020
1021 2002-06-18  Alan Modra  <amodra@bigpond.net.au>
1022
1023         * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
1024
1025         * doloop.c (doloop_optimize): Extract pattern from insn.
1026
1027 2002-06-17  Matt Kraai  <kraai@alumni.cmu.edu>
1028
1029         * doc/extend.texi (Function Attributes): Remove `,...' from @var.
1030
1031 2002-06-17  Jeff Law <law@redhat.com>
1032
1033         * libgcc2.c: Do not include symcat.h or machmode.h.
1034
1035 2002-06-17  Richard Henderson  <rth@redhat.com>
1036
1037         PR target/6922
1038         * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
1039
1040 2002-06-17  Tom Tromey  <tromey@redhat.com>
1041
1042         * dwarfout.c: Include function.h.
1043
1044 2002-06-17  Andreas Schwab  <schwab@suse.de>
1045
1046         * print-rtl.c (print_rtx): Print space before vector, not after.
1047         (debug_rtx): Clear sawclose before printing.
1048         (debug_rtx_list): Print newline after each list element.
1049         (debug_rtx_range): Likewise.
1050
1051 2002-06-17  Richard Henderson  <rth@redhat.com>
1052
1053         * function.h (struct function) [funcdef_no]: Rename profile_label_no.
1054         (current_function_funcdef_no): Similarly.
1055         * function.c (funcdef_no): Similarly.
1056         (prepare_function_start): Set current_function_funcdef_no.
1057         (expand_function_start): Don't set current_function_profile_label_no.
1058         * dwarf2out.h (current_funcdef_number): Remove.
1059         * dwarf2out.c (current_funcdef_number): Remove.  Replace with
1060         current_function_funcdef_no throughout.
1061         * dwarfout.c, vmsdbgout.c: Similarly.
1062         * except.c (sjlj_funcdef_number): Remove.
1063         (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
1064         (output_function_exception_table): Likewise.
1065         * final.c (profile_function): Use current_function_funcdef_no
1066         instead of current_function_profile_label_no.
1067
1068 2002-06-17  Vladimir Makarov  <vmakarov@redhat.com>
1069
1070         * sched-ebb.c (init_ready_list): Check INSN_P first.
1071
1072 Mon Jun 17 17:26:15 2002  J"orn Rennecke <joern.rennecke@superh.com>
1073
1074         * sh.md (divsi3): Update way how to find insns in a sequence.
1075
1076         * reload1.c (merge_assigned_reloads): Don't change reloads
1077         other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
1078         to RELOAD_OTHER when there are conflicting input reloads.
1079
1080 2002-06-17  Richard Earnshaw  (rearnsha@arm.com)
1081
1082         * function.c (epilogue_done): Correctly build a sequence of insns for
1083         a sibcall epilogue.
1084
1085 2002-06-17  Nick Clifton  <nickc@cambridge.redhat.com>
1086
1087         * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
1088         #define.
1089
1090         * config/m32r/m32r.md: Replace gen_sequence with get_insns.
1091
1092 2002-06-16  Richard Henderson  <rth@redhat.com>
1093
1094         * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
1095         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
1096
1097 2002-06-16  Richard Henderson  <rth@redhat.com>
1098
1099         PR opt/6722
1100         * regclass.c (globalize_reg): Update regs_invalidated_by_call.
1101
1102 2002-06-16  Neil Booth  <neil@daikokuya.demon.co.uk>
1103
1104         * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
1105         * config/i386/i386-aout.h, config/i386/i386elf.h,
1106         config/i386/sysv4.h: Remove CPP_PREDEFINES.
1107         * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
1108         config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
1109         config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
1110         config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
1111         CPP_PREDEFINES and part of CPP_SPEC.
1112         * config/i386/sysv4-cpp.h: New.
1113
1114 2002-06-16  Richard Henderson  <rth@redhat.com>
1115
1116         PR c/7030
1117         * dwarf2out.c (modified_type_die): Don't assign the qualified die
1118         to the unqualified type.
1119
1120 Sun Jun 16 22:16:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
1121
1122         * i386-protos.h (x86_field_alignment): Declare.
1123         * i386.c (x86_field_alignment): Define.
1124         * i386.h (ADJUST_FIELD_ALIGNMENT): New.
1125         (BIGGEST_FIELD_ALIGNMENT): Kill.
1126
1127 2002-06-16  Richard Henderson  <rth@redhat.com>
1128
1129         * vax.md (casesi): Use emit_jump_insn.  Tidy expander pattern.
1130
1131 2002-06-16  Richard Henderson  <rth@redhat.com>
1132
1133         * c-common.c (flag_ms_extensions): Move from c++ front end.
1134         * c-common.h (flag_ms_extensions): Declare.
1135         * c-decl.c (c_decode_option): Add -fms-extensions.
1136         (grokfield): Don't accept anonymous structures in ISO C mode;
1137         accept only unnamed anonymous structures in GNU C mode; accept
1138         Plan 9 extensions in MS mode.
1139         * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
1140         SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
1141         (extension): Clear flag_iso.
1142         * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
1143
1144 2002-06-16  Hans-Peter Nilsson  <hp@axis.com>
1145
1146         PR target/7042
1147         * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
1148         early if current_function_epilogue_delay_list is non-empty.
1149         * config/cris/cris.md ("return"): Add sanity check asserting that
1150         current_function_epilogue_delay_list is empty.
1151
1152 2002-06-16  Jeff Law <law@redhat.com>
1153
1154         * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
1155         sharing of hard registers.
1156
1157         * toplev.c (rest_of_compilation): Remove redundant conditional.
1158
1159         * toplev.c (rest_of_compilation): Perform a simpler, less costly
1160         cleanup of the CFG when not optimizing.
1161
1162 2002-06-16  Alan Modra  <amodra@bigpond.net.au>
1163
1164         * gcc.c (main): Correct startfile_prefix_spec check.
1165
1166 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
1167
1168         * config.gcc: Revert rth's patch of 2002-05-18.  Instead,
1169         include both darwin.o and rs6000-c.o.
1170
1171 2002-06-15  Roger Sayle  <roger@eyesopen.com>
1172
1173         * expr.c (compare_from_rtx): Call simplify_relational_operation
1174         on all comparisons, not just those between integer constants,
1175         with the correct (possibly unsigned) comparison code.
1176         (do_compare_rtx_and_jump): Likewise.
1177
1178 2002-06-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1179
1180         * Makefile.in (tm_defines): New configuration variable.
1181         (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
1182         Pass tm_defines in TM_DEFINES.
1183         (cs-tm_p.h): Rename DEFINES to XM_DEFINES.  Pass TM_DEFINES.
1184         * config.gcc (tm_defines): New configuration variable.
1185         (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
1186         pa-7100.h headers.  Change hppa1* scheduling default to 7100LC.
1187         * configure.in: Substitute tm_defines.
1188         * configure: Rebuilt.
1189         * mkconfig.sh: Rename DEFINES to XM_DEFINES.  Output TM_DEFINES.
1190         * doc/install.texi: Update.
1191         * pa/pa-700.h: Delete file.
1192         * pa/pa-7100.h: Delete file.
1193
1194 2002-06-15  Roger Sayle  <roger@eyesopen.com>
1195
1196         * fold-const.c (comparison_to_compcode): New function to convert
1197         an comparison TREE CODE into a bit-based representation.
1198         (compcode_to_comparison): New function to convert from this bit
1199         based representation back to a comparison TREE CODE.
1200         (fold_truthop): Simplify (x<y) && (x==y) and related composite
1201         comparisons.
1202
1203 2002-06-15  Aldy Hernandez  <aldyh@redhat.com>
1204
1205         * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
1206
1207         * stor-layout.c (compute_record_mode): Remove check for
1208         FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
1209         MEMBER_TYPE_FORCES_BLK.  Pass new mode field to
1210         MEMBER_TYPE_FORCES_BLK.
1211
1212         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
1213
1214         * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
1215
1216 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
1217
1218         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
1219
1220 2002-06-14  Steve Ellcey  <sje@cup.hp.com>
1221
1222         * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
1223         USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
1224         * configure, config.in: Regenerate.
1225
1226 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
1227
1228         * loop.c (check_final_value): Use v->always_executed
1229         instead of v->always_computable.
1230         * unroll.c (final_giv_value): Don't calculate the final
1231         value as a function of the biv if the giv is not computed
1232         for every loop iteration.
1233
1234 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
1235
1236         * loop.c (for_each_insn_in_loop): Fix formatting and comments.
1237
1238 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
1239
1240         PR c/6677
1241         * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
1242         the truncation down when the target type is signed.
1243         [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
1244         * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
1245         the conversion if the target type is a smaller type.
1246
1247 2002-06-14  Richard Henderson  <rth@redhat.com>
1248
1249         * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
1250         earlier.  Re-factor comparisons vs extrema.
1251
1252 2002-06-14  Richard Henderson  <rth@redhat.com>
1253
1254         * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
1255
1256 2002-06-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1257
1258         * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
1259         * sched-deps.c (add_dependence): Likewise.
1260         (group_leader): Likewise.
1261         * sched-rgn.c (init_ready_list): Likewise.
1262         * doc/rtl.texi: Adjust accordingly.
1263
1264 2002-06-13  Jeffrey Law  <law@redhat.com>
1265
1266         * gcse.c (delete_null_pointer_checks_1): Inform caller if any
1267         null pointer checks were eliminated.  Update prototype.
1268         (delete_null_pointer_checks): Similarly.
1269         * rtl.h (delete_null_pointer_checks): Update prototype.
1270         * toplev.c (rest_of_compilation): Only run cleanup_cfg if
1271         delete_null_pointer_checks deletes one or more null
1272         pointer checks.  Do not run cleanup_cfg before gcse, the
1273         CFG is accurate and optimized at that point..
1274
1275         * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
1276         of hard registers.
1277
1278 2002-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
1279
1280         * Makefile.in (libgcc.mk): Depend on specs.
1281
1282 Fri Jun 14 12:15:11 2002  J"orn Rennecke <joern.rennecke@superh.com>
1283
1284         * sh.md (mulsi3): Update way how to find insns in a sequence.
1285
1286 Fri Jun 14 12:04:02 2002  Dhananjay R. Deshpande <dhananjayd@kpit.com>
1287
1288         * sh.h: Define HARD_REGNO_RENAME_OK
1289         * sh.c: sh_hard_regno_rename_ok: New. If current function has
1290         interrupt_handler attribute, only registers saved on stack are OK.
1291         * sh-protos.h: Declare sh_hard_regno_rename_ok.
1292
1293 2002-06-14  Kaz Kojima  <kkojima@gcc.gnu.org>
1294
1295         * config/sh/sh.md (jump): Emit jump insn.
1296         (call_pcrel): Get pattern of the result of gen_call_site.
1297         (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
1298
1299 2002-06-14  Neil Booth  <neil@daikokuya.demon.co.uk>
1300
1301         * cpphash.h (struct cpp_buffer): Remove saved_line_base.
1302         * cpptrad.c: Update comments.
1303         (skip_whitespace, copy_comment): Take a new parameter.
1304         (skip_escaped_newlines): Don't duplicate escaped newline test.
1305         (copy_comment): Different location for CUR, decide here how
1306         to copy / replace the comment.
1307         (skip_whitespace): Copy whitespace.
1308         (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
1309         (scan_out_logical_line): Let copy comment handle keeping or
1310         replacing comments.
1311         (scan_parameters, _cpp_create_trad_definition): Update.
1312
1313 2002-06-13  Alan Lehotsky  <apl@alum.mit.edu>
1314
1315         * reload.c (get_secondary_mem,find_reloads_address,
1316         find_reloads_address_1): Pass reference to MEM to find_reloads_address
1317         so that LEGITIMIZE_RELOAD_ADDRESS will be called.
1318
1319 2002-06-13  Jessica Han  <jessica@cup.hp.com>
1320
1321         * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1322         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1323         * doc/tm.texi: Document them.
1324         * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
1325         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
1326         (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
1327         (ASM_OUTPUT_FDESC): Likewise.
1328
1329 2002-06-13  Eric Christopher  <echristo@redhat.com>
1330
1331         * diagnostic.c (output_format): Fix thinko.
1332
1333 Thu Jun 13 22:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
1334
1335         * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
1336         (DWARF2_UNWIND_INFO): Define to 0.
1337
1338         * config/sh/sh.c (calc_live_regs): Don't use initial_value
1339         optimization for PR_MEDIA_REG.
1340
1341 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1342
1343         * cpphash.h (_cpp_lex_identifier_trad): Remove.
1344         * cpplib.c (end_directive): Don't skip, always remove overlay
1345         apart from #define.
1346         (prepare_directive_trad): Handle NULL pfile->directive.
1347         (_cpp_handle_directive): Always call prepare_directive_trad
1348         if traditional.
1349         * cppmain.c (check_multiline_token): Rename account_for_newlines,
1350         generalize inputs.
1351         (scan_translation_unit_trad): Use it.
1352         * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
1353         output, get escaped newline in comment close correct.
1354         (check_output_buffer, skip_whitespace): Update.
1355         (_cpp_lex_identifier_trad): Remove.
1356         (scan_out_logical_line): Handle -C and comments in directives
1357         properly.
1358
1359 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
1360
1361         * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
1362         * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
1363         * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
1364         (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
1365         (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
1366         (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
1367         (SELECT_SH5_COMPACT_NOFPU): Likewise.
1368         (TARGET_SWITCHES): Use them.
1369         (TARGET_CPU_DEFAULT): Define if not already defined.
1370         (TARGET_DEFAULT): Use it.
1371         (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
1372         * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
1373         * config/sh/t-monolib: New file.
1374
1375 2002-06-13  Roger Sayle  <roger@eyesopen.com>
1376
1377         * toplev.c (rest_of_compilation): Simplify (and correct) the
1378         logic of the first delete-null-pointer-checks pass.
1379
1380 Thu Jun 13 18:24:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
1381
1382         * i386.c (ix86_expand_movstr):  Fix pasto.
1383
1384 Thu Jun 13 18:18:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
1385
1386         * reload.c (find_valid_class):  Fix thinko in my previous patch.
1387
1388 2002-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
1389
1390         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
1391         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
1392         (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
1393         (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
1394
1395 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
1396
1397         * tree-inline.c (expand_call_inline): Don' mess with _DECL
1398         fields.
1399
1400 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
1401
1402         * diagnostic.c (output_format): Recognize "%H" as a format
1403         specifier for a location_t.
1404         (text_specifies_location): New function.
1405         (diagnostic_set_info): Use it.
1406
1407 2002-06-13  Jeffrey Law  <law@redhat.com>
1408
1409         * emit-rtl.c (static_regno_reg_rtx): Define.
1410         (init_emit_once): Initialize static_regno_reg_rtx.
1411         (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
1412         of building new hard reg objects once per function.
1413         (gen_rtx_REG): Try to share hard regs.
1414         * regclass.c (init_fake_stack_mems): New function broken out from
1415         init_regs.
1416         * rtl.h (init_fake_stack_mems): Declare.
1417         * toplev.c (lang_independent_init): Call init_regs before
1418         init_emit_once.  Call init_fake_stack_mems after init_emit_once.
1419
1420         * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
1421
1422         * alias.c (argument_registers): Remove.
1423         (init_alias_once): Initialize static_reg_base_value here.  Remove
1424         initialization of argument_registers.
1425         (init_alias_once_per_function): Remove.
1426         (init_alias_analysis): Copy all the entries from static_reg_base_value
1427         into new_reg_base_value all at once.
1428         * rtl.h (init_alias_once_per_function): Remove declaration.
1429         * function.c (prepare_function_start): Do not call
1430         init_alias_once_per_function.
1431
1432         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
1433         starting a sequence and emitting an INSN.
1434
1435 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
1436
1437         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
1438
1439 2002-06-13  David S. Miller  <davem@redhat.com>
1440
1441         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
1442
1443 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1444
1445         * cpplib.c (end_directive): Handle line skipping.  Only remove
1446         the rest of the line if the directive was valid.
1447         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
1448         expanding a traditional macro.
1449         * cpptrad.c (recursive_macro): New.
1450         (read_logical_line_trad): Handle skipping.
1451         (scan_out_logical_line): Continue after a successful directive.
1452         Don't expand macros whilst skipping, or if recursing.
1453         (_cpp_create_trad_definition): scan_out_logical_line now sets
1454         the output current position.
1455
1456 2002-06-12  Eric Christopher  <echristo@redhat.com>
1457
1458         From Chris Demetriou  <cgd@broadcom.com>
1459         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
1460         comment.
1461         (ISA_HAS_MADD_MSUB): Ditto.
1462         (ISA_HAS_NMADD_NMSUB): Ditto.
1463
1464 2002-06-12  Eric Christopher  <echristo@redhat.com>
1465
1466         * config.gcc: Consolidate little endian handling and
1467         little/big endian targets.
1468         * config/mips/elfl.h: Remove file.
1469         * config/mips/elfl64.h: Ditto.
1470         * config/mips/ecoffl.h: Ditto.
1471         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
1472
1473 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
1474
1475         * gengtype.h (xvasprintf): New prototype.
1476         (xasprintf): New prototype.
1477         (struct outf): New.
1478         (get_output_file): Return an outf_p.
1479         (header_file): Is now an outf_p.
1480         (base_files): Now are outf_p.
1481         (oprintf): New.
1482         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
1483         rather than stdio operations.  Use xasprintf in a few places,
1484         when appropriate.
1485         (xvasprintf): New.
1486         (xasprintf): New.
1487         (struct filemap): Delete.
1488         (files): Delete.
1489         (output_files): New.
1490         (oprintf): New.
1491         (create_file): Create an outf_p.  Add parameter to indicate output
1492         file name, change all callers.
1493         (open_base_files): Create gtype-desc.c here.
1494         (get_output_file_with_visibility): Rewrite.
1495         (get_output_file_name): Just look at 'name' field in struct outf.
1496         (close_output_files): Rewrite.
1497
1498 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
1499
1500         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
1501         (MASK_G_FLOAT): Define.
1502         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
1503         (TARGET_SWITCHES): Likewise.
1504         (TARGET_DEFAULT): Likewise.
1505
1506 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
1507
1508         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
1509         * config/mips/mips.c (mips_output_filename): Don't print a
1510         ".file" directive if we are using DWARF-2.
1511         (mips_output_function_prologue): Do not emit source file
1512         name for TARGET_GAS.
1513
1514 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
1515
1516         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
1517         decide whether emit the short opcode.
1518         * i386.h (x86_shift1): Declare.
1519         (TARGET_SHIFT1): New macro.
1520         * i386.c (x86_shift1): New global variable.
1521
1522         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
1523         unconditionally; make loop to rebuild CFG; kill unnecesary
1524         find_basic_block calls; kill compute_bb_for_insn call.
1525         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
1526         * haifa-sched.c (sched_init): Likewise.
1527         * ssa-ccp.c (ssa_const_prop): Likewise.
1528         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1529
1530 2002-06-11  David S. Miller  <davem@redhat.com>
1531
1532         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
1533         active_insn_p.
1534
1535 2002-06-11  Richard Henderson  <rth@redhat.com>
1536
1537         * c-common.c (builtin_define_type_max): New.
1538         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
1539         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
1540
1541         From Joseph S. Myers:
1542         * glimits.h: Rewrite to expect the double underscore definitions
1543         from the compiler.
1544
1545         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
1546         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
1547         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
1548         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
1549         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
1550         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
1551         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
1552         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
1553
1554 2002-06-11  Richard Henderson  <rth@redhat.com>
1555
1556         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
1557         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
1558         (code_for_builtns): Update.
1559         (alpha_init_builtins): Add __builtin_thread_pointer and
1560         __builtin_set_thread_pointer.
1561         (alpha_expand_builtin): Handle void builtins.
1562         * doc/extend.texi (Alpha Built-in Functions): Update.
1563
1564 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
1565
1566         PR target/6997
1567         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
1568
1569 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
1570
1571         * config.gcc: Make the name of the extra-modes file adjustable
1572         by target stanzas.
1573         (s390x, strongarm, xscale stanzas): Use this facility.
1574         * configure.in: Update to match.
1575         * configure: Regenerate.
1576
1577 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
1578
1579         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
1580         max/mins as unsigned GE compares.
1581
1582 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
1583
1584         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
1585         * config/vax/bsd.h: New file.
1586         * config/vax/netbsd.h: Add missing notice.
1587         (CPP_PREDEFINES): Remove.
1588         (TARGET_OS_CPP_BUILTINS): Define.
1589         (CPP_SPEC): Use NETBSD_CPP_SPEC.
1590         * config/vax/openbsd.h: Update copyright years.
1591         (CPP_PREDEFINES): Remove.
1592         (TARGET_OS_CPP_BUILTINS): Define.
1593         * config/vax/ultrix.h: Likewise.
1594         * config/vax/vaxv.h: Likewise.
1595         * config/vax/vms.h: Likewise.
1596         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
1597         (CPP_PREDEFINES, CPP_SPEC): Remove.
1598
1599 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
1600
1601         * i386.md (addqi_1_slp, subqi_1_slp
1602         (andqi_ext0, testqi_ext0): Remove unnecesary check.
1603         (addhi*, addqi*): Simplify "dec" condition.
1604         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
1605         (and, or, xor to QImode splitters): New.
1606         (iorqi_ext*): New.
1607         (xorqi_ext_0): New.
1608         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
1609         (andqi_ext_1_rex64): New.
1610         (ashrqi*_slp): New.
1611         (ashlqi*_slp): New.
1612         (lshlqi*_slp): New.
1613         (rotrqi3*_slp): New.
1614         (rotlqi3*_slp): New.
1615
1616 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
1617
1618         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
1619         softfloat.h.
1620         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
1621         (CPP_ENDIAN_LITTLE_SPEC): Delete.
1622         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
1623         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
1624         __LONG_DOUBLE_128__ setting, _CALL_* setting.
1625         (CPP_DEFAULT_SPEC): Delete.
1626         (CPP_FLOAT_DEFAULT_SPEC): Delete.
1627         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
1628         (CPP_SYSV_DEFAULT_SPEC): Delete.
1629         (CPP_ENDIAN_BIG_SPEC): Delete.
1630         (CPP_ENDIAN_LITTLE_SPEC): Delete.
1631         (CPP_ENDIAN_SPEC): Delete.
1632         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
1633         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
1634         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
1635         cpp_longdouble_default.
1636         * config/rs6000/softfloat.h: Delete.
1637         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
1638         (EXTRA_SPECS): Delete cpp_cpu.
1639         (TARGET_CPU_CPP_BUILTINS): New.
1640         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
1641         prototype.
1642         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
1643         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
1644         (CPP_DEFAULT_SPEC): Delete.
1645         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
1646         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
1647         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
1648         (CPP_DEFAULT_SPEC): Delete.
1649         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1650         (CPLUSPLUS_CPP_SPEC): Likewise.
1651         (CPP_CPU_SPEC): Delete.
1652         (CPP_DEFAULT_SPEC): Delete.
1653         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
1654         (CPLUSPLUS_CPP_SPEC): Likewise.
1655         (CPP_CPU_SPEC): Delete.
1656         (CPP_DEFAULT_SPEC): Delete.
1657         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
1658         (CPP_DEFAULT_SPEC): Delete.
1659         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
1660         (CPP_DEFAULT_SPEC): Delete.
1661
1662         * doc/gty.texi: Small updates.
1663
1664 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
1665
1666         * objc/objc-act.c (warn_with_ivar): Adjust calls to
1667         diagnostic_count_error.
1668         (warn_with_method): Likewise.
1669
1670         * diagnostic.h (warnings_are_errors_message): New field of
1671         diagnostic_context.
1672         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
1673         match semantics.
1674         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
1675         (diagnostic_count_diagnostic): Make aware of other kinds of
1676         diagnostics.
1677         (diagnostic_initialize): Initialize warnings_are_errors_message field.
1678
1679 2002-06-11  Tom Tromey  <tromey@redhat.com>
1680
1681         For PR java/6520:
1682         * fold-const.c (fold_convert): Don't modify existing tree's type.
1683
1684 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
1685
1686         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
1687
1688 2002-06-11  Richard Henderson  <rth@redhat.com>
1689
1690         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
1691
1692 2002-06-11  Richard Henderson  <rth@redhat.com>
1693
1694         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
1695         DWARF2_UNWIND_INFO is false.
1696
1697 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
1698
1699         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
1700
1701         * config/s390/s390.c (emit_prologue): gen_store_multiple
1702         returns an insn now, not a pattern.
1703
1704 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1705
1706         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
1707         $(TEXI2DVI) -o.
1708
1709 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
1710
1711         * i386.c (x86_promote_QImode): Set for Athlon
1712         (x86_fast_prefix): New global variable.
1713         (x86_arch_always_fancy_math_387): Fix formating.
1714         * i386.h (x86_fast_prefix): Declare
1715         (TARGET_FAST_PREFIX): define.
1716         * i386.md (and to strict_low_part, HI to SI
1717         promoting splitter): Use new macro.
1718
1719         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
1720
1721 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
1722
1723         * Makefile.in (distclean): Delete junk left in testsuite
1724         directory, too.
1725
1726 2002-06-11  Jeffrey Law <law@redhat.com>
1727
1728         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
1729         last insn created by the splitter.
1730
1731         * caller-save.c (init_caller_save): Move creation of SAVEINSN
1732         and RESTINSN into into the scope of the sequence.
1733
1734         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
1735         RETURN insns.
1736
1737         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
1738
1739         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
1740         not the pattern.  So extract the pattern from the insn.
1741
1742         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
1743
1744 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
1745
1746         * config/s390/s390.md (movsi): Only use floating point
1747         register alternatives when operands are already fprs.
1748         (movdi_31, movdi_64): Likewise.
1749
1750 2002-06-11  David S. Miller  <davem@redhat.com>
1751
1752         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
1753         Only run RTX equality checks on INSN_P rtl.
1754
1755 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
1756
1757         * config/s390/s390.md (reload_base, ltorg): Remove.
1758         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
1759         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
1760         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
1761         s390_asm_output_pool_prologue): Likewise.
1762         * s390.h (s390_pool_start_insn): Likewise.
1763
1764         * s390.c (s390_output_symbolic_const): Remove support for
1765         old-style pool chunks.
1766         (s390_function_epilogue): Likewise.
1767         (s390_output_constant_pool): Likewise.  Also, fix incorrect
1768         alignment for 64-bit literal pools.
1769         (print_operand_address): Remove 'y' and 'Y' format flags.
1770         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
1771         old-style pool chunks.
1772         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
1773         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
1774         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
1775
1776         * s390.c (consttable_operand): New function.
1777         * s390-protos.h (consttable_operand): Declare it.
1778         * s390.h (PREDICATE_CODES): Add consttable_operand.
1779         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
1780         consttable_sf, consttable_df, pool_start_31, pool_end_31,
1781         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
1782         * s390.c (struct constant, struct constant_pool): New data types.
1783         (constant_modes, gen_consttable): New variables.
1784         (s390_start_pool, s390_end_pool, s390_add_pool,
1785         s390_dump_pool, s390_free_pool): New functions.
1786         (s390_chunkify_pool): Completely reimplement literal pool
1787         overflow handling.
1788
1789         * s390.c (s390_pool_overflow): New variable.
1790         * s390.h (s390_pool_overflow): Declare it.
1791         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
1792         jumps in literal pool overflow situations.
1793
1794         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
1795         (s390_frame_info): Account for possible use of RETURN_REGNUM
1796         by new literal pool overflow code.
1797         (s390_emit_prologue): Likewise.
1798
1799 2002-06-05  David S. Miller  <davem@redhat.com>
1800
1801         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
1802         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
1803         emit_insns_before_scope, emit_insns_after,
1804         emit_insns_after_scope): Delete declaration.
1805         * ada/misc.c (insert_code_for): Use emit_insn* instead of
1806         emit_insns_foo.
1807         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
1808         (alpha_set_memflags): Fix comment.
1809         (set_frame_related_p): Use get_insns instead of gen_sequence.
1810         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
1811         emitting no insns.
1812         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
1813         gen_sequence.
1814         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
1815         * config/fr30/fr30.c (fr30_move_double): Likewise.
1816         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
1817         Likewise.
1818         * config/ia64/ia64.c (spill_restore_mem): Likewise.
1819         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
1820         no insns.
1821         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
1822         instead of gen_sequence.
1823         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
1824         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
1825         * config/sh/sh.c (sh_need_epilogue): Likewise.
1826         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
1827         attributes.
1828         (setjmp pattern and split): Use them to avoid splitter which emits
1829         no RTL.
1830         * genattrtab.c (main): Emit include of function.h
1831         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
1832         get_insns instead of gen_sequence.
1833         * config/cris/cris.c (cris_split_movdx): Likewise.
1834         * emit-rtl.c (emit_insns*): Kill.
1835         (try_split): Expect insn list instead of SEQUENCE.
1836         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
1837         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
1838         Make them abort if a SEQUENCE is given and RTL checking is
1839         enabled.
1840         (emit_*_scope): Don't forget to set scope on final insn.
1841         (gen_sequence): Move from here...
1842         * ssa.c (gen_sequence): To here as private function.
1843         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
1844         comments.
1845         (expand_builtin_return, expand_builtin_mathfn): Likewise.
1846         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
1847         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
1848         (expand_builtin_expect_jump): Use get_insns and fix comments.
1849         * calls.c (try_to_integrate): Use emit_insn_foo.
1850         (expand_call, emit_library_call_value_1): Likewise.
1851         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
1852         (emit_move_insn_1): Use get_insns instead of gen_sequence.
1853         (expand_expr): Use emit_insn_foo.
1854         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
1855         * except.c (build_post_landing_pads): Likewise.
1856         * flow.c (attempt_auto_inc): Likewise.
1857         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
1858         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
1859         * function.c (fixup_var_refs_insn): Use get_insns instead of
1860         gen_sequence.
1861         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
1862         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
1863         (fixup_stack_1, purge_addressof_1, expand_main_function,
1864         get_arg_pointer_save_area): Likewise.
1865         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
1866         expand_function_end): Use emit_insn_foo.
1867         (record_insns, keep_stack_depressed): Work with insn list instead
1868         of SEQUENCE, fix comments.
1869         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
1870         noce_try_store_flag_constants, noce_try_store_flag_inc,
1871         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
1872         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
1873         (noce_process_if_block): Use get_insns instead of gen_sequence.
1874         * optabs.c (add_equal_note): Work with insn list, fix comments.
1875         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
1876         (expand_unop, expand_complex_abs, expand_unop_insn,
1877         expand_no_conflict_block): Likewise.
1878         (gen_move_insn): Use get_insns instead of gen_sequence.
1879         (gen_cond_trap): Likewise.
1880         * integrate.c (copy_rtx_and_substitute): Likewise.
1881         (emit_initial_value_sets): Use emit_insn_foo.
1882         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
1883         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
1884         now that RTL generators give insn lists.
1885         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
1886         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
1887         instead of gen_sequence.
1888         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
1889         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
1890         instead of gen_sequence.
1891         * loop.c (move_movables, emit_prefetch_instructions,
1892         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
1893         Likewise.
1894         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
1895         (product_cheap_p): Likewise, and add commentary about RTL wastage
1896         here.
1897         * lcm.c (optimize_mode_switching): Use get_insns instead of
1898         gen_sequence.
1899         * profile.c (gen_edge_profiler): Likewise.
1900         * regmove.c (copy_src_to_dest): Likewise.
1901         * reg-stack.c (compensate_edge): Likewise and fix comment.
1902         * gcse.c (process_insert_insn): Likewise.
1903         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
1904         * jump.c (delete_prior_computation): Update comment.
1905         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
1906         of gen_sequence, update comments to match.
1907         * recog.c (peephole2_optimize): Work with insn lists instead of
1908         SEQUENCE rtl.
1909         * sched-vis.c (print_pattern): Abort on SEQUENCE.
1910         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
1911         Use get_insns instead of gen_sequence.
1912         (copy_loop_body): Likewise and don't emit dummy NOTE.
1913         * genrecog.c: Don't mention SEQUENCE rtl in comments.
1914         * combine.c (try_combine): Expect insn lists from split generator.
1915         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
1916         hand.
1917
1918 2002-06-11  Roger Sayle  <roger@eyesopen.com>
1919             Andreas Jaeger <aj@suse.de>
1920
1921         * cfgbuild.c: Update copyright years.
1922
1923 2002-06-11  Andreas Schwab  <schwab@suse.de>
1924
1925         * config/m68k/m68k.h (PREDICATE_CODES): Define.
1926
1927 2002-06-11  Eric Christopher  <echristo@redhat.com>
1928
1929         * doc/tm.texi (Run-time Target): Add comment about flag_iso
1930         and strict ANSI.
1931         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
1932         * config/mips/ecoffl.h: Ditto.
1933         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
1934         (CPP_PREDEFINES): Ditto.
1935         * config/mips/elfl64.h: Ditto.
1936         * config/mips/elfl.h: Ditto.
1937         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
1938         out until irix header consolidation.
1939         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
1940         with SUBTARGET_OS_CPP_BUILTINS.
1941         * config/mips/iris6.h: Ditto.
1942         (CPLUSPLUS_CPP_SPEC): Remove.
1943         * config/mips/linux.h: Ditto.
1944         * config/mips/netbsd.h: Ditto.
1945         * config/mips/openbsd.h: Ditto.
1946         * config/mips/rtems.h: Ditto.
1947         * config/mips/rtems64.h: Ditto.
1948         * config/mips/sni-svr4.h: Ditto.
1949         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
1950         ISA_MIPS32, ISA_MIPS64): New defines.
1951         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
1952         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
1953         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1954         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
1955         (TARGET_CPU_CPP_BUILTINS): Define.
1956         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
1957         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
1958         (movdicc): Remove check for ISA_MIPS32.
1959          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
1960         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
1961         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
1962         sunge_sf, sunle_df, sunle_sf): New patterns.
1963
1964 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
1965
1966         * Makefile.in: Update cppmain.o.
1967         * cpphash.h (struct cpp_reader): Move some members to a
1968         nested structure.
1969         (trad_line): Rename saved_line.
1970         (_cpp_read_logical_line_trad): Update.
1971         (_cpp_remove_overlay): New.
1972         * cppinit.c (cpp_create_reader): No need to set saved_line.
1973         (cpp_destroy): Update.
1974         (cpp_read_main_file): Only overlay if compiling.
1975         * cpplex.c (continue_after_nul): Return false if in directive.
1976         * cpplib.c (EXPAND): New.
1977         (directive_table, SEEN_EOL): Update.
1978         (end_directive): Remove overlay if traditional; don't skip
1979         line in traditional #define.
1980         (prepare_directive_trad): New.
1981         (_cpp_handle_directive, run_directive): Update for traditional
1982         directives.
1983         (lex_macro_node): Simplify, don't use lex_identifier_trad.
1984         * cpplib.h (struct options): Add preprocess_only.
1985         * cppmain.c: Don't include intl.h.
1986         (cpp_preprocess_file): Set options->preprocess_only.
1987         (scan_translation_unit_trad): Fix, and print line numbers.
1988         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
1989         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
1990         save_replacement_text, _cpp_create_trad_definition): Update for
1991         variable renaming.
1992         (_cpp_overlay_buffer): Save line number.
1993         (_cpp_remove_overlay): Rename from restore_buff, restore line.
1994         (_cpp_read_logical_line_trad): Don't handle overlays here.
1995         (scan_out_logical_line): Process directives.
1996
1997 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
1998
1999         * gthr-win32.h: Wrap functions in extern "C".
2000         (__gthread_key_t): Typedef as unsigned long,
2001         not win32 DWORD.
2002         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
2003         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
2004         (__gthr_win32_once, __gthr_win32_key_create,
2005         __gthr_win32_key_delete, __gthr_win32_getspecific,
2006         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
2007         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
2008         __gthr_win32_mutex_unlock): Declare.
2009         (__gthread_once,__gthread_key_create,
2010         __gthread_key_delete, __gthread_getspecific,
2011         __gthread_setspecific, __gthread_mutex_init_function,
2012         __gthread_mutex_lock,__gthread_mutex_trylock,
2013         __gthread_mutex_unlock): Call corresponding
2014         __gthr_win32_* extern implementations if #defined
2015         __GTHREAD_HIDE_WIN32API.
2016         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
2017         $(srcdir)/config/i386/gthr-win32.c
2018         * config/i386/gthr-win32.c: New implementation file.
2019         (__gthr_win32_once, __gthr_win32_key_create,
2020         __gthr_win32_key_delete, __gthr_win32_getspecific,
2021         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
2022         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
2023         __gthr_win32_mutex_unlock): New functions, based on
2024         static inlines in gthr-win32.h.
2025
2026 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
2027
2028         * config/xtensa/xtensa.c (override_options): Don't warn about
2029         using -fpic or -fPIC when PIC is enabled by default.
2030
2031 2002-06-10  Roger Sayle  <roger@eyesopen.com>
2032
2033         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
2034
2035 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
2036
2037         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
2038         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
2039         exists, substitute its pathname as @extra_modes_file@, define
2040         EXTRA_MODES_FILE to be an appropriate string to #include it
2041         with, and define EXTRA_CC_MODES to 1.
2042
2043         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
2044         it's defined.  Get rid of redundancy in calling sequence for
2045         CC; don't use it to define CCmode, to avoid a warning.
2046         * libgcc2.c: Include symcat.h for the sake of machmode.def.
2047
2048         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
2049         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
2050         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
2051         New files.
2052         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
2053         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
2054
2055         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
2056         defining extra CC modes.
2057
2058 2002-06-10  Roger Sayle  <roger@eyesopen.com>
2059             Andreas Jaeger <aj@suse.de>
2060
2061         * cfgrtl.c (create_basic_block_structure):  Remove index argument
2062         and use last_basic_block++ instead.  (create_basic_block): Update.
2063         * cfgbuild.c (find_basic_blocks_1): Likewise.
2064
2065         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
2066         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
2067         * sched-ebb.c (schedule_ebbs): Likewise.
2068         * sched-rgn.c (schedule_insns): Likewise.
2069         * ssa-ccp.c (ssa_const_prop): Likewise.
2070         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
2071         * toplev.c (rest_of_compilation): Likewise.
2072         * config/ia64/ia64.c (ia64_reorg): Likewise.
2073
2074 2002-06-10  Roger Sayle  <roger@eyesopen.com>
2075
2076         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
2077         of matching registers.
2078
2079 2002-06-10  Roger Sayle  <roger@eyesopen.com>
2080
2081         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
2082         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
2083
2084 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
2085
2086         * config/mmix/mmix.h: Improve comments.
2087         (CPP_SPEC, CPP_PREDEFINES): Don't define.
2088         (TARGET_CPU_CPP_BUILTINS): Define.
2089         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
2090         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
2091         unused predicate.
2092         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
2093         compiler warning.
2094         (mmix_constant_address_p): Remove another
2095         redundant test before case.
2096         (mmix_canonicalize_comparison): Remove unused function.
2097         (mmix_print_operand_address): Don't test and adjust for operand in
2098         non-canonical format.
2099         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
2100         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
2101
2102 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
2103
2104         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
2105         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
2106         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
2107         (gen_compare): Use CCmode unconditionally.
2108
2109 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2110
2111         PR optimization/6759
2112         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
2113         the REQ_EQUAL note.
2114
2115 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2116
2117         PR c/6660
2118         * c-decl.c (grokfield): Allow user defined types if they declare
2119         structs or unions for unnamed fields.
2120
2121 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2122
2123         PR c/6809
2124         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
2125
2126 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2127
2128         PR optimization/6842
2129         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
2130         operand subreg cannot be simplified.
2131
2132 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2133
2134         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
2135         (compare_constant): Likewise.
2136         (output_addressed_constants): Likewise.
2137
2138 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
2139
2140         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
2141         merge bb with itself.
2142
2143 2002-06-10  Richard Henderson  <rth@redhat.com>
2144
2145         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
2146         (builtin_zapnot): Likewise.
2147
2148         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
2149         reservation.
2150
2151 2002-06-10  Eric Christopher  <echristo@redhat.com>
2152
2153         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
2154         prototype and function.
2155         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
2156         (call_insn_operand): Remove half pic references.
2157         (legitimate_address_p): Ditto.
2158         * config/i386/i386.h: Remove half pic defines.
2159
2160 2002-06-10  Eric Christopher  <echristo@redhat.com>
2161
2162         * doc/extend.texi (Return Address): Add note explaining the side-
2163         effects of inlining on __builtin_return_address.
2164
2165 2002-06-10  Tom Tromey  <tromey@redhat.com>
2166
2167         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
2168         (c-common.o): Depend on langhooks.h.
2169
2170 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
2171
2172         * cpphash.h (_cpp_read_logical_line_trad,
2173         _cpp_expansions_different_trad): Update prototypes.
2174         * cpplex.c (continue_after_nul): New.
2175         * cppmain.c: Include cpphash.h.
2176         (scan_translation_unit_trad): New.
2177         (cpp_preprocess_file): Call it.
2178         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
2179         overlay.
2180         (_cpp_expansions_different_trad): Update prototype.
2181
2182 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
2183
2184         Fix cfi generation for SH[1-4]:
2185
2186         * sh.c (frame_insn): New function.
2187         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
2188         (push): Now returns rtx.  Use frame_insn.
2189         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
2190         of a DF register.
2191         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
2192
2193 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
2194
2195         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
2196         and gtype-desc.c.
2197         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
2198         (distclean): ... not here.  But do delete all testsuite/*.log,
2199         testsuite/*.sum files here.  Delete mkheaders.  Delete
2200         po/*.gmo and the testsuite directory in a split tree build.
2201
2202 2002-06-10  Jeffrey Law  <law@redhat.com>
2203
2204         * alias.c (static_reg_base_value): New to hold RTL for
2205         items allocated once per function for the aliasing code.
2206         (init_alias_once_per_function): Initialize static_reg_base_value.
2207         (init_alias_analysis): Avoid throw-away allocations of RTL by
2208         using pre-computed values in static_reg_base_value.
2209         * function.c (prepare_function_start): Call
2210         init_alias_once_per_function appropriately.
2211         * rtl.h (init_alias_once_per_function): Declare.
2212         * caller-save (init_caller_save): Restructure slightly to
2213         avoid lots of silly RTL generation.
2214         * expr.c (init_expr_once): Likewise.
2215         * reload1.c (reload_cse_regs_1): Allocate throw-away register
2216         RTL object here.  Pass it into children.
2217         (reload_cse_simplify_operands): Use passed-in register RTL
2218         object.
2219         (reload_cse_simplify): Pass through throw-away register
2220         RTL object.
2221
2222 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
2223
2224         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
2225
2226 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
2227
2228         * gcc.c (process_command): Avoid assignment to read-only location.
2229         Fix sizeof calculation.
2230
2231 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
2232
2233         * cpphash.h (struct cpp_macro): Put comments on their own lines.
2234         (_cpp_expansions_different_trad): New.
2235         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
2236         * cpptrad.c (canonicalize_text): New.
2237         (scan_out_logical_line): Handle no arguments correctly.
2238         (save_replacement_text): Commit memory when finished.
2239         (_cpp_expansions_different_trad): New.
2240
2241 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2242
2243         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
2244         TREELANG and COBOL.
2245         (lang_names): Add treelang and cobol.
2246         (get_file_basename): Add code to support treelang and cobol as
2247         4th and 5th users of c-common.c.
2248
2249 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
2250
2251         * Makefile.in (install-driver): Install driver as
2252         $(target_alias)-gcc-$(version).
2253         * gcc.c (spec_version): Make const.
2254         (process_command): Handle -V and -b by using exec.
2255         * doc/invoke.texi (Target Options): Restore -V option,
2256         update docs for -b option.
2257
2258 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2259
2260         * configure.in (remaining_languages_check):
2261         Added check that all languages specified were found.
2262         Exit if not found. Previous behaviour was silent failure.
2263         * configure: Regenerated.
2264
2265 2002-06-10  Tim Josling  <tej@melbpc.org.au>
2266
2267          First steps to making treelang documentation compliant, based on
2268          instructions in sourcebuild.texi. Also add to gcc.c list of
2269          default languages.
2270
2271         * doc/contrib.texi: Add self as contributor of treelang.
2272
2273         * doc/frontends.texi: Add mention of treelang.
2274
2275         * doc/invoke.texi (Overall Options): Add mention of treelang.
2276
2277         * doc/standards.texi:  Add mention of treelang.
2278
2279 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
2280
2281         * config/cris/cris.c: Include ggc.h
2282
2283 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2284
2285         * cpphash.h (_cpp_push_text_context): Update.
2286         (_cpp_arguments_ok): New.
2287         * cppmacro.c (_cpp_arguments_ok): New, split out from...
2288         (collect_args): ...here.
2289         (_cpp_push_text_context): Change inputs.
2290         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
2291         replace_args_and_push): New.
2292         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
2293         Don't use IS macros directly.
2294         (scan_out_logical_line): Handle function-like macro argument
2295         collection.
2296         (push_replacement_text): Update.
2297         (replacement_length): Remove.
2298         (_cpp_create_trad_definition): Don't skip whitespace before
2299         checking for '('.
2300
2301 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2302
2303         * config/avr/avr.c (avr_mcu_types): Update for new devices.
2304         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
2305         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
2306         * config/avr/avr.md ("type" and "length" attributes): New type
2307         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
2308         output a single "call" or "rcall" insn depending on device size.
2309         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
2310
2311 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
2312
2313         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
2314         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
2315         assembler option.
2316         (CPP_CPU_SPEC): Add power3 and power4.
2317         (PROCESSOR_DEFAULT): Change to 604e.
2318         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
2319         (CPP_CPU_SPEC): Similar additions.
2320         (enum process_type): Add POWER4.
2321         (RTX_COSTS): Add POWER4.
2322         (CPP_CPU_SPEC): Similar additions.
2323         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
2324         (PROCESSOR_DEFAULT64): Define.
2325         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
2326         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
2327         branch adjustment.
2328         (rs6000_issue_rate): Add Power4.
2329         * config/rs6000/rs6000.md (cpu attr): Add power4.
2330         (iu compare): Remove 604, 604e, 620, 630.
2331         Add basic Power4 scheduling information.
2332         (mfcr/mtcrf): Change type attribute to cr_logical.
2333
2334 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2335
2336         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
2337         ATTRIBUTE_PRINTF_2.
2338         * gengtype-lex.l: Fix format specifier warning.
2339
2340         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
2341         not isspace.
2342         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
2343         lieu of isspace/IDchar.
2344         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
2345         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
2346         ISSPACE.
2347
2348 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
2349
2350         * Makefile.in (LIBCPP_OBJS): Take out version.o.
2351         * cpphash.h (cpp_reader): Take out print_version member.
2352         * cppinit.c: (cpp_handle_option): Don't do anything with
2353         -version.  Just set help_only for --version, --target-help.
2354         Just set verbose option for -v.
2355         (cpp_post_options): Don't print a version string.
2356
2357 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2358
2359         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
2360         (avr_section_type_flags): New, handle .noinit* sections.
2361
2362 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2363
2364         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
2365         and include netbsd_entry_point.
2366         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
2367         (NETBSD_ENTRY_POINT): Define.
2368
2369 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2370
2371         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
2372         if not already defined.
2373         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
2374
2375 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2376
2377         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
2378         in a noreturn function.
2379         (avr_output_function_prologue, avr_output_function_epilogue):
2380         Correct function size calculation.  Do not crash on empty function.
2381         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
2382
2383 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2384
2385         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
2386         netbsd_link_spec and netbsd_entry_point.
2387         (LINK_SPEC): Use %(netbsd_link_spec).
2388         (NETBSD_ENTRY_POINT): Define.
2389
2390 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2391
2392         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
2393         linker emulation.
2394         (LINK_ARCH64_SPEC): Likewise.
2395         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
2396         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
2397
2398 2002-06-08  Marc Espie  <espie@openbsd.org>
2399
2400         * lists.c (free_list):  Fix typo in comment.
2401
2402 2002-06-08  Andreas Jaeger  <aj@suse.de>
2403
2404         * lcm.c (optimize_mode_switching): Add unused attribute for
2405         variable.
2406
2407         * sched-deps.c (sched_analyze): Remove unused variable.
2408
2409 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
2410
2411         * diagnostic.def: Don't capitalize diagnostict descriptors.
2412
2413 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2414
2415         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
2416         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
2417         (NETBSD_ENTRY_POINT): Define.
2418
2419 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2420
2421         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
2422         NETBSD_LINK_SPEC_ELF.
2423         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
2424         (NETBSD_ENTRY_POINT): Define.
2425         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
2426         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
2427         netbsd_entry_point.
2428         (NETBSD_ENTRY_POINT): Define.
2429
2430 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2431
2432         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
2433         netbsd_link_spec and netbsd_entry_point.
2434         (LINK_SPEC): Use %(netbsd_link_spec).
2435         (NETBSD_ENTRY_POINT): Define.
2436
2437 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
2438
2439         * config/netbsd-elf.h (LINK_SPEC): Rename to...
2440         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
2441         to specify program entry point.
2442
2443 2002-06-07  Jeff Law <law@redhat.com
2444
2445         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
2446         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
2447         than creating a new register.
2448         (distribute_notes): Likewise.
2449         * df.c (df_reg_use_gen): Likewise.
2450         (df_reg_clobber_gen): Likewise.
2451         (df_ref_record): Likewise.
2452         * expr.c (use_regs): Likewise.
2453         * flow.c (propagate_one_insn): Likewise.
2454         (mark_set_1): Likewise.
2455         (mark_used_reg): Likewise.
2456         * reload.c (emit_reload_insns): Likewise.
2457
2458 2002-06-07  Roger Sayle  <roger@eyesopen.com>
2459
2460         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
2461         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
2462         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
2463         comparison code comp can be reversed.
2464
2465 2002-06-07  Roger Sayle  <roger@eyesopen.com>
2466
2467         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
2468         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
2469         equivalent x > -1.0 when -ffast-math.
2470
2471 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2472
2473         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
2474         * config/mips/t-netbsd: New file.
2475
2476 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
2477
2478         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
2479         options their own entries.
2480         (parse_option): Clarify comment.
2481         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
2482         special case.  Replace if/strcmp chain for -W options with
2483         use of new OPT_* entries for them.
2484         (cpp_handle_options): Update to match.
2485         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
2486         * c-decl.c: Update call to cpp_handle_option.
2487
2488 2002-06-07  Akim Demaille  <akim@epita.fr>
2489
2490         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
2491         Whitespace changes.
2492
2493 2002-06-07  Jeffrey Law  <law@redhat.com>
2494
2495         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
2496         on empty lists.
2497
2498 2002-06-07  H.J. Lu  (hjl@gnu.org)
2499
2500         * configure.in: Add --enable-__cxa_atexit.
2501         * configure: Regenerated.
2502         * config.in: Likewise.
2503
2504         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
2505         not defined.
2506
2507 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
2508
2509         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
2510
2511 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2512
2513         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
2514
2515 2002-06-07  Jason Merrill  <jason@redhat.com>
2516
2517         * cppexp.c (num_equality_op): Use a temporary variable to work
2518         around gcc 3.0.4 bug.
2519
2520 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
2521
2522         * diagnostic.c (diagnostic_build_prefix): Tidy.
2523
2524 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
2525
2526         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
2527         scan_parameters, save_replacement_text, replacement_length): New.
2528         (scan_out_logical_line): Take a macro and save parameters if
2529         non-NULL.
2530         (_cpp_logical_line_trad): Update.
2531         (_cpp_create_trad_definition): Update to handle function-like
2532         macros.
2533         * cpplex.c (new_buff): Update.
2534         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
2535         * cpphash.h: ...here.
2536         (CPP_ALIGN2, _cpp_save_parameter): New.
2537         * cppmacro.c (save_parameter): Rename, export.
2538         (parse_params): Update.
2539
2540 2002-06-07  Andreas Jaeger  <aj@suse.de>
2541
2542         * config/mmix/mmix.c: Remove extra broken prototype for
2543         mmix_init_machine_status.
2544
2545 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
2546
2547         * gengtype.c: Add comments before all the routines.
2548
2549 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
2550
2551         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
2552         from and add t-sh64 to ${tmake_file}.
2553         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
2554         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
2555         * config/sh/t-netbsd-sh5-32: Remove.
2556         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
2557         MULTILIB_ENDIAN.
2558         (MULTILIB_DIRNAMES): Define.
2559
2560 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
2561
2562         * i386.md (and promoting splitters): Disable QI to SImode promoting
2563         when doing so changes immediate to be 32bit.
2564
2565         * rtl.h (emit_*_scope): Declare.
2566         * emit-rtl.c (emit_*_scope): New global functions.
2567         (try_split): Copy scope.
2568         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2569         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2570         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
2571         noce_process_if_block, find_cond_trap): Copy scopes.
2572         * recog.c (peephole2_optimize): likewise.
2573
2574 2002-06-06  Jeffrey Law  <law@redhat.com>
2575
2576         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
2577
2578 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
2579
2580         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
2581
2582 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2583
2584         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
2585         ($(docdir)/gccinstall.info): New target.
2586         (info): Depend on it.
2587         (gccinstall.dvi): New target.
2588         (dvi): Depend on it.
2589         * doc/.cvsignore: Ignore new info files.
2590         * doc/install.texi (@setfilename): Reflect new info filename.
2591
2592 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
2593
2594         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
2595         on an UNSPEC.
2596
2597 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
2598
2599         PR objc/6834
2600         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
2601         c_common_get_alias_set.
2602         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
2603
2604 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2605
2606         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
2607         functions.
2608         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
2609         * avr/avr.c (avr_output_function_epilogue): Use above to determine
2610         function size.
2611         * pa/pa.c (pa_output_function_prologue): Likewise.
2612
2613 2002-06-05  David S. Miller  <davem@redhat.com>
2614
2615         * integrate.c (subst_constants): Handle 'B' RTL format.
2616
2617 2002-06-05  Eric Christopher  <echristo@redhat.com>
2618
2619         * varasm.c (make_decl_rtl): Fix comment for removed
2620         halfpic.c.
2621
2622 2002-06-05  Eric Christopher  <echristo@redhat.com>
2623
2624         * Makefile.in: Remove missed halfpic bits.
2625
2626 2002-06-05  Eric Christopher  <echristo@redhat.com>
2627
2628         * toplev.c: Remove half-pic.
2629         * config/mips/mips.c: Ditto.
2630         * config/mips/mips.h: Ditto. Remove unused defines.
2631         * config/mips/openbsd.h: Update comment to reflect above.
2632         * config/mips/mips.md: Remove half-pic constraints.
2633         * halfpic.h: Delete.
2634         * halfpic.c: Ditto.
2635
2636 2002-06-05  Jeffrey Law  <law@redhat.com>
2637
2638         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
2639         rejects (mem (lo_sum (reg) (unspec))), but will allow
2640         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
2641
2642 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2643
2644         * cpphash.h (_cpp_create_definition): Update prototype.
2645         (_cpp_push_text_context, _cpp_create_trad_definition): New.
2646         ( cpp_lex_identifier_trad): New.
2647         (_cpp_set_trad_context): New.
2648         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
2649         * cpplib.c (SEEN_EOL): Update.
2650         (lex_macro_node): Update for -traditional.
2651         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
2652         * cppmacro.c (_cpp_create_definition): Split into
2653         create_iso_definition() and _cpp_create_trad_definition().
2654         (warn_of_redefinition): Update prototype; handle traditional
2655         macros.
2656         (_cpp_push_text_context): New.
2657         * cpptrad.c (skip_whitespace, push_replacement_text): New.
2658         (lex_identifier): Call ht_lookup with correct start.
2659         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
2660         _cpp_set_trad_context): New.
2661         (scan_out_logical_line): Update to handle changing contexts.
2662
2663 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
2664
2665         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
2666         (shl*-*-elf*): Add.
2667         * config/sh/t-be (MULTILIB_ENDIAN): Set.
2668         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
2669         * t-sh (MULTILIB_ENDIAN): Set.
2670         (MULTILIB_OPTIONS): Use it.
2671         * t-sh64 (MULTILIB_OPTIONS): Likewise.
2672         (MULTILIB_DIRNAMES): Likewise.
2673
2674 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
2675
2676         * toplev.h (report_error_function): Remove.
2677
2678         * diagnostic.h (location_t): New datatype.
2679         (text_info): Likewise.
2680         (diagnostic_info): Likewise.
2681         (output_prefix): New macro.
2682         (diagnostic_last_function_changed): Likewise.
2683         (diagnostic_set_last_function): Likewise.
2684         (diagnostic_last_module_changed): Likewise.
2685         (diagnostic_set_last_module): Likewise.
2686         (report_diagnostic): Now macro.
2687         (diagnostic_set_info): Declare.
2688
2689         * diagnostic.c (report_problematic_module): Rename to
2690         diagnostic_repor_current_module.
2691         (set_diagnostic_context): Remove.
2692         (count_error): Rename to diagnostic_error_count.
2693         (error_function_changed): Remove.
2694         (record_last_error_function): Likewise.
2695         (error_module_changed): Likewise.
2696         (record_last_error_module): Likewise.
2697         (context_as_prefix): Rename to diagnostic_build_prefix.
2698         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
2699         (diagnostic_set_info): New function.
2700
2701         * objc/objc-act.c: #include diagnostic.h
2702         (error_with_ivar): Adjust call to count_error.
2703         (warn_with_method): Likewise.
2704         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
2705
2706 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
2707
2708         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
2709         lang_hooks.types.make_type instead of make_node; set up
2710         __va_list_tag type decl.
2711         (xtensa_builtin_saveregs): Remove broken use of
2712         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
2713         for saved registers; add varargs alias set.
2714
2715 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2716
2717 config:
2718         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
2719         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
2720         CPP_PREDEFINES and part of CPP_SPEC.
2721         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
2722         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
2723
2724 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
2725
2726         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
2727
2728 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
2729
2730         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
2731
2732 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
2733
2734         * gengtype-yacc.y: Make sure all rules end with a semicolon.
2735
2736 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
2737
2738         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
2739         typo in function prototype and include "ggc.h" header.
2740
2741 2002-06-04  Richard Henderson  <rth@redhat.com>
2742
2743         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
2744         (print_operand) ['U']: Likewise.
2745         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
2746         (alpha_expand_unaligned_store_words): Likewise.
2747         (alpha_expand_builtin_vector_binop): Fix typo.
2748         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
2749         umulh, and cix insns.
2750         (one_arg_builtins): Add cix builtins.
2751         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
2752         (alpha_expand_builtin): Fix typo in arity.
2753         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
2754         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
2755         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
2756         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
2757         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
2758         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
2759         builtin_ctlz, builtin_ctpop): New.
2760         * doc/extend.texi (Alpha Built-in Functions): Update.
2761
2762 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
2763
2764         * gengtype.c (write_gc_root): Don't unnecessarily prevent
2765         global variable-length arrays being roots.
2766
2767         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
2768         * configure.in (config_gtfiles): New variable.
2769         (all_gtfiles): Initialise from config_gtfiles.
2770         * configure: Regenerate.
2771
2772 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2773
2774 config/i386:
2775         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
2776         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
2777         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
2778         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
2779         win32.h (CPP_SPEC): Remove cpp_cpu.
2780         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
2781         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
2782
2783 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
2784
2785         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
2786
2787 2002-06-04  Jeff Law <law@redhat.com.
2788             David Edelsohn <edelsohn@gnu.org>
2789             Michael Matz <matz@kde.org>
2790
2791         * sched-int.h (struct deps): New field libcall_block_tail_insn.
2792         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
2793         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
2794         is set, then mark the current insn as being part of a libcall
2795         scheduling group.
2796         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
2797
2798         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
2799         insns against the issue rate.
2800
2801 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
2802
2803         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
2804         * final.c (final_scan_insn): Likewise.
2805         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
2806         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
2807         * haifa-sched.c (unlink_other_notes): Likeewise.
2808         (reemit_notes): Likewise.
2809         * print-rtl.c (print_rtx): Likewise.
2810         * sched-deps (sched-analyze): Likewise.
2811         * rtl.c (note_insn_name): Likewise.
2812         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
2813         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
2814         (RANGE_*): Kill.
2815
2816 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
2817
2818         * varasm.c (mark_constants): Handle RTX format 'B'.
2819
2820 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2821
2822         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
2823         (struct cpp_context): Add traditional fields.
2824         * cppmacro.c (paste_all_tokens, push_ptoken_context,
2825         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
2826         * cpptrad.c (skip_comment, lex_identifier,
2827         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
2828
2829 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
2830
2831         * gbl-ctors.h: Fix formatting.
2832         * gcc.c: Likewise.
2833         * gccspec.c: Likewise.
2834         * gcov.c: Likewise.
2835         * gcov-io.h: Likewise.
2836         * gcse.c: Likewise.
2837         * ggc-common.c: Likewise.
2838         * ggc.h: Likewise.
2839         * ggc-page.c: Likewise.
2840         * ggc-simple.c: Likewise.
2841         * global.c: Likewise.
2842         * graph.h: Likewise.
2843         * gthr-dce.h: Likewise.
2844         * gthr.h: Likewise.
2845         * gthr-posix.h: Likewise.
2846         * gthr-rtems.h: Likewise.
2847         * gthr-solaris.h: Likewise.
2848         * gthr-win32.h: Likewise.
2849
2850 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
2851
2852         Merge from pch-branch:
2853
2854         * gengtype.h (UNION_OR_STRUCT_P): New macro.
2855         * gengtype.c (write_gc_structure_fields): Use it.
2856         (write_gc_root): Use it here too.
2857
2858         * gengtype.c (write_gc_structure_fields): Assume that lengths
2859         of typenames fit into an 'int'; don't pass a size_t to "%d" in
2860         printf.
2861         (write_gc_marker_routine_for_structure): Likewise.
2862         (write_gc_types): Likewise.
2863         (write_gc_root): Likewise.
2864
2865         * varray.h (VARRAY_CLEAR): New.
2866         (varray_clear): Prototype.
2867         * varray.c (varray_clear): New.
2868         * cselib.c (reg_values_old): New.
2869         (used_regs_old): New.
2870         (cselib_init): Use cached varrays if available to avoid
2871         generating large amounts of garbage.
2872         (cselib_finish): Don't throw away old varrays.
2873
2874         * final.c (insn_addresses_): Move out of ifdef.
2875
2876         * varray.c (uses_ggc): Make more varray kinds GCable.
2877         * varray.h (union varray_data_tag): Let gengtype see
2878         fields 'generic' and 'te'.
2879         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
2880         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
2881         (reg_to_stack): Don't call VARRAY_FREE.
2882         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
2883         (insn_addresses_): Use gengtype to mark.
2884         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
2885         pointers; handle generic pointers in unused union fields.
2886         (get_output_file_with_visibility): Include cselib.h,
2887         insn-addr.h in gtype-desc.c.
2888         * function.c (prologue): Use gengtype to mark.
2889         (epilogue): Likewise.
2890         (sibcall_epilogue): Likewise.
2891         * dependence.c: Include gt-dependence.h, ggc.h.
2892         (struct def_use): Use gengtype to mark.
2893         (struct loop): Likewise.
2894         (struct induction): Likewise.
2895         (struct dependence): Likewise.
2896         (def_use_chain): Likewise.
2897         (dep_chain): Likewise.
2898         (loop_chain): Likewise.
2899         (induction_chain): Likewise.
2900         (init_dependence_analysis): Don't free anything, just clear pointers.
2901         (build_def_use): Use GGC to allocate def_use.
2902         (add_loop): Use GGC to allocate loop.
2903         (find_induction_variable): Use GGC to allocate induction.
2904         (check_node_dependence): Use GGC to allocate induction, dependence.
2905         (dump_node_dependence): Don't free varrays.
2906         (end_dependence_analysis): Likewise.
2907         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
2908         (struct elt_loc_list): Likewise.
2909         (struct elt_list): Likewise.
2910         * cselib.c: Don't include obstack.h.
2911         (hash_table): Use gengtype to mark.
2912         (reg_values): Use gengtype to mark.
2913         (used_regs): Use gengtype to mark.
2914         (cselib_obstack): Delete.
2915         (cselib_startobj): Delete.
2916         (empty_vals): Mark as deletable.
2917         (empty_elt_lists): Mark as deletable.
2918         (empty_elt_loc_lists): Mark as deletable.
2919         (new_elt_list): Use GGC to allocate struct elt_list.
2920         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
2921         (clear_table): Don't delete obstack; don't unnecessarily clear
2922         deletable variables.
2923         (new_cselib_val): Use GGC to allocate struct cselib_val.
2924         (cselib_init): Don't set up obstacks.  Use GGC to allocate
2925         hash table.
2926         (cselib_finish): Just clear variables, don't free anything.
2927         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
2928         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
2929         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
2930         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
2931         (gt-reg-stack.h): New rule.
2932         (gt-dependence.h): New rule.
2933         (gtype-desc.o): Add cselib.h, insn-addr.h.
2934
2935         * varray.c: Use only necessary headers.
2936         (element_size): New.
2937         (uses_ggc): New.
2938         (varray_init): Take type, not size.  Use GGC if appropriate.
2939         (varray_grow): Update for change to struct varray_head_tag.
2940         Use GGC if appropriate.
2941         * varray.h (struct const_equiv_data): Use gengtype.
2942         (enum varray_data_enum): New.
2943         (union varray_data_tag): Use gengtype.
2944         (struct varray_head_tag): Use gengtype.  Replace size field with
2945         enum varray_data_enum.
2946         (varray_init): Update prototype.
2947         (VARRAY_SCHED_INIT): Delete.
2948         (VARRAY_*_INIT): Update for change to varray_init.
2949         (VARRAY_SCHED): Delete.
2950         (VARRAY_PUSH_SCHED): Delete.
2951         (VARRAY_TOP_SCHED): Delete.
2952         * tree.h: Update for change to length specifier.
2953         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
2954         (clone_body): Likewise.
2955         * ssa.h (ssa_definition): Use gengtype to mark.
2956         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
2957         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
2958         * rtl.h (struct rtvec_def): Update for change to length specifier.
2959         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
2960         (struct initial_value_struct): Update for change to length specifier.
2961         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
2962         (ggc_add_tree_varray_root): Delete prototype.
2963         (ggc_mark_rtx_varray): Delete prototype.
2964         (ggc_mark_tree_varray): Delete prototype.
2965         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
2966         (ggc_add_tree_varray_root): Delete.
2967         (ggc_mark_rtx_varray): Delete.
2968         (ggc_mark_tree_varray): Delete.
2969         (ggc_mark_rtx_varray_ptr): Delete.
2970         (ggc_mark_tree_varray_ptr): Delete.
2971         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
2972         (create_varray): Delete prototype.
2973         * gengtype.c (varrays): Delete.
2974         (create_varray): Delete.
2975         (adjust_field_type): Detect array of string pointers.
2976         (process_gc_options): Remove code to handle varray_type option.
2977         (set_gc_used_type): Remove TYPE_VARRAY case.
2978         (output_escaped_param): New.
2979         (write_gc_structure_fields): Use output_escaped_param on all
2980         parameters.  Handle 'skip' with 'use_param' option.  Handle
2981         arrays of strings.  Remove TYPE_VARRAY handling.
2982         (write_gc_roots): Use boolean to detect 'length' option.
2983         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
2984         (struct_fields): Call adjust_field_type on array fields.
2985         (type): Remove VARRAY_TYPE case.
2986         (type_option): Likewise.
2987         * gengtype-lex.l: Don't consider varray_type a keyword.
2988         * function.h: Update for change to length specifier.
2989         (free_eh_status): Delete prototype.
2990         * function.c (free_after_compilation): Don't call free_eh_status.
2991         (reorder_blocks): Don't use VARRAY_FREE.
2992         * except.c (struct eh_status): Update for change to length specifier.
2993         remove varray_type specifier.
2994         (free_eh_status): Delete.
2995         * dwarf2out.c: Include gt-dwarf2out.h.
2996         (used_rtx_varray): Use gengtype to mark, move
2997         outside ifdefs.
2998         (incomplete_types): Likewise.
2999         (decl_scope_table): Likewise.
3000         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
3001         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
3002         * c-tree.h (struct lang_type): Update for change to length specifier.
3003         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
3004         * c-objc-common.c: Include gt-c-objc-common.h.
3005         (deferred_fns): Mark for gengtype.
3006         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
3007         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
3008         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
3009         (gtype-desc.o): Update dependencies.
3010         (dwarf2out.o): Add gt-dwarf2out.h.
3011         (varray.o): Update dependencies.
3012         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
3013         (gt-c-objc-common.h): New rule.
3014         (gt-dwarf2out.h): New rule.
3015         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
3016
3017         * doc/gty.texi (GTY Options): Correct spelling.
3018         (GGC Roots): Likewise.
3019         * Makefile.in (TEXI_CPP_FILES): New.
3020         (TEXI_GCC_FILES): New.
3021         (TEXI_GCCINT_FILES): New.
3022         (TEXI_CPPINT_FILES): New.
3023         ($(docdir)/cpp.info): Use new macros.
3024         ($(docdir)/gcc.info): Likewise.
3025         ($(docdir)/gccint.info): Likewise.
3026         ($(docdir)/cppinternals.info): Likewise.
3027         (cpp.dvi): Likewise.
3028         (gcc.dvi): Likewise.
3029         (gccint.dvi): Likewise.
3030         (cppinternals.dvi): Likewise.
3031
3032         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
3033         * doc/gccint.texi (Top): Include gty.texi.
3034         * doc/gty.texi: New file.
3035
3036         * bitmap.c: Include ggc.h, gt-bitmap.h.
3037         (bitmap_ggc_free): New.
3038         (bitmap_elem_to_freelist): New.
3039         (bitmap_element_free): Use bitmap_elem_to_freelist.
3040         (bitmap_element_allocate): Allow use of GGC.
3041         (bitmap_clear): Use bitmap_elem_to_freelist.
3042         (bitmap_copy): Update for change to bitmap_element_allocate.
3043         (bitmap_set_bit): Likewise.
3044         (bitmap_operation): Update for changes elsewhere.
3045         (bitmap_initialize): Allow to create bitmaps that will use GGC.
3046         * bitmap.h (struct bitmap_element_def): Use gengtype.
3047         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
3048         (bitmap_initialize): Add extra parameter.
3049         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
3050         (BITMAP_ALLOCA): Delete.
3051         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
3052         (BITMAP_GGC_ALLOC): New.
3053         * Makefile.in (gtype-desc.o): Add bitmap.h.
3054         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
3055         (GTFILES): Add bitmap.c.
3056         (gt-bitmap.h): New rule.
3057         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
3058         * basic-block.h: Update for changes to bitmap_initialize.
3059         * except.c (exception_handler_label_map): Move into...
3060         (struct eh_status): Here.
3061         (struct eh_region): Make 'aka' GCable.
3062         (free_eh_status): Don't need to specially handle
3063         exception_handler_label_map.
3064         (add_ehl_entry): Update for changes to exception_handler_label_map.
3065         (find_exception_handler_labels): Likewise.
3066         (remove_exception_handler_label): Likewise.
3067         (maybe_remove_eh_handler): Likewise.
3068         (for_each_eh_label): Likewise.
3069         (remove_eh_handler): Allocate 'aka' using GGC.
3070         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
3071         to list of includes.
3072
3073         * gengtype.c (write_gc_marker_routine_for_structure): Name
3074         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
3075         (write_gc_types): Arrange for the tests with NULL to be inlined.
3076         (write_gc_roots): Update uses of procedure pointers.
3077         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
3078
3079         * Makefile.in (explow.o): Add dependency on gt-explow.h.
3080         (sdbout.o): Add dependency on gt-sdbout.h.
3081
3082         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
3083         (mem_attrs_htab): Likewise.
3084         (init_emit_once): Don't call ggc_add_deletable_htab.
3085         * fold-const.c (size_htab): Use gengtype to clear unused entries.
3086         (size_int_type_wide): Don't call ggc_add_deletable_htab.
3087         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
3088         parameters, use them, change callers.
3089         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
3090         (write_gc_roots): Handle 'if_marked' option.
3091         (main): Don't need to call set_gc_used_type any more.
3092         * ggc.h (ggc_htab_marked_p): Delete.
3093         (ggc_htab_mark): Delete.
3094         (struct ggc_cache_tab): New.
3095         (gt_ggc_cache_rtab): New declaration.
3096         * ggc-common.c (struct d_htab_root): Delete.
3097         (d_htab_roots): Delete.
3098         (ggc_add_deletable_htab): Delete.
3099         (ggc_htab_delete): Handle new htab-deleting mechanism.
3100         (ggc_mark_roots): Use new htab-deleting mechanism.
3101         * tree.c (type_hash_table): Use gengtype to clear unused entries.
3102         Make static.
3103         (init_obstacks): Don't call ggc_add_deletable_htab.
3104
3105         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
3106         (struct hashed_entry): Likewise.
3107         (nst_method_hash_list): Likewise.
3108         (cls_method_hash_list): Likewise.
3109         (HASH_ALLOC_LIST_SIZE): Delete.
3110         (ATTR_ALLOC_LIST_SIZE): Delete.
3111         * objc/objc-act.c (hash_init): Use ggc to allocate
3112         nst_method_hash_list, cls_method_hash_list.
3113         (hash_enter): Use ggc to allocate; allocate one entry at a time.
3114         (hash_add_attr): Likewise.
3115         (ggc_mark_hash_table): Delete.
3116         (objc_act_parse_init): Delete.
3117         (objc_init): Delete reference to objc_act_parse_init.
3118         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
3119         obstack.h.  Replace references to 'struct hash_table' with htab_t.
3120         (struct symbol_hash_entry): Replace hash header with key field.
3121         (struct file_hash_entry): Replace hash header with key field.
3122         (struct demangled_hash_entry): Replace hash header with key field.
3123         (hash_string_eq): New.
3124         (hash_string_hash): New.
3125         (symbol_hash_newfunc): Delete.
3126         (symbol_hash_lookup): Modify to use htab_t.
3127         (file_hash_newfunc): Delete.
3128         (file_hash_lookup): Modify to use htab_t.
3129         (demangled_hash_newfunc): Delete.
3130         (demangled_hash_lookup): Modify to use htab_t.
3131         (tlink_init): Modify to use htab_t.
3132         * hash.h: Delete.
3133         * hash.c: Delete.
3134         * ggc.h: Delete forward structure declarations.
3135         Delete prototypes for deleted functions.
3136         * ggc-common.c: Don't include hash.h.
3137         (ggc_add_tree_hash_table_root): Delete.
3138         (ggc_mark_tree_hash_table_entry): Delete.
3139         (ggc_mark_tree_hash_table): Delete.
3140         (ggc_mark_tree_hash_table_ptr): Delete.
3141         * gengtype.c (write_gc_structure_fields): Allow param_is option.
3142         (write_gc_marker_routine_for_structure): Use visibility of
3143         the parameter if there is one.
3144         * function.c: Replace hash.h with hashtab.h.  Replace references
3145         to 'struct hash_table *' with htab_t.
3146         (struct insns_for_mem_entry): Include a plain key.
3147         (fixup_var_refs_insns_with_hash): Update to use htab_t.
3148         (insns_for_mem_newfunc): Delete.
3149         (insns_for_mem_hash): Update to use htab_t.
3150         (insns_for_mem_comp): Likewise.
3151         (insns_for_mem_walk): Likewise.
3152         * c-lang.c: Include ggc.h.
3153         * Makefile.in (OBJS): Remove hash.o.
3154         (c-lang.o): Add GGC_H.
3155         (COLLECT2_OBJS): Remove hash.o.
3156         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
3157         (ggc-common.o): Remove hash.h.
3158         (function.o): Remove hash.h, add HASHTAB_H.
3159         (genautomata.o): Remove hash.h, add HASHTAB_H.
3160
3161         * varasm.c (mark_const_str_htab_1): Delete.
3162         (mark_const_str_htab): Delete.
3163         (const_str_htab_del): Delete.
3164         (const_str_htab): Use gengtype to mark.
3165         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
3166         allocate them.
3167         * tree.c (mark_tree_hashtable_entry): Delete.
3168         (mark_tree_hashtable): Delete.
3169         * tree.h (mark_tree_hashtable): Delete prototype.
3170         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
3171         (ggc_mark): Likewise.
3172         (ggc_calloc): New.
3173         (htab_create_ggc): New.
3174         * ggc-common.c (ggc_calloc): New.
3175         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
3176         (struct type): Add param_struct structure.
3177         * gengtype.c (param_structs): New.
3178         (adjust_field_type): Handle param_is option.
3179         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
3180         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
3181         (write_gc_structure_fields): Add new PARAM parameter.  Update
3182         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
3183         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
3184         Use it to generate function name.  Update callers.
3185         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
3186         Process them.
3187         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
3188         option.
3189         (main): Define PTR as pointer-to-scalar.  Don't specially
3190         mark deferred_string or ehl_map_entry.
3191         * gengtype-yacc.y (PARAM_IS): Add new token.
3192         (externstatic): Use adjust_field_type.
3193         (type_option): Add PARAM_IS.
3194         * gengtype-lex.l: Add rule for typedef of function pointers.
3195         Add rule for PARAM_IS.
3196         (IWORD): Add size_t.
3197         * except.c (exception_handler_label_map): Use gengtype to mark.
3198         (type_to_runtime_map): Likewise.
3199         (mark_ehl_map_entry): Delete.
3200         (mark_ehl_map): Delete.
3201         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
3202         (t2r_mark_1): Delete.
3203         (t2r_mark): Delete.
3204         * Makefile.in (gtype-desc.o): Correct dependencies.
3205         (GTFILES): Add hashtab.h.
3206         (genautomata.o): Actually uses hashtab.h.
3207
3208         * Makefile.in (stringpool.o): Add $(GGC_H).
3209         (dwarf2asm.o): Likewise.
3210         (GTFILES): Add hashtable.h.
3211         * c-common.h (struct c_common_identifier): Use gengtype.
3212         * c-decl.h (c_mark_tree): Delete.
3213         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3214         * c-tree.h (struct lang_identifier): Use gengtype.
3215         (union lang_tree_node): New.
3216         (c_mark_tree): Delete prototype.
3217         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
3218         dwarf2_debug_hooks.
3219         * gengtype-lex.l (IWORD): Allow 'bool'.
3220         (ptr_alias): Match.
3221         * gengtype-yacc.y (ALIAS): New token.
3222         (type_option): New rule.
3223         (option): Use type_option.
3224         * gengtype.c (process_gc_options): New.
3225         (set_gc_used_type): Use it.
3226         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
3227         Add new variable 't' to hold the type of the field being processed.
3228         Add more error checking.  Use UNION_P when looking at 'desc' option.
3229         Handle language-specific structures containing other
3230         language-specific structures.
3231         (write_gc_types): Handle 'ptr_alias' option.
3232         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
3233         * ggc-common.c (ggc_pending_trees): Delete.
3234         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
3235         (ggc_mark_trees): Delete.
3236         (gt_ggc_m_tree_node): Delete.
3237         * ggc.h (ggc_pending_trees): Delete.
3238         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
3239         * hashtable.h (ht_identifier): Use gengtype.
3240         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
3241         * langhooks.h (struct lang_hooks): Delete mark_tree.
3242         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
3243         anyway.
3244         * system.h: Poison LANG_HOOKS_MARK_TREE.
3245         * tree.c (tree_node_structure): New.
3246         * tree.h (struct tree_common): Use gengtype.
3247         (struct tree_int_cst): Likewise.
3248         (struct tree_real_cst): Likewise.
3249         (struct tree_string): Likewise.
3250         (struct tree_complex): Likewise.
3251         (struct tree_vector): Likewise.
3252         (struct tree_identifier): Likewise.
3253         (struct tree_list): Likewise.
3254         (struct tree_vec): Likewise.
3255         (struct tree_exp): Likewise.
3256         (struct tree_block): Likewise.
3257         (struct tree_type): Likewise.
3258         (struct tree_decl): Likewise.
3259         (enum tree_structure_enum): New.
3260         (union tree_node): Use gengtype, with an alias.
3261         (tree_node_structure): Prototype.
3262         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
3263
3264         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
3265         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
3266         to LANG_HOOKS_FUNCTION_FINAL.
3267         * Makefile.in (GTFILES): Add bitmap.h.
3268         * except.c (struct eh_region): Mark field 'aka' to be skipped.
3269
3270         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
3271         (alpha_init_machine_status): Give proper type.
3272         * Makefile.in (c-lang.o): Depend on gtype-c.h.
3273         (optabs.o): Depend on gt-optabs.h.
3274         (GTFILES): Add optabs.o.
3275         (gt-optabs.h): Add rule.
3276         * optabs.c: Include gt-optabs.h.
3277
3278         * gengtype.c (set_gc_used_type): Correct some errors in last change.
3279         (write_gc_structure_fields): If a field which should be NULL is
3280         not, abort.
3281         * c-pragma.c: Move struct align_stack and variable alignment_stack
3282         out from the ifdef.
3283
3284         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
3285         * config/xtensa/xtensa.c: Include gt-cris.h.
3286         (struct machine_function): Use gengtype to mark.
3287         * config/mmix/mmix.h (struct machine_function): Use gengtype
3288         to mark.
3289         * config/cris/t-cris: Add dependencies for gt-cris.h.
3290         * config/cris/cris.c: Include gt-cris.h.
3291         (struct machine_function): Use gengtype to mark.
3292         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
3293         to mark.
3294         * doc/tm.texi (Per-Function Data): Delete references to
3295         mark_machine_status.
3296         * config/ia64/ia64.c (ia64_override_options): Don't set
3297         mark_machine_status.
3298         * config/i386/i386.c (override_options): Likewise.
3299         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
3300         * config/arm/arm.c (arm_init_expanders): Likewise.
3301         * config/alpha/alpha.c (override_options): Likewise.
3302         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
3303         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
3304         (write_gc_structure_fields): Don't handle 'really' option.
3305         Handle 'maybe_null' option.
3306         (write_gc_types): Handle 'maybe_null' option.
3307         * function.h (struct function): Don't use "really".
3308         (mark_machine_status): Delete declaration.
3309         (mark_lang_status): Delete declaration.
3310         (gt_ggc_mr_machine_function): Delete prototype.
3311         (gt_ggc_mr_language_function): Delete prototype.
3312         * function.c (mark_machine_status): Delete.
3313         (mark_lang_status): Delete.
3314         (gt_ggc_mr_machine_function): Delete.
3315         (gt_ggc_mr_language_function): Delete.
3316         * c-tree.h (mark_c_function_context): Delete prototype.
3317         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
3318         * c-decl.c (struct language_function): Rename from struct
3319         c_language_function.  Update uses.  Use gengtype to mark.
3320         (mark_c_function_context): Delete.
3321         * c-common.h (struct c_language_function): Rename from struct
3322         language_function.
3323         (mark_stmt_tree): Delete prototype.
3324         (c_mark_lang_decl): Delete prototype.
3325         (mark_c_language_function): Delete prototype.
3326         * c-common.c (mark_stmt_tree): Delete.
3327         (c_mark_lang_decl): Delete.
3328         (mark_c_language_function): Delete.
3329
3330         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
3331         (lang_bitmap): New typedef.  Use where appropriate.
3332         (struct type): Add gc_used field, lang_struct field.
3333         (UNION_P): New macro.
3334         (new_structure): New prototype.
3335         (find_structure): Remove 'pos' parameter.  Change all callers.
3336         * gengtype-lex.l: Update for changes to find_structure.
3337         * gengtype-yacc.y (typedef_struct): Use new_structure.
3338         (yacc_ids): Suppress warning.
3339         (type): Use new_structure.
3340         * gengtype.c (string_type): Update for changes to struct type.
3341         (find_structure): Just find a structure, don't worry about
3342         creating one.
3343         (new_structure): New.
3344         (note_yacc_type): Use new_structure.
3345         (set_gc_used_type): New.
3346         (set_gc_used): New.
3347         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
3348         (write_gc_types): Handle TYPE_LANG_STRUCT.
3349         (write_gc_marker_routine_for_structure): New.
3350         (main): Call set_gc_used.  Add some calls to set_gc_used_type
3351         for places where GCC doesn't use gengtype properly yet.
3352         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
3353         (gt_ggc_m_tree_node): Likewise.
3354
3355         * varasm.c (copy_constant): Call expand_constant if we hit
3356         something we can't recognise.
3357
3358         * ggc-common.c (ggc_mark_rtvec_children): Delete.
3359         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
3360         (lang_mark_false_label_stack): Delete.
3361         * rtl.h (struct rtvec_def): Use gengtype to mark.
3362         * ggc.h (ggc_mark_rtvec): Delete.
3363         (gt_ggc_m_rtvec_def): Delete.
3364         (ggc_mark_nonnull_tree): Delete.
3365         (ggc_mark_rtvec_children): Delete prototype.
3366         (lang_mark_false_label_stack): Delete declaration.
3367
3368         * gengtype.h (note_yacc_type): Add prototype.
3369         * gengtype.c (note_yacc_type): New function.
3370         * gengtype-lex.l: Add lexer support for yacc files.
3371         * gengtype-yacc.y (start): Extract union from yacc files.
3372         (yacc_union): New rule.
3373         (yacc_typematch): New rule.
3374         (yacc_ids): New rule.
3375         (enum_items): Tweak for efficiency.
3376         (optionseq): Likewise.
3377
3378         * c-common.h (struct language_function): Use gengtype.
3379         (struct c_lang_decl): Likewise.
3380         * c-tree.h (struct lang_decl): Likewise.
3381         (struct lang_type): Likewise.
3382         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
3383         tree language substructures.
3384
3385         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
3386         ggc_mark_tree.
3387         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
3388
3389         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
3390
3391         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
3392         mark. Remove 'data.block.cleanup_ptr' field.
3393         (struct stmt_status): Use usual technique to mark struct nesting.
3394         (gt_ggc_mr_nesting_cond): Delete.
3395         (gt_ggc_mr_nesting_loop): Delete.
3396         (gt_ggc_mr_nesting_block): Delete.
3397         (gt_ggc_mr_nesting_case_stmt): Delete.
3398         (expand_start_cond): Set discriminator.
3399         (expand_start_loop): Likewise.
3400         (expand_start_null_loop): Likewise.
3401         (expand_start_bindings_and_block): Set discriminator.  Don't set
3402         deleted fields.
3403         (expand_decl_cleanup): Replace 'cleanup_ptr' with
3404         &thisblock->data.block.cleanups.
3405         (expand_start_case): Set discriminator.
3406         (expand_start_case_dummy): Set discriminator.
3407
3408         * ggc-callbacks.c: Remove.
3409
3410         * gengtype.h (struct type): Add 'u.s.bitmap' field.
3411         (find_structure): Add 'pos' parameter.
3412         * gengtype-lex.l: Update callers to find_structure.
3413         * gengtype-yacc.y: Likewise.
3414         * gengtype.c (find_structure): Allow for structures to be defined
3415         in multiple language backends.
3416         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
3417         (counter): Rename to gc_counter.
3418         (write_gc_structure_fields): Fail when writing out fields for
3419         an incomplete structure.  Ignore arrays of scalars.  Handle
3420         'tree_vec' special.
3421         (write_gc_types): Reset counter for each procedure written.
3422
3423         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
3424         (free_case_nodes): Delete.
3425         (expand_end_case_type): Delete call to free_case_nodes.
3426
3427         * Makefile.in (cselib.o): Include gt-<filename>.h.
3428         (gcse.o): Likewise.
3429         (profile.o): Likewise.
3430         (alias.o): Likewise.
3431         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
3432         alphabetize backend files.
3433         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
3434         * alias.c: Use gengtype for roots.
3435         * c-common.h (struct stmt_tree_s): Use gengtype.
3436         * c-decl.c: Use gengtype for roots.
3437         * cselib.c: Use gengtype for roots.
3438         * expr.c: Use gengtype for roots.
3439         * fold-const.c: Use gengtype for roots.
3440         * gcse.c: Use gengtype for roots.
3441         * gengtype-lex.l: Handle typedefs of function types.
3442         Allow for empty array bounds.
3443         Allow processing to stop on initialisers.
3444         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
3445         (semiequal): New rule.
3446         * gengtype.c (create_file): Tidy output files.
3447         (get_output_file_with_visibility): Fix paren warning.  Fix bug
3448         involving multiple input files mapping to one output file.
3449         (write_gc_structure_fields): Skip arrays of scalars.
3450         (write_gc_types): Tidy output files.
3451         (write_gc_root): New function.
3452         (write_gc_roots): Fix bugs, add support for roots that are
3453         structures.
3454         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
3455         (ggc_mark_tree_ptr): Delete.
3456         (ggc_add_rtx_root): Delete.
3457         (ggc_add_tree_root): Delete.
3458         (ggc_del_root): Delete.
3459         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
3460         allocate struct initial_value_struct.
3461         * profile.c: Use gengtype for roots.
3462         * sdbout.c: Use gengtype for roots.
3463         * varasm.c (mark_weak_decls): Delete unused prototype.
3464         (mark_const_hash_entry): Delete unused function.
3465         * config/darwin-protos.h: Use gengtype for roots.
3466         (machopic_add_gc_roots): Delete.
3467         * config/arm/arm.c: Use gengtype for roots.
3468         * config/arm/arm.h: Use gengtype for roots.
3469         * config/c4x/c4x-protos.h: Use gengtype for roots.
3470         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
3471         * config/d30v/d30v-protos.h: Use gengtype for roots.
3472         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
3473         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
3474         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
3475         * config/ia64/ia64-protos.h: Use gengtype for roots.
3476         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
3477         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
3478         * config/m68hc11/m68hc11.c (z_reg): Make global.
3479         (z_reg_qi): Make global.
3480         (m68hc11_add_gc_roots): Delete.
3481         * config/mcore/mcore-protos.h: Use gengtype for roots.
3482         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
3483         * config/mips/mips.c (mips_add_gc_roots): Delete.
3484         * config/mips/mips.h: Use gengtype for roots.
3485         * config/mmix/mmix.c (override_options): Use gengtype for roots.
3486         * config/mmix/mmix.h: Use gengtype for roots.
3487         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
3488         * config/mn10200/mn10200.h: Use gengtype for roots.
3489         * config/pa/pa.c: Use gengtype for roots, marking.
3490         (struct deferred_plabel): Use GGC, gengtype.
3491         (pa_add_gc_roots): Delete.
3492         (mark_deferred_plabels): Delete.
3493         * config/pj/pj-protos.h: Use gengtype for roots.
3494         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
3495         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
3496         machopic_add_gc_roots.
3497         * config/rs6000/rs6000.h: Use gengtype for roots.
3498         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
3499         (gt-darwin.h): Add rule.
3500         * config/sh/sh.c: Use gengtype for roots.
3501         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
3502         (gt-sh.h): Add rule.
3503         * config/sparc/sparc.c: Use gengtype for roots.
3504         (sparc_add_gc_roots): Delete.
3505         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
3506         (mark_ultrasparc_pipeline_state): Delete.
3507         * config/sparc/sparc.h: Use gengtype for roots.
3508
3509         * Makefile.in (c-parse.o): Update dependencies.
3510         (c-common.o): Likewise.
3511         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
3512         Add dependencies for the files they generate.
3513         * c-common.c: Replace ggc_add_* uses with GTY annotations.
3514         * c-common.h: Likewise.
3515         * c-decl.c: Likewise.
3516         (gt_ggc_mp_binding_level): Delete.
3517         * c-lang.c: Include gtype-c.h.
3518         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
3519         gt-c-parse.h.
3520         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
3521         (gt_ggc_mp_align_stack): Delete.
3522         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
3523         * function.c: Replace ggc_add_* uses with GTY annotations.
3524         (gt_ggc_mp_function): Delete.
3525         * function.h: Replace ggc_add_* uses with GTY annotations.
3526         * gengtype.c (lang_names): New.
3527         (NUM_BASE_FILES): New.
3528         (open_base_files): Create language base files.
3529         (startswith): New.
3530         (get_file_basename): New.
3531         (get_base_file_bitmap): New.
3532         (get_output_file_with_visibility): Rename from get_output_file.
3533         Add more mappings for various C/Objc filenames.
3534         (finish_root_table): New.
3535         (write_gc_roots): Handle dependencies and scoping properly.
3536         * gengtype.h: Add prototypes for new functions.
3537         * ggc-common.c (struct deletable_root): Delete.
3538         (deletables): Delete.
3539         (ggc_add_deletable_root): Delete.
3540         (ggc_mark_roots): No need to deal with deleted functionality.
3541         * ggc.h (ggc_add_deletable_root): Delete prototype.
3542         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
3543         (gtype-objc.h): Add rule to create.
3544         * objc/config-lang.in (gtfiles): New.
3545         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
3546         ggc_add_* with GTY markers.  Include gtype-objc.h.
3547         (ggc_mark_imp_list): Delete.
3548         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
3549         * objc/objc-lang.c: Random Whitespace Change.
3550
3551         * except.h (exception_handler_labels): Delete.
3552         (get_exception_handler_labels): New.
3553         * except.c (exception_handler_labels): Delete.
3554         (struct eh_status): Add exception_handler_labels field.
3555         (doing_eh): Don't add exception_handler_labels as root.
3556         (free_eh_status): Don't need to free exception_handler_labels.
3557         (get_exception_handler_labels): New.
3558         (find_exception_handler_labels): Update for move of
3559         exception_handler_labels.
3560         (remove_exception_handler_label): Likewise.
3561         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
3562         * jump.c (rebuild_jump_labels): Likewise.
3563         * loop.c (find_and_verify_loops): Likewise.
3564         * sched-rgn.c (is_cfg_nonregular): Likewise.
3565
3566         * gengtype.c (write_gc_structure_fields): Handle variable-length
3567         TYPE_ARRAYs.
3568
3569         * varasm.c (struct weak_syms): Use GGC, gengtype.
3570         (mark_weak_decls): Delete.
3571         (weak_decls): Likewise.
3572         (add_weak): Likewise.
3573         (remove_from_pending_weak_list): Likewise.
3574         (init_varasm_once): Likewise.
3575
3576         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
3577         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
3578         stor-layout.c, regclass.c, and lists.c.
3579         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
3580         gt-regclass.h and gt-lists.h on s-gtype.
3581         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
3582         * except.c: Use gengtype for roots.
3583         * explow.c: Use gengtype for roots.  Include gt-explow.h.
3584         * expr.h (init_stor_layout_once): Delete prototype.
3585         * function.c: Use gengtype for roots.
3586         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
3587         * gengtype-yacc.y (start): Can also be an externstatic.
3588         (externstatic): New production.
3589         (struct_fields): Correct array bounds inversion for 2-d arrays.
3590         * gengtype.c (variables): New variable.
3591         (note_variable): New function.
3592         (get_output_file): Include libfuncs.h into gtype-desc.c.
3593         (get_output_file_name): New function.
3594         (write_gc_structure_fields): Suppress warnings.
3595         (write_gc_types): Make static.
3596         (put_mangled_filename): New function.
3597         (write_gc_roots): New function.
3598         (main): Call write_gc_roots.
3599         * gengtype.h (note_variable): Prototype.
3600         (get_output_file_name): Prototype.
3601         (write_gc_types): Delete prototype.
3602         * ggc.h: Clean up unnecessary structure predefinitions.
3603         (struct ggc_root_tab): Define.
3604         (gt_ggc_m_rtx_def): Make function, not macro.
3605         (gt_ggc_m_tree_node): Likewise.
3606         * libfuncs.h: Use gengtype for roots.
3607         * lists.c: Use gengtype for roots.  Include gt-lists.h.
3608         (init_EXPR_INSN_LIST_cache): Delete.
3609         * optabs.c: Use gengtype for roots.
3610         (gt_ggc_mp_optab): Delete.
3611         * optabs.h: Use gengtype for roots.
3612         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
3613         * rtl.h: Use gengtype for roots.
3614         (init_EXPR_INSN_LIST_cache): Delete prototype.
3615         * stor-layout.c: Use gengtype for roots.
3616         Include gt-stor-layout.h.
3617         (init_stor_layout_once): Delete.
3618         * toplev.c: Use gengtype for roots.  Delete calls to deleted
3619         routines.
3620         * tree.c: Use gengtype for roots.
3621         * tree.h: Use gengtype for roots.
3622         * varasm.c: Use gengtype for roots.
3623
3624         * Makefile.in (GTFILES): Add @all_gtfiles@.
3625         * configure: Regenerate.
3626         * configure.in: Construct all_gtfiles from the gtfiles definitions
3627         in config-lang.in.
3628         * gengtype-yacc.y (type): Warn about duplicate structure names.
3629         * gengtype.c (get_output_file): Handle .c files in language
3630         subdirectories.
3631
3632         * Makefile.in (GTFILES): Run gengtype on all the config files
3633         and on the target .c file.
3634         * except.c (mark_eh_region): Delete.
3635         (init_eh_for_function): Use GGC on struct eh_status.
3636         (mark_eh_status): Delete.
3637         (free_eh_status): Use GGC.
3638         (expand_eh_region_start): Use GGC to
3639         (collect_eh_region_array): Allocate last_region_number using GGC.
3640         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
3641         (remove_eh_handler): Let GGC free struct eh_region.
3642         (add_call_site): Use GGC to reallocate call_site_record array.
3643         * function.c (init_machine_status): Update calling sequence.
3644         (mark_machine_status): Likewise.
3645         (mark_lang_status): Likewise.
3646         (prepare_function_start): Update init_machine_status call.
3647         (mark_function_status): Delete.
3648         (maybe_mark_struct_function): Delete.
3649         (ggc_mark_struct_function): Delete.
3650         (gt_ggc_mp_function): New.
3651         (gt_ggc_mr_machine_function): New.
3652         (gt_ggc_mr_language_function): New.
3653         (init_function_once): Use canonical names.
3654         * function.h (struct function): Use gengtype.
3655         (init_machine_status): Return the structure.
3656         (mark_machine_status): Take a 'void *'.
3657         (mark_lang_status): Likewise.
3658         * ggc-common.c (ggc_mark_trees): Use canonical name for
3659         ggc_mark_struct_function.
3660         * tree.h (ggc_mark_struct_function): Delete prototype.
3661         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
3662         (alpha_init_machine_status): Likewise.
3663         (override_options): Use canonical name for alpha_mark_machine_status.
3664         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
3665         * config/arm/arm.h (struct machine_function): Use gengtype.
3666         * config/arm/arm.c (arm_mark_machine_status): Delete.
3667         (arm_init_machine_status): Update calling sequence.
3668         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
3669         * config/cris/cris.c (cris_init_machine_status): Update
3670         calling sequence.
3671         * config/d30v/d30v.h (struct machine_function): Use gengtype.
3672         * config/d30v/d30v.c (d30v_init_machine_status): Update
3673         calling sequence.
3674         (d30v_mark_machine_status): Delete.
3675         * config/i386/i386.c: Include gt-i386.h.
3676         (struct machine_function): Use gengtype.
3677         (ix86_init_machine_status): Update calling sequence.
3678         (ix86_mark_machine_status): Delete.
3679         (override_options): Use canonical namke for ix86_mark_machine_status.
3680         * config/ia64/ia64.h (struct machine_function): Use gengtype.
3681         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
3682         sequence.
3683         (ia64_mark_machine_status): Delete.
3684         (ia64_override_options): Use canonical name for
3685         ia64_mark_machine_status.
3686         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
3687         sequence.
3688         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
3689         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3690         * gengtype.c (get_output_file): Fix warning.
3691         (main): Add prototype to suppress warning.
3692         * tree.c: Remove tree_hash_mark prototype.
3693
3694         * tree.h (init_stmt): Delete prototype.
3695         * toplev.c (lang_independent_init): Don't call init_stmt.
3696         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
3697         (stmt_obstack): Delete.
3698         (POPSTACK): No need to free 'struct nesting'.
3699         (gt_ggc_mr_nesting_cond): Use canonical names.
3700         (gt_ggc_mr_nesting_loop): Use canonical names.
3701         (gt_ggc_mr_nesting_block): Use canonical names.
3702         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
3703         (mark_stmt_status): Delete.
3704         (init_stmt): Delete.
3705         (clear_last_expr): Clear both last_expr_type and last_expr_value.
3706         Use it everywhere that last_expr_type was cleared.
3707         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
3708         (zap_lists): Delete.
3709         * ggc.h (ggc_add_deletable_root): Prototype.
3710         (mark_stmt_status): Remove prototype.
3711         * ggc-common.c (ggc_add_deletable_root): New.
3712         (ggc_mark_roots): Handle deletable roots.
3713         * function.c (ggc_mark_struct_function): Use canonical name
3714         for mark_stmt_status.
3715         * emit-rtl.c (free_sequence_stack): New.
3716         (start_sequence): Use a freelist for sequences.
3717         (end_sequence): Likewise.
3718         (init_emit_once): Add free_sequence_stack as a deleteable root.
3719         * c-pragma.c Include gt-c-pragma.h.
3720         (struct align_stack): Use gengtype.
3721         (push_alignment): Use GGC for struct align_stack.
3722         (mark_align_stack): Delete.
3723         (gt_ggc_mp_align_stack): New.
3724         (init_pragma): Use canonical name for mark_align_stack.
3725         * c-decl.c: Include gt-c-decl.h.
3726         (struct binding_level): Use gengtype.
3727         (make_binding_level): Use GGC; handle the freelist here.
3728         (pop_binding_level): New.
3729         (pushlevel): Move code into make_binding_level.
3730         (push_label_level): Likewise.
3731         (poplevel): Move code into pop_binding_level.
3732         (pop_label_level): Likewise.
3733         (mark_binding_level): Delete.
3734         (gt_ggc_mp_binding_level): New.
3735         (c_init_decl_processing): Use canonical name for mark_binding_level.
3736         Add free_binding_level as deletable root.
3737         (mark_c_function_context): Use canonical name for mark_binding_level.
3738         * Makefile.in (c-decl.o): Add gt-c-decl.h.
3739         (c-pragma.o): Add gt-c-pragma.h.
3740         (GTFILES): Add c-decl.c and c-pragma.c.
3741         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
3742
3743         * tree.c (struct type_hash): Use gengtype.
3744         (init_obstacks): Use canonical name for type_hash_mark.
3745         (type_hash_mark): Delete.
3746         Include gt-tree.h.
3747         * rtl.h (struct mem_attrs): Use gengtype.
3748         * optabs.h (struct optab): Use gengtype.
3749         * optabs.c (expand_binop): Squish signed/unsigned warning.
3750         (mark_optab): Make local, use canonical name, use autogenerated
3751         marker procedure.
3752         (init_optabs): Use canonical name for mark_optab.
3753         (new_optab): Use GGC to allocate optabs.
3754         * ggc.h: Delete mark_optab prototype.
3755         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
3756         mem_attrs marker procedure.
3757         * gengtype.c (get_output_file): Include headers in gtype-desc.c
3758         explicitly rather than deducing them from file names.
3759         (write_gc_structure_fields): Handle arrays of structures.
3760         (main): Return non-zero exit code if errors occur during output.
3761         * emit-rtl.c (mem_attrs_mark): Delete.
3762         (init_emit_once): Use canonical name for mem_attrs marker procedure.
3763         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
3764         (tree.o): Depend on gt-tree.h.
3765         (GTFILES): Add rtl.h, optabs.h, tree.c.
3766         (gt-tree.h): Add it to s-gtype rule.
3767
3768         * .cvsignore: Ignore gengtype flex/bison generated files.
3769         * Makefile.in (GGC_H): Add gtype-desc.h.
3770         (OBJS): Add gtype-desc.o.
3771         (GEN): Add gengtype.
3772         (STAGESTUFF): Add gengtype.
3773         (varasm.o): Add gt-varasm.h.
3774         (stmt.o): Add gt-stmt.h.
3775         (except.o): Add gt-except.h.
3776         (integrate.o): Add gt-integrate.h.
3777         (GTFILES): New.
3778         Add new rules for new files.
3779         * configure: Regenerate.
3780         * configure.in: Correct defaults.h paths.
3781         * emit-rtl.c (mark_sequence_stack): Delete.
3782         (mark_emit_status): Delete.
3783         (start_sequence): Allocate sequence structures using GGC.
3784         (end_sequence): Allocate sequence structures using GGC.
3785         * except.c: Use gengtype for various structures.  Include
3786         gt-except.h.
3787         * expr.c (mark_expr_status): Delete.
3788         * function.c: Use gengtype for various structures.  Include
3789         gt-function.h.
3790         (mark_function_status): Use standard gt_ggc names for marker functions.
3791         (ggc_mark_struct_function): Likewise.
3792         * function.h: Use gengtype for various structures.
3793         * gengtype-lex.l: New file.
3794         * gengtype-yacc.y: New file.
3795         * gengtype.c: New file.
3796         * gengtype.h: New file.
3797         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
3798         the standard names.  Remove some now-unnecessary prototypes.
3799         * integrate.c: Use gengtype for various structures.  Include
3800         gt-integrate.h.
3801         (mark_hard_reg_initial_vals): Delete.
3802         * integrate.h (mark_hard_reg_initial_vals): Delete.
3803         * stmt.c: Use gengtype for various structures.  Include
3804         gt-stmt.h.
3805         (mark_case_node): Delete.
3806         (mark_goto_fixup): Delete.
3807         (mark_stmt_status): Use standard gt_ggc names for marker functions.
3808         * system.h: Define GTY to empty.   In flex/bison files,
3809         don't poison malloc or realloc, instead just define them to
3810         xmalloc and xrealloc.
3811         * varasm.c: Use gengtype for various structures.  Include
3812         gt-varasm.h.  Use standard gt_ggc names for marker functions.
3813         (mark_pool_constant): Delete.
3814         (mark_varasm_status): Delete.
3815         (decode_rtx_const): #if 0 out non-typesafe hack.
3816
3817         * function.h (free_lang_status): Mark as obsolete.
3818         * function.c (free_lang_status): Mark as obsolete.
3819         * c-decl.c (push_c_function_context): Use GC to allocate and free
3820         struct language_function.
3821         (pop_c_function_context): Likewise.
3822         * c-common.c (mark_c_language_function): Mark struct
3823         language_function.
3824
3825         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
3826         Document that the machine_function structures must be allocated
3827         using GC.  Update mark_machine_status documentation.
3828         * function.h: Don't declare free_machine_status.
3829         * function.c (free_machine_status): Don't define.
3830         (free_after_compilation): Don't call free_machine_status.
3831         (ggc_mark_struct_function): Mark f->machine.  Call
3832         mark_machine_status only on non-NULL pointers.
3833         * system.h: Poison free_machine_status.
3834         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
3835         struct machine_function.
3836         (xtensa_free_machine_status): Delete.
3837         (override_options): Don't set free_machine_status.
3838         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
3839         free_machine_status.
3840         (rs6000_init_machine_status): Use GC on struct machine_function.
3841         (rs6000_free_machine_status): Delete.
3842         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
3843         machine_function.
3844         (ia64_mark_machine_status): Likewise.
3845         (ia64_free_machine_status): Delete.
3846         (ia64_override_options): Don't set free_machine_status.
3847         * config/i386/i386.c (override_options): Don't set
3848         free_machine_status.
3849         (ix86_init_machine_status): Use GC on struct machine_function.
3850         (ix86_mark_machine_status): Likewise.
3851         (ix86_free_machine_status): Delete.
3852         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
3853         machine_function.
3854         (d30v_mark_machine_status): Likewise.
3855         (d30v_free_machine_status): Delete.
3856         (d30v_init_expanders): Don't set free_machine_status.
3857         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
3858         machine_function.
3859         (arm_init_machine_status): Likewise.
3860         (arm_free_machine_status): Delete.
3861         (arm_init_expanders): Don't set free_machine_status.
3862         * config/alpha/alpha.c (override_options): Don't set
3863         free_machine_status.
3864         (alpha_init_machine_status): Use GC on struct machine_function.
3865         (alpha_mark_machine_status): Likewise.
3866         (alpha_free_machine_status): Delete.
3867
3868         * varasm.c (compare_constant): Fix typo.
3869
3870         * varasm.c: Don't include obstack.h.
3871         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
3872         (struct rtx_const): Give substructures names, improve formatting.
3873         (struct constant_descriptor): Delete.
3874         (struct constant_descriptor_tree): New, based on constant_descriptor.
3875         (const_hash_table): Is a hash table of trees.
3876         (mark_const_hash_entry): Is used for hashes of trees.  Mark
3877         constant_descriptor_tree structure.
3878         (mark_const_str_htab_1): Mark deferred_string structure.
3879         (compare_constant): Rewrite to compare trees.
3880         (compare_constant_1): Delete.
3881         (record_constant): Delete.
3882         (record_constant_1): Delete.
3883         (output_constant_def): Use struct constant_descriptor_tree.
3884         Don't duplicate trees twice.
3885         (struct constant_descriptor_rtx): New.
3886         (struct pool_constant): Used for rtx constants.
3887         (init_varasm_status): Update for change to struct varasm_status.
3888         (mark_varasm_status): Likewise.
3889         (free_varasm_status): Delete.
3890         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
3891         (record_constant_rtx): Likewise.
3892         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
3893         (force_const_mem): Likewise.
3894         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
3895         * function.c (free_after_compilation): Don't use free_varasm_status.
3896         * function.h: Don't prototype free_varasm_status.
3897
3898         * ggc-common.c (ggc_realloc): Handle X being NULL.
3899
3900         * ggc-common.c (ggc_realloc): New function.
3901         * ggc.h: Prototype it.
3902         * emit-rtl.c (free_emit_status): Delete.
3903         (init_emit): Allocate emit subarrays using GC.
3904         (gen_reg_rtx): Reallocate subarrays using GC.
3905         (init_emit): Use GC to allocate 'struct emit_status' and its
3906         subarrays.
3907         (mark_emit_status): Mark structure and its subarrays.
3908         * stmt.c (free_stmt_status): Delete.
3909         * expr.c (free_expr_status): Delete.
3910         * function.h: Remove prototypes for deleted functions.
3911         * function.c (free_after_compilation): Don't use deleted functions.
3912         Don't call free() on x_parm_reg_stack_loc.
3913         (free_after_parsing): Don't use free_stmt_status.
3914         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
3915         (mark_function_status): Mark x_parm_reg_stack_loc.
3916
3917         * varasm.c (init_varasm_status): Use GC to allocate
3918         'struct varasm_status' and its fields x_const_rtx_hash_table
3919         and x_const_rtx_sym_hash_table.
3920         (mark_varasm_status): Mark them.
3921         (free_varasm_status): Use GC to free them.
3922         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
3923         (mark_expr_status): Mark the structure itself.
3924         (free_expr_status): Use GC to free the structure.
3925         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
3926         (mark_stmt_status): Mark the 'struct stmt_status' itself.
3927         (init_stmt_for_function): Allocate the structure for GC.
3928
3929         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
3930         (equate_type_number_to_die): Likewise.
3931         * tree.h (TYPE_SYMTAB_DIE): New macro.
3932         (struct die_struct): Predeclare.
3933         (struct tree_type): Add field symtab.die.   Add a tag
3934         to the union type of field symtab.
3935
3936         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
3937         'struct rtvec_def *', not 'struct rtvec_def'.
3938
3939         * function.h (original_arg_vector): Make a real rtvec.
3940         * function.c (ggc_mark_struct_function): Adjust.
3941         * integrate.c (expand_inline_function): Adjust.
3942
3943 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
3944
3945         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
3946         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
3947         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
3948         (TARGET_VERSION_CPU): Define according to the
3949         default target.
3950         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
3951         TARGET_VERSION_CPU.
3952         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
3953         if TARGET_SHMEDIA64.
3954         (LINK_DEFAULT_CPU_EMUL): Define according to the
3955         default target.
3956         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
3957         (SUBTARGET_LINK_SPEC): Define.
3958         (LINK_SPEC): Use SH_LINK_SPEC.
3959         (ASM_SPEC): Remove.
3960         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
3961         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
3962         and TARGET_SHMEDIA64 which abort, for now.
3963         * config/sh/t-netbsd-sh5: New file.
3964         * config/sh/t-netbsd-sh5-32: New file.
3965         * config/sh/t-netbsd-sh5-64: New file.
3966
3967 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
3968             Richard Henderson  <rth@redhat.com>
3969
3970         * config/alpha/alpha.c (reg_or_const_int_operand): New.
3971         (some_operand, input_operand): Accept CONST_VECTOR.
3972         (alpha_extra_constraint): Add 'W'.
3973         (alpha_expand_zap_mask): New.
3974         (alpha_expand_builtin_vector_binop): New.
3975         (enum alpha_builtin): New.
3976         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
3977         (alpha_init_builtins, alpha_expand_builtin): New.
3978         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
3979         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
3980         (PREDICATE_CODES): Update.
3981         * config/alpha/alpha-protos.h: Update.
3982         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
3983         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
3984         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
3985         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
3986         (movv2si, movv2si_fix, movv2si_nofix): New.
3987         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
3988         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
3989         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
3990         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
3991         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
3992         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
3993         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
3994         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
3995         builtin_unpkbw, unpkbw): New.
3996         * doc/extend.texi (Alpha Built-in Functions): New.
3997
3998 2002-06-03  Richard Henderson  <rth@redhat.com>
3999
4000         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
4001         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
4002
4003 2002-06-03  Richard Henderson  <rth@redhat.com>
4004
4005         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
4006
4007         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
4008         (const0_operand): New.
4009         (reg_or_fp0_operand, fp0_operand): Remove.
4010         * config/alpha/alpha.h (PREDICATE_CODES): Update.
4011         * config/alpha/alpha-protos.h: Update.
4012         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
4013         and fp0_operand with reg_or_0_operand and const0_operand.
4014
4015 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
4016
4017         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
4018
4019 2002-06-03  Roger Sayle  <roger@eyesopen.com>
4020
4021         * gcse.c (cprop_jump): Use single_set to get the pattern
4022         from the setcc argument.
4023
4024 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
4025
4026         * diagnostic.h (diagnostic_count): Move from output_buffer to
4027         diagnostic_context.
4028         (diagnostic_kind_count): Adjust definition.
4029
4030 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
4031
4032         * except.c (except.c): Do not rebuild CFG.
4033         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
4034         optimization.
4035
4036 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
4037
4038         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
4039         * toplev.c: Include cfglahout.h
4040         * Makefile.in (toplev.c): Add dependnecy.
4041
4042 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
4043
4044         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
4045         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
4046         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
4047
4048 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
4049
4050         * config/ns32k/netbsd.h: Update copyright years.
4051         (TARGET_OS_CPP_BUILTINS): Define.
4052         (CPP_PREDEFINES): Remove.
4053         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
4054         (TARGET_CPU_CPP_BUILTINS): Define.
4055
4056 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
4057
4058         * emit-rtl.c: Fix formatting.
4059         * errors.h: Likewise.
4060         * except.c: Likewise.
4061         * explow.c: Likewise.
4062         * expmed.c: Likewise.
4063         * expr.c: Likewise.
4064         * expr.h: Likewise.
4065
4066 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
4067
4068         * config/h8300/elf.h: Fix formatting.
4069         * config/h8300/rtems.h: Likewise.
4070
4071 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
4072
4073         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
4074
4075 2002-06-02  Tom Tromey  <tromey@redhat.com>
4076
4077         * fixinc/fixincl.x: Rebuilt.
4078         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
4079
4080 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4081
4082 config/i370:
4083         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
4084         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
4085         * mvs.h: Similarly.
4086         * oe.h: Similarly.
4087
4088 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
4089
4090         * final.c (final):  Allow notes to not have computed addresses;
4091         kill no longer needed STACK_REGS ifdef.
4092
4093 2002-06-02  Richard Henderson  <rth@redhat.com>
4094
4095         * gcse.c (bypass_conditional_jumps): Fix typo last change.
4096
4097 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4098
4099         * loop.c (emit_prefetch_instructions): Properly place the address
4100         computation.
4101
4102 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
4103
4104         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
4105         (set_block_for_insn): Turn into macro.
4106         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
4107         * cfglayout.c (insn_scopes): Kill.
4108         (scope_to_insns_initialize): Do not use insn_scopes.
4109         (scope_to_insns_finalize): Likewise.
4110         (duplicate_insn_chain): Likewise.
4111         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
4112         * cfgrtl.c (basic_block_for_insn): Kill.
4113         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
4114         (create_basic_block_structure): Use reorder_insns.
4115         (compute_bb_for_insn): Do not use basic_block_for_insn.
4116         (merge_blocks_nomove): Likewise.
4117         (update_bb_for_insn): Likewise.
4118         (verify_flow_info): Likewise.
4119         (set_block_for_insn): Kill.
4120         * combine.c (try_combine): Update gen_rtx_INSN call.
4121         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
4122         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
4123         scopes and BBs.
4124         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
4125         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
4126         Clear BB.
4127         (emit_insns_after): Simplify.
4128         (emit_copy_of_insn_after): Copy scope.
4129         * final.c (final_start_function): Lower scopes.
4130         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
4131         * integrate.c (copy_insn_list): Cope scopes.
4132         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
4133         * loop.c (loop_optimize): Do not care block notes.
4134         * print-rtl.c (print_rtx): Print BB.
4135         * recog.c (apply_change_group): Simplify.
4136         * rtl.c (copy_rtx): Handle 'B'.
4137         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
4138         * rtl.h (Field accessors): Update indexes.
4139         * sched-ebb.c (schedule_ebbs): Do not lower notes.
4140         * sched-rgn.c (schedule_insns): Likewise.
4141         * toplev.c (rest_of_compilation): Lower notes.
4142         * unroll.c (unroll_loop): Do not care scoping notes.
4143         (copy_loop_body): Copy scopes.
4144
4145 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4146
4147 config/h8300:
4148         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
4149         SUBTARGET_SPEC.
4150         * rtems.h: Similarly.
4151         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
4152         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
4153         (TARGET_CPU_CPP_BUILTINS): Use.
4154
4155 2002-06-02  Richard Henderson  <rth@redhat.com>
4156
4157         * alias.c: Include target.h.
4158         (mark_constant_function): Use targetm.binds_local_p instead
4159         of checking TREE_PUBLIC ourselves.
4160         * Makefile.in (alias.o): Add TARGET_H.
4161
4162 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4163
4164         * c-lex.c: Update copyright and file description.
4165
4166 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4167
4168         * config/fr30/fr30.h: Update to new CPP macros.
4169
4170 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4171
4172         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
4173
4174 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4175             Zack Weinberg <zack@codesourcery.com>
4176
4177         * c-common.c (c_common_init): Override cpplib's default
4178         warn_long_long setting.
4179         * c-lex.c (lex_number): Replace with interpret_integer,
4180         interpret_float, narrowest_unsigned_type and
4181         narrowest_signed_type, taking advantage of the new
4182         cpplib functionality.
4183         * cpperror.c (_cpp_begin_message): If a warning is turned
4184         into an error, avoid printing "warning:".
4185         * cppexp.c (cpp_num_sign_extend): New.
4186         * cppinit.c: Update comment.
4187         * cpplib.h (cpp_num_sign_extend): New.
4188         * tree.h: Update comment.
4189
4190 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
4191
4192         * diagnostic.h (struct diagnostic_context):  Add new member
4193         internal_error.
4194         (internal_error_function): Remove declaration.
4195         * diagnostic.c (internal_error_function): Remove definition..
4196         (internal_error): Adjust use.
4197
4198 2002-06-02  Richard Henderson  <rth@redhat.com>
4199
4200         * rtl.h (CC0_P): New.
4201         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
4202         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
4203         (bypass_block): Save old dest block for dump text.
4204         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
4205         Allow only true SET insns, not single_set.
4206
4207 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
4208
4209         * diagnostic.c (diagnostic_finish): Rename to output_flush.
4210         (clear_disgnostic_info): Rename to output_clear_data.  Use false
4211         instead of 0 for boolean value.
4212         Adjust function call throughout.
4213
4214 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
4215
4216         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
4217         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
4218
4219 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4220
4221         * d30v.h (CPP_PREDEFINES): Replace with
4222         (TARGET_CPU_CPP_BUILTINS): New.
4223
4224 2002-06-02  Roger Sayle  <roger@eyesopen.com>
4225
4226         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
4227
4228 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
4229
4230         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
4231
4232 2002-06-02  Richard Henderson  <rth@redhat.com>
4233
4234         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
4235
4236 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4237
4238         Support for C++ constructors/destructors.
4239         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
4240         instead of looping if main() returns.
4241         (asm_file_start): Output global symbols that cause .data and .bss
4242         initialization code to be linked in, unconditionally for now.
4243         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
4244         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
4245         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
4246         (LIBSTDCXX): New.
4247         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
4248         (__tablejump__): New.
4249         (__do_copy_data, __do_clear_bss): New.
4250         (__do_global_ctors, __do_global_dtors): New.
4251         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
4252         _ctors, _dtors.
4253
4254 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4255
4256         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
4257         (CPP_SPEC, CPP_PREDEFINES): Kill.
4258         * c4x/rtems.h (CPP_PREDEFINES): Kill.
4259         (TARGET_OS_CPP_BUILTINS): New.
4260
4261 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
4262
4263         * Makefile.in (tracer.o): New.
4264         * params.def (TRACER_*): New options.
4265         * rtl.h (tracer): Declare.
4266         * timevar.def (TV_TRACER): New.
4267         * toplev.c (dump_file_index): Add DFI_tracer.
4268         (dump_file_info): Add tracer.
4269         (flag_tracer): New.
4270         (lang_indepdenent_options): Add tracer.
4271         (rest_of_compilation): Call tracer.
4272         * tracer.c: New file.
4273         * invoke.texi (-ftracer): Document.
4274         (--param tracer-*): Document.
4275
4276 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
4277
4278         * tree-inline.c (expand_call_inline): Make the statement
4279         expression we generate have a COMPOUND_STMT.
4280
4281 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4282
4283         * gcse.c (cprop_cc0_jump): Function deleted.
4284         (cprop_jump): Take an additional argument which is the possibly
4285         NULL cc setting insn immediately before the conditional jump.
4286         When a MODE_CC set is present, substitute it into the JUMP_INSN
4287         before attempting the constant propagation.
4288         (cprop_insn):  Recognize cc setters followed by conditional jumps
4289         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
4290         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
4291         (find_bypass_set): New function based upon find_avail_set used by
4292         cprop, but finds constant expressions available at the end of
4293         basic blocks.
4294         (bypass_block): New function.  Given a basic block that begins
4295         with a conditional jump and multiple incoming edges, perform
4296         the jump bypass optimization.
4297         (bypass_conditional_jumps): New function.  Call bypass_block with
4298         each suitable basic block in the CFG using a simple single pass.
4299
4300 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4301
4302         * tree.c (real_minus_onep): New function to test for -1.0.
4303         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
4304
4305 2002-06-01  Roger Sayle  <roger@eyesopen.com>
4306
4307         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
4308         and "!p && !q" into "(p|q) == 0" under suitable conditions.
4309
4310 2002-06-01  Andreas Jaeger  <aj@suse.de>
4311
4312         * cppexp.c (cpp_classify_number): Cast precission to int for
4313         correct printf format.
4314
4315 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4316
4317         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
4318         expected, but don't really exist: atmega83, atmega85, attiny10.
4319         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
4320         emulations for all devices.
4321         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
4322         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
4323
4324 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
4325
4326         * config/h8300/h8300-protos.h: Add a prototype for
4327         h8300_shift_needs_scratch_p.
4328         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
4329         * config/h8300/h8300.h (OK_FOR_R): New.
4330         (OK_FOR_S): Likewise.
4331         (OK_FOR_T): Likewise.
4332         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
4333         * config/h8300/h8300.md (anonymous shift patterns): Use
4334         constraints R, S, and T.
4335
4336 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4337
4338         * basic-block.h (struct basic_block_def): New field loop_father.
4339         (BB_VISITED): New flag.
4340         (struct loop): New field pred, removed field shared.
4341         (struct loops): New field parray.
4342         (LOOP_EXITS_DOMS): Removed.
4343         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
4344         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
4345         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
4346         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
4347         verify_loop_structure): Declare.
4348         * cfg.c (entry_exit_blocks): Initialize loop_father field.
4349         * cfganal.c (dfs_enumerate_from): New function.
4350         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
4351         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
4352         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
4353         flow_loop_dump, flow_loops_dump, flow_loops_free,
4354         flow_loop_tree_node_add, flow_loop_level_compute,
4355         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
4356         flow_loop_outside_edge_p): Modified for new infrastructure.
4357         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
4358         redirect_edge_with_latch_update, flow_loop_free): New static functions.
4359         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
4360         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
4361         find_common_loop, verify_loop_structure, loop_latch_edge,
4362         loop_preheader_edge): New functions.
4363         (flow_loops_cfg_dump): Do not show dominators, as this information
4364         does not remain up to date long.
4365         (flow_loops_find): Store results in new format.
4366         * predict.c (propagate_freq, estimate_probability,
4367         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
4368         infrastructure.
4369
4370 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
4371
4372         * except.c (nothrow_function_p): Walk epilogue delay list
4373         checking the insn, not the chain for potential throws.
4374
4375 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
4376
4377         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
4378         (install): Refer to install-cpp directly.
4379         (uninstall-cpp): Folded into uninstall rule.
4380         * configure.in: Delete all code relating to --disable-cpp.
4381         * configure: Regenerate.
4382         * config/t-install-cpp: Delete.
4383
4384 2002-05-31  Richard Henderson  <rth@redhat.com>
4385
4386         * configure.in (HAVE_AS_TLS): Add alpha tests.
4387         * configure: Rebuild.
4388         * config/alpha/alpha.c (TARGET_AS_TLS): New.
4389         (alpha_tls_size, alpha_tls_size_string): New.
4390         (overide_options): Set it.  Always install machine_status hooks.
4391         (input_operand): Accept got tls predicates.
4392         (local_symbol_p): Merge into ...
4393         (local_symbolic_operand): ... here.  Reject tls symbols.
4394         (global_symbolic_operand): Likewise.
4395         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
4396         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
4397         (tp16_symbolic_operand, tp32_symbolic_operand): New.
4398         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
4399         (alpha_encode_section_info): Handle TLS symbols.
4400         (alpha_strip_name_encoding): Likewise.
4401         (alpha_legitimate_address_p): Likewise.
4402         (alpha_legitimize_address): Likewise.
4403         (alpha_expand_mov): Early exit to avoid nop moves.
4404         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
4405         (alpha_init_machine_status, alpha_mark_machine_status,
4406         alpha_free_machine_status): Always define.
4407         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
4408         (print_operand, print_operand_address): Add TLS relocs.
4409         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
4410         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
4411         (TARGET_SWITCHES): Add -mtls-kernel.
4412         (alpha_tls_size, alpha_tls_size_string): New.
4413         (TARGET_OPTIONS): Add -mtls-size=.
4414         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
4415         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
4416         (ASM_OUTPUT_LABELREF): Skip %.
4417         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
4418         (PREDICATE_CODES): Update.
4419         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
4420         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
4421         UNSPEC_TP, UNSPECV_SET_TP): New.
4422         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
4423         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
4424         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
4425         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
4426         (call_value_osf_2_er): Accept anything as op4.
4427         * config/alpha/alpha-protos.h: Update.
4428         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
4429
4430 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
4431
4432         * cppinit.c (append_include_chain): Always pay attention to
4433         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
4434         marker on argument.
4435
4436 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
4437
4438         * target.h: Fix formatting.
4439         * timevar.h: Likewise.
4440         * tlink.c: Likewise.
4441         * toplev.c: Likewise.
4442         * toplev.h: Likewise.
4443         * tree.c: Likewise.
4444         * tree-dump.h: Likewise.
4445         * tree.h: Likewise.
4446         * tree-inline.h: Likewise.
4447         * unroll.c: Likewise.
4448         * unwind-dw2.c: Likewise.
4449         * unwind-dw2-fde.c: Likewise.
4450         * unwind-dw2-fde-glibc.c: Likewise.
4451         * unwind-dw2-fde.h: Likewise.
4452         * unwind.h: Likewise.
4453         * unwind-sjlj.c: Likewise.
4454         * varasm.c: Likewise.
4455         * varray.h: Likewise.
4456         * vmsdbg.h: Likewise.
4457         * vmsdbgout.c: Likewise.
4458         * xcoffout.h: Likewise.
4459
4460 2002-05-31  Igor Shevlyakov <igor@microunity.com>
4461
4462         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
4463         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
4464
4465 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
4466
4467         * gcc.c (cpp_unique_options): Remove "-d" options.
4468         (cpp_debug_options): New spec string.
4469         (default_compilers): Use it.
4470         * objc/lang-specs.h: Likewise.
4471
4472 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
4473
4474         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
4475         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
4476         * gcc/mklibgcc.in: Likewise.
4477         * gcc/config/arc/t-arc: Likewise.
4478         * gcc/configure.in: Likewise.
4479         * gcc/configure: Regenerate.
4480
4481 2002-05-31  Stan Shebs  <shebs@apple.com>
4482             Turly O'Connor  <turly@apple.com>
4483
4484         * c-decl.c (struct binding_level): Change int field n_incomplete
4485         to tree list incomplete_list.
4486         (clear_binding_level): Init field with NULL.
4487         (pushdecl): Add incomplete type to list.
4488         (mark_binding_level): Mark the incomplete list.
4489         (finish_struct): Scan the incomplete list for types instead
4490         of all decls in the current binding level.
4491
4492 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4493
4494         * pa.c (output_millicode_call): Add missing '%' characters.
4495         (output_call): Likewise.
4496
4497 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
4498
4499         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
4500         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
4501
4502 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
4503
4504         * varasm.c (mark_constant_pool): Walk epilogue delay list
4505         checking the insn, not the chain for potential constants.
4506
4507 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
4508
4509         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
4510
4511 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
4512
4513         * i386.c (classify_argument): Properly handle base types.
4514
4515         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
4516         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
4517         registers.
4518
4519 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4520
4521         * gcse.c (gcse_emit_move_after): New.
4522         (pre_delete, hoist_store): Use it.
4523
4524         * reload1.c (emit_input_reload_insns): Use constrain_operands
4525         instead of constraint_accepts_reg_p to verify optimization.
4526         (constraint_accepts_reg_p): Kill
4527
4528         * reload1.c (reload_cse_delete_noop_set): Kill.
4529         (reload_cse_simplify): use delte_insn_and_edges.
4530
4531 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4532
4533         * cfgloop.c (flow_loops_find): Initialize first and last fields
4534         correctly.
4535
4536 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
4537
4538         * c-common.c (builtin_define_std): Correct logic.
4539
4540 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4541
4542         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
4543         (output_call): Likewise.
4544
4545 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4546
4547         * pa.c: Move output.h include after tree.h include.
4548         (pa_asm_output_mi_thunk): Constify identifier lab.
4549
4550 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4551
4552         * config/ns32k/ns32k.h: Define named constants for the
4553         bits in target_flags and use them.
4554         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
4555
4556 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4557
4558         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
4559         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
4560         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
4561         default scheduling model.
4562         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
4563         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
4564         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
4565         * doc/install.texi (hppa*-*-*): Document default scheduling.
4566
4567 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4568
4569         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
4570
4571 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4572
4573         * config.gcc (ns32k-*-netbsd*): Set tm_file to
4574         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
4575         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
4576         netbsd.h, or netbsd-aout.h.
4577
4578 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
4579
4580         * longlong.h (count_trailing_zeros): Add missing \, and clean up
4581         whitespace in __ns32000__ case.
4582
4583 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
4584
4585         * expr.c (expand_expr): Output partially zeroed out vectors with
4586         output_constant_def.
4587
4588 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4589
4590         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
4591         (sh-*-netbsdelf*)
4592         (shl*-*-netbsdelf*): New targets.
4593         * config/sh/netbsd-elf.h: New file.
4594         * config/sh/t-netbsd: New file.
4595
4596 2002-05-30  Richard Henderson  <rth@redhat.com>
4597             Eric Botcazou  <ebotcazou@multimania.com>
4598
4599         PR optimization/6822
4600         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
4601         to unsigned int for op1 comparisons.  Use gen_int_mode.
4602
4603 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
4604
4605         * expmed.c (const_mult_add_overflow_p): New.
4606         * expr.h: Declare it.
4607         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
4608         Don't eliminate the biv if the giv has a constant multiplier and
4609         the rhs argument of the comparison does satisfy the predicate.
4610         Use expand_mult_add to compute the replacement constant.
4611
4612 2002-05-30  Osku Salerma  <osku@iki.fi>
4613
4614         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
4615         (c_common_get_alias_set): Handle it.
4616         * doc/extend.texi: Document it.
4617
4618 2002-05-30  Richard Henderson  <rth@redhat.com>
4619
4620         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4621         * toplev.c (process_options): Don't check it.
4622         * doc/tm.texi: Don't document it.
4623         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
4624         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
4625         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
4626         frame pointer optimization if current_function_profile.
4627
4628 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
4629
4630         * langhooks.c: Fix formatting.
4631         * langhooks.h: Likewise.
4632         * lcm.c: Likewise.
4633         * libgcc2.c: Likewise.
4634         * lists.c: Likewise.
4635         * local-alloc.c: Likewise.
4636         * loop.c: Likewise.
4637         * loop.h: Likewise.
4638
4639 2002-05-30  Marc Espie <espie@openbsd.org>
4640
4641         * config.gcc (sparc64-*-openbsd*): New.
4642         * config/sparc/openbsd1-64.h: New.
4643         * config/sparc/openbsd64.h: New.
4644
4645 2002-05-30  Jeff Law <law@redhat.com>
4646
4647         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
4648         a dead insn with a REG_RETVAL note when the entire libcall is not
4649         dead and remove the associated REG_LIBCALL note at the same time.
4650
4651 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
4652
4653         * lcm.c (output.h): #include.
4654         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
4655         as an ordinary block.
4656         (optimize_mode_switching): Don't pretend that the exit block is
4657         an ordinary block, or handle sucessors of entry block specially.
4658         Instead, split edges from entry block and to exit block, and
4659         put a computing definition on the thus gained post-entry-block,
4660         and a need on the pre-exit-block.
4661
4662 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
4663
4664         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
4665         * rtl.texi: Document 'B'
4666
4667 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
4668
4669         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
4670         at run-time.
4671         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
4672
4673 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
4674
4675         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
4676         const0_rtx instead of NULL_RTX when in error.
4677         (altivec_expand_abs_builtin): Same.
4678         (rs6000_expand_binop_builtin): Same.
4679         (altivec_expand_predicate_builtin): Same.
4680         (altivec_expand_stv_builtin): Same.
4681         (rs6000_expand_ternop_builtin): Same.
4682         (altivec_expand_builtin): Same.
4683
4684 2002-05-29  David S. Miller  <davem@redhat.com>
4685
4686         * rtl.h (clear_emit_caches): Delete.
4687         * integrate.c (output_inline_function): Don't call it.
4688         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
4689         (clear_emit_caches): Delete definition.
4690         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
4691
4692 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
4693
4694         * config/mmix/mmix.c: Include real.h.
4695         (mmix_constant_address_p): Remove redundant test before switch.
4696
4697 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4698
4699         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
4700         only if not already defined.
4701
4702 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
4703
4704         * config/h8300/h8300-protos.h: Remove prototypes for
4705         ok_for_bclr and small_power_of_two.
4706         * config/h8300/h8300.c (small_power_of_two): Remove.
4707         (ok_for_blcr): Likewise.
4708         (fix_bit_operand): Make WHAT deal with an integer instead of a
4709         constraint character.
4710         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
4711         (CONST_OK_FOR_P): Likewise.
4712         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
4713         CONST_OK_FOR_P any more.
4714         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
4715         of fix_bit_operand.
4716         (iorqi3): Likewise.
4717         (xorqi3): Likewise.
4718
4719 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4720
4721         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4722         (CPP_PREDEFINES): Make sure this is undefined.
4723         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
4724         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
4725         or -U__MIPSEB__ before defining one or the other.  Instead,
4726         use %(subtarget_endian_default) if neither -EB nor -EL are
4727         specified.
4728         (SUBTARGET_EXTRA_SPECS): Define.
4729         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
4730         %(netbsd_cpp_spec).
4731
4732 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
4733
4734         * doc/md.texi (Patterns): Note pattern condition pitfall
4735         for unnamed insn.
4736
4737 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
4738
4739         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
4740         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
4741         ternary operations from here...
4742         (rs6000_expand_builtin): ...to here.
4743         New argument expandedp.
4744         Change all instances of altivec_expand_binop_builtin to
4745         rs6000_expand_binop_builtin.
4746         (altivec_expand_unop_builtin): Rename to
4747         rs6000_expand_unop_builtin.
4748         (altivec_expand_binop_builtin): Rename to
4749         rs6000_expand_binop_builtin.
4750         (altivec_expand_ternop_builtin): Rename to
4751         rs6000_expand_ternop_builtin.
4752
4753 2002-05-29  Richard Henderson  <rth@redhat.com>
4754
4755         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
4756         (TARGET_BI_ARCH): Likewise.
4757         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
4758         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
4759         (TARGET_64BIT_DEFAULT): Default to 0.
4760         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
4761
4762 2002-05-29  Richard Henderson  <rth@redhat.com>
4763
4764         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
4765         (get_pc_thunk_name): New.
4766         (output_set_got): Use it.
4767         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
4768         into linkonce sections.
4769
4770 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4771
4772         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4773         (CPP_PREDEFINES): Make sure this is undefined.
4774         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
4775         (CPP_SUBTARGET_SPEC): Don't provide different versions for
4776         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
4777         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
4778         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
4779         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4780         (CPP_PREDEFINES): Make sure this is undefined.
4781         (SUBTARGET_EXTRA_SPECS): Define.
4782         (CPP_SPEC): Use %(netbsd_cpp_spec).
4783
4784 2002-05-29  Jeff Law <law@redhat.com>
4785
4786         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
4787
4788         * flow.c (propagate_one_insn): Do not remove a dead insn if it
4789         contains a REG_RETVAL note.
4790
4791         * haifa-sched (sched_analyze): Remove another useless clearing
4792         of SCHED_GROUP_P I missed yesterday.
4793
4794         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
4795         * pa.c (pa_asm_output_mi_thunk): New function.
4796         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
4797
4798 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4799             Marek Michalkiewicz  <marekm@amelek.gda.pl>
4800
4801         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
4802         (avr_asm_only_p): Make non-static.
4803         (enum avr_arch): Remove.
4804         (avr_arch_types): New.
4805         (avr_mcu_types): Update.
4806         (avr_override_options): Use avr_arch_types table instead of switch.
4807         * avr.h (CPP_PREDEFINES): Die.
4808         (avr_base_arch_macro, avr_extra_arch_macro): New.
4809         (TARGET_CPU_CPP_BUILTINS): New.
4810         (CPP_SPEC, EXTRA_SPECS): Simplify.
4811         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
4812         CPP_AVR5_SPEC): Die.
4813
4814 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4815
4816         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4817         NETBSD_OS_CPP_BUILTINS_AOUT.
4818         (SUBTARGET_EXTRA_SPECS): Define.
4819         (CPP_SPEC): Use %(netbsd_cpp_spec).
4820
4821 2002-05-29  Richard Henderson  <rth@redhat.com>
4822
4823         * config/i386/i386.c (ix86_output_function_epilogue): New.
4824         (TARGET_ASM_FUNCTION_EPILOGUE): New.
4825         (pic_label_name): Remove.
4826         (pic_labels_used): New.
4827         (ix86_asm_file_end): Emit one pc load stub for each register used.
4828         (output_set_got): Generate deep pc load to any register.
4829         (ix86_select_alt_pic_regnum): New.
4830         (ix86_save_reg): Don't save pic register if we can find a valid
4831         call-clobbered replacement.
4832         (ix86_expand_prologue): If we found a valid replacement, renumber
4833         pic_offset_table_rtx.
4834         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
4835         pic_offset_table_rtx after reload.
4836         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
4837         * config/i386/i386.md (set_got): Make insn, not expander.
4838         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
4839
4840 2002-05-29  Richard Henderson  <rth@redhat.com>
4841
4842         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
4843         alignment for alloca.
4844
4845 2002-05-29  Richard Henderson  <rth@redhat.com>
4846
4847         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
4848         (print_operand_address): Only add rip for symbolic addresses
4849         for which we do not have another relocation type.
4850
4851 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4852
4853         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4854         (EXTRA_SPECS): Add netbsd_cpp_spec.
4855         (CPP_SPEC): Use %(netbsd_cpp_spec).
4856         (CPP_PREDEFINES): Remove.
4857         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4858         (EXTRA_SPECS): Define.
4859         (CPP_SPEC): Use %(netbsd_cpp_spec).
4860         (CPP_PREDEFINES): Remove.
4861
4862 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4863
4864         PR preprocessor/6844
4865         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
4866         NUL.
4867
4868 2002-05-29  Eric Christopher  <echristo@redhat.com>
4869
4870         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
4871         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
4872
4873 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
4874
4875         * config/fr30/fr30.md: Remove previous restriction on splits.
4876         Enforce conformance through gen_lowpart and cont_int_operand.
4877         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
4878         as the assembler does not support ".bss".
4879
4880 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4881
4882         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
4883         (CPP_PREDEFINES): Remove.
4884         (SUBTARGET_EXTRA_SPECS): Define.
4885         (CPP_SPEC): Use %(netbsd_cpp_spec).
4886         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
4887         (CPP_PREDEFINES): Remove.
4888         (SUBTARGET_EXTRA_SPECS): Define.
4889         (CPP_SPEC): Use %(netbsd_cpp_spec).
4890         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
4891         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
4892         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
4893         Add netbsd_cpp_spec.
4894         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
4895
4896 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4897             Zack Weinberg <zack@codesourcery.com>
4898
4899         * cppexp.c (cpp_num): Move to cpplib.h.
4900         (CPP_ERROR): Remove.
4901         (interpret_float_suffix, interpret_int_suffix): New.
4902         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
4903         (cpp_classify_number, cpp_interpret_integer): New.
4904         (interpret_number): Remove.
4905         (eval_token): Update to use new routines.
4906         * cpphash.h (cpp_num_part): Move to cpplib.h.
4907         * cppinit.c (cpp_post_options): Set warn_long_long.
4908         * cpplib.h (struct cpp_options): Add warn_long_long.
4909         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
4910         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
4911         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
4912         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
4913         cpp_interpret_integer): New.
4914
4915 2002-05-29  Joel Sherrill <joel@OARcorp.com>
4916
4917         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
4918
4919 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
4920
4921         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
4922         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
4923         (CPP_SUBTARGET_SPEC): Define.
4924         (SUBTARGET_EXTRA_SPECS): Define.
4925         (CPP_SPEC): Remove.
4926
4927 2002-05-29  Chris Lattner  <sabre@nondot.org>
4928
4929         * ssa.c (rename_insn_1): Rename uses of undefined registers to
4930         prevent confusion if/when the register is defined.
4931
4932 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
4933
4934         PR target/6838
4935         * config/cris/cris.md: Fix typos and thinkos in comments.
4936         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
4937         second alternative.
4938         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
4939         ("*mov_sideqi_mem"): Similar, but for operand 3.
4940         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
4941         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
4942         Remove spurious mode specifier on operand 2.
4943
4944 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
4945
4946         * config/h8300/h8300-protos.h: Remove the prototype for
4947         o_operand.
4948         Add prototypes for single_one_operand and single_zero_operand.
4949         * config/h8300/h8300.c (o_operand): Remove.
4950         (single_one_operand): New.
4951         (single_zero_operand): Likewise.
4952         (print_operand): For 'V' operand, and the operand with 0xff.
4953         For 'V' and 'W' operands, do not and the bit position with 7.
4954         * config/h8300/h8300.md (various anonymous patterns): Replace
4955         use of exact_log2 with single_one_operand/single_zero_operand.
4956
4957 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
4958
4959         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
4960
4961 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
4962
4963         * config/s390/s390.c (legitimate_pic_operand_p): Do not
4964         accept symbolic LARL operands.
4965         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
4966         epilogue insns.
4967
4968 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
4969
4970         * config/s390/s390.md (cmpstr_64/31): Mark whole
4971         input registers as used.
4972
4973 2002-05-28  Richard Henderson  <rth@redhat.com>
4974
4975         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
4976         not current_function_uses_pic_offset_table and
4977         current_function_uses_const_pool; examine current_function_profile.
4978         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
4979         input to blockage if needed.
4980         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
4981         (legitimize_pic_address): Likewise.  Set regs_ever_live for
4982         pic_offset_table_rtx when invoked during reload.
4983         * config/i386/i386.h (FINALIZE_PIC): Remove.
4984         * config/i386/i386.md (tablejump): Reformat.  Do not set
4985         current_function_uses_pic_offset_table.
4986         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
4987         (blockage): Accept anything as operand 0.
4988
4989 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
4990
4991         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
4992         common CPP built-ins for all NetBSD a.out targets.
4993         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
4994         common CPP built-ins for all NetBSD ELF targets.
4995         * config/netbsd.h: Add missing notice.
4996         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
4997         for all NetBSD targets.
4998         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
4999         for all NetBSD targets using an LP64 code model.
5000         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
5001         NetBSD targets.
5002
5003 2002-05-28  Richard Henderson  <rth@redhat.com>
5004
5005         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
5006         update if UPDATE_LIFE_LOCAL.
5007
5008 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
5009
5010         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
5011
5012 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
5013                           Jason R. Thorpe <thorpej@wasabisystems.com>
5014
5015         config/sh reorganization to factor out endianness and coff:
5016
5017         * config/sh/little.h: New file.
5018         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
5019         defined, define to 0 to select big-endian.
5020         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
5021         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
5022         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
5023         * config/sh/t-be: New file.
5024         * config/sh/t-le: New file.
5025
5026         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
5027         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
5028         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
5029         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
5030         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
5031         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
5032         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
5033         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
5034         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
5035         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
5036         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
5037         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
5038         (LINK_SPEC): Define to SH_LINK_SPEC.
5039         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
5040         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
5041         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
5042         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
5043         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
5044         * config/sh/coff.h: New file.
5045         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
5046         (TARGET_OBJFMT_CPP_BUILTINS): Define.
5047         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
5048         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
5049         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
5050         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
5051         (PTRDIFF_TYPE): Likewise.
5052         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
5053         (CPP_PREDEFINES): Don't define.
5054         (TARGET_OBJFMT_CPP_BUILTINS): Define.
5055         (LINK_SPEC): Define to SH_LINK_SPEC.
5056         (LINK_EMUL_PREFIX): Redefine.
5057         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
5058         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
5059         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
5060         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
5061         (TARGET_OS_CPP_BUILTINS): Define.
5062         (TARGET_DEFAULT): Redefine.
5063         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
5064         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
5065         (LINK_SPEC): Don't redefine.
5066         (LINK_DEFAULT_CPU_EMUL): Redefine.
5067         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
5068         * sh.c (sh_asm_named_section): Don't declare / define.
5069         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
5070         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
5071         (sh64-*-elf* tm_file): Likewise.
5072         (sh-*-rtemself* tm_file): Likewise.
5073         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
5074         (sh-*-linux* tmake_file): Add sh/t-le.
5075         (sh-*-rtems* tm_file): Add sh/coff.h
5076         (sh-*-* tm_file): Likewise.
5077
5078 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
5079
5080         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
5081         CONSTANT_POOL_ADDRESS_P.
5082
5083         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
5084
5085 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
5086             Jeff Law <law@redhat.com>
5087
5088         * optabs.c (expand_binop): Fix nwords sign warnings.
5089         generate pseudo for add_optab.
5090
5091         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
5092         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
5093
5094 2002-05-28      Marc Espie <espie@openbsd.org>
5095
5096         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
5097         inherited from gas.h.
5098         (ASM_QUAD):  Undef.  OpenBSD does not support it.
5099
5100 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
5101
5102         * doc/install.texi (binaries): Change mingw binaries
5103         link to www.mingw.org.
5104
5105 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5106
5107         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
5108
5109 2002-05-28  Richard Henderson  <rth@redhat.com>
5110
5111         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
5112         bottom alignment for leaf functions.
5113
5114 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
5115
5116         * config/pa/milli32.S, config/pa/lib1funcs.asm,
5117         config/sparc/sol2-g1.asm: Delete unused files.
5118
5119 2002-05-28  Richard Henderson  <rth@redhat.com>
5120
5121         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
5122
5123         * flow.c (calculate_global_regs_live): Rename call_used to
5124         invalidated_by_call.  Initialize from regs_invalidated_by_call
5125         instead of call_used_regs.
5126
5127         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
5128         DECL_EXTERNAL.
5129
5130 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
5131
5132         * tree.h: Don't include real.h.
5133         Forward-declare struct realvaluetype.
5134         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
5135         contain it.
5136         (TREE_REAL_CST_PTR): New accessor.
5137         (TREE_REAL_CST): Update.
5138         * real.h: Include machmode.h.
5139         (realvaluetype): Make it struct realvaluetype, not a typedef.
5140         (build_real): Prototype here.
5141
5142         * tree.c: Include real.h.
5143         (build_real): Allocate the REAL_VALUE_TYPE as a separate
5144         object in GC memory, set TREE_REAL_CST_PTR to point to it.
5145         (build_real_from_int_cst): Use build_real.
5146         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
5147         REAL_CST.
5148
5149         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
5150         fold-const.c, print-tree.c, real.c: Include real.h.
5151         * Makefile.in: Update dependency lists.
5152
5153 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5154
5155         * basic-block.h (last_basic_block): Declare.
5156         (expunge_block_nocompact): Declaration removed.
5157         (compact_blocks): Declare.
5158         * cfg.c (last_basic_block): New variable.
5159         (expunge_block_nocompact): Removed.
5160         (expunge_block): Do not compact basic blocks.
5161         (compact_blocks): New.
5162         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
5163         longer change.
5164         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
5165         last_basic_block.
5166         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
5167         real positions of blocks.
5168         (delete_unreachable_blocks): Simplified -- quadratic behavior now
5169         cannot occur.
5170         (cleanup_cfg): Compact blocks.
5171         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
5172         basic_block_info varray.
5173         (flow_delete_block): Comment update.
5174         (back_edge_of_syntactic_loop_p): Modify position check code.
5175         (verify_flow_info): Update checking.
5176         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
5177         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
5178         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
5179         indices no longer change.
5180         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
5181         last_basic_block.
5182         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
5183         * profile.c (branch_prob): Compact blocks.
5184         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
5185         last_basic_block.
5186
5187 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
5188
5189         * config/h8300/h8300.md (two anonymous patterns): New.
5190
5191 2002-05-28  David S. Miller  <davem@redhat.com>
5192
5193         * config/sparc/sparc.md (cpu): Tidy.
5194         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
5195         'trap'.
5196         (in_call_delay): Delete reference to 'return' type.
5197         (eligible_for_return_delay, in_return_delay, define_delay
5198         referencing those): Delete.
5199         (rest of file): Use new type attributes as appropriate.
5200         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
5201         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
5202         * config/sparc/ultra1_2.md (us1_single): New reservation.
5203         (us1_ialuX): Likewise.
5204         * config/sparc/ultra3.md (us3_single): Likewise.
5205         (us3_ialuX): Likewise.
5206         (us3_imul, us3_idiv): Tweak.
5207
5208 2002-05-28  Richard Henderson  <rth@redhat.com>
5209
5210         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
5211         STRING_CST.
5212
5213 2002-05-28  Richard Henderson  <rth@redhat.com>
5214
5215         * config.gcc: Obsolete mn10200.
5216
5217 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5218
5219         * cppexp.c (interpret_number): Optimize for single-digit
5220         and less-than-half-precision cases.
5221         (num_trim, num_positive, num_div_op): Cast constants.
5222
5223 2002-05-27  Bo Thorsen  <bo@suse.de>
5224
5225         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
5226         3.1 branch. The file was made by Jakub Jelinek.
5227         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
5228         support so multilib doesn't break. And don't define this at all
5229         when -Dinhibit_libc is used.
5230         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
5231         * config/i386/t-linux64: Implement full multilib support. Patch
5232         originally done by Andreas Jaeger and Jakub Jelinek.
5233
5234 2002-05-27  Roger Sayle  <roger@eyesopen.com>
5235
5236         * c-common.c: Add support for __attribute__((nothrow)) to specify
5237         that a function cannot throw an exception (using TREE_NOTHROW).
5238         (handle_nothrow_attribute): New function to process this attribute.
5239
5240         * doc/extend.texi: Document the new nothrow function attribute.
5241
5242 2002-05-27  H.J. Lu  (hjl@gnu.org)
5243
5244         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
5245         (num_positive): Likewise.
5246         (num_div_op): Likewise.
5247
5248 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5249
5250         * c-common.c (c_common_init): Always use intmax_t.
5251
5252 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5253
5254         * c-common.c (c_common_init): Use intmax_t for now.
5255
5256 2002-05-24  Andrew Haley  <aph@redhat.com>
5257
5258         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
5259         if T is a boolean type.
5260
5261 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5262
5263         * basic-block.h (last_basic_block): Defined as synonym for
5264         n_basic_blocks.
5265         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
5266         flow_depth_first_order_compute, flow_preorder_transversal_compute,
5267         flow_dfs_compute_reverse_init): Replaced relevant occurences of
5268         n_basic_blocks with last_basic_block.
5269         * cfgbuild.c (make_edges): Likewise.
5270         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
5271         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
5272         * combine.c (combine_instructions): Likewise.
5273         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
5274         iterative_dataflow_bitmap): Likewise.
5275         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
5276         calc_idoms, idoms_to_doms): Likewise.
5277         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
5278         Likewise.
5279         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
5280         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
5281         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
5282         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
5283         delete_null_pointer_checks, compute_code_hoist_vbeinout,
5284         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
5285         compute_store_table, build_store_vectors): Likewise.
5286         * haifa-sched.c (sched_init): Likewise.
5287         * ifcvt.c (if_convert): Likewise.
5288         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5289         pre_edge_lcm, compute_available, compute_nearerout,
5290         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
5291         Likewise.
5292         * predict.c (estimate_probability, process_note_prediction,
5293         note_prediction_to_br_prob): Likewise.
5294         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
5295         * recog.c (split_all_insns, peephole2_optimize): Likewise.
5296         * regrename.c (copyprop_hardreg_forward): Likewise.
5297         * resource.c (init_resource_info): Likewise.
5298         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
5299         init_regions, schedule_insns): Likewise.
5300         * ssa-ccp.c (ssa_const_prop): Likewise.
5301         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5302         * ssa.c (compute_dominance_frontiers,
5303         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
5304
5305         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
5306         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
5307         sizes consistently.
5308
5309 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
5310
5311         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
5312         new.
5313         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
5314         hoist_insn_after, hoist_insn_to_edge): New.
5315
5316 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
5317
5318         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
5319         (PROP_FINAL): Include.
5320         * flow.c (life_analysis, update_life_info,
5321         init_propagate_block_info, mark_set_1, mark_used_rgs):
5322         Support SCAN_DEAD_STORE.
5323
5324 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5325
5326         * c-common.c (c_common_init): Set CPP arithmetic precision.
5327         * cppexp.c (cpp_num_part): Move typedef ...
5328         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
5329         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
5330         (sanity_checks): Update.
5331
5332 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
5333
5334         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
5335         (mkheaders): New rule.
5336         (install-mkheaders): New rule.
5337         * configure.in (all_outputs): Add mkheaders.
5338         * configure: Regenerate.
5339         * mkheaders.in: New file.
5340
5341 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
5342
5343         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
5344
5345 2002-05-26  Andreas Jaeger  <aj@suse.de>
5346
5347         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
5348
5349 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5350
5351         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
5352         right_shift): Remove.
5353         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
5354         HIGH_PART): New.
5355         (struct op): Use cpp_num.
5356         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
5357         num_part_mul, num_unary_op, num_binary_op, num_negate,
5358         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
5359         num_div_op, num_lshift, num_rshift, append_digit): New.
5360         (interpret_number, parse_defined, eval_token, reduce): Update
5361         for two-integer arithmetic.
5362         (binary_handler): New typedef.
5363         (optab): Update.
5364         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
5365         (_cpp_parse_expr, reduce): Update to handle two-integers.
5366         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
5367
5368 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5369
5370         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
5371         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
5372         branch insn into account, do not assume 1.
5373         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
5374         over single word insn.  Handle upper half of I/O space too.
5375         * config/avr/avr.md (*sbrx_branch): Use it.
5376         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
5377         (*sbix_branch, *sbix_branch_bit7): Likewise.
5378         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
5379         Use RTL peepholes to optimize register operand sign tests.
5380
5381 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5382
5383         * config/avr/avr.c (avr_asm_only_p): New variable.
5384         (avr_override_options): Set it here if AVR1.
5385         (asm_file_start): Test it here, report an error if set.
5386
5387 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
5388
5389         * alias.c: Fix formatting.
5390         * attribs.c: Likewise.
5391         * bb-reorder.c: Likewise.
5392         * bitmap.c: Likewise.
5393         * bitmap.h: Likewise.
5394         * builtins.c: Likewise.
5395
5396 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
5397
5398         * reload.c (find_valid_class): Accept new argument DEST,
5399         choose class accordingly.
5400         (push_reload): Update callers.
5401
5402 2002-05-26  Andreas Jaeger  <aj@suse.de>
5403
5404         * combine.c (combine_instructions): Do not indent #if for
5405         traditional C.
5406
5407 2002-05-25  Richard Henderson  <rth@redhat.com>
5408
5409         * c-pragma.c (apply_pragma_weak): Convert value identifier to
5410         string for decl_attributes.
5411         (handle_pragma_weak): Call assemble_alias if we're modifying
5412         an existing decl.
5413
5414 2002-05-25  Richard Henderson  <rth@redhat.com>
5415
5416         PR target/6788
5417         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
5418         using rtl instead of fprintf.
5419         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
5420         * config/sparc/sparc-protos.h: Update.
5421
5422 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5423
5424         * Makefile.in (C_COMMON_H): Fix.
5425         Update other targets.
5426         * c-common.c: Don't include c-lex.h.
5427         (builtin_define_with_value): Make static and prototype.
5428         (builtin_define_std): Move from c-lex.h.
5429         * c-common.h (init_c_lex): Move from c-lex.h.
5430         * c-decl.c: Don't include c-lex.h.
5431         (make_pointer_declarator): Move from c-parse.in.
5432         * c-lex.c: Don't include c-lex.h.
5433         * c-lex.h: Remove.
5434         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
5435         (make_pointer_declarator): Move to c-decl.c.
5436         * c-pragma.c: Don't include c-lex.h.
5437         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
5438         * c-tree.h (make_pointer_declarator): New.
5439 doc:
5440         * passes.texi, tm.texi: Update.
5441 objc:
5442         * Make-lang.in: Update and correct.
5443         * objc-act.c: Don't include c-lex.h or cpplib.h.
5444 treelang:
5445         * treetree.c: Don't include c-lex.h.
5446 config:
5447         * darwin-c.c: Don't include c-lex.h.
5448         * c4x/c4x-c.c: Don't include c-lex.h.
5449         * c4x/t-c4x: Update.
5450         * i370/i370-c.c: Don't include c-lex.h.
5451         * i370/t-i370: Update.
5452         * i960/i960-c.c: Don't include c-lex.h.
5453         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
5454         * i960/t-960bare: Update.
5455         * i960/t-vxworks: Update.
5456         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
5457         * rs6000/t-darwin: Update.
5458         * rs6000/t-rs6000-c-rule: Update.
5459         * v850/v850-c.c: Don't include c-lex.h.
5460         * v850/v850.c: Don't include c-lex.h or cpplib.h.
5461
5462
5463 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
5464
5465         * tree.def: Fix typos.
5466         * doc/install.texi: Likewise.
5467
5468 2002-05-25  Richard Henderson  <rth@redhat.com>
5469
5470         * configure.in (HAVE_AS_TLS): Add ia64 test.
5471         * configure: Rebuild.
5472         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
5473         (override_options): Set it.
5474         (TARGET_HAVE_TLS): New.
5475         (sdata_symbolic_operand): Look for 's'.
5476         (tls_symbolic_operand): New.
5477         (ia64_expand_load_address): Abort for tls symbols.
5478         (gen_tls_get_addr): New.
5479         (gen_thread_pointer): New.
5480         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
5481         (rtx_needs_barrier): Add new unspecs.
5482         (ia64_encode_section_info): Handle tls symbols.
5483         (ia64_strip_name_encoding): Strip two encoding chars.
5484         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
5485         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
5486         (TARGET_OPTIONS): Add tls-size.
5487         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
5488         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
5489         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
5490         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
5491         (movsf, movdf): Likewise.
5492         (movdi_symbolic): Use match_scratch.  Don't split if we won't
5493         have a scratch availiable.
5494         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
5495         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
5496         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
5497         * config/ia64/ia64-protos.h: Update.
5498         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
5499         sdata_symbolic_operand.
5500         (ASM_OUTPUT_LABELREF): Strip two characters.
5501
5502 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
5503
5504         * combine.c (simplify_set): Remove an unnecessary subreg.
5505
5506 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5507
5508         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
5509
5510         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
5511
5512 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
5513
5514         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
5515
5516 2002-05-25  Roger Sayle  <roger@eyesopen.com>
5517
5518         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
5519         (cond (compare x y) 0) into the equivalent (cond x y).
5520
5521 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
5522
5523         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
5524
5525 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
5526
5527         * config.gcc: Remove all stanzas for previously obsoleted
5528         systems.  Where necessary, add explicit error stanzas to
5529         prevent removed systems from being misidentified as something
5530         else.  Begin a fresh obsoletions list, with the systems that
5531         were reprieved last round.
5532         * doc/install.texi: Remove all mention of dead targets.
5533         * fixinc/mkfixinc.sh: Likewise.
5534
5535         * config/arm/arm.h: Bit 31 of target_flags is no longer
5536         reserved.
5537
5538         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
5539         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
5540         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
5541         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
5542         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
5543         config/alpha/osf12.h, config/alpha/osf2or3.h,
5544         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
5545         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
5546         config/clipper/clipper-protos.h, config/clipper/clipper.c,
5547         config/clipper/clipper.h, config/clipper/clipper.md,
5548         config/clipper/clix.h, config/convex/convex-protos.h,
5549         config/convex/convex.c, config/convex/convex.h,
5550         config/convex/convex.md, config/convex/fixinc.convex,
5551         config/convex/proto.h, config/elxsi/elxsi-protos.h,
5552         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
5553         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
5554         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
5555         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
5556         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
5557         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
5558         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
5559         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
5560         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
5561         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
5562         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
5563         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
5564         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
5565         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
5566         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
5567         config/m68k/altos3068.h, config/m68k/apollo68.h,
5568         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
5569         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
5570         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
5571         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
5572         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
5573         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
5574         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
5575         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
5576         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
5577         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
5578         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
5579         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
5580         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
5581         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
5582         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
5583         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
5584         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
5585         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
5586         config/mips/dec-osf1.h, config/mips/elflorion.h,
5587         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
5588         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
5589         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
5590         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
5591         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
5592         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
5593         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
5594         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
5595         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
5596         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
5597         config/ns32k/sequent.h, config/ns32k/tek6000.h,
5598         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
5599         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
5600         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
5601         config/sparc/rtems.h, config/we32k/we32k-protos.h,
5602         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
5603         Delete file.
5604
5605 2002-05-24  Richard Henderson  <rth@redhat.com>
5606
5607         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
5608         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
5609         * config/i386/i386.c (tls_model_chars): Add leading space.
5610         (tls_symbolic_operand): Don't bias by 1.
5611         (legitimize_address): Don't unbias by 1.
5612
5613 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
5614
5615         * lcm.c (optimize_mode_switching): Change bb used as indices
5616         to bb->index.
5617
5618 2002-05-24  Richard Henderson  <rth@redhat.com>
5619
5620         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
5621         of update_life_info_in_dirty_blocks.
5622
5623 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
5624
5625         PR other/6782
5626         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
5627
5628 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5629
5630         PR preprocessor/6780
5631         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
5632
5633 2002-05-24  Jim Blandy  <jimb@redhat.com>
5634
5635         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
5636         entry with a type code of zero, marking the end of the compilation
5637         unit's macro info.
5638
5639 2002-05-24  Richard Henderson  <rth@redhat.com>
5640
5641         * varasm.c (asm_output_bss): Always output one byte.
5642         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
5643
5644 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
5645
5646         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
5647         namespace.
5648
5649 2002-05-24  Andreas Jaeger  <aj@suse.de>
5650
5651         * ggc-page.c (alloc_page): Cast variables of type size_t to
5652         unsigned long, adjust printf format string.
5653         (ggc_alloc): Likewise.
5654         (ggc_print_statistics): Likewise.
5655         (ggc_print_statistics): Correct printf format string for SCALE to
5656         use unsigned long.
5657
5658 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
5659
5660         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
5661
5662 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
5663             Zack Weinberg     <zack@codesourcery.com>
5664
5665         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
5666         quoted strings.
5667         * dwarf2out.c (lookup_filename): Properly quote filename in .file
5668         directive in assembly file.
5669         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5670         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
5671         * config/pj/pj.h (ASM_FILE_START): Likewise.
5672         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5673         * config/avr/avr.c (asm_file_end): Likewise.
5674         * toplev.c (output_quoted_string): Handle possibly signed plain
5675         char.
5676         * toplev.h (output_clean_symbol_name): Declare
5677         * toplev.c (output_clean_symbol_name): Define.
5678         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
5679         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
5680
5681 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
5682
5683         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
5684
5685 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
5686
5687         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
5688         of size of unsigned.
5689
5690 2002-05-23  Richard Henderson  <rth@redhat.com>
5691
5692         * configure.in (HAVE_AS_TLS): New test.
5693         * config.in, configure: Rebuild.
5694         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
5695         (ix86_tls_dialect_string, ix86_tls_dialect): New.
5696         (override_options): Set it.
5697         (tls_model_chars, tls_symbolic_operand): New.
5698         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
5699         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
5700         (local_exec_symbolic_operand): New.
5701         (get_pic_label_name): Merge into output_set_got.
5702         (ix86_asm_file_end): Emit pic_label_name if defined.
5703         (legitimate_constant_p, constant_address_p): New.
5704         (legitimate_pic_operand_p): New.
5705         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
5706         (legitimate_address_p): Likewise.
5707         (ix86_encode_section_info): Rename from i386_; handle tls decls.
5708         (ix86_strip_name_encoding): New.
5709         (get_thread_pointer): New.
5710         (legitimize_address): Handle tls symbols.
5711         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
5712         Remove UNSPEC_PLT.
5713         (struct machine_function): Add some_ld_name.
5714         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
5715         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
5716         (output_addr_const_extra): New.
5717         (maybe_get_pool_constant): New.
5718         (ix86_split_to_parts): Use it.
5719         (ix86_expand_move): Handle tls symbols.
5720         (ix86_tls_get_addr): New.
5721         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
5722         (TARGET_OPTIONS): Add tls-dialect.
5723         (CONSTANT_ADDRESS_P): Use new out-of-line function.
5724         (LEGITIMATE_CONSTANT_P): Likewise.
5725         (LEGITIMATE_PIC_OPERAND_P): Likewise.
5726         (TARGET_STRIP_NAME_ENCODING): New.
5727         (ASM_OUTPUT_LABELREF): New.
5728         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
5729         (OUTPUT_ADDR_CONST_EXTRA): New.
5730         (PREDICATE_CODES): Update.
5731         (ix86_tls_dialect, ix86_tls_dialect_string): New.
5732         * config/i386/i386.md: Regroup and renumber unspec constants.
5733         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
5734         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
5735         (tls_global_dynamic, tls_local_dynamic_base): New.
5736         (tls_local_dynamic_once): New.
5737         * config/i386/i386-protos.h: Update.
5738
5739 2002-05-23  Richard Henderson  <rth@redhat.com>
5740
5741         * genemit.c (gen_insn): Print file:lineno comment before function.
5742         (main): likewise.
5743         * gensupport.c (struct queue_elem): Add filename member.
5744         (queue_pattern): Initialize it; update all callers.
5745         (process_include): Don't free filename.
5746         (read_md_rtx): Set read_rtx_filename.
5747
5748 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
5749
5750         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
5751
5752 2002-05-23  Richard Henderson  <rth@redhat.com>
5753
5754         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
5755
5756 2002-05-23  Richard Henderson  <rth@redhat.com>
5757
5758         * doc/extend.texi (C++98 Thread-Local Edits): Update with
5759         commentary from Mark.
5760
5761 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5762
5763         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
5764         Use FOR_EACH_BB macros to iterate over basic block chain.
5765         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
5766         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
5767         Likewise.
5768         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
5769         find_unreachable_blocks, create_edge_list, verify_edge_list,
5770         remove_fake_edges, add_noreturn_fake_exit_edges,
5771         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
5772         Likewise.
5773         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
5774         find_sub_basic_blocks): Likewise.
5775         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
5776         Likewise.
5777         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
5778         Likewise.
5779         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
5780         Likewise.
5781         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
5782         commit_edge_insertions, commit_edge_insertions_watch_calls,
5783         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
5784         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
5785         * conflict.c (conflict_graph_compute): Likewise.
5786         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
5787         df_modified_p, df_refs_unlink, df_dump): Likewise.
5788         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
5789         * final.c (compute_alignments): Likewise.
5790         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
5791         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
5792         count_or_remove_death_notes): Likewise.
5793         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
5794         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
5795         classic_gcse, compute_transp, cprop, compute_pre_data,
5796         compute_transpout, invalidate_nonnull_info,
5797         delete_null_pointer_checks_1, delete_null_pointer_checks,
5798         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
5799         compute_store_table, build_store_vectors, store_motion): Likewise.
5800         * global.c (global_conflicts, mark_elimination): Likewise.
5801         * graph.c (print_rtl_graph_with_bb): Likewise.
5802         * haifa-sched.c (sched_init): Likewise.
5803         * ifcvt.c (if_convert): Likewise.
5804         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
5805         compute_available, compute_nearerout, compute_rev_insert_delete,
5806         optimize_mode_switching): Likewise.
5807         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
5808         * predict.c (estimate_probability, note_prediction_to_br_prob,
5809         propagate_freq, counts_to_freqs, expensive_function_p,
5810         estimate_bb_frequencies): Likewise.
5811         * profile.c (instrument_edges, get_exec_counts,
5812         compute_branch_probabilities, compute_checksum, branch_prob,
5813         find_spanning_tree): Likewise.
5814         * recog.c (split_all_insns, peephole2_optimize): Likewise.
5815         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
5816         Likewise.
5817         * regclass.c (scan_one_insn, regclass): Likewise.
5818         * regmove.c (mark_flags_life_zones, regmove_optimize,
5819         record_stack_memrefs): Likewise.
5820         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
5821         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
5822         * resource.c (find_basic_block): Likewise.
5823         * sched-ebb.c (schedule_ebbs): Likewise.
5824         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
5825         find_single_block_region, find_rgns, schedule_insns)
5826         * sibcall.c (optimize_sibling_and_tail_recursive_call)
5827         * ssa-ccp.c (optimize_unexecutable_edges,
5828         ssa_ccp_df_delete_unreachable_insns): Likewise.
5829         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
5830         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
5831         rename_block, convert_to_ssa, compute_conservative_reg_partition,
5832         compute_coalesced_reg_partition, rename_equivalent_regs,
5833         convert_from_ssa): Likewise.
5834         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
5835         process_for_unwind_directive): Likewise.
5836
5837         * df.c (FOR_ALL_BBS): Removed.
5838         * gcse.c (struct null_pointer_info): Type of current_block field
5839         changed.
5840         (struct reg_avail_info): Type of last_bb field changed.
5841         * config/ia64/ia64.c (block_num): Removed.
5842         (need_copy_state): Type changed.
5843         (last_block): New.
5844
5845 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5846
5847         * cppinit.c (mark_named_operators): Split out from init_builtins.
5848         (cpp_finish_options): Call it from here instead.
5849
5850 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
5851
5852         * builtin-attrs.def: Update copyright years.
5853         (ATTR_NONNULL): New attribute identifier.
5854         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
5855         attribute tree lists.
5856         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
5857         format operand.
5858         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
5859         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
5860         attribute lists.  Chain the appropriate nonnull attribute.
5861         * c-format.c (check_format_arg): Remove null format string
5862         warning.
5863         * testsuite/gcc.dg/format/null-1.c: New test.
5864
5865 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5866
5867         * Makefile.in (ADAC): Define.
5868         (SYSLIBS): Define.
5869         (.SUFFIXES): Move before language makefile fragments.
5870         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
5871
5872 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
5873
5874         * varasm.c (make_decl_rtl): Don't allow weak variables to be
5875         placed in common.
5876
5877 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5878
5879         * cfg.c (dump_flow_info): Print results of
5880         maybe_hot/probably_never_executed predicates.
5881         * toplev.c (open_dump_file): Print function frequency.
5882
5883 2002-05-23  David S. Miller  <davem@redhat.com>
5884
5885         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
5886         regsets.
5887
5888 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
5889
5890         * c-common.c (warn_nonnull): Declare.
5891         (c_common_attribute_table): Add "nonnull" attribute.
5892         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
5893         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
5894         check_function_arguments_recurse): New functions.
5895         * c-common.h (warn_nonnull): Declare extern.
5896         (check_function_arguments, check_function_arguments_recurse): New
5897         prototypes.
5898         * c-decl.c (c_decode_option): Add -Wnonnull option.
5899         * c-format.c (set_Wformat): Set warn_nonnull if enabling
5900         format checking.
5901         (format_check_context): New structure.
5902         (check_format_info_recurse): Remove recursion and rename to...
5903         (check_format_arg): ...this.  Update comment.
5904         (check_format_info): Use check_function_arguments_recurse.
5905         * c-typeck.c (build_function_call): Call check_function_arguments
5906         instead of check_function_format.
5907         * doc/extend.texi: Document "nonnull" attribute.
5908         * doc/invoke.texi: Docuemnt -Wnonnull option.
5909         * testsuite/gcc.dg/nonnull-1.c: New test.
5910         * testsuite/gcc.dg/nonnull-2.c: New test.
5911
5912 2002-05-23  David S. Miller  <davem@redhat.com>
5913
5914         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
5915         * cfgcleanup.c (cleanup_cfg): If it is set do not
5916         attempt to delete trivially dead insns.
5917         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
5918         * toplev.c (rest_of_compilation): Document non-trivial aspect
5919         the RTL before optimize_save_area_alloca is run.
5920
5921 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5922
5923         * c-lex.c (indent_level): Remove.
5924         (cb_file_change, c_lex): Remove indent level handling.
5925         * c-lex.h (indent_level): Remove.
5926         * input.h (struct file_stack): Remove indent_level.
5927         * toplev.c (push_srcloc): Remove indent_level handling.
5928
5929 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5930
5931         PR target/6753
5932         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
5933         of x in constraints for clarity.
5934         (sse_mov?fcc split): abort if op2 == op3.
5935         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
5936         sse_movsfcc_const0_4): Add earlyclobber.
5937         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
5938         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
5939         Use Y instead of x in constraints.
5940
5941 2002-05-23  Richard Henderson  <rth@redhat.com>
5942
5943         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
5944         (C++98 Thread-Local Edits): New subsection.
5945
5946         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
5947         (ix86_arch): Set type to enum processor_type.
5948
5949         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
5950         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
5951
5952 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
5953
5954         * configure.in: Fix as version test for binutils 2.12.1 releases
5955         (without dates).
5956         * configure: Rebuilt.
5957
5958 2002-05-23  Richard Henderson  <rth@redhat.com>
5959
5960         * config/i386/i386.c (get_pic_label_name): New.
5961         (load_pic_register): Remove.
5962         (output_set_got): New.
5963         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
5964         * config/i386/i386.md (UNSPEC_SET_GOT): New.
5965         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
5966         (prologue_set_got, prologue_get_pc): Remove.
5967         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
5968         (builtin_setjmp_receiver): Use gen_set_got.
5969         * config/i386/i386-protos.h: Update.
5970
5971 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
5972
5973         * gcse.c (hash_expr): Do not use alias set for hashing.
5974
5975 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
5976
5977         * dbxout.c (dbxout_class_name_qualifiers): New function.
5978         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
5979
5980 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5981
5982         * cpperror.c (_cpp_begin_message): No special casing
5983         of CPP_FATAL_LIMIT.
5984         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
5985         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
5986         * cpplib.c (do_include_common): Use DL_ERROR.
5987         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
5988         (DL_ICE): Renumber.
5989         * fix-header.c (read_scan_file): Update.
5990
5991 2002-05-22  Richard Henderson  <rth@redhat.com>
5992
5993         * config/i386/i386.c (ix86_expand_call): New function, extracted
5994         from md call patterns.  Add pic_offset_table_rtx to
5995         CALL_INSN_FUNCTION_USAGE when needed.
5996         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
5997         (call_value_pop, call_value, untyped_call): Likewise.
5998         (call_exp, call_value_exp): Remove.
5999         * config/i386/i386-protos.h: Update.
6000
6001 2002-05-22  Richard Henderson  <rth@redhat.com>
6002
6003         * varasm.c (default_section_type_flags): Check for VAR_DECL
6004         before using DECL_THREAD_LOCAL.
6005
6006 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
6007
6008         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
6009         (STARTFILE_SPEC): Delete PE crt0.o.
6010         * config/rs6000/aix51.h: Same.
6011         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
6012         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
6013         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
6014         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
6015         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
6016
6017 2002-05-22  Richard Henderson  <rth@redhat.com>
6018
6019         * varasm.c (default_section_type_flags): Handle tls data and
6020         default sections.
6021         (default_unique_section): Handle tls sections.
6022
6023 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
6024
6025         * configure.in (CROSS): Define NATIVE_CROSS.
6026         * configure: Regenerate.
6027         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
6028         (startfile_prefix_spec): New var.
6029         (static_specs): Add startfile_prefix_spec.
6030         (do_spec_2): Split out from..
6031         (do_spec): ..here.
6032         (main): Process startfile_prefix_spec.
6033         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
6034         dynamic linker.
6035         (STARTFILE_PREFIX_SPEC): Define.
6036         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
6037         absolute paths.
6038
6039 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
6040
6041         * cpperror.c: Fix formatting.
6042         * cppexp.c: Likewise.
6043         * cppfiles.c: Likewise.
6044         * cpphash.c: Likewise.
6045         * cpphash.h: Likewise.
6046         * cppinit.c: Likewise.
6047         * cpplex.c: Likewise.
6048         * cpplib.c: Likewise.
6049         * cppmacro.c: Likewise.
6050         * cppmain.c: Likewise.
6051         * cppspec.c: Likewise.
6052
6053 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
6054
6055         * combine.c (force_to_mode): Use gen_int_mode.
6056         Don't clear CONST_INT bits outside of mode.
6057
6058 2002-05-22  Richard Henderson  <rth@redhat.com>
6059
6060         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
6061         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
6062
6063 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
6064
6065         PR c/6643
6066         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
6067         if DECL_SIZE_UNIT is INTEGER_CST.
6068
6069 2002-05-22  Richard Henderson  <rth@redhat.com>
6070
6071         * flow.c (life_analysis): Delete broken reg_label check.
6072
6073 2002-05-22  Richard Henderson  <rth@redhat.com>
6074
6075         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
6076         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
6077
6078 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
6079
6080         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
6081         (embed-bb.c): New rule.
6082         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
6083         * config/sh/embed_bb.c: Delete.
6084
6085 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
6086
6087         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
6088
6089 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
6090
6091         * config/h8300/h8300.md (*andorqi3): New.
6092
6093 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6094
6095         PR preprocessor/6517
6096         * Makefile.in: Update.
6097         * c-common.c (c_common_post_options): Add preprocessor
6098         errors to the error count.
6099         * c-lang.c (c_post_options): Kill.
6100         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
6101         * hooks.h: Add header guards.
6102         * langhooks-def.h: Include hooks.h.
6103         (LANG_HOOKS_POST_OPTIONS): Update.
6104         * langhooks.h (struct lang_hooks): Update post_options.
6105         * toplev.c (parse_options_and_default_flags): Update.
6106 objc:
6107         * objc-lang.c (objc_post_options): Kill.
6108         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
6109
6110 2002-05-21  Bruce Korb  <bkorb@gnu.org>
6111
6112         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
6113         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
6114         * fixinc/fixincl.x: regen.
6115
6116 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
6117
6118         * cfgbuild.c: Fix formatting.
6119         * cfg.c: Likewise.
6120         * cfgcleanup.c: Likewise.
6121         * cfglayout.c: Likewise.
6122         * cfgloop.c: Likewise.
6123         * cfgrtl.c: Likewise.
6124
6125 2002-05-21  Richard Henderson  <rth@redhat.com>
6126
6127         * c-common.h (enum rid): Add RID_THREAD.
6128         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
6129         (grokdeclarator): Grok __thread.
6130         * c-parse.in (reswords): Add __thread.
6131         (rid_to_yy): Add RID_THREAD.
6132
6133         * tree.h (DECL_THREAD_LOCAL): New.
6134         (struct tree_decl): Add thread_local_flag.
6135         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
6136         * tree.c (staticp): TLS variables are not static.
6137
6138         * target-def.h (TARGET_HAVE_TLS): New.
6139         * target.h (have_tls): New.
6140         * output.h (SECTION_TLS): New.
6141         * varasm.c (assemble_variable): TLS variables can't be common for now.
6142         (default_section_type_flags): Handle .tdata and .tbss.
6143         (default_elf_asm_named_section): Handle SECTION_TLS.
6144         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
6145
6146         * flags.h (flag_tls_default): Declare.
6147         * toplev.c (flag_tls_default): Define.
6148         (display_help): Display help for it.
6149         (decode_f_option): Set it.
6150
6151         * doc/extend.texi (Thread-Local): New node describing language-level
6152         thread-local storage.
6153         * doc/invoke.texi (-ftls-model): Document.
6154
6155         * fixinc/inclhack.def (thread_keyword): New.
6156         * fixinc/fixincl.x: Rebuild.
6157
6158 2002-05-21  Jeffrey A Law  <law@redhat.com>
6159
6160         * optabs.c (expand_binop): For double-word integer multiplies,
6161         do not compute intermediate results into something that is
6162         not a register (such as a SUBREG or MEM).
6163
6164         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
6165         (ix86_sched_reorder): Make sure to initialize scheduling
6166         data even when there's only one insn in the ready queue.
6167
6168 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
6169
6170         * genautomata.c (reserv_sets_hash_value): Fix a typo.
6171
6172 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
6173
6174         * genautomata.c (reserv_sets_hash_value): Define hash_value as
6175         set_el_t.  Transform the hash value into unsigned.
6176         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
6177         (transform_3): Add code to process `(A,B)+(D,E)'.
6178
6179 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
6180
6181         * reload1.c (do_output_reload): Run delete_output_reload
6182         only if optimizing.
6183
6184 2002-05-21  Roger Sayle  <roger@eyesopen.com>
6185
6186         PR middle-end/6600
6187         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
6188         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
6189         (can_store_by_pieces): ... and here to limit the largest mode used.
6190         Add a comment to document this function.
6191
6192 2002-05-21  Richard Henderson  <rth@redhat.com>
6193
6194         * flow.c (life_analysis): Fix test for deleted label.
6195
6196 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6197
6198         * doc/tm.texi: Fix typo.
6199
6200 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
6201
6202         * c-common.c (c_common_init): Set options->unsigned_char from
6203         flag_signed_char.
6204         (cb_register_builtins): Define __STRICT_ANSI__ and
6205         __CHAR_UNSIGNED__ here...
6206         * cppinit.c (init_builtins): Not here.
6207         (cpp_create_reader): unsigned_char option defaults to 0, not
6208         !DEFAULT_SIGNED_CHAR.
6209         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
6210         and -funsigned-char.
6211
6212         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
6213         * cpphash.c (_cpp_init_hashtable): Don't set it.
6214         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
6215         directly.  Clarify comment.
6216
6217 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6218
6219         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
6220         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
6221         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
6222         BASIC_BLOCK (n_basic_blocks - 1).
6223         * cfganal.c (can_fallthru, flow_call_edges_add,
6224         flow_preorder_transversal_compute): Too.
6225         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
6226         find_sub_basic_blocks): Too.
6227         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
6228         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
6229         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
6230         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
6231         * combine.c (this_basic_block): Type changed to basic_block.
6232         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
6233         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
6234         get_last_value, distribute_notes, distribute_links): Too.
6235         * final.c (compute_alignments): Too.
6236         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
6237         * function.c (thread_prologue_and_epilogue_insns): Too.
6238         * gcse.c (compute_code_hoist_vbeinout): Too.
6239         * global.c (build_insn_chain): Too.
6240         * ifcvt.c (find_if_block, find_cond_trap): Too.
6241         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
6242         * regmove.c (regmove_optimize): Too.
6243         * resource.c (find_basic_block): Too.
6244         * sched-ebb.c (schedule_ebbs): Too.
6245         * ssa-dce.c (find_control_dependence, find_pdom): Too.
6246
6247 2002-05-21  Andreas Jaeger  <aj@suse.de>
6248
6249         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
6250
6251 2002-05-21  Richard Henderson  <rth@redhat.com>
6252
6253         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
6254         unspec names, not numbers.
6255
6256 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6257
6258         * doc/sourcebuild.texi: Mention snapshot-README and
6259         snapshot-index.html as needing updating for new front ends.
6260
6261 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6262
6263         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
6264         disabling checking, and avoid multiple evaluation of RTX.
6265
6266 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
6267
6268         * bitmap.c (bitmap_find_bit): Return early if we have the correct
6269         element cached.
6270
6271 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
6272
6273         * profile.c (gen_edge_profiler):  Set alias set before the memory is
6274         used.
6275
6276 2002-05-20  David S. Miller  <davem@redhat.com>
6277
6278         * cselib.c (max_value_regs): New.
6279         (cselib_lookup, cselib_invalidate_regno): Initialize it when
6280         adding new entries to the REG_VALUES table and we are dealing with
6281         a hard register.
6282         (clear_table): Initialize it.
6283         (cselib_invalidate_regno): Use it to determine which hard
6284         registers to scan when mode is not VOIDmode.
6285
6286 2002-05-20  Duraid Madina   <duraid@fl.net.au>
6287
6288         * tradcpp.c (fixup_newlines): Use old-style function header.
6289
6290 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
6291
6292         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
6293
6294 2002-05-20  H.J. Lu  (hjl@gnu.org)
6295
6296         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
6297
6298         * config/mips/mips.h (DFMODE_NAN): Defined.
6299         (SFMODE_NAN): Likewise.
6300
6301 2002-05-20  Dale Johannesen  <dalej@apple.com>
6302
6303         * combine.c (cant_combine_insn_p):  Back out my
6304         previous patch.
6305
6306 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
6307
6308         * params.c: Fix formatting.
6309         * params.h: Likewise.
6310         * predict.c: Likewise.
6311         * prefix.c: Likewise.
6312         * print-rtl.c: Likewise.
6313         * print-tree.c: Likewise.
6314         * profile.c: Likewise.
6315
6316 2002-05-20  H.J. Lu  (hjl@gnu.org)
6317
6318         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
6319
6320 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
6321
6322         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
6323         switches straight on to the assembler, do not abbreviate them.
6324         * config/arm/elf.h (ASM_SPEC): As above.
6325         * config/arm/semi.h (ASM_SPEC): As above.
6326         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
6327         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
6328         -mcpu=xscale on to the assembler by default.
6329         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
6330
6331 2002-05-20  Richard Henderson  <rth@redhat.com>
6332
6333         * cse.c (canon_hash): Reorder do_not_record test.  Always
6334         allow pic_offset_table_rtx.
6335
6336 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
6337
6338         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
6339         (expand_binop): Ditto (3 times).
6340
6341 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
6342
6343         * Makefile.in (distclean): Remove QMTest stuff.
6344         (QMTEST_PATH): New variable.
6345         (QMTESTFLAGS): Likewise.
6346         (QMTESTRUNFLAGS): Likewise.
6347         (QMTEST): Likewise.
6348         (QMTEST_GPP_TESTS): Likewise.
6349         (QMTEST_DIR): Likewise.
6350         (QMTEST_DIR/context): New target.
6351         (qmtest-g++): Likeise.
6352         (qmtest-gui): Likewise.
6353         (QMTEST_DIR/gpp-expected.qmr): Likewise.
6354
6355 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
6356
6357         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
6358         an altivec register if TARGET_ALTIVEC.
6359
6360         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
6361         to ALTIVEC_VECTOR_MODE.
6362         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
6363         (rs6000_va_arg): Vectors may go in registers if they are not
6364         altivec vectors.
6365
6366 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
6367
6368         * protoize.c: Fix formatting.
6369
6370 2002-05-19  Richard Henderson  <rth@redhat.com>
6371
6372         * gensupport.c (init_include_reader): Merge into ...
6373         (process_include): ... here.  Simplify composite path creation.
6374         Plug memory leaks.  Fix file/line number tracking.  Do not
6375         process_define_cond_exec.  Return void.
6376         (process_rtx): Don't check process_include return value.
6377
6378 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6379
6380         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
6381         fields.
6382         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
6383         traversing basic block chain.
6384         (create_basic_block_structure, create_basic_block): Declaration changed.
6385         (link_block, unlink_block): Declare.
6386         * cfg.c (entry_exit_blocks): Initialize new fields.
6387         (link_block, unlink_block): New.
6388         (expunge_block_nocompact): Unlink basic block.
6389         (dump_flow_info): Print prev_bb/next_bb fields.
6390         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
6391         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
6392         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
6393         * cfgrtl.c (create_basic_block_structure, create_basic_block,
6394         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
6395         (verify_flow_info): Check that list agrees with numbering.
6396
6397 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6398
6399         * c-common.c (preprocessing_asm): New macro.
6400         * c-lex.h (builtin_define, builtin_assert): Use pfile.
6401 doc:
6402         * tm.texi: Update.
6403 config/alpha:
6404         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
6405         (CPP_SPEC): Simplify.
6406         (TARGET_CPU_CPP_BUILTINS): Update.
6407         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
6408         (CPP_SPEC): Simplify.
6409         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
6410         (TARGET_OS_CPP_BUILTINS): Update.
6411         * osf.h (CPP_XFLOAT_SPEC): Kill.
6412         (TARGET_OS_CPP_BUILTINS): Update.
6413         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
6414         * osf5.h (CPP_XFLOAT_SPEC): Kill.
6415         * vms.h (CPP_SUBTARGET_SPEC): Kill.
6416         (TARGET_OS_CPP_BUILTINS): Update.
6417
6418 2002-05-19  Richard Henderson  <rth@redhat.com>
6419
6420         * varasm.c (default_binds_local_p): Fix typo.
6421
6422 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6423
6424         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
6425         CONST_INT operand to the correct mode after adding 1 to it.
6426
6427 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
6428
6429         * config.gcc (powerpc-wrs-windiss*): New target.
6430
6431 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6432
6433         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
6434         (ashrdi3): Use it.
6435
6436 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
6437
6438         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
6439         alphasort.
6440         * config.in: Regenerated.
6441         * configure: Regenerated.
6442
6443 2002-05-19  Richard Henderson  <rth@redhat.com>
6444
6445         * target-def.h (TARGET_BINDS_LOCAL_P): New.
6446         * target.h (struct gcc_target): Move boolean fields to the end.
6447         Add binds_local_p.
6448         * varasm.c (default_binds_local_p): New.
6449         * output.h: Declare it.
6450
6451         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
6452         * config/cris/cris.c (cris_encode_section_info): Likewise.
6453         * config/i386/i386.c (i386_encode_section_info): Likewise.
6454         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
6455         * config/sh/sh.c (sh_encode_section_info): Likewise.
6456
6457         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
6458         (TARGET_BINDS_LOCAL_P): New.
6459
6460 2002-05-19  Richard Henderson  <rth@redhat.com>
6461
6462         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
6463         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
6464         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
6465
6466         * toplev.c (display_help): Kill -a -ax help.
6467
6468         * config/1750a/1750a.h, config/alpha/alpha.h,
6469         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
6470         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
6471         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
6472         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
6473
6474         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
6475         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
6476
6477         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
6478         (ix86_output_function_block_profiler): Kill.
6479         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
6480         (m68hc11_function_block_profiler): Kill.
6481         * config/m68hc11/m68hc11-protos.h: Update.
6482         * config/m88k/m88k.c (output_block_profiler): Kill.
6483         (output_function_block_profiler): Kill.
6484         * config/m88k/m88k-protos.h: Update.
6485
6486 2002-05-19  Richard Henderson  <rth@redhat.com>
6487
6488         * system.h (STRIP_NAME_ENCODING): Poison it.
6489         * output.h (STRIP_NAME_ENCODING): Remove.
6490         (default_strip_name_encoding): Declare.
6491         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
6492         * target.h (strip_name_encoding): New.
6493         * varasm.c (default_strip_name_encoding): New.
6494
6495         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
6496         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
6497         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
6498         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
6499         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
6500         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
6501         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
6502         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
6503         config/v850/v850.h: Use the hook, not the macro.
6504
6505         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
6506         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
6507         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
6508         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
6509         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
6510         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
6511         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
6512         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
6513         config/v850/v850.c, config/v850/v850.h:
6514         Move STRIP_NAME_ENCODING to out-of-line function and add
6515         TARGET_STRIP_NAME_ENCODING.
6516
6517         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
6518         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
6519         with TARGET_STRIP_NAME_ENCODING referencing existing function;
6520         make function static.
6521
6522         * xcoffout.c: Include target.h
6523         * Makefile.in (xcoffout.o): Update.
6524
6525         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
6526         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
6527         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
6528         reloc argument unused.
6529         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
6530
6531         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
6532         STRIP_NAME_ENCODING docs.
6533
6534 2002-05-19  Andreas Jaeger  <aj@suse.de>
6535
6536         * gengenrtl.c: Add prototype for excluded_rtx.
6537
6538         * real.h: Add prototype for exact_real_truncate.
6539
6540 2002-05-18  Richard Henderson  <rth@redhat.com>
6541
6542         * system.h (ENCODE_SECTION_INFO): Poison it.
6543         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
6544         * target.h (encode_section_info): New.
6545         * varasm.c (make_decl_rtl, output_constant_def): Use it.
6546         * hooks.c (hook_tree_int_void): New.
6547         * hooks.h: Declare it.
6548
6549         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
6550         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
6551         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
6552         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
6553         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
6554         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
6555         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6556         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
6557         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
6558         config/mcore/mcore-protos.h, config/mcore/mcore.c,
6559         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
6560         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
6561         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
6562         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
6563         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
6564         referencing existing function.  Make function static.
6565
6566         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
6567         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
6568         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
6569         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
6570         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
6571         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
6572         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
6573         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
6574         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
6575         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
6576         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
6577         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
6578         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
6579         Move ENCODE_SECTION_INFO to out-of-line function and add
6580         TARGET_ENCODE_SECTION_INFO.
6581
6582         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
6583         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
6584
6585         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
6586         from SUBTARGET_*
6587         (switch_to_section): Replace in_rdata case with in_readonly_data.
6588
6589         * config/h8300/h8300.c (h8300_encode_label): Make static.
6590         * config/h8300/h8300-protos.h: Update.
6591
6592         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
6593         from rs6000_encode_section_info; make static.
6594         (rs6000_xcoff_encode_section_info): New.
6595
6596         * config/v850/v850.c (v850_encode_data_area): Make static.
6597         * config/v850/v850-protos.h: Update.
6598
6599         * config/vax/vax.c: Include flags.h.
6600         (vms_select_section): Fix typo.
6601
6602         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
6603         ENCODE_SECTION_INFO docs.
6604
6605 2002-05-18  Richard Henderson  <rth@redhat.com>
6606
6607         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
6608         REGISTER_TARGET_PRAGMAS.
6609         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
6610
6611         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
6612
6613 2002-05-18  Richard Henderson  <rth@redhat.com>
6614
6615         * system.h (SELECT_RTX_SECTION): Poison.
6616         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
6617         * target.h (select_rtx_section): New.
6618         * varasm.c (output_constant_pool): Use it.
6619         (default_select_rtx_section, default_elf_select_rtx_section): New.
6620         * output.h: Declare them.
6621
6622         * config/darwin.h (SELECT_RTX_SECTION): Move ...
6623         * config/darwin.c (machopic_select_rtx_section): ... here.
6624         * config/darwin-protos.h: Update.
6625
6626         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
6627         * config/nextstep.c (machopic_select_rtx_section): ... here.
6628         (nextstep_select_section): Rename variable to avoid macro clash.
6629         * config/nextstep-protos.h: Update.
6630
6631         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
6632         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
6633         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
6634         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
6635         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
6636         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
6637         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
6638         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
6639         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
6640         (SELECT_RTX_SECTION): Remove.
6641
6642         * config/darwin.h, config/elfos.h, config/nextstep.h,
6643         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
6644         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
6645         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
6646         config/sparc/lynx.h, config/xtensa/xtensa.c
6647         (TARGET_ASM_SELECT_RTX_SECTION): New.
6648
6649         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
6650         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
6651         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
6652         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
6653         (ia64_aix_select_rtx_section): New.
6654         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
6655         redefining.
6656         * config/mips/mips.c (mips_select_rtx_section): Make static.
6657         Support ELF SHF_MERGE features.
6658         * config/mips/mips-protos.h: Update.
6659         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
6660         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
6661         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
6662         make static, fall back to default_elf_select_rtx_section.
6663         * config/rs6000/rs6000-protos.h: Update.
6664         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
6665         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
6666         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
6667         * config/romp/romp.c (romp_select_rtx_section): New.
6668         * config/s390/s390.c (s390_select_rtx_section): New.
6669         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
6670         declarations before target macro definition.
6671         (xtensa_emit_call): Use static buffer.
6672         (xtensa_select_rtx_section): New.
6673         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
6674         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
6675         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
6676
6677         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
6678         SELECT_RTX_SECTION docs.
6679
6680 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
6681
6682         * i386.md (movsi/movdi): Fix template.
6683         (sse2 patterns): Set attributes consistently.
6684
6685         * i386.md (pushqi2, ashrqi_*): Fix constraint.
6686
6687 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
6688
6689         * optabs.c (complex_part_zero_p): New.
6690         * (expand_cmplxdiv_straight): Use it.
6691         * (expand_cmplxdiv_wide): Ditto.
6692         * (expand_binop): Ditto.
6693
6694 2002-05-18  Richard Henderson  <rth@redhat.com>
6695
6696         * final.c (HAVE_READONLY_DATA_SECTION): New.
6697         (shorten_branches): Use it instead of ifdefs.
6698         * varasm.c (enum in_section): Add in_readonly_data.
6699         (text_section, data_section): Tidy.
6700         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
6701
6702         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
6703         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
6704         (READONLY_DATA_SECTION): Don't undef.
6705
6706         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
6707         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
6708         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
6709
6710         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
6711         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
6712         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
6713         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
6714
6715         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
6716         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
6717         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6718         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
6719         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
6720         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
6721         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
6722         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
6723         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
6724
6725         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
6726         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
6727         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
6728         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
6729         config/pa/pa64-hpux.h, config/sparc/litecoff.h
6730         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
6731
6732         * config/elfos.h, config/netware.h, config/svr3.h,
6733         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6734         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
6735         config/h8300/h8300.h, config/i386/i386-interix.h,
6736         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6737         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
6738
6739         * config/elfos.h, config/netware.h, config/svr3.h,
6740         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
6741         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
6742         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
6743         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
6744
6745         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
6746         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
6747         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
6748         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
6749         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
6750         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
6751         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
6752         config/rs6000/sysv4.h, config/v850/v850.h
6753         (EXTRA_SECTIONS): Remove in_const/in_rdata.
6754         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
6755
6756         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
6757         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
6758         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
6759         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
6760         * config/alpha/alpha.c (alpha_start_function): Likewise.
6761         (alpha_write_linkage): Likewise.
6762         * config/m32r/m32r.c (m32r_select_section): Likewise.
6763         * config/m88k/m88k.c (m88k_select_section): Likewise.
6764         * config/mips/mips.c (mips_select_rtx_section): Likewise.
6765         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
6766         (rs6000_elf_select_section): Likewise.
6767         * config/v850/v850.c (v850_select_section): Likewise.
6768
6769         * config/1750a/1750a.h, config/i860/sysv3.h
6770         (READONLY_DATA_SECTION_ASM_OP): New.
6771         READONLY_DATA_SECTION_ASM_OP.
6772         * config/i386/interix.c, config/i386/winnt.c
6773         (i386_pe_unique_section): Always use .rdata prefix.
6774         * config/pa/som.h (readonly_data): Always switch to read-only section.
6775         (READONLY_DATA_SECTION): Predicate on flag_pic.
6776         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
6777         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
6778         (READONLY_DATA_SECTION): Update.
6779
6780 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
6781
6782         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
6783         is used without -Wformat.
6784         * c-common.h (warn_format_zero_length): Declare extern.
6785         * c-decl.c (warn_options): Add "format-zero-length".
6786         * c-format.c (warn_format_zero_length): Declare.
6787         (set_Wformat): Set warn_format_zero_length for -Wformat.
6788         (check_format_info): Only warn about zero-length formats if
6789         warn_format_zero_length is true.  Include the format type
6790         name in the warning message.
6791         * doc/invoke.texi: Document -Wformat-zero-length.
6792         * testsuite/gcc.dg/format/zero-length-1.c: New test.
6793
6794 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
6795
6796         * timevar.c: Fix formatting.
6797         * tlink.c: Likewise.
6798         * toplev.c: Likewise.
6799         * tree-dump.c: Likewise.
6800         * tree-inline.c: Likewise.
6801
6802 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6803
6804         * cppinit.c (cpp_post_options): If preprocessed, turn off
6805         traditional.  If traditional, turn off column numbers.
6806         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
6807         * cpptrad.c (handle_newline): Update line_base.
6808         (skip_comment): Handle -Wcomment.
6809
6810 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
6811
6812         * cppinit.c (struct builtin): Remove unused fields.
6813         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
6814         (operator_array): New - was second half of builtin_array.
6815         (init_builtins): Simplify loop over builtin_array/operator_array.
6816
6817 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6818
6819         * defaults.h (UNIQUE_SECTION): Remove.
6820         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
6821
6822 2002-05-17  Richard Henderson  <rth@redhat.com>
6823
6824         * expr.c (init_expr_once): Don't use start/end_sequence.
6825         Use rtx_alloc instead of emit_insn.
6826         * toplev.c (lang_dependent_init): Run init_expr_once here ...
6827         (lang_independent_init): ... not here.
6828
6829 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
6830
6831         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
6832
6833 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6834
6835         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
6836         for fixed registers, possibly used for global register variables.
6837         (initial_elimination_offset, avr_output_function_prologue,
6838         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
6839
6840 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6841
6842         * Makefile.in: Update for cpptrad.c.
6843         * cpphash.h (struct cpp_buffer): New members for buffer
6844         overlays.
6845         (struct cpp_reader): New members for traditional output.
6846         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
6847         * cppinit.c (cpp_create_reader): Set trad_line.
6848         (cpp_destroy): Free trad_out_base if used.
6849         (cpp_read_main_file): Overlay an empty buffer if traditional.
6850         (cpp_finish_options): Don't do builtins.
6851         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
6852         (cpp_handle_option): Handle it.
6853         * cpplex.c (continue_after_nul): New.
6854         (_cpp_lex_direct): Use handle_nul.
6855         * cpplib.h (struct cpp_options): New traditional option.
6856         * cpptrad.c: New file.
6857
6858 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6859
6860         * c-common.c (c_common_init_options): Use C89 for Objective-C,
6861         and set the options flag.
6862         * cppinit.c (lang_flags): Remove objc.
6863         (lang_defaults): Remove OBJC and OBJCXX.
6864         (set_lang): Update.
6865         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
6866         (cpp_handle_option): Remove -+ and -lang-objc++.
6867         For ObjC, just set a flag.
6868         (print_help): Update.
6869         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
6870
6871 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6872
6873         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
6874         bootstrap with -mips3.
6875
6876 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
6877
6878         * final.c: Fix formatting.
6879         * fix-header.c: Likewise.
6880         * flow.c: Likewise.
6881         * fold-const.c: Likewise.
6882         * function.c: Likewise.
6883
6884 2002-05-17  David S. Miller  <davem@redhat.com>
6885
6886         PR c/6689, PR optimization/6615
6887         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
6888         and make it a pointer to rtx.  Update comments.
6889         (update_equiv_regs): When scanning for equivalences, record
6890         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
6891         it while making the equiv replacements.
6892
6893 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6894
6895         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
6896
6897 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
6898
6899         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
6900         when encoding visibility into SYMBOL_REF_FLAG.
6901
6902 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
6903
6904         * expr.c (force_operand): Fix reversed move.
6905
6906 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
6907
6908         * doc/install.texi (Testing): Mention two common DejaGnu warnings
6909         that can be ignored.
6910
6911 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6912
6913         * doc/install.texi (Final install): Recommend to install into a
6914         "clean" target directory.
6915
6916 2002-05-17  Richard Henderson  <rth@redhat.com>
6917
6918         * config/ia64/ia64.md: Use braced strings instead of quoted strings
6919         for code blocks.  Tidy whitespace.
6920
6921 2002-05-17  Richard Henderson  <rth@redhat.com>
6922
6923         * hooks.c (hook_tree_bool_false): New.
6924         * hooks.h: Declare it.
6925         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
6926         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
6927         * target.h (select_section, unique_section): New.
6928         (in_small_data_p): New.
6929         * varasm.c (resolve_unique_section): Use hooks instead of macros.
6930         (variable_section, output_constant_def_contents): Likewise.
6931         (default_select_section, default_unique_section): New.
6932         (categorize_decl_for_section, default_elf_select_section): New.
6933         * output.h: Declare them.
6934
6935         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
6936         (TARGET_ASM_SELECT_SECTION): New.
6937         (SELECT_SECTION): Move ...
6938         * config/darwin.c (machopic_select_section): ... here.
6939         * config/darwin-protos.h: Update.
6940
6941         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
6942         (SELECT_SECTION): Move ...
6943         * config/nextstep.c (nextstep_select_section): ... here.
6944         * config/nextstep-protos.h: Update.
6945
6946         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
6947         (TARGET_ASM_SELECT_SECTION): New.
6948         * config/svr3.h (SELECT_SECTION): Remove.
6949
6950         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
6951         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
6952         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
6953         (alpha_encode_section_info): Use it.
6954         * config/alpha/alpha-protos.h: Update.
6955         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
6956         (SELECT_SECTION, UNIQUE_SECTION): Remove.
6957         (TARGET_ASM_SELECT_SECTION): New.
6958         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
6959
6960         * config/arm/pe.h (UNIQUE_SECTION): Remove.
6961         (TARGET_ASM_UNIQUE_SECTION): New.
6962
6963         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
6964         (avr_unique_section): Rename from unique_section; make static.
6965         * config/avr/avr-protos.h: Update.
6966         * config/avr/avr.h (UNIQUE_SECTION): Remove.
6967
6968         * config/c4x/c4x.h (SELECT_SECTION): Remove.
6969
6970         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
6971         (TARGET_ASM_UNIQUE_SECTION): New.
6972         * config/i386/i386-interix.h: Likewise.
6973         * config/i386/win32.h: Likewise.
6974         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
6975         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
6976         * config/i386/sco5.h (SELECT_SECTION): Remove.
6977         (TARGET_ASM_SELECT_SECTION): New.
6978         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
6979
6980         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
6981         instead of SELECT_SECTION.
6982         * config/m68k/dpx2.h: Likewise.
6983         * config/rs6000/lynx.h: Likewise.
6984
6985         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
6986         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
6987         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
6988         (ia64_in_small_data_p): New.
6989         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
6990         (ia64_aix_select_section, ia64_aix_unique_section): New.
6991         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
6992         (SELECT_SECTION, UNIQUE_SECTION): Remove.
6993
6994         * config/m32r/m32r.h (SELECT_SECTION): Remove.
6995         (TARGET_ASM_SELECT_SECTION): New.
6996         * config/m32r/m32r.c (m32r_select_section): Take align argument.
6997         * config/m32r/m32r-protos.h: Update.
6998
6999         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
7000         (SELECT_SECTION): Move ...
7001         * config/m88k/m88k.c (m88k_select_section): ... here.
7002
7003         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
7004         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
7005         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
7006         (mcore_unique_section): Make static.
7007         * config/mcore/mcore-protos.h: Update.
7008
7009         * config/mips/elf.h (UNIQUE_SECTION): Remove.
7010         (TARGET_ASM_UNIQUE_SECTION): New.
7011         * config/mips/elf64.h: Likewise.
7012         * config/mips/iris6gld.h: Likewise.
7013         * config/mips/linux.h: Likewise.
7014         * config/mips/mips-protos.h: Update.
7015         * config/mips/mips.c (mips_select_section): Add align argument.
7016         * config/mips/mips.h (SELECT_SECTION): Remove.
7017         (TARGET_ASM_SELECT_SECTION): New.
7018
7019         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
7020         * config/mmix/mmix.c (mmix_select_section): Remove.
7021         (mmix_unique_section): Remove.
7022         * config/mmix/mmix-protos.h: Update.
7023
7024         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
7025         (SELECT_SECTION): Move ...
7026         * config/pa/pa.c (pa_select_section): ... here.
7027         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
7028
7029         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
7030         from rs6000_select_section and make static.
7031         (rs6000_elf_unique_section): Similarly.
7032         (rs6000_xcoff_select_section): From xcoff.h.
7033         (rs6000_xcoff_unique_section): Likewise.
7034         * config/rs6000/rs6000-protos.h: Update.
7035         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
7036         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
7037         * config/rs6000/xcoff.h: Likewise.
7038
7039         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
7040         (SELECT_SECTION): Move ...
7041         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
7042
7043         * config/v850/v850.h (SELECT_SECTION): Move ...
7044         * config/v850/v850.c (v850_select_section): ... here.
7045         (TARGET_ASM_SELECT_SECTION): New.
7046
7047         * config/vax/vms.h (SELECT_SECTION): Move ...
7048         * config/vax/vax.c (vms_select_section): ... here.
7049         (TARGET_ASM_SELECT_SECTION): New.
7050
7051         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
7052         for the target hooks.
7053
7054 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
7055
7056         * config/arm/arm.c (emit_multi_reg_push): Do not set
7057         RTX_FRAME_RELATED_P on the SEQUENCE.
7058
7059 2002-05-16  Richard Henderson  <rth@redhat.com>
7060
7061         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
7062         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
7063
7064 2002-05-16  Richard Henderson  <rth@redhat.com>
7065
7066         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
7067
7068         * config/ia64/ia64.c (saveable_obstack): Do not declare.
7069
7070 2002-05-16  Richard Henderson  <rth@redhat.com>
7071
7072         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
7073         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
7074         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
7075         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
7076         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
7077         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
7078         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
7079         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
7080         Revert "Basic block renumbering removal", and two followup patches.
7081
7082 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
7083
7084         * lcm.c (optimize_mode_switching): Revert previous change.
7085
7086 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7087
7088         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
7089         with only extant block numbers.
7090
7091 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
7092
7093         * lcm.c (optimize_mode_switching): Fix typo.
7094
7095 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7096
7097         * flow.c (calculate_global_regs_live): Queue blocks in program order.
7098
7099 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7100
7101         * doc/install.texi (Configuration): Document PWDCMD.
7102
7103 2002-05-16  Dale Johannesen  <dalej@apple.com>
7104
7105         * combine.c (cant_combine_insn_p):  Reenable combinations
7106         involving hard regs unless CLASS_LIKELY_SPILLED_P.
7107
7108 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7109
7110         * c-common.c (cb_register_builtins): Handle more built-ins
7111         here rather than in gcc.c specs.
7112         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
7113         (cpp_options): Pass -O flags even when only preprocessing.
7114         * toplev.c (set_fast_math_flags): New prototype.
7115         (fast_math_flags_set_p): New.
7116         (set_no_fast_math_flags): Remove.
7117         (decode_f_option): Update.
7118         * toplev.h (set_fast_math_flags): Update.
7119         (fast_math_flags_set_p): New.
7120         (set_no_fast_math_flags): Remove.
7121 config:
7122         * c4x/c4x.c (c4x_override_options): Update.
7123
7124 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
7125
7126         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
7127         Default-define here.
7128         (builtin_define_with_value): Can now wrap the expansion in
7129         quotation marks if such is wanted.
7130         (cb_register_builtins): Update calls to builtin_define_with_value.
7131         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
7132         here.
7133         (c_common_init): Set options->stdc_0_in_system_headers.
7134         * c-lex.h: Update prototype of builtin_define_with_value.
7135         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
7136         and REGISTER_PREFIX.
7137
7138         * cppinit.c (VERS, ULP, C, X): Kill.
7139         (builtin_array): Remove entries for __VERSION__,
7140         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
7141         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
7142         a constant.
7143         (init_builtins): Kill off a bunch of now-dead code.
7144         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
7145         -fno-leading-underscore.
7146         (cpp_handle_option): Remove code to set user_label_prefix.
7147         (cpp_post_options): Likewise.
7148
7149         * cpplib.h (struct cpp_options): Remove user_label_prefix.
7150         (stdc_0_in_system_headers): New.
7151         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
7152         stdc_0_in_system_headers) too to decide the value of __STDC__.
7153
7154         * tradcpp.c (user_label_prefix): Kill.
7155         (main): Remove code handling -f(no-)leading-underscore.
7156         (initialize_builtins): Don't define __REGISTER_PREFIX__
7157         or __USER_LABEL_PREFIX__.
7158         (install_value): Wrap compound statement in dummy loop so the
7159         macro works properly in an if statement.
7160
7161
7162 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
7163
7164         * loop.h (struct loop_info): Add member has_prefetch.
7165         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
7166         (prescan_loop): Initialize has_prefetch.
7167         (struct prefetch_info): Change prefetch_in_loop and
7168         prefetch_before_loop from bit fields to ints.
7169         (emit_prefetch_instructions): Several small fixes.
7170         (check_dbra_loop): Don't reverse loop that uses prefetch.
7171
7172 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7173
7174         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
7175         * configure.in: Likewise.
7176         * fixinc/check.tpl: Likewise.
7177         * fixinc/fixinc.dgux: Likewise.
7178         * fixinc/fixinc.svr4: Likewise.
7179         * fixinc/fixinc.winnt: Likewise.
7180         * fixinc/fixincl.sh: Likewise.
7181         * fixproto: Likewise.
7182         * configure: Regenerate.
7183
7184 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7185
7186         Basic block renumbering removal:
7187         * basic_block.h (struct basic_block_def): Renamed index to sindex,
7188         added prev_bb and next_bb fields.
7189         (n_basic_blocks): Renamed to num_basic_blocks.
7190         (last_basic_block): New, index of last basic block.
7191         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
7192         traversing basic block chain.
7193         (BLOCK_NUM): index -> sindex.
7194         (create_basic_block_structure, create_basic_block): Declaration changed.
7195         (debug_num2bb): Declare.
7196         (expunge_block_nocompact): Declaration removed.
7197         (link_block, unlink_block, compact_blocks): Declare.
7198         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
7199         * cfg.c (entry_exit_blocks): Initialize new fields.
7200         (clear_edges, alloc_block, expunge_block, cached_make_edge,
7201         redirect_edge_pred, dump_flow_info, dump_edge_info,
7202         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
7203         free_aux_for_edges): Modified.
7204         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
7205         (expunge_block_nocompact): Removed.
7206         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
7207         find_unreachable_blocks, create_edge_list, print_edge_list,
7208         verify_edge_list, flow_edge_list_print, remove_fake_successors,
7209         remove_fake_edges, flow_reverse_top_sort_order_compute,
7210         flow_depth_first_order_compute, flow_preorder_transversal_compute,
7211         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
7212         flow_dfs_compute_reverse_execute): Modified.
7213         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
7214         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
7215         Modified.
7216         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
7217         merge_blocks_move_predecessor_nojumps,
7218         merge_blocks_move_successor_nojumps, merge_blocks,
7219         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
7220         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
7221         * cfglayout.c (skip_insns_after_block, label_for_bb,
7222         record_effective_endpoints, scope_to_insns_finalize,
7223         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
7224         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
7225         cfg_layout_duplicate_bb): Modified.
7226         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
7227         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
7228         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
7229         flow_loops_find, flow_loop_outside_edge_p): Modified.
7230         * cfgrtl.c (create_basic_block_structure, create_basic_block,
7231         flow_delete_block, compute_bb_for_insn, split_block,
7232         try_redirect_by_replacing_jump, redirect_edge_and_branch,
7233         force_nonfallthru_and_redirect, tidy_fallthru_edge,
7234         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
7235         commit_edge_insertions, commit_edge_insertions_watch_calls,
7236         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
7237         purge_all_dead_edges): Modified.
7238         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
7239         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
7240         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
7241         Modified.
7242         * conflict.c (conflict_graph_compute): Modified.
7243         * df.c (FOR_ALL_BBS): Removed.
7244         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
7245         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
7246         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
7247         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
7248         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
7249         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
7250         * final.c (compute_alignments, final_scan_insn): Modified.
7251         * flow.c (verify_local_live_at_start, update_life_info,
7252         update_life_info_in_dirty_blocks, free_basic_block_vars,
7253         delete_noop_moves, calculate_global_regs_live,
7254         initialize_uninitialized_subregs, allocate_bb_life_data,
7255         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
7256         mark_used_reg, count_or_remove_death_notes): Modified.
7257         * function.c (thread_prologue_and_epilogue_insns): Modified.
7258         * gcse.c (struct null_pointer_info): Change typo of current_block
7259         to basic_block.
7260         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
7261         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
7262         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
7263         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
7264         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
7265         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
7266         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
7267         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
7268         pre_delete, one_pre_gcse_pass, compute_transpout,
7269         invalidate_nonnull_info, delete_null_pointer_checks_1,
7270         free_code_hoist_mem, compute_code_hoist_vbeinout,
7271         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
7272         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
7273         compute_store_table, build_store_vectors, insert_insn_start_bb,
7274         insert_store, replace_store_insn, free_store_memory, store_motion):
7275         Modified.
7276         * global.c (global_alloc, global_conflicts, mark_elimination,
7277         build_insn_chain): Modified.
7278         * graph.c (print_rtl_graph_with_bb): Modified.
7279         * haifa-sched.c (sched_init): Modified.
7280         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
7281         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
7282         if_convert): Modified.
7283         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
7284         compute_insert_delete, pre_edge_lcm, compute_available,
7285         compute_farthest, compute_nearerout, compute_rev_insert_delete,
7286         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
7287         Modified.
7288         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
7289         * loop.c (loop_dump_aux): Modified.
7290         * predict.c (combine_predictions_for_insn, estimate_probability,
7291         last_basic_block_p, process_note_prediction, process_note_predictions,
7292         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
7293         expensive_function_p, estimate_bb_frequencies,
7294         compute_function_frequency): Modified.
7295         * print-rtl.c (print_rtx): Modified.
7296         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
7297         get_exec_counts, compute_branch_probabilities, compute_checksum,
7298         branch_prob, find_spanning_tree): Modified.
7299         * recog.c (split_all_insns, peephole2_optimize): Modified.
7300         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
7301         convert_regs_1, convert_regs_2, convert_regs): Modified.
7302         * regclass.c (scan_one_insn, regclass): Modified.
7303         * regmove.c (mark_flags_life_zones, regmove_optimize,
7304         combine_stack_adjustments): Modified.
7305         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
7306         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
7307         * reorg.c (dbr_schedule): Modified.
7308         * resource.c (find_basic_block, init_resource_info): Modified.
7309         * sbitmap.c (sbitmap_intersection_of_succs,
7310         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
7311         sbitmap_union_of_preds): Modified.
7312         * sched-deps.c (init_dependency_caches): Modified.
7313         * sched-ebb.c (schedule_ebbs): Modified.
7314         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
7315         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
7316         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
7317         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
7318         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
7319         ssa_const_prop): Modified.
7320         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
7321         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
7322         * ssa.c (remove_phi_alternative, find_evaluations,
7323         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
7324         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
7325         make_regs_equivalent_over_bad_edges,
7326         make_equivalent_phi_alternatives_equival,
7327         compute_conservative_reg_partition,
7328         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
7329         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
7330         Modified.
7331
7332 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
7333
7334         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
7335
7336 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
7337
7338         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
7339         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7340         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
7341         calling CONSTANT_POOL_ADDRESS_P.
7342         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
7343         to decide whether to define __arm__ or __thumb.
7344         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
7345         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
7346
7347 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7348
7349         * config/arc/arc.h (CPP_PREDEFINES): Remove.
7350         (CPP_SPEC): Update.
7351         (TARGET_CPU_CPP_BUILTINS): New.
7352
7353 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7354
7355         * cpphash.h (cpp_macro): Move here, and make expansion a union.
7356         * cppmacro.c (cpp_macro): Remove.
7357         (enter_macro_context, replace_args, warn_of_redefinition,
7358         _cpp_create_definition, cpp_macro_definition): Update.
7359
7360 2002-05-16  Jason Merrill  <jason@redhat.com>
7361
7362         * config/mips/mips.c (mips_output_external): Don't do sdata
7363         optimization for a variable with DECL_COMDAT set.
7364
7365 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7366
7367         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
7368         Cleanups for accepting modifiers on pointers.
7369         Fix predicate typos.
7370         Allow long pointers as well as int pointers.
7371
7372 2002-05-15  Richard Henderson  <rth@redhat.com>
7373
7374         * varasm.c (merge_weak): Remove special case for extern and common.
7375
7376 2002-05-15  Matt Hiller  <hiller@redhat.com>
7377
7378         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
7379         XFAILing.
7380         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
7381         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
7382         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
7383         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
7384         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
7385         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
7386
7387 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7388
7389         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
7390
7391 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
7392
7393         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
7394         ("altivec_mfvscr"): Read from VSCR.
7395
7396         Add vscr sets for the following insns: altivec_vctuxs,
7397         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
7398         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
7399         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
7400         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
7401         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
7402         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
7403         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
7404         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
7405         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
7406         altivec_vsum2sws, altivec_vsumsws.
7407
7408         * config/rs6000/rs6000.h: Add VSCR fixed register.
7409         (CALL_REALLY_USED_REGISTERS): Add vscr.
7410         (CALL_USED_REGISTERS): Same.
7411         (FIXED_REGISTERS): Same.
7412         (REG_ALLOC_ORDER): Same.
7413         (reg_class): Add VSCR_REGS.
7414         (REG_CLASS_NAMES): Same.
7415         (REG_CLASS_CONTENTS): Same.
7416         (VSCR_REGNO): New.
7417         (REGISTER_NAMES): Add vscr.
7418         (DEBUG_REGISTER_NAMES): Same.
7419         (ADDITIONAL_REGISTER_NAMES): Same.
7420         (FIRST_PSEUDO_REGISTER): Increment.
7421         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
7422
7423 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
7424
7425         * fold-const.c (fold): Fix a typo.
7426
7427 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
7428
7429         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
7430         comparison against the highest or lowest integer value before
7431         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
7432         transformation and that of an unsigned comparison against 0
7433         right after.
7434
7435 2002-05-15  Richard Henderson  <rth@redhat.com>
7436
7437         * varasm.c (merge_weak): Error for any weakening after definition.
7438         Adjust weakening after use warning to catch more cases.
7439         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
7440         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
7441
7442 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
7443
7444         * invoke.texi (-malign-double): Re-add lost warning.
7445
7446         * i386-protos.h (x86_output_mi_thunk): Declare.
7447         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
7448         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
7449
7450         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
7451         when flag_asynchronous_unwind_tables is set.
7452
7453         * flags.h (flag_reorder_functions): Declare.
7454         * function.c (prepare_function_start): Initialize frequnecy.
7455         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
7456         * Makefile.in (predict.o): Add dependency on target.h and params.h
7457         * defaults.h (HOT_TEXT_SECTION_NAME,
7458         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
7459         * predict.c (choose_function_section): New function.
7460         (estimate_bb_frequencies): Use it.
7461         * toplev.c (flag_reorder_functions): New global variable.
7462         (lang_independent_options): New.
7463         (parse_options_and_default_flags): Set.
7464         * varasm.c (assemble_start_function): Bypass functdion alignment
7465         for never executed functions.
7466         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
7467         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
7468         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
7469         Document.
7470
7471         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
7472
7473         * predict.c: Inlude profile.h
7474         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
7475         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
7476         Use the information about maximal counter in the program.
7477
7478         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
7479
7480         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
7481         probably_never_executed_bb_p): New functions.
7482         * cfgcleanup.c (outgoing_edges_match): Use them.
7483         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
7484         (maybe_hot_bb_p, probably_cold_bb_p,
7485         probably_never_executed_bb_p): New functions.
7486
7487         * function.h (function): Add new field function_frequency.
7488         * predict.c (compute_function_frequency): New function.
7489         (estimate_probability): Call it.
7490
7491 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
7492
7493         PR optimization/5172, optimization/5200
7494         * gcse.c (gcse_main): Disable store_motion.
7495
7496 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
7497
7498         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
7499         (c_common_nodes_and_builtins): Use it.
7500         (builtin_define_with_value): New function.
7501         (cb_register_builtins): Define __SIZE_TYPE__,
7502         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
7503         using builtin_define_with_value.  Use consistent notation when
7504         defining __GXX_WEAK__.
7505         (WCHAR_TYPE_SIZE): Don't redefine.
7506         (combine_strings): Don't use WCHAR_TYPE_SIZE.
7507
7508         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
7509         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
7510         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
7511         * tradcpp.c (initialize_builtins): Likewise.
7512         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
7513
7514         * c-lex.h (builtin_define_with_value): Prototype.
7515         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
7516         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
7517         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
7518
7519         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
7520         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
7521         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
7522         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
7523         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
7524         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
7525         config/sparc/sol2-bi.h, config/sparc/sparc.h:
7526         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
7527         to __SIZE_TYPE__ etc from all spec strings. When this makes
7528         extra specs empty, delete them.
7529
7530 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7531
7532         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
7533         for PA8000 or generating dwarf2 call frame information.
7534         (output_call): Remove DO_FRAME_NOTES check from return pointer
7535         optimization.
7536         (following_call): Return 0 when scheduling for PA8000 or generating
7537         dwarf2 call frame information.  Revise comment.
7538
7539 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7540
7541 config/alpha:
7542         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
7543         and __IEEE_FP_INEXACT as appropriate.
7544         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
7545         (CPP_SPEC): Remove ieee defines.
7546         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
7547
7548 2002-05-14  Richard Henderson  <rth@redhat.com>
7549
7550         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
7551         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
7552
7553 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7554
7555         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
7556         (CPP_SPEC): Update.
7557         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
7558         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
7559         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
7560         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
7561         (EXTRA_SPECS): Update.
7562         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
7563         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
7564         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
7565         define TARGET_OS_CPP_BUILTINS if necessary.
7566
7567 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7568
7569         * gcc.c (cpp_options): Must pass -m* and -f* options
7570         to the front end even when only preprocessing.
7571         (cc1_options): Remove redundant -lang-c.
7572         * tradcpp.c (main): Ignore -m options.
7573 objc:
7574         * lang-specs.h: Similarly.
7575
7576 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
7577
7578         * genautomata.c (transform_3): Add code for transformation
7579         `(A,B,...)+C -> A+C,B,...'.
7580
7581 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
7582
7583         * final.c (end_final): Do not output profile_arcs constructor, when
7584         no functions are instrumented.
7585
7586 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
7587
7588         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
7589
7590 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7591
7592         * doc/install.texi: Remove special markup originally required for
7593         HTML generation with texi2html.
7594
7595 2002-05-14  Andreas Schwab  <schwab@suse.de>
7596
7597         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
7598         SELECT_SECTION.
7599         (UNIQUE_SECTION): Define to get small data correctly.
7600
7601         * varasm.c (resolve_unique_section): Add third parameter
7602         flag_function_or_data_sections and use it instead of
7603         flag_function_sections.
7604         (assemble_start_function): Pass flag_function_sections.
7605         (asm_emit_uninitialised): Pass flag_data_sections.
7606         (assemble_variable): Likewise.
7607
7608 2002-05-14  Richard Henderson  <rth@redhat.com>
7609
7610         * config/i386/i386.md: Use define_constants for unspec numbers.
7611         * config/i386/i386.c: Likewise.
7612
7613 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7614
7615         * doc/contrib.texi: Update my entry.
7616
7617 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
7618
7619         * fixinc/inclhack.def (winidss_valist): Limit applicability.
7620         * fixinc/fixincl.x: Regenerated.
7621         * fixinc/tests/base/math.h: Update.
7622         * fixinc/tests/base/testing.h: Likewise.
7623
7624 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
7625
7626         * genattr.c (gen_attr): Don't emit a comma after the last
7627         enumerator.
7628
7629 2002-05-13  Richard Henderson  <rth@redhat.com>
7630
7631         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
7632         by non-local gotos.
7633         * recog.c (peephole2_optimize): Likewise.
7634
7635 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
7636
7637         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
7638         input to O_BINARY.
7639
7640 2002-05-13  Jeffrey A Law  (law@redhat.com)
7641
7642         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
7643         Update prototype and callers.
7644         (propagate_one_insn): Stack pointer adjustments kill MEMs on
7645         the mem_set_list which reference the stack pointer, as do
7646         calls to constant functions as they may clobber outgoing
7647         argument space.
7648
7649         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
7650
7651         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
7652         (ia32_multipass_dfa_lookahead): New function.
7653
7654 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7655
7656         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
7657         (translate_options): Remove 'V'.
7658         (process_command): Similarly.
7659 doc:
7660         * invoke.texi: Remove documentation of 'V'.
7661
7662 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
7663
7664         * config/s390/linux.h: Revert 2002-04-22 changes.
7665
7666 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
7667
7668         * config/fr30/fr30.md: Only allow splits of immediate loads
7669         if the destination is a register.
7670
7671 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7672
7673         * Makefile.in (c-common.o, cppinit.o): Update.
7674         * c-common.c: Include except.h.
7675         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
7676         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
7677         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
7678         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
7679         CPP_PREDEFINES): Handle here.
7680 config:
7681         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
7682         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
7683         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
7684         TARGET_OS_CPP_BUILTINS.
7685         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
7686         (CPP_SPEC, EXTRA_SPECS): Update.
7687         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
7688         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
7689         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
7690         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
7691         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
7692 doc:
7693         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
7694         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
7695
7696 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
7697
7698         * emit-rtl.c (global_rtl): Update comment.
7699         (const_double_htab, const_double_htab_hash,
7700         const_double_htab_hash, lookup_const_double): New.
7701         (const_int_htab_hash, const_int_htab_eq): Remove const
7702         qualifiers, which cause tons of warnings with RTL checking on.
7703         (gen_rtx_CONST_DOUBLE): Deleted.
7704         (const_double_from_real_value): New function - bears some
7705         resemblance to the former immed_real_const_1.
7706         (immed_double_const): Moved here from varasm.c and
7707         simplified.
7708         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
7709         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
7710         (gen_rtx): Use immed_double_const.
7711         (init_emit_once): Initialize the const_double_htab.  Use
7712         REAL_VALUE_FROM_INT where possible.  Can now use
7713         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
7714         * varasm.c (struct varasm_status): Remove x_const_double_chain.
7715         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
7716         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
7717         (init_varasm_status, mark_varasm_status): Don't touch
7718         x_const_double_chain.
7719
7720         * output.h: Delete prototype for clear_const_double_mem.
7721         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
7722         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
7723         const_double_from_real_value, not immed_real_const_1, and use
7724         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
7725         CONST_DOUBLE_ATOF.
7726         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
7727         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
7728         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
7729         (gen_rtx_REG): Second arg is unsigned.
7730
7731         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
7732         (excluded_rtx): New, return true for CONST_DOUBLE.
7733         (genmacro): Write nothing for excluded codes.
7734         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
7735         * expr.c (expand_expr): Likewise.
7736         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
7737         CONST_DOUBLE_CHAIN.
7738         * toplev.c (rest_of_compilation): Don't call
7739         clear_const_double_mem.
7740
7741         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
7742         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
7743         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
7744         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
7745         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
7746         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
7747         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
7748         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
7749
7750 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7751
7752         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
7753
7754 2002-05-12  Tom Tromey  <tromey@redhat.com>
7755
7756         * tree.h (copy_node): Don't mention TREE_PERMANENT.
7757
7758 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
7759
7760         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
7761         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
7762         * gensupport.h: Prototype new routines.
7763         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
7764         use of printf.
7765         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
7766         (next_comma_elt): Use scan_comma_elt.
7767
7768         * config/i386/i386.md: Use new attribute notation to break up
7769         long lines in define_attr forms.
7770
7771 2002-05-12  Richard Henderson  <rth@redhat.com>
7772
7773         * expr.c (compress_float_constant): New.
7774         (emit_move_insn): Use it.
7775         (float_extend_from_mem): New.
7776         (init_expr_once): Initialize it.
7777         * real.c (exact_real_truncate): New.
7778
7779         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
7780         dropped into memory; penalize for size.
7781         (RTX_COSTS): FLOAT_EXTEND is free.
7782         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
7783         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
7784
7785 2002-05-12  Richard Henderson  <rth@redhat.com>
7786
7787         * profile.h (profile_info): Add missing extern to declaration.
7788         * profile.c (profile_info): Define it.
7789
7790 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7791
7792         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
7793         used for DImode and TImode.
7794
7795 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
7796
7797         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
7798         fake a newline.
7799
7800 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
7801
7802         * config/rs6000/rs6000.c (rs6000_default_long_calls,
7803         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
7804         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
7805         (rs6000_override_options): Handle -m(no-)longcall.
7806         (init_cumulative_args, output_mi_thunk): Check for both
7807         longcall and shortcall attributes on the function.
7808         (rs6000_attribute_table): Add "shortcall".
7809         (rs6000_handle_longcall_attribute): Update comment.
7810         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
7811         altivec_expand_ternop_builtin): Add default clauses to switches
7812         to silence warnings.
7813
7814         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
7815         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
7816         (TARGET_OPTIONS): Add longcall and no-longcall.
7817
7818         * config/rs6000/rs6000.md (call_nonlocal_sysv,
7819         call_value_nonlocal_sysv): Split by alternatives.  One pair
7820         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
7821         the call cookie.  The other pair accepts only LR/CTR and has
7822         no restriction.
7823
7824         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
7825         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
7826         tmake_file.
7827         * config/rs6000/rs6000-c.c: New file.
7828         * config/rs6000/t-rs6000-c-rule: New file.
7829         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
7830         Prototype rs6000_pragma_longcall.
7831
7832         * doc/extend.texi: Document shortcall attribute.
7833         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
7834
7835 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7836
7837         * reorg.c (dbr_schedule): Remove unnecessary test.
7838
7839 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
7840
7841         * i386.md (testsi to testqi spliters): New.
7842
7843         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
7844
7845         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
7846
7847         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
7848
7849         * basic-block.h: New flag EDGE_CAN_FALLTHRU
7850         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
7851         that can be made fallthru.
7852
7853         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
7854
7855         * cfglayout.c (cleanup_unconditional_jumps): New static function.
7856         (cfg_layout_initialize): Use it.
7857
7858 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7859
7860         * config/avr/avr.c (avr_mcu_types): Update supported devices.
7861         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7862         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7863
7864 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
7865
7866         * dbxout.c: Fix formatting.
7867         * dependence.c: Likewise.
7868         * df.c: Likewise.
7869         * diagnostic.c: Likewise.
7870         * doloop.c: Likewise.
7871         * dominance.c: Likewise.
7872         * doschk.c: Likewise.
7873         * dwarf2asm.c: Likewise.
7874         * dwarf2out.c: Likewise.
7875         * dwarfout.c: Likewise.
7876
7877 2002-05-10  Richard Henderson  <rth@redhat.com>
7878
7879         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
7880         Convert integers constants as needed.  Replace "nwords" field with
7881         "sizeof_bb".
7882         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
7883         * function.h: Fix typo in comment.
7884         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
7885
7886 2002-05-10  Roger Sayle  <roger@eyesopen.com>
7887
7888         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
7889         into the equivalent (signed char)c > 0.
7890
7891 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
7892
7893         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
7894         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
7895         (struct prefetch_info): Fix spelling of member bytes_accessed.
7896         (emit_prefetch_instructions): Make dump messages more regular;
7897         restructure code to add more dump messages; use new macros for
7898         heuristics. (There are no code generation changes in any of this).
7899
7900 2002-05-10  David S. Miller  <davem@redhat.com>
7901
7902         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
7903         (struct rtx_def): Update unchanging flag comment.
7904         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
7905         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
7906         to be handled to INSN too.
7907         (dbr_schedule): Likewise.
7908         * resource.c (next_insn_no_annul): Likewise.
7909
7910         * cse.c (rtx_cost): Remove multiplication by power of 2 special
7911         casing.
7912
7913 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7914
7915         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
7916         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
7917         (possibly) work around broken /bin/sh.
7918
7919 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7920
7921         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
7922         . as N64/N32 libgcc_s.so subdirs.
7923
7924 2002-05-10  David S. Miller  <davem@redhat.com>
7925
7926         * config/sparc/sparc.md: Use define_constants for unspec numbers.
7927
7928         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
7929         more accurately.
7930         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
7931         comment.
7932         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
7933         * doc/rtl.texi: Document these macros more accurately.
7934         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
7935         JUMP_INSNs and CALL_INSNs.
7936         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
7937         or INSN_FROM_TARGET_P if the code is appropriate.
7938
7939 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7940
7941         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
7942         before using SYMBOL_REF_FLAG (addr).
7943
7944         * config/avr/avr-protos.h (avr_io_address_p): Declare.
7945         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
7946         Make non-static.  Update all callers.
7947         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
7948         New insns to clear/set/test a single bit in I/O address space.
7949
7950 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7951
7952         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
7953
7954 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
7955
7956         * Makefile.in: Update.
7957         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
7958         builtin_define_std): New.
7959         (c_common_init): Register CPP builtins callback.
7960         * c-common.h (flag_iso, flag_undef): New.
7961         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
7962         * c-lex.c: Don't include target.h.
7963         (cb_register_builtins): Move to c-common.c.
7964         (init_c_lex): Don't register hook here.
7965         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
7966         (cpp_define, cpp_assert): Remove.
7967         * gcc.c (cc1_options): Pass -undef to front end.
7968         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
7969         (TARGET_INITIALIZER): Update.
7970         * target.h (struct cpp_reader): Don't predeclare.
7971         (struct gcc_target): Remove cpp builtin hook.
7972         * tree.c (default_register_cpp_builtins): Remove.
7973 doc:
7974         * tm.texi: Update.
7975
7976 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
7977
7978         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
7979
7980 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7981
7982         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
7983         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
7984
7985 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
7986
7987         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
7988         * config/sparc/libgcc-sparc-glibc.ver: New file.
7989         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
7990         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
7991
7992 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
7993
7994         PR target/6429
7995         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
7996         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
7997         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
7998         base multilibs.
7999         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
8000         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
8001         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
8002         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
8003
8004 2002-05-09  Richard Henderson  <rth@redhat.com>
8005
8006         * config/ia64/ia64.md: Use define_constants for unspec numbers.
8007         * config/ia64/ia64.c: Likewise.
8008
8009 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
8010
8011         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
8012         (save_restore_insns): Likewise.
8013         (mips_expand_prologue, mips_expand_epilogue): Update callers.
8014         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
8015
8016 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
8017
8018         * athlon.md, k6.md, pentium.md, ppro.md): New files.
8019         * i386.md: Move scheduling information into new files.
8020
8021         * i386.md (type attribute): Add "rotate" for rotate insns.
8022         (rotate insns): Set type to "rotate".
8023         (various attributes and function units): Treat rotate like shift.
8024         (pent_pair attribute): Only rotates by one bit position are
8025         pairable.
8026         (sbb insns): Explicitly set pent_pair attribute on a couple
8027         that were missing it.
8028
8029 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
8030
8031         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
8032         make sure that buffer starts on odd word address.
8033         (sh_va_arg): Skip odd fp registers when reading a double precision
8034         value.
8035
8036 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
8037
8038         * tree.h (preserve_data, object_permanent_p, type_precision):
8039         Remove.
8040
8041 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
8042
8043         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
8044         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
8045 doc:
8046         * cpp.texi: Update for removal of obsolete features.
8047
8048 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
8049                           Jeffrey A Law  (law@redhat.com)
8050
8051         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
8052         the DFA interface for Pentium processors.
8053         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
8054         (attr_pent_pair, ix86_pent_find_pair): Remove.
8055         (ix86_sched_reorder_pentium): Remove.
8056         (ix86_sched_reorder): Remove reordering for Pentium.
8057         * i386.md (Pentium scheduling): Rewrite using DFA description.
8058
8059 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
8060
8061         * cfganal.c (can_fallthru): Fix fast path.
8062         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
8063         with edges to the next block.
8064
8065 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
8066                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
8067
8068         * final.c (end_final): Use C trees to output data structures for profiling.
8069
8070         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
8071         (profile.o): New dependency profile.h
8072         (final.o): New dependency profile.h
8073         * profile.h: New file. New global structure profile_info.
8074         * final.h (count_edges_instrumented_now): Declare.
8075         (current_function_cfg_checksum): Declare.
8076         (function_list): New structure.
8077         (functions_head, functions_tail): New static variables.
8078         (end_final): Emits more data, removed some -ax stuff.
8079         (final): Stores function names and chcksums.
8080         * gcov-io.h (__write_gcov_string): New function.
8081         (__read_gcov_string): New function.
8082         * gcov.c (read_profile): New function.
8083         (create_program_flow_graph): Uses read_profile instead of reading
8084         da_file.
8085         (read_files): Removed da_file checking, it's done by read_profile now.
8086         * libgcc2.c (bb_function_info): New structure.
8087         (bb): New field in structure, removed some -ax stuff.
8088         (__bb_exit_func): Changed structure of da_file.
8089         * profile.c (count_edges_instrumented_now): New global variable.
8090         (current_function_cfg_checksum): New global variable.
8091         (max_counter_in_program): New global variable.
8092         (get_exec_counts): New function.
8093         (compute_checksum): New function.
8094         (instrument_edges): Sets count_edges_instrumented_now.
8095         (compute_branch_probabilities): Uses get_exec_counts instead of
8096         reading da_file.
8097         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
8098         (init_branch_prob): Removed da_file checking, done in get_exec_counts
8099         now.
8100         (end_branch_prob): Removed da_file checking, done in get_exec_counts
8101         now.
8102         * gcov.texi: Updated information about gcov file format.
8103
8104 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
8105
8106         * sbitmap.c: Fix formatting.
8107         * scan.c: Likewise.
8108         * scan-decls.c: Likewise.
8109         * sched-deps.c: Likewise.
8110         * sched-ebb.c: Likewise.
8111         * sched-rgn.c: Likewise.
8112         * sched-vis.c: Likewise.
8113         * sdbout.c: Likewise.
8114         * sibcall.c: Likewise.
8115         * simplify-rtx.c: Likewise.
8116         * ssa.c: Likewise.
8117         * ssa-ccp.c: Likewise.
8118         * ssa-dce.c: Likewise.
8119         * stmt.c: Likewise.
8120         * stor-layout.c: Likewise.
8121         * stringpool.c: Likewise.
8122
8123 2002-05-09  David S. Miller  <davem@redhat.com>
8124
8125         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
8126
8127 2002-05-07  David S. Miller  <davem@redhat.com>
8128
8129         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
8130         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
8131         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
8132         library implementation clobbers the output before the inputs
8133         are fully consumed, use stack temporary for the output.
8134
8135 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
8136
8137         * config/netbsd.h (CPP_SPEC): Remove.
8138         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
8139         * config/i386/netbsd.h (CPP_SPEC): Define.
8140         * config/ns32k/netbsd.h (CPP_SPEC): Define.
8141         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
8142         * config/sparc/netbsd.h (CPP_SPEC): Define.
8143         * config/vax/netbsd.h (CPP_SPEC): Define.
8144
8145 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
8146
8147         * read-rtl.c: Fix formatting.
8148         * real.c: Likewise.
8149         * recog.c: Likewise.
8150         * regclass.c: Likewise.
8151         * regmove.c: Likewise.
8152         * reg-stack.c: Likewise.
8153         * reload1.c: Likewise.
8154         * reload.c: Likewise.
8155         * resource.c: Likewise.
8156         * rtlanal.c: Likewise.
8157         * rtl.c: Likewise.
8158         * rtl-error.c: Likewise.
8159
8160 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8161
8162         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
8163         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
8164
8165 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
8166
8167         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
8168         use __SSE2__ macro instead.
8169         * config/i386/xmmintrin.h: Likewise.
8170
8171 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
8172
8173         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
8174         and use it in all invocations of these macros.  Clean up comments.
8175         * rtl.c (rtl_check_failed_flag): Add an argument for the name
8176         of the flag access macro whose check failed.
8177         * doc/rtl.texi (Flags): Document additional flag uses.
8178
8179 2002-05-08  Robert Spier <rspier@pobox.com>
8180             Neil Booth  <neil@daikokuya.demon.co.uk>
8181
8182         PR preprocessor/6521
8183         * cppfiles.c (handle_missing_header): Don't do anything
8184         different for <> includes.
8185 doc:
8186         * cppopts.texi: Update documentation for -MG.
8187
8188 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
8189
8190         * cpplex.c (cpp_interpret_charconst): Truncate as well as
8191         sign-extend.
8192 doc:
8193         * cpp.texi: Clarify multichar charconst valuation.
8194
8195 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
8196
8197         * doc/invoke.texi: Document -mwindiss option.
8198
8199 2002-05-08  Jason Merrill  <jason@redhat.com>
8200
8201         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
8202
8203         * dwarf2out.c (gen_type_die): Abort on broken recursion.
8204
8205         PR c++/6381
8206         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
8207         REAL_CST.
8208
8209 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
8210
8211         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
8212         little-endian multilibs to override arm/thumb multilibs.
8213         Do not build hardware floating point multilibs, nor apcs-26
8214         multilibs for the Thumb.
8215
8216 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
8217
8218         PR c/6569.
8219         * varasm.c (mark_weak): New function.
8220         (merge_weak): Use it.  Do not call declare_weak.
8221         (declare_weak): Use merge_weak.
8222
8223 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
8224
8225         * cse.c (dead_libcall_p): Update counts.
8226         (delete_trivially_dead_insns): Update call of dead_libcall_p.
8227
8228 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
8229
8230         * cfglayout.c (function_tail_eff_head): Rename to ...
8231         (function_footer): ... this one.
8232         (unlink_insn_chain): New functions.
8233         (label_for_bb): Only call block_label and emit debug message.
8234         (record_effective_endpoints): Actually unlink the headers and footers.
8235         (fixup_reorder_cahin): Re-insert the unlinked sequences.
8236         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
8237         * cfglayout.h (struct reorder_block_def): New fields footer/header;
8238         remove eff_head/eff_end.
8239         * rtl.h (set_first_insn): Declare.
8240         * emit-rtl.c (set_first_insn): New function.
8241
8242         * cfglayout.c (fixup_reorder_chain): Dump duplicated
8243         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8244         cfg_layout_duplicate_bb): New global function.
8245         (duplicate_insn_chain): New static function.
8246         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
8247         cfg_layout_duplicate_bb): Declare.
8248         (struct reorder_block_def): Add "original" field.
8249         * emit-rtl.c (emit_copy_of_insn_after): New function.
8250         * rtl.h (emit_copy_of_insn_after): Declare.
8251
8252         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
8253         (fixup_reorder_chain): properly handle edges to exit block.
8254
8255 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8256                                Jan Hubicka  <jh@suse.cz>
8257
8258         * basic-block.h (note_prediction_to_br_prob): declare.
8259         * c-semantics.c: Inlucde predit.h
8260         (expand_stmt): predict GOTO_STMT as not taken.
8261         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
8262         (cleanup_cfg): Do not free tail_recursion_list.
8263         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
8264         (flow_delete_block): Kill predictions past end of basic block.
8265         * output.h (delete_unreachable_blocks): Declare.
8266         * predict.c (predicted_by_p, process_note_predictions,
8267         process_note_prediction, last_block_p): New function.
8268         (estimate_probability): Bypass loop on PRED_CONTINUE;
8269         do not handle noreturn heuristics; kill PRED_RETURN; add
8270         PRED_EARLY_RETURN.
8271         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
8272         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
8273         * predict.h (IS_TAKEN): New constant.
8274         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
8275         * rtl.c (NOTE_INSN_PREDICTION): New.
8276         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
8277         New macro.
8278         (insn_note): add NOTE_INSN_PREDICTION.
8279         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
8280         CFG; free tail_recursion_label_list.
8281         * stmt.c: Include predict.h;
8282         (return_prediction): New.
8283         (expand_value_return): Use it.
8284         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
8285
8286 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
8287
8288         * config/mips/mips.md: Name the unspecs with define_constant.
8289         (*HILO_delay): Rename to 'hilo_delay' (no star).
8290         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
8291         (reload_outdi, reload_outsi): Likewise.
8292
8293 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
8294
8295         * toplev.c: Fix formatting.
8296
8297 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
8298
8299         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
8300         * configure.in (ac_rtlflag_checking): New.
8301         * doc/install.texi (--enable-checking): Document RTL flag checking.
8302
8303 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
8304
8305         * c-common.c (c_common_init): Set options->unsigned_wchar.
8306         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
8307         group target dependencies.
8308         (init_builtins, cpp_handle_option): Update.
8309         * cpplex.c (cpp_interpret_charconst): Update.
8310         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
8311         signed_char to unsigned_char, group target dependencies.
8312         * defaults.h (WCHAR_UNSIGNED): Remove.
8313         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
8314 config:
8315         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
8316         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
8317         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
8318         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
8319         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
8320 doc:
8321         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
8322
8323 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
8324
8325         * fixinc/inclhack.def (windiss_math1): New fix.
8326         (windiss_math2): Likewise.
8327         (windiss_valist): Likewise.
8328         * fixinc/fixincl.x: Regenerated.
8329
8330 2002-05-07  Andreas Jaeger  <aj@suse.de>
8331
8332         * genautomata.c (output_internal_min_issue_delay_func): Add
8333         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
8334         (output_internal_trans_func): Likewise.
8335
8336 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
8337
8338         * pa.c (hppa_profile_hook): Use force_reg to get the address
8339         of the profile hook into an appropriate pseudo register.
8340
8341 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
8342
8343         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
8344         (LINK_START_SPEC): Handle it.
8345         (LINK_OS_SPEC): Likewise.
8346         (CPP_SPEC): Likewise.
8347         (STARTFILE_SPEC): Likewise.
8348         (LIB_SPEC): Likewise.
8349         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
8350         all platforms.
8351         (CRTSAVRES_DEFAULT_SPEC): New macro.
8352         (LIB_WINDISS_SPEC): New macro.
8353         (CPP_OS_WINDISS_SPEC): Likewise.
8354         (STARTFILE_WINDISS_SPEC): Likewise.
8355         (ENDFILE_WINDISS_SPEC): Likewise.
8356         (LINK_START_WINDISS_SPEC): Likewise.
8357         (LINK_OS_WINDISS_SPEC): Likewise.
8358         * config/rs6000/windiss.h: New file.
8359
8360 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
8361
8362         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
8363
8364 2002-05-06  David S. Miller  <davem@redhat.com>
8365
8366         * config/sparc/sparc.md (shift insns): Do not mask off
8367         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
8368         take care of it.
8369
8370 2002-05-06  Richard Henderson  <rth@redhat.com>
8371
8372         PR c++/6212
8373         * expr.c (highest_pow2_factor_for_type): New.
8374         (expand_assignment): Use it.
8375
8376 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
8377
8378         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
8379         unspec_volatile.
8380         ("altivec_mfvscr"): Same.
8381
8382 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
8383
8384         * rtl.h (struct rtx_def): Update comments.
8385         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
8386         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
8387         RTL_FLAG_CHECK macros with list of expected RTL codes.
8388         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
8389         (rtl_check_failed_flag): New.
8390         * reload1.c (reload): Use REG macro before changing rtx to MEM.
8391         (reload_cse_noop_set_p): Check rtx code before using access macro.
8392         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
8393         before using access macro.
8394
8395 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
8396
8397         * doc/rtl.texi (Flags): Update to reflect current usage.
8398
8399 2002-05-06  Roger Sayle  <roger@eyesopen.com>
8400
8401         PR opt/3995
8402         * fold-const.c (sign_bit_p): New function.
8403         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
8404         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
8405         Reapply fold when converting (A & C) == C into (A & C) != 0.
8406         (fold_binary_op_with_conditional_arg): Fix typo in comment.
8407
8408 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
8409
8410         * c-common.c (warn_multichar): New.
8411         (c_common_init): Set CPP's warn_multichar.
8412         * c-common.h (warn_multichar): New.
8413         * c-decl.c (warn_multichar): Remove.
8414         * c-lex.c (lex_charconst): Update.
8415         * c-tree.h (warn_multichar): Remove.
8416         * cppexp.c (eval_token): Sign-extend charconst value.
8417         * cppinit.c (cpp_create_reader): Set warn_multichar.
8418         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
8419         each character.  Update prototype.  Sign-extend the result.
8420         * cpplib.h: Fix conditions.
8421         (struct cpp_options): Add new warning flag.
8422         (cpp_interpret_charconst): Update prototype.
8423 doc:
8424         * cpp.texi: Update documentation.
8425
8426 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
8427
8428         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
8429         Fix typo in usage of allof instead of unit.
8430
8431 2002-05-06  Richard Henderson  <rth@redhat.com>
8432
8433         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
8434         and any jump or call for IN.
8435
8436 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
8437
8438         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
8439         -msse2.
8440         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
8441
8442 2002-05-06  Roger Sayle  <roger@eyesopen.com>
8443
8444         * fold-const.c (lshift-double): Cast the high word to an unsigned
8445         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
8446         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
8447         avoid compiler warning.  (fold): Remove redundant code from
8448         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
8449
8450 2002-05-06  Jeff Law  <law@redhat.com>
8451
8452         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
8453         * pa.c (pa_adjust_cost): Remove all true dependency cost
8454         adjustments.  Also remove support for non-DFA scheduling.
8455         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
8456         to adjust true dependency costs.  Update various comments.
8457         (7100lc, 7200, 7300 scheduling): Simplify by combining the
8458         FP ALU & MPY units into a single unit.
8459
8460 2002-05-06  Catherine Moore  <clm@redhat.com>
8461
8462         * config/v850/v850.c (compute_register_save_size): Make sure
8463         to count all of the registers that will be saved.
8464
8465 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
8466
8467         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
8468
8469 2002-05-06  David S. Miller  <davem@redhat.com>
8470
8471         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
8472         allow result to overlap input operands in memory.
8473
8474 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
8475
8476 doc:
8477         * cpp.texi: Update multichar charconst docs.
8478
8479 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
8480
8481         * cpplex.c (cpp_interpret_charconst): Sign-extend each
8482         character.  Don't ignore excess characters.  Treat
8483         multicharacter character constants as signed.
8484         (cpp_parse_escape): Clarify diagnostic.
8485
8486 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
8487
8488         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
8489         use add instead of shift.
8490         (ashldi3_sp64): Likewise.
8491         (ashlsi3_const1, ashldi3_const1): Remove.
8492         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
8493         * config/sparc/sparc.c (const1_operand): New.
8494
8495 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
8496
8497         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
8498
8499 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
8500
8501         PR target/6561
8502         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
8503
8504 2002-05-05  Richard Henderson  <rth@redhat.com>
8505
8506         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
8507         memory latency adjustments.
8508         (alpha_variable_issue): Remove.
8509         (alpha_use_dfa_pipeline_interface): New.
8510         (alpha_multipass_dfa_lookahead): New.
8511         * config/alpha/alpha.md: Remove define_function_unit scheduling;
8512         include new dfa scheduling.
8513         (attr type): Add none.
8514         (blockage): Use it.
8515         * config/alpha/ev4.md: New.
8516         * config/alpha/ev5.md: New.
8517         * config/alpha/ev6.md: New.
8518
8519 2002-05-05  David S. Miller  <davem@redhat.com>
8520
8521         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
8522
8523 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
8524
8525         * cse.c: Fix formatting.
8526         * emit-rtl.c: Likewise.
8527
8528 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
8529
8530         * genautomata.c (initiate_states): Add additional guard to
8531         initialize `units_array'.
8532
8533 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
8534
8535         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
8536         process_unit_to_form_the_same_automaton_unit_lists,
8537         form_the_same_automaton_unit_lists
8538         check_unit_distributions_to_automata): New prototypes and
8539         functions.
8540         (check_automata): Rename it into `check_automata_insn_issues'.
8541         (unit_decl): New fields `the_same_automaton_unit' and
8542         `the_same_automaton_message_reported_p'.
8543         (unit_decl_t): New typedef.
8544         (the_same_automaton_lists): New gloval variable.
8545         (unit_regexp, unit_set_el, units_array, units_cmp,
8546         output_get_cpu_unit_code_func): Use the typedef.
8547         (evaluate_max_reserv_cycles): Increment
8548         `description->max_insn_reserv_cycles'.
8549         (initiate_states): Don't increment `max_cycles_num'.
8550         (transform_insn_regexps): Move code around transformation of
8551         regexps from `generate'.
8552         (generate): Remove call of `transform_insn_regexps'.
8553         (expand_automata): Call `transform_insn_regexps' and
8554         `check_unit_distributions_to_automata'.  Check errors before
8555         `generate'.
8556
8557         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
8558         automaton `ultrasparc3_1'.
8559
8560 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
8561
8562         * c-common.c (c_common_init): Set up CPP arithmetic.
8563         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
8564         something reasonable for the host.
8565         (sanity_checks): Add checks.
8566         (cpp_read_main_file): Call sanity_checks() from here...
8567         (cpp_post_options): ... not here.
8568         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
8569         * cpplib.h (struct cpp_options): New member int_precision.
8570
8571 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8572
8573         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
8574
8575 2002-05-04  David S. Miller  <davem@redhat.com>
8576
8577         * config/sparc/linux.h, config/sparc/linux64.h
8578         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
8579
8580         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
8581         more RTX codes.
8582         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
8583
8584         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
8585         of SETs.
8586
8587 2002-05-05  Tim Josling  <tej@melbpc.org.au>
8588
8589         * treelang; New directory for new sample language treelang.
8590
8591 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8592
8593         * Makefile.in (c-lex.o): Update.
8594         * c-lex.c: Include target.h.
8595         (cb_register_builtins): New.
8596         (init_c_lex): Set builtins callback.
8597         * c-lex.h (cpp_define, cpp_assert): New prototypes.
8598         * cppinit.c (init_builtins): Use callback, including for
8599         GXX_WEAK.
8600         * cpplib.h (struct cpp_callbacks): New member.
8601         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
8602         (TARGET_INITIALIZER): Update.
8603         * target.h (struct gcc_target): New hook.
8604         * tree.c (default_register_cpp_builtins): New.
8605         * tree.h (default_register_cpp_builtins): New.
8606 doc:
8607         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
8608
8609 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8610
8611         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
8612         (cpp_post_options): Move sanity checks to...
8613         (sanity_checks): New.
8614         * cpplex.c (maybe_read_ucs): Fix prototype.
8615         (parse_string, cpp_parse_escape): Cast for %c format specifier.
8616         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
8617         if necessary.
8618
8619 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
8620
8621         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
8622         builtins.  Use V2DI patterns instead of TI for logical operations.
8623         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
8624         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
8625         (ix86_expand_builtins): Change the pattern used for movntdq.
8626         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
8627         sse2_nandv2di3): New patterns.
8628         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
8629         on operands.
8630         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
8631         (cvtdq2pd): Correct mode on operand 1.
8632         (sse2_umulsidi3): Describe without unspec.
8633         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
8634         machine modes.
8635         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
8636         (ashlv2di3): Likewise, from sse2_ashlv2di3.
8637         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
8638         ashlv4si3, ashlv2di3): Use SImode for shift count.
8639         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
8640         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
8641         New patterns.
8642         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
8643         New typedefs.
8644         (__m128i, __m128d): New macros.
8645         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
8646         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
8647         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
8648         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
8649         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
8650         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
8651         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
8652         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
8653         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
8654         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
8655         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
8656         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
8657         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
8658         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
8659         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
8660         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
8661         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
8662         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
8663         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
8664         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
8665         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
8666         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
8667         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
8668         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
8669         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
8670         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
8671         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
8672         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
8673         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
8674         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
8675         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
8676         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
8677         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
8678         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
8679         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
8680         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
8681         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
8682         functions.
8683         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
8684         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
8685
8686 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
8687
8688         * dwarf2out.c: Fix formatting.
8689         * varasm.c: Likewise.
8690
8691 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
8692
8693         PR c/6543
8694         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
8695         clobber and use result as temporary value.
8696
8697 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
8698
8699         * expr.c (force_operand): Use expand_simple_* to handle more
8700         cases.
8701
8702 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
8703
8704         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
8705         and sign-extension.
8706         (lex_charconst): Update for change in prototype of
8707         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
8708         appropriately.
8709         * cpphash.h (BITS_PER_CPPCHAR_T): New.
8710         * cppinit.c (cpp_create_reader): Initialize them for no
8711         change in semantics.
8712         (cpp_post_options): Add sanity checks.
8713         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
8714         and truncation issues.  Calculate in type cppchar_t.
8715         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
8716         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
8717         run-time dependent precision correctly.  Return whether the
8718         result is signed or not.
8719         * cpplib.c (dequote_string): Use cppchar_t; update.
8720         * cpplib.h (cppchar_signed_t): New.
8721         struct cpp_options): New precision members.
8722         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
8723         * cppexp.c (eval_token): Update.
8724
8725 2002-05-03  David S. Miller  <davem@redhat.com>
8726
8727         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
8728         * config/sparc/sparc.c (sparc_rtx_costs): New function
8729         implementing RTX_COSTS and CONST_COSTS.
8730         * config/sparc/sparc.h (CONST_COSTS): Delete.
8731         (RTX_COSTS_CASES): Define.
8732         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
8733         the work.
8734
8735         * config/sparc/sparc.md (DFA schedulers): Split out...
8736         * config/sparc/cypress.md, config/sparc/hypersparc.md,
8737         config/sparc/sparclet.md, config/sparc/supersparc.md,
8738         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
8739
8740         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
8741         checks on it, always defined for Sparc.
8742
8743         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
8744         Tweak, and add more detailed comments.
8745
8746 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
8747
8748         * Re-apply patch accidentally reverted with
8749         DFA scheduler merge: remove all rules and variables to slurp
8750         source files out of libiberty and rebuild them with HOST_CC.
8751         ($(HOST_PREFIX_1)varray.o): New rule.
8752         (genattrtab rule): Word wrap.
8753
8754 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
8755
8756         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
8757         (CPP_SUBTARGET_SPEC): Define.
8758         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
8759         cpp_subtarget specs.
8760         (CPP_SPEC): Redefine to include %(cpp_subtarget).
8761
8762 2002-05-03  David S. Miller  <davem@redhat.com>
8763
8764         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
8765         * target.h (struct gcc_target): Delete cycle_display member.
8766
8767         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
8768         (rtx_needs_barrier): Delete reference to cycle_display unspec.
8769         (ia64_sched_reorder2): Mention need for cycle display handling
8770         once such notes exist.
8771
8772 2002-05-03  Richard Henderson  <rth@redhat.com>
8773
8774         * real.c (etoasc): Strip most trailing zeros for clarity.
8775         * sched-vis.c: Include real.h.
8776         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
8777         * Makefile.in (sched-vis.o): Add real.h.
8778
8779 2002-05-03  David S. Miller  <davem@redhat.com>
8780
8781         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
8782         no longer needed.
8783
8784 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
8785
8786         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
8787         when we get an out of range literal.
8788         (altivec_expand_ternop_builtin): Same.
8789         (altivec_expand_unop_builtin): Same.
8790         (altivec_expand_builtin): Same, for dss.
8791         (altivec_expand_builtin): Use trees instead of rtl when
8792         determining literal argument validity.
8793
8794 2002-05-03  David S. Miller  <davem@redhat.com>
8795
8796         Delete cycle display scheduling hook.
8797         * config/ia64/ia64.c (ia64_cycle_display,
8798         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
8799         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
8800         and use emit_insn_before instead of ia64_emit_insn_before.
8801         * config/ia64/ia64.md (unspec usage): Delete cycle display.
8802         (cycle_display): Delete insn pattern.
8803         * config/sparc/sparc.md (unspec usage): Delete cycle display.
8804         (cycle_display): Delete insn pattern.
8805         * config/sparc/sparc.c (sparc_cycle_display,
8806         TARGET_SCHED_CYCLE_DISPLAY): Delete.
8807         * doc/md.texi (cycle_display): Don't mention.
8808         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
8809
8810 2002-05-03  Richard Henderson  <rth@redhat.com>
8811
8812         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
8813         * recog.h: Declare them.
8814
8815         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
8816         * config/sparc/sparc.md: Use store_data_bypass_p instead.
8817         * config/sparc/sparc-protos.h: Update.
8818
8819 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
8820
8821         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
8822         -D__arch64__.  Add -D_LP64.
8823         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
8824         from sparc.h.
8825         (CPP_ARCH64_SPEC): Likewise.
8826         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
8827         (NO_BUILTIN_SIZE_TYPE): Undef.
8828
8829 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
8830
8831         * genautomata.c (min_issue_delay_pass_states): Change return type
8832         in the prototype.
8833         (min_issue_delay_pass_states): Change the algorithm.
8834         (min_issue_delay): Set up min_insn_issue_delay for the state.
8835         (output_min_issue_delay_table): Interchange the nested loops and
8836         and initiate min_insn_issue_delay for states.
8837
8838 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
8839
8840         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
8841         jump is simplejump.
8842
8843 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
8844
8845         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
8846         sequence.
8847
8848 2002-05-03  Richard Henderson  <rth@redhat.com>
8849
8850         PR opt/6534
8851         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
8852         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
8853         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
8854         code before JUMP, not EARLIEST.
8855
8856 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
8857
8858         * c-format.c (check_format_info_main): Don't check for presence of
8859         parameter for * width until after operand number has been read,
8860         and only check for it if format parameters are available.
8861         Fixes PR c/6547.
8862
8863 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
8864
8865         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
8866         (LINK_SPEC): Undef before defining.
8867
8868 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
8869
8870         PR preprocessor/6489
8871         * tradcpp.c (fixup_newlines): New.
8872         (main, finclude): Use it.
8873
8874 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
8875
8876         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
8877         * config/mips/mips.c (mips_unique_section): Strip encoding from
8878         decl name.
8879
8880 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
8881
8882         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
8883         mode.
8884
8885 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8886
8887         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
8888         (Specific): Removed buildstats references.
8889         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
8890         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
8891         Accomodate Solaris versions beyond 8.
8892         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
8893         (Specific, *-*-solaris2.8): Removed, obsolete.
8894
8895 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
8896
8897         PR target/6542
8898         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
8899         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
8900         fill leaf_reg_remap with identity.
8901         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
8902
8903 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
8904
8905         * config/h8300/crti.asm: Remove trailing spaces.
8906         * config/h8300/h8300.c: Likewise.
8907         * config/h8300/lib1funcs.asm: Likewise.
8908
8909 2002-05-02  Jason Merrill  <jason@redhat.com>
8910
8911         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
8912         * c-decl.c (c_init_decl_processing): Use it.
8913         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
8914         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
8915         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
8916
8917 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
8918
8919         * regrename.c: Fix formatting.
8920         * tree.c: Likewise.
8921
8922 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
8923
8924         * i386.md (attribute memory): Handle compares properly.
8925
8926 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
8927
8928         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
8929         to none.
8930
8931 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
8932
8933         * function.c: Fix formatting.
8934
8935 2002-05-02  Jan Hubicka  <jh@suse.cz>
8936
8937         * haifa-sched.c (schedule_insn): Print table of instructions and
8938         reservations.
8939         (sched_block): Do not print ready list at verbosity level 1.
8940         * sched-vis.c (print_insn): Make global.
8941         * sched-ebb.c (ebb_print_insn): Rename from...
8942         (print_insn): ... this one.
8943         * sched-int.h (print_insn): Declare
8944
8945 2002-05-02  Richard Henderson  <rth@redhat.com>
8946
8947         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
8948         emitted by cycle_display.
8949
8950 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
8951
8952         * doc/install.texi (*-*-freebsd*): Update to latest status.
8953
8954 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
8955
8956         PR target/6540
8957         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
8958         * config/float-sparc.h: Assume 128-bit long double if
8959         __LONG_DOUBLE_128__ is defined.
8960
8961 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
8962
8963         * genattrtab.c (write_function_unit_info): Add a dummy element
8964         when num_units == 0.
8965
8966 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8967
8968         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
8969         TYPE_MODE (double_type_node) instead of DFmode.
8970
8971 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
8972
8973         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
8974         jumps post reload.
8975         * toplev.c (rest_of_compilation): Revert Richard's patch.
8976
8977 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8978
8979         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
8980
8981 2002-05-02  Catherine Moore  <clm@redhat.com>
8982
8983         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
8984
8985 2002-05-02  Kazu Hirata  <kazu@hxi.com>
8986
8987         * combine.c: Fix comment typos.
8988         * expr.c: Likewise.
8989         * genautomata.c: Likewise.
8990         * stmt.c: Likewise.
8991         * tree.h: Likewise.
8992
8993 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
8994
8995         * doc/install.texi: State GNAT version requirements.
8996
8997 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
8998
8999         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
9000         of the frame pointer or arg pointer register which strict register
9001         checking is not enabled.
9002
9003 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
9004
9005         * gcc.dg/altivec-8.c: New.
9006
9007         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
9008         PRE_INC and PRE_DEC for altivec modes.
9009
9010 2002-05-01  Bruce Korb  <bkorb@gnu.org>
9011
9012         * fixinc/check.tpl(set-writable): make sure the function exists first
9013         * fixinc/inclhack.def(alpha_assert): fix test_text
9014         * fixinc/tests/base/assert.h: add in missing result
9015
9016 2002-05-01  Jeff Law  <law@redhat.com>
9017
9018         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
9019         'T' constraint.
9020
9021 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
9022
9023         * dbxout.c (dbxout_type): Emit size information for range types,
9024         as well, but only when using GDB extensions.
9025
9026 2002-05-01  Richard Henderson  <rth@redhat.com>
9027
9028         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
9029         target-independent gnu binutils date test.
9030
9031 2002-05-01  Richard Henderson  <rth@redhat.com>
9032
9033         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
9034         info before expunging the block.
9035
9036 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
9037
9038         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
9039         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
9040         -M -or -MM is in effect.
9041
9042 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
9043
9044         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
9045         A29k configurations.
9046         * doc/install.texi: Update to match.
9047
9048 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9049
9050         PR bootstrap/6514
9051         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
9052         for duplicates. Always loop over whole list.
9053
9054 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9055
9056         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
9057
9058 2002-05-01      Joel Sherrill <joel@OARcorp.com>
9059
9060         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
9061         support routines.
9062
9063 2002-05-01      Joel Sherrill <joel@OARcorp.com>
9064
9065         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
9066
9067 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
9068
9069         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
9070         (nabs_nopower): Same.
9071         (floatdisf2): New pattern.
9072         (absdi2): Convert to define_insn_and_split.
9073         (nabsdi2): Same.
9074         (trunctfsf2): Same.
9075         (floatditf2): Same.
9076         (floatsitf2): Same.
9077         (fix_trunctfdi2): Same.
9078         (fix_trunctfsi2): Same.
9079
9080 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
9081
9082         * doc/install.texi: Update Texinfo version requirement
9083         documentation.
9084
9085 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
9086
9087         PR target/6512, PR target/5628
9088         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
9089         when memory is not aligned.
9090         (movdf_insn_v9only_vis): Likewise.
9091         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
9092         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
9093         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
9094
9095 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
9096
9097         * gcc.dg/altivec-7.c: New.
9098
9099         * config/rs6000/altivec.h: Cleanup.
9100
9101 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
9102
9103         * doc/invoke.texi (Option Summary): Add -mvrsave=.
9104         (RS/6000 and PowerPC Options): Document -mvrsave=.
9105
9106         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
9107         (rs6000_altivec_vrsave_string): Same.
9108         (rs6000_override_options): Call rs6000_parse_vrsave_option.
9109         (rs6000_parse_vrsave_option): New.
9110         (rs6000_stack_info): Only generate vrsave instructions when
9111         TARGET_ALTIVEC_VRSAVE.
9112
9113         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
9114         (rs6000_altivec_vrsave_string): Define extern.
9115         (rs6000_altivec_vrsave): Same.
9116         (TARGET_ALTIVEC_VRSAVE): New.
9117
9118 2002-04-30  Richard Henderson  <rth@redhat.com>
9119
9120         PR opt/6516
9121         * toplev.c (rest_of_compilation): Don't run cross-jump before
9122         bb-reorder.
9123
9124 2002-04-30  Tom Rix  <trix@redhat.com>
9125
9126         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
9127         check which_alternative.
9128
9129 2002-04-30  Kazu Hirata  <kazu@hxi.com>
9130
9131         * cpplex.c: Fix comment formatting.
9132         * function.c: Likewise.
9133         * integrate.c: Likewise.
9134         * regrename.c: Likewise.
9135         * sibcall.c: Likewise.
9136         * simplify-rtx.c: Likewise.
9137         * tree-inline.c: Likewise.
9138
9139 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9140
9141         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
9142         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
9143         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
9144         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
9145         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
9146         * pa/x-ada: New file.  Define ADA_CFLAGS.
9147
9148 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
9149
9150         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
9151         from MMIX_LAST_REGISTER_FILE_REGNUM.
9152         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
9153         (struct machine_function): New member highest_saved_stack_register
9154         previously static variable in mmix.c.
9155         (MACHINE_DEPENDENT_REORG): Define.
9156         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
9157         (MMIX_OUTPUT_REGNO): New.
9158         (mmix_target_asm_function_prologue): Move calculation of last used
9159         saved-stack-register into...
9160         (mmix_machine_dependent_reorg): New function.  Update to also handle
9161         !TARGET_ABI_GNU.
9162         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
9163         register names, simplify somewhat by new variable regno.
9164         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
9165         register.
9166         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
9167         emitting register names.
9168         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
9169         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
9170         Remove fixed FIXME.
9171         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
9172         Declare.
9173
9174         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
9175
9176 2002-04-30  Richard Henderson  <rth@redhat.com>
9177
9178         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
9179         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
9180         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
9181         emit_tfmode_cvt): New.
9182         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
9183         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
9184         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
9185         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
9186         * config/sparc/sparc-protos.h: Update.
9187
9188 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
9189
9190         * install.texi (Final install): Add to the list of info to include
9191         in a report of a successful bootstrap, and add link to 3.1 list.
9192
9193 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
9194
9195         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
9196         (mode): Add vector modes
9197         (i387): Kill attribute.
9198         (unit): New attribute.
9199         (length_immediate): Grok new types.
9200         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
9201         (modrm): Use "unit".
9202         (memory): Handle MMX/SSE properly.
9203         (scheduling descriptions): Kill uses of fop1.
9204         (sse, mmx, fp patterns): Set type and mode properly.
9205
9206 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
9207
9208         * pa.c (override_options): Default to PA8000 scheduling.
9209         * doc/invoke.texi (HP-PA options): Mention newly added 7300
9210         scheduling parameter.
9211
9212         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
9213         handling of double precision multiplies.
9214
9215         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
9216         fpdiv and fpsqrt instructions.
9217         (7200 & 7300 scheduling): Fix typo in handling of
9218         store-load and store-store penalties.
9219
9220 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9221
9222         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
9223         mips.  Add two missing commas.
9224
9225 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
9226
9227         * doc/contrib.texi (Contributors): Update Paolo Carlini's
9228         and Benjamin Kosnik's entries.
9229
9230 2002-04-29  David S. Miller  <davem@redhat.com>
9231
9232         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
9233         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
9234         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
9235         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9236
9237 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9238
9239         * combine.c (find_split_point): Use gen_int_mode.
9240
9241 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
9242
9243         Merging code from dfa-branch:
9244
9245         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
9246
9247         * genautomata.c (output_reserv_sets): Fix typo.
9248
9249         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
9250
9251         * genautomata.c (output_reserv_sets): Remove
9252         next_cycle_output_flag.
9253
9254         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
9255
9256         * sched-rgn.c (init_ready_list): Make the DFA code handle
9257         USE/CLOBBER insns in the same way as the traditional
9258         scheduler.
9259         (new_ready): Similarly..
9260
9261         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
9262
9263         * haifa-sched.c (schedule_block): Change the DFA state only after
9264         issuing insn.
9265
9266         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
9267
9268         * pa.c (hppa_use_dfa_pipeline_interface): New function.
9269         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
9270         (override_options): Add PA7300 scheduling support.
9271         (pa_adjust_cost): Update various comments.  Properly
9272         handle anti and output dependencies when using the
9273         DFA scheduler.
9274         (pa_issue_rate): Add PA7300 scheduling support.
9275         (pa_can_combine_p): Call extract_insn before calling
9276         constrain_operands (taken from mainline tree).
9277         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
9278         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
9279         descriptions using DFA descriptions.  Add PA7300
9280         scheduling support.
9281
9282         2002-03-30  David S. Miller  <davem@redhat.com>
9283
9284         Add UltraSPARC-III DFA scheduling support.
9285         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
9286         Update FP conditional move on register insn patterns to use it, as
9287         appropriate.
9288         (define_attr cpu): Add ultrasparc3.
9289         (define_attr us3load_type): New, update integer load patterns to
9290         set it, as appropriate.
9291         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
9292         (rest): Add UltraSPARC3 scheduling description.
9293         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
9294         (PROCESSOR_ULTRASPARC3): New.
9295         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
9296         ({ASM,CPP}_CPU_SPEC): Likewise.
9297         (REGISTER_MOVE_COST): Likewise.
9298         (RTX_COSTS): Likewise.
9299         * config/sparc/sparc.c (sparc_override_options,
9300         sparc_initialize_trampoline, sparc64_initialize_trampoline,
9301         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9302         sparc_issue_rate): Likewise.
9303         * config/sparc/sol2.h: Likewise.
9304         * config/sparc/sol2-sld-64.h: Likewise.
9305         * config/sparc/linux64.h: Likewise.
9306
9307         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
9308
9309         * doc/md.texi: Add comments about usage the latency time for the
9310         different dependencies and about case when two or more conditions
9311         in different define_insn_reservations returns TRUE for an insn.
9312
9313         * doc/md.texi: Add reference for automaton based pipeline
9314         description.
9315
9316         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
9317
9318         * doc/passes.texi: Add missed information about genattrtab.
9319
9320         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
9321
9322         * genautomata.c (output_automata_list_transition_code): Check
9323         automata_list on NULL.
9324
9325         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
9326
9327         * genautomata.c (output_insn_code_cases,
9328         output_automata_list_min_issue_delay_code,
9329         output_automata_list_transition_code,
9330         output_automata_list_state_alts_code): Comment the functions.
9331
9332         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
9333
9334         * genautomata.c (automata_list_el_t): New typedef.
9335         (get_free_automata_list_el,free_automata_list_el,
9336         free_automata_list, automata_list_hash, automata_list_eq_p,
9337         initiate_automata_lists, automata_list_start, automata_list_add,
9338         automata_list_finish, finish_automata_lists,
9339         output_insn_code_cases, output_automata_list_min_issue_delay_code,
9340         output_automata_list_transition_code,
9341         output_automata_list_state_alts_code, add_automaton_state,
9342         form_important_insn_automata_lists): New functions and prototypes.
9343         (insn_reserv_decl): Add members important_automata_list and
9344         processed_p.
9345         (ainsn): Add members important_p.
9346         (automata_list_el): New structure.
9347         (first_free_automata_list_el, current_automata_list,
9348         automata_list_table): New global variables.
9349         (create_ainsns): Initiate member important_p.
9350         (output_internal_min_issue_delay_func): Generate the switch and
9351         call output_insn_code_cases.
9352         (output_internal_trans_func, output_internal_state_alts_func):
9353         Ditto.
9354         (generate): Call initiate_automata_lists.
9355         (automaton_states): New global variable.
9356         (expand_automata): Call form_important_insn_automata_lists.
9357         (write_automata): Call finish_automata_lists.
9358
9359         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
9360
9361         * genautomata.c (add_excls, add_presence_absence): Check that
9362         cpu units in the sets belong the same automaton.
9363
9364         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
9365         about that cpu units in the sets belong the same automaton.
9366
9367         * doc/md.texi: Ditto.
9368
9369         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
9370                     Nitin Gupta  <niting@noida.hcltech.com>
9371
9372         * config/sh/sh.c (sh_use_dfa_interface): New function.
9373
9374         (sh_issue_rate): New Function.
9375         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
9376         TARGET_SCHED_ISSUE_RATE: define.
9377
9378         * config/sh/sh.md: Add DFA based pipeline description for SH4.
9379
9380         (define_attr insn_class): New attribute used for DFA
9381          scheduling.
9382         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
9383         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
9384          cmpeqdi_t): Likewise.
9385
9386         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
9387          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
9388          ex_group.
9389         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
9390
9391         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
9392
9393         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
9394         break.
9395
9396         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
9397
9398         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
9399         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
9400         necessary.
9401         (output_dfa_start_func): Initiate new variable insn_codes_length,
9402         (write_automata): Output definition of the new variable.
9403
9404         2001-10-02  David S. Miller  <davem@redhat.com>
9405
9406         * haifa-sched.c (advance_one_cycle): New function.
9407         (schedule_block): Use it.
9408         (queue_to_ready): Use it, and also make sure to advance the DFA
9409         state on all stall cycles, not just those where insn_queue links
9410         are found.
9411
9412         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
9413
9414         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
9415         non-zero if the highest-priority instruction could be scheduled.
9416         (choose_ready): Remove last argument from max_issue call.
9417
9418         2001-09-28  David S. Miller  <davem@redhat.com>
9419
9420         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
9421         ultrasparc and 3 for other multi-issue sparcs.
9422
9423         2001-09-27  David S. Miller  <davem@redhat.com>
9424
9425         * config/sparc/sparc.md (cycle_display): New pattern.
9426         * config/sparc/sparc.c (sparc_cycle_display): New.
9427         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
9428
9429         2001-09-25  David S. Miller  <davem@redhat.com>
9430
9431         Convert all of Sparc scheduling to DFA
9432         * config/sparc/sparc.md: Kill all define_function_unit
9433         directives and replace with DFA equivalent.
9434         * config/sparc/sparc.c (ultrasparc_adjust_cost,
9435         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
9436         ultra_fpmode_conflict_exists, ultra_find_type,
9437         ultra_build_types_avail, ultra_flush_pipeline,
9438         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
9439         ultrasparc_variable_issue, ultrasparc_sched_init,
9440         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
9441         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
9442         ultra_cur_hist, ultra_cycles_elapsed): Kill.
9443         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
9444         ultrasparc_store_bypass_p): New.
9445         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
9446         Declare.
9447
9448         2001-09-24  David S. Miller  <davem@redhat.com>
9449
9450         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
9451         ready->vec[foo] not ready[foo].
9452
9453         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
9454
9455         * doc/md.texi: Correct examples for define_insn_reservations
9456         `mult' and `div'.
9457
9458         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
9459
9460         * genautomata.c (create_automata): Print message about creation of
9461         each automaton.
9462         (generate): Remove printing meease about creation of
9463         automata.
9464
9465         2001-09-05  David S. Miller  <davem@redhat.com>
9466
9467         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
9468         * config/sparc/linux64.h: Likewise.
9469
9470         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
9471
9472         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
9473         schedule_block, sched_init, sched_finish): Add missed calls of
9474         use_dfa_pipeline_interface.
9475
9476         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
9477         Ditto.
9478
9479         * sched-vis.c (get_visual_tbl_length): Ditto.
9480
9481         2001-08-27  Richard Henderson  <rth@redhat.com>
9482
9483         * genattr.c (main): Emit state_t even when not doing scheduling.
9484
9485         2001-08-27  Richard Henderson  <rth@redhat.com>
9486
9487         * genautomata.c (expand_automata): Always create a description.
9488
9489         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
9490
9491         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
9492         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
9493         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
9494         RTL constructions.
9495
9496         * genattr.c (main): New variable num_insn_reservations.  Increase
9497         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
9498         pipeline hazard recognizer interface.
9499
9500         * genattrtab.h: New file.
9501
9502         * genattrtab.c: Include genattrtab.h.
9503         (attr_printf, check_attr_test, make_internal_attr,
9504         make_numeric_value): Move protypes into genattrtab.h.  Define them
9505         as external.
9506         (num_dfa_decls): New global variable.
9507         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
9508         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
9509         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
9510         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
9511
9512         * genautomata.c: New file.
9513
9514         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
9515
9516         * sched-int.h: (curr_state): Add the external definition for
9517         automaton pipeline interface.
9518         (haifa_insn_data): Add comments for members blockage and units.
9519
9520         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9521         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9522         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9523         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9524         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9525         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9526         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
9527         macros.
9528         (TARGET_SCHED): Use the new macros.
9529
9530         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
9531         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
9532         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
9533         dfa_bubble): New members in gcc_target.sched.
9534
9535         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
9536         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
9537         (insn_queue): Redefine it as pointer to array.
9538         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
9539         INSN_QUEUE_SIZE.
9540         (max_insn_queue_index_macro_value): New variable.
9541         (curr_state, dfa_state_size, ready_try): New varaibles for
9542         automaton interface.
9543         (ready_element, ready_remove, max_issue): New function prototypes
9544         for automaton interface.
9545         (choose_ready): New function prototype.
9546         (insn_unit, blockage_range): Add comments.
9547         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
9548         FUNCTION_UNITS_SIZE == 0.
9549         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
9550         actual_hazard, potential_hazard): Add comments.
9551         (insn_cost): Use cost -1 as undefined value.  Remove
9552         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
9553         pipeline interface.
9554         (ready_element, ready_remove): New functions for automaton
9555         interface.
9556         (schedule_insn): Add new code for automaton pipeline interface.
9557         (queue_to_ready): Add new code for automaton pipeline interface.
9558         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
9559         (debug_ready_list): Print newline when the queue is empty.
9560         (max_issue): New function for automaton pipeline interface.
9561         (choose_ready): New function.
9562         (schedule_block): Add new code for automaton pipeline interface.
9563         Print ready list before scheduling each insn.
9564         (sched_init): Add new code for automaton pipeline interface.
9565         Initiate insn cost by -1.
9566         (sched_finish): Free the current automaton state and finalize
9567         automaton pipeline interface.
9568
9569         * sched-rgn.c: Include target.h.
9570         (init_ready_list, new_ready, debug_dependencies): Add new code for
9571         automaton pipeline interface.
9572
9573         * sched-vis.c: Include target.h.
9574         (get_visual_tbl_length): Add code for automaton interface.
9575         (target_units, print_block_visualization):  Add comments.
9576
9577         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
9578         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
9579         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
9580         (getruntime.o, genautomata.o): New entries.
9581         (genattrtab.o): Add new dependency file genattrtab.h.
9582         (genattrtab): Add new dependencies.  Link it with `libm.a'.
9583         (getruntime.o, hashtab.o): New entries for canadian cross.
9584
9585         * doc/md.texi: Description of automaton based model.
9586
9587         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
9588         Add comments.
9589         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9590         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9591         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9592         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9593         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9594         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9595         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
9596         hook descriptions.
9597         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
9598         MAX_DFA_ISSUE_RATE): New macro descriptions.
9599
9600         * doc/contrib.texi: Add dfa based scheduler contribution.
9601
9602         * doc/gcc.texi: Add more information about genattrtab.
9603
9604 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9605
9606         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
9607         adjust_address_nv call.
9608
9609 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
9610
9611         * doc/install.texi (Testing): Provide additional information, and
9612         a stronger encouragement, for running the testsuites.
9613
9614 2002-04-29  DJ Delorie  <dj@redhat.com>
9615
9616         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
9617         given in upper case.
9618
9619 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9620
9621         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
9622         Solaris 2 <widec.h> if missing.
9623         * fixinc/fixincl.x: Regenerate.
9624         * fixinc/tests/base/widec.h: New file.
9625
9626 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
9627
9628         * toplev.c (f_options): Add "profile" switch so that
9629         -fno-profile can be used to disable -p.
9630
9631 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
9632
9633         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
9634         UV2DImode.
9635         * tree.c (build_common_tree_nodes_2): Likewise.
9636         * tree.h (enum tree_index): Likewise.
9637         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
9638
9639         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
9640         entries.
9641         (init_mmx_sse_builtins): Initialize SSE2 builtins.
9642         (ix86_expand_builtin): Add support for SSE2 builtins.
9643         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
9644         (VALID_SSE_REG_MODE): Use it.
9645         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
9646         (enum ix86_builtins): Add SSE2 builtins.
9647         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
9648         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
9649         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
9650         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
9651         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
9652         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
9653         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
9654         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
9655         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
9656         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
9657         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
9658         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
9659         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
9660         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
9661         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
9662         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
9663         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
9664         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
9665         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
9666         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
9667         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
9668         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
9669         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
9670         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
9671         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
9672         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
9673         lfence_insn): New patterns.
9674         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
9675         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
9676
9677 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
9678
9679         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
9680
9681 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9682
9683         * doc/contrib.texi (Contributors): Add Paolo Carlini and
9684         Janis Johnson.
9685         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
9686         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
9687         and CPU instead of cpu.
9688
9689 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
9690
9691         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
9692         variables.
9693         (lang_independent_options): Add -fif-conversion, -fif-conversion2
9694         (rest_of_compilation): Do if conversion only when asked for.
9695         (parse_options_and_default_flags): Set new variables to 1 for -O1
9696         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
9697
9698 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
9699
9700         * i386.c (dbx64_register_map): Fix typo.
9701
9702 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
9703
9704         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
9705         real_one_half, real_bb_freq_max): New static variables.
9706         (debug_profile_bbauxs): Kill.
9707         (process_note_predictions): Kill unused variable.
9708         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
9709         volatile double.
9710         (propagate_freq): Use REAL_ARITHMETICS.
9711         (estimate_bb_frequencies): Likevise; init new static variables.
9712         * Makefile.in (predict.o): Add dependency on real.h
9713
9714 2002-04-28  David S. Miller  <davem@redhat.com>
9715
9716         PR target/6500
9717         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
9718         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
9719         several {reads,writes} instead.
9720         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
9721         Define.
9722
9723 2002-04-27  David S. Miller  <davem@redhat.com>
9724
9725         PR target/6494
9726         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
9727         of the stack bias.
9728
9729         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
9730         including signal.h and sys/ucontext.h, not needed.
9731
9732 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
9733
9734         * varasm.c (output_constant_def): Correct test for not calling
9735         ENCODE_SECTION_INFO for INTEGER_CST.
9736
9737 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9738
9739         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
9740         keep most cases as function eval_token.
9741         (eval_token): New function.
9742         (_cpp_parse_expr): Read token here for improved diagnostics.
9743         Don't use op_as_text.  Detect bad ':' here.
9744         (reduce): Don't detect bad ':' here.
9745         (op_as_text): Remove.
9746         * cpphash.h (_cpp_test_assertion): Change prototype.
9747         * cpplib.c (_cpp_test_assertion): Change prototype.
9748
9749 2002-04-28  Richard Henderson  <rth@redhat.com>
9750
9751         PR c/5154
9752         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
9753         (ggc_mark_rtx_children): New.
9754
9755 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
9756
9757         PR target/6496
9758         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
9759         after call peepholes for UltraSPARC.
9760         (call + jump 64-bit peepholes): Remove.
9761
9762 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9763
9764         PR c/6497
9765         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
9766         result as temporary value.
9767
9768 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
9769
9770         PR c++/6396
9771         * toplev.c (rest_of_compilation): Only run regrename and copy
9772         propagation if optimizing.
9773
9774 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
9775
9776         PR optimization/6475
9777         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
9778         register of REGNO_DECL (i).
9779         * Makefile.in (reload1.o): Add $(TREE_H).
9780
9781 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
9782
9783         * cppexp.c (lex): Update to use state.skip_eval.
9784         (struct op): Remove prio and flags members.
9785         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
9786         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
9787         (LEFT_ASSOC): New macro.
9788         (optab): New table of operator priorities and flags.
9789         (SHIFT): Update.
9790         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
9791         malloc-ed parser stack.
9792         (reduce): New; reduce the operator stack.
9793         (_cpp_expand_op_stack): Expand the operator stack as necessary.
9794         * cpphash.h (struct op): Predeclare.
9795         (struct cpp_reader): New members op_stack, op_limit.
9796         (struct lexer_state): New member skip_eval.
9797         (_cpp_parse_expr): Update.
9798         (_cpp_expand_op_stack): New.
9799         * cpplib.c (do_if): Update.
9800         * cppinit.c (cpp_create_reader): Create op stack.
9801         (cpp_destroy): And destroy it.
9802         * cpplib.h (CPP_LAST_CPP_OP): Correct.
9803         (TTYPE_TABLE): Correct.
9804
9805 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9806
9807         PR c/6343
9808         * c-decl.c (duplicate_decls): Call merge_weak.
9809         * c-pragma.c (apply_pragma_weak): Warn about misuse.
9810         * output.h (merge_weak): Prototype merge_weak.
9811         * varasm.c (merge_weak): New function.
9812         (declare_weak): Make sure we don't give an error on VAR_DECLs.
9813         Mark RTL with SYMBOL_REF_WEAK.
9814
9815 2002-04-27  Kurt Garloff <garloff@suse.de>
9816
9817         * tree-inline.c (inlinable_function_p): Improve heuristics
9818         by using a smoother function to cut down allowable inlinable size.
9819         * param.def: Add parameters max-inline-insns-single,
9820         max-inline-slope, min-inline-insns that determine the exact
9821         shape of the above function.
9822         * param.h: Likewise.
9823
9824 2002-04-26  Richard Henderson  <rth@redhat.com>
9825
9826         * c-parse.in (malloced_yyss, malloced_yyvs): New.
9827         (yyoverflow): Re-add.  Set them.
9828         (free_parser_stacks): New.
9829         * c-common.h: Declare it.
9830         * c-lex.c (c_common_parse_file): Call it.
9831
9832 2002-04-26  Richard Henderson  <rth@redhat.com>
9833
9834         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
9835         for fallthru search.
9836
9837 2002-04-26  Eric Christopher  <echristo@redhat.com>
9838
9839         PR optimization/3700
9840         * config/mips/mips.c (mips_issue_rate): Define.  New function.
9841         (TARGET_SCHED_ISSUE_RATE): Use.
9842
9843 2002-04-25  David S. Miller  <davem@redhat.com>
9844
9845         PR target/6422
9846         * reorg.c (optimize_skip): Do not allow exception causing
9847         instructions to be considered for delay slots.
9848         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
9849         (relax_delay_slots): Do not try to consider exception causing
9850         instructions as redundant.
9851
9852 2002-04-26  Richard Henderson  <rth@redhat.com>
9853
9854         PR c/5225
9855         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
9856
9857 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
9858
9859         PR bootstrap/6445
9860         * config/i386/i386.md (untyped_call): Return the value in a float
9861         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
9862         TARGET_80387.
9863
9864 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
9865
9866         * tree.c (tree_int_cst_lt): Compare constants whose types differ
9867         in unsigned-ness correctly.
9868
9869 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9870
9871         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
9872         portable runtime model.
9873
9874 2002-04-26  Richard Henderson  <rth@redhat.com>
9875
9876         * c-parse.in (yyoverflow): Revert.
9877
9878 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
9879             Richard Henderson  <rth@redhat.com>
9880
9881         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
9882         result as temporary value.
9883
9884 2002-04-26  Richard Henderson  <rth@redhat.com>
9885
9886         PR c/3581
9887         * c-common.c (fix_string_type): Split out of ...
9888         (combine_strings): ... here.  Take a varray, not a tree list.
9889         (c_expand_builtin_printf): Use fix_string_type.
9890         * c-common.h: Update decls.
9891         * c-parse.in (string): Remove.  Update all uses to use STRING
9892         instead, and not call combine_strings.
9893         (yylexstring): New.
9894         (_yylex): Use it.
9895         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
9896         (build_asm_stmt): Likewise.
9897         * objc/objc-act.c (my_build_string): Use fix_string_type.
9898         (build_objc_string_object): Build varray for combine_strings.
9899
9900 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
9901
9902         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
9903         x86-64.
9904
9905 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
9906
9907         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
9908         (HAVE_NO_R_OPERAND): Remove.
9909         (HAVE_VALUE): Remove.
9910         (op_to_prio): Update.
9911         (UNARY): Don't alter flags.
9912         (_cpp_parse_expr): want_value used to indicate whether
9913         a number or unary operator is expected next.  Distinguish
9914         unary and binary +/-.
9915         (op_as_text): Update for unary operators.
9916
9917 2002-04-25  Richard Henderson  <rth@redhat.com>
9918
9919         PR c/2161
9920         * c-parse.in (yyoverflow): New.
9921
9922 2002-04-25  Richard Henderson  <rth@redhat.com>
9923
9924         PR c/2098
9925         * c-common.c (shorten_compare): Simplfy conditions leading to
9926         the generation of a warning.
9927
9928 2002-04-25  Richard Henderson  <rth@redhat.com>
9929
9930         PR c/2035
9931         * expmed.c (extract_bit_field): Fall through to generic code rather
9932         than aborting on subreg special case.
9933
9934 2002-04-25  David S. Miller  <davem@redhat.com>
9935
9936         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
9937         for DECL being NULL.
9938
9939 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
9940
9941         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
9942
9943 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
9944
9945         * c-decl.c (grokdeclarator): Remove outdated ??? note
9946         on invalid declaration of flexible array members.
9947
9948 2002-04-25  Richard Henderson  <rth@redhat.com>
9949
9950         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
9951
9952 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
9953
9954         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
9955         needed by the compiler, even if they are used as global regs.
9956
9957 2002-04-25  Matt Hiller  <hiller@redhat.com>
9958
9959         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
9960         functions.
9961         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
9962         of the corresponding functions.
9963         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
9964         New prototypes.
9965
9966 2002-04-25  Matt Hiller  <hiller@redhat.com>
9967
9968         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
9969
9970         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
9971         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
9972         registers, adjust comment accordingly.
9973         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
9974         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
9975         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
9976         for coprocessor registers.
9977         (ADDITIONAL_REGISTER_NAMES): Include
9978         ALL_COP_ADDITIONAL_REGISTER_NAMES.
9979
9980         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
9981         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
9982         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
9983         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
9984         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
9985
9986         (mips_char_to_class): Adjust comment to include coprocessor
9987         constraint letters.
9988
9989         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
9990         New functions.
9991         (mips_reg_names, mips_regno_to_class): Include coprocessor
9992         information.
9993         (mips_sw_reg_names): Ditto, make non-static.
9994         (mips_move_1word): Handle moves to and from coprocessor registers.
9995         (mips_move_2words): Handle moves to and from coprocessor
9996         registers.
9997         (mips_class_max_nregs, mips_register_move_cost): Handle
9998         coprocessor register classes.
9999         (override_options): Initialize mips_char_to_class and
10000         mips_hard_regno_mode_ok properly for coprocessor registers.
10001
10002         * config/mips/mips.md (movdi_internal, movdi_internal2,
10003         movsi_internal1, movsi_internal2): Add constraint-sets for
10004         coprocessor registers.
10005         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
10006         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
10007         isn't mips.
10008         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
10009         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
10010         isn't mips.
10011         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
10012         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
10013         isn't mips.
10014         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
10015         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
10016         isn't mips.
10017
10018         * doc/tm.texi: Document feature.
10019
10020 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10021
10022         * integrate.c (function_attribute_inlinable_p): Simplify.
10023         Check the table pointer is not NULL.
10024
10025 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
10026
10027         * doc/c-tree.texi: Fix typo in introduction.
10028
10029 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10030
10031         * c-common.h (c_common_parse_file): Update.
10032         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
10033         * c-lex.c (YYDEBUG): Get from c-lex.h.
10034         (c_common_parse_file): Update.
10035         * c-lex.h (YYDEBUG, yydebug): New.
10036         * c-parse.in (YYDEBUG): Get from c-lex.h.
10037         (c_set_yydebug): Remove.
10038         * c-tree.h (c_set_yydebug): Remove.
10039         * langhooks-def.h (lhd_do_nothing_i): New.
10040         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
10041         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
10042         * langhooks.c  (lhd_do_nothing_i): New.
10043         (lhd_set_yydebug): Remove.
10044         * langhooks.h (struct lang_hooks): Update.
10045         * toplev.c (set_yydebug): New.
10046         (compile_file): Update call to parse_file hook.
10047         (decode_d_option): Update.
10048 objc:
10049         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
10050
10051 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
10052
10053         * loop.c (load_mems): Don't change the interface of called functions.
10054
10055         * calls.c (expand_call): Take current_function_pretend_args_size
10056         into account when setting argblock for sibcalls.
10057
10058 2002-04-24  Matt Hiller  <hiller@redhat.com>
10059
10060         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
10061         * c-lex.c: Ditto.
10062
10063         * cpplex.c (skip_line_comment): Process comment one multibyte
10064         character at a time rather than one char at a time, if
10065         appropriate.
10066         (parse_string): Process string one multibyte character at a time
10067         rather than one char at a time, if appropriate.
10068         * c-lex.c (lex_string): Lex and copy multibyte strings
10069         appropriately.
10070         * cpplib.h (cppchar_t): Change to unsigned.
10071
10072 2002-04-24  Richard Henderson  <rth@redhat.com>
10073
10074         PR c/3467
10075         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
10076         for c99.
10077
10078 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
10079
10080         * sh.c (sh_va_arg): If argument was passed by reference,
10081         dereference the pointer.
10082
10083         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10084
10085         * sh.md (divsi3_i4_media): Use match_operand for input values
10086         rather than hard registers.
10087         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
10088         unnecessarily through hard registers.  Keep copies of pseudo
10089         registers outside of the libcall sequence.
10090
10091         * sh.md (casesi_shift_media): Add modes.
10092
10093         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
10094         values in memory.
10095
10096 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10097
10098         * attribs.c (c_common_attribute_table): Move table and handlers
10099         to c-common.c.
10100         (format_attribute_table, lang_attribute_table,
10101         lang_attribute_common): Remove.
10102         (init_attributes): Replace NULL pointers with pointers to the
10103         empty table.
10104         (handle_packed_attribute, handle_nocommon_attribute,
10105         handle_common_attribute, handle_noreturn_attribute,
10106         handle_noinline_attribute, handle_always_inline_attribute,
10107         handle_used_attribute, handle_unused_attribute,
10108         handle_const_attribute, handle_transparent_union_attribute,
10109         handle_constructor_attribute, handle_destructor_attribute,
10110         handle_mode_attribute, handle_section_attribute,
10111         handle_aligned_attribute, handle_weak_attribute,
10112         handle_alias_attribute, handle_visibility_attribute,
10113         handle_no_instrument_function_attribute, handle_malloc_attribute,
10114         handle_no_limit_stack_attribute, handle_pure_attribute,
10115         handle_deprecated_attribute, handle_vector_size_attribute,
10116         vector_size_helper): Move to c-common.c.
10117         * c-common.c (c_common_attribute_table,
10118         handle_packed_attribute, handle_nocommon_attribute,
10119         handle_common_attribute, handle_noreturn_attribute,
10120         handle_noinline_attribute, handle_always_inline_attribute,
10121         handle_used_attribute, handle_unused_attribute,
10122         handle_const_attribute, handle_transparent_union_attribute,
10123         handle_constructor_attribute, handle_destructor_attribute,
10124         handle_mode_attribute, handle_section_attribute,
10125         handle_aligned_attribute, handle_weak_attribute,
10126         handle_alias_attribute, handle_visibility_attribute,
10127         handle_no_instrument_function_attribute, handle_malloc_attribute,
10128         handle_no_limit_stack_attribute, handle_pure_attribute,
10129         handle_deprecated_attribute, handle_vector_size_attribute,
10130         vector_size_helper): Move from attribs.c.
10131         * c-common.h (c_common_attribute_table,
10132         c_common_format_attribute_table): New.
10133         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
10134         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
10135         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
10136         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
10137         (LANG_HOOKS_INITIALIZER): Update.
10138         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
10139         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
10140         * target.h: Update comment.
10141         * tree.c (default_target_attribute_table): Remove.
10142         * tree.h (default_target_attribute_table, format_attribute_table,
10143         lang_attribute_table, lang_attribute_common): Remove.
10144 objc:
10145         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
10146         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
10147
10148 2002-04-24  Jason Merrill  <jason@redhat.com>
10149
10150         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
10151         * dwarf2out.c (dwarf_attr_name): Support it.
10152         (gen_array_type_die): Emit it.
10153         (lookup_type_die): No special handling for VECTOR_TYPE.
10154         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
10155
10156 2002-04-24  Richard Henderson  <rth@redhat.com>
10157
10158         * config/mips/mips.md (movdi_usd): Renumber.
10159
10160 2002-04-24  David S. Miller  <davem@redhat.com>
10161
10162         PR target/6420
10163         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
10164         32-bit Sparc and current_function_returns_struct is true.
10165
10166 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
10167
10168         * loop.c (canonicalize_condition): Use gen_int_mode.
10169
10170 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
10171
10172         * config/rs6000/altivec.h: Cleanup file.  Add non individual
10173         variants.
10174         (vec_vaddubm): New.
10175         (vec_vadduhm): New.
10176         (vec_vadduwm): New.
10177         (vec_vaddfp): New.
10178         (vec_vaddcuw): New.
10179         (vec_vaddubs): New.
10180         (vec_vaddsbs): New.
10181         (vec_vadduhs): New.
10182         (vec_vadduws): New.
10183         (vec_vaddsws): New.
10184         (vec_vand): New.
10185         (vec_vandc): New.
10186         (vec_vavgub): New.
10187         (vec_vavgsb): New.
10188         (vec_vavguh): New.
10189         (vec_vavgsh): New.
10190         (vec_vavguw): New.
10191         (vec_vavgsw): New.
10192         (vec_vrfip): New.
10193         (vec_vcmpbfp): New.
10194         (vec_vcmpequb): New.
10195         (vec_vcmpequh): New.
10196         (vec_vcmpequw): New.
10197         (vec_vcmpeqfp): New.
10198         (vec_vcmpgefp): New.
10199         (vec_vcmpgtub): New.
10200         (vec_vcmpgtsb): New.
10201         (vec_vcmpgtuh): New.
10202         (vec_vcmpgtsh): New.
10203         (vec_vcmpgtuw): New.
10204         (vec_vcmpgtsw): New.
10205         (vec_vcmpgtfp): New.
10206         (vec_vcmpgefp): New.
10207         (vec_vcfux): New.
10208         (vec_vcfsx): New.
10209         (vec_vctsxs): New.
10210         (vec_vctuxs): New.
10211         (vec_vexptefp): New.
10212         (vec_vrfim): New.
10213         (vec_lvx): New.
10214         (vec_lvebx): New.
10215         (vec_lvehx): New.
10216         (vec_lde): Add vector float variant.
10217         (vec_lvewx): New.
10218         (vec_lvxl): New.
10219         (vec_vlogefp): New.
10220         (vec_vmaddfp): New.
10221         (vec_vmhaddshs): New.
10222         (vec_vmaxub): New.
10223         (vec_vmaxsb): New.
10224         (vec_vmaxuh): New.
10225         (vec_vmaxsh): New.
10226         (vec_vmaxuw): New.
10227         (vec_vmaxsw): New.
10228         (vec_vmaxsw): New.
10229         (vec_vmaxfp): New.
10230         (vec_vmrghb): New.
10231         (vec_vmrghh): New.
10232         (vec_vmrghw): New.
10233         (vec_vmrglb): New.
10234         (vec_vmrglh): New.
10235         (vec_vmrglw): New.
10236         (vec_vminub): New.
10237         (vec_vminsb): New.
10238         (vec_vminuh): New.
10239         (vec_vminsh): New.
10240         (vec_vminuw): New.
10241         (vec_vminsw): New.
10242         (vec_vminfp): New.
10243         (vec_vmladduhm): New.
10244         (vec_vmhraddshs): New.
10245         (vec_msumubm): New.
10246         (vec_vmsummbm): New.
10247         (vec_vmsumuhm): New.
10248         (vec_vmsumshm): New.
10249         (vec_vmsumuhs): New.
10250         (vec_vmsumshs): New.
10251         (vec_vmuleub): New.
10252         (vec_vmulesb): New.
10253         (vec_vmuleuh): New.
10254         (vec_vmulesh): New.
10255         (vec_vmuloub): New.
10256         (vec_mulosb): New.
10257         (vec_vmulouh): New.
10258         (vec_vmulosh): New.
10259         (vec_vnmsubfp): New.
10260         (vec_vnor): New.
10261         (vec_vor): New.
10262         (vec_vpkuhum): New.
10263         (vec_vpkuwum): New.
10264         (vec_vpkpx): New.
10265         (vec_vpkuhus): New.
10266         (vec_vpkshss): New.
10267         (vec_vpkuwus): New.
10268         (vec_vpkswss): New.
10269         (vec_vpkshus): New.
10270         (vec_vpkswus): New.
10271         (vec_vperm): New.
10272         (vec_vrefp): New.
10273         (vec_vrlb): New.
10274         (vec_vrlh): New.
10275         (vec_vrlw): New.
10276         (vec_vrfin): New.
10277         (vec_vrsqrtefp): New.
10278         (vec_vsel): New.
10279         (vec_vslb): New.
10280         (vec_vslh): New.
10281         (vec_vslw): New.
10282         (vec_vsldoi): New.
10283         (vec_vsl): New.
10284         (vec_vslo): New.
10285         (vec_vspltb): New.
10286         (vec_vsplth): New.
10287         (vec_vspltw): New.
10288         (vec_vspltisb): New.
10289         (vec_vspltish): New.
10290         (vec_vspltisw): New.
10291         (vec_vsrb): New.
10292         (vec_vsrh): New.
10293         (vec_vsrw): New.
10294         (vec_vsrab): New.
10295         (vec_vsrah): New.
10296         (vec_vsraw): New.
10297         (vec_vsr): New.
10298         (vec_vsro): New.
10299         (vec_stvx): New.
10300         (vec_stvebx): New.
10301         (vec_stvehx): New.
10302         (vec_stvewx): New.
10303         (vec_stvxl): New.
10304         (vec_vsububm): New.
10305         (vec_vsubuhm): New.
10306         (vec_vsubuwm): New.
10307         (vec_vsubfp): New.
10308         (vec_vsubcuw): New.
10309         (vec_vsububs): New.
10310         (vec_vsubsbs): New.
10311         (vec_vsubuhs): New.
10312         (vec_vsubshs): New.
10313         (vec_vsubuws): New.
10314         (vec_vsubsws): New.
10315         (vec_vsum4ubs): New.
10316         (vec_vsum4sbs): New.
10317         (vec_vsum4shs): New.
10318         (vec_vsum2sws): New.
10319         (vec_vsumsws): New.
10320         (vec_vrfiz): New.
10321         (vec_vupkhsb): New.
10322         (vec_vupkhpx): New.
10323         (vec_vupkhsh): New.
10324         (vec_vupklsb): New.
10325         (vec_vupklpx): New.
10326         (vec_vupklsh): New.
10327         (vec_vxor): New.
10328
10329 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
10330
10331         PR c/5430
10332         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
10333         added literals from substracted literals.
10334         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
10335         (fold) [associate]: Preserve MINUS_EXPR if needed.
10336
10337 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
10338
10339         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
10340         are obsoleted.
10341
10342 2002-04-23  Tom Tromey  <tromey@redhat.com>
10343
10344         * gcc.c: Added --resource.  For PR java/6314.
10345
10346 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
10347
10348         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
10349         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
10350         these libraries.
10351
10352 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
10353
10354         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
10355
10356 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
10357
10358         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
10359         workaround.
10360         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
10361         (ix86_expand_clrstr): Fix typo.
10362         * loop.c (gen_load_of_final_value): New.
10363         (loop_givs_rescan, strength_reduce, check_dbra_loop):
10364         Use it.
10365
10366 2002-04-23  Roger Sayle  <roger@eyesopen.com>
10367
10368         * builtins.c (builtin_memset_gen_str): New function.
10369         (expand_builtin_memset): Optimize the case of constant length, but
10370         unknown value.
10371
10372 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
10373
10374         * config/rs6000/altivec.h (vec_step): Remove extraneous
10375         parentheses.
10376         (vec_ctu): Cast return.
10377
10378 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
10379
10380         PR target/6413
10381         * function.h: (struct function): Add profile_label_no field.
10382         (current_function_profile_label_no): Define.
10383         * function.c: (profile_label_no): New static var.
10384         (expand_function_start): Increment it, and copy to
10385         current_function_profile_label_no.
10386         * output.h (profile_label_no): Delete.
10387         * final.c (profile_label_no): Delete.
10388         (profile_function): Use current_function_profile_label_no.
10389         (final_end_function): Don't increment profile_label_no here.
10390         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
10391         profile_label_no with current_function_profile_label_no.
10392         * config/pa/pa.c (current_function_number): Delete.
10393         (pa_output_function_prologue): Don't output profile label here.
10394         (hppa_profile_hook): Use label_no param rather than
10395         current_function_number.
10396         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
10397         * config/pa/pa.h: .. here.
10398         (FUNCTION_PROFILER): Output profile label here.
10399
10400 2002-04-22  Eric Christopher  <echristo@redhat.com>
10401
10402         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
10403         patch of 2002-04-09 due to binutils issues.
10404         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
10405
10406 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
10407
10408         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
10409         constraint to 'o' for m=r and r=m alternatives.
10410         ("*movv8hi_internal1"): Same.
10411         ("*movv16qi_internal1"): Same.
10412         ("*movv4sf_internal1"): Same.
10413
10414 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
10415
10416         * rtl.h (RTX_FLAG): New macro.
10417         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
10418         * final.c (alter_subreg): Use macro to access rtx flag.
10419         * integrate.c (copy_rtx_and_substitute): Use new access macro.
10420         * print-rtl.c (print_rtx): Use new access macro.
10421
10422         * cse.c (insert): Check rtx code before accessing flag.
10423
10424         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
10425         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
10426         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
10427         convert_const_symbol_ref, make_canonical, make_alternative_compare,
10428         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
10429         simplify_test_exp, optimize_attrs, simplify_by_exploding,
10430         find_and_mark_used_attributes, unmark_used_attributes,
10431         add_values_to_cover, simplify_with_current_value,
10432         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
10433         copy_rtx_unchanging, main): Use new access macros.
10434
10435 2002-04-22  Tom Rix  <trix@redhat.com>
10436
10437         * expmed.c (init_expmed): Generate shifted constant once.
10438
10439 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
10440
10441         * c-lex.c (lex_charconst): Call convert to get constant in
10442         proper type; don't just smash the type field.
10443         Fixes PR c/6300.
10444
10445         * config.gcc: Add list of obsolete configurations.  Disallow
10446         building these without --enable-obsolete.
10447         * doc/install.texi: Document --enable-obsolete and obsoletion
10448         policy.  Mention obsoletion of individual targets in
10449         appropriate places.
10450
10451 2002-04-22  Richard Henderson  <rth@redhat.com>
10452
10453         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
10454
10455 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
10456
10457         PR f/6138.
10458         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
10459         (walk_fixup_memory_subreg): Likewise.
10460         (fixup_var_refs_insn): Adjust accordingly.
10461         (fixup_var_refs_1): Likewise.
10462
10463 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
10464
10465         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
10466         LIBPATH_ARCH64_SPEC): Define.
10467         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
10468         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
10469         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
10470         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
10471
10472 2002-04-22      Joel Sherrill <joel@OARcorp.com>
10473
10474         * gthr-rtems.h: Correct prototypes to remove warnings.
10475
10476 2002-04-22  Richard Henderson  <rth@redhat.com>
10477
10478         PR c/6344
10479         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
10480
10481         * gcse.c (free_insn_expr_list_list): New.
10482         (clear_modify_mem_tables): Use it.  Fix bit set usage.
10483         (canon_list_insert): Use EXPR_LISTs for expressions.
10484         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
10485
10486 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10487
10488         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
10489         file change and include code to _cpp_pop_buffer.
10490         * cpphash.h (struct pending_option): Predeclare.
10491         (struct cpp_reader): New member next_include_file.
10492         (_cpp_pop_file_buffer): Update.
10493         (_cpp_push_next_buffer): Update, rename.
10494         * cppinit.c (cpp_destroy): Free include chain and pending here.
10495         (cpp_finish_options): Simplify.
10496         (_cpp_push_next_buffer): Rename and clean up.
10497         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
10498         Clarify.
10499         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
10500
10501 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
10502
10503         * config/rs6000/altivec.h (vec_xor): Add variant for both args
10504         being vector signed int.
10505         (vec_andc): Same.
10506         (vec_xor): Add variant for both args being vector signed char.
10507         Remove redundant variant.
10508         (vec_andc): Same.
10509
10510 2002-04-21  David S. Miller  <davem@redhat.com>
10511
10512         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
10513         compare mode in output RTL.
10514
10515 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
10516
10517         * config/rs6000/rs6000.c (rs6000_override_options): Correct
10518         style and formatting of previous patch.
10519
10520 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
10521
10522         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
10523         flag_pic for ABI_AIX.
10524
10525 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10526
10527         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
10528         * cppfiles.c (read_include_file): Similarly.
10529         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
10530         uxstrdup ustrchr, ufputs): Similarly.
10531         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
10532         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
10533         cpp_ideq, parse_identifier, parse_number): Similarly.
10534         * cpplib.c (struct directive, dequote_string, D, run_directive,
10535         cpp_push_buffer): Similarly.
10536         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
10537         _cpp_create_definition, check_trad_stringification,
10538         cpp_macro_definition): Similarly.
10539
10540 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10541
10542         * cppmacro.c (funlike_invocation_p): Don't step back
10543         over CPP_EOF.
10544
10545 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
10546
10547         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
10548         labelno.
10549
10550 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
10551
10552         * doc/invoke.texi: Remove Chill references.
10553         * doc/gcc.texi: Update last modified date.
10554
10555 2002-04-20  Kazu Hirata  <kazu@hxi.com>
10556
10557         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
10558         push and pop.  Replace add.l with add.w.
10559
10560 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10561
10562         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
10563         multiply instructions for H8/300H case.
10564
10565 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10566
10567         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
10568         Bum three instructions from each routine.
10569
10570 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
10571
10572         * Makefile.in: Update.
10573         * decl.c (push_c_function_context, pop_c_function_context,
10574         mark_c_function_context): Rename for consistency.
10575         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
10576         * c-tree.h (push_c_function_context, pop_c_function_context,
10577         mark_c_function_context): Rename for consistency.
10578         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10579         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10580         * function.c (init_lang_status, save_lang_status,
10581         restore_lang_status, mark_lang_status, free_lang_status):
10582         Move to langhooks.h.
10583         (push_function_context_to, pop_function_context_from,
10584         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
10585         Update.
10586         * function.h (init_lang_status, save_lang_status,
10587         restore_lang_status, mark_lang_status, free_lang_status):
10588         Move to langhooks.h.
10589         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
10590         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
10591         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
10592         LANG_HOOKS_FUNCTION_INITIALIZER): New.
10593         (LANG_HOOKS_INITIALIZER): Update.
10594         (lhd_do_nothing_f): New.
10595         * langhooks.h (struct lang_hooks_for_functions): New.
10596         (struct lang_hooks): New hooks.
10597         * langhooks.c (lhd_do_nothing_f): New.
10598 objc:
10599         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10600         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
10601
10602 2002-04-19  David S. Miller  <davem@redhat.com>
10603
10604         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
10605         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
10606
10607 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
10608
10609         PR optimization/3756
10610         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
10611         x = ((int) y < 0) ? cst1 : cst2.
10612
10613 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
10614
10615         PR c/6358
10616         * function.c: Reapply patch for c/6358.
10617         (expand_function_end): Copy decl_rtl's mode, not
10618         current_function_return_rtx mode.
10619
10620 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
10621
10622         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
10623         targets.
10624
10625 2002-04-19  Tom Tromey  <tromey@redhat.com>
10626
10627         * doc/install.texi (Specific): Update status of Solaris 2.8.
10628         For PR libgcj/6158.
10629
10630 2002-04-19  Andreas Schwab  <schwab@suse.de>
10631
10632         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
10633         (PUT_REAL): Restore old definition.
10634
10635 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
10636             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10637
10638         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
10639         binutils 2.11.2 and higher generate smaller binaries than Sun's
10640         native tools.
10641
10642 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
10643
10644         PR c++/6352
10645         * toplev.c (rest_of_compilation): Do not defer functions for which
10646         TREE_SYMBOL_REFERENCED has already been set.
10647
10648 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
10649
10650         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
10651         alternative.
10652
10653 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
10654
10655         * builtins.c: Include langhooks.h.
10656         (lang_type_promotes_to): Remove.
10657         (expand_builtin_va_arg): Use new hook.
10658         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
10659         (simple_type_promotes_to): Move to c-typeck.c.
10660         * c-common.h (simple_type_promotes_to): Remove.
10661         * c-decl.c (duplicate_decls, grokdeclarator): Update.
10662         * c-format.c: Include langhooks.h.
10663         (check_format_types): Update.
10664         * c-tree.h (c_type_promotes_to): New.
10665         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
10666         (type_lists_compatible_p): Update.
10667         * langhooks-def.h (lhd_type_promotes_to): New.
10668         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
10669         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10670         * langhooks.c (lhd_type_promotes_to): New.
10671         * langhooks.h (struct lang_hooks_for_types): New hook.
10672         * tree.h (lang_type_promotes_to): Remove.
10673 objc:
10674         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
10675
10676 2002-04-18  Richard Henderson  <rth@redhat.com>
10677
10678         * function.c: Revert patch for c/6358.
10679
10680 2002-04-18  Richard Henderson  <rth@redhat.com>
10681
10682         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
10683         blocks.  Handle multiple references to the TRAP block.  Handle
10684         non-adjacent THEN and OTHER blocks.
10685
10686 2002-04-18  Richard Henderson  <rth@redhat.com>
10687
10688         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
10689         crash with no type for by-mode libcalls.
10690
10691         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
10692
10693 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
10694
10695         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
10696         __xtensa_nonlocal_goto): Use a syscall instructions to flush
10697         the register windows.
10698
10699 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
10700
10701         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
10702         appropriate.  Document need for extended precision even when
10703         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
10704         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
10705         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
10706         instead of relying on later syntax error when REAL_WIDTH > 5.
10707         * real.c: Define NE based only on whether or not we have a
10708         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
10709         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
10710         define GET_REAL and PUT_REAL as simple memcpy operations; no
10711         need to byteswap or round.
10712         Use #error instead of #ifdef-ing out the entire file, for
10713         prompt error detection.
10714
10715         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
10716
10717 2002-04-18  David S. Miller  <davem@redhat.com>
10718
10719         * config/sparc/sparc.h (BRANCH_COST): Define.
10720
10721         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
10722         does it.
10723
10724 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
10725
10726         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
10727         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
10728         propagate_block calls after relaxation loop using new variable
10729         stabilized_prop_flags.
10730
10731 2002-04-18  Richard Henderson  <rth@redhat.com>
10732
10733         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
10734         (ia64_va_arg): Expect variable sized types by reference.
10735         * config/ia64/ia64-protos.h: Update.
10736         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
10737         ia64_function_arg_pass_by_reference.
10738
10739 2002-04-18  Richard Henderson  <rth@redhat.com>
10740
10741         * ifcvt.c: Include except.h.
10742         (block_has_only_trap): Break out from find_cond_trap.
10743         (find_cond_trap): Use it.  Always delete the trap block.
10744         (merge_if_block): Allow then block null.  Be less simplistic about
10745         what insns can end a block.
10746         * Makefile.in (ifcvt.o): Depend on except.h.
10747
10748         * config/ia64/ia64.md (trap, conditional_trap): New.
10749
10750 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
10751
10752         PR c/6358
10753         * function.c (assign_parms): Assign hard current_function_return_rtx
10754         register here...
10755         (expand_function_end): ...not here.
10756
10757 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
10758
10759         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10760         * c-tree.h (c_incomplete_type_error): New.
10761         * c-typeck.c (require_complete_type, build_component_ref): Update.
10762         (incomplete_type_error): Rename.
10763         * langhooks-def.h (lhd_incomplete_type_error): New.
10764         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
10765         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10766         * langhooks.c (lhd_incomplete_type_error): New.
10767         * langhooks.h (struct lang_hooks_for_types): New hook.
10768         * tree.c (size_in_bytes): Use new hook.
10769         * tree.h (incomplete_type_error): Remove.
10770 objc:
10771         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
10772
10773 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
10774
10775         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
10776         TARGET_FLOAT_FORMAT blocks.
10777
10778 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10779
10780         * doc/install.texi (Downloading the source): Do not mention Chill
10781         any longer, but mention Ada.
10782         (Configuration): Do not mention Chill any longer.
10783
10784 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
10785
10786         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
10787
10788 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
10789
10790         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
10791         in last patch.
10792
10793 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
10794
10795         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
10796         instead of unsigned_type.
10797
10798 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
10799
10800         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
10801         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
10802         later.
10803
10804 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
10805
10806         * attribs.c (vector_type_node_list): New static variable.
10807         (handle_vector_size_attribute): Use it to avoid generating a
10808         new type node each time we are called.
10809
10810         * combine.c (subst): Avoid trying to make a vector mode subreg of
10811         an integer constant.
10812         (gen_lowpart_for_combine): Likewise.
10813
10814 2002-04-18  Roger Sayle  <roger@eyesopen.com>
10815             Jakub Jelinek  <jakub@redhat.com>
10816
10817         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
10818         for integer constant c (if x has unsigned type or sign bit is not
10819         set in c).  This folds the zero/sign extension into the bit-wise and
10820         operation.
10821
10822 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
10823
10824         PR middle-end/6205
10825         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
10826         otherwise xorps.
10827
10828 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
10829
10830         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
10831
10832 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
10833
10834         * gcc.c (read_specs): Detect and fail if an attempt is made to
10835         rename a spec string to an already existing string.
10836
10837 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
10838
10839         * config/s390/s390.c (legitimize_pic_address): Do not generate
10840         illegal address constant without CONST.
10841
10842 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10843
10844         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
10845         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10846
10847 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
10848
10849         PR optimization/6305
10850         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
10851         to make sure previous reloads are taken into account.  Generate
10852         better code if one operand is an in-range immediate constant.
10853
10854 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
10855
10856         * doc/install.texi (Building): libgcj requires GNU make.
10857
10858 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
10859
10860         PR bootstrap/6315
10861         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
10862         even if hard quad and register is not floating.
10863         (movtf reg<-mem split): Disallow splitting if hard quad and
10864         register is floating.
10865         (movtf mem<-reg split): Likewise.
10866         * config/sparc/sparc.c (fp_register_operand): New predicate.
10867         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
10868
10869 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
10870
10871         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
10872         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
10873         (unprotoize.o): Ditto.  Build from protoize.c.  Define
10874         UNPROTOIZE on command line.
10875         * protoize.c: Include cppdefault.h.  Delete include_defaults.
10876         (in_system_include_dir): Use cpp_include_defaults (defined in
10877         cppdefault.o).
10878         * unprotoize.c: Delete file.
10879
10880 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
10881
10882         * config/rs6000/altivec.h (vec_ld): Add array variants.
10883         (vec_lde): Same.
10884         (vec_ldl): Same.
10885
10886 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
10887             Aldy Hernandez <aldyh@redhat.com>
10888
10889         * config/rs6000/altivec.h: Define __ALTIVEC__.
10890         (bool): New.
10891         (__pixel): New.
10892         (pixel): New.
10893         (vec_cfux): New.
10894         (vec_vmaddfp): New.
10895         (vec_vsldoi): New.
10896         Add parentheses to all macro arguments.
10897
10898 2002-04-16  Richard Henderson  <rth@redhat.com>
10899
10900         PR c++/6320
10901         * except.c (remove_eh_handler): Insert inner regions at beginning
10902         of sibling chain.  Refactor expressions.
10903
10904 2002-04-16  Richard Henderson  <rth@redhat.com>
10905
10906         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
10907         * config/sparc/sol2-gas-bi.h: New file.
10908         * config.gcc (sparc*-solaris): Add it as needed.
10909         * configure.in (AS_SPARC64_FLAG): Remove check.
10910         * config.in, configure: Regenerate.
10911
10912         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
10913
10914 2002-04-16  Richard Henderson  <rth@redhat.com>
10915
10916         * config/mips/mips.c (override_options): Don't override N32 for
10917         a 64-bit ISA.
10918
10919         PR 6202
10920         * config/mips/mips.md (can_delay): Split out of existing define_delays.
10921         (HILO_delay): Set can_delay false.
10922
10923 2002-04-16  Dale Johannesen <dalej@apple.com>
10924
10925         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
10926         instruction addresses.
10927         (rs6000_output_function_epilogue): Likewise.
10928
10929 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
10930
10931         * c-parse.in (poplevel, compstmt_start,
10932         compstmt_primary_start): Add ending ';', in accordance
10933         with POSIX.
10934
10935 2002-04-16  Richard Henderson  <rth@redhat.com>
10936
10937         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
10938         Adjust tm_file order to get TARGET_DEFAULT set properly.
10939         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
10940         * doc/install.texi (sparc-solaris): Update.
10941
10942 2002-04-16  Dale Johannesen <dalej@apple.com>
10943
10944         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
10945         comparison operands do not match each other or if modes of
10946         conditions do not match result.
10947
10948 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
10949
10950         PR target/6305
10951         * config/s390/s390.md (mulsidi3): Set both subregs of the
10952         multiword register.
10953
10954 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
10955
10956         * config/rs6000/altivec.h (vec_addc): Type check.
10957
10958 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
10959
10960         PR middle-end/6279
10961         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
10962
10963         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
10964
10965 2002-04-15  Richard Henderson  <rth@redhat.com>
10966
10967         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
10968         call_really_used_regs too.
10969
10970 2002-04-15  Richard Henderson  <rth@redhat.com>
10971
10972         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
10973
10974 2002-04-15  David S. Miller  <davem@redhat.com>
10975
10976         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
10977         as being CLOBBERed.
10978
10979 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
10980
10981         PR c/6290
10982         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
10983         CONST_VECTOR is { 0, ... 0 }.
10984
10985 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
10986
10987         * doc/install.texi (Installing GCC: Configuration): Clarify
10988         the only supported ways to configure gcc.
10989
10990 2002-04-15  Roland McGrath  <roland@frob.com>
10991
10992         * config.gcc (alpha*-*-gnu*): New target configuration.
10993         * config/alpha/gnu.h: New file for it.
10994         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
10995
10996 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
10997
10998         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
10999         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
11000         * tree.h (expand_start_stmt_expr): Update prototype.
11001         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
11002         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
11003         on the STMT_EXPR created for the inline function.
11004
11005 2002-04-15  Richard Henderson  <rth@redhat.com>
11006
11007         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
11008         config/i386/linux-aout.h, config/i386/linux-oldld.h,
11009         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
11010         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
11011         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
11012         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
11013         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
11014         Define __gnu_linux__, not gnu_linux.
11015         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
11016
11017 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
11018
11019         Remove Chill front end.
11020         * gcc.c (default_compilers): Remove Chill entries.
11021         * ch: Remove directory.
11022         * doc/frontends.texi: Remove information about Chill.
11023         * doc/sourcebuild.texi: Likewise.
11024         * doc/standards.texi: Likewise.
11025
11026 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
11027
11028         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
11029         (LONGLONG_STANDALONE): Define.
11030
11031 2002-04-15  David S. Miller  <davem@redhat.com>
11032
11033         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
11034         Call emit_library_call with LCT_NORMAL.
11035         (sparc_initialize_trampoline): Use LCT_foo instead of
11036         magic constant in emit_library_call invocations.
11037         (sparc64_initialize_trampoline): Likewise.
11038         (sparc_profile_hook): Likewise.
11039         * config/sparc/sparc.md: Likewise.
11040
11041         * config/sparc/sparc.c (sparc_extra_constraint_check):
11042         Fix type of argument 'c'.
11043         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
11044         Likewise.
11045
11046 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
11047
11048         * diagnostic.h (output_buffer_state): Redefine.
11049         (output_format_decoder): New macro.
11050         (output_prefixing_rule): Likewise.
11051         (output_line_cutoff): Likewise.
11052         (diagnostic_format_decoder): Adjust.
11053         (diagnostic_prefixing_rule): Likewise.
11054         (diagnostic_line_cutoff): Likewise.
11055         (diagnostic_state): Likewise.
11056         (diagnostic_kind_count): Likewise.
11057         (diagnostic_buffer): Now a macro.
11058
11059         * diagnostic.c (diagnostic_buffer): Remove definition.
11060         (output_is_line_wrapping): Adjust.
11061         (set_real_maximum_length): Likewise.
11062         (output_set_maximum_length): Likewise.
11063         (init_output_buffer): Likewise.
11064         (lhd_print_error_function): Likewise.
11065         (output_do_verbatim): Likewise.
11066
11067 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
11068
11069         * cpperror.c (print_location): Don't print include chain
11070         if line == 0.
11071         (cpp_begin_message): Update to use DL_ macros.
11072         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
11073         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
11074         cpp_notice, cpp_notice_from_errno): Remove.
11075         (cpp_error, cpp_error_with_line): Update to take a diagnostic
11076         level.
11077         (cpp_errno): New.
11078         * cppexp.c (CPP_ICE): Remove.
11079         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
11080         lex, integer_overflow, _cpp_parse_expr): Update.
11081         * cppfiles.c (read_include_file, find_include_file,
11082         handle_missing_header, _cpp_read_file, remap_filename): Update.
11083         * cpphash.h (enum error_type): Remove.
11084         (_cpp_begin_message): Update.
11085         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
11086         cpp_handle_option, cpp_post_options): Update.
11087         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
11088         skip_whitespace, parse_identifier, parse_slow, parse_string,
11089         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
11090         cpp_interpret_charconst): Update.
11091         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
11092         lex_macro_node, do_undef, glue_header_name, parse_include,
11093         do_include_common, read_flag, do_line, do_linemarker, do_ident,
11094         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
11095         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
11096         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
11097         _cpp_pop_buffer, do_diagnostic): Update.
11098         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
11099         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
11100         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
11101         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
11102         cpp_notice, cpp_notice_from_errno): Remove.
11103         (cpp_error, cpp_error_with_line): Update to take a diagnostic
11104         level.
11105         (cpp_errno): New.
11106         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
11107         collect_args, enter_macro_context, save_parameter, parse_params,
11108         _cpp_create_definition, check_trad_stringification,
11109         cpp_macro_definition): Update.
11110         * cppmain.c (cpp_preprocess_file): Update.
11111         * fix-header.c (read_scan_file): Update.
11112
11113 2002-04-14  Andreas Schwab  <schwab@suse.de>
11114
11115         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
11116
11117 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
11118
11119         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
11120
11121 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
11122
11123         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
11124         not gnu_hurd.
11125
11126 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
11127
11128         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
11129
11130 2002-04-13      Joel Sherrill <joel@OARcorp.com>
11131
11132         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
11133         sparc-elf and sparc-rtems targets.
11134
11135 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
11136
11137         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
11138         defined, and __gnu_hurd__ wherever __GNU__ is defined.
11139         * arm/linux-elf.h: Likewise.
11140         * cris/aout.h: Likewise.
11141         * cris/linux.h: Likewise.
11142         * i370/linux.h: Likewise.
11143         * i386/gnu.h: Likewise.
11144         * i386/linux-aout.h: Likewise.
11145         * i386/linux-oldld.h: Likewise.
11146         * i386/linux.h: Likewise.
11147         * i386/linux64.h: Likewise.
11148         * ia64/linux.h: Likewise.
11149         * m68k/linux-aout.h: Likewise.
11150         * m68k/linux.h: Likewise.
11151         * mips/linux.h: Likewise.
11152         * pa/pa-linux.h: Likewise.
11153         * pj/linux.h: Likewise.
11154         * rs6000/sysv4.h: Likewise.
11155         * s390/linux.h: Likewise.
11156         * sh/linux.h: Likewise.
11157         * sparc/linux-aout.h: Likewise.
11158         * sparc/linux.h: Likewise.
11159         * sparc/linux64.h: Likewise.
11160         * xtensa/linux.h: Likewise.
11161
11162 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
11163
11164         * stmt.c (check_unique_operand_names): Expect operand names to
11165         be strings rather than identifiers.  Use simple_cst_equal to
11166         compare them.
11167         (resolve_operand_name_1): Make same identifier to string change here.
11168         * c-parse.in (asm_operand): Convert a named operand into a string.
11169         * cp/parse.y (asm_operand): Likewise.
11170
11171 2002-04-13  Andreas Schwab  <schwab@suse.de>
11172
11173         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
11174
11175 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
11176
11177         Revert these changes:
11178
11179         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
11180
11181         PR c++/5571
11182         * stor-layout.c (layout_decl): Reset the RTL for the decl.
11183
11184 2002-04-12  Richard Henderson  <rth@redhat.com>
11185
11186         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
11187         (sparc*-*-solaris): Clean up header files.
11188         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
11189         and plan on generating 64-bit code.
11190         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
11191         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
11192         * config/sparc/sol2-sld-64.h: Rename ...
11193         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
11194         for AS_SPARC64_FLAG not defined.
11195         * config/sparc/sol2-gld-bi.h: New.
11196         * config/sparc/sol2-sld.h: Remove.
11197         * config/sparc/sol26-sld.h: New.
11198         * config/sparc/sol2.h: Tidy comments.
11199         * doc/install.texi: Document sparc-solaris configury changes.
11200
11201 2002-04-12  Richard Henderson  <rth@redhat.com>
11202
11203         * recog.c (offsettable_address_p): Match the logic in adjust_address.
11204
11205         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
11206         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
11207
11208 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11209
11210         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
11211
11212 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
11213
11214         * pa.c (pa_can_combine_p): Call extract_insn before calling
11215         constrain_operands.
11216
11217 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
11218
11219         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
11220         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
11221         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
11222         (CPP_PREDEFINES): Handle __declspec.
11223         * config/i386/t-interix (USER_H): Remove.
11224
11225 2002-04-12  DJ Delorie  <dj@redhat.com>
11226
11227         * integrate.c (compare_blocks): Make comparisons safe for when
11228         sizeof(int) < sizeof(char *).
11229         (find_block): Likewise.
11230
11231 2002-04-12  Jan Hubicka  <jh@suse.cz>
11232             David Edelsohn  <edelsohn@gnu.org>
11233
11234         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
11235         registers.
11236         (symbol_ref_operand): New.
11237         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
11238         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
11239
11240 2002-04-12  Andreas Schwab  <schwab@suse.de>
11241
11242         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
11243         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
11244         overrides the definition in config/svr4.h.
11245
11246 2002-04-12      Eric Norum <eric.norum@usask.ca>
11247
11248         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
11249         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
11250         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
11251         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
11252         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
11253         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
11254         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
11255         definitions to config/rtems.h and make the targets more similar.
11256
11257 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11258
11259         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
11260         POINTERS_EXTEND_UNSIGNED.
11261         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
11262         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
11263
11264         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
11265         not specified.
11266
11267 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
11268
11269         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
11270         depends on TARGET_SHMEDIA, not TARGET_SH5.
11271
11272 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
11273
11274         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
11275         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
11276
11277 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
11278
11279         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
11280         no r0 clobber.
11281
11282 2002-04-12  Andreas Schwab  <schwab@suse.de>
11283
11284         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
11285
11286 2002-04-12  Richard Henderson  <rth@redhat.com>
11287
11288         PR bootstrap/4191
11289         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
11290
11291         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
11292         modes spanning multiple hard regs.
11293
11294         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
11295
11296 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11297
11298         * pa.c (pa_output_function_prologue): Don't accumulate the total
11299         number of code bytes when using TARGET_64BIT, or gas, SOM and not
11300         the portable runtime.
11301         (output_deferred_plabels): Handle 64bit plabels.
11302         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
11303         generating pic code using the GAS assembler for object formats that
11304         are not SOM (ie., ELF32 and ELF64).
11305         (output_millicode_call): Check attribute type if attribute length is 28.
11306         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
11307         dbr_sequence_length once.
11308         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
11309         dbr_sequence_length once.
11310         * pa.h (TARGET_SOM): Define if not defined.
11311         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
11312         with GAS and not SOM.
11313         (jump, call_internal_reg, call_value_internal_reg): Likewise.
11314         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
11315
11316 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11317
11318         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
11319         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
11320         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
11321         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
11322         elfos.h and dbxelf.h values are fine now.
11323         * config/i386/freebsd.h, config/alpha/freebsd.h
11324         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
11325
11326 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11327
11328         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
11329         or set Acpu or Amachine.  Reformat.
11330         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11331         define.
11332         (LINK_SPEC): Do not need to undef.
11333         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
11334         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
11335         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11336         define.
11337         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
11338         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
11339         (LINK_SPEC): Do not need to undef.
11340         (DONT_USE_BUILTIN_SETJMP): Do not define.
11341         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
11342         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
11343         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
11344         Remove trailing spaces.
11345         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
11346         __ELF__, or set Acpu or Amachine.  Reformat.
11347         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
11348         define.
11349
11350 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11351
11352         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
11353         all other *-*-freebsd* targets.
11354
11355 2002-04-11  Richard Henderson  <rth@redhat.com>
11356
11357         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
11358
11359 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
11360
11361         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
11362         Include {cpu}/{cpu}.h thru tm_file.
11363         (alpha*-*-linux*ecoff): Remove target.
11364         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
11365         (LINK_SPEC): Remove, is not OS independent.
11366         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
11367         (LINK_SPEC): Do not need to #undef any longer.
11368         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
11369         any longer.
11370         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
11371         __ELF__.
11372         (LINK_SPEC): Moved here from alpha/elf.h.
11373         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
11374         SUB_CPP_PREDEFINES.
11375         * config/alpha/linux-ecoff.h: Remove.
11376         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
11377         (CPP_SPEC): Define _POSIX_SOURCE as needed.
11378         (CPP_SUBTARGET_SPEC): Do not define.
11379         (LINK_SPEC): Do not need to #undef any longer.
11380         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
11381         * config/alpha/vms.h: Likewise.
11382
11383 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
11384
11385         * doc/extend.texi: Remove old claim that typedefs cannot have
11386         an alignment attribute.
11387
11388 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
11389
11390         PR optimization/6177
11391         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
11392         bitpos is 0 and bitsize CONCAT size.
11393
11394 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
11395
11396         PR c/6223
11397         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
11398
11399 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
11400
11401         * config/alpha/freebsd.h: Minor reformatting.
11402         (CPP_SPEC): Define ELF and add cpp_subtarget.
11403         (ASM_SPEC): No longer needed.
11404
11405 2002-04-11  Richard Henderson  <rth@redhat.com>
11406
11407         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
11408         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
11409         (dimode mem/zero splitter): New.
11410
11411 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
11412
11413         * config/cris/cris.c (cris_override_options): Tweak error message
11414         for PIC not implemented.
11415
11416         * config/cris/cris.h: Tweak comments related to parameter-passing.
11417
11418         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
11419
11420 2002-04-10  Richard Henderson  <rth@redhat.com>
11421
11422         * except.c (add_ehl_entry): Allow duplicates after landing pad
11423         creation.
11424
11425 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
11426
11427         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
11428
11429 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
11430
11431         * c-decl.c (c_init_decl_processing): Move generation of
11432         decls for g77_integer_type_node and friends from here ...
11433         * c-common.c (c_common_nodes_and_builtins): ... to here.
11434
11435 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
11436
11437         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
11438         is only used as frame pointer when frame_pointer_needed is true.
11439
11440 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
11441
11442         PR target/817
11443         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
11444         for the fact that the pool entry uses two words.
11445         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
11446         1k bytes.
11447         (movdf_soft_insn): Similarly.
11448         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
11449         for the fact that the pool entry uses three words.
11450
11451 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
11452
11453         * config/mips/mips.c (mips_va_arg): When using the struct version
11454         of the EABI va_list, allow arguments in the register save area to
11455         take up less room than a stack argument.
11456
11457 2002-04-10  Richard Henderson  <rth@redhat.com>
11458
11459         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
11460         if EXPAND_INITIALIZER.
11461
11462 2002-04-09  Richard Henderson  <rth@redhat.com>
11463
11464         * config/alpha/alpha.md (movdi_er_maybe_g): New.
11465         * config/alpha/alpha.c (alpha_expand_mov): Use it.
11466
11467 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
11468
11469         PR optimization/6233
11470         * rtlanal.c (pure_call_p): New function.
11471         * rtl.h (pure_call_p): Declare.
11472         * loop.c (prescan_loop): Use it to set has_nonconst_call.
11473         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
11474
11475 2002-04-09  Eric Christopher  <echristo@redhat.com>
11476
11477         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
11478         information to .comm directive.
11479
11480 2002-04-09  Richard Henderson  <rth@redhat.com>
11481
11482         PR c/5078
11483         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
11484
11485 2002-04-09  Richard Henderson  <rth@redhat.com>
11486
11487         * basic-block.h (flow_delete_block_noexpunge): Declare.
11488         (expunge_block_nocompact): Declare.
11489         * cfg.c (expunge_block_nocompact): Split out from ...
11490         (expunge_block): ... here.
11491         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
11492         (flow_delete_block_noexpunge): Split out from ...
11493         (flow_delete_block): ... here.
11494         * cfgcleanup.c (delete_unreachable_blocks): Compact while
11495         removing dead blocks.
11496         * except.c (exception_handler_labels): Remove.
11497         (exception_handler_label_map): New.
11498         (struct eh_region): Add aka member.
11499         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
11500         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
11501         (for_each_eh_label, for_each_eh_label_1): New.
11502         (init_eh): Register exception_handler_label_map.
11503         (free_eh_status): Use free_region.
11504         (find_exception_handler_labels): Use the map, not the list.
11505         (remove_exception_handler_label): Likewise.
11506         (maybe_remove_eh_handler): Likewise.
11507         (remove_eh_handler): Use the region aka bitmap.
11508         * except.h (exception_handler_labels): Remove.
11509         (for_each_eh_label): Declare.
11510         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
11511         * loop.c (invalidate_loops_containing_label): New.
11512         (find_and_verify_loops): Use it.  Use for_each_eh_label.
11513         * sched-rgn.c (is_cfg_nonregular): Use
11514         current_function_has_exception_handlers.
11515
11516 2002-04-09  Richard Henderson  <rth@redhat.com>
11517
11518         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
11519         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
11520         Do not return changed status.
11521         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
11522         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
11523         New functions that do return changed status.
11524         * sbitmap.h: Update decls.
11525         * gcse.c, lcm.c: Use _cg functions as needed.
11526
11527 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
11528
11529         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
11530         (sh64-*-elf*, sh-*-rtemself*): Likewise.
11531         * config/sh/embed_bb.c: New file.
11532         * config/sh/embed-elf.h: New file.
11533         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
11534         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
11535         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11536         __PTRDIFF_TYPE__ .
11537         (SUBTARGET_CPP_PTR_SPEC): Don't define.
11538         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
11539         Add subtarget_asm_endian_spec.
11540         (ASM_SPEC): Use subtarget_asm_endian_spec.
11541         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
11542         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
11543         (WCHAR_UNSIGNED): Define.
11544         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
11545         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11546         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
11547         Fix value.
11548         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
11549         (sh_adjust_cost): Likewise.
11550         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
11551         __PTRDIFF_TYPE__ .
11552         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
11553         (WCHAR_TYPE_SIZE): Likewise.
11554         (ASM_SPEC): Use subtarget_asm_endian_spec.
11555         (SH_ELF_WCHAR_TYPE): #undef/ #define.
11556         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
11557         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
11558         (MAX_WCHAR_TYPE_SIZE): Don't #define .
11559         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
11560         (USER_LABEL_PREFIX): Don't #undef /#define .
11561         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
11562         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
11563         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
11564         (ASM_SPEC): Likewise.
11565         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
11566         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
11567         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
11568         (LIB2FUNCS_EXTRA): Define.
11569         * t-sh64 (LIB2FUNCS_EXTRA): Define.
11570         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
11571         (LIB1ASMFUNCS_CACHE): Define.
11572         (LIB2FUNCS_EXTRA): Redefine empty.
11573
11574 2002-04-08  Richard Henderson  <rth@redhat.com>
11575
11576         * reorg.c (get_branch_condition): Use reversed_comparison_code.
11577
11578 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11579
11580         * config/m68hc11/larith.asm (__map_data_section): Fix condition
11581         and optimize for size.
11582         (__do_global_ctors): Fix pointer comparison.
11583         (__do_global_dtors): Likewise.
11584
11585 2002-04-09  David S. Miller  <davem@redhat.com>
11586
11587         * config/sparc/sparc.c (sparc_extra_constraint_check): New
11588         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
11589         allow reloading pseudos.
11590         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
11591         * config/sparc/sparc-protos.h: Declare it.
11592
11593         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
11594         unsigned comparison warning.
11595         (output_restore_regs): Mark leaf_function as unused.
11596
11597 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11598
11599         * expr.c (is_aligning_offset): New function.
11600         (expand_expr, case COMPONENT_EXPR): Call it.
11601
11602 2002-04-08  David S. Miller  <davem@redhat.com>
11603
11604         PR target/6082
11605         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
11606
11607         Make init_priority work on Sparc when using GNU ld.
11608         * config/sparc/linux.h, config/sparc/linux64.h,
11609         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
11610         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
11611         * config/sparc/sol2-gld.h: New file to do the same.
11612         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
11613         sparc/sol2-gld.h to tm_file.
11614
11615         PR optimization/4328
11616         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
11617         * doc/md.texi: Document it.
11618         * config/sparc/sparc.md (movdi_insn_sp64_novis,
11619         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
11620         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
11621         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
11622         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
11623
11624 2002-04-08  Andreas Jaeger  <aj@suse.de>
11625
11626         * stmt.c (expand_asm_operands): Revert last patch from Richard
11627         Henderson.
11628
11629 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11630
11631         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
11632         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
11633
11634 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11635
11636         * doc/contrib.texi (Contributors): Add David O'Brien.
11637
11638 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
11639
11640         * configure.in (auto-build.h): Use target_alias and build_alias
11641         when running configure.
11642         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
11643         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
11644         * configure: Regenerate.
11645
11646 2002-04-07  David S. Miller  <davem@redhat.com>
11647
11648         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
11649
11650 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11651
11652         PR 5933
11653         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
11654         generating 32-bit pic code.
11655
11656 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
11657
11658         * cppinit.c (cpp_create_reader): Initialize
11659         discard_comments_in_macro_exp.
11660         (COMMAND_LINE_OPTIONS): Add "-CC" option.
11661         (cpp_handle_option): Handle "-CC" option.
11662         * cpplex.c (save_comment): If saving a C++ comment in
11663         a directive, convert it to a C comment.
11664         (_cpp_lex_direct): Pass second comment start character to
11665         save_comment to indicate comment type.
11666         * cpplib.c (_cpp_handle_directive): If processing
11667         a "#define" directive and discard_comments_in_macro_exp
11668         is false,  re-enable saving of comments.
11669         (lex_macro_node): If discard_comments_in_macro_exp is false,
11670         discard any comments before the macro identifier.
11671         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
11672         member.
11673         * cppmacro.c (cpp_get_token): If expanding a macro while
11674         processing a directive, discard any comments we might encounter.
11675         (parse_params): If discard_comments_in_macro_exp is false,
11676         ignore comments in the macro parameter list.
11677         * gcc.c (cpp_unique_options): Add "-CC" option.
11678         (option_map): Map "--comments-in-macros" to "-CC".
11679         * doc/cppopts.texi: Document "-CC" option.
11680         * f/lang-specs.h: Add "-CC" option.
11681         * testsuite/gcc.dg/cpp/maccom1.c: New test.
11682         * testsuite/gcc.dg/cpp/maccom2.c: New test.
11683         * testsuite/gcc.dg/cpp/maccom3.c: New test.
11684         * testsuite/gcc.dg/cpp/maccom4.c: New test.
11685         * testsuite/gcc.dg/cpp/maccom5.c: New test.
11686         * testsuite/gcc.dg/cpp/maccom6.c: New test.
11687
11688 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11689
11690         PR middle-end/6180
11691         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
11692
11693 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
11694
11695         PR c++/5571
11696         * stor-layout.c (layout_decl): Reset the RTL for the decl.
11697
11698         PR opt/5120
11699         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
11700         RTX_UNCHANGING_P for the functions arguments when a tail call
11701         is made.
11702
11703 2002-04-06  Jason Merrill  <jason@redhat.com>
11704
11705         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
11706         (parse_options_and_default_flags): Set them appropriately.
11707         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
11708
11709 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
11710
11711         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
11712         here.
11713
11714         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
11715         semicolon.
11716
11717         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
11718         types come in by-reference.  Fix typo in comment.
11719
11720 2002-04-05  David S. Miller  <davem@redhat.com>
11721
11722         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
11723         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
11724         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
11725         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
11726
11727 2002-04-05  David S. Miller  <davem@redhat.com>
11728
11729         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
11730         are not going to emit return instructions, emit at least a nop
11731         for the sake of sane backtraces.
11732
11733 2002-04-05  Richard Henderson  <rth@redhat.com>
11734
11735         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
11736
11737 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
11738
11739         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
11740
11741 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
11742
11743         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
11744         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
11745         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
11746
11747 2002-04-05  Andreas Schwab  <schwab@suse.de>
11748
11749         * c-convert.c: Include c-common.h.
11750         * Makefile.in (c-convert.o): Updated.
11751
11752 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
11753
11754         * mklibgcc.in: Use separate libgcc.map for each multilib.
11755         * Makefile.in (distclean): Don't remove libgcc.map here.
11756
11757 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
11758
11759         * Makefile.in (s-mlib): Handle --disable-multilib by separate
11760         genmultilib invocation.
11761
11762 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
11763
11764         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
11765         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
11766         to num_gprs for symmetry.
11767         * config/mips/mips.c: Adjust accordingly.
11768
11769 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
11770
11771         * c-common.c (truthvalue_conversion): Rename, update.
11772         * c-common.h (c_common_truthvalue_conversion): New.
11773         * c-convert.c (convert): Update.
11774         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11775         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
11776         * c-typeck.c (build_binary_op, build_unary_op,
11777         build_conditional_expr): Update.
11778         * fold-const.c (constant_boolean_node, fold): Use langhook.
11779         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
11780         * langhooks.h (struct lang_hooks): New hook.
11781         * stmt.c (expand_decl_cleanup): Use langhook.
11782         * tree.h (truthvalue_conversion): Remove.
11783 objc:
11784         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11785
11786 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
11787
11788         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
11789         Add rules to make null object file.
11790
11791 2002-04-04  Jim Blandy  <jimb@redhat.com>
11792
11793         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
11794         macro formal parameter names.
11795
11796 2002-04-04  David S. Miller  <davem@redhat.com>
11797
11798         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
11799
11800 2002-04-04  Richard Henderson  <rth@redhat.com>
11801
11802         PR middle-end/5099
11803         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
11804         Support copies into and out of memory.  Don't accept allows_reg
11805         and allows_mem as gospel.
11806
11807 2002-04-04  Richard Henderson  <rth@redhat.com>
11808
11809         PR opt/6165
11810         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
11811         (write_dependence_p): Likewise.
11812
11813 2002-04-04  Richard Henderson  <rth@redhat.com>
11814
11815         * predict.c (estimate_bb_frequencies): Do frequency calculation
11816         with a volatile temporary.
11817
11818 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
11819
11820         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
11821
11822 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11823
11824         PR c++/6119
11825         * final.c (final_start_function): Don't bump profile_label_no here...
11826         (final_end_function): ...but here.
11827
11828 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11829
11830         * config/sparc/sparc.md (pic): New attribute.
11831         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
11832         into stack slots.
11833         (split after do_builtin_setjmp_setup): New.
11834
11835 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11836
11837         PR fortran/6106
11838         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
11839         change.
11840
11841 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
11842
11843         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
11844         UNITS_PER_WORD for zero sized aggregates.
11845
11846 2002-04-03  David S. Miller  <davem@redhat.com>
11847
11848         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
11849         one-character spec for this, just use %(link_gcc_c_sequence).
11850
11851 2002-04-03  David S. Miller  <davem@redhat.com>
11852
11853         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
11854         handling.
11855
11856 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11857
11858         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
11859         (DWARF_FRAME_RETURN_COLUMN): Move.
11860         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11861         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
11862         * pa.c (except.h, predict.h): Include.
11863         (FRP): Delete.
11864         (store_reg_modify, set_reg_plus_d): Revise prototypes.
11865         (output_ascii): Add cast.
11866         (store_reg_modify): Revise to add frame notes.
11867         (set_reg_plus_d): Likewise.
11868         (compute_frame_size): Include space for eh data registers in frame if
11869         the current function calls eh_return.
11870         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
11871         function calls eh_return.  Save eh data registers if the current
11872         function calls eh_return.  Fix code to add frame notes.  Emit
11873         blockage to prevent insns with frame notes being scheduled in the
11874         delay slot of calls.
11875         (hppa_expand_epilogue): Restore eh data registers and do final stack
11876         adjustment if the current function calls eh_return.  Don't add frame
11877         notes.
11878         (output_call): Revise for change in length of call insn.  Don't do
11879         return pointer adjustment for an unconditional jump in the delay slot
11880         of a call when using frame notes.
11881         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
11882         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
11883         (ARG_POINTER_CFA_OFFSET): Define.
11884         * pa.md (return_external_pic): New pattern.
11885         (prologue): Correct formatting.  Use return_external_pic if current
11886         function calls eh_return.
11887         (call_internal_symref, call_value_internal_symref,
11888         sibcall_internal_symref, sibcall_value_internal_symref): Change default
11889         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
11890         respectively.
11891         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
11892
11893         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
11894         list of targets to check using "nop" insn.
11895         * configure: Rebuilt.
11896
11897 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
11898
11899         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
11900
11901 2002-04-03  David S. Miller  <davem@redhat.com>
11902
11903         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
11904         library sequence passed to the linker.
11905         (LINK_COMMAND_SPEC): Use it.
11906         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
11907         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
11908         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11909
11910 2002-04-03  Jason Merrill  <jason@redhat.com>
11911
11912         * except.c (struct eh_status): Remove protect_list.
11913         (begin_protect_partials, end_protect_partials): Remove.
11914         (add_partial_entry): Remove.
11915         * except.h: Remove prototypes.
11916
11917         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
11918         expand_decl_cleanup_eh.
11919
11920         PR c++/5636
11921         * tree.h (CLEANUP_EH_ONLY): New macro.
11922         * stmt.c (expand_decl_cleanup_eh): New fn.
11923         (expand_cleanups): Check CLEANUP_EH_ONLY.
11924         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
11925         Use expand_decl_cleanup_eh.
11926         (expand_stmt): Adjust.
11927         * c-common.h: Adjust prototype.
11928
11929 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
11930
11931         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
11932         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
11933         (cris_target_asm_function_epilogue): Ditto.
11934         (cris_initial_frame_pointer_offset): Ditto.
11935         (cris_simple_epilogue): Ditto.
11936         (cris_expand_builtin_va_arg): Variable-size types come in
11937         by-reference.
11938
11939 2002-04-03  David S. Miller  <davem@redhat.com>
11940
11941         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
11942         little-endian.
11943         (set_fast_math): Correct 'fsr' type.
11944
11945 2002-04-03  Richard Henderson  <rth@redhat.com>
11946
11947         PR opt/3569
11948         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
11949         * toplev.c (check_global_declarations): Use it.
11950         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
11951         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11952         (LANG_HOOKS_DECLS): Add it.
11953         * langhooks.c (lhd_warn_unused_global_decl): New.
11954         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11955         * c-objc-common.c (c_warn_unused_global_decl): New.
11956         * c-tree.h (c_warn_unused_global_decl): Declare.
11957         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
11958
11959 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
11960
11961         * langhooks-def.h (lhd_set_decl_assembler_name,
11962         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
11963         (LANG_HOOKS_INITIALIZER): Update.
11964         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
11965         * langhooks.h (struct lang_hooks): New hook.
11966         * tree.c (set_decl_assembler_name): Move to langhooks.c.
11967         (lang_set_decl_assembler_name): Remove.
11968         (init_obstacks): Don't set hook.
11969         (decl_assembler_name): New function.
11970         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
11971         (decl_assembler_name): New.
11972         (lang_set_decl_assembler_name): Remove.
11973
11974 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
11975
11976         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
11977         works properly with .hidden symbols.
11978         * configure: Rebuilt.
11979         * config.in: Rebuilt.
11980         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
11981         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
11982         properly with .hidden symbols.
11983
11984 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
11985
11986         PR middle-end/6102
11987         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
11988         USE argument.
11989
11990 2002-04-03  Richard Henderson  <rth@redhat.com>
11991
11992         PR opt/4120
11993         * sched-rgn.c (sets_likely_spilled): New.
11994         (sets_likely_spilled_1): New.
11995         (add_branch_dependences): Use it.
11996
11997 2002-04-02  Richard Henderson  <rth@redhat.com>
11998
11999         PR opt/4311
12000         * loop.h (LOOP_FIRST_PASS): New.
12001         * loop.c (strength_reduce): Mind it when deciding to unroll.
12002         * toplev.c (rest_of_compilation): Set it.
12003
12004 2002-04-02  David S. Miller  <davem@redhat.com>
12005
12006         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
12007         mems_ok_for_ldd_peep when the order of the loads being examined
12008         is reversed.
12009         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
12010         existing comment to increase comprehension of this situation.
12011
12012 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
12013
12014         * config/sh/sh.md: Don't use union real_extract.
12015
12016 2002-04-02  Richard Henderson  <rth@redhat.com>
12017
12018         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
12019
12020 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
12021
12022         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
12023         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
12024         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
12025         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
12026         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
12027         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
12028         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
12029         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
12030         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
12031         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
12032         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
12033         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
12034         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
12035         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
12036         Include as many configury headers via tm_file as possible.  This
12037         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
12038         * config/openbsd-oldgas.h: New file.
12039         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
12040         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
12041         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
12042         config/i386/i386-coff.h, config/i386/i386-interix.h,
12043         config/i386/iscdbx.h, config/i386/linux-aout.h,
12044         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
12045         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
12046         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
12047         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
12048         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
12049         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
12050         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
12051         config/i386/vxi386.h: Do not directly include configury headers.
12052         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
12053         Directly include configury headers that are no longer automatically
12054         included by the above headers.
12055         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
12056         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
12057         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
12058         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
12059         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
12060         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
12061         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
12062         (TARGET_VERSION): Define.
12063         * config/i386/beos-elf.h, config/i386/freebsd.h,
12064         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
12065         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
12066         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
12067         config/i386/sco5.h, config/i386/sysv4.h
12068         (TARGET_VERSION): Do not need to protect.
12069         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
12070         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
12071         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
12072         config/i386/i386-interix.h, config/i386/linux-aout.h,
12073         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
12074         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
12075         (YES_UNDERSCORES): Do not define - not needed.
12076         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
12077         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
12078         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
12079         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
12080         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
12081         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
12082         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
12083         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
12084
12085 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
12086             Richard Henderson  <rth@redhat.com>
12087
12088         PR c/5484
12089         * function.c (assign_temp): Accept either type or decl argument.
12090         Detect variables whose size is too large to fit into an integer.
12091         * stmt.c (expand_decl): Pass the decl, not the type.
12092
12093 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
12094
12095         * protoize.c: Match include directory usage with cppdefault.c.
12096
12097 2002-04-03  Jeffrey A Law  (law@redhat.com)
12098             Hans-Peter Nilsson  <hp@bitrange.com>
12099
12100         * combine.c (simplify_comparison): Avoid narrowing a comparison
12101         with a paradoxical subreg when doing so would drop signficant bits.
12102
12103 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
12104
12105         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
12106         if POINTERS_EXTEND_UNSIGNED is defined.
12107
12108 2002-04-02  Richard Henderson  <rth@redhat.com>
12109
12110         PR opt/3967
12111         * local-alloc.c (contains_replace_regs): LO_SUM may contain
12112         replace regs.
12113
12114 2002-04-02  Richard Henderson  <rth@redhat.com>
12115
12116         * doc/standards.texi: Document required freestanding libc entry points.
12117
12118 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
12119
12120         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
12121         associated splitter.  Remove MQ constraint.
12122         (ctrdi_internal4): Correct CCmode clobber.
12123
12124 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12125
12126         * milli64.S ($$dyncall): New function.
12127         * t-linux (LIB1ASMFUNCS): Revise module list.
12128         (LIB1ASMSRC): Use pa/milli64.S.
12129
12130 2002-04-02  Richard Henderson  <rth@redhat.com>
12131
12132         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
12133         rename solaris_sys_varargs_h.
12134
12135 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12136
12137         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
12138         the same mode as its component.
12139
12140 2002-04-02  Richard Henderson  <rth@redhat.com>
12141
12142         PR opt/190
12143         * final.c (this_is_asm_operands): Export.
12144         * output.h (this_is_asm_operands): Declare.
12145         * config/i386/i386.c (print_operand): Error odd asm operands.
12146
12147 2002-04-02  Richard Henderson  <rth@redhat.com>
12148
12149         PR opt/420
12150         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
12151
12152 2002-04-01  Richard Henderson  <rth@redhat.com>
12153
12154         PR target/1538
12155         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
12156         * fixinc/fixincl.x: Rebuild.
12157
12158 2002-04-01  Richard Henderson  <rth@redhat.com>
12159
12160         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
12161         (atomic_alloc, atomic_free): New.
12162         (SIZE, MASK_FOR, PTR_IN): New.
12163         (emergency_reg_state, emergency_reg_state_free): New.
12164         (emergency_labeled_state, emergency_labeled_state_free): New.
12165         (reg_state_alloced, labeled_state_alloced): New.
12166         (alloc_reg_state, free_reg_state): New.
12167         (alloc_label_state, free_label_state, free_label_states): New.
12168         (push, pop, dup_state_stack, free_state_stack): Use them.
12169         (desc_label_state): Likewise.
12170         (uw_frame_state_for): Free label states and state stack.
12171         (uw_update_reg_address): Eliminate warnings.
12172
12173 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
12174
12175         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
12176         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
12177
12178 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12179
12180         * c-decl.c (grokdeclarator): Update.
12181         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12182         * c-tree.h (c_mark_addressable): New.
12183         * c-typeck.c (default_function_array_conversion, build_unary_op,
12184         build_array_ref, convert_for_assignment): Update.
12185         (mark_addressable): Rename.
12186         * calls.c (try_to_integrate, expand_call): Use langhook.
12187         * expr.c (expand_expr): Use langhook.
12188         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
12189         * langhooks.h (struct lang_hooks): New hook.
12190         * stmt.c (expand_asm_operands): Use langhook.
12191         * tree.h (mark_addressable): Remove.
12192 objc:
12193         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12194
12195 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
12196
12197         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
12198         in previous change.
12199
12200 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
12201
12202         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
12203         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
12204
12205 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12206
12207         * c-common.c (unsigned_conversion_warning, convert_and_check,
12208         unsigned_type, signed_type, shorten_compare,
12209         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
12210         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
12211         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
12212         New.
12213         * c-decl.c (grokdeclarator): Update.
12214         * c-format.c (check_format_types): Update.
12215         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12216         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12217         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
12218         * convert.c (convert_to_integer): Use new hooks.
12219         * expmed.c (make_tree): Use new hooks.
12220         * expr.c (store_expr): Use new hooks.
12221         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
12222         all_ones_mask_p, unextend, fold): Use new hooks.
12223         * langhooks.h (struct lang_hooks_for_types): New hooks.
12224         * tree.h (signed_or_unsigned_type, signed_type,
12225         unsigned_type): Remove.
12226 objc:
12227         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12228         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12229
12230 2002-03-31  Richard Henderson  <rth@redhat.com>
12231
12232         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
12233         (desc_frgr_mem): Fix reference to f16-f31.
12234
12235 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12236
12237         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
12238         RTVEC_ELT): Const-ify.
12239         * varray.h (VARRAY_CHECK): Const-ify.
12240         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
12241         ggc_mark_rtvec, ggc_mark): Const-ify.
12242
12243 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12244
12245         * diagnostic.c: Include langhooks-def.h.
12246         * Makefile.in (diagnostic.o): Update.
12247
12248 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
12249
12250         * c-common.c (c_unsafe_for_reeval): Rename.
12251         * c-common.h (c_unsafe_for_reeval): Rename.
12252         * c-decl.c (finish_incomplete_decl): Rename.
12253         (c_init_decl_processing): Don't set langhook.
12254         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12255         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12256         * c-objc-common.c (c_objc_common_init): Don't set langhook.
12257         * c-tree.h (finish_incomplete_decl): Rename.
12258         * langhooks-def.h (lhd_unsafe_for_reeval): New.
12259         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
12260         (LANG_HOOKS_INITIALIZER): Update.
12261         * langhooks.c (lhd_unsafe_For_reeval): New.
12262         * langhooks.h (struct langhooks): New hooks.
12263         * toplev.c (incomplete_decl_finalize_hook): Remove.
12264         (wrapup_global_declarations): Update.
12265         * tree.c (lang_unsafe_for_reeval): Remove.
12266         (unsafe_for_reeval): Update.
12267         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
12268         Remove.
12269 objc:
12270         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
12271         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
12272
12273 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
12274
12275         * diagnostic.c (print_error_function): Remove.
12276         (default_print_error_function): Rename.
12277         (report_error_function): Update.
12278         * diagnostic.h (print_error_function): Remove.
12279         (default_print_error_function): Remove.
12280         * langhooks-def.h (struct diagnostic_context): Predeclare.
12281         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
12282         (LANG_HOOKS_INITIALIZER): Update.
12283         * langhooks.h (struct diagnostic context): Predeclare.
12284         (struct lang_hooks): New hook.
12285
12286 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12287
12288         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
12289         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
12290         !flag_pic.
12291         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
12292         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
12293         of PIC_OFFSET_TABLE_REGNUM thruout.
12294         * config/rs6000/rs6000.md: Likewise.
12295         * config/rs6000/darwin.h: Likewise.
12296
12297 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12298
12299         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
12300         unsigned HOST_WIDE_INT, not unsigned int.
12301
12302 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12303
12304         PR middle-end/6096, middle-end/6098, middle-end/6099
12305         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
12306         CODE_LABELs.
12307         (fill_slots_from_thread): Likewise.
12308
12309 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12310
12311         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
12312         floating fields in float regs.
12313         (function_arg_record_value_2): Likewise.
12314
12315 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
12316
12317         * config/mmix/mmix.md (define_constants): Remove misleading
12318         FIXME.  Add MMIX_fp_rO_OFFSET.
12319         ("nonlocal_goto_receiver"): Don't have stack-frame address of
12320         saved rO as part of the pattern.  Remove FIXME.
12321         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
12322         here, at output-time.
12323
12324 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
12325
12326         PR middle-end/6100
12327         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
12328         REG_BR_PRED.
12329         (output_v9branch): Likewise.
12330
12331 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
12332
12333         * gcc.c: Revert previous patch for now.
12334         * config/i386/djgpp.h: Likewise.
12335
12336 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
12337
12338         * config/mmix/crti.asm (_init): Register _fini with atexit.
12339         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
12340
12341 2002-03-31  Richard Henderson  <rth@redhat.com>
12342
12343         PR target/3997
12344         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
12345         (ASM_OUTPUT_DEF_FROM_DECLS): New.
12346
12347 2002-03-31  Richard Henderson  <rth@redhat.com>
12348
12349         * libgcc2.c (__bb_exit_func): Make static.
12350
12351         * config/alpha/alpha.md (trap): New.
12352
12353 2002-03-31  Richard Henderson  <rth@redhat.com>
12354
12355         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
12356         promoted argument types; build trap.
12357         (expand_builtin_trap): New.
12358         (expand_builtin): Use it.
12359         * stmt.c (expand_nl_goto_receivers): Likewise.
12360         * expr.h (expand_builtin_trap): Declare.
12361         * libfuncs.h (LTI_abort, abort_libfunc): New.
12362         * optabs.c (init_optabs): Init abort_libfunc.
12363
12364 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
12365
12366         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
12367         (LINK_COMMAND_SPEC): ... from here.
12368         (init_gcc_specs): Duplicate it here too, omitting
12369         shared_name in the second copy.
12370         (init_spec): Test for duplicate
12371         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
12372
12373 2002-03-30  David S. Miller  <davem@redhat.com>
12374
12375         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
12376         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
12377
12378 2002-03-30  Roger Sayle <roger@eyesopen.com>
12379             Richard Henderson  <rth@redhat.com>
12380
12381         * regmove.c (combine_stack_adjustments_for_block): Avoid
12382         emitting a stack adjustment of zero bytes.  Let delete_insn
12383         update bb->head.
12384
12385 2002-03-30  Richard Henderson  <rth@redhat.com>
12386
12387         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
12388         (sparc_emitting_epilogue): New.
12389         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
12390         * config/sparc/sparc-protos.h: Update.
12391         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
12392         (TARGET_SWITCHES): Update.
12393         * config/sparc/sparc.md (return): Remove.
12394         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
12395         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
12396         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
12397         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
12398         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
12399         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
12400         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
12401         Remove MASK_EPILOGUE.
12402         * doc/invoke.texi: Update.
12403
12404 2002-03-30  Daniel Berlin  <dan@dberlin.org>
12405
12406         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
12407         CPP will start the file for us.
12408
12409 2002-03-30  Richard Henderson  <rth@redhat.com>
12410
12411         PR target/5446
12412         * config/ia64/ia64.c (group_barrier_needed_p): Special case
12413         prologue_allocate_stack.
12414         (ia64_single_set): Use insn codes for recognition of special
12415         cases, not rtl matching.
12416         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
12417
12418 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
12419
12420         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
12421
12422 2002-03-30  Richard Henderson  <rth@redhat.com>
12423
12424         PR target/6032
12425         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
12426         or -fomit-frame-pointer with profiling.
12427         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
12428         (FUNCTION_PROFILER): Do nothing.
12429         (PROFILE_HOOK): New.
12430         * config/sparc/sparc.c (sparc_override_options): Don't check
12431         code models for profiling.
12432         (sparc_function_profiler): Remove.
12433         (sparc_profile_hook): New.
12434         * config/sparc/sparc-protos.h: Update.
12435
12436 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
12437
12438         PR optimization/6086
12439         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
12440         of SUBREG of volatile MEM or because the MEM was mode dependent,
12441         return CLOBBER instead of unmodified SUBREG.
12442
12443 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
12444
12445         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
12446         when not optimizing.
12447
12448         * toplev.c (rest_of_compilation): Cann mark_constant_function
12449         only when optimizing.
12450
12451         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
12452         are NULL.
12453
12454         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
12455         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
12456         (try_optimize_cfg): clear all AUX fields.
12457
12458         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
12459         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
12460         (ix86_address_cost): Be prepared for SUBREGed registers.
12461         (legitimate_address_p): Accept SUBREGed registers.
12462
12463 2002-03-29  Richard Henderson  <rth@redhat.com>
12464
12465         PR target/5672
12466         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
12467
12468 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12469
12470         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
12471         for aggregate and TFmode types.
12472
12473 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
12474
12475         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
12476
12477 2002-03-29  Richard Henderson  <rth@redhat.com>
12478
12479         PR target/5886
12480         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
12481         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
12482
12483 2002-03-29  Richard Henderson  <rth@redhat.com>
12484
12485         PR target/6041
12486         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
12487         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
12488         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
12489         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
12490         conditional.
12491         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
12492
12493 2002-03-29  Dale Johannesen <dalej@apple.com>
12494
12495         * loop.c (combine_movables): Do allow combination of pseudos.
12496
12497 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
12498
12499         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
12500         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
12501         No functional change except ...
12502         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
12503         * doc/install.texi (*-*-freebsd*): Document port configuration.
12504
12505 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12506
12507         * Makefile.in (convert.o, calls.o, expmed.o): Update.
12508         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
12509         Use new hooks.
12510         * builtin-types.def (BT_PTRMODE): Update.
12511         * c-common.c (type_for_size): Rename c_common_type_for_size.
12512         (type_for_mode): Similarly.
12513         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
12514         Use new hook.
12515         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
12516         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
12517         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
12518         Redefine.
12519         * c-typeck.c (common_type, comptypes, default_conversion):
12520         Use new hooks.
12521         * calls.c: Include langhooks.h.
12522         (emit_library_call_value_1): Use new hooks.  Avoid redundant
12523         calls.
12524         * convert.c: Include langhooks.h
12525         (convert_to_pointer, convert_to_integer): Use new hooks.
12526         * except.c (init_eh): Similarly.
12527         * expmed.c: Include langhooks.h.
12528         (expand_mult_add): Use new hooks.
12529         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
12530         try_casesi): Similarly.
12531         * fold-const.c (optimize_bit_field_compare, make_range,
12532         decode_field_reference, fold_truthop, fold): Similarly.
12533         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
12534         put_var_into_stack): Similarly.
12535         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
12536         LANG_HOOKS_TYPE_FOR_SIZE): New.
12537         (LANG_HOOKS_TYPES_INITIALIZER): Update.
12538         * langhooks.h (lang_hooks_for_types): New hooks.
12539         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
12540         * tree.c (get_unwidened, get_narrower): Similarly.
12541         * tree.h (type_for_mode, type_for_size): Remove.
12542         * varasm.c (force_const_mem): Use new hooks.
12543         * utils2.c (nonbinary_modular_operation): Update.
12544 objc:
12545         * objc-act.c (handle_impent): Update.
12546         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
12547         Redefine.
12548
12549 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
12550
12551         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
12552         * config/ia64/ia64.c (basereg_operand): New.
12553         * config/ia64/ia64-protos.h (basereg_operand): Declare.
12554         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
12555
12556 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
12557
12558         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
12559         unwind information when frame_pointer_needed.
12560         (mmix_assemble_integer): Tweak wording in comment.
12561
12562 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12563
12564         * Makefile.in (except.o): Update.
12565         * except.c: Include langhooks.h.
12566         (init_eh): Use langhook.
12567         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
12568         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
12569         (LANG_HOOKS_INITIALIZER): Update.
12570         * langhooks.h (lang_hooks_for_types): New.
12571         (struct lang_hooks): Add it.
12572         * tree.c (make_lang_type_fn, make_lang_type): Remove.
12573         * tree.h (make_lang_type_fn, make_lang_type): Remove.
12574 config:
12575         * alpha/alpha.c: Include langhooks.h.
12576         (alpha_build_va_list): Use langhook.
12577         * d30v/d30v.c: Include langhooks.h.
12578         (d30v_build_va_list): Use langhook.
12579         * i386/i386.c: Include langhooks.h.
12580         (ix86_build_va_list): Use langhook.
12581         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
12582         * s390/s390.c: Include langhooks.h.
12583         (s390_build_va_list): Use langhook.
12584         * stormy16/stormy16.c: Include langhooks.h.
12585         (stormy16_build_va_list): Use langhook.
12586
12587 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
12588
12589         PR c++/5964
12590         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
12591         attributes.
12592         (length): Compute variable length for branches/calls/jumps here.
12593         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
12594         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
12595         define branch_type attribute.
12596         (divsi3_sp32): Maximum length is 6 not 7.
12597         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
12598         call_address_untyped_struct_value_sp32,
12599         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
12600         * config/sparc/sparc.c (empty_delay_slot): New function.
12601         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
12602         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
12603
12604 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
12605
12606         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
12607         nonzero_bits if not needed.
12608         (nonzero_bits) [XOR]: Likewise.
12609         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
12610         reg_last_set_mode and mode are both MODE_INT, but not equal.
12611         (record_value_for_reg): Compute reg_last_set_nonzero_bits
12612         in nonzero_bits_mode for MODE_INT modes.
12613
12614 2002-03-28  Richard Henderson  <rth@redhat.com>
12615
12616         PR target/5715
12617         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
12618         to GAS.  Correct drift between alternatives.
12619
12620 2002-03-28  Richard Henderson  <rth@redhat.com>
12621
12622         PR target/6087
12623         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
12624
12625 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
12626
12627         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
12628         emulation to the linker.
12629
12630 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
12631
12632         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
12633         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
12634
12635 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
12636
12637         * combine.c (simplify_and_const_int): Make sure to apply mask
12638         when force_to_mode returns a constant integer.  PR3311.
12639
12640 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12641
12642         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
12643
12644 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12645
12646         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
12647         and Objective-C Dialect Options.
12648
12649 2002-03-28  Richard Henderson  <rth@redhat.com>
12650
12651         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
12652         comparison should be done vs !=0 not >0 return code.  Tidy cases.
12653
12654 2002-03-28  Richard Henderson  <rth@redhat.com>
12655
12656         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
12657         on to c_expand_body.
12658         * c-tree.h (finish_function): Update decl.
12659         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
12660
12661 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
12662
12663         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
12664
12665 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
12666
12667         * rtlanal.c: Include flags.h
12668         (may_trap_p): Do not mark FP operations if trapping
12669         if !flag_trapping_math
12670         * Makefile.in (rtlanal.o): Add dependency on flag.h
12671         * ifcvt.c (noce_operand_ok): Avoid the lameness.
12672
12673 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
12674
12675         * mips.md: Use dconst1, not 1.0, as first argument of
12676         REAL_VALUE_LDEXP.  Don't use union real_extract.
12677
12678 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
12679
12680         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
12681         rather than $target.  Heed program_prefix and
12682         program_transform_name.  Search for gas in cross-compiler case too.
12683         "test -x" rather than "test -f".
12684         (gcc_cv_ld): Likewise.
12685         (gcc_cv_nm): Heed program_prefix and program_transform_name.
12686         (gcc_cv_objdump): Likewise.
12687         * configure: Regenerate.
12688
12689 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12690
12691         * Makefile.in (attribs.o): Update.
12692         * attribs.c: Include langhooks.h.
12693         (decl_attributes): Use langhook.
12694         * c-decl.c (insert_default_attributes): Rename.
12695         * c-tree.h (c_insert_default_attributes): New.
12696         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
12697         (LANG_HOOKS_INITIALIZER): Update.
12698         * langhooks.h (struct lang_hooks): New hook.
12699         * tree.h (insert_default_attributes): Remove.
12700 objc:
12701         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
12702
12703 2002-03-27  Andreas Schwab  <schwab@suse.de>
12704
12705         * config/i386/i386.c (classify_argument): Also check for
12706         QUAL_UNION_TYPE.
12707
12708 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12709
12710         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
12711         any more.
12712
12713 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12714
12715         * i960.md (ret): Set PC.
12716         (nonlocal_goto): Fix expander.
12717         * builtins.c (epxand_builin_longjmp): Check that we've emitted
12718         some jump or call.
12719
12720 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
12721
12722         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
12723         of libcall regions.
12724
12725 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12726
12727         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
12728         assigning to BLOCK_FOR_INSN directly.
12729
12730 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
12731
12732         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
12733
12734 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12735
12736         * c-common.c (c_expand_expr): Fix prototype.
12737         * c-common.h (c_expand_expr): Always declare, update.
12738         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12739         * c-objc-common.c (c_objc_common_init): No global hook.
12740         * expr.c (expand_expr): Use langhook.
12741         * expr.h (enum expand_modifier): Conditionally declare.
12742         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
12743         (LANG_HOOKS_INITIALIZER): Update.
12744         * langhooks.c (lhd_expand_expr): New.
12745         * langhooks.h (struct lang_hooks): New hook.
12746         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
12747         (lang_independent_init): Don't default hook.
12748 objc:
12749         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12750
12751 2002-03-27  Richard Henderson  <rth@redhat.com>
12752
12753         PR target/6054
12754         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
12755         TARGET_CONST_GP.  Simplify conditions.
12756
12757 2002-03-27  Richard Henderson  <rth@redhat.com>
12758
12759         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
12760         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
12761         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
12762
12763 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
12764
12765         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
12766         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
12767         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
12768         Remove unnecessary masks.
12769         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
12770         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
12771         -mwindows, -mdll switches and their negations.
12772
12773 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12774
12775         * gcc-common.c (lang_mark_false_label_stack): Remove.
12776         * ggc.h (lang_mark_false_label_stack): Similarly.
12777
12778 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
12779
12780         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
12781
12782         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
12783         or __rtems_ is defined.
12784
12785 2002-03-26  Richard Henderson  <rth@redhat.com>
12786
12787         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
12788         if a non-trivial load was emitted.
12789         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
12790         in high+extra+low case.
12791
12792 2002-03-26  Richard Henderson  <rth@redhat.com>
12793
12794         * config.gcc (sparc*-solaris): Use float_format=sparc.
12795
12796 2002-03-26  Richard Henderson  <rth@redhat.com>
12797
12798         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12799         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
12800         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
12801         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
12802         (WINT_TYPE_SIZE): Fix at 32.
12803
12804 2002-03-26  Richard Henderson  <rth@redhat.com>
12805
12806         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
12807         until after eh landing pad generation.
12808         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
12809         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
12810
12811 2002-03-26  Richard Henderson  <rth@redhat.com>
12812
12813         * expr.h (ADD_PARM_SIZE): One more convert for INC.
12814
12815 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
12816
12817         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
12818         and warning switches.
12819         (cc1_options):  Likewise.
12820
12821 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
12822
12823         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
12824         Restore more of the signal context.  Set no_reg_stack_frame.
12825         * config/ia64/unwind-ia64.c (unw_state_record):
12826         Add no_reg_stack_frame, comments.
12827         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
12828         (uw_update_context): Adjust bsp when unwinding from leaf,
12829         but not signal frame.
12830
12831 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
12832
12833         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
12834
12835 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
12836
12837         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
12838
12839 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
12840
12841         PR target/5621
12842         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
12843         "Add a pool_range attribute", which was lost during the ARM/Thumb
12844         merge.
12845
12846 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
12847
12848         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
12849         a register into the MAC16 accumulator.
12850
12851 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
12852
12853         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
12854         (Warning Options): Document -Wswitch-enum.
12855         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
12856         -Wswitch.
12857         (warn_switch_enum): Define variables.
12858         * flags.h (warn_switch_enum): Declare variables.
12859         * stmt.c (expand_end_case_type): When warn_switch_enum /
12860         -Wswitch-enum, perform switch checks.
12861         Fix PR c/5044.
12862
12863 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
12864
12865         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
12866         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
12867         (reload_muladdsi_compare0_scratch): Delete.
12868
12869 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
12870
12871         * doc/install.texi (*-*-freebsd*): Update.
12872
12873 2002-03-26  Richard Henderson  <rth@redhat.com>
12874
12875         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
12876         (SUB_PARM_SIZE): Cast DEC to ssizetype.
12877
12878         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
12879         types from the normal argument frame.
12880
12881         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
12882         variable sized objects by reference.
12883         (sparc_va_arg): Receive them by reference too.
12884
12885 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
12886
12887         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
12888         code to not restoring global registers.
12889
12890 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
12891
12892         * Makefile.in (ggc-common.o): Update.
12893         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
12894         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12895         * c-tree.h (c_mark_tree): New.
12896         * ggc-common.c: Include langhooks.h.
12897         (gcc_mark_trees): Use new langhook.
12898         * ggc-callbacks.c: Delete file.
12899         * ggc.h (lang_mark_tree): Remove.
12900         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
12901         (LANG_HOOKS_INITIALIZER): Update.
12902         * langhooks.h (struct lang_hooks): New hook.
12903 objc:
12904         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
12905
12906 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
12907
12908         * doc/cpp.texi: Exclude entire Top node from printed manual.
12909         Move option index after directive index.  Insert page breaks
12910         before GFDL and concept index.  Index environment variables
12911         with command line options.
12912         * doc/cppenv.texi: Use @vtable for environment variable list.
12913         Add paragraph explaining semantics of empty elements in path
12914         variables.  Exclude a cross-reference to Fishkill from the
12915         manpage.  Remove an unnecessary cross-reference of the entry
12916         right above the referer.  Don't use @anchor in text that goes
12917         into manpage.
12918         * doc/cppopts.texi: Cross-reference the environment variables
12919         section, not the specific environment variable, for consistency.
12920
12921 2002-03-25  Richard Henderson  <rth@redhat.com>
12922
12923         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
12924         anywhere in the block.  Don't refer to insns that have been
12925         removed from the chain.  Iterate backward through the new insns.
12926         Don't refer to edges that have been removed.
12927
12928 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
12929
12930         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
12931         test for overflow of constant.
12932
12933 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
12934
12935         PR target/2623
12936         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
12937         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
12938         these patterns on arm_archv4.
12939
12940 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
12941
12942         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
12943         int".
12944
12945 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
12946
12947         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
12948         float_handled, float_handler, float_signal, set_float_handler,
12949         and do_float_handler.  Set handler for SIGFPE to crash_signal.
12950         * toplev.h: Don't prototype do_float_handler.
12951
12952         * c-lex.c: Fold parse_float into lex_number.  Make warning
12953         about portability of hex float constants more informative, and
12954         don't issue it on top of a syntax error.
12955         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
12956         their callers.
12957         * real.h: Define REAL_VALUE_ABS here...
12958         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
12959         simplify_unary_real, simplify_binary_real, and
12960         simplify_binary_is2orm1 into their callers.
12961         * tree.c: Fold build_real_from_int_cst_1 into caller.
12962
12963         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
12964
12965         * tsystem.h: Include float.h here...
12966         * libgcc2.c: ... not here.
12967
12968 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
12969
12970         Fixes for: PR bootstrap/3591, target/5676
12971         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
12972         defined.  Do not disable exceptions or rtti.
12973         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
12974         mcore.h.  Disable exceptions and rtti, since they are not
12975         supported by EPOC.
12976
12977 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
12978
12979         * c-decl.c (maybe_build_cleanup): Remove.
12980         * expr.c (expand_expr): Use langhook.
12981         * langhooks-def.h (lhd_return_null_tree,
12982         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
12983         (LANGHOOKS_INITIALIZER): Update.
12984         * langhooks.c (lhd_return_null_tree): New.
12985         * langhooks.h (struct lang_hooks): New hook.
12986         * tree-inline.c (initialize_inlined_parameters): Use langhook.
12987         * tree.h (maybe_build_cleanup): Remove.
12988
12989 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
12990
12991         * regrename.c (build_def_use): Move recog_memoized
12992         before extract_insn.
12993
12994 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
12995
12996         PR target/6043
12997         * expr.c (emit_group_store): Handle storing into CONCAT.
12998
12999 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
13000
13001         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
13002         corresponding MATCH_DUP.
13003
13004 2002-03-24  Richard Henderson  <rth@redhat.com>
13005
13006         * unroll.c (unroll_loop): Zero label_map.
13007
13008         * gcse.c: Include except.h.
13009         * Makefile.in (gcse.o): Update.
13010
13011 2002-03-24  Richard Henderson  <rth@redhat.com>
13012
13013         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
13014         Do resolve_unique_section before shared data clause.
13015
13016 2002-03-24  Richard Henderson  <rth@redhat.com>
13017
13018         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
13019
13020 2002-03-24  Richard Henderson  <rth@redhat.com>
13021
13022         * recog.c (peephole2_optimize): Split blocks when EH insns are
13023         generated in the middle of a block.  Do global life update if
13024         zapped EH edges.
13025
13026 2002-03-24  Richard Henderson  <rth@redhat.com>
13027
13028         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
13029
13030 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
13031
13032         preprocessor/3951
13033         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
13034         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
13035         (init_dependency_output): Don't make no_output decision here.
13036
13037 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
13038
13039         * stmt.c (check_for_full_enumeration_handling): Remove tests of
13040         warn_switch.  Update description.
13041         (expand_end_case_type): Call check_for_full_enumeration_handling
13042         when warn_switch.
13043
13044 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13045
13046         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
13047         (m68hc11_split_move): Call it to see if the source and destination
13048         operands use the same direction auto inc/dec mode, otherwise make the
13049         source an offsetable memory operand and generate an add.
13050
13051 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13052
13053         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
13054         register for operand 2.
13055         ("*subsi3_zero_extendqi"): Likewise.
13056         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
13057         bits so that it is compatible with a pop.
13058         ("*andhi3_gen"): Likewise.
13059         ("xorhi3"): Likewise.
13060
13061 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
13062
13063         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
13064         -pedantic here...
13065         (cpp_post_options): ... not here.
13066
13067 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
13068             Aldy Hernandez  <aldyh@redhat.com>
13069
13070         Removal of separate preprocessor cpp0.
13071
13072         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
13073         cpp0, install-common): Update.
13074         * c-common.c (flag_preprocess_only): New.
13075         (c_common_init): Preprocess for -E.
13076         * c-common.h (flag_preprocess_only): New.
13077         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
13078         * c-objc-common.c (c_init_decl_processing): Exit quickly
13079         for NULL return from c_common_init.
13080         * cpplib.h (cpp_preprocess_file): New.
13081         * cppmain.c (main, general_init, pfile, progname): Remove.
13082         (do_preprocessing): Rename cpp_preprocess_file, don't call
13083         cpp_finish.  Don't close stdout here.
13084         (setup_callbacks): Update prototype.
13085         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
13086         Update.
13087         * tradcpp.c (main): Ignore -quiet.
13088 objc:
13089         * lang-specs.h (default_compilers): Preprocess with cc1obj.
13090
13091 2002-03-24  Richard Henderson  <rth@redhat.com>
13092
13093         PR optimization/5742
13094         * machmode.def: Add inner mode field to complex modes.
13095         * config/mips/mips.c (mips_function_value): Always define.  Add
13096         new argument to handle libcalls.
13097         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
13098         (FUNCTION_VALUE): Likewise.
13099         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
13100         * config/mips/mips-protos.h: Update.
13101
13102 2002-03-23  Richard Henderson  <rth@redhat.com>
13103
13104         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
13105         * config/sparc/sparc-protos.h: Update.
13106         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
13107
13108 2002-03-23  Richard Henderson  <rth@redhat.com>
13109
13110         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
13111         _start or _init begins the text segment.
13112
13113 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
13114
13115         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
13116         not HOST_WIDEST_INT.
13117         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
13118
13119 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
13120
13121         PR java/5489
13122         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
13123         operand argument to output_return_instruction.
13124         * arm.c (arm_print_operand, case 'd'): If the operand is
13125         const_true_rtx then just return.
13126         (arm_print_operand, case 'D'): If the operand is const_true_rtx
13127         then abort.
13128
13129 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
13130
13131         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
13132         (Warning Options): Document -Wswitch-default.
13133         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
13134         -Wswitch.
13135         (warn_switch_default): Define variable.
13136         (warn_switch): Update comment.
13137         * flags.h (warn_switch_default): Declare variable.
13138         (warn_switch): Update comment.
13139         * stmt.c (expand_end_case): Check for and, when
13140         warn_switch_no_default, warn of a missing default case.
13141
13142 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
13143
13144         * real.h (N): Special case 128 bit doubles.
13145
13146         * combine.c (simplify_comparison): When widening modes, ignore
13147         sign extension on CONST_INTs.
13148
13149 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
13150
13151         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
13152         passed to adjust_address.  Fix comment formatting.
13153
13154
13155 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
13156
13157         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
13158         Always make REAL_VALUE_TYPE a struct containing an array of
13159         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
13160         big it is.  Don't declare or use union real_extract.
13161
13162         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
13163         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
13164         (print_operand), config/arm/arm.c (output_move_double),
13165         config/arm/arm.md (consttable_4, consttable_8),
13166         config/romp/romp.c (output_fpops), config/s390/s390.h
13167         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
13168         (xtensa_output_literal): Don't use union real_extract.
13169
13170         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
13171         (sfmode_constant_to_ulong), config/ns32k/merlin.h
13172         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
13173         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
13174         (PRINT_OPERAND): Don't use local version of union
13175         real_extract.
13176
13177         * config/convex/convex.c (check_float_value), config/vax/vax.c
13178         (vax_float_literal), config/m88k/m88k.md (divdf3),
13179         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
13180         config/pdp11/pdp11.c (output_move_quad): Don't do host
13181         arithmetic on target floating point quantities.
13182
13183         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
13184         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
13185
13186         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
13187         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
13188
13189         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
13190         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
13191         INFINITY.
13192         * print-rtl.c (print_rtx): Disable code which needs
13193         floating-point emulator.
13194         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
13195         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
13196         depending on HOST_FLOAT_FORMAT to be defined properly.
13197
13198         * config/1750a/1750a.c (get_double, float_label): Delete.
13199         (print_operand): Delete huge commented-out chunk.  Use
13200         REAL_VALUE_TO_DECIMAL.
13201         * config/1750a/1750a-protos.h: Delete prototypes of deleted
13202         functions.
13203         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
13204         IEEE_FLOAT_FORMAT.
13205         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
13206         Use REAL_VALUE_TO_DECIMAL as ELF version does.
13207         * config/m88k/m88k.c (real_power_of_2_operand,
13208         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
13209         real_extract out of the union; run the input through
13210         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
13211         from that into the union.
13212         * config/pdp11/pdp11.c (output_move_double): Rearrange
13213         parentheses to make automatic indenter happy.
13214
13215         * doc/tm.texi (Cross-compilation): Rename node to "Floating
13216         Point" and rewrite to describe current situation.  Also adjust
13217         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
13218         match code.
13219         * doc/rtl.texi: Adjust cross reference.
13220
13221 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
13222
13223         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
13224         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
13225         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
13226         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
13227         prevent use of sp as a reload register.
13228         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
13229         non_acc_reg_operand.
13230         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
13231         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
13232         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
13233         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
13234
13235 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
13236
13237         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
13238         * cpplex.c (unterminated): Delete.
13239         (parse_string): No string literal may extend over multiple
13240         lines.  Suppress the error when preprocessing assembly.
13241         * cppmain.c (scan_translation_unit): Strings are single-line.
13242
13243         * doc/cpp.texi: Update to match.
13244
13245 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
13246
13247         PR optimization/5854
13248         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
13249         Shut up warnings.
13250         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
13251         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
13252         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
13253         const0 if scratch register was not allocated.
13254         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
13255         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
13256         with GEN_INT (...).
13257         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
13258         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
13259         with GEN_INT (...) everywhere.  Remove constraints in define_split
13260         patterns.
13261         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
13262         require scratch register for setting 0 into regs/non-pushable memory.
13263
13264 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
13265
13266         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
13267         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
13268
13269 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
13270
13271         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
13272         * cppinit.c (cpp_create_reader):  On by default.
13273         (cpp_handle_option):  Handle -W[no-]endif-labels.
13274         (cpp_post_options):  Also enable if -pedantic.
13275         * cpplib.c (do_else):  Use it.
13276         (do_endif):  Likewise.
13277         * doc/cppopts.texi:  Document new option.
13278         * doc/invoke.texi:  Document new option.
13279
13280 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
13281
13282         * config/i386/i386.c, config/i386/i386.md: Change all occurences
13283         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
13284
13285 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
13286
13287         * flow.c (calculate_global_regs_live): Clear aux fields of
13288         ENTRY and EXIT.
13289
13290 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
13291
13292         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
13293         REG or MEM subregs, pass rtx * instead of rtx to it.
13294         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
13295         rtx * instead of rtx to alter_subreg.
13296         * config/m32r/m32r.c (gen_split_move_double): Likewise.
13297         * config/pj/pj.c (pj_output_rval): Likewise.
13298
13299 2002-03-22  Richard Henderson  <rth@redhat.com>
13300
13301         PR target/3177
13302         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
13303         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
13304         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
13305         (ia64_expand_prologue): Look at int_regs, not words, for number
13306         of incomming int regs.
13307
13308 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
13309
13310         * expr.c (expand_expr): A RESULT_DECL is part of a call.
13311
13312 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
13313
13314         * toplev.c (flag_loop_optimize, flag_crossjumping):
13315         New static variables.
13316         (rest_of_compilation): Conditionalize crossjumping and
13317         loop optimizer.
13318         (parse_options_and_default_flags): Default loop_optimize and
13319         crossjumping.
13320         (lang_independent_options): Add -fcrossjumping and -floop-optimize
13321         * invoke.texi (crossjumping, loop-optimize): Document.
13322
13323 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13324
13325         * real.c (eiisneg): Move outside #ifdef NANS.
13326
13327 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
13328
13329         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
13330         frequencies match; avoid match on different loop depths.
13331         (try_crossjump_to_bb): Kill tests that no longer brings time
13332         savings.
13333         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
13334         updating code.
13335         (split_edge): Likewise.
13336
13337         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
13338         variable.
13339
13340         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
13341         * cfgrtl.c: Include insn-config.h
13342         (split_block) Dirtify block in presence of conditional execution
13343
13344 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13345
13346         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
13347         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
13348         (function_arg): Constify CUMULATIVE_ARGS.
13349         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
13350         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
13351         (UNITS_PER_DOUBLE): New macro.
13352         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
13353         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
13354         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
13355         fp_regs and stack_words.
13356         (EABI_FLOAT_VARARGS_P): New macro.
13357         * config/mips/mips.c (struct mips_arg_info): New.
13358         (mips_arg_info): New function.
13359         (function_arg_advance): Use it.  Add adjustment instructions here
13360         rather than in function_arg.
13361         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
13362         for VOIDmode at the beginning of the function.
13363         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
13364         (function_arg_pass_by_reference): Likewise.
13365         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
13366         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
13367         (mips_va_start): Likewise.  Use the new stack_words field of
13368         CUMULATIVE_ARGS to set up overflow area.  Reformat.
13369         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
13370         doubles and other types, aligning the overflow pointer for non-doubles
13371         too.  Remove some code duplication.  Replace hard-coded constants.
13372
13373 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
13374
13375         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
13376         (CLASS_UNITS): Undefine.
13377         (CLASS_MAX_NREGS): Use FP_INC.
13378         * config/mips/mips.c (compute_frame_size): Likewise.
13379         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
13380
13381 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
13382
13383         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
13384         prototype, and handle lexing numbers and identifiers.
13385         (parse_identifier): Update to new form of parse_slow.
13386         (parse_number): Fast path only, use parse_slow otherwise.
13387         (_cpp_lex_direct): Update calls to parse_number.
13388
13389 2002-03-21  DJ Delorie  <dj@redhat.com>
13390
13391         * bb-reorder.c (make_reorder_chain_1): Protect against
13392         when redundant edges are omitted.
13393         * predict.c (dump_prediction): Likewise.
13394
13395 2002-03-21  Richard Henderson  <rth@redhat.com>
13396
13397         PR target/5996
13398         * fixinc/inclhack.def (solaris_stdio_tag): New.
13399         * fixinc/fixincl.x: Regenerate.
13400
13401 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
13402
13403         PR c/5597
13404         * c-typeck.c (process_init_element): Flag non-static
13405         initialization of a flexible array member as illegal.
13406
13407 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
13408
13409         * config/rs6000/t-linux64: New.
13410         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
13411         t-ppccomm.  Use t-rs6000 and t-linux64.
13412         (powerpc64-*-gnu* <tmake_file>): Likewise.
13413         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
13414         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
13415         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
13416
13417 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
13418
13419         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
13420         flag_really_no_inline instead of optimize == 0.
13421
13422         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
13423
13424         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
13425
13426         * flags.h (flag_really_no_inline): New.
13427
13428         * c-common.c (c_common_post_options): Initialize
13429         flag_really_no_inline.
13430
13431         * toplev.c (flag_really_no_inline): New.
13432
13433 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
13434
13435         * config/avr/avr.md (length): Fix length computation for
13436         conditional branches.
13437
13438 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
13439
13440         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
13441         sdbout.o, profile.o): Update.
13442         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
13443         langhook.
13444         * c-common.h (gettags): Move here from tree.h.
13445         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
13446         insert_block, getdecls, kept_level_p, global_bindings_p): New.
13447         * dbxout.c (dbxout_init): Use getdecls langhook.
13448         * expr.c (expand_expr): Use insert_block langhook.
13449         * fold-const.c: Include langhooks.h.
13450         (fold_range_test, fold_binary_op_with_conditional_arg,
13451         fold): Use global_bindings_p langhook.
13452         * integrate.c (expand_inline_function): Use insert_block langhook.
13453         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
13454         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
13455         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
13456         LANG_HOOKS_GETDECLS): New.
13457         (LANG_HOOKS_INITIALIZER): Update.
13458         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
13459         langhook.
13460         * langhooks.h (struct lang_hooks_for_decls): New.
13461         (struct lang_hooks): Update.
13462         * profile.c: Include langhooks.h.
13463         (output_func_start_profiler): Use new langhooks.
13464         * sdbout.c: Include langhooks.h.
13465         (sdbout_init, sdbout_finish): Use getdecls langhook.
13466         * stmt.c: Include langhooks.h.
13467         (expand_fixup, fixup_gotos): Use new langhooks.
13468         * stor-layout.c: Include langhooks.h.
13469         (variable_size): Use global_bindings_p langhook.
13470         * toplev.c (compile_file): Use getdecls langhook.
13471         * tree-inline.c (remap_block): Use insert_block langhook.
13472         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
13473         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
13474
13475 2002-03-21  Richard Henderson  <rth@redhat.com>
13476
13477         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
13478         constants in .data when -fpic.
13479
13480 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13481
13482         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
13483         where appropriate.
13484
13485 2002-03-21  Tom Tromey  <tromey@redhat.com>
13486
13487         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
13488
13489 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13490
13491         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
13492
13493         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
13494
13495 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
13496             Richard Henderson  <rth@redhat.com>
13497
13498         PR c/5354
13499         * c-common.c (c_expand_expr): Preserve result of a statement
13500         expression if needed.
13501
13502 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
13503
13504         PR bootstrap/4195
13505         * genrecog.c (maybe_both_true_mode): Remove.
13506         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
13507         * machmode.def (Pmode): Likewise.
13508
13509 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
13510
13511         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
13512         (nonlocal_mentioned_p_1): New function.
13513         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
13514         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
13515         (mark_constant_function): Recognize pure functions.
13516         * rtl.h (global_reg_mentioned_p): New prototype.
13517         * rtlanal.c (global_reg_mentioned_p,
13518         global_reg_mentioned_p_1): New function.
13519
13520 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13521
13522         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
13523         UNIX assert.h.
13524         * fixinc/fixincl.x: Regenerate.
13525
13526 2002-03-20  Jason Merrill  <jason@redhat.com>
13527
13528         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
13529
13530 2002-03-20  Michael Meissner  <meissner@redhat.com>
13531
13532         * doc/invoke.texi (Optimize Options): Document that -O2 sets
13533         -fstrict-aliasing.
13534
13535 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
13536
13537         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
13538         ".literal_position" directive before the constant pool.
13539
13540 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13541
13542         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
13543         Add Craig Rodrigues.
13544         Add Brad Lucier to testers.
13545
13546 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13547
13548         PR target/4792
13549         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
13550         to if_then_else.
13551         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
13552         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
13553         instead of insn_extract.
13554
13555 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13556
13557         PR bootstrap/4192
13558         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
13559
13560         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
13561         stmt if some case has been output.
13562
13563 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
13564
13565         PR c/5972
13566         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
13567         movsfcc_1, movdfcc_1): Add %O2.
13568         * config/i386/i386.c (print_operand): Handle %ON.
13569         Print . before float condition codes in Sun as cmov syntax.
13570         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
13571         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
13572         no longer true.
13573
13574 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
13575
13576         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
13577         return instruction if PC was popped.
13578
13579 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
13580
13581         * config/xtensa/xtensa.md: Remove unused type attributes.
13582         (adddi_carry, subddi_carry): Change type attribute to "multi".
13583
13584 2002-03-19  Dale Johannesen  <dalej@apple.com>
13585
13586         PR optimization/5999, middle-end/5731
13587         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
13588         multiplications by reciprocals.
13589
13590 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
13591
13592         * Makefile.in: Update.
13593         * c-common.c: Include langhooks.h.
13594         (inline_forbidden_p): Use new hook.
13595         * diagnostic.c: Include langhooks.h.
13596         (format_with_decl, announce_function,
13597         default_print_error_function): Use new hook.
13598         * dwarf2out.c (dwarf2_name): Use new hook.
13599         * function.c: Include langhooks.h.
13600         (init_function_start): Use new hook.
13601         * langhooks-def.h (lhd_decl_printable_name): New.
13602         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
13603         (LANGHOOKS_INITIALIZER): Update.
13604         * langhooks.c (lhd_decl_printable_name): New.
13605         * langhooks.h (struct lang_hooks): New hook.
13606         * toplev.c (decl_name, decl_printable_name): Remove.
13607         (open_dump_file): Use new hook.
13608         (process_options): Remove old hook.
13609         * tree.h (decl_printable_name): Remove.
13610 objc:
13611         * objc-act.c (objc_init): Remove old hook.
13612         (objc_printable_name): Export.
13613         * objc-act.h (objc_printable_name): New.
13614         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
13615
13616 2002-03-19  Jim Blandy  <jimb@redhat.com>
13617
13618         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
13619         the start_source_file debug hook, not the current line number.
13620
13621 2002-03-19  Richard Henderson  <rth@redhat.com>
13622
13623         * flow.c (EH_USES): Provide default.
13624         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
13625         * doc/tm.texi (EH_USES): New.
13626
13627         * config/ia64/ia64.c (ia64_eh_uses): New.
13628         * config/ia64/ia64-protos.h: Update.
13629         * config/ia64/ia64.h (EH_USES): New.
13630
13631 2002-03-19  Richard Henderson  <rth@redhat.com>
13632
13633         * varasm.c (output_constant_def): Fix stupid typo.
13634
13635 2002-03-19  Richard Henderson  <rth@redhat.com>
13636
13637         PR 5879
13638         * except.c (current_function_has_exception_handlers): New.
13639         * except.h: Declare it.
13640         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
13641         Combine tests that disable all sibcalls for the function.
13642
13643 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
13644
13645         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
13646         for INTEGER_CST.
13647
13648 2002-03-19  Richard Henderson  <rth@redhat.com>
13649
13650         PR 5977, 5991
13651         * config/ia64/ia64.c: Revert 2002-03-01 patch.
13652         * config/ia64/ia64.h (INIT_EXPANDERS): New.
13653
13654 2002-03-19  Jim Blandy  <jimb@redhat.com>
13655
13656         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
13657         name, even if the replacement list contains no tokens, as required
13658         by Dwarf.
13659
13660 2002-03-19  Jason Merrill  <jason@redhat.com>
13661
13662         * varasm.c (globalize_decl): Get the name from the RTL, not
13663         DECL_ASSEMBLER_NAME.
13664
13665         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
13666
13667 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
13668
13669         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
13670         subdi_carry): Define.
13671
13672 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
13673
13674         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
13675         about -fpic/-fPIC if extra_warnings set.
13676
13677 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
13678
13679         * expr.c (expand_expr): Sign-extend CONST_INT generated from
13680         TREE_STRING_POINTER.
13681         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
13682
13683 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13684
13685         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
13686         in favor of SP if FRAME_POINTER_REQUIRED is false.
13687
13688 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
13689
13690         * emit-rtl.c (gen_int_mode): New function.
13691         * rtl.h: Prototype for it.
13692         * combine.c (make_extraction, simplify_comparison), expmed.c
13693         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
13694         (convert_modes, store_field), optabs.c (expand_fix),
13695         simplify-rtx.c (neg_const_int, simplify_unary_real),
13696
13697         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
13698         Use it instead of GEN_INT (trunc_int_for_mode (...)).
13699
13700 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
13701
13702         PR c/5656
13703         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
13704         convert_parm_for_inlining.
13705         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
13706         Define.
13707         * langhooks-def.h: Likewise.
13708         * objc/objc-lang.c: Likewise.
13709         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
13710         function.
13711         * tree-inline.c (initialize_inlined_parameters):
13712         Call convert_parm_for_inlining lang hook if needed.
13713         * c-typeck.c (c_convert_parm_for_inlining): New function.
13714         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
13715
13716 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
13717
13718         * calls.c (precompute_arguments): Do not assume that temporaries
13719         can be destroyed after expanding the argument.
13720         (expand_call): Likewise.
13721
13722 2002-03-15  Eric Christopher  <echristo@redhat.com>
13723
13724         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
13725         Fix register preference on last change.
13726         * config/mips/mips.c (mips_return_in_memory): New function.
13727         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
13728         * config/mips/mips-protos.h: Declare.
13729         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
13730         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
13731
13732 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
13733
13734         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
13735         a register too.
13736         (anddi3, iorsi3): Likewise.
13737
13738         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
13739         use %gprel for symbols that are going to be placed in linkonce
13740         sections.
13741
13742         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
13743         RETURN_ADDRESS_POINTER_REGNUM to $ra.
13744         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
13745         not needed.  Disregard leaf_function_p().
13746         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
13747         mips16 frame pointer.
13748         * config/mips/mips.md (store ra): Only to small SP offsets.
13749         2001-08-22  Graham Stott  <grahams@redhat.com>
13750         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
13751         return a REG rtx for the return address register.
13752
13753 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
13754
13755         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
13756         constant-pool addresses as "mode-dependent".
13757         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
13758
13759 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
13760
13761         PR target/5740
13762         * expr.c (emit_group_load): Use extract_bit_field if
13763         needed for CONCAT arguments.
13764
13765 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
13766
13767         PR target/4863
13768         * arm.md (tablejump): Make this a define_expand.  For PIC add the
13769         offset to the base of the table.
13770         (thumb_tablejump): Matcher for Thumb tablejump insn.
13771         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
13772         as the difference of two labels.
13773         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13774         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
13775         tables in the code.
13776         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
13777         * arm.c (get_jump_table_size): If the table is not in the text
13778         section, return zero.
13779
13780 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
13781
13782         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
13783         of gen_rtx_SUBREG.
13784         (arm_reload_out_hi): Use gen_lowpart instead of
13785         gen_rtx_SUBREG to access QImode components.
13786         * config/arm/arm.md: Disable zero_extend split for QImode
13787         subregs in BIG_ENDIAN mode.
13788         (storehi_bigend): Match use of least significant byte.
13789         (storeinthi): Remove extraneous SUBREG.
13790         Add missing construction of operands[2].
13791         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
13792         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
13793         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
13794
13795 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
13796
13797         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
13798         any_operand.
13799
13800 2002-03-17  Richard Henderson  <rth@redhat.com>
13801
13802         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
13803         explicitly.
13804
13805 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
13806
13807         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
13808         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
13809
13810 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13811
13812         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
13813
13814         * predict.c (estimate_bb_frequencies): Delete unused variables.
13815
13816 2002-03-17  Richard Henderson  <rth@redhat.com>
13817
13818         * config/ia64/ia64.c (ia64_attribute_table): Move before
13819         targetm definition.  Make static.
13820
13821 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
13822
13823         * c-common.h (yyparse, c_common_parse_file): New.
13824         * c-lang.c: Include c-common.h.
13825         (LANG_HOOKS_PARSE_FILE): Redefine.
13826         * c-lex.c: Include c-common.h.
13827         (yyparse): Rename c_common_parse_file.  Call yyparse.
13828         * c-parse.in (yyparse): Remove macro.
13829         * c-tree.h (yyparse_1): Remove.
13830         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
13831         (LANG_HOOKS_INITIALIZER): Update.
13832         * langhooks.h (struct lang_hoooks): New hook parse_file.
13833         * toplev.c (compile_file): Use parse_file hook.
13834         * tree.h (yyparse): Remove.
13835         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
13836
13837 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
13838
13839         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
13840         float_truncate, not fix.
13841         ("*truncdfsf2_real"): Ditto.
13842         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
13843
13844         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
13845
13846 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
13847
13848         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
13849         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
13850         where appropriate.  Make the second reference to
13851         leaf_function_p a function call, as intended.  Reindented.
13852
13853         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
13854         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
13855
13856         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
13857         add register to non-constant into sp.
13858
13859         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
13860         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
13861         (mips16_gp_pseudo_rtx): Lose.
13862         (INIT_EXPANDERS): Deleted.
13863         * config/mips/mips.c (mips_init_machine_status): New.
13864         (mips_free_machine_status): New.
13865         (mips_mark_machine_status): New.
13866         (override_options): Set them.
13867         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
13868         (struct machine_function): ... new.  Replaced all references.
13869         (mips_add_gc_roots): Don't mark them.
13870         (embedded_pic_fnaddr_reg): New, extracted from...
13871         (embedded_pic_offset): ... here.
13872         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
13873         (movsi): Likewise.
13874
13875 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
13876
13877         * cppinit.c: Revert -MD removal.
13878
13879 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13880
13881         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
13882         soft registers by default for 68HC12.
13883         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
13884         when compiling with -fomit-frame-pointer.
13885         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
13886         (expand_epilogue): Likewise.
13887         (m68hc11_gen_rotate): Use exg when rotating by 8.
13888
13889 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13890
13891         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
13892         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
13893         (splits): Remove unused add splits.
13894         ("*addhi3_68hc12"): Tune constraints.
13895         ("addhi_sp"): Try to use X instead of Y in all cases and if the
13896         constant fits in 8-bits and D is dead use abx/aby instructions.
13897         ("*addhi3"): Remove extern declaration of ix_reg.
13898         ("*subsi3"): Optimize and provide new split.
13899         ("subhi3"): Cleanup.
13900         ("*subhi3_sp"): Avoid saving X if we know it is dead.
13901         (arith splits): For 68hc12 save the address register on the stack
13902         and do the arithmetic operation with a pop.
13903
13904 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13905
13906         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
13907         allocating QImode in address registers.
13908         ("*movqi_m68hc11"): Likewise.
13909
13910 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
13911
13912         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
13913
13914 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
13915
13916         * cppinit.c (print_help): Display -MD and -MMD.
13917         Don't display usage string.  Update assertion syntax and
13918         typo.
13919         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
13920         (cpp_handle_option): Update.
13921
13922 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
13923
13924         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
13925         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
13926         and define it so that regardless of target CPU size,
13927         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
13928         of "int" rather than "long."
13929
13930 2002-03-15  Richard Henderson  <rth@redhat.com>
13931
13932         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
13933         size as a tree.
13934
13935 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13936
13937         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
13938         ("tstqi" split): Avoid using memory for tstqi on address register.
13939         (splits): Remove constraints.
13940         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
13941         ("cmpdf", "cmpsf"): Remove since not used.
13942         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
13943         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
13944
13945 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13946
13947         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
13948         ("neghi2"): Tighten constraints.
13949         ("one_cmplsi2"): Optimize and simplify split.
13950         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
13951
13952 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13953
13954         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
13955         and split of AND operation to clear the upper bits.
13956         ("*logicalsi3_zextqi"): Likewise.
13957         ("*logicallhi3_zexthi_ashift8"): Likewise.
13958         ("*logicalsi3_silshr16"): Likewise.
13959         ("logicalsi3_silshl16"): Likewise.
13960         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
13961
13962 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13963
13964         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
13965         (m68hc11_indirect_p): New function.
13966         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
13967         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
13968         TARGET_M6812.
13969         (asm_print_register): Likewise.
13970         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
13971         (m68hc11_indirect_p): Declare.
13972         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
13973         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
13974         (TARGET_SWITCHES): New option -mrelax.
13975         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
13976         destination.
13977         ("iorsi3", "xorsi3"): Likewise.
13978         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
13979         ("*andhi3_mem"): New to handle destination in memory with bclr
13980         and a scratch register.
13981         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
13982         ("*andhi3_const"): New when operand2 is constant.
13983         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
13984         ("*andhi3_gen"): Cleanup of the old "andhi3".
13985         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
13986         ("xorqi3"): Update constraints.
13987
13988 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13989
13990         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
13991         for reg_equiv_memory_loc when the operand is a register that does
13992         not get a hard register (stack location).
13993         (tst_operand): After reload, accept all memory operand.
13994         (symbolic_memory_operand): Fix detection of symbolic references.
13995         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
13996         accept symbols and any constant.
13997
13998 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13999
14000         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
14001         note on the insn that sets the soft frame register.
14002         (must_parenthesize): ix and iy are also reserved names.
14003         (print_operand_address): One more place where parenthesis are required
14004         to avoid confusion with register names.
14005         (m68hc11_gen_movhi): Allow push of stack pointer.
14006         (m68hc11_check_z_replacement): Fix handling of parallel with a
14007         clobber.
14008         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
14009         the replacement register is.
14010         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
14011         and D8_REGS classes.
14012         (MODES_TIEABLE_P): All modes are tieable except QImode.
14013
14014 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14015
14016         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
14017         (___subdi3): Likewise.
14018         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
14019         (__map_data_section): Optimize 68hc11 case.
14020
14021 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14022
14023         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
14024         than a shift to avoid adding a register with itself.
14025         (m68hc11_memory_move_cost): Take into account NO_REGS.
14026         (m68hc11_register_move_cost): Update and use memory move cost
14027         for soft registers.
14028         (m68hc11_address_cost): Make cost of valid offset not 0 so that
14029         it gives more opportunities to cse to optimize.
14030         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
14031         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
14032
14033 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
14034
14035         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
14036         * c-common.def (CLEANUP_STMT): New tree node.
14037         * c-common.h (CLEANUP_DECL): New macro.
14038         (CLEANUP_EXPR): Likewise.
14039         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
14040         * expr.c (expand_expr): Tidy.
14041         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
14042         * tree-inline.c (initialize_inlined_parameters): Clean up
14043         new local variables.
14044
14045 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
14046
14047         PR bootstrap/4128
14048         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
14049         before movrXX only, use reg_overlap_mentioned_p.
14050         Only special case NE if just one insn can be generated.
14051
14052 2002-03-15  Jason Merrill  <jason@redhat.com>
14053
14054         * varasm.c (assemble_variable): Call resolve_unique_section before
14055         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
14056         of error_mark_node.
14057
14058 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
14059
14060         PR target/5170
14061         * arm.md (split pattern for thumb shiftable immediates): Add comment
14062         explaining non-obvious test.
14063
14064 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
14065
14066         PR target/5712
14067         * arm.md (movaddr, movaddr_insn): Delete.
14068
14069 2002-03-15  Jason Merrill  <jason@redhat.com>
14070
14071         * toplev.c (wrapup_global_declarations): Clarify variable handling.
14072         -fkeep-static-consts doesn't apply to comdats.
14073
14074 2002-03-14  Richard Henderson  <rth@redhat.com>
14075
14076         * c-decl.c: Include c-pragma.h.
14077         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
14078         (finish_function): Tidy.
14079         * c-pragma.c: Include c-common.h.
14080         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
14081         (handle_pragma_weak): Use them.
14082         (init_pragma): Register pending_weaks.
14083         * c-pragma.h (maybe_apply_pragma_weak): Declare.
14084         * print-tree.c (print_node): Print DECL_WEAK.
14085         * varasm.c (mark_weak_decls): Remove.
14086         (remove_from_pending_weak_list): Remove.
14087         (add_weak): Remove.
14088         (asm_emit_uninitialised): Call globalize_decl for weak commons.
14089         (weak_decls): Make a tree_list.
14090         (declare_weak): Cons weak_decls directly.
14091         (globalize_decl): Remove weak_decls elements directly.
14092         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
14093         symbols.  Don't pretend to handle aliases.
14094         (init_varasm_once): Update weak_decls registry.
14095         * Makefile.in: Update dependencies.
14096
14097 2002-03-14  Richard Henderson  <rth@redhat.com>
14098
14099         PR target/5312
14100         * config/ia64/ia64.c: Include tm_p.h last.
14101         (gen_nop_type): Remove duplicate definition.
14102         (cycle_end_fill_slots): Set sched_data for second L slot.
14103         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
14104         (nop_cycles_until): Fix typos.
14105
14106 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
14107
14108         PR optimization/5891
14109         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
14110
14111 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
14112
14113         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
14114           descriptors correctly.
14115
14116 2002-03-14  Michael Meissner  <meissner@redhat.com>
14117
14118         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
14119         100, allowing MAX_UNROLLED_INSNS to be overridden.
14120
14121         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
14122         --param.
14123
14124         * unroll.c (params.h): Include.
14125         (MAX_UNROLLED_INSNS): Delete, now in params.h.
14126
14127         * doc/invoke.texi (--param max-unroll-insns): Document.
14128
14129         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
14130
14131 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
14132
14133         * arm.md: Fix warnings about constraints in peepholes and splits.
14134
14135 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
14136
14137         * cpphash.h (struct lexer_state): Remove line_extension member.
14138         * cpplib.c (dequote_string, do_linemarker): New functions.
14139         (linemarker_dir): New data object.
14140         (DIRECTIVE_TABLE): No longer need to interpret #line in
14141         preprocessed source.  Delete obsolete comment about return
14142         values of handlers.
14143         (end_directive, directive_diagnostics, _cpp_handle_directive):
14144         Don't muck with line_extension.
14145         (directive_diagnostics): No need to issue warnings for
14146         linemarkers here.
14147         (_cpp_handle_directive): Issue warnings for linemarkers here,
14148         when appropriate.  Dispatch linemarkers to do_linemarker, not
14149         do_line.
14150         (do_line): Code to handle linemarkers split out to do_linemarker.
14151         Convert escape sequences in filename argument, both places.
14152
14153         * cppmacro.c (quote_string): Rename cpp_quote_string and
14154         export.  All callers changed.
14155         * cpplib.h (cpp_quote_string): Prototype.
14156         * cppmain.c (print_line): Call cpp_quote_string on to_file
14157         before printing it.
14158
14159         * doc/cpp.texi: Document that escapes are now interpreted in
14160         #line and in linemarkers, and that non-printing characters are
14161         converted to octal escapes when linemarkers are generated.
14162
14163 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
14164
14165         * emit-rtl.c (try_split): Use delete_insns.
14166         * recog.c (split_all_insns): Fix terminating condition.
14167
14168 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
14169             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
14170
14171         PR target/5828
14172         * arm.c (arm_output_epilogue): Fix floating-point register save
14173         adjustment when using a frame pointer.
14174
14175 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
14176
14177         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
14178         * config/mips/mips.c (compute_frame_size): Retrofit them here.
14179         (save_restore_insns, mips_expand_epilogue): And here.
14180         (build_mips16_call_stub): And here.
14181         (mips_function_value): Use the new macros to decide whether a single
14182         or complex float can be returned in floating-point registers.  Return
14183         a parallel rtx in the complex case.
14184
14185 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
14186
14187         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
14188         call after liveness analysis.
14189
14190         * recog.c (split_insn): Use delete_insn_and_edges.
14191
14192         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
14193         instructions to have branch prediction notes.
14194         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
14195
14196 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
14197
14198         * configure.in: Don't pass -Wno-long-long to a ADA compiler
14199         that doesn't support it.
14200         * configure: Regenerate.
14201
14202 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14203
14204         PR target/5626
14205         * config/sparc/sparc.md (normal_branch, inverted_branch,
14206         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
14207         inverted_fp_branch): Adjust calls to output_cbranch.
14208         Set length attribute.
14209         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
14210         output_v9branch.  Set length attribute.
14211         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
14212         predicates.
14213         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
14214         (output_cbranch): Likewise.  Handle far branches.
14215         (output_v9branch): Handle far branches.
14216         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
14217         Adjust prototypes.
14218         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
14219         noov_compare64_op predicates.
14220
14221 2002-03-13  Jason Merrill  <jason@redhat.com>
14222
14223         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
14224         into the function and constify it.
14225         * gthr-dce.h, gthr-solaris.h: Likewise.
14226
14227 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
14228
14229         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
14230         * config/rs6000/rs6000.c (rs6000_va_arg): Use
14231         std_expand_builtin_va_arg if not ABI_V4.
14232
14233 2002-03-13  Jason Merrill  <jason@redhat.com>
14234
14235         * varasm.c (globalize_decl): New fn.
14236         (assemble_start_function): Use it.
14237         (asm_emit_uninitialized): Use it.
14238         (assemble_alias): Use it.
14239         (assemble_variable): Use it.
14240
14241 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
14242
14243         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
14244         2002-03-12 internal visibility change.
14245         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
14246         visibility into SYMBOL_REF_FLAG.
14247
14248 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
14249
14250         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
14251         VOIDmode operand.  Add compile-time optimization for constant results.
14252
14253 2002-03-12  Jason Merrill  <jason@redhat.com>
14254
14255         * c-typeck.c (convert_for_assignment): Don't allow conversions
14256         between pointers and references.  Only allow lvalues to convert to
14257         reference.
14258
14259 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
14260
14261         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
14262         before prologue, to avoid scheduling problems.
14263
14264 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14265
14266         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
14267         (ELIMINABLE_REGS): Add sfp->sp.
14268         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
14269
14270 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14271
14272         PR optimization/5892
14273         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
14274
14275 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
14276
14277         * loop.c (basic_induction_var): Don't call convert_modes if mode
14278         classes are different.
14279
14280 2002-03-12  Richard Henderson  <rth@redhat.com>
14281
14282         PR optimization/5901
14283         * function.c (reposition_prologue_and_epilogue_notes): Position
14284         the markers after/before the last/first insn not deleted.
14285
14286 2002-03-12  Richard Henderson  <rth@redhat.com>
14287
14288         PR optimization/5878
14289         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
14290         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
14291         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
14292
14293         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
14294         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
14295         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
14296
14297         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
14298         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
14299         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
14300         also.  Don't set it if not flag_pic.
14301         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
14302         to be INVALID_REGNUM when not used.
14303
14304 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
14305
14306         * expmed.c (store_bit_field): Reset alias set for memory.
14307         (extract_bit_field): Same.
14308
14309 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14310
14311         * c-common.c (c_tree_code_type, c_tree_code_length,
14312         c_tree_code_name, add_c_tree_codes): Delete.
14313         * c-common.h (add_c_tree_codes): Delete.
14314         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
14315         Define.
14316         * c-objc-common.c (c_objc_common_init): Don't call
14317         add_c_tree_codes, instead set lang_unsafe_for_reeval.
14318         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
14319         objc_tree_code_name, add_objc_tree_codes): Delete.
14320         (objc_init): Don't call add_objc_tree_codes.
14321         * objc/objc-lang.c (tree_code_type, tree_code_length,
14322         tree_code_name): Define.
14323         * toplev.c (lang_independent_init): Don't set
14324         tree_code_length[IDENTIFIER_NODE].
14325         * tree.c (tree_code_type, tree_code_length, tree_code_name):
14326         Delete definitions, moved to language front-ends.
14327         * tree.def (IDENTIFIER_NODE): Hardwire the length.
14328         * tree.h (tree_code_type, tree_code_length, tree_code_name):
14329         Const-ify.
14330         (tree_code_length): Change type to unsigned char.
14331
14332 2002-03-12  Richard Henderson  <rth@redhat.com>
14333
14334         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
14335         internal visibility change.
14336
14337 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14338
14339         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
14340         validize_mem() instead of change_address to avoid clobbering
14341         memory attributes.
14342
14343 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
14344
14345         * c-lex.h (position_after_whitespace): Remove.
14346
14347 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
14348
14349         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
14350         (lex_string): Use unsigned char pointers.
14351
14352 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
14353
14354         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
14355         is not a valid memory_operand.
14356
14357 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14358
14359         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
14360         * config/xtensa/lib1funcs.asm: Fix copyright to include
14361         special case for libgcc files.
14362         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
14363         (__divsi3): Likewise.
14364         (__umodsi3): Likewise.
14365         (__modsi3): Likewise.
14366         * config/xtensa/lib2funcs.S: Fix copyright to include
14367         special case for libgcc files.
14368
14369 2002-03-12  Tom Rix  <trix@redhat.com>
14370
14371         * collect2.c (resolve_lib_name): Move outside of
14372         OBJECT_FORMAT_COFF ifdef.
14373         (ignore_library): Same.
14374
14375 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14376
14377         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
14378
14379 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
14380
14381         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
14382         to function_section before writing out the constant pool.
14383
14384 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
14385
14386         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
14387         zero_constant.
14388         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
14389
14390 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
14391
14392         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
14393         (adddi3): Likewise.
14394         (movdf): Likewise.
14395         (movdi): Likewise.
14396         (cmpsi splitter): Likewise.
14397         (modsi3): Fail if <= 0.
14398         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
14399         redundant test when HOST_BITS_PER_WIDE_INT != 32.
14400         (reg_or_sub_cint64_operand): Likewise.
14401         (num_insns_constant_wide): Optimize sign extension.
14402         (rs6000_legitimize_address): Likewise.
14403
14404 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
14405
14406         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14407         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
14408
14409 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
14410
14411         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
14412         address calculation.
14413
14414 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
14415
14416         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
14417         scratch register to DImode / TImode.
14418         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
14419         register used does not overlap the target.
14420
14421 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14422
14423         * Makefile.in (debug.o): Depend on debug.h.
14424         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
14425         * debug.c (do_nothing_debug_hooks): Likewise.
14426         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
14427         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
14428         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
14429         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
14430         * dwarfout.c (dwarf_debug_hooks): Likewise.
14431         * integrate.c (output_inline_function): Likewise.
14432         * objc/objc-act.c (synth_module_prologue): Likewise.
14433         * sdbout.c (sdb_debug_hooks): Likewise.
14434         * toplev.c (debug_hooks): Likewise.
14435         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14436
14437 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14438
14439         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
14440         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
14441         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
14442         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
14443         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
14444         * defaults.h (POINTER_SIZE): Define.
14445         * doc/tm.texi (POINTER_SIZE): Document default.
14446
14447 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14448
14449         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
14450
14451 2002-03-11  Richard Henderson  <rth@redhat.com>
14452
14453         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
14454         if rebuild_label_notes_after_reload.
14455
14456 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
14457
14458         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
14459         emit pic register load if "internal" visibility.
14460         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
14461         (cris_expand_builtin_va_arg): Do all computations on trees.
14462
14463 2002-03-11  Richard Henderson  <rth@redhat.com>
14464
14465         * rtlanal.c: Include recog.h.
14466         (keep_with_call_p): Fix thinko.
14467         * Makefile.in (rtlanal.o): Update dependencies.
14468
14469 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
14470
14471         * genflags.c (gen_insn): Use IS_VSPACE.
14472         * genoutput.c (output_insn_data): Likewise.
14473         (process_template): Likewise.
14474
14475 2002-03-11  Richard Henderson  <rth@redhat.com>
14476
14477         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
14478
14479 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
14480
14481         * Makefile.in: Update.
14482         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
14483         Update documentation.
14484         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
14485         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
14486
14487 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
14488
14489         * Makefile.in: Give texi2pod its input file as a command line
14490         argument, not on stdin.
14491
14492 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
14493             Daniel Berlin  <dan@dberlin.org>
14494
14495         C++ alias analysis improvement.
14496         * alias.c (record_component_aliases): Record aliases for base
14497         classes too.
14498
14499 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
14500
14501         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
14502
14503 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
14504
14505         * toplev.c (vms_fopen): Remove, not needed.
14506
14507         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
14508
14509         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
14510
14511         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
14512         for FP, already done later.
14513
14514         * toplev.c (debug_args): Add entry for VMS_DEBUG.
14515         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
14516
14517 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
14518
14519         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
14520         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
14521         LARGEST_EXPONENT_IS_NORMAL for the given mode.
14522         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
14523         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
14524         (ediv, emul, eldexp, esqrt): Likewise.
14525         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
14526         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
14527         (saturate): New function.
14528         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
14529         (make_nan): Use a saturation value instead of a NaN if
14530         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
14531         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
14532         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
14533         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
14534         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
14535         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
14536         !ROUND_TOWARDS_ZERO.
14537         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
14538         (ROUND_TOWARDS_ZERO): Document.
14539
14540 2002-03-11  Andreas Jaeger  <aj@suse.de>
14541
14542         * cfg.c (dump_flow_info): Remove unused variable.
14543
14544 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
14545
14546         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
14547         computations on trees.
14548
14549 2002-03-10  Richard Henderson  <rth@redhat.com>
14550
14551         PR 5693:
14552         * reload.c (copy_replacements_1): New.
14553         (copy_replacements): Use it to recurse through the rtx.
14554
14555 2002-03-10  Richard Henderson  <rth@redhat.com>
14556
14557         * loop.c (strength_reduce): Compute number of iterations as
14558         unsigned HOST_WIDE_INT.
14559
14560 2002-03-10  Richard Henderson  <rth@redhat.com>
14561
14562         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
14563         to move away from the end of the block.
14564
14565 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
14566
14567         PR preprocessor/5899
14568         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
14569
14570 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14571
14572         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
14573
14574         * attribs.c (decl_attributes): Fix signed/unsigned warning.
14575
14576 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
14577
14578         * config/mmix/mmix.c: Improve comments.
14579         (mmix_target_asm_function_prologue): Drop variable
14580         empty_stack_frame.  Don't allocate unused slot above fp.
14581         (mmix_target_asm_function_epilogue): Mirror prologue changes.
14582         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
14583         brace in first column.
14584         (enum reg_class): Ditto.
14585         (FIRST_PARM_OFFSET): Now 0.
14586         (USER_LABEL_PREFIX): Remove #if 0:d definition.
14587
14588 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14589
14590         * combine.c (make_extraction): Fix error in last change.
14591
14592 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14593
14594         * c4x.c (c4x_fp_reglist): Const-ify.
14595         * cris.c (cris_print_operand): Likewise.
14596         * i386.c (ix86_va_arg): Likewise.
14597         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
14598         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
14599         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
14600         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
14601         * mcore.h (regno_reg_class): Likewise.
14602         * mips.c (gen_int_relational): Likewise.
14603         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
14604         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
14605         * pdp11.c (move_costs): Likewise.
14606         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
14607         * s390.c (s390_branch_condition_mnemonic, regclass_map):
14608         Likewise.
14609         * s390.h (regclass_map): Likewise.
14610         * sh.c (shift_amounts): Likewise.
14611         * sh.md (rotlsi3): Likewise.
14612
14613 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
14614
14615         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
14616         (ne0+5): Use new clobber to generate proper shift pattern.
14617         Patch by Michael Matz <matz@kde.org>.
14618
14619 2002-03-09  Andreas Schwab  <schwab@suse.de>
14620
14621         * gcc.c (validate_all_switches): Also handle `%W{...}'.
14622
14623 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
14624
14625         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
14626
14627 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
14628
14629         PR middle-end/5877
14630         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
14631         even for non-representable constants.
14632
14633 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14634
14635         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
14636         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
14637         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
14638         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
14639         (pop_function_context): Compute MAY_SHARE parameter for
14640         fixup_var_refs.
14641         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
14642         (gen_mem_addressof): Call fixup_var_refs with new parm.
14643
14644         * combine.c (make_extraction): Don't make extension of CONST_INT.
14645
14646 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
14647
14648         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
14649         in o32 and o64 ABIs.
14650         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
14651         but getting fixed-size structs passed in registers regardless of
14652         padding in o32 and o64 ABIs.
14653
14654         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
14655         offset before loading address of argument passed by transparent
14656         reference.
14657
14658 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14659
14660         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
14661
14662 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
14663
14664         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
14665         marker such that registers after it are saved.
14666
14667 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14668
14669         * sparc.c (arith_4096_operand): Fix error in last change.
14670
14671 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
14672
14673         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
14674         defaults for MEABI.
14675
14676 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
14677
14678         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
14679         vectors.
14680
14681 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
14682
14683         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
14684
14685 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14686
14687         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
14688         removed; fix return value.
14689         * combine.c (combine_instructions): Dirtify blocks where we failed to
14690         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
14691         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
14692
14693 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14694
14695         * gcse.c (insert_insn_end_bb): Fix typo in last change.
14696
14697 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
14698
14699         * recog.c (peephole2_optimize): Re-distribute EH edges.
14700
14701 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
14702
14703         * expr.c (expand_expr): Use unsave lang hook.
14704         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
14705         (LANG_HOOKS_INITIALIZER): Update.
14706         * langhooks.h (struct lang_hooks): New hook unsave.
14707         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
14708         (unsave_expr_1): Remove unused lang_unsave_expr_now.
14709         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
14710         (unsave_expr_now): Remove.
14711         * tree.h (unsave_expr_now, lang_unsave,
14712         lang_unsave_expr_now): Remove.
14713         (lhd_unsave): New.
14714
14715 2002-03-08  Andreas Jaeger  <aj@suse.de>
14716
14717         * flow.c (propagate_block_delete_insn): Remove unused variable.
14718
14719 2002-03-08  Kazu Hirata  <kazu@hxi.com>
14720
14721         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
14722         insn length for memory load/store.
14723
14724 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14725
14726         * doc/install.texi (--with-libiconv-prefix): Document.
14727
14728 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
14729
14730         * doc/sourcebuild.texi: Fix typo.
14731
14732 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
14733
14734         PR c/3711
14735         * builtins.c (std_expand_builtin_va_arg): Do all computations on
14736         trees.
14737
14738 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14739
14740         * rtl.c (copy_most_rtx): Move from here ...
14741         * emit-rtl.c (copy_most_rtx): ... to here.
14742
14743 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
14744
14745         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
14746         SUBTARGET_CPP_SIZE_SPEC.
14747         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
14748
14749         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
14750
14751 2002-03-07  Matt Hiller  <hiller@redhat.com>
14752
14753         * gensupport.c (first_dir_md_include): Renamed from include;
14754         change all references.
14755         (last_dir_md_include): Renamed from last_include; change all
14756         references.
14757         (init_md_reader): Unconditionally initialize base_dir whether or
14758         not filename is a relative path.
14759
14760 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
14761
14762         * config/fp-bit.c (_unord_f2): Compile it in even if
14763         US_SOFTWARE_GOFAST is enabled.
14764
14765         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
14766         NULL_RTX.  Set all HFmode operations as NULL_RTX.
14767         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
14768         NULL_RTX, try reversing the comparison and the operands.
14769
14770 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
14771
14772         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
14773         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
14774         and MATCH_OP_DUP.
14775
14776 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
14777
14778         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
14779
14780 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
14781
14782         * basic-block.h (fixup_abnormal_edges): Declare.
14783         * reload1.c (fixup_abnormal_edges): New function.
14784         * reg-stack.c (convert_regs): Use it.
14785
14786         * gcse.c (insert_insn_end_bb): Handle trapping insns.
14787
14788         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
14789
14790 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
14791
14792         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
14793         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
14794         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
14795         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
14796         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
14797         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
14798         unless x and y could be infinite.
14799         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
14800         Check that the common type of both arguments is a real, even for
14801         targets without unordered comparisons.  Allow an integer argument
14802         to be compared against a real.
14803         (expand_tree_builtin): Use expand_unordered_cmp.
14804         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
14805         * cse.c (fold_rtx): Likewise.  Fix indentation.
14806         * fold-const.c (fold_real_zero_addition_p): New.
14807         (fold): Use it, and the new HONOR_... macros.
14808         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
14809         * jump.c (reversed_comparison_code_parts): After searching for
14810         the true comparison mode, use HONOR_NANS to decide whether it
14811         can be safely reversed.
14812         (reverse_condition_maybe_unordered): Remove IEEE check.
14813         * simplify-rtx.c (simplify_binary_operation): Use the new macros
14814         to decide which simplifications are valid.  Allow the following
14815         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
14816         and (a - -b) to (a + b).
14817         (simplify_relational_operation): Use HONOR_NANS.
14818         * doc/tm.texi: Document the MODE_HAS_... macros.
14819
14820 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
14821
14822         * combine.c (simplify_comparison): If simplifying a logical shift
14823         right and compare with constant, force the comparison to unsigned.
14824
14825 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
14826
14827         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
14828
14829         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
14830         -mabi=no-altivec
14831         (alt_reg_names): Remove % for vrsave.
14832
14833 2002-03-06  Richard Henderson  <rth@redhat.com>
14834
14835         PR optimization/5844
14836         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
14837         if used indicates we've already emitted one copy of an operand.
14838         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
14839         (gen_split): Supply a non-null used.
14840
14841 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
14842
14843         * reload1.c (reload): Unshare all rtl after reload is done.
14844
14845         * simplify-rtx.c (simplify_plus_minus): Do not abort,
14846         but simply fail if the expression is too complex to simplify.
14847         (simplify_gen_binary): Handle simplify_plus_minus failures.
14848
14849 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
14850
14851         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
14852         consistently call delete_trivially_dead_insns after CSE and GCSE;
14853         fix DFI_life dumping; do jump threading after liveness; do crossjumping
14854         after liveness2; update comment in last crossjumping.
14855         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
14856
14857 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
14858
14859         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
14860         after completing fast dead code elimination.
14861
14862         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
14863         COMPARE operator.
14864
14865 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
14866
14867         * version.c:  Fix misplaced leading blanks on first line.
14868
14869 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
14870
14871         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
14872
14873 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
14874
14875         * cfgcleanup.c (mentions_nonequal_regs): New function.
14876         (thread_jump): Use it.
14877         * toplev.c (rest_of_compilation): Run jump threading after
14878         liveness.
14879
14880 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
14881
14882         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
14883         patch.
14884
14885 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
14886
14887         * predict.c (estimate_bb_frequencies): Do not reload the
14888         frequencies from notes.
14889
14890 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
14891
14892         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
14893         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
14894
14895         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
14896         delete_noop_moves): Return indeger.
14897         * flow.c (ndead): New variable.
14898         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
14899         BB argument; update callers.
14900         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
14901         (life_analysis): Do not call purge_all_dead_edges.
14902         (update_life_info): Return number of deleted insns; print statistics.
14903         (update_life_info_in_dirty_blocks): likewise.
14904         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
14905         return number of insns deleted.
14906
14907         * cse.c: Include timevar.h
14908         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
14909         iterate until stabilizes; print statistics; return number of killed
14910         insns.
14911         * Makefile.in: (cse.o): Add timevar.h dependency
14912         * rtl.h (delete_trivially_dead_insns): New.
14913         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
14914         * toplev.c (rest_of_compilation): Update callers.
14915
14916         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
14917         (try_optimize_cfg): Do not update liveness.
14918         (cleanup-cfg): Loop until try_optimize_cfg and dead code
14919         removal stabilizes; use delete_trivially_dead_insns.
14920
14921         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
14922
14923 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
14924
14925         * cppmain.c (setup_callbacks): Disable #pragma and #ident
14926         callbacks when processing assembly language.
14927
14928 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14929
14930         * pa.h (ASM_FILE_END): Define.
14931         * som.h (ASM_FILE_END): Delete.
14932
14933         * pa.c (function_arg): Don't pass floats in general registers in
14934         indirect calls if TARGET_ELF32.
14935
14936 2002-03-05  Richard Henderson  <rth@redhat.com>
14937
14938         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
14939
14940 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
14941
14942         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
14943
14944 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
14945
14946         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
14947         -r command line.  Don't hide any symbols if not building
14948         shared libgcc.
14949
14950 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
14951
14952         * cfg.c (dump_flow_info): Warn about profile mismatches.
14953         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
14954         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
14955
14956 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
14957
14958         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
14959         wide volatile memory by parts.
14960
14961 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
14962
14963         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
14964         is NULL.
14965
14966 2002-03-05  Richard Henderson  <rth@redhat.com>
14967
14968         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
14969
14970 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
14971
14972         * toplev.c (documented_lang_options): Document more
14973         language-specific options.
14974         * doc/invoke.texi (Warning Options): Correct documentation for
14975         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
14976         * c-decl.c (c_decode_option): Use a table to handle warning options.
14977
14978 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
14979
14980         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
14981         parameter to mmix_encode_section_info.
14982         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
14983         relocatably.  Always produce ELF, not mmo if linking relocatably.
14984         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
14985         first is non-zero, don't add symbol prefix.
14986         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
14987         prototype accordingly.
14988
14989 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
14990
14991         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
14992
14993 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
14994
14995         * configure.in: Increase required makeinfo version to 4.1.
14996         * configure: Regenerate.
14997
14998 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
14999
15000         * .cvsignore: Remove *.info* and genrtl*; these files are generated
15001         elsewhere now.
15002
15003 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
15004
15005         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
15006         * doc/invoke.texi: Fix @math uses.
15007
15008 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
15009
15010         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
15011         removal
15012
15013 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
15014
15015         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
15016         (powerpc-*-eabisimaltivec*): Same.
15017
15018         * config/rs6000/t-ppcendian: New.
15019
15020 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15021
15022         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
15023         nonimmediate_src_operand and nonimmediate_lsrc_operand to
15024         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
15025
15026 2002-03-03  Richard Henderson  <rth@redhat.com>
15027
15028         * toplev.c (rest_of_decl_compilation): Revert last two changes.
15029
15030 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
15031
15032         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
15033         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
15034         tree.c, config/m68k/m68k.c:
15035         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
15036         REAL_ARITHMETIC blocks unconditional.  Delete some further
15037         #ifdef blocks predicated on REAL_ARITHMETIC.
15038         * flags.h, toplev.c: Delete remaining references to
15039         flag_pretend_float.
15040
15041         * doc/invoke.texi: Remove documentation of -fpretend-float.
15042         * doc/tm.texi: Describe the various REAL_* macros as provided by
15043         real.h, not by the target configuration files.
15044
15045         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
15046         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
15047         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15048         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
15049         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
15050         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
15051         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
15052         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
15053         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
15054         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
15055         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
15056         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
15057         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
15058         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
15059         config/xtensa/xtensa.h:
15060         Do not define, undefine, or mention in comments any of
15061         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
15062         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
15063         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
15064         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
15065         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
15066         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
15067         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
15068         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
15069         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
15070
15071 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15072
15073         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
15074         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
15075         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
15076         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
15077         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
15078         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
15079         Delete.
15080         * defaults.h (BITS_PER_WORD): Define.
15081         * doc/tm.texi (BITS_PER_WORD): Document default value.
15082
15083         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
15084         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
15085         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
15086
15087 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15088
15089         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
15090         lieu of explicit sizeof/sizeof.
15091         * i386.c (override_options, ix86_init_mmx_sse_builtins,
15092         ix86_expand_builtin): Likewise.
15093         * mips.c (mips_add_gc_roots): Likewise.
15094         * mmix.c (mmix_output_condition): Likewise.
15095         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
15096         altivec_init_builtins): Likewise.
15097         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
15098         * cppexp.c (Nsuff, parse_number): Likewise.
15099         * cppinit.c (builtin_array_end): Likewise.
15100         * gcc.c (n_default_compilers, process_command): Likewise.
15101         * genpreds.c (output_predicate_decls): Likewise.
15102         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
15103         * lcm.c (N_ENTITIES): Likewise.
15104         * stor-layout.c (set_sizetype): Likewise.
15105
15106 2002-03-03  Richard Henderson  <rth@redhat.com>
15107
15108         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
15109         for types or labels.
15110
15111 2002-03-03  Richard Henderson  <rth@redhat.com>
15112
15113         * c-decl.c (start_decl): Initialized variables are not common.
15114
15115 2002-03-02  Per Bothner  <per@bothner.com>
15116
15117         * gcc.c (option_map):  Suport new --bootclasspath option.
15118         --CLASSPATH is now just an alias for --classpath.
15119
15120 2002-03-02  Richard Henderson  <rth@redhat.com>
15121
15122         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
15123         load if "internal" visibility.
15124         * doc/extend.texi: Document visibility meanings.
15125
15126 2002-03-02  Richard Henderson  <rth@redhat.com>
15127
15128         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
15129         to functions as well.
15130
15131 2002-03-02  Richard Henderson  <rth@redhat.com>
15132
15133         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
15134         (handle_visibility_attribute): Don't call assemble_visibility.
15135         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
15136         without asmspec.  Invoke assemble_alias when needed.
15137         * varasm.c (maybe_assemble_visibility): New.
15138         (assemble_start_function, assemble_variable, assemble_alias): Use it.
15139
15140 2002-03-02  Richard Henderson  <rth@redhat.com>
15141
15142         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
15143         invoke ENCODE_SECTION_INFO with first call flag.
15144
15145         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
15146         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
15147         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
15148         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
15149         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
15150         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
15151         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
15152         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
15153         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
15154         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
15155         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
15156         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
15157         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
15158         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
15159         config/mcore/mcore-protos.h, config/mcore/mcore.c,
15160         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
15161         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
15162         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
15163         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
15164         config/sh/sh.h, config/sparc/sparc.h,
15165         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
15166         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
15167         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
15168         FIRST argument.  As needed, examine it and do nothing.
15169
15170         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
15171         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15172         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
15173
15174         * config/arm/t-pe (pe.o): Add dependencies.
15175
15176 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15177
15178         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
15179         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
15180         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
15181         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
15182         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
15183         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
15184         * defaults.h (BITS_PER_UNIT): Define.
15185         * doc/tm.texi (BITS_PER_UNIT): Document default value.
15186
15187 2002-03-02  Kazu Hirata  <kazu@hxi.com>
15188
15189         * config/h8300/h8300-protos.h: Add a prototype for
15190         compute_a_shift_length.
15191         * config/h8300/h8300.c (h8300_asm_insn_count): New.
15192         (compute_a_shift_length): Likewise.
15193         (h8300_adjust_insn_length): Do not adjust insn length of shift
15194         insns.
15195         * config/h8300/h8300.md (anonymous shift patterns): Use
15196         compute_a_shift_length.
15197
15198 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15199
15200         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
15201         trunc_int_for_mode.
15202
15203         * emit-rtl.c (offset_address): Call update_temp_slot_address.
15204
15205 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15206
15207         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
15208         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
15209         * flags.h (flag_zero_initialized_in_bss): Declare.
15210         * toplev.c (flag_zero_initialized_in_bss): New flag.
15211         (lang_independent_options): Add flag_zero_initialized_in_bss.
15212         * tree.c (initializer_zerop): New function.
15213         * tree.h (initializer_zerop): Declare.
15214         * varasm.c (assemble_variable): If we can emit bss, put zero
15215         initializers in the bss section.
15216
15217 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
15218
15219         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
15220         like more than one symbol per .weak directive.
15221
15222 2002-03-01  Richard Henderson  <rth@redhat.com>
15223
15224         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
15225         adjust argument_pointer by pretend_args_size.
15226         (ia64_va_start): Adjust va_start address by -pretend_args_size.
15227
15228 2002-03-01  Kazu Hirata  <kazu@hxi.com>
15229
15230         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
15231
15232 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
15233
15234         * toplev.c (rest_of_compilation): Delete dead jumptables before
15235         loop.
15236         * flow.c (delete_dead_jumptables): Make global.
15237         * rtl.h (delete_dead_jumptables): Declare.
15238
15239 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
15240
15241         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
15242         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
15243         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
15244
15245 2002-03-01  Kazu Hirata  <kazu@hxi.com>
15246
15247         * config/h8300/h8300-protos.h: Fix formatting.
15248         * config/h8300/h8300.c: Likewise.
15249         * config/h8300/h8300.h: Likewise.
15250
15251 2002-03-01  Kazu Hirata  <kazu@hxi.com>
15252
15253         * config/h8300/h8300.c (print_operand): Support 16-bit
15254         constant addresses.
15255         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
15256
15257 2002-02-28  Richard Henderson  <rth@redhat.com>
15258
15259         * expmed.c (store_bit_field): Prevent generation of CONCATs;
15260         pun complex values as integers; use gen_lowpart instead of
15261         gen_rtx_SUBREG.
15262         (extract_bit_field): Likewise.
15263
15264 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
15265             David Edelsohn  <edelsohn@gnu.org>
15266
15267         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
15268         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
15269         (SUPPORTS_WEAK): Likewise.
15270         * output.h (add_weak): Add tree param.
15271         * varasm.c (add_weak): Likewise.  Save decl.
15272         (struct weak_syms): Add decl field.
15273         (mark_weak_decls): New function.
15274         (init_varasm_once): ggc_add_root mark_weak_decls.
15275         (assemble_start_function): Use ASM_WEAKEN_DECL.
15276         (assemble_variable): Likewise.
15277         (assemble_alias): Likewise.
15278         (declare_weak): Pass decl to add_weak.
15279         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
15280         (remove_from_pending_weak_list): Declare and define for
15281         ASM_WEAKEN_DECL.
15282         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
15283         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
15284         * defaults.h (SUPPORTS_WEAK): Likewise.
15285         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15286         .weak for code sym.  Do emit .size for descriptor sym.
15287         (ASM_DECLARE_FUNCTION_SIZE): Define.
15288         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
15289         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
15290         .lglobl unless TARGET_XCOFF.  Formatting fixes.
15291         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
15292         .weak for code sym.
15293         (HANDLE_PRAGMA_WEAK): Remove.
15294         (ASM_WEAKEN_LABEL): Remove.
15295         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
15296
15297 2002-03-01  Jason Merrill  <jason@redhat.com>
15298
15299         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
15300         (TARGET_EXPR_CLEANUP): New macro.
15301
15302 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
15303
15304         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
15305         to take ptr_extend into account as third type of extension.
15306         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
15307         fields used by SUBREG_PROMOTED_UNSIGNED_P.
15308         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
15309         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
15310         * calls.c (precompute_arguments): Use new macro.
15311         (expand_call): Ditto.
15312         * combine.c (nonzero_bits): Ditto.
15313         (record_promoted_value): Ditto.
15314         * expr.c (store_expr): Ditto.
15315         (expand_expr): Ditto.
15316         * function.c (assign_parms): Ditto.
15317
15318 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
15319
15320         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
15321         override -shared and -shared-libgcc.
15322
15323 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
15324
15325         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
15326         of "ultrasparc".
15327         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
15328         to be broken.
15329
15330 2002-02-28  Richard Henderson  <rth@redhat.com>
15331
15332         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
15333         4 cycle latency from MM producers.
15334         (ia64_internal_sched_reorder): Likewise with pipeline flush.
15335
15336 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
15337
15338         * mklibgcc.in: Don't use GNU make extension.
15339
15340 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
15341
15342         * c-parse.in (STATIC): New terminal.
15343         (scspec): New non-terminal.  Update productions accordingly.
15344         (program): Remove bogus ifc / end ifc.
15345         (array_declarator): Simplify production using STATIC.
15346
15347 2002-02-28  Jim Meyering  <meyering@lucent.com>
15348
15349         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
15350         \a still means TARGET_BELL.
15351
15352 2002-02-28  Richard Henderson  <rth@redhat.com>
15353
15354         * haifa-sched.c (sched_emit_insn): New.
15355         (schedule_block): Use last_scheduled_insn to track last insn.
15356         * sched-int.h (sched_emit_insn): Prototype.
15357         * config/ia64/ia64.c (last_issued): Remove.
15358         (ia64_variable_issue): Don't set it.
15359         (nop_cycles_until): Use sched_emit_insn.
15360
15361 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
15362
15363         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
15364         extended constants.
15365
15366 2002-02-28  Kazu Hirata  <kazu@hxi.com>
15367
15368         * config/h8300/h8300.c: Fix formatting.
15369         * config/h8300/h8300.h: Likewise.
15370
15371 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
15372
15373         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
15374         which may overwrite the high byte of the frame pointer.
15375
15376 2002-02-28  Bo Thorsen  <bo@suse.de>
15377
15378         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
15379         (STARTFILE_SPEC): Add 64 bit files.
15380         (ENDFILE_SPEC): Likewise.
15381
15382 2002-02-28  Jason Merrill  <jason@redhat.com>
15383
15384         * c-decl.c (finish_function): Only warn about missing return
15385         statement with -Wreturn-type.
15386
15387 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
15388
15389         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
15390
15391         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
15392         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
15393
15394 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
15395
15396         * basic-block.h (BB_REACHABLE): Renumber.
15397         (BB_DIRTY, BB_NEW): New flags.
15398         (clear_bb_flags): Declare.
15399         (update_life_info_in_dirty_blocks): Declare.
15400         * cfg.c (clear_bb_flags): New function.
15401         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
15402         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
15403         reorder_insns, emit_insn_after): Mark block as dirty.
15404         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
15405         (update_life_info_in_dirty_blocks): New function.
15406         * recog.c (apply_change_group): Dirtify block.
15407
15408         * cse.c (cse_insn): Reorder emitting of jump insn to keep
15409         cfg consistent.
15410         * gcse.c (delete_null_pointer_checks): Likewise.
15411
15412         * toplev.c (dump_file_index): Move cse2 after bp,
15413         add DFI_null
15414         (dump_file_info): Similary.
15415         (rest_of_compilation): Avoid most of CFG rebuilds;
15416         do first if converision after null pointer checks, do cse2
15417         after branch prediction; avoid full liveness rebuild after
15418         initializing subregs.
15419         * invoke.texi (-d options): Document -du, renumber.
15420
15421         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
15422         (notice_new_block): Do not set BB_UPDATE_LIFE.
15423         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
15424          merge_blocks_move_successor_nojumps, merge_blocks,
15425          try_crossjump_to_edge): Likewise.
15426         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
15427         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
15428         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
15429         (merge_of_block): Do not use life_data_ok.
15430         (find_if_case_1): Do not use SET_UPDATE_LIFE.
15431         (if_convert): Use BB_DIRTY mechanizm to update life.
15432         * lcm.c (optimize_mode_switching): Update
15433         update_life_info_in_dirty_blocks
15434
15435 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
15436
15437         * Makefile.in (integrate.o): Update.
15438         * c-decl.c (copy_lang_decl): Rename.
15439         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15440         * integrate.c: Include langhooks.h.
15441         (copy_decl_for_inlining): Update to use langhook.
15442         * langhooks-def.h (lhd_do_nothing_t,
15443         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
15444         (LANG_HOOKS_INITIALIZER): Update.
15445         * langhooks.c (lhd_do_nothing_t): New.
15446         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
15447         * tree.h (copy_lang_decl): Remove.
15448 objc:
15449         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
15450
15451 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
15452
15453         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
15454         POST_DEC, and POST_MODIFY.
15455
15456 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15457
15458         * c-typeck.c (digest_init): Remove unused parameter; all
15459         callers changed.
15460
15461 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
15462
15463         * expmed.c (expand_shift): Correctly test for low part of a
15464         subreg.
15465
15466 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
15467
15468         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
15469         insn UIDs with insn addresses.
15470
15471 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15472
15473         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
15474         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
15475         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
15476         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
15477         gcc.c, toplev.c: Delete code implementing -traditional mode.
15478
15479         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
15480         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
15481         Document removal of -traditional mode for compilation, and
15482         remove documentation only relevant to that mode.
15483
15484         * config/nextstep.h, config/ptx4.h, config/svr4.h,
15485         config/convex/convex.h, config/d30v/d30v.h,
15486         config/i386/dgux.h, config/i386/osf1elf.h,
15487         config/i386/osfelf.h, config/i386/osfrose.h,
15488         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
15489         config/m68k/hp310.h, config/m88k/dgux.h,
15490         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
15491         config/m88k/m88k.h, config/m88k/openbsd.h,
15492         config/mips/abi64.h, config/mips/osfrose.h,
15493         config/mips/svr4-5.h, config/mips/svr4-t.h,
15494         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
15495         config/stormy16/stormy16.h: Remove all references to
15496         -traditional from target specs.  Delete all mention of the
15497         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
15498         delete a couple of commented-out definitions of
15499         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
15500         to -traditional.
15501
15502         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
15503         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
15504
15505 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
15506
15507         * mklibgcc.in: Don't use \n in a line subject to
15508         interpretation by echo.
15509
15510 2002-02-27  Graham Stott  <grahams@redhat.com>
15511
15512         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
15513         Constify NAME.
15514
15515         * loop.c (prescan_loop): Handle PARALLEL.
15516
15517         * unroll.c (loop_iterations): Return 0 if the add_val for
15518         a BIV is REG.
15519
15520         * final.c (output_operand_lossage): Constify PFX_STR.
15521
15522         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
15523
15524 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15525
15526         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
15527         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
15528
15529 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
15530
15531         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
15532
15533 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
15534
15535         * cpplex.c (_cpp_lex_token): Handle directives in macro
15536         arguments.
15537         * cpplib.c (_cpp_handle_directive): Save and restore state
15538         if parsing macro args when entering a directive.
15539         * cppmacro.c (collect_args): No need to handle directives
15540         in macro arguments.
15541         (enter_macro_context, replace_args): Use the original macro
15542         definition in case it was redefined whilst collecting arguments.
15543 doc:
15544         * cpp.texi: Update.
15545
15546 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
15547
15548         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
15549         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
15550         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
15551         method on AIX.
15552         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
15553         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
15554         (load_toc_v4_PIC_2): Same.
15555
15556 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
15557
15558         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
15559
15560 2002-02-26  Richard Henderson  <rth@redhat.com>
15561
15562         * config/alpha/alpha.md (ashldi_se): Re-enable.
15563
15564 2002-02-26  Richard Henderson  <rth@redhat.com>
15565
15566         * config/alpha/alpha.c (alpha_encode_section_info): Examine
15567         MODULE_LOCAL_P; improve commentary.
15568
15569 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
15570
15571         * doc/cpp.texi: Clarify documentation of relationship between
15572         #line and #include.
15573
15574 2002-02-26  Kazu Hirata  <kazu@hxi.com>
15575
15576         * config/h8300/h8300-protos.h: Update the prototype for
15577         compute_logical_op_length.  Add the prototype for
15578         compute_logical_op_cc.
15579         * config/h8300/h8300.c (compute_logical_op_length): Figure out
15580         code from operands.
15581         (compute_logical_op_cc): New.
15582         * config/h8300/h8300.md: Combine all the logical op patterns
15583         in HImode and SImode.  Use compute_logical_op_cc.
15584
15585 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
15586
15587         * config/i386/i386.c (print_operand): Don't append ATT-style
15588         length suffixs to x87 opcodes when in Intel mode.
15589
15590 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
15591
15592         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
15593         (init_emit_once): Update calls.
15594         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
15595         (init_syntax_once): Prototype.
15596
15597 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15598
15599         * pa-linux.h (LIB_SPEC): Update definition.
15600         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
15601
15602 2002-02-26  Richard Henderson  <rth@redhat.com>
15603
15604         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
15605         if we emitted a stop bit.
15606
15607 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15608
15609         * configure.in (libgcc_visibility): Substitute.
15610         * configure: Rebuilt.
15611         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
15612         defined symbols .hidden.
15613
15614 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15615
15616         * attribs.c (c_common_attribute_table): Add visibility.
15617         (handle_visibility_attribute): New function.
15618         * varasm.c (assemble_visibility): New function.
15619         * output.h (assemble_visibility): Add prototype.
15620         * tree.h (MODULE_LOCAL_P): Define.
15621         * crtstuff.c (__dso_handle): Use visibility attribute.
15622         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
15623         for MODULE_LOCAL_P symbols too.
15624         * config/ia64/ia64.c (ia64_encode_section_info): Handle
15625         MODULE_LOCAL_P symbols the same way as local symbols.
15626         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
15627         into .sdata/.sbss by the user.
15628         * doc/extend.texi (Function Attributes): Document visibility
15629         attribute.
15630
15631 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
15632
15633         PR debug/5770
15634         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
15635         STRING_CST initializer spanning the whole variable without
15636         embedded zeros.
15637         If expand_expr returned MEM, don't use it.
15638
15639 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
15640
15641         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
15642         generate a die for the lexical block.
15643
15644 2002-02-26  Kazu Hirata  <kazu@hxi.com>
15645
15646         * config/h8300/h8300-protos.h: Add a prototype for
15647         compute_logical_op_length.
15648         * config/h8300/h8300.c (compute_logical_op_length): New.
15649         * config/h8300/h8300.md (anonymous logical patterns): Use
15650         compute_logical_op_length for length.
15651
15652 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15653
15654         * dwarf2out.c (modified_type_die): Do not call type_main_variant
15655         for vectors.
15656         (gen_type_die): Same.
15657
15658         * attribs.c (handle_vector_size_attribute): Set debug information.
15659
15660 2002-02-26  Daniel Egger  <degger@fhm.edu>
15661
15662         * config/rs6000/rs6000.md: Swap define_insn attributes to
15663         fix incorrect generation of merge high instructions instead
15664         of merge low.
15665
15666 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15667
15668         * c-typeck.c (really_start_incremental_init): Use
15669         bitsize_zero_node for vectors.
15670
15671 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
15672
15673         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
15674         ("*set_vrsave_internal"): Same.
15675
15676 2002-02-25  Richard Henderson  <rth@redhat.com>
15677
15678         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
15679         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
15680
15681 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
15682
15683         PR target/5755
15684         * config/i386/i386.c (ix86_return_pops_args): Only pop
15685         fake structure return argument if it was passed on the stack.
15686
15687 2002-02-25  Jason Merrill  <jason@redhat.com>
15688
15689         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
15690         RESULT_DECL.
15691
15692 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
15693
15694         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
15695         link with shared_name only.
15696         * doc/invoke.texi (Link Options): Document new behavior.
15697
15698 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
15699
15700         * c-typeck.c (push_init_level): Handle vectors.
15701
15702 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
15703
15704         * config/sparc/sparc.c (const64_high_operand): Zero-extend
15705         operands of SPARC_SETHI_P.
15706         (input_operand): Likewise.
15707         (sparc_emit_set_const32): Likewise.
15708         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
15709         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
15710         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
15711         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
15712         (movdi_insn_sp64_vis): Likewise.
15713         (movdi split, movdf split): Use SETHI32.
15714         * doc/md.texi: Document SPARC constraints L, M and N.
15715
15716 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
15717
15718         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
15719         ("*set_vrsave_internal"): use mfspr for Darwin.
15720
15721         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
15722         gen_get_vrsave_internal.
15723
15724 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15725
15726         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
15727
15728 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
15729
15730         * cpplex.c (cpp_interpret_charconst): Get signedness or
15731         otherwise of wide character constants correct.
15732         * cppexp.c (lex): Get signedness of wide charconsts correct.
15733
15734 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15735
15736         * optabs.c (widen_operand): Only call convert_modes for
15737         promoted SUBREG if signedness matches.
15738         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
15739
15740 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15741
15742         * cpplib.c (glue_header_name): Use local buffer to build up
15743         header name.
15744
15745 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15746
15747         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
15748
15749 2002-02-23  Kazu Hirata  <kazu@hxi.com>
15750
15751         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
15752         H8/300[HS] separately.
15753         * config/h8300/h8300.md: Remove the early clobber constraint
15754         from bit field patterns.
15755
15756 2002-02-23  Kazu Hirata  <kazu@hxi.com>
15757
15758         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
15759         register_operand.
15760         (mulhisi3): Likewise.
15761         (umulqisi3): Likewise.
15762         (umulhisi3): Likewise.
15763
15764 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15765
15766         * cppinit.c (output_deps): Correct test for stdout output.
15767         (init_dependency_output): Cure warning.
15768
15769 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15770
15771         * expr.c (store_expr): When converting expression to promoted
15772         equivalent type, allow using SUBREG_REG of TARGET as the target
15773         of the expansion of EXP.
15774         * loop.c (basic_induction_var, case SUBREG): Always look inside.
15775         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
15776         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
15777         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
15778         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
15779
15780 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
15781
15782         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
15783         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
15784         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
15785
15786 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
15787
15788         PR optimization/5747
15789         * loop.c (scan_loop): Update reg info if move_movables created new
15790         pseudos.
15791
15792 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
15793
15794         * gcc.c (init_gcc_spec): Revert last change.
15795
15796 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
15797
15798         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
15799         gpc_reg_operand constraint.
15800
15801 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
15802
15803         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
15804         Simplify comparison of `low'.
15805         (add_operand): Fix formatting.
15806         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
15807         (mask_operand): Disallow mask to wrap in 64-bit mode.
15808         (rs6000_stack_info): Remove redundant test setting push_p.
15809         (output_toc): Fix formatting.
15810         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
15811         cc_reg_not_cr0_operand constraint.
15812         (booldi3, boolcdi3 splitters): Same.
15813
15814 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
15815
15816         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
15817
15818 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
15819
15820         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
15821         gcc invoked with -shared-libgcc.
15822
15823 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
15824
15825         PR c++/5748
15826         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
15827         decl if any of elements was TREE_USED.
15828
15829 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
15830
15831         * config/sparc/sol2.h: Don't include sys/mman.h.
15832         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
15833         (arith_4096_operand): Don't throw high bits away.
15834         (const64_operand): Take sign extension of CONST_INTs into account.
15835         (const64_high_operand, sparc_emit_set_const32): Likewise.
15836         (GEN_HIGHINT64): Likewise.
15837         (sparc_emit_set_const64_quick1): Likewise.
15838         (const64_is_2insns): Likewise.
15839         (print_operand): Use trunc_int_for_mode for sign extension.
15840         * config/sparc/sparc.h (SMALL_INT32): Likewise.
15841         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
15842         chars.  Assume CONST_INT is already properly sign-extended.
15843         (movdi split): Sign-extend each SImode part.
15844         (andsi3 split): Don't mask high bits off, so that result
15845         remains properly sign-extend.
15846         (iorsi3 split): Likewise.
15847         (xorsi3 split): Likewise.
15848
15849 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
15850
15851         * fold-const.c (fold): Fix typo in comments.
15852
15853 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
15854
15855         * Makefile.in (langhooks.o): Update dependencies.
15856
15857 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
15858
15859         * langhooks.c: Include flags.h.
15860
15861 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
15862
15863         * testsuite/gcc.dg/attr-alwaysinline.c: New.
15864
15865         * c-common.c (c_common_post_options): Set inline trees by
15866         default.
15867
15868         * doc/extend.texi (Function Attributes): Document always_inline
15869         attribute.
15870         Update documentation about inlining when not optimizing.
15871
15872         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
15873
15874         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
15875         unless DECL_ALWAYS_INLINE.
15876
15877         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
15878         unless DECL_ALWAYS_INLINE.
15879         (c_disregard_inline_limits): Disregard if always_inline set.
15880
15881         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
15882         Disregard if always_inline set.
15883         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
15884         unless DECL_ALWAYS_INLINE.
15885
15886         * attribs.c (handle_always_inline_attribute): New.
15887         (c_common_attribute_table): Add always_inline.
15888
15889         * config/rs6000/altivec.h: Add prototypes for builtins
15890         requiring the always_inline attribute.
15891
15892 2002-02-21  Eric Christopher  <echristo@redhat.com>
15893
15894         * expmed.c (store_bit_field): Try to simplify the subreg
15895         before generating a new one when when the mode size of
15896         value is less than maxmode.
15897
15898 2002-02-21  Richard Henderson  <rth@redhat.com>
15899
15900         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
15901         than gen_rtx_PLUS to form the sum.
15902         * explow.c (force_reg): Rearrange to not allocate new pseudo
15903         when force_operand returns a register.
15904         * expr.c (expand_assignment): Allow offset_rtx expansion to
15905         return a sum.  Do not force addresses into registers.
15906         (expand_expr): Likewise.
15907         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
15908         to canonicalize arithmetic that didn't simpify.
15909         (simplify_plus_minus): New argument force; update
15910         all callers.  Don't split CONST unless we can do something with it,
15911         and wouldn't lose the constness of the operands.
15912
15913         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
15914         that we generated earlier.
15915
15916 2002-02-21  Tom Tromey  <tromey@redhat.com>
15917
15918         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
15919         (output_line_info): Use constant `1', with a long explanatory
15920         comment.
15921         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
15922
15923 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
15924
15925         * jump.c (redirect_jump): If old label has no UID, don't try to
15926         delete it.
15927
15928 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
15929
15930         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
15931         If input is constant, do shifts at compile time.
15932
15933 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
15934
15935         * doc/extend.texi: Fix some more overfull hboxes.
15936
15937 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
15938
15939         PR optimization/4994
15940         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
15941         register moves.
15942
15943 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
15944
15945         PR c++/4574
15946         * expr.h (expand_and): Add mode argument.
15947         * expmed.c (expand_and): Add mode argument.
15948         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
15949         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
15950         * except.c (expand_builtin_extract_return_addr): Likewise.
15951         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
15952         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
15953         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
15954         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
15955         * config/c4x/c4x.md: Use GEN_INT (x) instead of
15956         gen_rtx (CONST_INT, VOIDmode, x).
15957
15958 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
15959
15960         PR c/4697:
15961         * stmt.c (warn_if_unused_value): Move side effects test once more.
15962
15963 2002-02-20  Torbjorn Granlund  <tege@swox.com>
15964
15965         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
15966         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
15967
15968 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
15969
15970         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
15971         SUBREG or ZERO_EXTEND.
15972
15973 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
15974
15975         * sh.h (current_function_anonymous_args): Remove.
15976         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
15977         of current_function_varargs and current_function_stdarg is set.
15978         * sh.c (sh_expand_prologue): Check current_function_varargs /
15979         current_function_stdarg / TARGET_SH5 instead of
15980         current_function_anonymous_args.
15981
15982         * sh64.h (TARGET_VERSION): Define.
15983
15984 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
15985
15986         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
15987         VRSAVE_REGNO on TARGET_ALTIVEC.
15988
15989 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
15990
15991         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
15992         bits of SImode const_int.
15993         (includes_rshift_p): Likewise.
15994         (print_operand): Call mask_operand and mask64_operand with correct
15995         mode.
15996         (rs6000_output_function_epilogue): Pad traceback table to word.
15997         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
15998         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
15999         mask64_operand with correct mode.
16000         (FUNCTION_ARG_REGNO_P): Correct parentheses.
16001
16002 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
16003
16004         PR debug/4461
16005         * varasm.c (get_pool_constant_mark): New.
16006         * rtl.h (get_pool_constant_mark): Add prototype.
16007         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
16008         be represented if it has not been output.
16009
16010 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
16011
16012         * combine.c (do_SUBST): Sanity check substitutions of
16013         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
16014         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
16015         CONST_INT into its operand.
16016         (known_cond): Likewise, for ZERO_EXTEND.
16017         * simplify-rtx.c (simplify_unary_operation): Fix condition to
16018         allow for simplification of wide modes.  Reject CONST_INTs in
16019         ZERO_EXTEND when their actual mode is not given.
16020
16021 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
16022
16023         * c-decl.c (pushdecl): If no global declaration is found for an
16024         extern declaration in block scope, try a limbo one.
16025
16026 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
16027
16028         PR c++/4401
16029         * c-common.c (pointer_int_sum): Moved from...
16030         * c-typeck.c (pointer_int_sum): ...here.
16031         * c-common.h (pointer_int_sum): Add prototype.
16032
16033 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
16034
16035         PR c++/5713
16036         * c-decl.c (duplicate_decls): Return 0 if issued error about
16037         redeclaration.
16038
16039 2002-02-20  Roger Sayle  <roger@eyesopen.com>
16040             Jakub Jelinek  <jakub@redhat.com>
16041
16042         PR c/4389
16043         * tree.c (host_integerp): Ensure that the constant integer is
16044         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
16045         when pos is zero or non-zero respectively.  Clarify comment.
16046         * c-format.c (check_format_info_recurse): Fix host_integerp
16047         usage; the pos argument should be zero when assigning to a
16048         signed HOST_WIDE_INT.
16049
16050 2002-02-20  Richard Henderson  <rth@redhat.com>
16051
16052         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
16053         of the operand, rather than assuming TImode.
16054         (ix86_expand_binop_builtin): Cope with commutative patterns
16055         using nonimmediate_operand for both operands.
16056         (ix86_expand_timode_binop_builtin): Likewise.
16057         (ix86_expand_store_builtin): Validate operand 1.
16058         (ix86_expand_unop1_builtin): Likewise.
16059
16060 2002-02-20  Philip Blundell  <philb@gnu.org>
16061
16062         PR 5705
16063         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
16064
16065 2002-02-20  Richard Henderson  <rth@redhat.com>
16066
16067         PR c/5615
16068         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
16069
16070 2002-02-20  Tom Tromey  <tromey@redhat.com>
16071
16072         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16073         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16074         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16075         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
16076         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
16077         unconditionally.
16078
16079 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
16080
16081         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
16082           for (const_int 0) in X not just INTVAL.
16083
16084 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
16085
16086         * doc/extend.texi: Avoid or reduce overfull hboxes.
16087
16088 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
16089
16090         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
16091         operations if the field does not start at a mode boundary.
16092
16093 2001-02-20      Joel Sherrill <joel@OARcorp.com>
16094
16095         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
16096         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
16097         Also done for -Acpu and -Amachine.
16098
16099 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
16100
16101         * cppinit.c (init_dependency_output): Take deps output file
16102         from -o if none given with -MF.  Suppress normal output.
16103         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
16104         * doc/cpp.texi, doc/invoke.texi: Update.
16105
16106 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
16107
16108         * toplev.c (output_quoted_string): Write unprintable
16109         characters with octal escapes.
16110
16111 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
16112
16113         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
16114         really_call_used[VRSAVE_REGNO] if not Altivec.
16115
16116 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
16117
16118         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
16119         MODE_MASK.
16120         (constant_pool_expr_1): Fix formatting.
16121         (rs6000_legitimize_reload_address): Likewise.
16122
16123 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16124
16125         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
16126         now that we have one.
16127
16128 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
16129
16130         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
16131         end of first block of bitfields (which was only seven bits);
16132         rename dummy to unused_1; remove comment which is no longer true.
16133
16134 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
16135
16136         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
16137
16138 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
16139
16140         PR 5399
16141         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
16142         if generating PIC.
16143
16144         PR 5054
16145         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
16146         arm_is_longcall_p rather than inspecting call-type cookie
16147         directly.
16148         (call_value_insn) [TARGET_THUMB]: Likewise.
16149
16150 2002-02-19  Graham Stott  <grahams@redhat.com>
16151
16152         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
16153
16154 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
16155
16156         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
16157         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
16158         (FP_SAVE_INLINE): Delete.
16159
16160         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
16161         * config/rs6000/eabi.asm: Remove ABI save restore routines.
16162         * config/rs6000/t-ppccomm: Build crtsavres.o.
16163         * config/rs6000/crtsavres.asm: New file.
16164
16165 2002-02-19  Philip Blundell  <philb@gnu.org>
16166
16167         * config/arm/arm.c (use_return_insn): Don't reject interrupt
16168         functions.
16169         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
16170         (output_return_instruction): Allow interrupt functions to return with
16171         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
16172         (arm_expand_prologue): Subtract 4 before stacking LR in an
16173         interrupt function.
16174
16175 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
16176
16177         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
16178         decl, not just FUNCTION_DECL.
16179         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
16180         (arm_assemble_integer): Likewise.
16181         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
16182         marked local.
16183
16184 2002-02-19  matthew green  <mrg@eterna.com.au>
16185
16186         * config.gcc (sparc-*-netbsdelf*): Enable target.
16187         (sparc64-*-netbsd*): New target.
16188         * config/sparc/netbsd-elf.h: New file.
16189         * config/sparc/t-netbsd64: New file.
16190
16191 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
16192
16193         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
16194
16195 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
16196
16197         * doc/invoke.texi: explicitly list the style guidelines that
16198         -Weffc++ checks for.
16199
16200 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
16201
16202         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
16203
16204 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
16205
16206         PR other/5718
16207         * gcc.c (cpp_unique_options): Treat -o as indicating object file
16208         only if not -E.  If -E, pass -o through to the preprocessor.
16209
16210 2002-02-19  Kazu Hirata  <kazu@hxi.com>
16211
16212         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
16213         register number with an appropriate macro.
16214
16215 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16216
16217         * doc/rtl.texi (Constants): Close @code tag.
16218
16219 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
16220
16221         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
16222         ("mmx_uavgv4hi3"): Same.
16223         ("pmulhrwv4hi3"): Same.
16224
16225         * tree-inline.c (walk_tree): Handle vectors.
16226
16227         * c-common.c (constant_expression_warning): Handle vectors.
16228         (overflow_warning): Same.
16229
16230         * sched-deps.c (sched_analyze_2): Handle vectors.
16231
16232         * rtlanal.c (rtx_unstable_p): Handle vectors.
16233         (rtx_varies_p): Same.
16234         (count_occurrences): Same.
16235         (regs_set_between_p): Same.
16236         (modified_between_p): Same.
16237         (modified_in_p): Same.
16238         (volatile_insn_p): Same.
16239         (volatile_refs_p): Same.
16240         (side_effects_p): Same.
16241         (may_trap_p): Same.
16242         (inequality_comparisons_p): Same.
16243         (replace_regs): Same.
16244         (computed_jump_p_1): Same.
16245
16246         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
16247         argument.
16248         (inner_mode_array): New.
16249         (copy_rtx): Handle vectors.
16250         (copy_most_rtx): Same.
16251         (rtx_equal_p): Same.
16252         (get_mode_alignment): Adjust for vectors.
16253
16254         * resource.c (mark_referenced_resources): Handle vectors.
16255         (mark_set_resources): Same.
16256
16257         * reload1.c (eliminate_regs): Handle vectors.
16258         (elimination_effects): Same.
16259         (scan_paradoxical_subregs): Same.
16260
16261         * reload.c (subst_reg_equivs): Handle vectors.
16262
16263         * regrename.c (scan_rtx): Handle vectors.
16264
16265         * regclass.c (reg_scan_mark_refs): Handle vectors.
16266
16267         * recog.c (find_single_use_1): Handle vectors.
16268
16269         * local-alloc.c (equiv_init_varies_p): Handle vectors.
16270         (contains_replace_regs): Same.
16271         (memref_referenced_p): Same.
16272
16273         * integrate.c (copy_rtx_and_substitute): Handle vectors.
16274         (subst_constants): Same.
16275
16276         * genattrtab.c (attr_copy_rtx): Handle vectors.
16277         (encode_units_mask): Same.
16278         (clear_struct_flag): Same.
16279         (count_sub_rtxs): Same.
16280
16281         * gcse.c (want_to_gcse_p): Handle vectors.
16282         (oprs_unchanged_p): Same.
16283         (hash_expr_1): Same.
16284         (oprs_not_set_p): Same.
16285         (expr_killed_p): Same.
16286         (compute_transp): Same.
16287         (store_ops_ok): Same.
16288
16289         * function.c (purge_addressof_1): Do not allow paradoxical subregs
16290         of vectors.
16291         (fixup_var_refs_1): Same.
16292         (instantiate_virtual_regs_1): Same.
16293
16294         * fold-const.c (operand_equal_p): Handle vectors.
16295         (fold): Same.
16296         (rtl_expr_nonnegative_p): Same.
16297
16298         * flow.c (mark_used_regs): Handle vectors.
16299
16300         * df.c (df_uses_record): Handle vectors.
16301
16302         * cselib.c (cselib_subst_to_values): Handle vectors.
16303         (cselib_mem_conflict_p): Same.
16304         (hash_rtx): Same.
16305
16306         * cse.c (canon_reg): Handle vectors.
16307         (fold_rt): Same.
16308         (cse_process_notes): Same.
16309         (count_reg_usage): Same.
16310         (canon_hash): Same.
16311
16312         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
16313
16314         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
16315
16316         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
16317         (gen_rtx): Handle CONST_VECTOR.
16318         (gen_const_vector_0): New.
16319         (copy_rtx_if_shared): CONST_VECTORs can be shared.
16320         (reset_used_flags): Same.
16321         (copy_insn_1): Same.
16322         (initializer_constant_valid_p): Handle VECTOR_CST.
16323
16324         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
16325
16326         * doc/rtl.texi (Constants): Document const_vector.
16327         (CONST0_RTX): Update for vectors.
16328         (RTL sharing): Same.
16329
16330         * print-tree.c (print_node): Add case for VECTOR_CST.
16331
16332         * tree.h (TREE_VECTOR_CST_ELTS): New.
16333         (struct tree_vector): New.
16334         (union tree_node): Add vector node.
16335         (build_vector): Add prototype.
16336
16337         * tree.def (VECTOR_CST): New.
16338
16339         * tree.c (build_vector): New.
16340
16341         * expmed.c (make_tree): Handle CONST_VECTOR.
16342
16343         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
16344         (CONST_VECTOR_ELT): New.
16345         (CONST_VECTOR_NUNITS): New.
16346
16347         * machmode.h (GET_MODE_INNER): New.
16348         (DEF_MACHMODE): Accept 8th arg.
16349
16350         * machmode.def: Add 8th argument for vector inner mode.
16351         Add inner vector modes for vectors.
16352
16353         * rtl.def (VEC_CONST): Remove.
16354         (CONST_VECTOR): New.
16355
16356         * expr.c (clear_storage): Allow vectors.
16357         (is_zeros_p): Handle VECTOR_CST.
16358
16359         * varasm.c (output_constant_pool): Handle vectors.
16360         (rtx_const): Add veclo and vechi fields.
16361         (kind): Add RTX_VECTOR.
16362         (decode_rtx_const): Add case for vector.
16363
16364         * config/rs6000/rs6000-protos.h: Add zero_constant.
16365
16366         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
16367         constants.  Force easy vector constants into memory.
16368         (easy_vector_constant): New.
16369         (emit_easy_vector_constant): New.
16370         (rs6000_legitimize_reload_address): Do not generate bad reloads on
16371         darwin.
16372
16373         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
16374         instruction does.
16375         ("altivec_lvxl"): Same.
16376         (altivec_lvebx): Same.
16377         (altivec_lvehx): Same.
16378         (altivec_lvewx): Same.
16379         ("*movv4si_const0"): New.
16380         ("*movv4sf_const0"): New.
16381         ("*movv8hi_const0"): New.
16382         ("*movv16qi_const0"): New.
16383
16384 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16385
16386         * config/h8300/h8300.c (notice_update_cc): Use
16387         cc_status.value2.
16388
16389 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16390
16391         * config/h8300/h8300.md (divmod patterns): Change the
16392         constraints for operands[1] to register_operand.
16393
16394 2002-02-18  Kazu Hirata  <kazu@hxi.com>
16395
16396         * config/h8300/h8300-protos.h: Remove the prototype for
16397         p_operand.
16398         * config/h8300/h8300.c (p_operand): Remove.
16399         * config/h8300/h8300.md: Replace p_operand with
16400         const_int_operand.
16401
16402 2002-02-18 Philip Blundell <pb@nexus.co.uk>
16403
16404         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
16405         comment.
16406         (output_return_instruction): Allow use of LDR to unstack
16407         return addresss even for interrupt handlers or when
16408         interworking.  If compiling for ARMv5, use interworking-safe
16409         return instructions by default.  Remove duplicated code and
16410         lengthy "strcat" sequences.
16411
16412 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16413
16414         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
16415         (LINK_EH_SPEC): Define.
16416         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
16417
16418 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
16419
16420         * config/s390/s390.c (s390_emit_prologue): Do not set the
16421         frame_related flag for call-clobbered registers.
16422
16423 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
16424
16425         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
16426         (construct_container): Fix handling of SSE operands.
16427         (ix86_expand_builtin): Fix handling of 64bit pointers.
16428         (mmx_maskmovq_rex): New pattern.
16429
16430 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
16431
16432         * regrename.c (kill_set_value): Handle subregs properly.
16433
16434 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
16435
16436         * objc/objc-act.c (handle_impent): Remove leading '*'
16437         from objc_class_name.
16438
16439 2002-02-17  Richard Henderson  <rth@redhat.com>
16440
16441         * config/alpha/alpha.c (some_small_symbolic_operand,
16442         some_small_symbolic_operand_1, split_small_symbolic_operand,
16443         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
16444         Handle small SYMBOL_REFs anywhere, not just inside memories.
16445         * config/alpha/alpha-protos.h: Update.
16446         * config/alpha/alpha.h (PREDICATE_CODES): Update.
16447         * config/alpha/alpha.md (small symbolic operand splitter): Update.
16448
16449 2002-02-17  Roland McGrath  <roland@frob.com>
16450
16451         * config.gcc (powerpc-*-gnu-gnualtivec*,
16452         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
16453         * config/rs6000/gnu.h: New file.
16454         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
16455         Grok "gnu" in rs6000_abi_name.
16456         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
16457         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
16458         Grok -mcall-gnu analogous to -mcall-linux et al.
16459         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
16460         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
16461         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
16462
16463 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
16464
16465         PR c/3444:
16466         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
16467         shortening.
16468
16469 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16470
16471         * config/cris/cris.h: Undefine STARTFILE_SPEC and
16472         ENDFILE_SPEC before (re)defining them.
16473
16474 2002-02-17  Kazu Hirata  <kazu@hxi.com>
16475
16476         * config/h8300/h8300.c: Fix formatting.
16477         * config/h8300/h8300.h: Likewise.
16478
16479 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16480
16481         * doc/tm.texi: Explain why empty strings should not be
16482         marked for translation.
16483
16484 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16485
16486         * final.c (output_operand_lossage): Changed to accept
16487         printf style arguments. Change calls where necessary.
16488         * output.h (output_operand_lossage): Change declaration
16489         accordingly. Update copyright.
16490         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
16491         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
16492         Update copyright date where necessary.
16493
16494         * config/i386/i386.c (print_operand): Likewise. Remove use of
16495         sprintf.
16496
16497         * config/cris/cris.c (cris_operand_lossage): Likewise.
16498         Rename parameter so that exgettext recognizes it as
16499         translatable message.
16500         (LOSE_AND_RETURN): Rename parameter to msgid.
16501
16502 2002-02-17  Kazu Hirata  <kazu@hxi.com>
16503
16504         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
16505         hard coded register number with an appropriate macro.
16506         (HARD_REGNO_MODE_OK): Likewise.
16507         (ARG_POINTER_REGNUM): Likewise.
16508         (STATIC_CHAIN_REGNUM): Likewise.
16509         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
16510         * config/h8300/h8300.md (define_constants): Define more
16511         register numbers.
16512
16513 2002-02-17  Philipp Thomas  <pthomas@suse.de>
16514
16515         * config/i386/i386.h: Don't mark empty strings for translation.
16516
16517 2002-02-16  H.J. Lu <hjl@gnu.org>
16518
16519         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
16520
16521 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
16522
16523         * cppinit.c (merge_include_chains): Check for brack being
16524         NULL before attempting to merge it with qtail.
16525
16526 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
16527
16528         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
16529         DBX_DEBUG.
16530
16531 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16532
16533         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
16534
16535 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16536
16537         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
16538         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
16539         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
16540
16541 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16542
16543         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
16544         now only if !TARGET_FIX.
16545         (*movsi_nt_vms_fix): New pattern.
16546
16547 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
16548
16549         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
16550         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
16551         (alpha_sa_mask, alpha_sa_size): Reflect above change.
16552         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
16553         (alpha_start_function, alpha_expand_epilogue): Likewise.
16554         (unicosmk_gen_dsib): Likewise.
16555
16556 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16557
16558         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
16559
16560 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
16561
16562         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
16563         check_and_change_labels, s390_final_chunkify): Delete.
16564         (s390_split_branches, s390_chunkify_pool): New functions.
16565         (s390_function_prologue): Call them.
16566
16567         * config/s390/s390.h (S390_REL_MAX): Delete.
16568         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
16569
16570         * config/s390/s390.md (cjump, icjump, jump): Fix length
16571         attribute calculation.
16572
16573
16574 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
16575
16576         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
16577         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
16578
16579 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16580
16581         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
16582         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
16583         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
16584
16585 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
16586
16587         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
16588
16589 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
16590
16591         * reload.c (find_dummy_reload): Check that an output register
16592         is valid for its mode.
16593
16594 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
16595
16596         * combine.c (known_cond): After replacing the REG of a SUBREG, try
16597         to simplify it.
16598
16599         * function.c (assign_parms): Demote promoted argument passed by
16600         transparent reference.
16601
16602 2001-02-14      Joel Sherrill <joel@OARcorp.com>
16603
16604         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
16605         -Acpu() and -Amachine() to eliminate warnings.
16606
16607 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
16608
16609         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
16610
16611 2002-02-14  Kazu Hirata  <kazu@hxi.com>
16612
16613         * config/h8300/h8300-protos.h: Update the prototype for
16614         const_costs.
16615         * config/h8300/h8300.c (const_costs): Treat SET as a little
16616         more expensive operation.
16617         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
16618         reference to const_costs.
16619
16620 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
16621
16622         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
16623
16624 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
16625
16626         PR c/5503:
16627         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
16628         use arguments from newtype.
16629
16630 2002-02-13  Eric Christopher  <echristo@redhat.com>
16631
16632         * config/mips/mips.c (override_options): Add check for march/mipsX
16633         on the same command line. Fix error message in cpu processing.
16634         Remove architecture and ISA checks.
16635
16636 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
16637
16638         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
16639
16640         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
16641
16642 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
16643
16644         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
16645         alternatives.
16646         ("*movv8hi_internal1"): Same.
16647         ("*movv16qi_internal1"): Same.
16648         ("*movv4sf_internal1"): Same.
16649
16650         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
16651         not push_reload for altivec modes.
16652
16653 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
16654
16655         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
16656         all RTEMS targets including removal of #includes from config/*/rtems*.h
16657         file and adding them to tm_file setting. Added xm_defines=POSIX to
16658         many targets.
16659         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
16660         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
16661         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
16662         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
16663         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
16664         config/m68k/rtemself.h: Ditto.
16665         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
16666         config/mips/rtems64.h: Ditto.
16667         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
16668         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
16669         Ditto.
16670         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
16671         config/sparc/rtemself.h: Ditto.
16672         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
16673         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
16674         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
16675         more like arm-elf.
16676         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
16677         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
16678         target made more similar to i386-elf.
16679         * config/i386/t-rtems-i386: Added soft float support and multilibs.
16680         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
16681         be similar to config/m68k/t-m68kelf.
16682         * gthr-rtems.h: Encapsulate with extern "C" for C++.
16683
16684 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
16685
16686         * regmove.c (kill_value): Handle subregs.
16687
16688 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
16689
16690         * i386.md (mul patterns): Allow memory operand to be first;
16691         add expanders where needed; fix constraints.
16692         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
16693         Allow memory operand to be the first.
16694
16695         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
16696         operands.
16697
16698 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
16699
16700         PR c/5681:
16701         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
16702         GET_MODE (x).
16703
16704 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
16705
16706         PR optimization/5547:
16707         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
16708         all valid IA-32 address modes involving non-scaled %ebx and
16709         GOT/GOTOFF as displacement.
16710
16711 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
16712
16713         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
16714         after emitting ltorg insns.
16715
16716         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
16717         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
16718         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
16719         *abssf2): Fix "op_type" attribute.
16720
16721 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
16722
16723         * mkconfig.sh: Avoid using a subshell redirect.
16724         ($output.T): Change to $(output)T.
16725         (ENABLE_NLS): Remove unneeded undef.
16726
16727         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
16728         * config/alpha/x-vms (libsubdir): Define.
16729
16730         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
16731         register frame procedures. Optimize retrieving context.
16732
16733         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
16734         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
16735         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
16736
16737 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16738
16739         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
16740         Make same change as for find_base_value.
16741
16742 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16743
16744         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
16745         of QImode and SImode.
16746
16747 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16748
16749         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
16750         length computation of movsi.
16751         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
16752
16753 2002-02-13  Kazu Hirata  <kazu@hxi.com>
16754
16755         * config/h8300/h8300.md (subqi3): Tighten the predicate for
16756         operands[2] to register_operand.
16757
16758 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
16759
16760         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
16761
16762 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
16763
16764         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
16765         for altivec_lvx* and altivec_stvx*.
16766         ("*movv4si_internal"): Add constraint for loading from GPRs.
16767         ("*movv8hi_internal1"): Same.
16768         ("*movv16qi_internal1"): Same.
16769         ("*movv4sf_internal1"): Same.
16770
16771         * config/rs6000/rs6000.c (altivec_register_operand): New.
16772
16773         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
16774         altivec_register_operand.
16775
16776 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
16777
16778         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
16779         handle SYMBOL_REF.
16780
16781 2002-02-13  Stan Shebs  <shebs@apple.com>
16782
16783         * c-typeck.c (digest_init): Handle vectors.
16784         (really_start_incremental_init): Same.
16785         (pop_init_level): Same.
16786         (process_init_element): Same.
16787
16788         * varasm.c (output_constant): Same.
16789
16790         * expr.c (clear_storage): Same.
16791         (store_constructor): Same.
16792
16793 2002-02-12  Eric Christopher  <echristo@redhat.com>
16794
16795         * explow.c (hard_function_value): Add comment explaining
16796         signed/unsigned comparison.
16797
16798 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
16799
16800         * jump.c (never_reached_warning): Add finish argument.
16801         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
16802         real insn after end.
16803         * rtl.h (never_reached_warning): Adjust prototype.
16804         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
16805         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
16806         never_reached_warning.
16807
16808 2002-02-12  Graham Stott  <grahams@redhat.com>
16809
16810         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
16811
16812 2002-02-12  Kazu Hirata  <kazu@hxi.com>
16813
16814         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
16815         logical shifts on H8/300.
16816         (shift_alg_si): Improve several shifts on H8/300.
16817         (get_shift_alg): Likewise.
16818
16819 2002-02-12  Graham Stott  <grahams@redhat.com>
16820
16821         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
16822
16823 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16824
16825         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
16826         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
16827
16828 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
16829
16830         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
16831         non-CONST_INT through default_assemble_integer.
16832         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
16833         <case 8>: Abort for CONST_DOUBLE.
16834
16835 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16836
16837         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
16838         is specified.
16839         * config/pa/pa-linux.h (LIB_SPEC): Delete.
16840         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
16841
16842 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
16843
16844         * config/stormy16/stormy16.md (zero_extendqihi2): New.
16845
16846 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
16847
16848         * regrename.c (regrename_optimize): Don't accept a
16849         part-clobbered register if the replaced register is not part
16850         clobbered.
16851
16852         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
16853         take padding into account when computing the argument value.
16854
16855         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
16856
16857         * combine.c (try_combine): Apply substitutions in
16858         CALL_INSN_FUNCTION_USAGE too.
16859
16860 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
16861
16862         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
16863         __builtin_altivec_abs*.
16864         (bdesc_abs): New.
16865
16866         * config/rs6000/rs6000.h (rs6000_builtins): Add
16867         ALTIVEC_BUILTIN_ABS*.
16868
16869         * config/rs6000/altivec.h: Use const char for builtins expecting
16870         literals.
16871         (vec_abs): New versions for C and C++.
16872         (vec_abss): Same.
16873
16874 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16875
16876         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
16877         using Pmode.
16878
16879 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16880
16881         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
16882         constant definition from h8300.md.
16883         (FRAME_POINTER_REGNUM): Likewise.
16884         * config/h8300/h8300.md (define_constants): Add FP_REG.
16885
16886 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16887
16888         * config/h8300/h8300.c (print_operand): Remove redundant code.
16889
16890 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16891
16892         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
16893         * config/h8300/h8300.c (byte_reg): Make it static.
16894
16895 2002-02-10  Richard Henderson  <rth@redhat.com>
16896
16897         PR c/5623
16898         * c-typeck.c (incomplete_type_error): Handle flexible array members.
16899
16900 2002-02-10  Richard Henderson  <rth@redhat.com>
16901
16902         PR c++/5624
16903         * tree.c (append_random_chars): Don't abort if main_input_filename
16904         does not exist.
16905
16906 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
16907
16908         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
16909
16910 2002-02-10  Kazu Hirata  <kazu@hxi.com>
16911
16912         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
16913         (pushhi1): Likewise.
16914
16915 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16916
16917         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
16918         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
16919
16920 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
16921
16922         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
16923         remove MASK_VIS.
16924         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
16925
16926 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16927
16928         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
16929         a half of an SImode register on H8/300.
16930
16931 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
16932
16933         * i386.md (movdi_2): Add missing '!'.
16934
16935 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16936
16937         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
16938         definitions.
16939
16940 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16941
16942         * config/h8300/h8300.md (length): Correct the distance valid
16943         for the short branch.
16944
16945 2002-02-09  Kazu Hirata  <kazu@hxi.com>
16946
16947         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
16948
16949 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
16950
16951         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
16952         registers in SImode.
16953         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
16954         part-clobbered.
16955
16956         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
16957         patch.
16958
16959         Contribute sh64-elf.
16960         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
16961         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
16962         (sh_cannot_modify_jumps_p): New function.
16963         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
16964         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
16965         (sh_ms_bitfield_layout_p): New function.
16966         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
16967                     Zack Weinberg  <zack@codesourcery.com>
16968         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
16969         expand_simple_binop instead of expand_binop.
16970         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
16971         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
16972         use of .quad and .uaquad.
16973         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
16974         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
16975         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
16976         * config/sh/sh.md (movdi_const, movdi_const_32bit,
16977         movdi_const_16bit): Make sure all CONSTs have modes.
16978         (sym2PIC): Ditto, but by adjusting all callers.
16979         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
16980         if the prologue calls the SHmedia argument decoder or register
16981         saver.
16982         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
16983         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
16984         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
16985         (sh_expand_epilogue): Don't emit USE of return target register.
16986         (prepare_move_operands): Legitimize DImode PIC addresses.
16987         (sh_media_register_for_return): Skip tr0, used to initialize the
16988         PIC register.
16989         (sh_expand_prologue): Remove explicit USE of return register.
16990         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
16991         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
16992         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
16993         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
16994         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
16995         EXTRA_CONSTRAINT_T.
16996         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
16997         (MOVI_SHORI_BASE_OPERAND_P): New.
16998         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
16999         (EXTRA_CONSTRAINT_T): Define in terms of them.
17000         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
17001         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
17002         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
17003         alternatives supporting TARGET_REGS.
17004         (UNSPEC_GOTPLT): New constant.
17005         (movdi split): Move incrementing of LABEL_NUSES...
17006         (movdi_const, movdi_const_32bit): Here.  Use
17007         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
17008         (movdi_const_16bit): New.
17009         (call, call_value) [flag_pic]: Use GOTPLT.
17010         (call_pop, call_value_pop): New expands.
17011         (call_pop_compact, call_pop_rettramp): New insns.
17012         (call_value_pop_compact, call_value_pop_rettramp): New insns.
17013         (sibcall) [flag_pic]: Use GOT.
17014         (builtint_setjmp_receiver): Remove bogus, unused expand.
17015         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
17016         (*pt, *ptb, ptrel): New insns.
17017         (sym2GOT): Handle DImode GOT.
17018         (sym2GOTPLT, symGOTPLT2reg): New expands.
17019         (sym2PIC): New expand.
17020         (shcompact_return_tramp): Use GOTPLT to return trampoline.
17021         (shcompact_return_tramp_i): Use return register explicitly.
17022         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
17023         disable flag_reorder_blocks.
17024         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
17025         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
17026         clobbers, for clarity.
17027         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
17028         restoring of r0 in macl as MAYBE_DEAD.
17029         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
17030         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
17031         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
17032         alter_subreg all over.
17033         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
17034         reload, instead of emitting instructions that would require
17035         reloading.
17036         (casesi_load_media): Add missing modes.
17037         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
17038         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
17039         as used if the argument decoder is called.
17040         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
17041         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
17042         Pmode, then extend it to DImode if necessary.
17043         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
17044         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
17045         constants in FPU-enabled SHmedia, let them be loaded from memory.
17046         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
17047         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
17048         Adjust whitespace in assembly output templates.
17049         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
17050         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
17051         mode of if_then_else.
17052         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
17053         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
17054         sh.h.
17055         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
17056                     Joern Rennecke <amylaar@redhat.com>
17057         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
17058         (SUBTARGET_CPP_PTR_SPEC): New.
17059         (SUBTARGET_CPP_SPEC): Remove.
17060         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
17061         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
17062         Fix typo in previous checkin.
17063         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
17064         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
17065         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
17066                     Alexandre Oliva  <aoliva@redhat.com>
17067         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
17068         what single FP register can hold for SHmedia target.
17069         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
17070                     Alexandre Oliva  <aoliva@redhat.com>
17071         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
17072         Do not split into SUBREG.
17073         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
17074         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
17075         and added new functions as specified in SH5 ABI r9.
17076         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
17077         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
17078         8-byte boundary.
17079         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
17080         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
17081         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
17082         and consttable_window_ends.
17083         2001-06-03  Graham Stott  <grahams@redhat,com>
17084         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
17085         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
17086         * config/sh/sh.c (print_operand): Handle floating-point pair,
17087         vector and matrix registers.
17088         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
17089         vector modes into account.
17090         * config/sh/sh.md (movv2sf): Split move between registers into
17091         movdf.
17092         (movv4sf, movv16sf): Introduce insns that get split only after
17093         reload.
17094         * config/sh/shmedia.h: Fix Copyright dates.
17095         * config/sh/ushmedia.h: Likewise.  Move loop counter
17096         declarations into conditionals that uses them.
17097         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
17098         loop boundary.
17099         * config/sh/sshmedia.h: Fix Copyright dates.
17100         (sh_media_PUTCFG): Fix constraints.
17101         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
17102         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
17103         ptrmemfunc_vbit_in_delta for SH5.
17104         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
17105         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
17106         * invoke.texi: Likewise.
17107         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
17108         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
17109         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
17110         GCC_pop_shmedia_regs_nofpu): New global symbols.
17111         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
17112         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
17113         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
17114         compact function with nonlocal labels.
17115         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
17116         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
17117         (initial_elimination_offset): Account for their stack space.
17118         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
17119         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
17120         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
17121         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
17122         least one of the operands to be a register.
17123         (movv2sf): Likewise.  Renamed to movv2sf_i.
17124         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
17125         prepare_move_operands() before emitting SHmedia insns.
17126         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
17127         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
17128         Don't save nor initialize r12.  Don't mis-align the stack.
17129         Pad the code with a nop.
17130         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
17131         stack.
17132         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
17133         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
17134         [__SHMEDIA__]: Implement.
17135         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
17136         * config/sh/sh.md: Set latency of `pt' closer to reality.
17137         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
17138         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
17139         Set move, load and store type attributes.
17140         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
17141         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
17142         profiling.
17143         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
17144         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
17145         * config/sh/sh.c (sh_media_register_for_return): New function.
17146         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
17147         branch-target register.
17148         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
17149         * config/sh/sh.md (return_media_i): Use any call-clobbered
17150         branch-target register.
17151         (return_media): If r18 wasn't copied in the prologue, copy it
17152         here.
17153         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
17154         Clear class FP0_REGS.
17155         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
17156         from elf.h.
17157         2001-03-08  DJ Delorie  <dj@redhat.com>
17158         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
17159         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
17160         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
17161         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
17162         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
17163         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
17164         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
17165         return value correctly for call_cookie.
17166         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
17167         * config/sh/crt1.asm (start): Modified so as to call
17168         ___setup_argv_and_call_main.
17169         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
17170         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
17171         SHmedia mode.
17172         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
17173         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
17174         (STRIP_NAME_ENCODING): Use it.
17175         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
17176         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
17177         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
17178         prepare_scc_operands().
17179         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
17180         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
17181         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
17182         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
17183         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
17184         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
17185         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
17186         used in shcompact_incoming_args.
17187         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
17188         change.
17189         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
17190         mode.
17191         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
17192         Adjust accordingly.
17193         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
17194         Simplify.  Adjust.  Add sanity check.
17195         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
17196         FPU_SINGLE_BIT.
17197         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
17198         TARGET_SHCOMPACT.
17199         (udivsi3, divsi3): Use them.
17200         (force_mode_for_call): New insn.
17201         (call, call_value, sibcall_value): Emit it before SHcompact
17202         calls.
17203         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
17204         * config/sh/sh.md (call, call_value, sibcall): Make sure the
17205         call cookie is non-NULL before taking its value.
17206         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
17207         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
17208         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
17209         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
17210         block.
17211         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
17212         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
17213         temporary for stack adjusts.  Use MACL and MACH to pass
17214         arguments to shcompact_incoming_args.
17215         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
17216         clobber r1.
17217         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
17218         (nested_trampoline): Load static chain address into r1.
17219         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
17220         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
17221         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
17222         fp_arith_reg_operand().
17223         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
17224         * config/sh/sh.md (casesi): Sign-extend the first two operands,
17225         and use signed compares for them.
17226         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
17227         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
17228         ones properly aligned.
17229         (find_barrier): Account for extra alignment needed for 8-byte wide
17230         constants.
17231         (machine_dependent_reorg): Require a label for the second 4-byte
17232         constant after an 8-byte one.
17233         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
17234         change.
17235         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
17236         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
17237         last_float when switching float modes.
17238         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
17239         auto-increment for general-purpose registers.
17240         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
17241         result.
17242         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
17243         for stack adjust.
17244         * config/sh/sh.c (sh_builtin_saveregs): Support using all
17245         registers for varargs.
17246         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
17247         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
17248         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
17249         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
17250         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
17251         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
17252         call_cookie accordingly.
17253         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
17254         (SHCOMPACT_BYREF): Likewise.
17255         (SHCOMPACT_FORCE_ON_STACK): New macro.
17256         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
17257         (sh_builtin_saveregs): Likewise.
17258         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17259         shcompact_incoming_args): Use new shift values.  Support
17260         sequences of consecutive and non-consecutive pushes/pops.
17261         * config/sh/sh.md (return): Don't explicitly use PR_REG.
17262         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
17263         * config/sh/sh.h (TEXT_SECTION): Define.
17264         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
17265         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
17266         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
17267         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
17268         return values on FPU-enabled SHmedia.
17269         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
17270         FPU-enabled SHmedia.
17271         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
17272         value is returned in a non-FP reg and is not returned by
17273         reference.
17274         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
17275         jump_ind.
17276         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
17277         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
17278         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
17279         quad-aligned to be passed by callee-copy reference.
17280         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
17281         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
17282         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
17283         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
17284         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
17285         copying low-numbered FP regs to r7 and r8.
17286         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
17287         FP regs to general-purpose regs only if the copy was passed on the
17288         stack.
17289         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
17290         copying FP reg to r9.
17291         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
17292         copy FP regs to general-purpose regs only in outgoing calls.
17293         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
17294         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
17295         HOST_WIDE_INT.
17296         * config/sh/sh.h (struct sh_args): Document all fields.
17297         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
17298         passed partially on the stack should not consider making
17299         sibcalls.
17300         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
17301         stack_regs only for incoming calls.  When passing FP args,
17302         make sure there are FP regs available before modifying
17303         call_cookie.
17304         (SHCOMPACT_BYREF): Pass double args in general-purpose
17305         registers by reference.
17306         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
17307         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
17308         attempt to generate sibcalls if the caller got any arguments
17309         by reference.
17310         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
17311         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
17312         to 8-byte boundaries.
17313         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
17314         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
17315         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
17316         stored in the stack.
17317         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
17318         for the offsets to have the ISA bit set.
17319         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
17320         invocation.  Use beq instead of bgt to mark end of sequence of
17321         loads.
17322         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
17323         bgt to mark end of sequence of stores.
17324         * config/sh/sh.c (arith_operand): Don't check whether
17325         CONST_OK_FOR_J for now.
17326         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
17327         instead of long for conversion.
17328         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
17329         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
17330         before passing it to fprintf.
17331         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
17332         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
17333         Call set_fpscr before reading/writing SR.
17334         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
17335         Call set_fpscr.
17336         * config/sh/lib1funcs.asm: Add `.align 2' directives before
17337         SHmedia code.
17338         (FMOVD_WORKS): Define on SH5 with FPU.
17339         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
17340         setting.
17341         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
17342         _fpscr_values.
17343         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
17344         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
17345         address.
17346         (ia_main_table): Ditto.
17347         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
17348         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
17349         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
17350         the definitions from sh.h.
17351         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
17352         TARGET_SH5.
17353         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
17354         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
17355         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
17356         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
17357         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
17358         Increment LABEL_NUSES.
17359
17360         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
17361         TARGET_SH5.
17362         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
17363         defined.
17364         * config/sh/elf.h (SIZE_TYPE): Likewise.
17365         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
17366         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17367         shcompact_incoming_args): Load switch table addresses using
17368         datalabel.
17369         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
17370         (NO_BUILTIN_SIZE_TYPE): Define.
17371         (SIZE_TYPE): Don't define.
17372         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
17373         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
17374         definition of __SH5__=32 for -m5-compact-nofpu.
17375         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
17376         ADDR_DIFF_VEC.
17377         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
17378         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
17379         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
17380         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
17381         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
17382         (INSN_LENGTH_ALIGNMENT): Likewise.
17383         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17384         * config/sh/sh.md (call, call_value, sibcall): Simplify
17385         copying of non-branch-target register.
17386         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17387         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
17388         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
17389         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
17390         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
17391         floating-point values as structs.
17392         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
17393         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
17394         general-purpose register.
17395         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
17396         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
17397         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
17398         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
17399         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
17400         (ENCODE_SECTION_INFO): Enclose variables and constants in
17401         DATALABEL unspecs.
17402         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
17403         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
17404         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
17405         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
17406         only for LABEL_REFs.  For SYMBOL_REFs, prepend
17407         SH_DATALABEL_ENCODING to the symbol name.
17408         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
17409         convert_mode().
17410         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
17411         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
17412         UNSPEC_DATALABEL.
17413         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
17414         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
17415         (DATALABEL_REF_P): Don't require CONST.
17416         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
17417         REL label.
17418         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
17419         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
17420         right.
17421         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
17422         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
17423         Use shallow_copy_rtx and PUT_MODE to change the mode of
17424         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
17425         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
17426         on SHmedia using GENERAL_REGs.
17427         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17428         bltu_media_i): Fix reversion of conditions.
17429         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
17430         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
17431         * config/sh/sh.c (output_far_jump): Save r13 in macl.
17432         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
17433         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
17434         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
17435         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
17436         (GCC_nested_trampoline): Likewise.
17437         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
17438         * config/sh/sh.c (gen_datalabel_ref): Define.
17439         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
17440         (INITIALIZE_TRAMPOLINE): Likewise.
17441         (TRAMPOLINE_ADJUST_ADDRESS): Define.
17442         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
17443         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
17444         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
17445         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
17446         (ic_invalidate): Adjust for SH5.
17447         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
17448         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
17449         _nested_trampoline.
17450         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
17451         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
17452         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
17453         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
17454         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
17455         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
17456         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
17457         * config/sh/sh.c (target_reg_operand): Match only target-branch
17458         registers and pseudos that aren't virtual registers.
17459         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17460         Copy operands that don't match target_reg_operand to pseudos.
17461         (call_media, call_value_media, sibcall_media): Use
17462         target_reg_operand instead of target_operand.
17463         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
17464         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
17465         * config/sh/sh.c (target_reg_operand): Match hardware registers
17466         other than branch-target registers.
17467         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
17468         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
17469         (fpscr_values) [SH5 == 32]: Define.
17470         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
17471         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
17472         Handle function addresses coming in SUBREGs.
17473         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
17474         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
17475         shcompact_return_trampoline): Use datalabel where appropriate.
17476         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
17477         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
17478         general-purpose register to copy one branch-target register to
17479         another.
17480         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
17481         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
17482         SYMBOL_REFs with VOIDmode.
17483         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
17484         bltu_media_i): New insns.
17485         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
17486         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
17487         (INIT_CUMULATIVE_ARGS): Likewise.
17488         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
17489         * machmode.def (V16SFmode): New mode.
17490         * c-common.c (type_for_mode): Support V2SF and V16SF.
17491         * tree.c (build_common_tree_nodes_2): Likewise.
17492         * tree.h (tree_index): Likewise.
17493         * calls.c (emit_call_1): Take args_so_far.  Adjust all
17494         callers.  Introduce CALL_POPS_ARGS.
17495         * tm.texi (CALL_POPS_ARGS): Document.
17496         * config/sh/crt1.asm: Implement in SHmedia mode.
17497         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
17498         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
17499         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
17500         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
17501         Implement divsi and udivsi in SHmedia mode.  Introduce
17502         SHcompact trampolines.
17503         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
17504         only in SHmedia64.
17505         (regno_reg_class): Rewrite.
17506         (fp_reg_names): Remove.
17507         (sh_register_names, sh_additional_register_names): New.
17508         (print_operand): Added `u'.  Support SUBREGs in addresses.
17509         Add parentheses around shifted CONSTs.
17510         (output_file_start): Output .mode and .abi directives.
17511         (shiftcosts, addsubcosts, multcosts): Adjust.
17512         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
17513         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
17514         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
17515         bytes, not registers.  Take into account the need for the
17516         SHcompact incoming args trampoline.  Adjust all callers.
17517         (sh_expand_prologue): Take stack_regs into account.  Call
17518         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
17519         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
17520         stack aligned as per SH5 ABI.
17521         (sh_builtin_saveregs): Support SH5 ABI.
17522         (sh_build_va_list, sh_va_start): Likewise.
17523         (initial_elimination_offset): Take alignment into account.
17524         Compute location of PR according to the SH5 stack frame.
17525         (arith_reg_operand): Reject branch-target registers.
17526         (shmedia_6bit_operand): New.
17527         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
17528         (target_reg_operand): Match DImode only.  Accept SUBREGs.
17529         (target_operand): New.
17530         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
17531         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
17532         SIBCALL_REGS for SHmedia.
17533         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
17534         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
17535         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
17536         (TARGET_SWITCHES): New SH5 flags.
17537         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
17538         VALID_REGISTER_P to disable unsupported registers.
17539         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
17540         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
17541         (FUNCTION_ARG_PADDING): Define.
17542         (FASTEST_ALIGNMENT): Adjust.
17543         (SH_REGISTER_NAMES_INITIALIZER): New.
17544         (sh_register_names): Declare.
17545         (DEBUG_REGISTER_NAMES): Define.
17546         (REGISTER_NAMES): Define based on sh_register_names.
17547         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
17548         (sh_additional_register_names): Declare.
17549         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
17550         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
17551         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
17552         (REGISTER_NATURAL_MODE): Define.
17553         (FIRST_PSEUDO_REGISTER): Adjust.
17554         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
17555         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
17556         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
17557         (VECTOR_MODE_SUPPORTED_P): Define.
17558         (REG_CLASS_CONTENTS): Adjust.
17559         (SMALL_REGISTER_CLASSES): Adjust.
17560         (REG_ALLOC_ORDER): Adjust.
17561         (INDEX_REG_CLASS): Adjust.
17562         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
17563         (CONST_OK_FOR_LETTER_P): Adjust.
17564         (PREFERRED_RELOAD_CLASS): Adjust.
17565         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
17566         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
17567         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
17568         (FIRST_FP_PARM_REG): Adjust.
17569         (CALL_POPS_ARGS): Define.
17570         (FUNCTION_ARG_REGNO_P): Adjust.
17571         (struct sh_args): New fields.
17572         (GET_SH_ARG_CLASS): Adjust.
17573         (INIT_CUMULATIVE_ARGS): Adjust.
17574         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
17575         (FUNCTION_ARG_ADVANCE): Adjust.
17576         (FUNCTION_ARG): Adjust.
17577         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
17578         (FUNCTION_ARG_CALLEE_COPIES): Define.
17579         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
17580         (STRICT_ARGUMENT_NAMING): Define.
17581         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
17582         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
17583         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
17584         (SETUP_INCOMING_VARARGS): Adjust.
17585         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
17586         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
17587         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
17588         (SUBREG_OK_FOR_INDEX_P): Adjust.
17589         (EXTRA_CONSTRAINT_S): Update.
17590         (EXTRA_CONSTRAINT_T): New.
17591         (EXTRA_CONSTRAINT): Adjust.
17592         (GO_IF_LEGITIMATE_INDEX): Adjust.
17593         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
17594         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
17595         (MOVE_MAX): Adjust.
17596         (MAX_MOVE_MAX): Define.
17597         (Pmode): Adjust.
17598         (CONST_COSTS): Adjust.
17599         (REGISTER_MOVE_COST): Adjust.
17600         (BRANCH_COST): Adjust.
17601         (TEXT_SECTION_ASM_OP): Adjust.
17602         (DBX_REGISTER_NUMBER): Adjust.
17603         (ASM_OUTPUT_DOUBLE_INT): New.
17604         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
17605         (PREDICATE_CODES): Adjust.
17606         (PROMOTE_MODE): Adjust.
17607         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
17608         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
17609         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
17610         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
17611         (DR0_REG, DR2_REG, DR4_REG): Renumber.
17612         (TR0_REG, TR1_REG, TR2_REG): New.
17613         (XD0_REG): Renumber.
17614         (UNSPEC_COMPACT_ARGS): New.
17615         (type): Added pt and ptabs.
17616         (length): Default to 4 on SHmedia.  Default pt length to 12
17617         and     20 on SHmedia32 and SHmedia64, respectively.
17618         (pt): New function unit.
17619         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
17620         Add whitespace between operands of SHmedia instructions.
17621         (movdicc): Fix.
17622         (adddi3_media, addsi3_media): Adjust constraints.
17623         (subsi3) [SHmedia]: Force operand 1 into a register.
17624         (udivsi3_i1_media, udivsi3_i4_media): New.
17625         (udivsi3): Support SHmedia.
17626         (divsi3_i1_media, divsi3_i4_media): New.
17627         (divsi3): Support SHmedia.
17628         (anddi3, iordi3, xordi3): Adjust constraints.
17629         (zero_extendhidi2, zero_extendqidi2): New.
17630         (extendsidi2, extendhidi2, extendqidi2): New.
17631         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
17632         (pop_e, pop_fpul, pop_4): Likewise.
17633         (movsi_media): Support FP and BT registers.
17634         (movsi_media_nofpu): New.  Adjust splits to DImode.
17635         (lduw, ldub): Renamed to zero_extend* above.
17636         (movqi_media): Fix typo.
17637         (movdi_media): Support FP and BT registers.
17638         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
17639         (movdi_const_32bit): New.
17640         (shori_media): Require immediate operand.  Use `u' for output.
17641         (movdf_media, movsf_media): Simplified.
17642         (movdf_media_nofpu, movsf_media_nofpu): New.
17643         (movdf, movsf): Adjust
17644         (movv2sf, movv2sf, movv16sf): New.
17645         (beq_media, beq_media_i): Adjust constraints.  Don't use
17646         scratch BT register.
17647         (bne_media, bne_media_i): Likewise.
17648         (bgt_media, bgt_media_i): Likewise.
17649         (bge_media, bge_media_i): Likewise.
17650         (bgtu_media, bgtu_media_i): Likewise.
17651         (bgeu_media, bgeu_media_i): Likewise.
17652         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
17653         bunordered): Emit jump insn.  Force operands to registers when
17654         needed.
17655         (jump_media, jump): Simplify.
17656         (call_compact, call_compact_rettramp): New.
17657         (call_value_compact, call_value_compact_rettramp): New.
17658         (call_media, call_value_media): Simplify.
17659         (sibcall_compact, sibcall_media): New.
17660         (call, call_value): Adjust for SHmedia and SHcompact.
17661         (sibcall, sibcall_value, untyped_call): Likewise.
17662         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
17663         (indirect_jump): Adjust for SHmedia.
17664         (casesi_jump_media): New.
17665         (nop): Re-enable for SHmedia.
17666         (call_site): Restrict to SH1.
17667         (casesi): Adjust for SHmedia.
17668         (casesi_shift_media, casesi_load_media): New.
17669         (return): Explicitly use PR register.  Call return trampoline
17670         on SHcompact.
17671         (return_i): Explicitly use PR register.
17672         (shcompact_return_tramp, shcompact_return_tramp_i): New.
17673         (return_media): Adjust.
17674         (shcompact_incoming_args): New.
17675         (epilogue): Adjust.
17676         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17677         (movstrsi): Disable on SH5.
17678         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
17679         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
17680         (subsf3, subsf3_media): Likewise.
17681         (mulsf3, mulsf3_media, mac_media): Likewise.
17682         (divsf3, divsf3_media): Likewise.
17683         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
17684         (floatsisf2, fux_truncsfsi2): Likewise.
17685         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
17686         constraints.
17687         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
17688         (cmpunsf_media, cmpsf): Likewise.
17689         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
17690         (abssf2, abssf2_media): Likewise.
17691         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
17692         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
17693         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
17694         (floatsidf2, fix_truncdfsi2): Likewise.
17695         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
17696         constraints.
17697         (cmpeqdf_media, cmpgtdf_media): Likewise.
17698         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
17699         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
17700         (absdf2, absdf2_media): Likewise.
17701         (extendsfdf2, extendsfdf2_media): Likewise.
17702         (truncsfdf2, truncsfdf2_media): Likewise.
17703         * config/sh/sh64.h: New file.
17704         * config/sh/t-sh64: New file.
17705         * config/sh/shmedia.h: New file.
17706         * config/sh/ushmedia.h: New file.
17707         * config/sh/sshmedia.h: New file.
17708         * configure.in: Added sh64-*-elf.
17709         * configure: Rebuilt.
17710         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
17711         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
17712         (reg_class_from_letter): Use `b' for TARGET_REGS.
17713         (print_operand): Support `%M', `%m', `AND' and
17714         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
17715         (andcosts): Adjust for SHmedia.
17716         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
17717         Likewise.
17718         (target_reg_operand): New function.
17719         * config/sh/sh-protos.h (target_reg_operand): Declare.
17720         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
17721         FP registers on SH5.
17722         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
17723         on SH4.
17724         (TARGET_REGISTER_P): New macro.
17725         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
17726         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
17727         (EXTRA_CONSTRAINT_S): New macro.
17728         (EXTRA_CONSTRAINT): Adjust.
17729         (FLOAT_TYPE_SIZE): Define to 32.
17730         (Pmode): DImode on SHmedia.
17731         (CONST_COSTS): Adjust for SHmedia literals.
17732         (PREDICATE_CODES): Added target_reg_operand.
17733         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
17734         * config/sh/sh.md: Remove all attrs from SHmedia insns.
17735         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
17736         (cmpdi): Accept SHmedia.
17737         (movdicc_false, movdicc_true): New insns.
17738         (movdicc): New expand.
17739         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
17740         no_new_pseudos.
17741         (addsi3_media): Match `S' constraint.
17742         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
17743         (negdi2): Expand for SHmedia.
17744         (one_cmpldi2): New expand.
17745         (zero_extendsidi2): Change from expand to insn.
17746         (extendsidi2): Add constraints.
17747         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
17748         LD/ST address.  Fix SI immediate loading split.
17749         (movhi_media, movqi_media, lduw, ldub): New insns.
17750         (movhi, movqi): Accept SHmedia.
17751         (shori_media, movdi_media): Relax input constraints.  Split
17752         symbolic constants.
17753         (movdf_media, movsf_media): New insn.  New split to movdi.
17754         (movdf, movsf): Match on SHmedia.
17755         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
17756         bgeu_media): New insns and splits.  New insns with `_i' suffix.
17757         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
17758         (bunordered): New expand.
17759         (jump_compact): Renamed from `jump'.
17760         (jump_media): New insn.
17761         (jump): New expand.
17762         (call_media, call_value_media): New insns.
17763         (call, call_value): Adjust.
17764         (indirect_jump_compact): Renamed from `indirect_jump'.
17765         (indirect_jump_media): New insn.
17766         (indirect_jump): New expand.
17767         (untyped_call, return): Accept SHmedia.
17768         (return_media): New insn.
17769         (prologue, epilogue, blockage): Accept SHmedia.
17770         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
17771         (sunordered): New expand.
17772         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
17773         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
17774         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
17775         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
17776         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
17777         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
17778         abssf2_media): New insns.
17779         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
17780         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
17781         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
17782         floatdidf2, floatsidf2_media, fix_truncdfdi2,
17783         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
17784         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
17785         absdf2_media): New insns.
17786         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
17787         (extendsfdf2_media, truncdfsf2_media): New insns.
17788         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
17789         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
17790         * config/sh/sh.h (CONST_OK_FOR_J): Document.
17791         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
17792         * config/sh/sh.md (adddi3): New expand.
17793         (adddi3_media, adddi3z_media): New insns.
17794         (adddi3_compact): Renamed from adddi3.
17795         (addsi3_media): Use add.l r63 to add constant zero.
17796         (subdi3): New expand.
17797         (subdi3_media): New insn.
17798         (subdi3_compact): Renamed from subdi3.
17799         (mulsidi3): New expand.
17800         (mulsidi3_media): New insn.
17801         (mulsidi3_compact): Renamed from mulsidi3.
17802         (umulsidi3): New expand.
17803         (umulsidi3_media): New insn.
17804         (umulsidi3_compact): Renamed from umulsidi3.
17805         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
17806         (ashlsi3, ashrsi3, lshrsi3): Use them.
17807         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
17808         (ashldi3, ashrdi3, lshrdi3): Use them.
17809         (zero_extendsidi2): New expand.
17810         (extendsidi2): New insn.
17811         (movsi_media): New insn.  Split to movdi to load constants.
17812         (movsi): Enable for shmedia.
17813         (movdi_media): New insn.  Use shori_media to load wide constants.
17814         (short_media): New insn.
17815         (movdi): Enable for shmedia.
17816         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
17817         * config/sh/sh.h (CPP_SPEC): Added `m5'.
17818         (SUBTARGET_CPP_SPEC): Added `!m5'.
17819         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
17820         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
17821         to all other SH variants.
17822         (TARGET_DEFAULT): Set to SH1_BIT.
17823         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
17824         (BITS_PER_WORD): Raise to 64 on shmedia.
17825         (MAX_BITS_PER_WORD): Change to 64.
17826         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
17827         (INT_TYPE_SIZE): Keep as 32.
17828         (UNITS_PER_WORD): Raise to 8 on shmedia.
17829         (MIN_UNITS_PER_WORD): Keep as 4.
17830         (POINTER_SIZE): Raise to 64 on shmedia.
17831         (CONST_OK_FOR_J): New macro.
17832         (CONST_OK_FOR_LETTER_P): Use it.
17833         (processor_type): Add PROCESSOR_SH5.
17834         * config/sh/sh.md: Conditionalize all expands, insns and
17835         splits to TARGET_SH1.
17836         (cpu): Added sh5.
17837         (addsi3_compact): Renamed from...
17838         (addsi3): Now an expand.
17839         (addsi3_media, subsi3_media): New insns.
17840         (subsi3): Don't negate constants with SHmedia.
17841
17842         * hooks.c: New file.
17843         * hooks.h: New file.
17844         * Makefile.in (HOOKS_H): New.
17845         (TARGET_DEF_H): Added $(HOOKS_H).
17846         (OBJS): Added hooks.o.
17847         (cfgcleanup.o, bb-reorder.o): Added target.h.
17848         (hooks.o): Added dependencies.
17849         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
17850         (TARGET_INITIALIZER): this.
17851         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
17852         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
17853         * bb-reorder.c: Include target.h.
17854         (reorder_basic_blocks): Skip if cannot modify jumps.
17855         * cfgcleanup.c: Include target.h.
17856         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
17857
17858 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
17859
17860         * config/mips/mips.md (casesi_internal, casesi_internal_di):
17861         Protect jump delay slot instructions with .set noreorder and
17862         .set nomacro.
17863
17864 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
17865
17866         * config/mips/mips.md (casesi_internal_di): Calculate
17867         the index into the target offset table correctly.
17868
17869 2002-02-08  Richard Henderson  <rth@redhat.com>
17870
17871         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
17872         * final.c (output_addr_const): Accept and discard SUBREG.
17873         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
17874         mark them unknown instead.
17875         (simplify_subtraction): Handle RTX_UNKNOWN.
17876         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
17877
17878 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
17879
17880         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
17881
17882 2002-02-08  Richard Henderson  <rth@redhat.com>
17883
17884         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
17885
17886 2002-02-08  Andreas Jaeger  <aj@suse.de>
17887
17888         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
17889         * config/i386/t-linux64: New file.
17890
17891 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
17892
17893         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
17894         * c-parse.in (compstmt): Clear last_expr_type.
17895
17896 2002-02-07  Richard Henderson  <rth@redhat.com>
17897
17898         * loop.c (strength_reduce): Sink final_value when not
17899         eliminating a biv.
17900
17901 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
17902
17903         * config/sparc/freebsd.h: Fix mismatched spec {.
17904
17905 2002-02-07  Richard Henderson  <rth@redhat.com>
17906
17907         * cfgrtl.c: Include recog.h and insn-config.h.
17908         (keep_with_call_p): Fix general_operand invocation.
17909         * Makefile.in (cfgrtl.o): Update dependencies.
17910
17911 2002-02-07  Kazu Hirata  <kazu@hxi.com>
17912
17913         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
17914         comment.  Accept HImode only if TARGET_H8300.
17915
17916 2002-02-07  Eric Christopher  <echristo@redhat.com>
17917
17918         * config/mips/crtn.asm: Cleanup #ifdefs.
17919
17920 2002-02-07  Eric Christopher  <echristo@redhat.com>
17921
17922         * config/mips/crti.asm: Add changes for mips16. mips16 uses
17923         register 7 as RA instead of $31.
17924         * config/mips/crtn.asm: Ditto.
17925         * config/mips/mips.c (mips_move_2words): Add case for
17926         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
17927         (compute_frame_size): Fix typo.
17928         (save_restore_insns): Ditto.  Make documentation about using
17929         register $7 as return register more precise.
17930         (mips_expand_epilogue): Fix comment. Add code to work around not
17931         being able to add to the stack pointer directly.
17932         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
17933         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
17934         epilogue.
17935
17936 2002-02-07  Tom Rix  <trix@redhat.com>
17937
17938         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
17939         immediates in ldu and stdu DS opcode field.
17940         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
17941         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
17942         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
17943
17944 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
17945
17946         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
17947         offset for stack bias.
17948
17949 2002-02-07  H.J. Lu <hjl@gnu.org>
17950
17951         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
17952
17953 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
17954
17955         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
17956
17957 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
17958
17959         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
17960         * i386.c (x86_order_regs_for_local_alloc): New global function.
17961         * i386.h (REG_ALLOC_ORDER): CLeanup.
17962         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
17963
17964 2002-02-07  Richard Henderson  <rth@redhat.com>
17965
17966         PR optimization/2463
17967         * alias.c (find_base_value): Recall base values for fixed hard regs.
17968         * loop.c (loop_regs_update): Don't use single_set on non-insns.
17969
17970 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
17971
17972         * config/mips/mips.md (define_delay) [mips16]: Adjust required
17973         length.
17974
17975 2002-02-06  Richard Henderson  <rth@redhat.com>
17976
17977         PR c/5609
17978         * stmt.c (resolve_operand_name_1): Take more care with mixed
17979         named and unnamed operands.
17980
17981 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
17982             Jan Hubicka  <jh@suse.cz>
17983
17984         * loop.c (remove_constant_addition): Avoid clobbering a shared
17985         CONST expression.
17986
17987 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
17988
17989         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
17990         * config/s390/t-linux64: New file.
17991         * config/s390/libgcc-glibc.ver: New file.
17992
17993 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
17994
17995         * config/s390/linux64.h: Delete file.
17996         * config/s390/s390x.h: New file.
17997         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
17998         as target header file.
17999         * config/s390/linux.h (TARGET_VERSION): Define depending on
18000         DEFAULT_TARGET_64BIT.
18001         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
18002         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
18003         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
18004         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
18005         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
18006         (EXTRA_SPEC): New define.
18007         * config/s390/s390.h (TARGET_VERSION): Define depending on
18008         DEFAULT_TARGET_64BIT.
18009         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
18010
18011 2002-02-06  Jason Merrill  <jason@redhat.com>
18012
18013         * c-decl.c (finish_function): Warn about a non-void function with
18014         no return statement and no abnormal exit.
18015         (current_function_returns_abnormally): New variable.
18016         (start_function): Clear it.
18017         (struct c_language_function): Add returns_abnormally.
18018         (push_c_function_context): Save it.
18019         (pop_c_function_context): Restore it.
18020         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
18021         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
18022         an explicit return type.
18023         * c-tree.h: Declare current_function_returns_abnormally.
18024         (C_FUNCTION_IMPLICIT_INT): New macro.
18025         * c-typeck.c (build_function_call): Set it.
18026         (c_expand_return): Set current_function_returns_value even if the
18027         value is erroneous.
18028
18029 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
18030
18031         PR c/5420:
18032         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
18033         unsafe for reevaluation.
18034
18035 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
18036
18037         PR c/5482:
18038         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
18039         EXPR_STMT, but COMPOUND_STMT, recurse into it.
18040
18041 2002-02-06  Richard Henderson  <rth@redhat.com>
18042
18043         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
18044         be a general_operand.  Dest for function value must be a pseudo.
18045
18046 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
18047
18048         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
18049         as SYMBOL_REFs from the constant pool.
18050
18051 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
18052
18053         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
18054         passed by invisible reference.
18055
18056 2002-02-05  Richard Henderson  <rth@redhat.com>
18057
18058         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
18059
18060 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
18061
18062         Implement using "base addresses" in insn operands as default.
18063         * config/mmix/mmix.c (mmix_conditional_register_usage): if
18064         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
18065         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
18066         used to read the rtx value.
18067         (mmix_target_asm_function_epilogue): Fix spacing.
18068         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
18069         (mmix_legitimate_address): Ditto.
18070         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
18071         should be loaded with a GETA insn.  Don't allocate needless extra
18072         char for nul termination and fix misleading comment.
18073         (mmix_print_operand_address): Handle constants if
18074         TARGET_BASE_ADDRESSES.
18075         (mmix_output_register_setting): Use base addressing if
18076         TARGET_BASE_ADDRESSES and the number of insns is 3.
18077         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
18078         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
18079         to use R as constraint, add LDA to match s.
18080         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
18081         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
18082         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
18083         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
18084         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
18085         order with other fixed registers.
18086         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
18087         other parameter/call-clobbered registers.
18088         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
18089         -mbase-addresses, -mno-base-addresses.
18090         (MMIX Options): Ditto.
18091
18092 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18093
18094         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
18095
18096 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
18097
18098         * config/rs6000/altivec.h: Change elem to _S_elem.
18099
18100 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
18101
18102         * config/netbsd.h (WCHAR_TYPE): Define.
18103         (WCHAR_TYPE_SIZE): Ditto.
18104         (WINT_TYPE): Ditto.
18105         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
18106         (WCHAR_UNSIGNED): Ditto.
18107         (WCHAR_TYPE_SIZE): Ditto.
18108         (WINT_TYPE): Ditto.
18109         * config/arm/netbsd.h: Likewise.
18110         * config/i386/netbsd-elf.h: Likewise.
18111         * config/i386/netbsd.h: Likewise.
18112         * config/m68k/netbsd-elf.h: Likewise.
18113         * config/m68k/netbsd.h: Likewise.
18114         * config/ns32k/netbsd.h: Likewise.
18115         * config/sparc/netbsd.h: Likewise.
18116         * config/vax/netbsd.: Likewise.
18117
18118 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
18119
18120         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
18121         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
18122         (TARGET_INITIALIZER): this.
18123         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
18124         (BITFIELD_NBYTES_LIMITED): Markup fix.
18125         * tree.h (default_ms_bitfield_layout_p): Declare.
18126         (record_layout_info): Added prev_field.
18127         * tree.c (default_ms_bitfield_layout_p): New fn.
18128         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
18129         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
18130         * stor-layout.c: Include target.h.
18131         (start_record_layout): Initialize prev_field.
18132         (place_field): Handle MS bit-field layout, and disregard
18133         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
18134         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
18135         * Makefile.in (stor-layout.o): Adjust dependencies.
18136
18137 2002-02-05  Jason Merrill  <jason@redhat.com>
18138
18139         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
18140
18141 2002-02-05  Andreas Jaeger  <aj@suse.de>
18142
18143         * crtstuff.c: Fix comments.
18144
18145 2002-02-05  Richard Henderson  <rth@redhat.com>
18146
18147         PR fortran/3393
18148         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
18149         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
18150
18151         PR fortran/3392
18152         * config/mips/mips.c (function_arg): Handle TImode.
18153         (function_arg_advance): Likewise.
18154
18155 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
18156
18157         * config/rs6000/altivec.h (vec_step_help): Rename to
18158         __vec_step_help.
18159
18160 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
18161
18162         * config/rs6000/altivec.h: Fix typos.
18163
18164 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
18165
18166         * config/arm/netbsd.h: Correct a comment.
18167
18168 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
18169
18170         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
18171         building void typed builtins.
18172
18173         * config/rs6000/altivec.h (vec_ld*): Fix typos.
18174         (vec_step): Implement for C++.
18175
18176 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18177
18178         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
18179
18180 2002-02-04  Richard Henderson  <rth@redhat.com>
18181
18182         * combine.c (nonzero_bits): Re-introduce special case for
18183         sp/fp/ap wrt REGNO_POINTER_ALIGN.
18184
18185 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
18186
18187         * doc/extend.texi: Warn about unsupported usage of altivec
18188         builtins.
18189
18190         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
18191         (altivec_predicate_*): New.
18192
18193         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
18194         Add C++ version of vec_*() functions.
18195
18196         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
18197         (bdesc_2arg): Remove altivec predicates.
18198         (altivec_expand_builtin): Handle predicates.
18199         (altivec_init_builtins): Handle predicates.
18200         (altivec_expand_predicate_builtin): New.
18201
18202 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18203
18204         * pa.c (DO_FRAME_NOTES): Move forward.
18205         (store_reg): Revise handling of frame notes.
18206         (load_reg): Likewise.
18207         (set_reg_plus_d): Likewise.
18208         (hppa_expand_prologue): Likewise.
18209         (hppa_expand_epilogue): Likewise.
18210
18211 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18212
18213         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
18214
18215 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
18216
18217         PR c/4475, c++/3780:
18218         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
18219         * c-common.h (SWITCH_TYPE): Define.
18220         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
18221         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
18222         Rename spareness variable to sparseness.
18223         (expand_end_case_type): Renamed from expand_end_case, use orig_type
18224         if non-NULL instead of TREE_TYPE (orig_index).
18225         * tree.h (expand_end_case_type): Renamed from expand_end_case.
18226         (expand_end_case): Define using expand_end_case_type.
18227         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
18228         to expand_end_case_type.
18229         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
18230
18231 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18232
18233         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
18234         (BIGGEST_ALIGNMENT): Change to 128.
18235
18236 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18237
18238         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
18239
18240 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18241
18242         * pa.md (call_internal_reg_64bit): Remove unused variable.
18243
18244 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
18245
18246         * config/arm/arm.h (machine_function): Add uses_anonymous_args
18247         field.
18248         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
18249         * config/arm/arm.c (current_function_anonymous_args): Delete,
18250         replace uses with cfun->machine->uses_anonymous_args.
18251         (arm_reorg): Do not reset uses_anonymous_args.
18252
18253         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
18254         any geenral register.
18255
18256 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
18257
18258         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
18259         the entry block.
18260
18261 2002-02-04  Richard Henderson  <rth@redhat.com>
18262
18263         * combine.c (force_to_mode): Remove STACK_BIAS code.
18264         (nonzero_bits): Likewise.  Replace sp/fp special case with
18265         REGNO_POINTER_ALIGN.
18266
18267         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
18268         (HARD_FRAME_POINTER_REGNUM): New.
18269         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
18270         (FIXED_REGS, CALL_USED_REGS): Update.
18271         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
18272         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
18273         (HARD_REGNO_NREGS): Update for SFP.
18274         (STACK_POINTER_OFFSET): Include bias here ...
18275         (FIRST_PARM_OFFSET): ... not here.
18276         (STACK_BIAS): Remove.
18277         (INIT_EXPANDERS): New.
18278         (STARTING_FRAME_OFFSET): Do not include bias.
18279         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
18280         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
18281         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
18282         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
18283         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
18284         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
18285         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
18286         (MUST_SAVE_REGISTER): Likewise.
18287         (sparc_flat_function_prologue): Likewise.
18288         (sparc_flat_function_epilogue): Likewise.
18289         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
18290         (sparc_init_modes): SFP is GENERAL_REGS.
18291         (sparc_builtin_saveregs): SFP does not have bias applied.
18292
18293 2002-02-04  Richard Henderson  <rth@redhat.com>
18294
18295         * config/alpha/alpha.c (current_function_is_thunk): Don't check
18296         current_function_is_thunk.
18297         (alpha_sa_mask): Distinguish between current_function_is_thunk
18298         called from ASM_OUTPUT_MI_THUNK and not.
18299         (alpha_does_function_need_gp): Thunks always need gp.
18300         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
18301         (alpha_output_mi_thunk_osf): New.
18302         * config/alpha/alpha-protos.h: Update.
18303         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
18304
18305 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
18306
18307         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
18308         function types, not when they're taken away.
18309
18310 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
18311
18312         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
18313         CODE_LABEL and jump table when replacing a table jump with a
18314         simple jump.
18315
18316 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
18317
18318         * config/s390/s390-protos.h (legitimize_la_operand,
18319         s390_secondary_input_reload_class, s390_plus_operand,
18320         s390_expand_plus_operand): Add prototypes.
18321
18322         config/s390/s390.c (s390_secondary_input_reload_class,
18323         s390_plus_operand, s390_expand_plus_operand): New functions.
18324
18325         (struct s390_address): New member 'pointer'.
18326         (s390_decompose_address): Compute it.
18327         (legitimate_la_operand_p): Use it.
18328         (legitimize_la_operand): New function.
18329         (movti, movdi, movdf splitters): Call it.
18330
18331         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
18332         (PREDICATE_CODES): Add s390_plus_operand.
18333
18334         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
18335         (la_ccclobber): Allow GENERAL_REGS as output operand.
18336
18337         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
18338         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
18339         (*la_64, *la_31, reload_indi, reload_insi): ... these.
18340
18341 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
18342
18343         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
18344         register names for regular asm () construct.
18345
18346 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
18347
18348         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
18349         registers.
18350
18351 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
18352
18353         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
18354         pat for recog.
18355
18356 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
18357
18358         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
18359         constant pool to be identical by string address and index.
18360
18361 2002-02-04  Anthony Green  <green@redhat.com>
18362
18363         * output.h (SECTION_OVERRIDE): Define.
18364         * varasm.c (named_section): Obey SECTION_OVERRIDE.
18365
18366 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
18367
18368         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
18369         by existing arm*-*-netbsd* (a.out) target.
18370         (ns32k-*-netbsdelf*): Likewise.
18371         (sparc-*-netbsdelf*): Likewise.
18372         (vax-*-netbsdelf*): Likewise.
18373
18374 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
18375
18376         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
18377         headers and libobjc headers.
18378
18379 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
18380
18381         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
18382         (_mingw.h): Remove duplicate include.
18383
18384 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
18385
18386         * config.gcc: Set cpu_type to m68k for 68010, as well.
18387         (m68010-*-netbsdelf*): New...
18388         (m68k*-*-netbsdelf*): ...targets.
18389         * config/m68k/netbsd-elf.h: New file.
18390
18391 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18392
18393         * config/h8300/h8300.c (hand_list): Move inside function_arg.
18394
18395 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18396
18397         * config/h8300/h8300.c (h8_push_ops): Move inside
18398         h8300_init_once.
18399         (h8_pop_ops): Likewise.
18400         (h8_move_ops): Likewise.
18401
18402 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18403
18404         * config/h8300/h8300.c (os_task): Make it static.
18405         (monitor): Likewise.
18406         (pragma_saveall): Likewise.
18407
18408 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
18409
18410         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
18411         constant is a valid sign-extension for Pmode.
18412
18413 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18414
18415         * config/h8300/h8300.c: Fix formatting.
18416
18417 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18418
18419         * config/h8300/h8300.md: Fix formatting.
18420
18421 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18422
18423         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
18424         predicates of operands[1].  Split the patterns for each
18425         processor variant.
18426
18427 2002-02-02  Kazu Hirata  <kazu@hxi.com>
18428
18429         * config/h8300/h8300.md (xor patterns): Tighten the predicates
18430         of operands[1] to register_operand.
18431
18432 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
18433
18434         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
18435         * cpphash.c (_cpp_init_hashtable): Similarly.
18436         * cppinit.c (cpp_create_reader): Default the signed_char flag.
18437         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
18438         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
18439         (cpp_handle_option): Handle the new options.
18440         * cpplex.c (cpp_interpret_charconst): Use new flag.
18441         * cpplib.h (struct cpp_options): New member signed_char.
18442         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
18443         (cpp_options): Handle -fsigned-char and -funsigned-char.
18444         (static_specs): Remove signed_char_spec.
18445         (do_spec1): Don't handle %c.
18446         * system.h: Poison SIGNED_CHAR_SPEC.
18447         * tradcif.y (yylex): Use flag_signed_char.
18448         * tradcpp.h (flag_signed_char): New.
18449         * tradcpp.c (flag_signed_char): New.
18450         (main): Handle new command-line options.
18451         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
18452 config:
18453         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
18454         * avr/avr.h: Remove old comments.
18455         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
18456         (CC1_SPEC): Pass -fsigned-char if -mic*.
18457         (SIGNED_CHAR_SPEC): Remove.
18458 doc:
18459         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
18460
18461 2002-02-01  Eric Christopher  <echristo@redhat.com>
18462
18463         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
18464         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
18465         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
18466         (ASM_OUTPUT_REG_POP): Ditto.
18467
18468 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
18469
18470         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
18471         patch.
18472
18473 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
18474
18475         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
18476
18477 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
18478
18479         PR c/5304:
18480         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
18481         unconditionally.
18482
18483 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
18484
18485         * cfganal.c: Include tm_p.h.
18486         (keep_with_call_p): Fix the test that determines if a register holds
18487         the return value of a call.
18488
18489 2002-02-01  DJ Delorie  <dj@redhat.com>
18490
18491         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
18492         we are given conflicting registers, switch to the other one we
18493         had allocated for us.
18494         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
18495         as TImode so we know when the "other" register is available.
18496
18497 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
18498
18499         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
18500         sparc/sparc_bi.h.
18501
18502 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
18503
18504         * cfganal.c (keep_with_call_p): New function.
18505         (flow_call_edges_add): Prevent splitting a block between a call and
18506         a single-set instruction that should be kept in the same block.
18507
18508 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18509
18510         * doc/install.texi (avr): Update outdated URL.
18511
18512 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
18513
18514         * config/stormy16/stormy16.md (pushqi): New.
18515         (popqi): New.
18516         (pushhi): New.
18517         (pophi): New.
18518         (movhi): Remove stack operands.
18519         (movqi): Likewise.
18520         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
18521         nonimmediate_nonstack_operand.
18522         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
18523         New.
18524         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
18525         New.
18526
18527 2002-01-31  Jason Merrill  <jason@redhat.com>
18528
18529         * Makefile.in (c-parse.c): Handle .output file.
18530         * objc/Make-lang.in (objc-parse.c): Likewise.
18531
18532 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
18533
18534         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
18535         the -me[lb] option is given.  Don't output the default flag
18536         twice.
18537
18538 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
18539
18540         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
18541         the primary source file; this has not been done yet.
18542         * c-decl.c (c_expand_body): Reset input_filename from
18543         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
18544
18545 2002-01-31  Kazu Hirata  <kazu@hxi.com>
18546
18547         * rtlanal.c (subreg_regno_offset): Do not use
18548         SUBREG_REGNO_OFFSET.
18549         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
18550         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
18551
18552 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
18553
18554         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
18555         version rather than GNATS version in --version output.
18556
18557 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
18558
18559         * ifcvt.c (noce_process_if_block): Make a copy of the destination
18560         when copying back from a temporary.
18561
18562 2002-01-30  Richard Henderson  <rth@redhat.com>
18563
18564         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
18565         and new_dest are the same.
18566
18567 2002-01-30  Richard Henderson  <rth@redhat.com>
18568
18569         PR opt/5076
18570         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
18571         * rtl.c (note_insn_name): Update.
18572         * emit-rtl.c (remove_unnecessary_notes): Kill it.
18573         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
18574         to perform loop rotation.
18575         (expand_exit_loop_top_cond): New.
18576         * tree.h (expand_exit_loop_top_cond): Declare it.
18577         * c-semantics.c (genrtl_while_stmt): Use it.
18578         (genrtl_for_stmt): Likewise.
18579
18580 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
18581
18582         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
18583         arguments to 64-bit boundaries on 64-bit ABIs.
18584
18585 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
18586
18587         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
18588
18589 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
18590
18591         * c-decl.c (grokdeclarator): Handle type being a typedef for an
18592         invalid type.
18593
18594 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
18595
18596         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
18597         * config/sparc/sparc_bi.h: Remove file.
18598         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
18599
18600 2002-01-30  Richard Henderson  <rth@redhat.com>
18601
18602         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
18603
18604 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
18605
18606         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
18607
18608 2002-01-30  Jason Merrill  <jason@redhat.com>
18609
18610         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
18611         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
18612         (reg_save): Use DW_CFA_offset_extended_sf instead.
18613
18614         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
18615
18616 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18617
18618         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
18619         in cselib_lookup.
18620
18621 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
18622
18623         * rs6000.md ("*call_value_local32"): Remove constraints.
18624         ("*call_value_local64"): Same.
18625         ("*call_value_indirect_nonlocal_aix32"): Same.
18626         ("*call_value_nonlocal_aix32"): Same.
18627         ("*call_value_indirect_nonlocal_aix64"): Same.
18628         ("*call_value_nonlocal_aix64"): Same.
18629         ("*call_value_nonlocal_sysv"): Same.
18630
18631 2002-01-29  Richard Henderson  <rth@redhat.com>
18632
18633         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
18634
18635 2002-01-29  Richard Henderson  <rth@redhat.com>
18636
18637         * expr.c (force_operand): Ignore flag_pic for detecting pic
18638         address loads.
18639         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
18640         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
18641         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
18642         instead of open-coded loop.
18643         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
18644         be fixed when in use.
18645
18646 2002-01-29  Richard Henderson  <rth@redhat.com>
18647
18648         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
18649         * sched-rgn.c (propagate_deps): Update them.
18650         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
18651         clobbers list when either gets too long.
18652
18653 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18654
18655         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
18656         and INDEX_REGS the same as GENERAL_REGS.
18657         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
18658
18659 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
18660
18661         * tree.c (build_nonstandard_integer_type): Correct prototype.
18662
18663 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
18664
18665         * config/s390/s390.md (movstrsico, movstrdix_64,
18666         movstrsix_31): Remove, replace by ...
18667         (movstrdi_short, movstrsi_short, movstrdi_long,
18668         movstrsi_long): ... these.  New.
18669         (movstrdi, movstrsi): Adapt.
18670
18671         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
18672         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
18673         Remove unnecessary CC clobber.
18674         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
18675         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
18676
18677         (divmoddi4): Don't partially initialize TImode register.
18678
18679 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
18680
18681         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
18682
18683 2002-01-29  Richard Henderson  <rth@redhat.com>
18684
18685         * flow.c (print_rtl_and_abort): Remove.
18686         (print_rtl_and_abort_fcn): Remove.
18687         (verify_local_live_at_start): Use dump_bb instead.
18688         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
18689         (verify_wide_reg_1): Return 2 on mode test failure.
18690
18691 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
18692
18693         PR c/3325, c/3326, c/2511, c/3347
18694         * c-decl.c (enum_decl_context): Remove BITFIELD.
18695         (grokdeclarator): Take bitfield width as an input.
18696         Ensure bitfields are given the correct type.  Perform
18697         bitfield width validation with build_bitfield_integer_type
18698         rather than waiting for finish_struct.
18699         (grok_typename, grok_typename_in_parm_context, start_decl,
18700         push_parmdecl, grokfield, start_function): Update calls to
18701         grokdeclarator.
18702         (build_bitfield_integer_type): New function.
18703         (finish_struct): Move bitfield validation to grokdeclarator
18704         and build_bitfield_integer_type.
18705         * tree.c (build_nonstandard_integer_type): New function.
18706         * tree.h (build_nonstandard_integer_type): New prototype.
18707 objc:
18708         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
18709
18710 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
18711
18712         PR other/1502:
18713         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
18714         don't ignore unrecognized -W* options.
18715         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
18716         * cpplib.h (cpp_handle_option): Adjust prototype.
18717         * c-decl.c (c_decode_options): Pass 0 as last argument to
18718         cpp_handle_option.
18719
18720         PR c/2896:
18721         * gcc.c (cpp_unique_options): Split from cpp_options.
18722         (cpp_options): Source cpp_unique_options.
18723         (default_compilers): Use cpp_unique_options instead of cpp_options
18724         when used together with cc1_options.
18725         (static_specs): Add cpp_unique_options.
18726         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
18727         when used together with cc1_options.
18728
18729 2002-01-29  Kazu Hirata  <kazu@hxi.com>
18730
18731         * config/h8300/h8300-protos.h: Update the prototype of
18732         output_a_shift.
18733         * config/h8300/h8300.c (output_a_shift): Remove an unused
18734         argument 'insn'.  Remove redundant code.
18735         * config/h8300/h8300.md: Adust to the new prototype of
18736         output_a_shift.
18737
18738 2002-01-29  Kazu Hirata  <kazu@hxi.com>
18739
18740         * config/h8300/h8300-protos.h: Update the prototypes of
18741         emit_a_rotate and expand_a_rotate.
18742         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
18743         first argument to 'enum rtx_code'.
18744         (expand_a_rotate): Likewise.
18745
18746 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18747
18748         * config/h8300/h8300-protos.h: Update the prototype of
18749         output_simode_bld.
18750         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
18751         'log2'.
18752         * config/h8300/h8300.md: Adjust to the new prototype.
18753
18754 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18755
18756         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
18757         redundant code.
18758
18759 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18760
18761         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
18762         is a fixed register before returning pic_offset_table_rtx.
18763         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
18764         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
18765
18766 2002-01-28  Jason Merrill  <jason@redhat.com>
18767
18768         * dwarf2.h: Sync with src version.
18769
18770 2002-01-28  Paul Koning  <pkoning@equallogic.com>
18771
18772         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
18773         BT_FN_VOID_PTR_VAR.
18774         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
18775         * doc/extend.texi (__builtin_prefetch): Update documentation:
18776         first argument is now const void ptr.
18777
18778 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18779
18780         * config/h8300/h8300-protos.h: Remove an unused prototype.
18781
18782 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
18783
18784         * toplev.c (lang_independent_init): Round up identifier size.
18785
18786 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
18787
18788         * config.gcc: Revert previous change.
18789
18790 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
18791
18792         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
18793
18794 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
18795
18796         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
18797         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
18798         other non-elf netbsd config frags.
18799         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
18800         collect2 will does that.
18801         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
18802         shared-lib frobbing will work.
18803
18804 2002-01-28  Kazu Hirata  <kazu@hxi.com>
18805
18806         * config/h8300/h8300.h: Fix formatting.
18807         * config/h8300/h8300.md: Likewise.
18808
18809 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
18810
18811         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
18812         the old, removed AAA_standards fix.
18813         * fixinc/fixincl.x: Rebuilt.
18814
18815 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
18816
18817         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
18818         atexit call in crtbegin, hooked in after call to frame_dummy;
18819         register EH before registering __fini__start.
18820
18821 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
18822
18823         * config/rs6000/altivec.h: Remove spurious semicolons.
18824
18825 2002-01-27  Kazu Hirata  <kazu@hxi.com>
18826
18827         * config/h8300/h8300.md: Replace dead bit extraction patterns
18828         with ones that work.
18829
18830 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18831
18832         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
18833         if not STRICT_ALIGNMENT.
18834         * rtl.h (MEM_ALIGN): Likewise.
18835
18836 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18837
18838         * doc/invoke.texi (-fdump-translation-unit): Revert this
18839         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
18840
18841 2002-01-27  Kazu Hirata  <kazu@hxi.com>
18842
18843         * config/h8300/h8300.md (define_constants): New.
18844         (anonymous patterns) Use defined constants appropriately.
18845
18846 2002-01-27  Kazu Hirata  <kazu@hxi.com>
18847
18848         * config/h8300/h8300.c (function_arg): Remove redundant code.
18849
18850 2002-01-26  Richard Henderson  <rth@redhat.com>
18851
18852         * sched-deps.c (reg_pending_uses_head): New.
18853         (reg_pending_barrier): Rename from reg_pending_sets_all.
18854         (find_insn_list): Don't mark inline.
18855         (find_insn_mem_list): Remove.
18856         (add_dependence_list, add_dependence_list_and_free): New.
18857         (flush_pending_lists): Replace only_write param with separate
18858         for_read and for_write parameters.  Update all callers.  Use
18859         add_dependence_list_and_free.
18860         (sched_analyze_1): Do not add reg dependencies here; just set
18861         the pending bits.  Use add_dependence_list.
18862         (sched_analyze_2): Likewise.
18863         (sched_analyze_insn): Replace schedule_barrier_found with
18864         reg_pending_barrier.  Add all dependencies for pending reg
18865         uses, sets, and clobbers.
18866         (sched_analyze): Don't add reg dependencies for calls, just
18867         set pending bits.  Use regs_invalidated_by_call.  Treat
18868         sched_before_next_call as a normal list, not a fake insn.
18869         (init_deps): No funny init for sched_before_next_call.
18870         (free_deps): Free pending mems lists.  Don't zero reg_last.
18871         (init_deps_global): Init reg_pending_uses.
18872         (finish_deps_global): Free it.
18873         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
18874         (find_insn_mem_list): Remove.
18875         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
18876         (propagate_deps): Use them.  Zero temp mem lists.
18877
18878 2002-01-26  Richard Henderson  <rth@redhat.com>
18879
18880         * Makefile.in (CRTSTUFF_CFLAGS): New.
18881         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
18882         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
18883         crtstuff.c instead of alpha assembly version.
18884         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
18885         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
18886         not FORCE_{INIT,FINI}_SECTION_ALIGN.
18887         (__do_global_dtors_aux): Mark used.
18888         (frame_dummy, __do_global_ctors_aux): Mark used.
18889         (fini_dummy, init_dummy): Remove.
18890
18891         * config/alpha/crtbegin.asm: Remove file.
18892         * config/alpha/crtend.asm: Remove file.
18893         * config/alpha/t-crtbe: Remove file.
18894         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
18895         (LINK_EH_SPEC): New.
18896
18897         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
18898         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
18899         calling constructors.
18900         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
18901
18902         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
18903         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
18904         CRT_END_INIT_DUMMY hack.
18905         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
18906         FORCE_{INIT,FINI}_SECTION_ALIGN.
18907
18908         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
18909         FORCE_{INIT,FINI}_SECTION_ALIGN.
18910
18911         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
18912         invocation sequence.
18913         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
18914
18915         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
18916         (FORCE_CODE_SECTION_ALIGN): New.
18917
18918 2002-01-26  Richard Henderson  <rth@redhat.com>
18919
18920         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
18921
18922 2002-01-26  Richard Henderson  <rth@redhat.com>
18923
18924         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
18925         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
18926
18927 2002-01-26  Kazu Hirata  <kazu@hxi.com>
18928
18929         * config/h8300/h8300.md: Remove bit extraction patterns that
18930         cannot be triggered.
18931         Restrict each bit extraction pattern to a variant on which the
18932         pattern is tested.
18933
18934 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
18935
18936         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
18937
18938 2002-01-26  Kazu Hirata  <kazu@hxi.com>
18939
18940         * config/h8300/h8300.md: Remove bit test patterns that cannot
18941         be triggered.
18942         Restrict each bit test pattern to a variant on which the
18943         pattern is tested.
18944
18945 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18946
18947         * builtins.c (expand_builtin_strncat): Remove redundant check for
18948         INTEGER_CST.
18949
18950 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
18951
18952         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
18953         default setting.
18954         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
18955         existing setting.
18956
18957 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
18958
18959         * dbxout.c (dbxout_init): Use assemble_name rather than just
18960         stripping off the first character.
18961         (dbxout_source_file): Likewise.
18962
18963 2002-01-25  DJ Delorie  <dj@redhat.com>
18964
18965         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
18966         using rtx_equal_p, not by comparing pointers.
18967
18968 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
18969
18970         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
18971         for PIC_OFFSET_TABLE_REGNUM.
18972         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
18973
18974 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
18975
18976         * config.gcc (x86_64-*-freebsd*): New target.
18977         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
18978         value.
18979         (i[34567]86-*-freebsd*): Don't include svr4.h.
18980         * config/i386/freebsd64.h: New file.
18981
18982 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
18983
18984         * config/alpha/x-vms (version): Make static.
18985
18986         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
18987         in previous checkin.
18988
18989         * Makefile.in (install-headers-cp): New target.
18990         * config.gcc (alpha-dec-*vms*): Install headers with
18991         install-headers-cp
18992
18993 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
18994
18995         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
18996         avoid it's copies.
18997
18998 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18999
19000         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
19001         of compare_tree_int.
19002         (expand_builtin_strncat): Likewise.
19003         * c-decl.c (finish_struct): Use tree_low_cst.
19004         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
19005         * tree.c (compare_tree_int): Likewise.
19006
19007 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
19008
19009         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
19010         adjustments even if they are implemented by more than two insns.
19011
19012 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
19013
19014         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
19015         * df.h (struct ref): Kill B.
19016         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
19017
19018         * basic-block.h (PROP_EQUAL_NOTES): New flag.
19019         * flow.c (propagate_one_insn): Use it.
19020         (mark_used_regs): Handle NIL.
19021
19022 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
19023
19024         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
19025         to help folding.
19026
19027 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
19028
19029         * rs6000.md (prefetch): Make address V4SI mode so that the address
19030         is restricted to legitimate form for instruction.
19031
19032 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
19033
19034         * doc/install.texi (xtensa-*-elf): New target.
19035         (xtensa-*-linux*): New target.
19036         * doc/contrib.texi: Add myself.
19037
19038 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
19039
19040         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
19041         purpose register to hold an SImode (or smaller) value.
19042
19043 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
19044
19045         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
19046         registry only.
19047         * crtstuff.c: Likewise.
19048
19049 2002-01-25  Kazu Hirata  <kazu@hxi.com>
19050
19051         * config/h8300/h8300.md (negation patterns): Tighten
19052         predicates to register_operand.
19053
19054 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
19055
19056         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
19057         mode, not Pmode.
19058
19059         * builtins.c (expand_builtin_prefetch): Same.
19060
19061 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
19062
19063         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
19064         modes.
19065
19066 2002-01-24  Kazu Hirata  <kazu@hxi.com>
19067
19068         * config/h8300/h8300.c (print_operand): Remove support for
19069         operand character 'A'.
19070         * config/h8300/h8300.md (three anonymous patterns): Replace
19071         operand character 'A' with either 'T' or 'S'.
19072
19073 2002-01-24  Kazu Hirata  <kazu@hxi.com>
19074
19075         * config/h8300/h8300.c (print_operand): Remove support for
19076         operand character 'U'.
19077
19078 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
19079
19080         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
19081
19082 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
19083
19084         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
19085         values to be assigned to the stack pointer.
19086
19087 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
19088
19089         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
19090         to const_double needs to be done right for big-endian systems.
19091
19092 2002-01-24  Jason Merrill  <jason@redhat.com>
19093
19094         PR c++/2432
19095         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
19096         to can_throw_internal.
19097
19098 2002-01-23  Richard Henderson  <rth@redhat.com>
19099
19100         * fold-const.c (fold): Change UINT_MAX test to check vs precision
19101         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
19102
19103 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
19104
19105         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
19106         (symGOT2reg): Use them, then set as GOT value as unchanging.
19107         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
19108         as a temporary, if possible.
19109         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
19110         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
19111
19112 2002-01-23  Kazu Hirata  <kazu@hxi.com>
19113
19114         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
19115         accept to accept 0x80 as operands[2].
19116
19117 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
19118
19119         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
19120
19121 2002-01-23  Richard Henderson  <rth@redhat.com>
19122
19123         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
19124
19125 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
19126
19127         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
19128         (parmlist_or_identifiers_1): Verify that only a parmlist follows
19129         an attribute.
19130
19131 2002-01-23  Richard Henderson  <rth@redhat.com>
19132
19133         * expr.c (move_by_pieces_1): Extend size before negation.
19134
19135         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
19136         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
19137         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
19138         * config/m68k/t-m68kelf: Likewise.
19139
19140 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
19141
19142         * config/xtensa/elf.h: New file.
19143         * config/xtensa/lib1funcs.asm: New file.
19144         * config/xtensa/lib2funcs.S: New file.
19145         * config/xtensa/linux.h: New file.
19146         * config/xtensa/t-xtensa: New file.
19147         * config/xtensa/xtensa-config.h: New file.
19148         * config/xtensa/xtensa-protos.h: New file.
19149         * config/xtensa/xtensa.c: New file.
19150         * config/xtensa/xtensa.h: New file.
19151         * config/xtensa/xtensa.md: New file.
19152         * config.gcc (xtensa-*-elf*): New target.
19153         (xtensa-*-linux*): New target.
19154         * cse.c (canon_hash): Compare rtx pointers instead of register
19155         numbers.  This is required for the Xtensa port.
19156         * integrate.c (copy_insn_list): Handle case where the static
19157         chain is in memory and the memory address has to be copied to
19158         a register.
19159         * doc/invoke.texi (Option Summary): Add Xtensa options.
19160         (Xtensa Options): New node.
19161         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
19162
19163 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
19164
19165         * diagnostic.c (internal_error): Do ICE suppression only
19166         when ENABLE_CHECKING is not defined.
19167
19168         * c-typeck.c (require_complete_type): Return error_mark_node
19169         if type is error_mark_node.
19170
19171 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
19172
19173         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
19174         -Os and issue a warning.
19175
19176 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
19177
19178         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
19179         current (lack of) need for host configuration by hand.
19180
19181         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
19182         references.  Documentation of some target macros moved from
19183         hostconfig.texi to tm.texi.
19184
19185 2002-01-23  Will Cohen  <wcohen@redhat.com>
19186
19187         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
19188         defined.
19189
19190 2002-01-23  Kazu Hirata  <kazu@hxi.com>
19191
19192         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
19193         operand[3].
19194
19195 2002-01-23  Jason Merrill  <jason@redhat.com>
19196
19197         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
19198
19199         * function.c (assign_parms): Don't put args of inline functions
19200         into registers when not optimizing.
19201
19202 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
19203
19204         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
19205         (prologue_use): New pattern.
19206         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
19207         preference to gen_rtx_USE.
19208         (thumb_expand_prologue): Use gen_prologue_use in preference to
19209         gen_rtx_USE.
19210         (thumb_expand_epilogue): Use gen_prologue_use in preference to
19211         gen_rtx_USE.
19212
19213 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
19214
19215         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
19216
19217 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
19218
19219         PR c/3504
19220         * doc/extend.texi: Correct documentation of __alignof__.
19221
19222 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
19223
19224         * params.h: Rename arguments of DEFPARAM so that it will be
19225         recognized as a translation keyword.
19226
19227 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
19228
19229         * extend.texi: Document altivec functions.
19230         Fix N-bit adjectives in X86 builtin documentation.
19231
19232 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
19233
19234         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
19235         auto_inc_dec values.
19236
19237 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
19238
19239         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
19240         after backslash.
19241         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
19242
19243 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
19244
19245         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
19246
19247 2002-01-22  Richard Henderson  <rth@redhat.com>
19248
19249         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
19250         copy_insn not copy_rtx.
19251
19252 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
19253
19254         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
19255         "nonzero" as that might add "1" bits.  Ensure "constop" is
19256         properly sign extened.
19257         (force_to_mode): Tweak for sign extended constop.
19258
19259 2002-01-22  Richard Henderson  <rth@redhat.com>
19260
19261         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
19262         for_each_rtx instead of assuming we're already looking at the MEM.
19263         (split_small_symbolic_mem_operand): Likewise.
19264         * config/alpha/alpha.h (PREDICATE_CODES): Update.
19265         * config/alpha/alpha.md (small symbolic memory splitters): Update.
19266
19267 2002-01-22  Richard Henderson  <rth@redhat.com>
19268
19269         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
19270         sequence number for the literal.
19271         (divmoddi_internal_er): Likewise.
19272
19273 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19274
19275         PR java/4972
19276         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
19277         in LIBICONV variable.
19278         * configure: Regenerated.
19279
19280 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
19281
19282         * dependence.c (build_def_use): Remove array_idx.
19283
19284         * dwarfout.c (last_filename): Remove.
19285         (output_compile_unit_die): Remove last_filename.
19286
19287 2002-01-22  Roger Sayle  <roger@eyesopen.com>
19288             Richard Henderson  <rth@redhat.com>
19289
19290         PR opt/3640
19291         * fold-const.c (fold): Optimize unsigned comparisons against
19292         UINT_MAX (and similar unsigned constants).
19293
19294 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
19295
19296         * Makefile.in (loop.o): Depend on OPTABS_H.
19297         * loop.c (emit_prefetch_instructions): Check the prefetch operand
19298         against the predicate.
19299
19300         PR target/5379
19301         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
19302         for the address operand.
19303
19304 2002-01-22  Richard Henderson  <rth@redhat.com>
19305
19306         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
19307
19308 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19309
19310         PR other/5450
19311         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
19312         preprocessor flags.
19313
19314 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
19315
19316         * config.gcc (x86_64-*-netbsd*): New target.
19317         * config/i386/netbsd64.h: New file.
19318
19319 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
19320
19321         * regrename.c (kill_value): Fix typo.
19322
19323 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
19324
19325         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
19326
19327         * config/rs6000/rs6000.h: Same.
19328
19329         * function.c (instantiate_virtual_regs): Remove
19330         STARTING_FRAME_PHASE.
19331         (assign_stack_local_1): Same.
19332         Calculate frame phase.
19333
19334 2002-01-22  Nick Clifton  <nickc@redhat.com>
19335
19336         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
19337         variable declaration to outer scope in order to simplify
19338         future extensions.
19339         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
19340         arm_hard_regno_mode_ok.
19341         * config/arm/arm-protos.h: Add a prototype for
19342         arm_hard_regno_mode_ok.
19343         * config/arm/arm.c (soft_df_operand): Remove now redundant
19344         check for DImode values using IP_REGNUM.
19345         (nonimmediate_soft_df_operand): Remove now redundant check for
19346         DImode values using IP_REGNUM.
19347         (arm_hard_regno_mode_ok): New function. New check: make sure
19348         that DImode values are not stored in IP_REGNUM.
19349
19350         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
19351         note with a USE.
19352         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
19353
19354 2002-01-22  Jason Merrill  <jason@redhat.com>
19355
19356         * c-semantics.c (genrtl_compound_stmt): Only check nesting
19357         consistency if this COMPOUND_STMT is scoped.
19358
19359 2002-01-22  Kazu Hirata  <kazu@hxi.com>
19360
19361         * predict.c: Fix formatting.
19362         * print-tree.c: Likewise.
19363         * protoize.c: Likewise.
19364         * real.h: Likewise.
19365         * rtl.h: Likewise.
19366         * sbitmap.h: Likewise.
19367         * scan.c: Likewise.
19368         * sched-deps.c: Likewise.
19369         * sched-vis.c: Likewise.
19370         * sdbout.c: Likewise.
19371         * sibcall.c: Likewise.
19372         * ssa.c: Likewise.
19373         * ssa-ccp.c: Likewise.
19374         * ssa-dce.c: Likewise.
19375         * stmt.c: Likewise.
19376         * stor-layout.c: Likewise.
19377         * system.h: Likewise.
19378
19379 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19380
19381         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
19382         if fits in bounds of base type.
19383
19384         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
19385         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
19386         (add_bound_info, default): If can't find a context, make a
19387         SAVE_EXPR.
19388         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
19389
19390 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
19391
19392         * c-typeck.c (parser_build_binary_op): If result from
19393         build_binary_op is ERROR_MARK just return error_mark_node without
19394         further processing.
19395
19396 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
19397
19398         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
19399         Split a.out-specific bits into...
19400         * config/netbsd-aout.h: ...this.
19401         * config/netbsd-elf.h: New file.
19402         * config/alpha/netbsd-elf.h: Remove.
19403         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
19404         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
19405         (STARTFILE_SPEC): Remove redundant definition.
19406         (ENDFILE_SPEC): Likewise.
19407         (LINK_SPEC): Likewise.
19408         (CPP_SPEC): Likewise.
19409         (ASM_SPEC): Likewise.
19410         (LIB_SPEC): Likewise.
19411         (SWITCH_TAKES_ARG): Likewise.
19412         (TARGET_MEM_FUNCTIONS): Likewise.
19413         (CPP_PREDEFINES): Redefine.
19414         (ASM_FINAL_SPEC): Remove redefinition.
19415         (ASM_COMMENT_START): Redefine.
19416         (FUNCTION_PROFILER): Define.
19417         (TARGET_VERSION): Redefine.
19418         Comment and formatting cleanup.
19419         * config/i386/netbsd.h: Include <netbsd-aout.h>.
19420         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
19421         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
19422         big- or little-endian.
19423         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
19424         * config.gcc (*-*-netbsd*): Add definitions common to all
19425         NetBSD configs.
19426         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
19427         gnu_ld definitions.  Add netbsd-elf.h to and remove
19428         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
19429         tmake_file, and don't lose previous tmake_file contents.
19430         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
19431         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
19432         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
19433         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
19434         (mipsel-*-netbsd*): Rename this to...
19435         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
19436         mips/little.h to tm_file for mips*el-*.
19437         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
19438         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
19439         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
19440
19441 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19442
19443         * pa-protos.h (reg_before_reload_operand): New function prototype.
19444         * pa.c (reg_before_reload_operand): New function implementation.
19445         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
19446         contraints to "*m".
19447
19448 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19449
19450         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
19451
19452 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19453
19454         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
19455         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
19456         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
19457         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
19458         (ENDFILE_SPEC): Undefine.
19459         (STARTFILE_SPEC): Redefine for PA.
19460
19461 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19462
19463         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
19464
19465 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
19466
19467         * config.gcc: Add entries to supported PowerPC --with-cpu
19468         types.
19469
19470 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
19471
19472         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
19473         true for 64-bit mode only SSE registers in 32-bit mode.
19474
19475 2002-01-21  Kazu Hirata  <kazu@hxi.com>
19476
19477         * unwind-dw2.c: Fix formatting.
19478         * unwind-dw2-fde.c: Likewise.
19479         * unwind-dw2-fde.h: Likewise.
19480         * unwind-pe.h: Likewise.
19481         * varasm.c: Likewise.
19482         * varray.h: Likewise.
19483
19484 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
19485
19486         Remove workaround for register stack overwrite bug in mmix.
19487         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
19488         support for TARGET_REG_STACK_FILL_BUG.
19489         * config/mmix/mmix.h: Remove member has_call_without_parameters.
19490         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
19491         Delete.
19492         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
19493         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
19494         -mno-reg-stack-fill-bug-workaround.
19495         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
19496         machine member has_call_without_parameters.
19497         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
19498         -mreg-stack-fill-bug-workaround and
19499         -mno-reg-stack-fill-bug-workaround.
19500         (MMIX Options): Ditto.
19501
19502 2002-01-21  Kazu Hirata  <kazu@hxi.com>
19503
19504         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
19505         as appropriate.
19506         Remove redundant code.
19507
19508 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
19509
19510         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
19511         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
19512         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
19513         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
19514         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
19515         out target macro definitions and non-target-specific comments
19516         mostly taken from old versions of the manual.
19517
19518 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19519
19520         * config/h8300/h8300.h: Fix comment formatting.
19521         * config/ia64/aix.h: Likewise.
19522         * config/ia64/ia64-protos.h: Likewise.
19523         * config/ia64/ia64.c: Likewise.
19524         * config/ia64/ia64.h: Likewise.
19525         * config/ia64/ia64intrin.h: Likewise.
19526         * config/ia64/linux.h: Likewise.
19527         * config/ia64/unwind-aix.c: Likewise.
19528         * config/ia64/unwind-ia64.c: Likewise.
19529
19530 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19531
19532         * config/h8300/h8300.c: Revise comments about shift code.
19533
19534 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19535
19536         * config/h8300/h8300.c (function_arg): Update a comment.
19537
19538 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19539
19540         * config/h8300/h8300.md: Update the comments at the beginning
19541         of the file.
19542
19543 2002-01-20  Kazu Hirata  <kazu@hxi.com>
19544
19545         * config/i370/i370.c: Fix comment formatting.
19546         * config/i370/i370.h: Likewise.
19547         * config/i370/i370.md: Likewise.
19548         * config/i370/linux.h: Likewise.
19549
19550 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19551
19552         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
19553
19554         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
19555         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
19556         in incomplete case.
19557
19558 2002-01-20  Graham Stott  <grahams@redhat.com>
19559
19560         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
19561
19562 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19563
19564         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
19565
19566 2002-01-19  Tom Rix  <trix@redhat.com>
19567
19568         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
19569
19570 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
19571
19572         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
19573
19574         * function.c (assign_stack_local_1): Adjust x_frame_offset with
19575         STARTING_FRAME_PHASE.
19576         (STARTING_FRAME_PHASE): New.
19577         (instantiate_virtual_regs): Check saneness of
19578         STARTING_FRAME_PHASE.
19579
19580         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
19581
19582 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
19583
19584         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
19585
19586 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19587
19588         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
19589         be used for bootstrapping GCC 3.0.
19590
19591 2002-01-18  Kazu Hirata  <kazu@hxi.com>
19592
19593         * config/h8300/h8300.md: Fix an insn length.
19594
19595 2002-01-18  Kazu Hirata  <kazu@hxi.com>
19596
19597         * bitmap.h: Fix comment formatting.
19598         * combine.c: Likewise.
19599         * cppfiles.c: Likewise.
19600         * c-pragma.h: Likewise.
19601         * c-typeck.c: Likewise.
19602         * df.c: Likewise.
19603         * dwarf2out.c: Likewise.
19604         * function.c: Likewise.
19605         * gcc.c: Likewise.
19606         * genattrtab.c: Likewise.
19607         * gthr-win32.h: Likewise.
19608         * haifa-sched.c: Likewise.
19609         * predict.c: Likewise.
19610         * rtlanal.c: Likewise.
19611         * rtl.h: Likewise.
19612         * unwind-dw2-fde.h: Likewise.
19613         * unwind-pe.h: Likewise.
19614         * vmsdbgout.c: Likewise.
19615
19616 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19617
19618         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
19619         if type_required and passed decl.
19620
19621 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
19622
19623         * config.gcc (cpu_type): Include altivec.h in powerpc
19624         extra_headers.
19625         Same for darwin.
19626
19627         * config/rs6000/altivec.h: New.
19628
19629 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
19630
19631         * doc/install.texi (*-ibm-aix*): Update assembler and exception
19632         handling information.
19633         * doc/trouble.texi (Interoperation): Add libstdc++ information
19634         for AIX.
19635         (Misunderstandings): Add template instantiation and static template
19636         member information for AIX.
19637
19638 2002-01-17  Jason Merrill  <jason@redhat.com>
19639
19640         * dbxout.c (dbxout_type): Support const and volatile.
19641
19642         * except.c (add_partial_entry): Remove backwards compatibility code.
19643         (end_protect_partials): Likewise.
19644
19645 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
19646
19647         * config/ia64/ia64.md (prologue_use): New.
19648         * config/ia64/ia64.c (ia64_expand_prologue): Use
19649         gen_prologue_use instead of gen_rtx_USE.
19650         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
19651         as CODE_FOR_pred_rel_mutex.
19652         (ia64_sched_reorder2): Likewise.
19653
19654 2002-01-16  Eric Christopher  <echristo@redhat.com>
19655
19656         * config/mips/r3900.h: Reformat.
19657         (SUBTARGET_CPP_SIZE_SPEC): Remove.
19658         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
19659         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
19660         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
19661         * config/mips/t-elf: Remove mips3 multilib.
19662
19663 2002-01-16  H.J. Lu <hjl@gnu.org>
19664
19665         * config/mips/linux.h: Include "mips/abi64.h".
19666
19667 2002-01-16  H.J. Lu <hjl@gnu.org>
19668
19669         * config/mips/t-linux: New.
19670
19671         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
19672
19673         * config/mips/linux.h: Don't include "gofast.h".
19674         (INIT_SUBTARGET_OPTABS): Removed.
19675
19676 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19677
19678         * config/h8300/h8300-protos.h: Replace emit_a_shift with
19679         output_a_shift.
19680         * config/h8300/h8300.c: Likewise.
19681         * config/h8300/h8300.md: Likewise.
19682
19683 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19684
19685         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
19686         spaces after an opcode name.
19687         (pushqi1_h8300hs): Likewise.
19688         (pushhi1_h8300hs): Likewise.
19689
19690 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19691
19692         * doc/extend.texi: Replace "option" with "attribute"
19693         appropriately.
19694
19695 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19696
19697         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
19698         (and:DI () (const_int -8)).
19699         (split_small_symbolic_mem_operand): Split
19700         (mem (and:DI () (const_int -8)).
19701
19702 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19703
19704         PR target/5309:
19705         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
19706         same way as TYPE_IMUL.
19707         (ultrasparc_sched_reorder): Likewise.
19708         * config/sparc/sparc.md (type): Add comment to update
19709         ultrasparc_sched_reorder when making changes.
19710
19711 2002-01-16  Kazu Hirata  <kazu@hxi.com>
19712
19713         * doc/invoke.texi: Change the dump file name of block
19714         reordering pass from 28.bbro to 29.bbro.
19715         Mention -dk option.
19716
19717 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
19718
19719         * i386.md (minsf splitter): Fix pasto.
19720
19721 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
19722
19723         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
19724         to frame pointer initialisation instruction.
19725         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
19726         initialisation instruction.
19727         (soft_df_operand): Do not accept the IP register.
19728         (nonimmediate_soft_df_operand): Do not accept the IP register.
19729
19730 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
19731
19732         PR target/5357:
19733         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
19734         MASK_V8 being both set.
19735
19736 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
19737
19738         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
19739         insn for GOT register; add REG_MAYBE_DEAD notes instead.
19740         config/s390/s390.md (call, call_value): Add GOT register to
19741         CALL_INSN_FUNCTION_USAGE where needed.
19742         (call_exp, call_value_exp): New.
19743
19744 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
19745
19746         * config/arm/arm.c: General formatting tidy up.
19747
19748 2002-01-16  Graham Stott  <grahams@redhat.com>
19749
19750         * calls.c (try_to_integrate): Use "(size_t)" intermediate
19751         cast and when casting an integer literal to "rtx" pointer.
19752         (expand_call): Likewise.
19753         * flow.c (try_pre_increment): Likewise.
19754         (find_use_as_address): Likewise.
19755         * integrate.c (expand_iline_function): Likewise.
19756         * regmove.c (try_auto_increment): Likewise.
19757
19758 2002-01-16  Graham Stott  <grahams@redhat.com>
19759
19760         * sched-rgn.c (passed): Use sbitmap_free.
19761         (header): Likewise.
19762         (inner): Likewise.
19763         (in_queue): Likewise.
19764         (in_stack): Likewise.
19765
19766 2002-01-15  Eric Christopher  <echristo@redhat.com>
19767
19768         * flow.c (propagate_one_insn): Change to use fatal_insn.
19769
19770 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19771
19772         * expmed.c (extract_fixed_bit_field): Remove unused code.
19773         * system.h: Poison SLOW_ZERO_EXTEND.
19774         * doc/tm.texi: Remove.
19775         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
19776         * config/arm/arm.h: Likewise.
19777         * config/avr/avr.h: Likewise.
19778         * config/clipper/clipper.h: Likewise.
19779         * config/convex/convex.h: Likewise.
19780         * config/d30v/d30v.h: Likewise.
19781         * config/dsp16xx/dsp16xx.h: Likewise.
19782         * config/elxsi/elxsi.h: Likewise.
19783         * config/fr30/fr30.h: Likewise.
19784         * config/h8300/h8300.h: Likewise.
19785         * config/i370/i370.h: Likewise.
19786         * config/i386/i386.h: Likewise.
19787         * config/m68k/m68k.h: Likewise.
19788         * config/mips/mips.h: Likewise.
19789         * config/ns32k/ns32k.h: Likewise.
19790         * config/pdp11/pdp11.h: Likewise.
19791         * config/pj/pj.h: Likewise.
19792         * config/s390/s390.h: Likewise.
19793         * config/sh/sh.h: Likewise.
19794         * config/stormy16/stormy16.h: Likewise.
19795         * config/v850/v850.h: Likewise.
19796         * config/vax/vax.h: Likewise.
19797         * config/we32k/we32k.h: Likewise.
19798
19799 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
19800
19801         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
19802         (altivec_lvsl): Change constraint to b.
19803         (altivec_lvsr): Same.
19804         (altivec_lvebx): Same.
19805         (altivec_lvehx): Same.
19806         (altivec_lvewx): Same.
19807         (altivec_lvxl): Same.
19808         (altivec_lvx): Same.
19809         (altivec_stvx): Add parallel.
19810         (altivec_stvxl): Same.
19811         (altivec_stvehx): Same.
19812         (altivec_stvebx): Same.
19813         (altivec_stvebx): Same.
19814
19815 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
19816
19817         * config.gcc: Change altivec.h to altivec-defs.h.
19818
19819         * config/rs6000/altivec.h: Delete.
19820
19821         * config/rs6000/altivec-defs.h: Add.
19822
19823 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19824
19825         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
19826         and UMOD modes.
19827
19828         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
19829         less than or equal to eight bytes.
19830
19831         * vax.md (andsi3): Remove constraints and change SET destination
19832         operand type to nonimmediate_operand.
19833         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
19834         when it is a CONST_INT.
19835
19836 2002-01-15  Jason Merrill  <jason@redhat.com>
19837
19838         * c-common.def (FILE_STMT): New code.
19839         * c-common.c (statement_code_p): It's a statement.
19840         * c-common.h (stmt_tree_s): Add x_last_filename.
19841         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
19842         (last_expr_filename): New macro.
19843         * c-semantics.c (begin_stmt_tree): Initialize it.
19844         (add_stmt): If the filename changed, also insert a
19845         FILE_STMT.
19846         (expand_stmt): Handle seeing one.
19847
19848 2002-01-15  Eric Christopher  <echristo@redhat.com>
19849
19850         * flow.c (propagate_one_insn): Add error message and print out
19851         insn for debugging.
19852
19853 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
19854
19855         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
19856         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
19857         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
19858         TRAMPOLINE_ALIGNMENT.
19859         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
19860         to be in bits.
19861         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
19862         PCC_BITFIELD_TYPE_MATTERS.
19863         * config/interix.h (STDC_VALUE): Remove.  Use
19864         STDC_0_IN_SYSTEM_HEADERS.
19865         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
19866         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
19867         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
19868
19869 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19870
19871         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
19872         not work on this platform currently.
19873
19874 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
19875
19876         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
19877         readonly_warning in _().
19878
19879 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
19880
19881         * gcc.c (delete_if_ordinary): Backout previous change.
19882
19883 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19884
19885         * config/h8300/h8300.c (print_operand): Remove support for
19886         unused operand characters.
19887
19888         * read-rtl.c: Fix formatting.
19889         * real.c: Likewise.
19890         * recog.c: Likewise.
19891         * regclass.c: Likewise.
19892         * regmove.c: Likewise.
19893         * reg-stack.c: Likewise.
19894         * reload1.c: Likewise.
19895         * rtlanal.c: Likewise.
19896
19897 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19898
19899         * config/i386/i386.c: Fix formatting.
19900
19901 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
19902
19903         * c-typeck.c (process_init_element): Don't save_expr
19904         COMPOUND_LITERAL_EXPR if just its initializer will be used.
19905
19906 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
19907
19908         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
19909         emit optional traceback table if optimize_size or TARGET_ELF.
19910         * config/rs6000/rs6000.md (prefetch): New.
19911
19912 2002-01-15  Andreas Jaeger  <aj@suse.de>
19913
19914         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
19915
19916 2002-01-15  Kazu Hirata  <kazu@hxi.com>
19917
19918         * mips-tfile.c: Fix formatting.
19919
19920 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
19921
19922         * unroll.c (final_reg_note_copy): Fix previous commit.
19923
19924 2002-01-14  Kazu Hirata  <kazu@hxi.com>
19925
19926         * config/h8300/h8300-protos.h: Remove the prototype for
19927         eq_operator.
19928         * config/h8300/h8300.c (eq_operator): Remove.
19929
19930 2002-01-14  Richard Henderson  <rth@redhat.com>
19931
19932         * config/i386/i386.md (prefetch): Tidy.
19933         (prefetch_3dnow): Fix locality operand.
19934
19935 2002-01-14  Richard Henderson  <rth@redhat.com>
19936
19937         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
19938         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
19939
19940 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
19941
19942         * reload1.c (reload_combine): Pass reg_sum replacement through
19943         copy_rtx in loop performing multiple changes.
19944
19945 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
19946
19947         * except.c (remove_unreachable_regions): New.
19948         (free_eh_status): Clear exception_handler_labels.
19949         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
19950         (find_exception_handler_labels): Don't add the same label more than
19951         once.
19952         (remove_exception_handler_label): Don't die if
19953         find_exception_handler_labels hasn't been called for the current
19954         function yet.
19955
19956 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
19957
19958         * toplev.c (rest_of_compilation): Rebuild jump labels after
19959         gcse.
19960
19961 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
19962
19963         * doc/extend.texi: Move documentation of X86 built-in functions
19964         here.
19965         * doc/invoke.texi: From here.
19966         * doc/sourcebuild.texi: Document location of documentation for
19967         machine built-in functions.
19968
19969 2002-01-13  Christopher Faylor  <cgf@redhat.com>
19970
19971         * cppfiles.c (TEST_THRESHOLD): New macro.
19972         (SHOULD_MMAP): Ditto.
19973         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
19974         be used.
19975
19976 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
19977
19978         * unroll.c (final_reg_note_copy): Properly handle
19979         REG_LABEL
19980         (unroll_loops): Fix LOOP_CONDITION heuristics.
19981
19982 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
19983
19984         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
19985         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
19986
19987 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
19988
19989         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
19990         threaded loop.
19991
19992 2002-01-14  Tom Rix  <trix@redhat.com>
19993
19994         * config/rs6000/rs6000.md: Fix typo with sradi.
19995
19996 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
19997
19998         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
19999         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
20000         (clrstrdi, clrstrsi): Adapt callers.
20001
20002         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
20003
20004         (movti splitter): Never use register 0 as base register.
20005
20006 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
20007
20008         * combine.c (simplify_shift_const): Always generate new rtx
20009         for shift expression instead of reusing given expression.
20010
20011 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20012
20013         * config/alpha/alpha.c (alpha_expand_mov): Don't call
20014         alpha_legitimize_address unless mode is Pmode.
20015
20016 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
20017
20018         * doc/md.texi (Modifiers): Document the '*' constraint for the
20019         user.
20020
20021         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
20022         * doc/extend.texi (Function Attributes): 'interrupt' is valid
20023         for xstormy16 too.
20024
20025 2002-01-13  Richard Henderson  <rth@redhat.com>
20026
20027         * reload.c (find_reloads): Use a hard reg destination as reload reg
20028         for an input reload of the source.
20029
20030 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
20031
20032         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
20033         more generic.
20034
20035 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
20036
20037         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
20038         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
20039
20040         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
20041
20042 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20043
20044         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
20045
20046 2002-01-12  Tom Rix  <trix@redhat.com>
20047
20048         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
20049         TARGET_POWERPC64.
20050
20051 2002-01-12  Richard Henderson  <rth@redhat.com>
20052
20053         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
20054
20055         * doc/invoke.texi: Update Alpha options.
20056
20057         * doc/invoke.texi: Update i386 built-in function lists.
20058
20059 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
20060
20061         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
20062         referencing outside.
20063
20064 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20065
20066         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
20067         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
20068         offsets, and change line folding.
20069         * optabs.c (expand_binop): Remove warnings.
20070         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
20071
20072 2002-01-12  Graham Stott <grahams@redhat.com>
20073
20074         * attribs.c (handle_deprecated_attribute): constify WHAT.
20075         * diagnostic.c (warn_deprecated_use): Add braces, fixes
20076         dangling else warning and constify WHAT.
20077         * except.h (struct function, struct inline_remap): Move
20078         struct tag forward defs before all prototypes.
20079         (duplicate_eh_regions): Whitespace.
20080
20081 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
20082
20083         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
20084         MODE_BASE_REG_CLASS.
20085         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
20086
20087 2002-01-12  Richard Henderson  <rth@redhat.com>
20088
20089         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
20090         (ix86_expand_vector_move): New.
20091         (bdesc_2arg): Remove andps, andnps, orps, xorps.
20092         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
20093         Remove old prefetch builtins.  Special case the logicals removed above.
20094         (ix86_expand_builtin): Likewise.
20095         (safe_vector_operand): Use V4SFmode, not TImode.
20096         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
20097         (ix86_expand_timode_binop_builtin): New.
20098         * config/i386/i386-protos.h: Update.
20099         * config/i386/i386.h (enum ix86_builtins): Update.
20100         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
20101         Use ix86_expand_vector_move in vector move expanders.
20102         (movti_internal, movti_rex64): Add xorps alternative.
20103         (sse_clrv4sf): Rename and adjust from sse_clrti.
20104         (prefetch): Don't work so hard.
20105         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
20106         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
20107         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
20108
20109 2002-01-11  Richard Henderson  <rth@redhat.com>
20110
20111         * config/i386/mmintrin.h: New file.
20112         * config/i386/xmmintrin.h: New file.
20113         * config.gcc (i?86-*-*): Add extra_headers.
20114         * simplify-rtx.c (simplify_unary_operation): Handle saturating
20115         truncation codes.
20116         (simplify_binary_operation): Handle saturating arithmetic codes.
20117         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
20118         not the lowpart subreg.
20119         (ix86_expand_builtin): Return a TImode dummy register instead of 0
20120         on error.
20121         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
20122
20123 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20124
20125         * conflict.c (conflict_graph_compute): Free regsets when finished.
20126         * ssa.c (compute_coalesced_reg_partition): Likewise.
20127
20128 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20129
20130         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
20131         every where we allocate a register.
20132
20133 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20134
20135         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
20136         * lcm.c (compute_earliest, compute_farthest): Likewise.
20137
20138 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
20139
20140         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
20141
20142 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
20143
20144         * doc/rtl.texi (Insns): Fix 2 typos.
20145
20146 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
20147
20148         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
20149         options.  Use @table @gcctabopt for MMIX options.  Add index
20150         entries for MMIX options.  Start new paragraph with first
20151         heading of the machine-dependent options.
20152
20153 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20154
20155         PR other/5299
20156         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
20157         * combine.c (force_to_mode): Same.
20158         * reload1.c (clear_reload_reg_in_use): Same.
20159
20160 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
20161
20162         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
20163         and 'subtargets'.
20164
20165 2002-01-11  Andreas Jaeger  <aj@suse.de>,
20166             Brad Lucier <lucier@math.purdue.edu>
20167
20168         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
20169         mcpu.
20170
20171 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
20172
20173         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
20174         Protect with IN_LIBGCC.
20175         (LINK_EH_SPEC): Add required trailing space.
20176
20177 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
20178
20179         * c-tree.h: Move function declarations so that they are listed
20180         under the filename which contains them.
20181         (check_identifier, finish_decl_top_level,
20182         lookup_name_current_level_global, shadow_record_fields): Remove.
20183
20184 2002-01-11  Andreas Jaeger  <aj@suse.de>
20185
20186         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
20187         march.
20188
20189 2002-01-10  Richard Henderson  <rth@redhat.com>
20190
20191         * config/alpha/alpha.c (print_operand): Add 'J'.
20192         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
20193         new operand with the sequence number for the lituse.  When splitting
20194         the insns, use gen_movdi_er_high_g and generate a sequence number.
20195         (gen_movdi_er_high_g): Print the sequence number if non-zero.
20196
20197 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
20198
20199         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
20200         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
20201         stvxl.
20202         (altivec_expand_builtin): Same.
20203         (altivec_expand_stv_builtin): New.
20204
20205         * config/rs6000/rs6000.h (rs6000_builtins): Same.
20206
20207         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
20208         ("altivec_lvehx"): New.
20209         ("altivec_lvewx"): New.
20210         ("altivec_lvxl"): New.
20211         ("altivec_lvx"): New.
20212         ("altivec_stvx"): New.
20213         ("altivec_stvebx"): New.
20214         ("altivec_stvehx"): New.
20215         ("altivec_stvewx"): New.
20216         ("altivec_stvxl"): New.
20217
20218 2002-01-10  Richard Henderson  <rth@redhat.com>
20219
20220         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
20221         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
20222         care not to delete instructions twice.
20223
20224 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
20225
20226         * toplev.c: Don't declare environ (it's not used anywhere).
20227         * configure.in: Don't check for declaration of environ.
20228         * config/i386/xm-mingw32.h: Don't #define environ.
20229         * config.in, configure: Regenerate.
20230
20231 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
20232
20233         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
20234         * configure: Regenerate.
20235
20236         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
20237         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
20238         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
20239         alpha/xm-vms.h.
20240         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
20241         LIMITS_H_TEST here, not in m68k/x-next.
20242         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
20243         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
20244
20245         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
20246         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
20247         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
20248
20249         * config/i386/x-djgpp: Renamed i386/t-djgpp.
20250         * config/m88k/x-dolph: Renamed m88k/t-dolph.
20251         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
20252         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
20253         replacement of quadlib.asm with quadlib.c.
20254
20255         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
20256         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
20257         config/rs6000/xm-beos.h: Delete file.
20258
20259         * config.gcc: Update to match above changes.
20260
20261 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20262
20263         * config/h8300/h8300.h: Fix comment typos.
20264         * config/h8300/h8300.md: Likewise.
20265         * config/h8300/lib1funcs.asm: Likewise.
20266
20267 2002-01-10  Dale Johannesen  <dalej@apple.com>
20268
20269         PR optimization/5269
20270         * unroll.c (precondition_loop_p): Make *increment be the correct
20271         sign when n_iterations known, to avoid confusing caller.
20272
20273 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20274
20275         * doc/extend.texi (deprecated): Fix a typo.
20276
20277 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
20278
20279         * basic-block.h (update_br_prob_note): Declare.
20280         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
20281         (try_forward_edges): Care negative frequencies and update note.
20282         (outgoing_edges_match): Tweek conditional merging heuristics.
20283         (try_crossjump_to_edge): use update_br_prob_note.
20284         * cfglayout.c (fixup_reorder_chain): Likewise.
20285         * cfrtl.c (update_br_prob_note): New.
20286         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
20287
20288         * i386.c (ix86_decompose_address): Return -1 if address contains
20289         shift.
20290         (legitimate_address_p): Require ix86_decompose_address to return 1.
20291
20292         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
20293         (cprop_insn): Likewise.
20294
20295 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20296
20297         * toplev.c: Fix formatting.
20298         * tree.c: Likewise.
20299         * tree-dump.c: Likewise.
20300         * unroll.c: Likewise.
20301         * unwind-dw2.c: Likewise.
20302         * unwind-dw2-fde.c: Likewise.
20303         * unwind-dw2-fde-glibc.c: Likewise.
20304         * unwind-sjlj.c: Likewise.
20305
20306 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
20307
20308         * doc/invoke.texi: Document PDP-11 options.
20309
20310 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20311
20312         * config/h8300/h8300.h: Fix formatting.
20313
20314 2002-01-10  Ira Ruben   <ira@apple.com>
20315
20316         Add __attribute__ ((deprecated)).
20317         * extend.texi: Document __attribute__ ((deprecated)).
20318         * invoke.texi: Document -Wno-deprecated-declarations.
20319         * testsuite/g++.dg/other/deprecated.C: New C++ test.
20320         * testsuite/gcc.dg/deprecated.c: New C test.
20321         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
20322         (c_common_attribute_table): Add "deprecated" entry.
20323         (handle_deprecated_attribute): New function.
20324         * c-decl.c (deprecated_states): New enum.
20325         deprecated_state: State of "deprecated" handling.
20326         (start_decl): Set deprecated_state based on attributes.
20327         (grokdeclarator): Test for deprecated uses, propagate attribute.
20328         * c-typeck.c (build_component_ref): Test for deprecated fields.
20329         (build_external_ref): Test for deprecated primaries.
20330         * diagnostic.c (warn_deprecated_use) New function to issue
20331         warnings about __attribute__ ((depricated)) references.
20332         * flags.h (warn_deprecated_decl): Extern declared for
20333         -W[no-]deprecated-declarations option.
20334         * print-tree.c (print_node): Show deprecated flag status.
20335         * toplev.c (warn_deprecated_decl): Defined.
20336         (W_options): Added "deprecated-declaration".
20337         * toplev.h (warn_deprecated_use): Extern declared.
20338         * tree.h (struct tree_common): Define deprecated_flag.
20339         (TREE_DEPRECATED): New macro to access flag.
20340         * cp/call.c (build_call): Test for deprecated calls.
20341         * cp/class.c (add_implicitly_declared_members): Set global
20342         flag to tell grokdeclarator to not issue deprecated warnings.
20343         * cp/cp-tree.h: Add extern for adding_implicit_members.
20344         * cp/decl.c (deprecated_states): New enum.
20345         (start_decl): Set deprecated_state based on attributes.
20346         (grokdeclarator): Test for deprecated uses, propagate attribute.
20347         * cp/lex.c (do_identifier): Test for deprecated primaries.
20348         * cp/typeck.c (build_component_ref): Test for deprecated fields.
20349
20350 2002-01-10  Ira Ruben   <ira@apple.com>
20351
20352         Fix to assign attributes to inline member functions.
20353         * cp/decl.c (start_method): Handle attrlist.
20354
20355 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20356
20357         * combine.c (expand_field_assignment): Use subreg_lsb().
20358
20359 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
20360
20361         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
20362         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
20363         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
20364         Recurse for any operand of AND as long as constant is non-zero.
20365
20366 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20367
20368         * config/h8300/h8300.md: Remove constraints from expanders.
20369
20370 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20371
20372         * varasm.c: Fix formatting.
20373         * varray.c: Likewise.
20374         * vmsdbgout.c: Likewise.
20375         * xcoffout.c: Likewise.
20376
20377 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
20378
20379         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
20380         update edge probabilities to match.
20381
20382 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
20383
20384         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
20385         dependencies.
20386         * doc/languages.texi, doc/sourcebuild.texi: New files.
20387         * doc/configfiles.texi: Make a subsubsection.  Update.
20388         * doc/configterms.texi: Add @node.  Remove warning that this isn't
20389         instructions for building GCC.
20390         * doc/makefile.texi: Make a subsection.
20391         * doc/gccint.texi: Update.
20392
20393 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
20394
20395         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
20396
20397 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
20398
20399         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
20400
20401 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
20402
20403         * optabs.c (expand_fix): Look for wider integer modes first.
20404
20405         * i386.md (mov?f): Avoid the fake const double trick for medium
20406         memory model.
20407         (min?f*/max?f*): Prohibit memory operands for i387 variant.
20408         (fop_df_4): Disable for SSE compilation.
20409
20410 2002-01-10  Graham Stott  <grahams@redhat.com>
20411
20412         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
20413         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
20414
20415 2002-01-10  Richard Henderson  <rth@redhat.com>
20416
20417         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
20418
20419 2002-01-10  Richard Henderson  <rth@redhat.com>
20420
20421         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
20422         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
20423
20424 2002-01-10  Kazu Hirata  <kazu@hxi.com>
20425
20426         * combine.c (can_combine_p): Fix a comment typo.
20427
20428 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
20429
20430         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
20431         empty list correctly.  Change loop index $t to $f for
20432         consistency with rest of Makefile.
20433
20434 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
20435
20436         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
20437         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20438
20439         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
20440         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
20441         (altivec_init_builtins): Same.
20442         (altivec_expand_unop_builtin): Return NULL_RTX on error.
20443         (altivec_expand_binop_builtin): Same.
20444         (altivec_expand_ternop_builtin): Same.
20445         (bdesc_dst): New.
20446
20447         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
20448         ("altivec_vctuxs"): Fix typo.
20449         ("altivec_vnmsubfp"): Same.
20450         ("altivec_dssall"): New.
20451         ("altivec_mfvscr"): New.
20452         ("altivec_dss"): New.
20453         ("altivec_lvsl"): New.
20454         ("altivec_lvsr"): New.
20455         ("altivec_dstt"): New.
20456         ("altivec_dstst"): New.
20457         ("altivec_dststt"): New.
20458         ("altivec_dst"): New.
20459
20460         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
20461         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
20462
20463 2002-01-09  Richard Henderson  <rth@redhat.com>
20464
20465         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
20466
20467 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
20468
20469         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
20470         function.
20471         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
20472         prototype.
20473         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
20474
20475 2002-01-09  Kazu Hirata  <kazu@hxi.com>
20476
20477         * read-rtl.c: Fix formatting.
20478         * real.c: Likewise.
20479         * regclass.c: Likewise.
20480         * regrename.c: Likewise.
20481         * reg-stack.c: Likewise.
20482         * reload1.c: Likewise.
20483         * reload.c: Likewise.
20484         * rtl.c: Likewise.
20485
20486 2002-01-09  Kazu Hirata  <kazu@hxi.com>
20487
20488         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
20489         to extract items in the expr_list chain.
20490
20491 2002-01-09  Richard Henderson  <rth@redhat.com>
20492
20493         * config/vax/vax.c (vax_rtx_cost): Never abort.
20494
20495         * config/vax/vax.h (REAL_ARITHMETIC): Define.
20496
20497 2002-01-09  Jan Hubicka  <jh@suse.cz>
20498
20499         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
20500
20501 2002-01-09  Richard Henderson  <rth@redhat.com>
20502
20503         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
20504         Unify code from various alternatives.
20505
20506 2002-01-09  Richard Henderson  <rth@redhat.com>
20507
20508         * regrename.c (copy_value): Ignore the copy if the source register
20509         is present in the value chain with a narrower mode.
20510
20511 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
20512
20513         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
20514         for the c4x target. Also improve layout.
20515
20516 2002-01-09  Richard Henderson  <rth@redhat.com>
20517
20518         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
20519         * config/m32r/m32r.md (and ior xor splitters): Swap operands
20520         to match insn patterns.
20521
20522 2002-01-09  Richard Henderson  <rth@redhat.com>
20523
20524         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
20525         (copyprop_hardreg_forward_1): Likewise.
20526
20527 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20528
20529         * pa.md (decrement_and_branch_until_zero): Change predicate for
20530         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
20531
20532 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
20533
20534         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
20535         gets undefined. For Darwin.
20536
20537 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
20538
20539         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
20540
20541 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
20542
20543         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
20544
20545 2002-01-08  Richard Henderson  <rth@redhat.com>
20546
20547         * regrename.c (copy_value): Ignore overlapping copies.
20548
20549 2002-01-08  Richard Henderson  <rth@redhat.com>
20550
20551         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
20552         as needed to avoid shared structure.
20553
20554 2002-01-08  Kazu Hirata  <kazu@hxi.com>
20555
20556         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
20557         H8/300H and H8/S.
20558
20559 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20560
20561         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
20562         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
20563         documentation of obsolete macros.
20564         * system.h: Poison these macros.
20565         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
20566         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
20567         config/c4x/c4x.h, config/clipper/clipper.h,
20568         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
20569         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
20570         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
20571         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
20572         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
20573         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
20574         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
20575         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
20576         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
20577         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
20578         config/sparc/sparc.h, config/stormy16/stormy16.h,
20579         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
20580         definitions and commented out definitions of obsolete macros.
20581         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
20582         of MAX_INT_TYPE_SIZE.
20583
20584 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
20585
20586         * config/s390/s390.c (s390_preferred_reload_class): Never
20587         return ADDR_REGS if it isn't a subset of the given class.
20588         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
20589         FP_REGS, but all superclasses as well.
20590
20591         * config/s390/s390.c (s390_function_profiler): Fix thinko.
20592
20593         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
20594         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
20595         must not be a const_int.
20596
20597 2002-01-08  Richard Henderson  <rth@redhat.com>
20598
20599         * Makefile.in (toplev.o): Depend on options.h.
20600         (gcc.o): Depend on specs.h.
20601
20602 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
20603
20604         * expr.c (store_expr): Convert VOIDmode constants back to target's
20605         mode.
20606
20607 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
20608
20609         * doc/invoke.texi: Markup gcc as @command.  Refer to
20610         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
20611         of http://gcc.gnu.org/thanks.html.
20612
20613 2002-01-08  Dale Johannesen  <dalej@apple.com>
20614
20615         * config/rs6000/rs6000.md: Add missing int register
20616         target case to movdf_low.
20617
20618 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
20619
20620         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
20621         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
20622         (cppinit.o): Depend on except.h.
20623         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
20624         s-specs): New rules.
20625
20626         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
20627         Don't create specs.h/options.h/gencheck.h here.  Remove
20628         unnecessary variable settings from last argument of AC_OUTPUT.
20629         * config.in, configure: Regenerate.
20630         * intl.c: Hardcode package name as "gcc".
20631
20632         * cppinit.c: Include except.h.
20633         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
20634         appropriate.
20635         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
20636         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
20637         (!)USING_SJLJ_EXCEPTIONS.
20638         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
20639
20640 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20641
20642         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
20643         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
20644         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
20645         documentation of obsolete macros.
20646         * system.h: Poison these macros.
20647         * config/d30v/d30v.h, config/ns32k/encore.h,
20648         config/stormy16/stormy16.h: Remove definitions and commented out
20649         definitions of obsolete macros.
20650
20651 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
20652
20653         * objc/objc-act.c (handle_class_ref): Mark the declaration of
20654         %sobjc_class_ref_%s as used - to prevent unwanted compiler
20655         warnings.
20656
20657 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
20658
20659         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
20660         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
20661         to insn adjusting stack/frame pointer.
20662         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
20663         accept operands that cause the insn to be non-splittable.
20664
20665 2002-01-08  Graham Stott  <grahams@redhat.com>
20666
20667         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
20668         (C_TYPE_FIELDS_VOLATILE): Likewise.
20669         (C_TYPE_BEING_DEFINED): Likewise.
20670         (C_IS_RESERVED_WORD): Likewise.
20671         (C_TYPE_VARIABLE_SIZE): Likewise.
20672         (C_DECL_VARIABLE_SIZE): Likewise.
20673         (C_MISSING_PROTOTYPE_WARNED): Likewise.
20674         (C_SET_EXP_ORIGINAL_CODE): Likewise.
20675         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
20676         parenthesis.
20677         (C_DECL_ANTICIPATED): Likewise.
20678         (c_build_type_variant): Add parenthesis.
20679
20680 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
20681
20682         * gcc.c (option_map): Remove --version.
20683         (process_command): Handle -fversion following the GNU Coding
20684         Standards.  Partially addresses PR other/704.
20685
20686 2002-01-08  Graham Stott  <grahams@redhat.com>
20687
20688         * combine.c (combine_instructions): Fix typo.
20689
20690 2002-01-08  Graham Stott  <grahams@redhat.com>
20691
20692         * debug.h: Use "tree" and "rtx" throughout.
20693
20694         * debug.c: Likewise.
20695
20696 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
20697
20698         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
20699         constant pool, use the pool's version of the symbol instead.
20700
20701 2002-01-07  Richard Henderson  <rth@redhat.com>
20702
20703         * regrename.c (find_oldest_value_reg): Ignore the value chain if
20704         the original register was copied in a mode with a fewer number of
20705         hard registers than the desired mode.
20706         (copyprop_hardreg_forward_1): Likewise.
20707         (debug_value_data): Fix loop test.
20708         * toplev.c (parse_options_and_default_flags): Reenable
20709         -fcprop-registers at -O1.
20710
20711 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20712
20713         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
20714         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
20715
20716         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
20717         predicates.
20718
20719         * config/rs6000/rs6000.md: Add altivec predicate patterns.
20720
20721 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20722
20723         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
20724         (pa_output_function_prologue): Output local label at the beginning of
20725         the prologue when profiling.
20726         (hppa_profile_hook): Use the local label rather than the function label.
20727         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
20728
20729 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20730
20731         * config/rs6000/rs6000.c (print_operand): Remove extra space.
20732         (altivec_expand_unop_builtin): Fix thinko.
20733         (altivec_expand_binop_builtin): Same.
20734         (altivec_expand_ternop_builtin): Same.
20735         (altivec_expand_builtin): Same.
20736
20737 2002-01-07  Richard Henderson  <rth@redhat.com>
20738
20739         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
20740
20741 2002-01-07  Jason Merrill  <jason@redhat.com>
20742
20743         * unwind-dw2.c (execute_cfa_program): Use < again.
20744
20745 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
20746
20747         * predict.c (combine_predictions_for_insn): Avoid division by zero.
20748
20749 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
20750
20751         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
20752         Don't allow -1 - x -> ~x simplifications in the first pass.
20753
20754 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
20755
20756         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
20757         arguments.
20758         (altivec_expand_binop_builtin): Same.
20759         (altivec_expand_unop_builtin): Same.
20760         (print_operand): Fix typo.
20761         (bdesc_1arg): Add vupk* variants.
20762
20763         * rs6000.h (rs6000_builtins): Add vupk* enums.
20764
20765         * rs6000.md: Add altivec_vupk* variants.
20766
20767 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
20768
20769         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
20770         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
20771         and last update dates.
20772
20773 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
20774
20775         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
20776
20777 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
20778
20779         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
20780         * config/avr/avr.h (CPP_SPEC): Likewise.
20781         (LINK_SPEC): Likewise.
20782         (CRT_BINUTILS_SPECS): Likewise.
20783         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
20784         * doc/invoke.texi (AVR Options): Document them.
20785
20786 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
20787
20788         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
20789         LABEL_NUSES.
20790
20791 2002-01-07  Graham Stott  <grahams@redhat.com>
20792
20793         * config/i386/i386.h: Update copyright date.
20794         (HALF_PIC_PTR): Add parenthesis.
20795         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
20796         (CONSTANT_ALIGNMENT): Add parenthesis.
20797         (DATA_ALIGNMENT): Likewise.
20798         (LOCAL_ALIGNMENT): Likewise.
20799         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
20800         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
20801         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
20802         (HARD_REGNO_NREGS): Add paranethesis.
20803         (VALID_SSE_REG_MODE): Whitespace.
20804         (VALID_MMX_REG_MODE): Whitespace.
20805         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
20806         (ix86_hard_regno_mode_ok): Add parenthesis.
20807         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
20808         (RETURN_IN_MEMORY): Whitespace.
20809         (N_REG_CLASSES): Add parenthesis.
20810         (INTEGER_CLASS_P): Add parenthesis and wrap.
20811         (FLOAT_CLASS_P): Likewise.
20812         (SSE_CLASS_P): Likewise.
20813         (MMX_CLASS_P): Likewise.
20814         (MAYBE_INTEGER_CLASS_P): Likewise.
20815         (MAYBE_FLOAT_CLASS_P): Likewise.
20816         (MAYBE_SSE_CLASS_P): Likewise.
20817         (MAYBE_MMX_CLASS_P): Likewise.
20818         (Q_CLASS_P): Likewise.
20819         (GENERAL_REGNO_P): Uppercase macro parameter.
20820         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
20821         (FP_REGNO_P): Likewise.
20822         (ANY_FP_REGNO_P): Uppercase macro parameter.
20823         (SSE_REGNO_P): Likewise.
20824         (SSE_REGNO): Likewise.
20825         (SSE_REG_P): Likewise.
20826         (SSE_FLOAT_MODE_P): Likewise.
20827         (MMX_REGNO_P): Likewise.
20828         (MMX_REG_P):Likewise.
20829         (STACK_REG_P): Likewise.
20830         (NON_STACK_REG_P): Likewise.
20831         (STACK_TOP_P): Likewise.
20832         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
20833         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
20834         (SECONDARY_MEMORY_NEEDED): Likewise.
20835         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
20836         (MD_ASM_CLOBBERS): Whitespace and wrap.
20837         (MUST_PASS_IN_STACK): Whitespace and wrap.
20838         (RETURN_POPS_ARGS): Add parenthesis.
20839         (INIT_CUMULATIVE_ARGS): Likewise.
20840         (FUNCTION_ARG): Likewise.
20841         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
20842         (SETUP_INCOMING_VARARGS): Likewise.
20843         (BUILD_VA_LIST_TYPE):  Add parenthesis.
20844         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
20845         parenthsis.
20846         (EXPAND_BUILTIN_VA_ARG): Likewise.
20847         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
20848         (INITIALIZE_TRAMPOLINE): Add parenthesis.
20849         (INITIAL_ELIMINATION_OFFSET): Likewise.
20850         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
20851         (REGNO_OK_FOR_BASE_P): Likewise.
20852         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
20853         (REGNO_OK_FOR_DIREG_P): Likewise.
20854         (REG_OK_FOR_INDEX_P): Whitespace.
20855         (REG_OK_FOR_BASE_P): Whitespace.
20856         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
20857         parenthesis.
20858         (FIND_BASE_TERM): Fix typo.
20859         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
20860         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
20861         (SYMBOLIC_CONST; Whitespace.
20862         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
20863         (ENCODE_SECTION_INFO): Whitespace.
20864         (FINALIZE_PIC): Remove do { ... } while (0).
20865         (PROMOTE_MODE): Wrap in do { ... } while (0).
20866         (CONST_COSTS): Whitespace.
20867         (RTX_COSTS): Add paramethesis, whitespace and wrap.
20868         (REGISTER_MOVE_COST): Add parenthesis.
20869         (MEMORY_MOVE_COST): Likewise.
20870         (EXTRA_CC_MODES): Whitespace.
20871         (SELECT_CC_MODE): Add parenthesis and whitespace.
20872         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
20873         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
20874         (ASM_OUTPUT_LABEL): Add paramethesis.
20875         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
20876         (ASM_OUTPUT_REG_POP): Likewise.
20877         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
20878         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20879
20880         * config/i386/i386.c: Update copyright.
20881         (CHECK_STACK_LIMIT): Add parenthesis.
20882         (AT_BP): Uppercase macro parameter.
20883         (x86_64_int_parameter_registers): Constify.
20884         (x86_64_int_return_registers): Likewise.
20885         (ix86_compare_op0): Use rtx.
20886         (construct_container): Constify INTREG parameter.
20887         (function_arg): Use rtx.
20888
20889         * diagnostic.h: Update copyright date.
20890         (output_buffer_state): Add parenthesis.
20891         (output_buffer_format_args): Likewise.
20892
20893         * combine.c (combine_instructions): Replace XEXP (links, 0)
20894         with link.
20895
20896 2002-01-06  H.J. Lu <hjl@gnu.org>
20897
20898         * cfgcleanup.c (thread_jump): Fix 2 typos.
20899
20900 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
20901
20902         * config.gcc: Add support for --enable-altivec.
20903
20904 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20905
20906         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
20907
20908 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
20909
20910         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
20911         __objc_class_name_*.
20912
20913 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
20914
20915         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
20916
20917 2002-01-06  Richard Henderson  <rth@redhat.com>
20918
20919         * reorg.c (emit_delay_sequence): Remove death notes, not merely
20920         nop them out.  Increment label reference count for REG_LABEL.
20921         (fill_slots_from_thread): Frob label reference count around
20922         delete_related_insns.
20923
20924 2002-01-05  Richard Henderson  <rth@redhat.com>
20925
20926         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
20927         jump threading.
20928
20929 2002-01-05  Richard Henderson  <rth@redhat.com>
20930
20931         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
20932         * integrate.c (output_inline_function): Likewise.
20933         * toplev.c (rest_of_compilation): Do it here instead.  Move call
20934         to remove_unnecessary_notes after emitting abstract instance.
20935         Force an emitted nested function to have its parent emited as well.
20936         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
20937         for null.
20938         (rtl_for_decl_location): Do not look at reload data structures
20939         before reload has run.
20940
20941 2002-01-05  Kazu Hirata  <kazu@hxi.com>
20942
20943         * cse.c: Fix formatting.
20944         * dwarf2asm.c: Likewise.
20945         * dwarf2out.c: Likewise.
20946         * explow.c: Likewise.
20947         * expmed.c: Likewise.
20948         * function.c: Likewise.
20949         * gcov.c: Likewise.
20950         * gencheck.c: Likewise.
20951         * genrecog.c: Likewise.
20952         * ggc-common.c: Likewise.
20953         * ggc-page.c: Likewise.
20954         * global.c: Likewise.
20955
20956 2002-01-05  Kazu Hirata  <kazu@hxi.com>
20957
20958         * combine.c: Fix formatting.
20959
20960 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
20961
20962         PR middle-end/1557
20963         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
20964
20965 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
20966
20967         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
20968         as 1 for __powerpc64__ as well.
20969
20970         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
20971
20972         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
20973         return it.
20974
20975 2002-01-05  Daniel Berlin  <dan@dberlin.org>
20976
20977         * lcm.c: Revert change, due to performance regression it causes on
20978         SPEC because it's slightly more conservative (sigh, I hate
20979         edge-based LCM).
20980
20981 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
20982
20983         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
20984
20985 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
20986
20987         * doc/cppinternals.texi: Update.
20988
20989 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
20990
20991         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
20992         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
20993         negatives.
20994         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
20995         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
20996         kludge for pre-october-14th mmix versions to handle new-found bug
20997         with PUSHJ/PUSHGO and the register stack.
20998         * config/mmix/mmix.h (struct machine_function): Rename member
20999         has_call_value_without_parameters to has_call_without_parameters.
21000         All referers changed.
21001         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
21002         TARGET_MASK_BRANCH_PREDICT): New macros.
21003         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
21004         -mno-reg-stack-fill-bug-workaround.
21005         * config/mmix/mmix.md ("call"): Set struct machine member
21006         has_call_without_parameters.
21007
21008 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
21009
21010         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
21011
21012 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
21013
21014         * cfgcleanup.c: Include tm_p.h
21015         (mark_effect): Fix handling of hard register; fix handling of SET
21016
21017 2002-01-04  Kazu Hirata  <kazu@hxi.com>
21018
21019         * config/h8300/h8300.md (anonymous patterns): Check that
21020         operands are registers before using REGNO on them.
21021
21022 2002-01-03  Roland McGrath  <roland@frob.com>
21023
21024         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
21025
21026 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
21027
21028         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
21029         * c-common.h (genrtl_expr_stmt_value): Likewise.
21030         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
21031         (expand_expr_stmt_value): Add maybe_last argument.
21032         Don't warn about statement with no effect if it is the last statement
21033         in expression statement.
21034         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
21035         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
21036         expand_expr_stmt_value.
21037         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
21038         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
21039         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
21040         as maybe_last to expand_expr_stmt_value.
21041
21042 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
21043
21044         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
21045         be passed in, do not build it.
21046         (c_begin_if_stmt): New function.
21047         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
21048         * c-common.h (c_expand_start_cond): Update prototype.
21049         (c_begin_if_stmt): Prototype new function.
21050         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
21051         * c-parse.in (if_prefix): Use c_begin_if_stmt,
21052         c_begin_while_stmt and c_finish_while_stmt_cond.
21053
21054 2002-01-04  William Cohen  <wcohen@redhat.com>
21055
21056         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
21057         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
21058         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
21059         * config/pa/som.h (ASM_FILE_START): Likewise.
21060
21061 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
21062
21063         * lcm.c: Include df.h.
21064         Add available_transfer_function prototype.
21065         (compute_available): Rework to use iterative dataflow framework.
21066         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
21067         with bb_info in df.h
21068         (available_transfer_function): New function.
21069
21070         * Makefile.in (lcm.o): add df.h to dependencies.
21071
21072 2002-01-04  Richard Henderson  <rth@redhat.com>
21073
21074         * config/alpha/alpha.c (some_operand): Accept HIGH.
21075         (input_operand): Likewise; accept simple references to globals.
21076         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
21077         (alpha_const_double_ok_for_letter_p): Likewise.
21078         (alpha_extra_constraint): Likewise.
21079         (alpha_preferred_reload_class): Likewise.  Do not force
21080         symbolic constants to memory.
21081         (alpha_legitimate_address_p): Accept simple references
21082         to small_symbolic_operand.
21083         (alpha_legitimize_address): New arg scratch.  Be prepared to be
21084         called when no_new_pseudos.  Emit simple symbolic references.
21085         Split integers into low, high, and rest.
21086         (alpha_expand_mov): Use alpha_legitimize_address.
21087         (some_small_symbolic_mem_operand): New.
21088         (split_small_symbolic_mem_operand): New.
21089         * config/alpha/alpha-protos.h: Update.
21090         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
21091         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
21092         (EXTRA_CONSTRAINT): Likewise.
21093         (PREFERRED_RELOAD_CLASS): Likewise.
21094         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
21095         (PREDICATE_CODES): Update.
21096         * config/alpha/alpha.md: New post-reload splitters to convert
21097         simplfied symbolic operands to the form that references $29.
21098         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
21099         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
21100
21101 2002-01-03  Richard Henderson  <rth@redhat.com>
21102
21103         * local-alloc.c (function_invariant_p): Update commentary.
21104
21105 2002-01-04  H.J. Lu <hjl@gnu.org>
21106
21107         * toplev.c (rest_of_compilation): Fix a typo when calling
21108         cleanup_cfg.
21109
21110 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21111
21112         * c-common.c: Fix formatting.
21113         * diagnostic.c: Likewise.
21114         * doloop.c: Likewise.
21115         * dwarf2out.c: Likewise.
21116
21117 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21118
21119         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
21120         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
21121
21122 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
21123
21124         * cpperror.c: Update comments and copyright.
21125         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
21126         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
21127
21128 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21129
21130         * collect2.c (main): Use strcmp when testing for "-shared".
21131
21132 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
21133
21134         * cppmacro.c: Don't include intl.h.  Update comments.
21135         (new_number_token): Allocate enough buffer for 64-bit unsigned
21136         integers; update prototype.
21137         * cppmain.c: Update comments.
21138
21139 2002-01-03  William Cohen  <wcohen@redhat.com>
21140
21141         * function.h (struct function): Add profile.
21142         (current_function_profile): New.
21143         doc/extend.texi: Update documentation.
21144         * final.c (final_start_function): Use current_function_profile
21145         instead of profile_flag.
21146         (profile_after_prologue): Likewise.
21147         * function.c (expand_function_start): Likewise.
21148         (expand_function_start): Likewise.
21149         * config/alpha/alpha.c (direct_call_operand):
21150         (alpha_does_function_need_gp): Likewise.
21151         (alpha_expand_prologue): Likewise.
21152         * config/arm/arm.c (arm_expand_prologue): Likewise.
21153         thumb_expand_prologue: Likewise.
21154         * config/d30v/d30v.c (d30v_stack_info): Likewise.
21155         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
21156         (fr30_expand_prologue): Likewise.
21157         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
21158         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
21159         * config/i386/i386.h (FINALIZE_PIC): Likewise.
21160         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
21161         * config/i960/i960.c (i960_output_function_prologue): Likewise.
21162         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
21163         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
21164         (m32r_expand_prologue): Likewise.
21165         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
21166         (m88k_expand_prologue): Likewise.
21167         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
21168         * config/mips/mips.c (compute_frame_size): Likewise.
21169         (mips_expand_prologue): Likewise.
21170         (mips_can_use_return_insn): Likewise.
21171         * config/pa/elf.h (ASM_FILE_START): Likewise.
21172         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
21173         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
21174         * config/pa/som.h (ASM_FILE_START): Likewise.
21175         * config/romp/romp.c (romp_using_r14): Likewise.
21176         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
21177         (rs6000_stack_info): Likewise.
21178         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
21179         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
21180         * config/v850/v850.c (compute_register_save_size): Likewise.
21181
21182 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
21183
21184         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
21185         gen_lowpart_common fails, use gen_lowpart_SUBREG.
21186
21187 2002-01-03  Turly O'Connor  <turly@apple.com>
21188
21189         * darwin.c (machopic_output_possible_stub_label): Don't generate
21190         stub routines for pseudo-stubs which we've just defined.
21191
21192 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21193
21194         * builtins.c: Fix formatting.
21195         * c-typeck.c: Likewise.
21196         * combine.c: Likewise.
21197         * expr.c: Likewise.
21198         * loop.c: Likewise.
21199
21200 2002-01-03  Andreas Schwab  <schwab@suse.de>
21201
21202         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
21203         and return true if _cpp_push_next_buffer pushed a new include
21204         file.
21205         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
21206         _cpp_pop_file_buffer did not push a new file.
21207         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
21208
21209 2002-01-02  Eric Christopher  <echristo@redhat.com>
21210
21211         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
21212         FIND_REG_INC_NOTE call. Update copyright.
21213         * loop.c (canonicalize_condition): Ditto.
21214         * reorg.c (delete_scheduled_jump): Ditto.
21215
21216 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21217
21218         * gcse.c: Fix formatting.
21219
21220 2002-01-03  Graham Stott  <grahams@redhat.com>
21221
21222         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
21223         forward defs for struct tags rtx_def, union_tree, rtvec_def
21224         also output corresponding typedefs for rtx, tree, and rtvec.
21225
21226         * system.h: Move forward defs for struct tags rtx_def, union_tree,
21227         rtvec_def along with corresponding typedefs for rtx, tree, and
21228         rtvec to config.h, hconfig.h, tconfig.h.
21229
21230 2002-01-03  Graham Stott  <grahams@redhat.com>
21231
21232         * tree.h: Update copyright date.
21233         (IS_EXPR_CODE_CLASS): Add parenthesis.
21234         (TREE_SET_CODE): Add whitespace.
21235         (TREE_CHECK): Add parenthesis.
21236         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
21237         (CST_OR_CONSTRUCTOR_CHECK):
21238         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
21239         (TREE_SYMBOL_REFERENCED): Whitespace.
21240         (INT_CST_LT): Likewise.
21241         (INT_CST_LT_UNSIGNED): Likewise.
21242         (tree_real_cst): Unwrap comment.
21243         (tree_string): Likewise.
21244         (tree_complex): Likewise.
21245         (IDENTIFIER_POINTER): correct cast.
21246         (SAVE_EXPR_CONTEXT): Whitespace.
21247         (EXPR_WFL_FILENAME_NODE): Likewise.
21248         (EXPR_WFL_FILENAME): Remove parenthesis.
21249         (DECL_ORIGIN): Add parenthesis.
21250         (DECL_FROM_INLINE): Use NULL_TREE.
21251         (build_int_2): Whitespace.
21252         (build_type_variant): Add parenthesis.
21253
21254         * gcc/jcf-parse.c: Update copyright date.
21255         (yyparse): Constify resource_filename.
21256
21257 2002-01-03  Graham Stott  <grahams@redhat.com>
21258
21259         * rtl.h: Update copyright date.
21260         (RTL_CHECK1): Wrap long line.
21261         (RTL_CHECK2): Likewise.
21262         (RTL_CHECKC1): Wrap long line and whitespace.
21263         (RTL_CHECKC2): Likewise.
21264         (XWINT): Whitespace.
21265         (XINT): Likewise.
21266         (XSTR): Likewise.
21267         (XEXP): Likewise.
21268         (XVEC): Likewise.
21269         (XMODE): Likewise.
21270         (XBITMAP): Likewise.
21271         (XTREE): Likewise.
21272         (XBBDEF): Likewise.
21273         (XTMPL): Likewise.
21274         (X0WINT): Likewise.
21275         (X0INT):Likewise.
21276         (X0UINT): Likewise.
21277         (X0STR): Likewise.
21278         (X0EXP): Likewise.
21279         (X0VEC): Likewise.
21280         (X0MODE): Likewise.
21281         (X0BITMAP): Likewise.
21282         (X0TREE): Likewise.
21283         (X0BBDEF): Likewise.
21284         (X0ADVFLAGS): Likewise.
21285         (X0CSELIB): Likewise.
21286         (X0MEMATTR): Likewise.
21287         (XCWINT): Likewise.
21288         (XCINT): Likewise.
21289         (XCUINT): Likewise.
21290         (XCSTR): Likewise.
21291         (XCEXP): Likewise.
21292         (XCVEC): Likewise.
21293         (XCMODE): Likewise.
21294         (XCBITMAP): Likewise.
21295         (XCTREE): Likewise.
21296         (XCBBDEF): Likewise.
21297         (XCADVFLAGS): Likewise.
21298         (XCCSELIB): Likewise.
21299         (XC2EXP): Likewise.
21300         (INSN_UID): Likewise.
21301         (PREV_INSN): Likewise.
21302         (PATTERN): Likewise.
21303         (INSN_CODE): Likewise.
21304         (PUT_REG_NOTE_KIND): Likewise.
21305         (CODE_LABEL_NUMBER): Likewise.
21306         (NOTE_SOURCE_FILE): Likewise.
21307         (NOTE_BLOCK): Likewise.
21308         (NOTE_EH_HANDLER): Likewise.
21309         (NOTE_RANGE_INFO): Likewise.
21310         (NOTE_LIVE_INFO): Likewise.
21311         (NOTE_BASIC_BLOCK): Likewise.
21312         (NOTE_EXPECTED_VALUE): Likewise.
21313         (NOTE_LINE_NUMBER): Likewise.
21314         (LABEL_NAME): Likewise.
21315         (LABEL_NUSES): Likewise.
21316         (LABEL_ALTERNATE_NAME): Likewise.
21317         (ADDRESSOF_DECL): Likewise.
21318         (JUMP_LABEL): Likewise.
21319         (LABEL_NEXTREF): Likewise.
21320         (REGNO): Likewise.
21321         (ORIGINAL_REGNO: Likewise.
21322         (HARD_REGISTER_NUM_P): Add parenthesis.
21323         (SUBREG_REG): Whitespace.
21324         (SUBREG_BYTE): Likewise.
21325         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
21326         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
21327         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
21328         (ASM_OPERANDS_INPUT_VEC): Likewise.
21329         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
21330         (ASM_OPERANDS_INPUT): Likewise.
21331         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
21332         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
21333         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
21334         (ASM_OPERANDS_INPUT_MODE): Likewise.
21335         (ASM_OPERANDS_SOURCE_FILE): Likewise.
21336         (ASM_OPERANDS_SOURCE_LINE): Likewise.
21337         (MEM_SET_IN_STRUCT_P): Minor reformat.
21338         (TRAP_CONDITION): Whitespace.
21339         (TRAP_CODE): Likewise.
21340         (COND_EXEC_TEST): Likewise.
21341         (COND_EXEC_CODE): Likewise.
21342         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
21343         (PHI_NODE_P): Add parenthesis.
21344         (plus_constant): Whitespace and add parenthesis.
21345
21346 2002-01-03  Kazu Hirata  <kazu@hxi.com>
21347
21348         * config/avr/avr.c: Fix comment typos.
21349         * config/c4x/c4x.md: Likewise.
21350         * config/dsp16xx/dsp16xx.h: Likewise.
21351         * config/dsp16xx/dsp16xx.md: Likewise.
21352         * config/i386/i386.md: Likewise.
21353         * config/ia64/ia64.c: Likewise.
21354         * config/m32r/m32r.h: Likewise.
21355         * config/m68hc11/m68hc11.md: Likewise.
21356         * config/mmix/mmix.c: Likewise.
21357         * config/mn10200/mn10200.c: Likewise.
21358         * config/romp/romp.c: Likewise.
21359         * config/sh/sh.c: Likewise.
21360         * config/stormy16/stormy16.c: Likewise.
21361         * config/stormy16/stormy16.h: Likewise.
21362         * config/stormy16/stormy16.md: Likewise.
21363
21364 2002-01-03  Graham Stott  <grahams@redhat.com>
21365
21366         * loop.h: Update copyright date.
21367         (LOOP_MOVABLES): Fix typo.
21368         (LOOP_REGS): Likewise.
21369         (LOOP_IVS): Likewise.
21370
21371 2002-01-03  Graham Stott  <grahams@redhat.com>
21372
21373         * cppinit.c: Update copyright date.
21374         Don't include output.h
21375         * Makefile.in: Update copyright date.
21376         Update dependency.
21377
21378 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21379
21380         PR c/5226
21381         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
21382         (-pthread) Add to RS/6000 options.
21383
21384 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21385
21386         * except.c: Fix comment typos.
21387         * loop.c: Likewise.
21388         * varasm.c: Likewise.
21389         * doc/tm.texi: Fix a typo.
21390
21391 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
21392
21393         * c-typeck.c (output_init_element): Allow initializing static storage
21394         duration objects with compound literals.
21395
21396 2002-01-02  Richard Henderson  <rth@redhat.com>
21397
21398         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
21399         after abusing it.
21400
21401 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21402
21403         * gcc.c (default_compilers): Const-ify.
21404         * mips-tdump.c (stab_names): Likewise.
21405         * mips-tfile.c (map_coff_types, map_coff_storage,
21406         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
21407         pseudo_ops_t, pseudo_ops): Likewise.
21408         * protoize.c (default_include): Likewise
21409
21410         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
21411         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
21412         Add array size in declaration.
21413         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
21414         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
21415         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
21416         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
21417         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
21418         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
21419         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
21420         emtens, make_nan): Const-ify.
21421         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
21422         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
21423
21424 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
21425
21426         * config.gcc (ia64-*-*): Set extra_headers.
21427         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
21428         * config/alpha/t-osf: Remove.
21429         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
21430
21431 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
21432
21433         * config/rs6000/t-aix43: Revert previous change.
21434
21435 2002-01-02  Jason Merrill  <jason@redhat.com>
21436
21437         * c-decl.c (c_expand_body): Call outlining_inline_function when
21438         emitting an inline function out of line.
21439
21440 2002-01-02  Richard Henderson  <rth@redhat.com>
21441
21442         * dwarf2out.c (limbo_die_node): Add created_for member.
21443         (new_die): New argument created_for.  Update all callers.
21444         (mark_limbo_die_list): New.
21445         (dwarf2out_init): Register limbo_die_list as a root.
21446         (dwarf2out_finish): Force insert limbo dies into their function
21447         context.
21448
21449 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
21450
21451         PR c++/5089
21452         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
21453
21454 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21455
21456         * config/h8300/fixunssfsi.c: Update copyright.
21457         Fix comment typos.
21458         Fix formatting.
21459         * config/h8300/h8300.c: Update copyright.
21460         Eliminate warnings.
21461
21462 2002-01-02  Kazu Hirata  <kazu@hxi.com>
21463
21464         * config/romp/romp.c: Fix comment formatting.
21465         * config/romp/romp.h: Likewise.
21466         * config/romp/romp.md: Likewise.
21467         * config/s390/s390.c: Likewise.
21468         * config/stormy16/stormy16.c: Likewise.
21469         * config/stormy16/stormy16.h: Likewise.
21470
21471 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
21472
21473         * c-common.h (genrtl_expr_stmt_value): Declare.
21474         * c-semantics.c (genrtl_goto_stmt): Redirect to...
21475         (genrtl_goto_stmt_value): ... this new function.  Pass new
21476         argument down to expand_expr_stmt_value, taking
21477         TREE_ADDRESSABLE into account.
21478         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
21479         STMT_EXPR as addressable, i.e., one whose result we want.
21480         * expr.c (expand_expr): Don't save expression statement value
21481         of labeled_blocks or loop_exprs.
21482         * stmt.c (expand_expr_stmt): Redirect to...
21483         (expand_expr_stmt_value): ... this new function.  Use new
21484         argument to tell whether to save expression value.
21485         (expand_end_stmt_expr): Reset last_expr_type and
21486         last_expr_value if we don't have either.
21487         * tree-inline.c (declare_return_variable): Mark its use
21488         statement as addressable.
21489         * tree.h: Document new use of TREE_ADDRESSABLE.
21490         (expand_expr_stmt_value): Declare.
21491
21492 2002-01-01  Tom Rix  <trix@redhat.com>
21493
21494         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
21495         rs6000_emit_allocate_stack.
21496
21497 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
21498
21499         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
21500         ${srcdir}/ginclude/ to every entry in extra_headers.
21501         * configure: Regenerate.
21502         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
21503         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
21504         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
21505         * ginclude/proto.h: Rename to config/convex/proto.h.
21506
21507 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21508
21509         * attribs.c (handle_vector_size_attribute): Use host_integerp
21510         and tree_int_cst; remove warnings.
21511         * caller-save.c (insert_restore): Add cast to get rid of warning.
21512         (insert_save): Likewise.
21513         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
21514         * regmove.c (find_matches): Add temporary var to kill a warning.
21515
21516 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
21517
21518         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
21519         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
21520         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
21521         (vms-dwarf2eh.o): Add Makefile rule.
21522         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
21523         * config/alpha/vms-dwarf2eh.asm: New file.
21524
21525         * gcc.c (delete_if_ordinary): Delete all versions.
21526
21527 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
21528
21529         * config/mmix/mmix.md: Update FIXME to not mention
21530         define_constants.
21531         (MMIX_rJ_REGNUM): New define_constants constant.
21532         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
21533         "*movdicc_real"): Adjust contraints formatting.
21534         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
21535         for branch prediction.
21536         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
21537         output template.
21538         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
21539         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
21540         number.  Delete related FIXMEs.
21541         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
21542         from number to MMIX_rJ_REGNUM.
21543         (TARGET_MASK_BRANCH_PREDICT): New.
21544         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
21545         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
21546         value.  Add -mbranch-predict and -mno-branch-predict.
21547         (TARGET_VERSION): Drop date.
21548         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
21549         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
21550         for finding out global symbols.
21551         (mmix_asm_output_labelref): Revert condition for global symbol.
21552         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
21553         (mmix_print_operand_punct_valid_p): A '+' is valid.
21554
21555 See ChangeLog.6 for earlier changes.