OSDN Git Service

* cfgcleanup.c (merge_blocks): Return where to iterate next.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 Mon Mar 10 15:30:36 CET 2003  Jan Hubicka  <jh@suse.cz>
2
3         * cfgcleanup.c (merge_blocks): Return where to iterate next.
4         (try_optimize_cfg): Use return value of merge_blocks
5
6 2003-03-10  Michael Matz  <matz@suse.de>
7
8         * cfg.c (unchecked_make_edge): New.
9         (cached_make_edge): Use it.
10         * basic-block.h (unchecked_make_edge): Declare.
11         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
12
13 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
14
15         * fpa.md: New file.  Move all patterns relating to FPA co-processor
16         to here...
17         * arm.md: ... from here.
18         (cirrus.md, fpa.md): Include at end of description.
19         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
20         (pic_load_addr_based): Remove register constraint from expander.
21         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
22         (sordered, sungt, sunle, sunge, sunlt): Likewise.
23         (eh_epilogue, tablejump): Likewise.
24
25 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
26             Mostafa Hagog
27
28         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
29         condition.
30
31 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
32
33         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
34         * config/ip2k/ip2k.h: Similarly.
35         * config/m32r/m32r.h: Similarly.
36         * config/m68hc11/m68hc11.h: Similarly.
37         * config/mn10200/mn10200.h: Similarly.
38         * config/mn10300/mn10300.h: Similarly.
39         * config/pdp11/pdp11.h: Similarly.
40         * config/v850/v850.h: Similarly.
41         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
42         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
43         * config/mips/iris3.h: Remove #if 0 block.
44
45 2003-03-09  Roger Sayle  <roger@eyesopen.com>
46             Joern Rennecke <joern.rennecke@superh.com>
47
48         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
49         pending argument upon return from handle_braces here.
50         (do_spec_2): Instead handle it upon return from do_spec_1 here.
51
52 2003-03-09  Roger Sayle  <roger@eyesopen.com>
53             Joern Rennecke <joern.rennecke@superh.com>
54
55         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
56         pending argument upon return from handle_braces here.
57         (do_spec_2): Instead handle it upon return from do_spec_1 here.
58
59 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
60
61         * varasm.c (make_decl_one_only): Use declare_weak().
62
63 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
64
65         PR middle-end/9986
66         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
67         after the common builtins.
68         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
69         * pa.c (TARGET_INIT_BUILTINS): Define.
70         (pa_init_builtins): New function.
71
72         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
73         space has been allocated for the outgoing arguments, set the arg
74         pointer for a call emitted after virtuals have been instantiated
75         using the stack pointer offset, otherwise abort.
76
77 2003-03-09  DJ Delorie  <dj@redhat.com>
78
79         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
80
81 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
82
83         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
84         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
85         conversion to integer.
86         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
87
88 2003-03-09  Roger Sayle  <roger@eyesopen.com>
89
90         * builtins.def: Fix typo and improve grammar.
91         * loop-unroll.c (decide_peel_completely): Tidy log message.
92
93 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
94
95         * config/h8300/h8300.md (*tstsi_upper_bit): New.
96         (*iorsi3_e2f): Likewise.
97
98 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
99
100         * config/h8300/h8300.c (h8300_and_costs): Return the number of
101         assembly instructions needed.
102         (h8300_shift_costs): Likewise.
103
104 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
105
106         * config/cris/aout.h (ENDFILE_SPEC): Undef.
107
108         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
109         moves from here ...
110         * expr.c (emit_move_insn_1): ... to here.
111
112         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
113         (TARGET_OS_CPP_BUILTINS): New macro.
114         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
115         (TARGET_OS_CPP_BUILTINS): New macro.
116         (CPP_PREDEFINES): Don't define.  Move old definitions and...
117         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
118         (TARGET_CPU_CPP_BUILTINS): New macro.
119         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
120         definitions and the optional __PIC__, __pic__ and
121         __NO_UNDERSCORES__ definitions to...
122         (TARGET_OS_CPP_BUILTINS): New macro.
123
124         * flags.h (flag_leading_underscore): Declare.
125
126         * c-opts.c (c_common_post_options): On fopen failure, return
127         false, not NULL.
128
129 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
130
131         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
132         config.h.
133         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
134         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
135
136 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
137
138         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
139         CPP_PREDEFINES.
140         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
141         CPP_PREDEFINES.
142
143 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
144
145         * c-common.h (c_common_init, c_common_post_options): Update.
146         * c-objc-common.c (c_objc_common_init): Update for new prototype.
147         * c-opts.c (saved_lineno): New.
148         (c_common_post_options, c_common_init): Update prototypes,
149         move call to cpp_read_main_file from latter to former.
150         * c-tree.h (c_ojbc_common_init): Update.
151         * langhooks-def.h (lhd_post_options): New.
152         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
153         * langhooks.c (lhd_post_options): New.
154         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
155         * toplev.c (no_backend): New.
156         (process_options): Call post_options hook and set main_input_filename
157         and input_filename here.
158         (lang_dependent_init, do_compile): post_options hook moved to
159         process_options.
160         * objc/objc-act.c (objc_init): Update prototype.
161         * objc/objc-act.h (objc_init): Update prototype.
162
163 2003-03-08  Roger Sayle  <roger@eyesopen.com>
164
165         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
166         a complex or vector type, using a load in the original mode.
167
168 Sat Mar  8 19:22:30 CET 2003  Jan Hubicka  <jh@suse.cz>
169
170         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
171         * gt-cgraph.h: New GC file.
172         * cgraph.c (known_fns): New static variable.
173         (cgraph_node): Add the decl into varray.
174
175 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
176
177         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
178
179 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
180
181         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
182         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
183         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
184         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
185         All callers changed.
186         * arm.md, arm.h, arm-protos.h: Updated.
187
188         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
189         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
190         * arm.c (arm_regno_class, f_register_operand): Updated.
191
192 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
193
194         * config/cris/cris.h: Remove EGCS references.
195         (CPP_SPEC): Remove "-$".
196         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
197
198 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
199
200         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
201         preference to CPP_PREDEFINES.
202
203 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
204
205         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
206
207 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
208
209         * config/h8300/h8300.md (*extzv_16_8): New.
210
211 Sat Mar  8 14:13:35 CET 2003  Jan Hubicka  <jh@suse.cz>
212
213         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
214         * cgraph.h: (cgraph_local_info): Add can_inline_once
215         (cgraph_global_info): Add inline_once.
216         (cgraph_node): Add previous.
217         (cgraph_remove_node): New.
218         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
219         function.
220         (cgraph_optimize): Call it.
221         (cgraph_finalize_function):  Set inlinable flags.
222         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
223         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
224         (cgraph_expand_function): Likewise.
225         * cgraph.c 
226         (cgraph_node): Put nodes into doubly linked chain.
227         (cgraph_remove_node): New function.
228         * flags.h (flag_inline_functions_called_once): Declare.
229         * tree-inline.c: Include cgraph.h
230         (inlinable_functions_p): Add extra argument to bypass limits.
231         (expand_call_inline):  Obey cgraph flag.
232         * tree-inline.h (tree_inlinable_function_p): Update prototype.
233
234 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
235
236         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
237         irreducible loops.
238
239         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
240         loops info correctly.
241
242 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
243
244         PR middle-end/7796
245         * unroll.c (calculate_giv_inc): Handle constants being
246         loaded with LSHIFTRT.
247
248 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
249
250         * config/rs6000/rs6000.c (processor_target_table): Do not disable
251         GP optional instructions on Power3, Power4, 620, and 630.
252
253 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
254
255         * calls.c: Fix comment formatting.
256         * cfgloopanal.c: Likewise.
257         * cfgloopmanip.c: Likewise.
258         * combine.c: Likewise.
259         * dwarf2out.c: Likewise.
260         * ggc-common.c: Likewise.
261         * langhooks.c: Likewise.
262         * loop-unroll.c: Likewise.
263         * loop.c: Likewise.
264         * ra-build.c: Likewise.
265         * sbitmap.c: Likewise.
266         * toplev.c: Likewise.
267
268 2003-03-07  James E Wilson  <wilson@tuliptree.org>
269
270         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
271
272 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
273
274         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
275         support -no-integrated-cpp.
276
277         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
278         than langhooks.name.
279
280 2003-03-07  Michael Matz  <matz@suse.de>
281
282         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
283         (DF_FOR_REGALLOC): New.
284         * df.c (df_ref_record): Set DF_REF_STRIPPED.
285         (read_modify_subreg_p): Simplify.
286         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
287         Use DF_FOR_REGALLOC.
288         * ra.h (struct web): New member subreg_stripped.
289         (invalid_mode_change_regs): Declare.
290         * ra.c (invalid_mode_change_regs): New.
291         (init_ra): Initialize it.
292         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
293         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
294         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
295         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
296         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
297
298 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
299
300         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
301         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
302         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
303         machine description file from ...
304         * cirrus.md: ... here.
305
306 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
307
308         * config/h8300/h8300.md (a peephole2): Don't use
309         reg_overlap_mentioned_p.
310
311 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
312
313         * c-pch.c: Include langhooks.h.
314         (IDENT_LENGTH): New.
315         (get_ident): New.
316         (pch_ident): Delete.
317         (pch_init): Use get_ident, IDENT_LENGTH.
318         (c_common_valid_pch): Likewise.  Also, use actual language
319         in warning message.
320         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
321
322         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
323         c-parse.in.
324         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
325         gt-objc-objc-act.h.
326         (gt-objc-objc-act.h): New rule.
327         * objc/lang-specs.h: Support PCH.
328         * objc/objc-act.c: Include gt-objc-objc-act.h.
329         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
330         (build_selector_reference_decl): Move idx out, mark for PCH.
331         (build_class_reference_decl): Likewise.
332         (build_objc_string_decl): Move *_idx out, mark for PCH.
333         (build_tmp_function_decl): Move xxx out, mark for PCH.
334
335 2003-03-06  Dale Johannesen  <dalej@apple.com>
336
337         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
338         global functions for inlining on Darwin.
339
340 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
341
342         * haifa-sched.c (schedule_block): Don't call reorder when sorting
343         is prohibited.
344
345 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
346
347         * Makefile.in (c-ppoutput.o): Update.
348         * c-common.h (init_pp_output): New.
349         (preprocess_file): Update.
350         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
351         Register builtins.
352         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
353         Make call to cpp_read_main_file common to whether preprocessing
354         or not.  Don't register builtins.
355         * c-ppoutput.c: Include c-pragma.h.
356         (setup_callbacks): Rename init_pp_output.
357         (preprocess_file): No longer setup callbacks or call
358         cpp_read_main_file.
359         * cpphash.h (_cpp_init_mbchar): New.
360         * cppinit.c (init_library): Call _cpp_init_mbchar.
361         * cpplex.c (_cpp_init_mbchar): New.
362
363 2003-03-06  Roger Sayle  <roger@eyesopen.com>
364
365         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
366         MEM, try loading the MEM into a register and taking the low-part
367         of that, to help CSE see the use of the MEM in its true mode.
368
369 2002-03-05  Tom Tromey  <tromey@redhat.com>
370
371         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
372         Define.
373
374 2002-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
375
376         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
377         operand 2.
378         ("*ineqbranchsi"): Likewise.
379
380 2002-03-05  Andrew Haley  <aph@cambridge.redhat.com>
381
382         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
383         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
384         register store followed by a stack increment.
385
386 2002-03-05  Chris Moller  <cmoller@redhat.com>
387
388         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
389         to inhibit saving CARRY_REGS.
390
391         * config/stormy16/stormy16.c (xs_hi_general_operand):
392         added predicate to detect and error-out on out-of-range
393         const_ints for movhi.
394         * config/stormy16/stormy16.md (movhi): use 
395         xs_hi_general_operand.
396
397         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
398         added a check for local vbl size overflow.
399         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
400         added predicate to detect and error-out on out-of-range
401         const_ints for addhi and subhi.
402         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5, 
403         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
404
405         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
406         add a term to accept PRE_MODIFY addresses.
407         * config/stormy16/stormy16.c (xstormy16_expand_move):
408         add code to expand PRE_MODIFY addresses to an add followed
409         by a move.
410
411 2003-03-06  Jason Merrill  <jason@redhat.com>
412
413         * tree-inline.c (inlinable_function_p): Revert earlier change
414         pending investigation.
415
416 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
417
418         * config/h8300/h8300.md (a new peephole2): New.
419
420 Thu Mar  6 14:20:15 CET 2003  Jan Hubicka  <jh@suse.cz>
421
422         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
423
424 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
425
426         * dwarf2out.c (size_of_die): Compute size of external reference to
427         die correctly.
428
429 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
430
431         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
432         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
433         expanders.
434
435 2003-03-05  Roger Sayle  <roger@eyesopen.com>
436
437         * expr.h (lang_expand_expr): Delete obsolete prototype.
438
439 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
440
441         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
442
443 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
444
445         * config/h8300/h8300.md (a peephole2): Generalize to
446         accept a memory operand.
447
448 Wed Mar  5 19:34:18 2003  Olivier Hainque <hainque@act-europe.fr>
449
450         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
451         * config/alpha/alpha.c (print_operand, case '+'): New.
452         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
453         (call_value_osf_1_noreturn): Likewise.
454
455 Wed Mar  5 18:55:02 2003  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
456
457         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
458         (expand_end_bindings): Likewise.
459
460 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
461
462         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
463         (epilogue): Don't generate return_external_pic when emitting PA 2.0
464         code.
465
466 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
467
468         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
469
470         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
471
472         * hooks.c (hook_rtx_rtx_null): New.
473
474         * hooks.h (hook_rtx_rtx_null): Protoize.
475
476         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
477         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
478
479         * target.h (struct gcc_target): Add dwarf_register_span.
480
481         * dwarf2out.c (multiple_reg_loc_descriptor): New.
482         (one_reg_loc_descriptor): New.
483         (reg_loc_descriptor): Add support for values that span more than
484         one register.
485
486 Wed Mar  5 23:16:57 CET 2003  Jan Hubicka  <jh@suse.cz>
487
488         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
489         * alias.c:  Include cgraph.h
490         (mark_constant_function): Use cgraph_rtl_info.
491         * calls.c:  Include cgraph.h
492         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
493         calls.
494         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
495         * cgraph.c (cgraph_rtl_info): New function.
496         * cgraph.h (cgraph_rtl_info): Declare
497         (cgraph_rtl_info): Likewise.
498         * function.h (struct function): Add recursive_call_emit.
499         * toplev.c: Include cgraph.h.
500         (rest_of_compilation): Set preferred_incoming_stack_boundary.
501
502 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
503
504         * config/h8300/h8300.c (output_simode_bld): Clear the
505         destination first if possible.
506         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
507         alternative.
508         (extzv_1_r_inv_h8300hs): Likewise.
509
510 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
511
512         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
513         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
514         * cfgloop.c (flow_loop_free): Made global.
515         (establish_preds): New static function.
516         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
517         (get_loop_exit_edges): New.
518         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
519         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
520         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
521         loops.
522         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
523         removability of an edge.
524         (fix_irreducible_loops): New static function.
525         (find_path, remove_path): Add ability to remove enclosing loops.
526         (unloop): New.
527         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
528         flags.
529         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
530         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
531         not neccessary.
532         (decide_peel_completely, peel_loops_completely): Allow complete peeling
533         of non-duplicable once rolling loops.
534         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
535
536 Wed Mar  5 21:40:57 2003  J"orn Rennecke <joern.rennecke@superh.com>
537
538         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
539         for align_jumps is 4.
540
541         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
542         use GENERAL_REGS.
543
544 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
545
546         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
547         according to va_arg type.
548         (EXPAND_BUILTIN_VA_ARG): Remove.
549         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
550         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
551
552 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
553
554         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
555         else clauses.
556
557 2003-03-05  Michael Matz  <matz@suse.de>
558
559         * i386/i386.c (ix86_save_reg): Also test
560         current_function_uses_const_pool.
561
562 2003-03-05  Michael Matz  <matz@suse.de>
563
564         * unwind.h: Add the GPL exception.
565         * Makefile.in (USER_H): Add unwind.h.
566
567 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
568
569         PR c/9799
570         * c-typeck.c (push_init_level): Add sanity check.
571
572 Wed Mar  5 02:04:04 CET 2003  Jan Hubicka  <jh@suse.cz>
573
574         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
575         RTL inlining is done.
576
577         * cgraphunit.c (cgraph_mark_local_functions): New local function.
578         (cgraph_optimize): Mark local functions.
579         * i386-protos.h (init_cumulative_args): Update prototype.
580         * i386.c (init_cumulative_args): Use register passing convention for
581         local functions.
582
583         * cgraph.c (cgraph_global_info_ready): New global variable
584         (cgraph_local_info, cgraph_global_info): New functions.
585         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
586         structures.
587         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
588         Declare.
589         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
590         (cgraph_mark_functions_to_output): Use inline_many.
591         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
592         (cgraph_expand_functions): Expand inline functions last.
593         (cgraph_optimize): Do not emit uneeded functions.
594
595 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
596
597         * expr.c (convert_modes): Check for legal hard register.
598
599 2003-03-04  Tom Tromey  <tromey@redhat.com>
600
601         * doc/sourcebuild.texi (Front End Directory): Document tags.
602         * configure: Rebuilt.
603         * configure.in (target_list): Added tags.
604         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
605         TAGS files by reference.
606         * objc/Make-lang.in (objc.tags): New target.
607
608 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
609
610         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
611         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
612         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
613         gcov_read_string, gcov_write_length): Modified to enable reading/
614         writing of whole .da file just once.
615         (da_file_open, da_file_close, da_file_eof, da_file_error,
616         da_file_position, da_file_seek, da_file_write, da_file_read): New
617         functions.
618         (actual_da_file, actual_da_file_position, actual_da_file_length,
619         actual_da_file_buffer, actual_da_file_buffer_size): New static
620         functions.
621         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
622         just once.
623
624
625 2003-03-04  Andreas Schwab  <schwab@suse.de>
626
627         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
628         offset without frame pointer.
629
630 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
631
632         * expr.c (expand_expr): Call promote_mode to set unsignedp.
633
634 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
635
636         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
637         * configure: Regenerated.
638         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
639
640 2003-03-04  Andreas Jaeger  <aj@suse.de>
641
642         * configure.in: Check for <memcheck.h>.
643         * configure: Regenerated.
644
645         * config.in: Define HAVE_MEMCHECK_H.
646
647         * ggc-common.c: Use <memcheck.h> if available instead of
648         <valgrind.h>.
649         * ggc-page.c: Likewise.
650         * cppfiles.c: Likewise.
651
652 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
653
654         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
655
656 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
657
658         PR c/9262
659         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
660         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
661
662 Tue Mar  4 11:30:04 CET 2003  Jan Hubicka  <jh@suse.cz>
663
664         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
665         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
666         for -O3.
667
668 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
669
670         * configure.in: Delete three unused variables.  Move a variable
671         definition closer to its use.  Simplify use_collect2 logic.  Start to
672         organize.  Simplify tests for in-tree gas and ld.
673         * configure: Regenerate.
674
675 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
676
677         * Makefile.in: Update.
678         * c-common.c (flag_no_line_commands, flag_no_output,
679         flag_dump_macros, flag_dump_includes): New.
680         * c-common.h (flag_no_line_commands, flag_no_output,
681         flag_dump_macros, flag_dump_includes, preprocess_file): New.
682         (init_c_lex): Update prototype.
683         * c-lex.c (init_c_lex): Update prototype; move some code to
684         c_common_init.
685         * c-opts.c (preprocess_file): Subsume into c_common_init.
686         (c_common_decode_option): Update flags.
687         (c_common_init): Move code from preprocess_file and init_c_lex.
688         (sanitize_cpp_opts): Update.
689         * c-ppoutput.c: New, cppmain.c almost verbatim.
690         * cpphash.h (struct printer): Remove.
691         (struct cpp_reader): Remove print.
692         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
693         cpp_preprocess_file): Remove.
694         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
695         and dump_includes.
696         * cppmain.c: Remove.
697         * doc/passes.texi: Update.
698
699 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
700
701         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
702         (assign_stack_local_1): Perform overall stack alignment only when
703         STACK_ALIGNMENT_NEEDED is non-zero.
704         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
705
706         * pa.c (compute_frame_size): Rename fsize to size.  Account for
707         alignment to a word boundary before general register save block.  Only
708         account for double-word alignment before floating point register save
709         block if one or more are saved.  Don't allocate space for %r3 when
710         frame pointer is needed.
711         (hppa_expand_prologue): Include alignment to word boundary in local
712         frame size.
713         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
714         (STACK_ALIGNMENT_NEEDED): Define.
715
716 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
717
718         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
719         global register variables.
720
721 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
722
723         * reload.c (reload_adjust_reg_for_mode): New function.
724         (subst_reloads): Call it.
725         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
726         * reload.h (reload_adjust_reg_for_mode): Declare.
727         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
728         Call it.
729
730 2003-03-03  James E Wilson  <wilson@tuliptree.org>
731
732         * optabs.c (add_equal_note): Delete SUBREG_REG use.
733         Fixes PR c/7872.
734
735 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
736
737         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
738         (*ixorsi3_lshiftrt_16): New.
739         (*iorsi3_ashift_16): Remove.
740
741 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
742
743         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
744         pattern.
745
746 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
747
748         * doc/install.texi (Specific): Update entry for powerpc-darwin.
749
750 2003-03-03  Richard Henderson  <rth@redhat.com>
751
752         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
753
754 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
755
756         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
757         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
758         (rs6000_variable_issue): Do not return negative value.
759         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
760         scheduling pass.
761
762 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
763
764         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
765         prune_unused_types calls.
766
767 2003-03-03  Jason Merrill  <jason@redhat.com>
768
769         * tree-inline.c (find_builtin_longjmp_call): Save and restore
770         lineno and input_filename.
771         (find_alloca_call): Likewise.
772         (inlinable_function_p): Run the langhook earlier.
773
774         * calls.c (compute_argument_addresses): Give the new MEMs a
775         minimum alignment of PARM_BOUNDARY.
776
777 Mon Mar  3 20:45:25 2003  J"orn Rennecke <joern.rennecke@superh.com>
778
779         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
780         subtarget_asm_isa_spec.
781         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
782         (ASM_SPEC): Define as SH_ASM_SPEC.
783         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
784         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
785         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
786         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
787
788         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
789         and align_jumps if not set.
790         Force align_jumps to be at least 2.
791         When relaxing, force align_functions to be at least the maximum of
792         align_loops, align_jumps and 4.
793         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
794         (sh_loop_align): Honour align_loops_log.
795
796         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
797         to check for indirect_jump_scratch.
798         (indirect_jump_scratch): Add second set.
799         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
800         when looking for indirect_jump_scratch.
801         Extract scratch register taking new structure of indirect_jump_scratch
802         into account.
803         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
804
805 Mon Mar  3 19:07:21 CET 2003  Jan Hubicka  <jh@suse.cz>
806
807         * calls.c (rtx_for_function_call): Take the address as an argument
808         (expand_call): Do not modify the expression.
809
810         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
811         optimizing.
812
813 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
814
815         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
816         TARGET_H8300H and TARGET_H8300S.
817
818 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
819
820         * config/h8300/h8300.md (a peephole2): New.
821
822 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
823
824         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
825         operands[0] and operands[1] are different.
826
827 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
828
829         * reload1.c (reload_cse_move2add): Remove variable success.
830
831 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
832
833         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
834         warnings.
835
836 2003-03-02  Richard Henderson  <rth@redhat.com>
837
838         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
839         * config.in, configure: Rebuild.
840         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
841         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
842         paired ldtoffx and ldxmov annotations.
843         (load_symptr_internal1): Remove.
844         (load_symptr_high, load_symptr_low): New.
845
846 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
847
848         * c-incpath.c (add_path): Fix sysp assignment.
849
850 2003-03-02  Kurt Garloff  <garloff@suse.de>
851
852         * params.def: Introduce parameter max-inline-insns-rtl for
853         a separate limit for the RTL inliner.
854         * params.h: Likewise.
855         * integrate.c (function_cannot_inline_p): Use it.
856         * toplev.c (decode_f_option): Set multiple parameters
857         controlling inlining with -finline-limit.
858         * params.def: Fix orthographic and typographic errors.
859         * doc/invoke.texi: Document parameters controlling inlining
860         and the way -finline-limit sets multiple of them.
861
862         * tree.h (struct tree_decl): Introduce inlined_function_flag,
863         recording whether the function became eligible for inlining
864         by a compiler flag rather than the declaration.
865         Provide DID_INLINE_FUNC macro to access it.
866         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
867         * cp/decl.c (grokfndecl): Likewise.
868         * toplev.c (rest_of_compilation): Likewise.
869         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
870         * print-tree.c (print_node): Report it.
871         * params.def: Introduce new max-inline-insns-auto limit.
872         * params.h: Likewise.
873         * tree-inline.c (inlinable_function_p): Apply it to functions
874         with DID_INLINE_FUNC set.
875         * toplev.c (decode_f_option): Initialize it from -finline-limit
876         value.
877         * doc/invoke.texi: Document new parameter.
878
879 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
880
881         * fix-header.c (read_scan_file): Don't reference simplify_path.
882
883 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
884
885         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
886         min/max instructions by default as may result in reload errors.
887
888 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
889
890         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
891         avoid reload problems; define split for it.
892
893 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
894
895         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
896         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
897         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
898         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
899         rotatert and rotate.
900         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
901         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
902         ("*rotrhi3_addr"): New split for shift insns on address register.
903         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
904         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
905         (___rotrhi3): Likewise.
906         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
907
908 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
909
910         * toplev.c (aux_base_name): Moved from toplev.h.
911         (filename): Constify.
912         (lang_dependent_init): Don't duplicate name.
913         (process_options): Set aux_base_name here, not...
914         (do_compile): ...here.  Change protoype.
915         (toplev_main): Move some code from do_compile.
916         * toplev.h: Remove aux_base_name.
917
918 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
919
920         * config/h8300/h8300-protos.h: Add a prototype for
921         iorxor_operator.
922         * config/h8300/h8300.c (print_operand): Handle 'c'.
923         (iorxor_operator): New.
924         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
925         * config/h8300/h8300.md (*iorhi3_zext): Remove.
926         (*iorsi3_zexthi): Likewise.
927         (*iorsi3_zextsi): Likewise.
928         (*xorhi3_zextqi): Likewise.
929         (*xorsi3_zexthi): Likewise.
930         (*xorsi3_zextsi): Likewise.
931         (*ixorhi3_zext): New.
932         (*ixorsi3_zext_qi): Likewise.
933         (*ixorsi3_zext_hi): Likewise.
934
935 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
936
937         * c-incpath.c (remove_component_p, simplify_path): Move back to
938         cppfiles.c.
939         (remove_duplicates): Use cpp_simplify_path.
940         * c-incpath.h (simplify_path): Remove.
941         * c-lex.c: Don't include c-incpath.h.
942         (init_c_lex): Remove simplify_path.
943         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
944         (find_or_create_entry, validate_pch): Revert.
945
946 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
947
948         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
949           an external cpp during compilation.
950         (option_map): Likewise.
951         * objc/lang-specs.h (default_compilers): Similarly.
952         * doc/invoke.texi: Document -no-integrated-cpp flag.
953
954 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
955
956         * config/h8300/h8300.md (zero_extendqisi2): Change to an
957         expander.
958         (*zero_extendqisi2_h8300): New.
959         (*zero_extendqisi2_h8300hs): New.
960         (two splitters): New.
961
962 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
963
964         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
965
966 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
967
968         * config/h8300/h8300.md (a peephole2): Remove dead code.
969
970 2003-03-01  Roger Sayle  <roger@eyesopen.com>
971
972         PR c++/9367
973         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
974         (BT_FN_INT_CONST_STRING_VALIST_ARG,
975         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
976         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
977         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
978         BT_FN_INT_STRING_CONST_STRING_VAR,
979         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
980         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
981         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
982         ATTR_NONNULL_3): Also include the nothrow attribute.
983         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
984         vsnprintf, vscanf, vsscanf): Don't define attributes here.
985         * builtins.def (putchar, puts): Make full C89 built-ins.
986         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
987         vsscanf, vsnprintf, vsprintf): New built-ins.
988         * c-common.c (c_common_nodes_and_builtins): Handle new macro
989         DEF_FUNCTION_TYPE_VAR_3.
990
991         * doc/extend.texi: Document these new built-in functions.
992
993 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
994
995         * config/h8300/h8300.md (a peephole2): New.
996
997 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
998
999         * predict.c (estimate_bb_frequencies): Correctly set
1000         real_values_initialized after initialization.
1001
1002 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
1003
1004         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
1005         cppinit.o, cppdefault.o, fix-header): Update.
1006         * c-incpath.c: New file.
1007         * c-incpath.h: New file.
1008         * c-lex.c: Include c-incpath.h.
1009         (init_c_lex): Register path simplifier.
1010         * c-opts.c: Include cppdefault.h and c-incpath.h.
1011         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
1012         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
1013         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
1014         (missing_arg, c_common_decode_option): Handle them.
1015         (c_common_post_options): Register include chains.
1016         (print_help): Update.
1017         * cppdefault.h (struct default include): Update.
1018         Move some macros to ...
1019         * cppdefault.c: ... here.
1020         (cpp_include_defaults): Add extra field add_sysroot.
1021         * cppfiles.c (include_file, search_from, find_or_create_entry,
1022         cpp_included, find_include_file, remap_filename): Update for
1023         renaming of search_path to cpp_path, and of the chain headers.
1024         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
1025         * cpphash.h (struct search_path): Move to cpplib.h.
1026         (struct cpp_buffer, struct cpp_reader): Update.
1027         (_cpp_simplify_pathname): Remove.
1028         * cppinit.c: Don't include prefix.h and cppdefault.h.
1029         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
1030         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
1031         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
1032         no_pth, cpp_handle_options): Remove.
1033         (struct pending_option): Remove chain members.
1034         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
1035         cpp_handle_option): Update.
1036         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
1037         (struct cpp_options): Remove quote_include, bracket_include,
1038         include_prefix, include_prefix_len, verbose, ignore_srcdir,
1039         no_standard_includes, no_standard_cplusplus_includes.
1040         (struct cpp_callbacks): Add simplify_path.
1041         (cpp_handle_options): Remove.
1042         * fix-header.c: Include c-incpath.h.
1043         (read_scan_file): Update to use c-incpath functionality.
1044         * doc/passes.texi: Update.
1045
1046 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
1047
1048         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
1049         satisfies EXTRA_CONSTRAINT 'U'.
1050
1051 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
1052
1053         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
1054         register.
1055         (*tst_extzv_memqi_1_n): Change to a splitter.
1056         (a peephole2): Update.
1057
1058 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
1059
1060         * predict.c (estimate_bb_frequencies): Initialize the sreal
1061         constants once per compilation.
1062
1063 2003-02-28  Richard Henderson  <rth@redhat.com>
1064
1065         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
1066
1067 2003-02-28  scott snyder  <snyder@fnal.gov>
1068
1069         * flags.h: Add flag_eliminate_unused_debug_types.
1070         * toplev.c: Add flag_eliminate_unused_debug_types.
1071         (f_options): Add -feliminate-unused-debug-types.
1072         * dwarf2out.c (struct file_table): Add emitted member.
1073         (splice_child_die): Fix the parent pointer for the child being
1074         spliced.
1075         (lookup_filename): Maintain file_table.emitted array.  Don't
1076         output .file directive here.
1077         (maybe_emit_file): (new)
1078         (init_file_table): Set up file_table.emitted.
1079         (dwarf2out_source_line): Use maybe_emit_file.
1080         (dwarf2out_start_source_file): Use maybe_emit_file.
1081         (dwarf2out_init): Use maybe_emit_file.
1082         (prune_unused_types_walk_attribs): (new)
1083         (prune_unused_types_mark): (new)
1084         (prune_unused_types_walk): (new)
1085         (prune_unused_types_prune): (new)
1086         (prune_unused_types): (new)
1087         (dwarf2out_finish): Call prune_unused_types if
1088         flag_eliminate_unused_debug_types is set.
1089         * doc/invoke.texi (Option Summary): Add
1090         -feliminate-unused-debug-types.
1091         (Debugging Options): Likewise.
1092
1093 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
1094
1095         * doc/invoke.texi: Change .pch to .gch.
1096         * cppfiles.c (open_file_pch): Likewise.
1097         * gcc.c (default_compilers): Likewise.
1098
1099 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
1100
1101         * floatlib.c: Remove.
1102
1103 2003-02-28  Jason Merrill  <jason@redhat.com>
1104
1105         * stor-layout.c (variable_size): Leave a "minus 1" outside the
1106         SAVE_EXPR.
1107
1108 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
1109
1110         * config/rs6000/power4.md: Add compare bypass.
1111
1112 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
1113
1114         * config/netbsd.h: Update copyright years.
1115         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
1116         -pthread is specified on the command line.
1117
1118 2003-02-28  Dale Johannesen <dalej@apple.com>
1119
1120         * loop.c (struct movable): Add insert_temp, shrink savemode.
1121         (scan_loop): Accept invariants that require copying; mark as
1122         insert_temp.
1123         (combine_movables): Don't combine insert_temp movables.
1124         (move_movables): Insert copies for insert_temp movables.
1125         Don't record the info based on regno for insert_temp's.
1126
1127 2003-02-28  Joel Sherrill <joel@OARcorp.com>
1128
1129         PR 9638/other
1130         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
1131         this constant defaults to 1.
1132
1133 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
1134
1135         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
1136
1137 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
1138
1139         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
1140         ARMv5e processor, not just for XScale.  Instructions are predicable.
1141         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
1142
1143 2003-02-28  Nick Clifton  <nickc@redhat.com>
1144
1145         * config/arm/arm.c (note_invalid_constants): Change parameter type
1146         from bool to int.
1147
1148 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
1149
1150         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
1151         test of bit 7.
1152         (*tst_extzv_memqi_1_n): Likewise.
1153         (a peephole2): New.
1154
1155 2002-02-28  Richard Sandiford  <rsandifo@redhat.com>
1156
1157         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
1158         #ifndef __mips16.
1159
1160 Fri Feb 28 11:09:14 CET 2003  Jan Hubicka  <jh@suse.cz>
1161
1162         * combine.c (gen_lowpart_for_combine): Update handling of
1163         subregs_of_mode
1164         * flow.c (life_analysis, mark_used_regs): Likewise.
1165         * regclass.c (subregs_of_mode): Turn into single bitmap.
1166         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
1167         dealing with subregs_of_mode
1168         * regs.h (subregs_of_mode): Update prototype.
1169
1170 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
1171
1172         * emit-rtl.c (set_reg_attrs_for_parm): New function.
1173         * rtl.h (set_reg_attrs_for_parm): New exported function.
1174         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
1175         set_reg_attrs_from_mem.
1176
1177 2003-02-27  Roger Sayle  <roger@eyesopen.com>
1178             Zack Weinberg <zack@codesourcery.com>
1179
1180         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
1181
1182 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
1183
1184         * reload1.c (sext_for_mode): Remove.
1185         (reload_cse_move2add): Use trunc_int_for_mode instead of
1186         sext_for_mode.
1187         (move2add_note_store): Likewise.
1188         Reset register information if we see a set in non-integer
1189         mode.
1190
1191 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
1192
1193         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
1194         option.
1195         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
1196         * config/rs6000/aix51.h: Same.
1197         * config/rs6000/aix52.h: Same.
1198         * config/rs6000/power4.md: Additional VMX bypasses.
1199
1200 2003-02-27   Geert Bosch <bosch@gnat.com>
1201
1202         * toplev.c (print_version): Add indentation for GGC heuristics and
1203         output after printing version information.
1204
1205 2003-02-27  James E Wilson  <wilson@tuliptree.org>
1206
1207         * combine.c (simplify_comparison): Require integral mode when
1208         permuting SUBREG with AND.
1209
1210 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
1211
1212         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
1213
1214 2003-02-27  Nick Clifton  <nickc@redhat.com>
1215
1216         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
1217         deleted when cirrus instructions were added.
1218
1219 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
1220
1221         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
1222         POSIX thread support by default.
1223
1224 2003-02-27  Roger Sayle  <roger@eyesopen.com>
1225
1226         * config/i386/cygwin.h: Don't include any other files directly.
1227         * config/i386/mingw32.h: Don't include cygwin.h directly.
1228         * config.gcc (cygwin, mingw32, uwin): Instead make these files
1229         explicit in the tm_files variable.
1230
1231 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
1232
1233         * config/rs6000/rs6000.md: Add TI constant splitter.
1234
1235 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
1236
1237         * builtins.c (purge_builtin_constant_p): Handle subreg of
1238         constant_p_rtx too.
1239
1240         * function.c (assign_stack_local_1): Truncate constant added to
1241         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
1242
1243 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
1244
1245         * config.gcc: Add power4 to PowerPC with_cpu list.
1246
1247 Wed Feb 26 19:46:25 CET 2003  Jan Hubicka  <jh@suse.cz>
1248
1249         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
1250
1251 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1252
1253         * gcov-dump.c (print_prefix): Fix signedness warning.
1254         * gcov-io.h (struct counter_section, struct counter_section_data): New.
1255         (struct function_info): n_arc_counts field removed, n_counter_sections,
1256         counter_sections fields added.
1257         (struct gcov_info): arc_counts, n_arc_counts fields removed,
1258         n_counter_sections, counter_sections fields added.
1259         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
1260         profile sections.
1261         * profile.h (MAX_COUNTER_SECTIONS): New.
1262         (struct section_info): New.
1263         (struct profile_info): count_instrumented_edges,
1264         count_edges_instrumented_now fields removed, n_sections, section_info
1265         fields added.
1266         (find_counters_section): Declare.
1267         * profile.c (struct function_list): count_edges field removed,
1268         n_counter_sections, counter_sections fields added.
1269         (set_purpose, label_for_tag, build_counter_section_fields,
1270         build_counter_section_value, build_counter_section_data_fields,
1271         build_counter_section_data_value, build_function_info_fields,
1272         build_function_info_value, build_gcov_info_fields,
1273         build_gcov_info_value): New static functions.
1274         (find_counters_section): New function.
1275         (instrument_edges, get_exec_counts, compute_branch_probabilities,
1276         branch_prob, create_profiler): Modified to support multiple profile
1277         sections.
1278
1279 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1280
1281         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
1282         is 8 * STACK_BOUNDARY.
1283         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
1284
1285 2003-02-26  Michael Matz  <matz@suse.de>
1286
1287         * ra-colorize.c (merge_moves): Fix list handling.
1288
1289 2003-02-26  Nick Clifton  <nickc@redhat.com>
1290
1291         * config/arm/arm.c (is_load_address): Rename to...
1292         (arm_memory_load_p) ... this and make it check for SUBREGs and
1293         constant loads that will be converted into loads from the
1294         minipool.
1295         (is_cirrus_insn): Rename to ...
1296         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
1297         of CIRRUS_NO with CIRRUS_NOT.
1298         (cirrus_reorg): Use renamed functions.
1299         (note_invalid_constants): Change from a void function to bool.
1300         Add an extra parameter, saying whether the fixups should be
1301         pushed.  Return true if fixups are needed.
1302         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
1303         of CIRRUS_NO with CIRRUS_NOT.
1304         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
1305         other floating point co-processors can also affect this.
1306         * config/arm/arm.md ("type" attribute): Add mav_farith and
1307         mav_dmult.  Replace references to "cirrus_type" attribute with
1308         "type".
1309         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
1310         ("cirrus_type" attribute): Delete - use "type" instead.
1311         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
1312         'normal'.
1313
1314 Tue Feb 25 22:46:27 CET 2003  Jan Hubicka  <jh@suse.cz>
1315
1316         * objc-act.c: Include cgraph.h
1317         (mark_referenced_methods): New function.
1318         (objc_init): Call it.
1319         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
1320
1321         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
1322         mode.
1323
1324         * optabs.c (expand_fix): Do not widen the input operand.
1325
1326         * expr.c (emit_group_store):  Fix crash when converting single
1327         register into complex register.
1328
1329         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
1330         * alias.c: Include timevar.h
1331         (init_alias_analysis):  Set timevar
1332         * jump.c: Include timevar.h
1333         (rebuild_jump_labels):  Set timevar
1334         * regcalss.c: Include timevar.h
1335         (reg_scan):  Set timevar
1336         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
1337
1338 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1339
1340         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
1341
1342         * Makefile.in (loop-unroll.o): New.
1343         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
1344         (unroll_and_peel_loops): Declare.
1345         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
1346         flag_old_unroll_loops.
1347         * loop.c (loop_invariant_p): Ditto.
1348         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
1349         flag_old_unroll_all_loops.
1350         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
1351         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
1352         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
1353         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
1354         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
1355         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
1356         PARAM_MAX_ONCE_PEELED_INSNS): New.
1357         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
1358         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
1359         instead of old one.
1360         (flag_peel_loops): New.
1361         (lang_independent_options): The new flags added.
1362         (rest_of_compilation): Call new unroller.
1363         (process_options): Setup flags for coexistence of old and new unroller.
1364         * doc/invoke.texi: Document new options.
1365         * doc/passes.texi: Document new unroller pass.
1366
1367 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
1368
1369         * fixinc/fixincl.x: Regenerate
1370
1371 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
1372
1373         * function.c (assign_parms): Set reg_attrs for parameters passed in
1374         registers.
1375
1376 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
1377
1378         PR target/9681
1379         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
1380
1381 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
1382
1383         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
1384         pseudo-op.
1385
1386 2003-02-25  Roger Sayle  <roger@eyesopen.com>
1387
1388         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
1389         * cse.c (invalidate_skipped_set):  Likewise.
1390         * integrate.c (subst_constants):  Likewise.
1391         * jump.c (reversed_comparison_code_parts):  Likewise.
1392         * loop.c (canonicalize_condition):  Likewise.
1393         * simplify-rtx.c (simplify_relational_operation):  Likewise.
1394
1395 2003-02-25  Roger Sayle  <roger@eyesopen.com>
1396
1397         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
1398         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
1399         the appropriate macro to define built-in function.
1400         (fmod,fmodf,fmodl): New built-in functions.
1401
1402         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
1403
1404 2003-02-25  Richard Henderson  <rth@redhat.com>
1405
1406         * config/i386/i386.c (function_arg): Pass variable sized
1407         structures correctly on the stack.
1408
1409 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
1410
1411         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
1412         does not reduce the cost of SET.
1413
1414 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1415
1416         PR target/9732
1417         * config/rs6000/rs6000.c (first_reg_to_save): Handle
1418         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
1419         (rs6000_emit_prologue): Likewise.
1420         (rs6000_emit_epilogue): Likewise.
1421         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
1422         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
1423
1424 2003-02-25  Richard Henderson  <rth@redhat.com>
1425
1426         * real.c (real_to_integer2): Force overflow result only for
1427         unsigned overflow.
1428
1429 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
1430
1431         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
1432
1433 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
1434             Richard Henderson  <rth@redhat.com>
1435
1436         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
1437         there is no similar load.
1438
1439 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
1440             Richard Henderson  <rth@redhat.com>
1441
1442         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
1443         sched-rgn.c.
1444         (add_forward_dependence): New function prototype.
1445
1446         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
1447         sched-init.h.
1448         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
1449         them to haifa-sched.c.
1450
1451         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
1452         haifa_classify_insn): Move them from sched-rgn.c.
1453
1454         * sched-deps.c (add_dependence): Return flag of creating a new
1455         entry.
1456         (add_forward_dependence): New function.
1457         (compute_forward_dependences): Use the function.
1458
1459         * sched-ebb.c (earliest_block_with_similiar_load): New function.
1460         (add_deps_for_risky_insns): New function.
1461         (schedule_ebb): Call the function.
1462
1463 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
1464
1465         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
1466         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
1467
1468         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
1469         opaque types fail.
1470
1471         * c-typeck.c (comptypes): Change call to vector_types_compatible
1472         to vector_opaque_p.
1473         (convert_for_assignment): Call vector_opaque_p instead of
1474         vector_types_compatible.
1475         (really_start_incremental_init): Disallow initialization of opaque
1476         types.
1477
1478         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
1479         Define TARGET_VECTOR_OPAQUE_P.
1480         (TARGET_INITIALIZER): Same.
1481
1482         * target.h (struct gcc_target): Remove vector_types_compatible.
1483         Add vector_opaque_p.
1484
1485         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
1486         Remove.
1487         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
1488         a vector type.  Change return type to bool.
1489         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
1490         (TARGET_VECTOR_OPAQUE_P): Define.
1491
1492         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
1493         target hook.
1494         Include target.h.
1495         (cp_parser_init_declarator): Fix typo in function comments.
1496
1497 Tue Feb 25 12:35:34 CET 2003  Jan Hubicka  <jh@suse.cz>
1498
1499         * Makefile.in (lcm.o):  Add dependency on function.h
1500         * lcm.c (function.h): Include.
1501         * i386.c (machine_function, ix86_stack_locals,
1502         * ix86_save_varrargs_registers) : Move to
1503         ...
1504         * i386.h (machine_function, ix86_stack_locals,
1505         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
1506         (ix86_optimize_mode_switching): New.
1507         * i386.md (fix patterns): Set ix86_optimize_mode_switching
1508
1509 2003-02-25  Nick Clifton  <nickc@redhat.com>
1510
1511         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
1512         of fourth arg is 'fndecl' not 'indirect'.  Update comment
1513         describing the function's parameters.
1514
1515 Mon Feb 24 22:08:22 CET 2003  Jan Hubicka  <jh@suse.cz>
1516
1517         * combine.c (simplify_shift_const):  Fix previous patch.
1518
1519 2003-02-24  Jeff Law  <law@redhat.com>
1520
1521         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
1522         alternative.
1523         (testsi_1, testhi_1, testqi_1): Likewise.
1524
1525 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1526
1527         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
1528         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
1529         * doc/extend.texi (Tru64 Pragmas): Reflect this.
1530
1531         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
1532         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
1533         * fixinc/fixincl.x: Regenerate.
1534         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
1535         testcase.
1536         Fixes PR c/5059, c/6126, other/9671.
1537
1538 2003-02-24  Roger Sayle  <roger@eyesopen.com>
1539
1540         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
1541         from handle_braces in "%{...}".
1542
1543 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
1544
1545         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
1546         (prepare_move_operands): Handle TLS operands.
1547         (tls_symbolic_operand): New.
1548         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
1549         (legitimize_pic_address): Do nothing for the TLS symbol.
1550         (sh_encode_section_info): Handle TLS case.
1551         (sh_strip_name_encoding): Drop TLS encoding.
1552         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
1553         * config/sh/sh.h (SH_TLS_ENCODING): Define.
1554         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
1555         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
1556         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
1557         * config/sh/sh.md: Define TLS UNSPEC constants.
1558         (type): Add tls_load.
1559         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
1560         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
1561         ("tls_initial_exec"): New insn.
1562         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
1563         ("load_gbr"): New insn.
1564
1565         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
1566         * configure: Regenerate.
1567
1568 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
1569
1570         PR 9297, PR 9722
1571         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
1572         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
1573         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
1574         (enum block_op_methods): Reorder for better store_expr optimization.
1575         * expr.c (store_expr): Test bit 1 of "want_value" for call param
1576         stores, test bit 0 for original want_value meaning.  Pass
1577         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
1578         recursive calls, and calls to expand_param.
1579         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
1580         expected, set target to 0 rather than to subtarget.  Formatting.
1581
1582 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
1583
1584         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
1585
1586 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1587
1588         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
1589         new default behavior.
1590         * ggc-common.c: Include sys/resource.h.
1591         (ggc_rlimit_bound): New function.
1592         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
1593         defaults to account for rlimits.
1594
1595 2003-02-22  Richard Henderson  <rth@redhat.com>
1596
1597         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
1598
1599 2003-02-22  Kelley Cook <kelley@dwhoops.info>
1600
1601         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
1602         (ix86_tune_string): Rename from ix86_cpu_string.
1603
1604 2003-02-22  Kelley Cook <kelleycook@comcast.net>
1605
1606         * config/i386/i386.c: Replace "mcpu" with "mtune".
1607         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
1608         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
1609         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
1610         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
1611
1612 2003-02-23  Andreas Schwab  <schwab@suse.de>
1613
1614         * config.gcc: Delete references to m68k/t-linux and
1615         m68k/t-linux-aout.
1616         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
1617
1618 Sat Feb 22 20:22:19 CET 2003  Jan Hubicka  <jh@suse.cz>
1619
1620         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
1621         of track scheduling patch.
1622
1623 Sat Feb 22 19:29:28 CET 2003  Jan Hubicka  <jh@suse.cz>
1624
1625         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
1626         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
1627
1628 Sat Feb 22 12:42:16 CET 2003  Jan Hubicka  <jh@suse.cz>
1629
1630         * c-decl.c (c_expand_body_1): Fix.
1631
1632 Sat Feb 22 03:13:36 CET 2003  Jan Hubicka  <jh@suse.cz>
1633
1634         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
1635
1636         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
1637         when not optimizing.
1638         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
1639         when not expensive.
1640         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
1641         optimizing;  Delete trivially dead insns early; fix optimize check.
1642
1643         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
1644         dependency on cgraph.h
1645         * c-decl.c: Include cgraph.h
1646         (finish_function): Update call of tree_inlinable_function_p.
1647         * c-objc-common.c: Include cgraph.h
1648         * cgraph.h: New file.
1649         * cgraphunit.c: New file.
1650         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
1651         (cgraph_nodes, cgraph_n_nodes): Globalize.
1652         (cgraph_finalize_function, cgraph_finalize_compilation_unit
1653         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
1654         Move into cgraphunit.c
1655         * tree-inline.c: Include cgraph.h
1656         * tree-inline.c: Include cgraph.h
1657
1658 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
1659
1660         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
1661         for copying a register.
1662
1663 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1664
1665         PR other/3782
1666         * toplev.c (process_options): If flag_detailed_statistics is set,
1667         then set time_report as well.
1668
1669         PR c/8828
1670         * jump.c (never_reached_warning): Don't fall through BARRRIER
1671         insns.  Update comments to reflect what the function really does.
1672
1673 2003-02-21  Roger Sayle  <roger@eyesopen.com>
1674
1675         * fold-const.c (omit_one_operand): No longer static.
1676         * tree.h (omit_one_operand): Prototype here.
1677         (div_and_round_double): Keep fold-const.c prototypes together.
1678         * builtins.c (builtin_mathfn_code): Handle binary built-in
1679         funtions, such as "pow" and "atan2".
1680         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
1681         Simplify optimizations using "type" the builtin's return type.
1682
1683 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
1684
1685         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
1686         Fix functionalization typo.
1687
1688         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
1689         in an asm.
1690
1691 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1692
1693         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
1694         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
1695         documentation.
1696         * ggc-common.c: Include params.h
1697         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
1698         init_ggc_heuristics): New functions.
1699         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
1700         init_ggc_heuristics): Prototype.
1701         * toplev.c (print_version):  Output GGC heuristics.
1702         (parse_options_and_default_flags): Call init_ggc_heuristics.
1703
1704 Sat Feb 22 02:35:07 CET 2003  Jan Hubicka  <jh@suse.cz>
1705
1706         * i386.c (def_builtin):  Special case 64bit builtins.
1707         (MASK_SSE164, MASK_SSE264): New constants.
1708         (builtin_description): Add 64bit builtins.
1709         (ix86_init_mmx_sse_builtins): Likewise.
1710         * i386.h (enum ix86_builtins): Likewise.
1711         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
1712         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
1713         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
1714         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
1715         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
1716         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
1717         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
1718
1719 Sat Feb 22 00:48:22 CET 2003  Jan Hubicka  <jh@suse.cz>
1720
1721         * i386.c (builtin_description): Add __builtin_ia32_paddq and
1722         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
1723          and __builtin_ia32_psubq128.
1724         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
1725         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
1726         (mmx_adddi3, mmx_subdi3): New.
1727         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
1728         * xmmintrin.h (_mm_movepi64_pi64): New.
1729         (_mm_add_epi64, _mm_sub_epi64): fix.
1730         (_mm_mul_pu16): Rename to...
1731         (_mm_mul_su32): ... this one.
1732
1733         * builtins.c (expand_builtin_expect):  Do not predict
1734         flag_guess_branch_prob is not set.
1735         * c-semantics.c (expand_stmt): Likewise.
1736         * predict.c (predict_insn): Likewise.
1737         * stmt.c (expand_continue_loop): Likewise.
1738         * toplev.c (rest_of_compilation): Do not call
1739         note_prediction_to_br_prob and note_prediction_to_br_prob
1740         when not optimizing.
1741
1742 Fri Feb 21 23:10:13 CET 2003  Jan Hubicka  <jh@suse.cz>
1743
1744         * cfgrtl.c (commit_edge_insertions):  Call
1745         find_many_sub_basic_block only when some code has been emitted.
1746         (commit_edge_insertions_watch_calls): Bring into sync with
1747         commit_edge_insertions
1748
1749 Fri Feb 21 20:41:29 2003  J"orn Rennecke <joern.rennecke@superh.com>
1750
1751         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
1752
1753         * sh.md (binary_sf_op): Use extra constant operand instead of
1754         negating constant operand 4.
1755         * sh.c (sh_expand_binop_v2sf): Supply it.
1756
1757 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
1758
1759         * cpphash.h (struct lexer_state): Add directive_wants_padding.
1760         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
1761         for directives of type INCL.
1762         (glue_header_name, parse_include): Use get_token_no_padding.
1763         * cppmacro.c (replace_args): If directive_wants_padding,
1764         provide padding tokens.
1765
1766 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
1767
1768         * config/h8300/h8300.md (a peephole2): New.
1769
1770 Fri Feb 21 11:05:44 CET 2003  Jan Hubicka  <jh@suse.cz>
1771
1772         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
1773         (commit_edge_insertions): Call find_many_sub_basic_blocks
1774
1775         * reg-stack.c (convert_regs): Cleax aux for blocks.
1776
1777 Fri Feb 21 10:29:52 CET 2003  Jan Hubicka  <jh@suse.cz>
1778
1779         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
1780
1781 2003-02-21  Glen Nakamura  <glen@imodulo.com>
1782
1783         PR optimization/8613
1784         * builtins.c (expand_builtin): Emit postincrements before expanding
1785         builtin functions.
1786
1787 2003-02-21  Ben Elliston  <bje@redhat.com>
1788
1789         PR other/5634
1790         * doc/install.texi (Configuration): Explain using $HOME instead of
1791         the ~ metacharacter when referring to home directories.
1792
1793 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
1794
1795         * configure.in (TARGET_SYSTEM_ROOT): Set default to
1796         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
1797         '${exec_prefix}' (in addition to the expansion thereof) as
1798         relocatable.
1799         * configure: Rebuilt.
1800
1801 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
1802
1803         * config/h8300/h8300.md (addhi3_incdec): Change the name to
1804         *addhi3_incdec.
1805         (addsi3_incdec): Change the name to *addsi3_incdec.
1806
1807 2003-02-20  Roger Sayle  <roger@eyesopen.com>
1808
1809         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
1810
1811 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
1812
1813         PR fortran/9038
1814         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
1815         options to be ignored.
1816         (c_common_decode_option): Ignore them when preprocessing.
1817
1818 Thu Feb 20 21:41:19 CET 2003  Jan Hubicka  <jh@suse.cz>
1819
1820         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
1821         global variables.
1822         (lang_independent_options):  Add -fsched2-use-superblocks
1823         -fsced2-use-traces.
1824         (rest_of_compilation): Deal with it.
1825         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
1826         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
1827         Declare.
1828         * rtl.h (reg_to_stack):  Update prototype.
1829         * reg-stack.c (reg_to_stack): Return when something has changed;
1830         update liveness when executing after superblock scheduling.
1831
1832         * combine.c (simplify_shift_const):  Simplify few special cases
1833         into constants.
1834
1835 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
1836
1837         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
1838         (add.,subf.,neg.): Change attribute to fast_compare.
1839         All DFA descriptions updated.
1840
1841 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
1842
1843         Change base class access representation.
1844         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
1845         TREE_VIA_PRIVATE): Remove.
1846         (BINFO_BASEACCESSES): New binfo elt.
1847         (BINFO_BASEACCESS): New accessor.
1848         (BINFO_ELTS): Increase.
1849         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
1850         (access_public_node, access_protected_node,
1851         access_private_node): New global nodes.
1852         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
1853         * dbxout.c (dbxout_type): Adjust.
1854         * dwarf2out.c (gen_inheritance_die): Add access parameter.
1855         (gen_member_die): Adjust.
1856         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
1857         (output_type): Adjust.
1858         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
1859
1860         Change base class access representation. Share virtual base
1861         binfos.
1862         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
1863         call.
1864         * cp/class.c (build_base_path): Likewise.
1865         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
1866         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
1867         (make_new_vtable): Adjust.
1868         (force_canonical_binfo_r): Delete.
1869         (force_canonical_binfo): Delete.
1870         (mark_primary_virtual_base): Delete.
1871         (dfs_unshared_virtual_bases): Delete.
1872         (mark_primary_bases): Adjust.
1873         (maybe_warn_about_overly_private_class): Adjust.
1874         (dfs_base_derived_from): Delete.
1875         (base_derived_from): Follow the inheritance chain.
1876         (struct find_final_overrider_data): Add vpath member.
1877         (dfs_find_final_overrider): Adjust.
1878         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
1879         (find_final_overrider): Adjust.
1880         (update_vtable_entry_for_fn): Adjust.
1881         (modify_all_vtables): Adjust.
1882         (walk_subobject_offsets): Adjust.
1883         (layout_nonempty_base_or_field): Adjust.
1884         (layout_empty_base): Remove last parameter. Adjust.
1885         (build_base_field): Adjust.
1886         (build_base_fields): Adjust.
1887         (propagate_binfo_offsets): Remove last parameter. Adjust.
1888         (dfs_set_offset_for_unshared_vbases): Delete.
1889         (layout_virtual_bases): Adjust.
1890         (finish_struct_1): Adjust.
1891         (init_class_processing): Don't init access nodes.
1892         (dfs_get_primary_binfo): Delete.
1893         (get_primary_binfo): Adjust.
1894         (dump_class_hierarchy_r): Remove most derived arg, add IGO
1895         parameter. Adjust.
1896         (dump_class_hierarchy): Adjust.
1897         (finish_vtbls): Adjust.
1898         (get_original_base): Delete.
1899         (build_vtt_inits): Adjust.
1900         (dfs_build_secondary_vptr_vtt_inits): Adjust.
1901         (dfs_ctor_vtable_bases_queue_p): Adjust.
1902         (build_ctor_vtbl_group): Adjust.
1903         (dfs_accumulate_vtbl_inits): Adjust.
1904         (build_vtbl_initializer): Adjust.
1905         (build_vbase_offset_vtbl_entries): Adjust.
1906         (add_vcall_offset_vtbl_entries_1): Adjust.
1907         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
1908         (access_*_node): Remove.
1909         (CANONICAL_BINFO): Delete.
1910         (BINFO_UNSHARED_MARKED): Remove.
1911         (BINFO_MARKED): Set LANG_FLAG_0 directly.
1912         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
1913         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
1914         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
1915         Delete.
1916         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
1917         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
1918         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
1919         Delete.
1920         (BINFO_DEPENDENT_BASE_P): New.
1921         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
1922         index.
1923         (markedp, unmarkedp): Adjust.
1924         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
1925         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
1926         find_vbase_instance, binfo_for_vbase): Delete.
1927         (copied_binfo, original_binfo): Declare.
1928         (finish_base_specifier): Add virtual_p arg.
1929         (unshare_base_binfos): Delete.
1930         (copy_base_binfos): Declare.
1931         (reverse_path): Delete.
1932         * cp/decl.c (xref_basetypes): Access and virtuality passed
1933         differently. Don't copy direct base binfos here. Call
1934         copy_base_binfos.
1935         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
1936         (initialize_vtbl_ptrs): Adjust.
1937         (expand_member_init): Adjust.
1938         * cp/parser.c (cp_parser_base_specifier): Adjust.
1939         * cp/pt.c (instantiate_class_template): Adjust.
1940         (get_template_base_recursive): Adjust.
1941         * cp/rtti.c (get_pseudo_ti_init): Adjust.
1942         (get_pseudo_ti_desc): Adjust.
1943         * cp/tree.c (unshare_base_binfos): Rename to ...
1944         (copy_base_binfos): ... here, reimplement.
1945         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
1946         (reverse_path): Remove.
1947         * cp/typeck.c (get_delta_difference): Adjust error messages.
1948         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
1949         * cp/search.c (lookup_base_r): Adjust.
1950         (dynamic_cast_base_recurse): Adjust.
1951         (canonical_binfo): Remove.
1952         (dfs_canonical_queue): Remove.
1953         (dfs_assert_unmarked_p): Remove.
1954         (assert_canonical_unmarked): Remove.
1955         (shared_marked_p, shared_unmarked_p): Remove.
1956         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
1957         (dfs_access_in_type): Adjust.
1958         (access_in_type): Adjust.
1959         (dfs_accessible_queue_p): Adjust.
1960         (dfs_accessible_p): Adjust.
1961         (is_subobject_of_p_1, is_subobject_of_p): Remove.
1962         (struct lookup_field_info): Remove from_dep_base_p field.
1963         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
1964         (lookup_field_r): Remove dependent base code.
1965         (lookup_member): Likewise.
1966         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
1967         (dfs_unmarked_real_bases_queue_p): Remove.
1968         (dfs_marked_real_bases_queue_p): Remove.
1969         (dfs_skip_vbases): Remove.
1970         (dfs_get_pure_virtuals): Adjust.
1971         (markedp, unmarkedp): Adjust.
1972         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
1973         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
1974         (dfs_unmark): Adjust.
1975         (dfs_get_vbase_types):Remove.
1976         (dfs_build_inheritance_graph_order): Remove.
1977         (get_vbase_types): Remove
1978         (dfs_find_vbase_instance): Remove.
1979         (find_vbase_instance): Remove.
1980         (dfs_debug_unmarkedp): Adjust.
1981         (dependent_base_p): Remove.
1982         (dfs_push_type_decls): Adjust.
1983         (dfs_push_decls): Adjust.
1984         (dfs_no_overlap_yet): Adjust.
1985         (copied_binfo): New function.
1986         (original_binfo): New function.
1987         (binfo_for_vbase): Remove.
1988
1989         Change base class access representation.
1990         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
1991         (add_interface_do): Likewise.
1992
1993 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
1994
1995         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
1996         * config/rs6000/power4.md (power4-store,power4-vecstore): New
1997         insn reservations.
1998         (power4-fpstore): Compact.
1999
2000 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
2001
2002         * config/h8300/h8300.md (*iorsi3_w): New.
2003
2004 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
2005
2006         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
2007         * rtl.c (reg_note_name): Likewise.
2008         * rtl.h (enum reg_note): Likewise.
2009         * doc/invoke.texi: Likewise.
2010         * doc/rtl.texi: Likewise.
2011
2012 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
2013
2014         * bb-reorder.c (find_traces_1_round): Fix comment typo.
2015
2016 2003-02-19  Roger Sayle  <roger@eyesopen.com>
2017
2018         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
2019         addition in the presence of signaling NaNs.
2020
2021 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
2022
2023         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
2024
2025 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
2026
2027         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
2028         ORing with 0xffff??00 with the highest bit of the ?? part set.
2029         (compute_logical_op_length): Update.
2030         (compute_logical_op_cc): Likewise.
2031
2032 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
2033
2034         * bb-reorder.c (find_traces_1_round): Fixed condition for small
2035         destination block with multiple predecessors.
2036         (connect_traces): Check whether the block is a start of trace.
2037
2038 Wed Feb 19 19:00:24 CET 2003  Jan Hubicka  <jh@suse.cz>
2039
2040         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
2041         * function.c (assign_params): Likewise.
2042         * arm-protos.h (arm_init_cumulative_args): Update prototype.
2043         * arm.c (arm_init_cumulative_args): Update function.
2044         * arm.h (INIT_CUMULATIVE_ARGS): Update.
2045         * avr-protos.h (init_cumulative_args): Update prototype.
2046         * avr.c (init_cumulative_args): Update function.
2047         * avr.h (INIT_CUMULATIVE_ARGS): Update.
2048         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
2049         * d30v.c (d30v_init_cumulative_args): Update function.
2050         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
2051         * frv-protos.h (frv_init_cumulative_args): Update prototype.
2052         * frv.c (frv_init_cumulative_args): Update function.
2053         * frv.h (INIT_CUMULATIVE_ARGS): Update.
2054         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
2055         * pa.h (INIT_CUMULATIVE_ARGS): Update.
2056         * sparc-protos.h (init_cumulative_args): Update prototype.
2057         * sparc.c (init_cumulative_args): Update function.
2058         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
2059         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
2060
2061 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
2062
2063         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
2064         (*ashiftsi_sextqi_7): Likewise.
2065
2066 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2067
2068         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
2069         ISO C99 and C++.
2070
2071         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
2072         for C++ on IRIX 6.5.1[89].
2073         * fixinc/tests/base/internal/sgimacros.h: New file.
2074
2075         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
2076         * fixinc/tests/base/internal/wchar_core.h: New file.
2077
2078         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
2079         socklen_t definition.
2080         * fixinc/fixincl.x: Regenerate.
2081         * fixinc/tests/base/sys/socket.h: New file.
2082         Fixes PR libgcj/9652.
2083
2084 Wed Feb 19 17:22:51 CET 2003  Jan Hubicka  <jh@suse.cz>
2085
2086         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
2087
2088 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
2089
2090         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
2091         align_jumps_max_skip and align_loops_max_skip.
2092
2093 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
2094
2095         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
2096         test size if named section.
2097
2098 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
2099
2100         * expr.c (expand_expr): Use gen_int_mode for the argument
2101         to gen_rtx_MULT.
2102
2103 Wed Feb 19 14:22:42 CET 2003  Jan Hubicka  <jh@suse.cz>
2104
2105         * i386.md (cosxf2):  Fix conditional.
2106
2107 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
2108
2109         * config/h8300/h8300.md (extendqisi2): Change to an expander.
2110         (*extendqisi2_h8300): New.
2111         (*extendqisi2_h8300hs): Likewise.
2112
2113 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
2114
2115         * config/h8300/h8300-protos.h: Update the prototype for
2116         split_adds_subs.  Remove the prototypes for
2117         const_int_le_2_operand and const_int_le_6_operand.
2118         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
2119         (const_int_le_2_operand): Remove.
2120         (const_int_le_6_operand): Likewise.
2121         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
2122         for const_int_le_2_operand and const_int_le_6_operand.
2123         * config/h8300/h8300.md: Update all uses of split_adds_subs.
2124         (a peephole2): New.
2125
2126 Tue Feb 18 23:50:59 CET 2003  Jan Hubicka  <jh@suse.cz>
2127
2128         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
2129         (cgraph_expand_function): Rewrite.
2130
2131 2003-02-18  Matt Austern <austern@apple.com>
2132
2133         * toplev.c, langhooks.c, langhooks-def.h: Move
2134         write_global_declarations from toplev.c to langhooks.c.
2135
2136 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
2137
2138         * config/h8300/h8300.c (general_operand_src): Always check
2139         MODE.
2140         (general_operand_dst): Likewise.
2141
2142 2003-02-18  Roger Sayle  <roger@eyesopen.com>
2143
2144         * convert.c (convert_to_real): Also optimize (float)log(x) into
2145         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
2146
2147 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
2148
2149         * config/sh/sh.c (unspec_caller_rtx_p): New.
2150         (sh_cannot_copy_insn_p): New.
2151         (TARGET_CANNOT_COPY_INSN_P): New.
2152
2153 2003-02-18  Richard Henderson  <rth@redhat.com>
2154
2155         * c-common.c (handle_used_attribute): Accept static data too.
2156
2157 2003-02-18  Nick Clifton  <nickc@redhat.com>
2158             Aldy Hernandez  <aldyh@redhat.com>
2159
2160         * testsuite/gcc.dg/20030218-1.c: New.
2161
2162         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
2163
2164         * target-def.h (TARGET_INITIALIZER): Add
2165         TARGET_VECTOR_TYPES_COMPATIBLE.
2166         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
2167
2168         * target.h (struct gcc_target): Add field vector_types_compatible.
2169
2170         * c-typeck.c (comptypes): Take into account
2171         TARGET_VECTOR_TYPES_COMPATIBLE.
2172         (convert_for_assignment): Same.
2173
2174         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
2175         (rs6000_spe_vector_types_compatible): New.
2176         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
2177
2178 2003-02-19  Andreas Schwab  <schwab@suse.de>
2179
2180         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
2181         * toplev.c: Include langhooks-def.h.
2182
2183 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
2184
2185         * config/mips/mips.h (enum processor_type): Sort entries
2186         alphabetically.
2187         * config/mips/mips.md (define_attr cpu): Sync with processor_type
2188         enum values, including adding entries that were missing.
2189
2190 Tue Feb 18 20:15:54 2003  J"orn Rennecke <joern.rennecke@superh.com>
2191
2192         * sh.c (calc_live_regs): Also check GET_CODE when checking if
2193         initial value for PR_REG is still the PR_REG register.
2194
2195 2003-02-18  Jim Wilson  <wilson@redhat.com>
2196
2197         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
2198         instruction in output template.
2199         (bsp_value): Change output template from string to C code, add %,
2200         before actual instruction.
2201         (flushrs): Mark as not predicable.
2202
2203 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
2204
2205         * inclhack.def (netbsd_bogus_semicolon): New fix.
2206         * fixincl.x: Rebuilt.
2207         * tests/base/ctype.h: Update.
2208
2209 2003-02-18  Roger Sayle  <roger@eyesopen.com>
2210
2211         * fold-const.c (negate_expr_p): New function to determine whether
2212         an expression can be negated cheaply.
2213         (fold) [MINUS_EXPR]: Use it to determine whether to transform
2214         -A - B into -B - A for floating point types.
2215
2216 2003-02-18  Roger Sayle  <roger@eyesopen.com>
2217
2218         * sbitmap.c (sbitmap_resize): New function.
2219         * sbitmap.h (sbitmap_resize): Prototype here.
2220         * recog.c (split_all_insns): Use sbitmap_resize.
2221
2222 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
2223
2224         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
2225         insn length.
2226         (extendqisi2): Likewise.
2227         (*extendhisi2_h8300): Likewise.
2228
2229 2003-02-18  Matt Austern <austern@apple.com>
2230
2231         * langhooks.h, langhooks-def.h: introduce new langhook,
2232         final_write_globals, with write_global_declarations as default.
2233         * toplev.c: Move invocation of wrapup_global_declarations from
2234         compile_file to new function, write_global_declarations.  Change
2235         compile_file to use final_write_globals hook.  Change
2236         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
2237         conditional.
2238
2239 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2240
2241         * pa.md: Correct and enhance comment.
2242
2243 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
2244
2245         * gcc.c (validate_switches): Don't scan past closing '}'.
2246
2247 2003-02-18  Ben Elliston  <bje@redhat.com>
2248
2249         PR c++/1607
2250         * doc/extend.texi (Function Attributes): Document the effect of
2251         the C++ "this" parameter on the counting of arguments for the
2252         "format" and "format_arg" attributes.
2253
2254 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
2255
2256         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
2257         (__ev_stdw): Same.
2258         (__ev_stdh): Same.
2259
2260 Mon Feb 17 16:16:54 CET 2003  Jan Hubicka  <jh@suse.cz>
2261
2262         * recog.c (split_all_insns):  Fix memory overflow.
2263
2264 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
2265
2266         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
2267         (cmphi): Likewise.
2268         (*cmphi_h8300): Likewise.
2269         (*cmphi_h8300hs): Likewise.
2270         (cmpsi): Likewise.
2271         (7 peephole2): Likewise.
2272
2273 Sun Feb 16 23:07:52 CET 2003  Jan Hubicka  <jh@suse.cz>
2274
2275         * c-typeck.c (build_c_cast):  Fold constant variables into
2276         initial values.
2277
2278 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2279
2280         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
2281         (Binaries): Ditto for Sinix/Reliant Unix.
2282
2283 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
2284
2285         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
2286         not overlap the final result register.
2287
2288 2003-02-16 Arend Bayer <arend.bayer@web.de>
2289            Richard Henderson  <rth@redhat.com>
2290
2291         PR c/8068
2292         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
2293         rearrange mult arguments for less recursion.
2294         (extract_muldiv): New.  Prevent runaway recursion.
2295
2296 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
2297
2298         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
2299         MASK_ALIGN_DOUBLE.
2300
2301 2003-02-15  Roger Sayle  <roger@eyesopen.com>
2302
2303         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
2304         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
2305         (ext_80387_constants_table): Global table of 80387 special constants
2306         guarded by ext_80387_constants_init flag when not initialized.
2307         (init_ext_80387_constants): New function to initialize this table.
2308         (standard_80387_constant_p): Extend to recognize extra 80387
2309         constants, in XFmode, on processors where this is a win.
2310         (standard_80387_constant_opcode): New function to return the
2311         opcode associated with standard_80387_constant_p.
2312         (standard_80387_constant_rtx): New function to return the XFmode
2313         CONST_DOUBLE associated with standard_80387_constant_p.
2314         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
2315
2316         * config/i386/i386-protos.h (standard_80387_constant_opcode):
2317         Prototype here.
2318         (standard_80387_constant_rtx): Likewise.
2319
2320         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
2321         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
2322         *movtf_integer): Simplify using new standard_80387_constant_opcode.
2323
2324 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
2325
2326         * doc/invoke.texi (Optimize Options): Correct @option syntax.
2327
2328 2003-02-15  Richard Henderson  <rth@redhat.com>
2329
2330         * Makefile.in (cfglayout.o): Depend on TARGET_H.
2331         * cfglayout.c: Include target.h.
2332         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
2333         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
2334         * target.h (struct gcc_target): Add cannot_copy_insn_p.
2335
2336         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
2337         (TARGET_CANNOT_COPY_INSN_P): New.
2338         (override_options): Revert 2003-02-08 hack.
2339
2340 2003-02-15  Richard Henderson  <rth@redhat.com>
2341
2342         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
2343         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
2344
2345 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
2346
2347         * config/rs6000/rs6000.h (processor_type): Add PPC440.
2348         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2349         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2350         TARGET_SCHED_VARIABLE_ISSUE): Define.
2351         (rs6000_use_dfa_pipeline_interface): New function.
2352         (rs6000_multipass_dfa_lookahead): New Function.
2353         (rs6000_variable_issue): New function.
2354         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
2355         (rs6000_issue_rate): Add PPC440.
2356         * config/rs6000/rs6000.md (unspec list): Correct typo.
2357         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
2358         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
2359         cmp, delayed_cr, mfcr, mtcr.
2360         (automata_option): Set "ndfa".
2361         (extendMMNN2): Update attributes.
2362         (movcc_internal1): Discourage move to non-cr0.  Update
2363         attributes.
2364         (movMM_update): Update attributes.
2365         (cmpMM_internal): Update attributes.
2366         (sCC CR materialization): Update attributes.
2367         (branch patterns): Do not discourage non-cr0.
2368         (cr logical patterns): Prefer destructive register allocation.
2369         Update attributes.
2370         (movesi_from_cr): Update attribute.
2371         (mtcrf_operation): Update attribute.
2372         (mtcrfsi): Update attribute.
2373         * config/rs6000/40x.md: New file.
2374         * config/rs6000/603.md: New file.
2375         * config/rs6000/6xx.md: New file.
2376         * config/rs6000/7450.md: New file.
2377         * config/rs6000/7xx.md: New file.
2378         * config/rs6000/mpc.md: New file.
2379         * config/rs6000/power4.md: New file.
2380         * config/rs6000/rios1.md: New file.
2381         * config/rs6000/rios2.md: New file.
2382         * config/rs6000/rs64.md: New file.
2383         [Some DFA descriptions based on work by Michael Hayes]
2384
2385 2003-02-15  Richard Henderson  <rth@redhat.com>
2386
2387         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
2388         successors with multiple predecessors.
2389         (connect_traces): Try harder to copy traces of length 1.
2390
2391         * function.h (struct function): Add computed_goto_common_label,
2392         computed_goto_common_reg.
2393         * function.c (free_after_compilation): Zap them.
2394         * stmt.c (expand_computed_goto): Use them to produce one
2395         indirect branch per function.
2396
2397 2003-02-15  Richard Henderson  <rth@redhat.com>
2398
2399         * cfgcleanup.c: Include params.h.
2400         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
2401         too many outgoing edges from a block.
2402         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
2403         * params.def (max-crossjump-edges): New.
2404         * doc/invoke.texi: Document it.
2405
2406 2003-02-15  Richard Henderson  <rth@redhat.com>
2407
2408         * recog.c (split_all_insns): Include new blocks in life update;
2409         do a global life update.
2410
2411 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
2412
2413         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
2414         Update copyright.
2415         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
2416         -mno-cygwin case.
2417
2418 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2419
2420         PR optimization/7702
2421         * reload1.c (reload_cse_simplify_set): Honor
2422         CANNOT_CHANGE_MODE_CLASS.
2423
2424 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
2425
2426         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
2427         function.
2428         * config/mn10300/mn10300-protos.h: Declare it.
2429         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
2430         attribute cc of instructions that may use clr.
2431
2432 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
2433
2434         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
2435         (x - (x & y)) is found.
2436
2437 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2438
2439         * configure.in: Fix typo.
2440         * configure: Regenerate.
2441
2442 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
2443
2444         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
2445
2446 2003-02-13  Adam Nemet  <anemet@lnxw.com>
2447
2448         PR opt/2391
2449         * combine.c: Fix spelling in comment.
2450         (cached_nonzero_bits): New function.
2451         (cached_num_sign_bit_copies): New function.
2452         (nonzero_bits_with_known): New macro.
2453         (num_sign_bit_copies_with_known): New macro.
2454         (nonzero_bits1): Rename from nonzero_bits.  Add three new
2455         arguments.  Change calls from nonzero_bits to
2456         nonzero_bits_with_known.
2457         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
2458         three new arguments.  Change calls from num_sign_bit_copies to
2459         num_sign_bit_copies_with_known.
2460         (nonzero_bits): New macro.
2461         (num_sign_bit_copies): New macro.
2462         (update_table_tick): Don't traverse identical subexpression more
2463         than once.
2464         (get_last_value_validate): Likewise.
2465
2466 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
2467
2468         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
2469         * function.h (struct emit_status): Length of regno_pointer_align
2470         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
2471         not regno_pointer_align_length (i.e. length actually used, not
2472         length as allocated)
2473
2474         * config/i386/i386.c (struct stack_local_entry): New.
2475         (struct machine_function): Replace huge array with alist.
2476         (assign_386_stack_local): Change to match.
2477
2478 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
2479
2480         * inclhack.def (hpux_long_double): Tighten select and add bypass
2481         regexp.
2482         * fixincl.x: Rebuilt.
2483
2484 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
2485
2486         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
2487         edge and block ends with a jump insn it must be simple jump.
2488
2489 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
2490
2491         * Makefile.in (PREPROCESSOR_DEFINES): Add
2492         @TARGET_SYSTEM_ROOT_DEFINE@.
2493         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
2494         is specified or if building a cross compiler.
2495         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
2496         if the sysroot is under $exec_prefix.
2497         * configure: Regenerated.
2498         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
2499         defined.
2500         (struct default_include): Add add_sysroot field.
2501         (cpp_SYSROOT): Declare.
2502         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
2503         field.
2504         (cpp_SYSROOT): New variable.
2505         * cppinit.c (cpp_create_reader): Initialize
2506         CPP_OPTION (pfile, sysroot).
2507         (init_standard_includes): Handle add_sysroot.  Do not
2508         add unrelocated copies of relocated directories.
2509         (COMMAND_LINE_OPTIONS): Add -isysroot.
2510         (cpp_handle_option): Handle -isysroot.
2511         * cpplib.h (struct cpp_options): Add sysroot member.
2512         * gcc.c (The Specs Language): Update description of %I.
2513         (target_system_root_changed): New variable.
2514         (process_command): Conditionalize make_relative_prefix call
2515         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
2516         target_system_root_changed.
2517         (do_spec_1): Add -isysroot to %I.
2518         * doc/invoke.texi (Spec Files): Update description of %I.
2519         * doc/install.texi (--with-sysroot): Update comment about
2520         relocation.
2521
2522 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
2523
2524         * config/h8300/h8300.md (a peephole2): New.
2525
2526 2003-02-13  Robert Lipe <robertlipe@usa.net>
2527             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2528
2529         * doc/install.texi (Specific): Update three SCO-related URLs.
2530
2531 2003-02-13  Andreas Schwab  <schwab@suse.de>
2532
2533         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
2534         Parenthesize properly.
2535         (NPREDECESORS): Parenthesize properly.
2536
2537 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2538
2539         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
2540
2541 2003-02-12  Roger Sayle  <roger@eyesopen.com>
2542
2543         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
2544         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
2545
2546         * reg-stack.c (subst_stack_regs_pat): Add support for binary
2547         UNSPEC instructions (e.g. "fpatan").
2548
2549 2003-02-12  Mike Stump  <mrs@apple.com>
2550
2551         * varray.c (element_size): Remove.
2552         (uses_ggc): Remove.
2553         (element): Add.
2554         (varray_init): Use new interface.
2555         (varray_grow): Use new interface.
2556         (varray_clear): Use new interface.
2557
2558 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
2559
2560         * config/rs6000/spe.h: Add casts to the arguments of the following
2561         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
2562         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
2563         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
2564         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
2565         __ev_get_u16, __ev_get_s16.
2566
2567 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
2568
2569         * config/h8300/h8300.md (a peephole2): New.
2570
2571 Wed Feb 12 22:47:18 CET 2003  Jan Hubicka  <jh@suse.cz>
2572
2573         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
2574         (OBJS): Add callgraph.o
2575         (callgraph.o): New.
2576         * c-decl.c (expand_body_1): Break out from ...
2577         (expand_body): This one;  change calling convention
2578         (finish_function): Move some of expand_body logic here.
2579         (c_expand_deferred_function): Update call of expand_body
2580         (c_expand_stmt): Use c_expand_body_1.
2581         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
2582         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
2583         * c-tree.h (c_expand_body): Declare.
2584         * callgraph.c: New file.
2585         * flags.h (flag_unit_at_a_time): Declare.
2586         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
2587         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
2588         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
2589         * langhooks.h (struct lang_hooks_for_callgraph): New.
2590         (struct lang_hooks): Add callgraph field.
2591         * toplev.c (flag_unit_at_a_time): New.
2592         (lang_independent_options): Add flag_unit_at_a_time.
2593         (process_options): Disable unit-at-a-time mode for frontends not
2594         supporting callgraph.
2595         * tree-inline.c (typedef struct inline_data): Add "decl"
2596         (expand_call_inline): Update callgraph.
2597         (optimize_inline_calls): Set id.decl.
2598         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
2599         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
2600         cgraph_calls_p): Declare.
2601         * invoke.texi (-funit-at-a-time): Document
2602
2603 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
2604
2605         * config/rs6000/spe.h: Fix misc formatting.
2606         (__ev_create_ufix32_fs): Cast ev argument.
2607         (__ev_create_sfix32_fs): Same.
2608         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
2609         (__ev_get_ufix32_fs_internal): Same.
2610
2611 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
2612
2613         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
2614         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
2615
2616 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
2617
2618         * cpplib.c (do_include_common): Move warnings for
2619         #include_next and #import out to callers.  Use early-return
2620         instead of nested ifs.  Don't do check_eol here.
2621         (parse_include): Do check_eol here with the rest of the
2622         parsing stuff.
2623         (do_include_next, do_import): Now handle warnings.
2624
2625 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2626
2627         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
2628
2629 Wed Feb 12 15:19:42 CET 2003  Jan Hubicka  <jh@suse.cz>
2630
2631         * predict.c (estimate_probability):  Fix roundoff error.
2632
2633 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
2634
2635         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
2636         (two peephole2): New.
2637
2638 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
2639
2640         * config/h8300/h8300.md (several peephole2): Replace
2641         find_regno_note with peep2_reg_dead_p.
2642
2643 2003-02-11  Richard Henderson  <rth@redhat.com>
2644
2645         * gcse.c (lookup_set): Remove unused argument PAT.  Update
2646         both callers.
2647
2648 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
2649
2650         * diagnostic.c (real_abort): New.
2651         (diagnostic_report_diagnostic): Call real_abort on error.
2652         * diagnostic.h (diagnostic_abort_on_error): New.
2653         (struct diagnostic_context): Add abort_on_error field.
2654         * toplev.c (setup_core_dumping): New.
2655         (decode_d_option): Handle 'H' case.
2656         * doc/invoke.texi (Debugging Options): Document -dH.
2657
2658 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
2659
2660         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
2661         which refers to obsolete directories.
2662
2663 2003-02-11  Richard Henderson  <rth@redhat.com>
2664
2665         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
2666
2667 Mon Oct 21 17:07:47 CEST 2002  Jan Hubicka  <jh@suse.cz>
2668
2669         * i386.c (contains_128bit_aligned_vector_p): New function.
2670         (ix86_function_arg_boundary): Properly align vector modes.
2671
2672 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
2673
2674         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
2675         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
2676         as a SET pattern.
2677
2678 2003-02-11  Roger Sayle  <roger@eyesopen.com>
2679
2680         * builtins.c:  Fix failure caused by commiting wrong patch.
2681
2682 2003-02-11  Dale Johannesen  <dalej@apple.com>
2683         * ra-build.c (compare_and_free_webs):  Relax checking.
2684         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
2685         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
2686
2687 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2688
2689         PR optimization/9651
2690         * rtlanal.c (may_trap_p): Handle FIX.
2691
2692 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
2693
2694         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
2695         * doc/invoke.texi: Extra alias.
2696
2697 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
2698
2699         * config/rs6000/host-darwin.c: Fix comment.
2700
2701 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
2702
2703         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
2704         predicate for mod result.
2705
2706 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2707
2708         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
2709         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
2710         * fixincl.x: Rebuilt.
2711         * tests/base/stdlib.h: Update.
2712         * tests/base/ctype.h: New file.
2713
2714 Tue Feb 11 20:44:45 CET 2003  Jan Hubicka  <jh@suse.cz>
2715
2716         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
2717
2718 2003-02-11  Richard Henderson  <rth@redhat.com>
2719
2720         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
2721         appropriated as globals.
2722         (ix86_expand_clrstr): Similarly.
2723         * config/i386/i386.md (cmpstrsi): Similarly.
2724
2725 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
2726
2727         * config/h8300/h8300.md (a peephole2): Add a case of 255.
2728
2729 2003-02-11  Roger Sayle  <roger@eyesopen.com>
2730
2731         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
2732         (pow_optab, atan2_optab): Define corresponding macros.
2733         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
2734         * genopinit.c (optabs): Implement pow_optab and atan2_optab
2735         using pow?f3 and atan2?f3 patterns.
2736         * builtins.c (expand_errno_check): New function to update errno
2737         if necessary, split out from expand_builtin_mathfn.
2738         (expand_builtin_mathfn): Use expand_errno_check.
2739         (expand_builtin_mathfn_2): New function to handle expanding binary
2740         math functions, reusing the code in expand_errno_check.
2741         (expand_builtin): Handle the pow and atan2 math built-ins,
2742         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
2743         expand_builtin_mathfn_2.
2744
2745         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
2746
2747 Tue Feb 11 19:03:22 MET 2003  Jan Hubicka  <jh@suse.cz>
2748
2749         * combine.c (combine_simplify_rtx): Fix folding of
2750         nested float_truncates.
2751
2752 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
2753
2754         * config/h8300/h8300.md (a peephole2): Fix a typo.
2755
2756 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
2757
2758         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
2759         register number.
2760
2761 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
2762
2763         * config/h8300/h8300-protos.h: Add a prototype for
2764         gtuleu_operator.
2765         * config/h8300/h8300.c (gtuleu_operator): New.
2766         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
2767         * config/h8300/h8300.md (a peephole2): New.
2768
2769 Tue Feb 11 13:32:12 CET 2003  Jan Hubicka  <jh@suse.cz>
2770
2771         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
2772
2773 Tue Feb 11 10:02:54 CET 2003  Jan Hubicka  <jh@suse.cz>
2774
2775         * predict.c (choose_function_section): Choose sections correctly.
2776
2777 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2778
2779         * reload1.c (first_label_num): New.
2780         (reload): Index offsets_known_at and offsets_at using difference of
2781         label number and first label number.  Don't use offset pointers.
2782         (set_label_offsets, set_initial_label_offsets): Likewise.
2783
2784 2003-02-10  Roger Sayle  <roger@eyesopen.com>
2785
2786         * mips-tfile.c (init_file): Add missing initializers in the
2787         "#ifdef __alpha" case.
2788         (file_offset, max_file_offset): Declare as unsigned long.
2789         (write_varray): Cast to "unsigned long" in comparisons against
2790         either file_offset or max_file_offset.
2791         (write_object): Likewise.
2792         (read_seek): Likewise.
2793         (copy_object): Likewise. Declare "ifd" as int to match its use
2794         in add_ext_symbol, and avoid signed/unsigned conditional warning.
2795
2796 2003-02-10  Nick Clifton  <nickc@redhat.com>
2797             Aldy Hernandez  <aldyh@redhat.com>
2798
2799         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
2800         override options which have been specified on the command line.
2801
2802 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
2803
2804         * config/h8300/h8300.md (abssf2): New.
2805         (*abssf2_h8300): Likewise.
2806         (*abssf2_h8300hs): Likewise.
2807
2808 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
2809
2810         * tree.c (build_tree_list):  Fix parameter names in comment.
2811
2812 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
2813
2814         * config/rs6000/ppc64-fp.c: New file.
2815         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
2816
2817 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
2818
2819         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
2820         * bb-reorder.c (make_reorder_chain): Deleted.
2821         (make_reorder_chain_1): Deleted.
2822         (find_traces): New function.
2823         (rotate_loop): New function.
2824         (mark_bb_visited): New function.
2825         (find_traces_1_round): New function.
2826         (copy_bb): New function.
2827         (bb_to_key): New function.
2828         (better_edge_p): New function.
2829         (connect_traces): New function.
2830         (copy_bb_p): New function.
2831         (get_uncond_jump_length): New function.
2832         (reorder_basic_blocks): Use new functions (Software Trace Cache).
2833         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
2834         boundaries.
2835
2836 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
2837
2838         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
2839
2840 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
2841
2842         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
2843         (DECL_LIVE_RANGE_RTL): Remove.
2844
2845 2003-02-10  Nick Clifton  <nickc@redhat.com>
2846
2847         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
2848         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
2849         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
2850         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
2851         config/arm/freebsd.h, config/arm/linux-elf.h,
2852         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
2853         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
2854         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
2855         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
2856         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
2857         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
2858         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
2859         and reformat as appropriate.
2860
2861 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
2862
2863         * config/h8300/clzsi2.c: Remove.
2864         * config/h8300/ctzsi2.c: Likewise.
2865         * config/h8300/paritysi2.c: Likewise.
2866         * config/h8300/popcountsi2.c: Likewise.
2867         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
2868         ctzsi2, paritysi2, and popcountsi2.
2869
2870 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
2871             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
2872
2873         PR c/7741
2874         * c-decl.c (duplicate_decls): Discard the initializer of the
2875         new decl when the types are conflicting.
2876
2877 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
2878
2879         * Makefile.in (sreal.o): Added.
2880         (predict.o): Depends on sreal.h instead of real.h.
2881         * sreal.c: New file.
2882         * sreal.h: New file.
2883         * predict.c: Use sreal.c instead of real.c.
2884
2885 2003-02-10  Nick Clifton  <nickc@redhat.com>
2886
2887         * Contributed support for the Cirrus EP9312 "Maverick"
2888         floating point co-processor.  Written by Aldy Hernandez
2889         <aldyh@redhat.com>.
2890         (config/arm/arm.c): Add Cirrus support.
2891         (config/arm/arm.h): Likewise.
2892         (config/arm/aout.h): Likewise.
2893         (config/arm/arm.md): Likewise.
2894         (config/arm/arm-protos.h): Likewise.
2895         (config.gcc): Likewise.
2896         (doc/invoke.texi): Describe new -mcpu value and new
2897         -mcirrus-fix-invalid-insns switch,
2898         (cirrus.md): New file.
2899
2900 Mon Feb 10 11:40:18 CET 2003  Jan Hubicka  <jh@suse.cz>
2901
2902         * combine.c (combine_simplify_rtx): Simplify using
2903         (float_truncate (float x)) is (float x)
2904         (float_extend (float_extend x)) is (float_extend x).
2905
2906 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
2907
2908         * calls.c (try_to_integrate): Tidy stack_usage_map access.
2909         (emit_library_call_value_1): Likewise.  Formatting.
2910         (store_one_arg): Likewise.
2911
2912 2003-02-09  Nick Clifton  <nickc@redhat.com>
2913             Aldy Hernandez  <aldyh@redhat.com>
2914
2915         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
2916         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
2917         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
2918         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
2919         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
2920         docs.  Add range test for immediate value.
2921
2922 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
2923
2924         Rename spe_evxor to xorv2si3.
2925         (xorv4hi3): New.
2926         (xorv1di3): New.
2927
2928 2003-02-10  Glen Nakamura  <glen@imodulo.com>
2929
2930         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
2931         tag.
2932
2933 Mon Feb 10 00:29:17 CET 2003  Jan Hubicka  <jh@suse.cz>
2934
2935         * i386.c (vector_move_operand): New predicate.
2936         (ix86_expand_vector_move): Be happy about 0.
2937         * i386.h (PREDICATE_CODES): Add sse-move_operand.
2938         * i386.md (mov*_internal): Add 'C' alternative.
2939
2940 Sun Feb  9 23:58:33 CET 2003  Jan Hubicka  <jh@suse.cz>
2941
2942         * i386.md (floathi*): Deal with SSE.
2943
2944 Sun Feb  9 23:54:59 CET 2003  Jan Hubicka  <jh@suse.cz>
2945
2946         * simplify-rtx.c (simplify_unary_operation,
2947         simplify_binary_operation):  Deal with vector modes
2948         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
2949
2950 2002-02-09  Richard Sandiford  <rsandifo@redhat.com>
2951
2952         * toplev.c (rest_of_compilation): Recompute register usage after
2953         split_all_insns.
2954
2955 2003-02-09  Richard Henderson  <rth@redhat.com>
2956
2957         * libgcc-std.ver (__clztf2): New.
2958         (__ctztf2, __popcounttf2, __paritytf2): New.
2959         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
2960         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
2961         adjust code to match the different type sizes.
2962         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
2963         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
2964
2965         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
2966         TImode; select word_mode and twice that.
2967         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
2968         select the modes from float, double, and long double.
2969         (init_optabs): Remove duplicate initializations.
2970
2971 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
2972
2973         * doc/install.texi: Squeeze and streamline section on
2974         testing and regression checking.
2975
2976 Sun Feb  9 13:33:34 CET 2003  Jan Hubicka  <jh@suse.cz>
2977
2978         * i386.md (ahi?v*3): Set third operand type to TImode.
2979         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
2980
2981         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
2982         integer mode.
2983
2984         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
2985         Change code so they are arithmetic expressions now.
2986         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
2987         simplify_ternary_operation): Deal with VEC_* expressions.
2988
2989         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
2990
2991 Sat Feb  8 00:21:22 CET 2003  Jan Hubicka  <jh@suse.cz>
2992
2993         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
2994         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
2995         possibly got duplicated.
2996
2997 2003-02-08  Richard Henderson  <rth@redhat.com>
2998
2999         * config/alpha/alpha.c (override_options): Turn off explicit
3000         relocs until post-peep2 code duplication resolved.
3001
3002 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
3003
3004         * optabs.c (expand_unop): Widen clz properly when clz is done
3005         via libcall.
3006
3007 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
3008
3009         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
3010         * config/h8300/crti.asm: Likewise.
3011         * config/h8300/crtn.asm: Likewise.
3012         * config/h8300/ctzsi2.c: Likewise.
3013         * config/h8300/fixunssfsi.c: Likewise.
3014         * config/h8300/h8300-protos.h: Likewise.
3015         * config/h8300/h8300.c: Likewise.
3016         * config/h8300/h8300.h: Likewise.
3017         * config/h8300/h8300.md: Likewise.
3018         * config/h8300/paritysi2.c: Likewise.
3019         * config/h8300/popcountsi2.c: Likewise.
3020         * config/h8300/rtems.h: Likewise.
3021
3022 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3023
3024         * doc/invoke.texi: Documentation for my previous commit.
3025         * doc/passes.texi: Ditto.
3026
3027 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3028
3029         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
3030         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
3031         Declare.
3032         (DLTHE_FLAG_UPDATE_FREQ): New.
3033         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
3034         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
3035         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
3036         fix_bb_placement, fix_bb_placements, place_new_loop,
3037         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
3038         New static functions.
3039         (fix_loop_placement, can_duplicate_loop_p,
3040         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
3041         New functions.
3042
3043         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
3044         unswitch_loops): Declare.
3045         * loop-init.c: New file.
3046         * loop-unswitch.c: New file.
3047         * Makefile.in (loop-init.o, loop-unswitch.o): New.
3048         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
3049         * toplev.c (DFI_loop2): New dump.
3050         (flag_unswitch_loops): New.
3051         (lang_independent_options): Add it.
3052         (rest_of_compilation): Call new loop optimizer.
3053         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
3054
3055 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
3056
3057         * config/h8300/clzsi2.c: New.
3058         * config/h8300/ctzsi2.c: Likewise.
3059         * config/h8300/paritysi2.c: Likewise.
3060         * config/h8300/popcountsi2.c: Likewise.
3061         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
3062
3063 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
3064
3065         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
3066         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
3067         (ctzsi2): New pattern.
3068         (ffssi2): Use clz instead of unspec.
3069         (clzdi2): Rename from cntlzd2.
3070         (ctzdi2): New pattern.
3071         (ffsdi2): Use clz instead of unspec.
3072
3073 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
3074
3075         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
3076         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
3077         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3078         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
3079
3080 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
3081
3082         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
3083
3084 2003-02-07  Richard Henderson  <rth@redhat.com>
3085
3086         PR 9226
3087         * gcse.c (local_cprop_find_used_regs): New.
3088         (local_cprop_pass): Use it.
3089
3090 2003-02-07  Fred Fish  <fnf@intrinsity.com>
3091
3092         * mips-tfile.c (parse_def): Parenthesize assignments to fix
3093         precedence bugs.
3094
3095 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
3096
3097         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
3098
3099 2003-02-07  Roger Sayle  <roger@eyesopen.com>
3100
3101         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
3102         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
3103         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
3104         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
3105         builtin functions (and their __builtin_* variants).
3106         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
3107         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
3108         when not optimizing.
3109
3110         * doc/extend.texi: Document new pow and atan2 builtins, and
3111         their float and long double variants.  Realphabetize builtins.
3112
3113 Fri Feb  7 23:24:28 CET 2003  Jan Hubicka  <jh@suse.cz>
3114
3115         * i386.md (sse2_nandv2di3): Fix.
3116
3117 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
3118
3119         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
3120         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
3121         definition.
3122         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
3123         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
3124
3125 Fri Feb  7 22:22:40 CET 2003  Jan Hubicka  <jh@suse.cz>
3126
3127         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
3128
3129 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
3130
3131         * cfg.c (dump_flow_info): Add back accidently deleted line.
3132
3133 2003-02-07  Andrey Petrov <petrov@netbsd.org>
3134
3135         * optabs.c (expand_float): Search wider integer modes first.
3136
3137 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
3138
3139         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
3140         based on preprocessor flag.
3141
3142 2003-02-07  Roger Sayle  <roger@eyesopen.com>
3143             Richard Henderson  <rth@redhat.com>
3144
3145         * gcse.c (implicit_sets): New.
3146         (compute_hash_table_work): Include them in hash table.
3147         (find_implicit_sets, fis_get_condition): New.
3148         (one_cprop_pass): Allocate and free implicit_sets; call
3149         find_implicit_sets before building hash table.
3150
3151 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
3152
3153         * config/t-netbsd (USER_H): Revert previous change.
3154
3155 2003-02-07  Gabor Greif  <ggreif@lucent.com>
3156
3157         * doc/c-tree.texi (Namespaces): Fix typo.
3158
3159 Fri Feb  7 02:18:57 CET 2003  Jan Hubicka  <jh@suse.cz>
3160
3161         * regrename.c (do_replace, find_oldest_value_reg,
3162         copyprop_hardreg_forward_1): Update register attributes.
3163
3164 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
3165
3166         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
3167         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
3168         variables starting with underscore.
3169         (struct unit_usage): New structure.
3170         (unit_usages, cycle_alt_unit_usages): New global variables.
3171         (check_unit_distribution_in_reserv): Remove it.
3172         (store_alt_unit_usage): New function.
3173         (check_regexp_units_distribution): Rewrite it.
3174
3175 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3176
3177         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
3178         target_cpu_default.
3179         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
3180         if not MASK_NO_SPACE_REGS.
3181         (output_call): Adjust return pointer, don't load new space register
3182         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
3183         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
3184         TARGET_NO_SPACE_REGS is true.
3185         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
3186         conditions.
3187         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
3188         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
3189         true.  Use bve when TARGET_64BIT is true.
3190
3191 2003-02-06  Richard Henderson  <rth@redhat.com>
3192
3193         * combine.c (nonzero_bits): Fix double break.
3194
3195 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
3196             Richard Henderson <rth@redhat.com>
3197
3198         PR c/9530
3199         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
3200         from functions that return a float to functions that don't.
3201
3202 Thu Feb  6 00:18:38 CET 2003  Jan Hubicka  <jh@suse.cz>
3203
3204         * i386.c (x86_inter_unit_moves): New variable.
3205         (ix86_secondary_memory_needed): Fix 64bit case, honor
3206         TARGET_INTER_UNIT_MOVES
3207         * i386.h (x86_inter_unit_moves): Declare.
3208         (TARGET_INTER_UNIT_MOVES): New macro.
3209         * i386.md (movsi_1): Cleanup constraints; disable
3210         when not doing inter-unit moves.
3211         (movsi_1_nointernunit): New.
3212         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
3213         (movdi_1_rex64_nointerunit): New.
3214         (mivsf_1): disable when not doing inter-unit moves.
3215         (movsf_1_nointerunit): New.
3216
3217         * basic-block.h (inside_basic_block_p):  Declare.
3218         * cfgbuild.c (inside_basic_block_p): Make global.
3219         * haifa-sched.c (unlink_other_notes0: Deal with NOT_INSN_BASIC_BLOCK.
3220         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
3221         update CFG.
3222         (fix_basic_block_boundaries, add_missing_bbs): New.
3223         (rank): Use profile.
3224         (scheudle_ebbs): Rely on CFG; update coments.
3225
3226 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
3227
3228         * Makefile.in (host_hook_obj): New.
3229         (OBJS): Add $(host_hook_obj).
3230         (host_default.o): New rule.
3231         * config.gcc (host_hook_obj): New, default to host-default.o.
3232         (powerpc-*-darwin*): Use host-darwin.o.
3233         (out_host_hook_obj): New.
3234         * configure: Regenerate.
3235         * configure.in: Print information about out_host_hook_obj, substitute
3236         into output files.
3237         * host-default.c: New file.
3238         * hosthooks.h: New file.
3239         * toplev.c (general_init): Call host_hooks.extra_signals.
3240         * config/rs6000/host-darwin.c: New file.
3241         * config/rs6000/x-darwin: New file.
3242         * doc/hostconfig.texi: Add documentation for new host hook.
3243         Rearrange existing documentation.
3244
3245 2003-02-05  Roger Sayle  <roger@eyesopen.com>
3246
3247         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
3248         with *targetm.delegitimize_address.
3249         (rtl_for_decl_location): Likewise.
3250         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
3251         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
3252
3253         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
3254         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
3255         prototype.
3256         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
3257         i386_simplify_dwarf_addr.  Made static.  Prototyped.
3258         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
3259         i386_simplify_dwarf_addr to ix86_delegitimize_address.
3260         (ix86_find_base_term): Likewise.
3261         (maybe_get_pool_constant): Likewise.
3262
3263         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
3264         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
3265         prototype.
3266         * config/s390/s390.c (s390_delegitimize_address): Renamed from
3267         s390_simplify_dwarf_addr.  Made static.  Prototyped.
3268         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
3269
3270 2003-02-05  Richard Henderson  <rth@redhat.com>
3271
3272         PR c/8602
3273         * integrate.c (output_inline_function): Reset input_filename
3274         and lineno from the decl before rest_of_compilation.
3275
3276 2003-02-05  Richard Henderson  <rth@redhat.com>
3277
3278         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
3279         (CTZ_DEFINED_VALUE_AT_ZERO): New.
3280         * doc/rtl.texi, doc/tm.texi: Document them.
3281
3282         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
3283         of the value at zero properly.
3284         * fold-const.c (tree_expr_nonnegative_p): Likewise.
3285         * simplify-rtx.c (simplify_unary_operation): Likewise.
3286
3287         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
3288         (CTZ_DEFINED_VALUE_AT_ZERO): New.
3289
3290         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
3291         (TARGET_EXPAND_BUILTIN): Remove.
3292         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
3293         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
3294         (enum arm_builtins): Remove.
3295         * config/arm/arm.md (UNSPEC_CLZ): Remove.
3296         (clzsi2): Rename from clz; use clz instead of unspec.
3297         (ctzsi2): New.
3298         * config/arm/arm-protos.h: Update.
3299
3300 Wed Feb  5 23:12:57 CET 2003  Jan Hubicka  <jh@suse.cz>
3301
3302         * i386-protos.h (x86_emit_floatuns):  Declare.
3303         * i386.c (x86_emit_floatuns): New global function.
3304         * i386.md (floatunssisf2, floatunsdisf2,
3305         floatunsdidf2):  New patterns.
3306
3307 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3308
3309         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
3310
3311 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
3312
3313         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
3314           config/ia64/linux.h
3315
3316 2002-02-05  Roger Sayle  <roger@eyesopen.com>
3317
3318         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
3319
3320 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
3321
3322         PR optimization/8555
3323         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
3324         instead of aborting.
3325
3326 2003-02-04  Richard Henderson  <rth@redhat.com>
3327
3328         * config/i386/i386.md (UNSPEC_BSF): Remove.
3329         (ffssi2): Split into cmove and no_cmove insns and splitters;
3330         lose pentium float trick for now.
3331         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
3332         (ctzsi2, clzsi2, bsr): New.
3333
3334 2003-02-04  Richard Henderson  <rth@redhat.com>
3335
3336         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
3337         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
3338         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
3339         (ffsdi2): Use popcount instead of unspec.
3340         (popcountdi2): Rename from *popcnt.
3341         (ctzdi2, clzdi2, getf_exp_tf): New.
3342
3343 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
3344
3345         * genconfig.c (main): Generate CC0_P.
3346         * rtl.h (CC0_P): Remove.
3347
3348 2003-02-04  Richard Henderson  <rth@redhat.com>
3349
3350         * libgcc2.h, libgcc2.c (__ffsSI2): New.
3351         (__ffsDI2): Rename from __ffsdi2.
3352         * mklibgcc.in (lib2funcs): Add _ffssi2.
3353
3354 2003-02-04  Richard Henderson  <rth@redhat.com>
3355
3356         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
3357         rounds with a "bit table" lookup.
3358
3359 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
3360
3361         * reload.c (find_reloads): Do not use the mode specified in the insn
3362         pattern as reload mode for address operands.  Do not generate optional
3363         reloads for operands where a mandatory reload was already pushed.
3364
3365 2003-02-04  Richard Henderson  <rth@redhat.com>
3366
3367         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
3368         builtins instead of inline assembly.
3369
3370 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
3371
3372         PR c/9376
3373         * libgcc2.c (__subvdi3): Fix typo.
3374
3375 Tue Feb  4 21:46:05 CET 2003  Jan Hubicka  <jh@suse.cz>
3376
3377         * i386.md (movti_rex64):  Fix constraint.
3378
3379 Tue Feb  4 18:40:42 CET 2003  Jan Hubicka  <jh@suse.cz>
3380
3381         * i386.md (vector push splitters):  Fix typo in resolving conflict.
3382
3383 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
3384
3385         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
3386
3387 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
3388
3389         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
3390         for recent libstdc++.  Remove formatting cruft.
3391
3392 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
3393
3394         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
3395         attribute even if input file name is absolute, but one of the
3396         includes is relative.
3397
3398 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
3399
3400         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
3401         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
3402         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
3403
3404 2003-02-03  Richard Henderson  <rth@redhat.com>
3405
3406         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
3407         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
3408         return type to "int".  Shuffle declarations and undef int trap.
3409         * libgcc2.h: Remove their declarations.
3410         * optabs.c (expand_unop): Force outmode to int for bitops.
3411
3412 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
3413
3414         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
3415         coprocessor registers before floating-point registers.
3416         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
3417         to account for a previously removed register.
3418         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
3419         Delete unused macros.
3420
3421 Mon Feb  3 21:19:11 CET 2003  Jan Hubicka  <jh@suse.cz>
3422
3423         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
3424         (mov*_internal): Fix predicates; require one of operands to not be
3425         memory.
3426         (SSE?MMX move expanders):  Fix predicates; force one of operands to
3427         register.
3428         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
3429         (movups/movupd/movdqu patterns): Force one of operands to not be
3430         memory.
3431
3432 2002-02-03  Roger Sayle  <roger@eyesopen.com>
3433
3434         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
3435         takes a single rtx and returns it unmodified.
3436         * hooks.h (hook_rtx_rtx_identity): Prototype here.
3437         * target.h (struct gcc_target): Add "delegitimize_address"
3438         field to target structure.
3439         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
3440         for delegitimize_address target using hook_rtx_rtx_identity.
3441         (TARGET_INITIALIZER): Initialize delegitimize_address field
3442         using TARGET_DELEGITIMIZE_ADDRESS macro.
3443         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
3444         extensions of constant pool references.  Use delegitimize_address
3445         to undo the obfuscation of "-fpic".
3446         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
3447
3448         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
3449         i386_simplify_dwarf_addr.
3450         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
3451         (maybe_get_pool_constant): Likewise.
3452
3453 Mon Feb  3 16:01:17 CET 2003  Jan Hubicka  <jh@suse.cz>
3454
3455         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
3456
3457 Mon Feb  3 01:30:11 CET 2003  Jan Hubicka  <jh@suse.cz>
3458
3459         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
3460
3461 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3462
3463         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
3464         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
3465
3466 2003-02-02  Andreas Schwab  <schwab@suse.de>
3467
3468         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
3469
3470 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
3471
3472         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
3473         (epilogue_insns): Likewise.
3474
3475 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3476
3477         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
3478
3479 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3480
3481         * pa-protos.h (attr_length_millicode_call): Remove second argument.
3482         (attr_length_indirect_call, attr_length_indirect_call,
3483         attr_length_save_restore_dltp): New prototypes.
3484         * pa.c (attr_length_millicode_call): Remove second argument.  Check
3485         INSN_ADDRESSES_SET_P in distance calculation.
3486         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
3487         INSN_ADDRESSES.
3488         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
3489         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
3490         Call attr_length_call directly.
3491         (attr_length_indirect_call, output_indirect_call,
3492         attr_length_save_restore_dltp): New functions.
3493         * pa.md (attr_length_millicode_call): Drop second argument from all
3494         patterns.
3495         (return_internal_pic): Delete.
3496         (return_external_pic): Remove use of PIC register and pic operand and
3497         flag checks.
3498         (epilogue): Use return_internal for both normal and pic code.
3499         (call, call_value): Emit new 32-bit pic patterns for symref and
3500         indirect calls.  Remove uses for arg pointer and pic register.
3501         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
3502         call_reg_pic_post_reload, call_val_symref_pic,
3503         call_val_symref_pic_post_reload, call_val_reg_pic,
3504         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
3505         Implement define_split and define_peephole2 patterns for pre reload
3506         patterns.
3507         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
3508         call_value_internal_reg_64bit): Shorten names.
3509         (all call patterns): Explicitly indicate registers used and clobbered.
3510         Use attr_length_indirect_call and attr_length_save_restore_dltp for
3511         attribute length calculation.  Move code generation for indirect calls
3512         to output_indirect_call.
3513         (sibcall, sibcall_value): Don't restore PIC register.
3514         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
3515         register retore.
3516
3517 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3518
3519         * doc/install.texi (Testing): Simplify and compress instructions
3520         concerning Dejagnu.
3521
3522 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3523
3524         * collect2.c (pexecute_pid): Rename to pid.
3525         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
3526         pid.
3527
3528 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
3529
3530         * doc/extend.texi (Function Attributes): Remove documentation
3531         for PowerPC Windows NT function attributes..
3532
3533 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
3534
3535         * dwarf2out.c (gen_type_die): Check for typedefs before calling
3536         for TYPE_MAIN_VARIANT.
3537
3538 2003-02-01  Richard Henderson  <rth@redhat.com>
3539
3540         * libgcc2.c: Include auto-host.h.
3541         (ATTRIBUTE_HIDDEN): New.
3542         (__clz_tab): Don't declare here for clz and ctz.
3543         (__clzsi2, __clzdi2): Use count_leading_zeros.
3544         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
3545         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
3546         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
3547         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
3548
3549 2003-02-01  Richard Henderson  <rth@redhat.com>
3550
3551         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
3552         to the conditional.
3553         (ashlsi3_1_zext splitter): Likewise.
3554
3555 2003-02-01  Richard Henderson  <rth@redhat.com>
3556
3557         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
3558         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
3559         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
3560         return type to Wtype.
3561
3562         * libgcc-std.ver (GCC_3.4): Fix inheritance.
3563
3564         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
3565         expander input constraint.
3566
3567 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
3568
3569         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
3570         OTI_parity.
3571         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
3572         * optabs.c (widen_clz, expand_parity): New.
3573         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
3574         for libcalls to clz, ctz, popcount, and parity.
3575         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
3576         parity_optab, and set up libfunc handlers.
3577         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
3578         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
3579         __popcount_tab): New.
3580         * libgcc2.h: Declare them.
3581         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
3582         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
3583         and parity_optab.
3584         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
3585         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
3586         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
3587         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
3588         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
3589         BUILT_IN_PARITYLL): New.
3590         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
3591         and add optab argument.
3592         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
3593         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
3594         * expr.c (expand_expr): Handle them.
3595         * fold-const.c (tree_expr_nonnegative_p): Likewise.
3596         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
3597         * reload1.c (eliminate_regs): Handle them.
3598         (elimination_effects): Likewise.
3599         * function.c (instantiate_virtual_regs_1): Likewise
3600         * genattrtab.c (check_attr_value): Likewise.
3601         * simplify-rtx.c (simplify_unary_operation): Likewise.
3602         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
3603         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
3604         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
3605         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
3606         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
3607         __builtin_arm_clz.
3608         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
3609         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
3610         * doc/extend.texi (Other Builtins): Add new builtins.
3611         * doc/md.texi (Standard Names): Add new patterns.
3612
3613 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
3614
3615         * reload.c: Revert 2003-01-31 change.
3616
3617 Sat Feb  1 14:14:40 CET 2003  Jan Hubicka  <jh@suse.cz>
3618
3619         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
3620
3621 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
3622
3623         * flags.h (flag_volatile): Remove declaration.
3624         (flag_volatile_global, flag_volatile_static): Likewise.
3625         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
3626         * toplev.c (flag_volatile): Remove definition.
3627         (flag_volatile_global, flag_volatile_static): Likewise.
3628         (f_options): Remove corresponding entries here.
3629         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
3630         or flag_volatile_static.
3631         * doc/invoke.texi: Remove documentation of -fvolatile,
3632         -fvolatile-global and -fvolatile-static.
3633
3634 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3635
3636         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
3637         updating of total_code_bytes from prologue to epilogue.
3638
3639 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
3640
3641         * reload.c (find_reloads): Do not use the mode specified in the insn
3642         pattern as reload mode for address operands.  Do not generate optional
3643         reloads for operands where a mandatory reload was already pushed.
3644         Generate optional reloads only in the final pass though find_reloads.
3645         (have_replacement_p): New function.
3646
3647 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3648
3649         * doc/install.texi (Testing): Remove a reference to our obsolete
3650         /testresults web pages and strip redundant information concerning
3651         test results.
3652         (Binaries): Refer to Microsoft Windows instead of listing all
3653         possible variants.
3654
3655 Sat Feb  1 00:28:30 CET 2003  Jan Hubicka  <jh@suse.cz>
3656
3657         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
3658         RTL chain.
3659
3660         * combine.c (simplify_set): Reverse order of ragumetns to
3661         REG_CANNOT_CHANGE_MODE_P
3662         * df.c (df_def_record_1): Likewise.
3663         * recog.c (register_operand): Likewise.
3664         * simplify-rtx.c (simplify_subreg): Likewise.
3665         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
3666         CANNOT_CHANGE_MODE_CLASS.
3667         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
3668         Likewise.
3669         * reload.c (push_reload): Likewise.
3670         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3671         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3672         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3673         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
3674         * mips.c (mips_cannot_change_mode_class): Update.
3675         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3676         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3677         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3678         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3679         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
3680         * sh.c (sh_cannot_change_mode_class): Update.
3681         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
3682         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
3683
3684 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
3685
3686         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
3687         change to LINK_COMMAND_SPEC in gcc.c.
3688
3689 2003-01-31  Jan Hubicka  <jh@suse.cz>
3690
3691         PR c/9506
3692         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
3693
3694 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3695
3696         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
3697         duplicated code.
3698
3699 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
3700
3701         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
3702         (BINFO_ELTS): New #define.
3703         * stor-layout.c (finalize_record_size): Don't set them.
3704         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
3705         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
3706         (BINFO_LANG_ELTS): New #define.
3707         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
3708         * java/class.c (make_class): Use BINFO_ELTS.
3709         (set_super_info): Likewse.
3710         (add_interface_do): Likewise.
3711         * objc/objc-act.c (start_class): Use BINFO_ELTS.
3712
3713 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
3714
3715         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
3716         (times): Don't ever declare if not HAVE_TIMES.
3717         (clock): Don't ever declare if not HAVE_CLOCK.
3718
3719 2003-01-30  Richard Henderson  <rth@redhat.com>
3720
3721         * flow.c (update_life_info): Zap life info after cleanup_cfg.
3722         (regno_uninitialized): Use correct live at function entry set.
3723         (regno_clobbered_at_setjmp): Likewise.
3724
3725         * expr.c (store_expr): Promote all MEM intermediates to regs.
3726
3727 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
3728
3729         * config/arm/arm.c: Fix comment typos.
3730         * config/arm/arm.h: Likewise.
3731         * config/arm/netbsd-elf.h: Likewise.
3732         * config/arm/netbsd.h: Likewise.
3733
3734 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
3735
3736         * gengtype.c (struct walk_type_data): Add needs_cast_p.
3737         (walk_type): Set needs_cast_p in walk_type_data.
3738         (write_types_process_field): Supply casts when required to suppress
3739         warnings.
3740         (write_root): Cast gt_pch_n_S to suppress warning.
3741         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
3742         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
3743         when they might exist.
3744         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
3745         insn-conditions.o, and rs6000.o.
3746
3747 2003-01-30  Richard Henderson  <rth@redhat.com>
3748
3749         * ggc-page.c (G.context_depth_allocations): New.
3750         (G.context_depth_collections): New.
3751         (alloc_page): Set G.context_depth_allocations.
3752         (ggc_collect): Set G.context_depth_collections.
3753         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
3754         (ggc_pop_context): Early exit for no allocations or collections.
3755
3756 2003-01-30  Richard Henderson  <rth@redhat.com>
3757
3758         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
3759
3760 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
3761
3762         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
3763         size, the link register is always saved if any other register is
3764         saved.
3765
3766 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
3767
3768         * config/h8300/h8300-protos.h: Update the prototype for
3769         compute_plussi_cc.
3770         (cpp_reader): Declare before it is used.
3771         * config/h8300/h8300.c (compute_plussi_cc): Change the return
3772         type to int.
3773         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
3774         see an unknown H8 variant.
3775
3776 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
3777
3778         PR target/9316
3779         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
3780         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
3781         * config/rs6000/t-rtems: New file. multilib variants to match OS.
3782         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
3783         rs6000/t-ppcgas so we get the desired multilibs.
3784
3785 2003-01-30  Nick Clifton  <nickc@redhat.com>
3786
3787         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
3788         when popping saved IP register off the stack.
3789
3790 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
3791
3792         * config/rs6000/aix43.h: Fix comment typos.
3793         * config/rs6000/aix51.h: Likewise.
3794         * config/rs6000/aix52.h: Likewise.
3795         * config/rs6000/altivec.h: Likewise.
3796         * config/rs6000/rs6000.c: Likewise.
3797         * config/rs6000/rs6000.h: Likewise.
3798         * config/rs6000/rs6000.md: Likewise.
3799         * config/rs6000/spe.md: Likewise.
3800
3801 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
3802
3803         * c-common.c (builtin_define_float_constants): Define
3804         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
3805
3806 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
3807
3808         * config/sh/lib1funcs.asm: Fix comment typos.
3809         * config/sh/linux.h: Likewise.
3810         * config/sh/sh.c: Likewise.
3811         * config/sh/sh.md: Likewise.
3812
3813 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
3814
3815         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
3816
3817 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
3818
3819         * config/fp-bit.h (__make_dp): Declare if TMODES.
3820
3821 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
3822
3823         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
3824         general_operand_src and general_operand_dst.
3825
3826 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
3827
3828         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
3829         Return true for variable sized types.
3830         (rs6000_va_arg): Handle variable sized types passed by reference
3831         on non-SVR4 ABI.
3832
3833 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
3834
3835         * arm.c (arm_legtimize_address): New function.
3836         * arm-protos.h (arm_legtimize_address): Add prototype.
3837         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
3838         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
3839         do ... while (0)
3840
3841 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
3842
3843         PR bootstrap/9296
3844         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
3845         depended on it being defined until now.
3846
3847 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
3848
3849         PR target/9295
3850         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
3851         RTEMS code knows which C++ initialization style the toolset
3852         configuration is using.
3853
3854 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
3855
3856         PR bootstrap/9293
3857         * config/m68k/t-crtstuff: Replace spaces with tabs, add
3858          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
3859
3860 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
3861
3862         PR bootstrap/9292
3863         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
3864         RTEMS threads.
3865         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
3866
3867 2003-01-29  Nick Clifton  <nickc@redhat.com>
3868
3869         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
3870         not $(srcdir).
3871
3872 2003-01-29  Andrew Haley  <aph@redhat.com>
3873
3874         * tree-inline.c (walk_tree): Add CHAR_TYPE.
3875
3876 Wed Jan 29 10:26:12 CET 2003  Jan Hubicka  <jh@suse.cz>
3877
3878         * i386.md (subdi3_carry_rex64): Fix typo.
3879
3880 2003-01-28  Stan Shebs  <shebs@apple.com>
3881
3882         * coretypes.h (cpp_reader): Forward declare struct.
3883         * c-pragma.h (cpp_reader): Remove forward declaration.
3884         * hashtable.h (cpp_reader): Likewise.
3885         * scan.h (cpp_reader): Likewise.
3886         * tree.h (cpp_reader): Likewise.
3887         * config/darwin-protos.h (cpp_reader): Likewise.
3888         * config/arm/arm-protos.h (cpp_reader): Likewise.
3889         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
3890         struct cpp_reader in prototypes.
3891
3892 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
3893
3894         * doc/install.texi: Add documentation for installation into
3895         tooldirs and with DESTDIR.
3896
3897 2003-01-28  Richard Henderson  <rth@redhat.com>
3898
3899         * config.gcc (ia64*-*-aix*): Remove.
3900         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
3901         * config/ia64/unwind-aix.c: Remove file.
3902
3903 2003-01-28  Andreas Schwab  <schwab@suse.de>
3904
3905         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
3906         register.
3907         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
3908         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
3909         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
3910         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
3911         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
3912         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
3913         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
3914
3915 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
3916
3917         * combine.c (nonzero_bits): Fix check for negative divide operands.
3918
3919 2003-01-28  Richard Henderson  <rth@redhat.com>
3920
3921         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
3922         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
3923
3924 2003-01-28  Richard Henderson  <rth@redhat.com>
3925
3926         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
3927
3928         * config/cris/cris.c (cris_address_cost): Make static.
3929         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
3930         * config/cris/cris.h (ADDRESS_COST): Remove.
3931         * config/cris/cris-protos.h: Update.
3932
3933 2003-01-23  Mike Stump  <mrs@apple.com>
3934
3935         * regclass.c (init_reg_autoinc): New function.
3936         (regclass): Move initialization of forbidden_inc_dec_class from
3937         here...
3938         (init_regs): to here.  Avoids reinitialization for each function,
3939         saving compilation time.
3940
3941 2003-01-28  Jason Merrill  <jason@redhat.com>
3942
3943         * cpplib.h (struct cpp_options): Add warn_deprecated field.
3944         * cppinit.c (cpp_create_reader): Turn it on by default.
3945         * c-opts.c (c_common_decode_option): Set it.
3946         * cpplib.c (do_pragma_once): Only complain about #pragma once
3947         if warn_deprecated is set.
3948
3949 2003-01-28  Dale Johannesen  <dalej@apple.com>
3950
3951         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
3952         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
3953         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
3954
3955 2003-01-28  Richard Henderson  <rth@redhat.com>
3956
3957         * target.h (targetm.address_cost): New.
3958         * target-def.h (TARGET_ADDRESS_COST): New.
3959         (TARGET_RTX_COSTS): Uncomment.  Oops.
3960         * cse.c (address_cost): Use new target hook.
3961         (default_address_cost): New.
3962         * output.h (default_address_cost): Declare.
3963         * hooks.c (hook_int_rtx_0): New.
3964         * hooks.h (hook_int_rtx_0): Declare.
3965         * loop.c (combine_givs_p): Remove if 0 code.
3966         * system.h (ADDRESS_COST): Poison.
3967
3968         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
3969         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
3970         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
3971         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
3972         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
3973         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
3974         config/xtensa/xtensa.c, config/xtensa/xtensa.h
3975         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
3976         (ADDRESS_COST): Remove.
3977
3978         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
3979         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
3980         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
3981         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
3982         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
3983         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
3984         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
3985         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
3986         config/mips/mips.c, config/mips/mips.h,
3987         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
3988         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
3989         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
3990         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
3991         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
3992         config/vax/vax.c, config/vax/vax.h
3993         (foo_address_cost): Make static.
3994         (TARGET_ADDRESS_COST): New.
3995         (ADDRESS_COST): Remove.
3996
3997         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
3998         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
3999         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
4000         config/stormy16/stormy16.h
4001         (ADDRESS_COST): Move code ...
4002         (foo_address_cost): ... here.
4003         (TARGET_ADDRESS_COST): New.
4004
4005         * config/m32r/m32r.c (m32r_address_cost): Remove.
4006         * config/m32r/m32r-protos.h: Update.
4007
4008         * config/mmix/mmix.c (mmix_address_cost): Remove.
4009         * config/mmix/mmix-protos.h: Update.
4010
4011         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
4012         mn10300_address_cost; move unsig allocation ...
4013         (mn10300_address_cost): ... here.
4014         (TARGET_ADDRESS_COST): New.
4015         * config/mn10300/mn10300-protos.h: Update.
4016         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
4017
4018         * doc/tm.texi: Update.
4019
4020 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
4021
4022         * haifa-sched.c (schedule_insn): Return necessary cycle advance
4023         after issuing the insn.
4024         (rank_for_schedule): Make a insn with /S the highest priority
4025         insn.
4026         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
4027         (choose_ready): Check SCHED_GROUP_P.
4028         (schedule_block): Advance cycle after issuing insn if it is
4029         necessary.  Don't reorder insns if there is an insn with /S.
4030         (set_priorities): Ignore schedule groups.
4031
4032         * sched-deps.c (remove_dependence, group_leader): Remove the
4033         functions.
4034         (add_dependence): Ignore schedule groups.
4035         (set_sched_group_p): Don't make copy of dependencies from previous
4036         insn of the schedule group.  Add anti-dependency to the previous
4037         insn of the schedule group.
4038         (compute_forward_dependences): Ignore schedule groups.
4039
4040         * sched-ebb.c (init_ready_list): Ignore schedule groups.
4041
4042         * sched-rgn.c (init_ready_list): Ditto.
4043         (can_schedule_ready_p): Ditto.
4044
4045 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
4046
4047         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
4048         register to another one.
4049
4050 2003-01-28  Richard Henderson  <rth@redhat.com>
4051
4052         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
4053
4054 2003-01-28  Roger Sayle  <roger@eyesopen.com>
4055
4056         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
4057
4058 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
4059
4060         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
4061         class contains a floating-point register, return the size of the
4062         mode in half words.
4063
4064 Tue Jan 28 12:15:13 CET 2003  Jan Hubicka  <jh@suse.cz>
4065
4066         * i386.c (ix86_carry_flag_operator):  New predicate.
4067         (fcmov_operator): Fix whitespace.
4068         (ix86_expand_carry_flag_compare):  Deal with floating point.
4069         (ix86_expand_int_movcc): Deal with fp; update insn expansion
4070         (ix86_expand_int_addcc): Likewise.
4071         (ix86_expand_strlensi_unroll_1): likewsie.
4072         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
4073         * i386.md (add?i_carry_rex64): Use new predicate.
4074         (sub?i3_carry_rex64): Likewise.
4075         (x86_mov?icc_0_m1*): Likewise.
4076
4077 2003-01-28  Andreas Schwab  <schwab@suse.de>
4078
4079         * cfgloopmanip.c (create_preheader): Initialize src to avoid
4080         warning.
4081
4082         * expmed.c (emit_store_flag): Fix cast to avoid sign
4083         comparison warning.
4084
4085         * combine.c (force_to_mode): Add cast to fix warning when
4086         STORE_FLAG_VALUE is negative.
4087
4088 2003-01-27  Richard Henderson  <rth@redhat.com>
4089
4090         * Makefile.in (cse.o): Depend on TARGET_H.
4091         * cse.c (rtx_cost): Use targetm.rtx_costs.
4092         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
4093         * doc/tm.texi: Update.
4094
4095         * target.h (targetm.rtx_costs): New.
4096         * target-def.h (TARGET_RTX_COSTS): New.
4097         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
4098         * hooks.h: Update.
4099
4100         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
4101         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
4102         * config/alpha/alpha.h (PROCESSOR_MAX): New.
4103         (CONST_COSTS, RTX_COSTS): Remove.
4104
4105         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
4106         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
4107         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
4108         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
4109         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
4110         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
4111         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
4112         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
4113         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
4114         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
4115         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
4116         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
4117         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
4118         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
4119         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
4120         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
4121         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
4122         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
4123         config/v850/v850.c, config/v850/v850.h,
4124         config/xtensa/xtensa.c, config/xtensa/xtensa.h
4125         (CONST_COSTS, RTX_COSTS): Move code ...
4126         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
4127
4128         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
4129         (arm_rtx_costs, TARGET_RTX_COSTS): New.
4130         * config/arm/arm-protos.h: Update.
4131         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
4132
4133         * config/avr/avr.h (CONST_COSTS): Move code ...
4134         * config/avr/avr.c (avr_rtx_costs): ... here.
4135         (default_rtx_costs): Make static.
4136         * config/avr/avr-protos.h: Update.
4137
4138         * config/h8300/h8300.c (const_costs): Make static.
4139         (h8300_and_costs, h8300_shift_costs): Likewise.
4140         * config/h8300/h8300-protos.h: Update.
4141
4142         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
4143         (CONST_COSTS): Move code ...
4144         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
4145         default_rtx_costs; update for signature change.
4146         * config/ip2k/ip2k-protos.h: Update.
4147
4148         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
4149         (CONST_COSTS): Move code ...
4150         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
4151         (TARGET_RTX_COSTS): New.
4152         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
4153         * config/m68hc11/m68hc11-protos.h: Update.
4154
4155         * config/m68k/m68k.c (const_int_cost): Make static.
4156         * config/m68k/m68k-protos.h: Update.
4157
4158         * config/mcore/mcore.c (mcore_const_costs): Make static.
4159         (mcore_and_cost, mcore_ior_cost): Likewise.
4160         * config/mcore/mcore-protos.h: Update.
4161
4162         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
4163         (mmix_rtx_cost_recalculated): Remove.
4164         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
4165         * config/mmix/mmix-protos.h: Update.
4166
4167         * config/sh/sh.c (shiftcosts): Make static.
4168         (addsubcosts, andcosts, multcosts): Likewise.
4169         * config/sh/sh-protos.h: Update.
4170
4171         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
4172         (sparc_rtx_costs): Make static; update for change in signature.
4173         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
4174         * config/sparc/sparc-protos.h: Update.
4175
4176         * config/v850/v850.c (const_costs): Make static.
4177         * config/v850/v850-protos.h: Update.
4178
4179         * config/vax/vax.h (RTX_COSTS): Remove.
4180         (CONST_COSTS): Move code ...
4181         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
4182         from vax_rtx_cost.
4183         (vax_rtx_costs, TARGET_RTX_COSTS): New.
4184
4185 2003-01-27  Richard Henderson  <rth@redhat.com>
4186
4187         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
4188         * config/vax/vax-protos.h: Update.  Really.
4189
4190 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
4191
4192         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
4193         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
4194         zero if no hardware floating point.
4195         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
4196         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
4197         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
4198         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
4199         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
4200         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
4201         even FP registers on N32 and N64.
4202         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
4203         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
4204         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
4205         even-register-like alignment to 128-bit arguments.
4206         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
4207         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
4208         on N32 or N64.
4209         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
4210         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
4211         (TPBIT): Set to tp-bit.c.
4212         (tp-bit.c): Create out of fp-bit.c.
4213
4214 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4215
4216         * c-parse.in: Remove '%expect 32' directive in objc mode.
4217
4218 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
4219
4220         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
4221         (LIBGCOV): New variable.
4222         (libgcc.mk): Add LIBGCOV.
4223         (LIBGCC_DEPS): Add libgcov.c.
4224         (libgcov.a): New target.
4225         (clean): Remove libgcov.a.
4226         (install-libgcc): Do libgcov too.
4227         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
4228         with libgcov.a.
4229         * libgcc2.c (L_gcov): Move into ...
4230         * libgcov.c: ... here. New file.
4231         * mklibgcc.in: Add libgcov rules.
4232         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
4233
4234         * doc/invoke.texi (profile-arcs, test-coverage): Update and
4235         clarify.
4236
4237         * profile.c (index_counts_file): Remove duplicate check for open file.
4238
4239 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
4240
4241         * gcc/doc/invoke.texi (Optimization Options): Group together
4242         optional and experimental flags.  Move trapv and bounds-check
4243         out of this section.  Group floating point flags together.
4244         (Code Gen Options): Move trapv and bounds-check to here.
4245
4246 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
4247
4248         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
4249
4250 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
4251
4252         PR optimization/9090
4253         * function.c (purge_addressof_1): After pushing an addressed register
4254         onto the stack, simplify the result.
4255
4256 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4257
4258         * doc/extend.texi: Fix typo.
4259
4260 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4261
4262         * doc/cppopts.texi: Fix typo.
4263         * doc/objc.texi: Likewise.
4264         * doc/passes.texi: Likewise.
4265
4266 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
4267
4268         * real.c (ibm_extended_format): Add 53 to minimum exponent.
4269         (encode_ibm_extended): Adjust.
4270
4271 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
4272
4273         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
4274         timevar_id enumerations.
4275
4276 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
4277
4278         * combine.c: Fix formatting.
4279
4280 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
4281
4282         * doc/gccint.texi: Update the copyright.
4283
4284 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
4285
4286         * doc/cpp.texi: Fix typos.
4287         * doc/extend.texi: Likewise.
4288         * doc/gty.texi: Likewise.
4289         * doc/install.texi: Likewise.
4290         * doc/passes.texi: Likewise.
4291         * doc/rtl.texi: Likewise.
4292         * doc/tm.texi: Likewise.
4293
4294 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
4295
4296         * config/ia64/fde-glibc.c: Fix comment typos.
4297         * config/ia64/hpux.h: Likewise.
4298         * config/ia64/ia64.c: Likewise.
4299         * config/ia64/ia64.h: Likewise.
4300         * config/ia64/unwind-ia64.c: Likewise.
4301
4302 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
4303
4304         * config/i386/i386-modes.def: Fix comment typos.
4305         * config/i386/i386.c: Likewise.
4306         * config/i386/i386.md: Likewise.
4307
4308 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4309
4310         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
4311         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
4312         ASM_FINISH_DECLARE_OBJECT before defining it.
4313         * toplev.c (rest_of_decl_compilation):  Don't define
4314         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
4315         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
4316         parameters for DWARF2 targets because they _are_ used.
4317
4318 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
4319
4320         * fp-bit.h: Define macros for TFmode floating-point constants
4321         in IBM-extended TFmode types.
4322         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
4323         widths.
4324         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
4325         TFmode type.
4326
4327         * config/fp-bit.h: Define macros for TFmode floating-point
4328         constants in IEEE quad TFmode type.  Declare functions according
4329         to L_ macros.
4330         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
4331         (TFtype, TItype, UTItype): Define if TMODES is defined.
4332         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
4333         (F_T_BITOFF, D_T_BITOFF): Define.
4334         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
4335         guaranteed to be wide enough.
4336         * config/fp-bit.c: Check for L_ macros for tf functions.
4337         (__thenan_tf): New.
4338         (nan): Adjust.
4339         (pack_d, unpack_d): Support IEEE 854 quad type.
4340         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
4341         from FRAC_NBITS, FRAC_BITS and NGARDS.
4342         (usi_to_float): Cast constants to be shifted to fractype
4343         instead of assuming long long is wide enough.
4344         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
4345
4346 2003-01-26  Andreas Jaeger  <aj@suse.de>
4347
4348         * df.c: Remove prototype of unused function df_regno_rtl_debug.
4349
4350 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
4351
4352         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
4353         (DBBIT_FUNCS): Added _df_to_tf.
4354         (TPBIT_FUNCS): New.
4355         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
4356         (LIBGCC_DEPS): Added TPBIT.
4357         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
4358
4359         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
4360         been able to move the result to target.
4361
4362         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
4363         for the appropriate mode.
4364
4365         * calls.c (emit_library_call_value_1): Handle return values
4366         in a PARALLEL.
4367
4368         * rtl.c (get_mode_alignment): Moved to...
4369         * stor-layout.c: ... here.
4370
4371         * print-rtl.c (print_rtx): Don't print MEM details in
4372         GENERATOR_FILEs.
4373
4374 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
4375
4376         * df.h: Update comments, tidy formatting.
4377         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
4378         REVERSE, UNION, INTERSECTION.  All uses updated.
4379         (OLD_DF_INTERFACE): Remove.
4380         (struct insn_info): Remove commented out insn field.
4381         * df.c: Update comments, tidy formatting.
4382         (df_def_table_realloc): Remove.
4383
4384
4385 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
4386
4387         * calls.c (save_fixed_argument_area): Tidy.
4388         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
4389         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
4390         call chain loop at 1 if !try_tail_call.  Formatting.
4391         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
4392         Use save_fixed_argument_area and restore_fixed_argument_area.
4393
4394 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
4395
4396         * df.c (df_uses_record): Handle CC0.
4397
4398 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
4399
4400         * reload.c (maybe_memory_address_p): New function.
4401         (find_reloads_address): Use it instead of memory_address_p.
4402
4403 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
4404
4405         * final.c (shorten_branches): Align the address of code label
4406         when computing initial lengths and addresses.
4407
4408 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4409
4410         * config/m68hc11/m68hc11.md: Fix a comment typo.
4411
4412 2003-01-25  Andreas Jaeger  <aj@suse.de>
4413
4414         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
4415         TARGET_MACHO.
4416
4417 2003-01-25  Roger Sayle  <roger@eyesopen.com>
4418
4419         * gcse.c (bypass_last_basic_block): New global variable.
4420         (bypass_block):  Use redirect_edge_and_branch_force to redirect
4421         fall-through edges.  Use bypass_last_basic_block to determine
4422         which blocks have valid PRE information.
4423         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
4424
4425 Sat Jan 25 22:31:59 CET 2003  Jan Hubicka  <jh@suse.cz>
4426
4427         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
4428
4429 Sat Jan 25 21:04:33 CET 2003  Jan Hubicka  <jh@suse.cz>
4430                               Eric Botcazou <ebotcazou@libertysurf.fr>
4431         PR opt/8492
4432         * gcse.c (one_cprop_pass): Delete unreachable blocks.
4433
4434 2003-01-25  Richard Henderson  <rth@redhat.com>
4435
4436         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
4437         from ia64_aix_select_rtx_section.
4438         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
4439         instead of saving and restoring flag_pic.
4440         (ia64_rwreloc_unique_section): Similarly.
4441         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
4442         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
4443         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
4444         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
4445
4446 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4447
4448         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
4449         comment.
4450
4451 2002-01-25  Richard Henderson  <rth@redhat.com>
4452
4453         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
4454
4455 2002-01-25  Kelley Cook <kelleycook@comcast.net>
4456
4457         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
4458
4459 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
4460
4461         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
4462         type for bitmaps.  Use unsigned long.
4463         (nBITMAP_WORD_BITS): New macro.
4464         (BITMAP_WORD_BITS): New macro.
4465         (rest of file): Use it.
4466         * bitmap.c: Use it.
4467
4468 2003-01-25  Richard Henderson  <rth@redhat.com>
4469
4470         2002-02-19  Robert Lipe  <robertlipe@usa.net>
4471         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
4472
4473 2002-01-25  Roger Sayle  <roger@eyesopen.com>
4474
4475         * builtins.c (purge_builtin_constant_p): Scan insn stream
4476         sequentially rather than by basic block.
4477         * function.c (purge_addressof): Simplify test with INSN_P.
4478
4479 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4480
4481         * combine.c (simplify_comparison, case AND): Remove a redundant test.
4482
4483 2002-01-25  Roger Sayle  <roger@eyesopen.com>
4484
4485         * function.h (struct function): New field calls_constant_p.
4486         (current_function_calls_constant_p): New macro for above.
4487         * function.c (prepare_function_start): Initialize calls_eh_return
4488         and calls_constant_p.
4489         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
4490         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
4491         when the current_function_calls_constant_p.
4492         * integrate.c (expand_inline_function): Set calls_constant_p if
4493         the function being inlined has calls_constant_p set.
4494
4495 2002-01-25  Roger Sayle  <roger@eyesopen.com>
4496
4497         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
4498         optimizing, even if flag_gcse is true.
4499         * toplev.c (rest_of_compilation): purge_builtin_constant_p
4500         only needs to be called when "optimize > 0 && flag_gcse".
4501
4502 2003-01-25  Roger Sayle  <roger@eyesopen.com>
4503
4504         * stmt.c (emit_case_bit_tests): New routine to implement suitable
4505         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
4506         (case_bit_test_cmp): New comparison function for "qsort" to order
4507         case_bit_tests by decreasing number of destination nodes.
4508         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
4509         (expand_end_case_type): Use emit_case_bit_tests to implement
4510         suitable switch statments.
4511         (CASE_USE_BIT_TESTS): New target macro to disable the above.
4512         * Makefile.in (stmt.o): Add dependency on optab.h.
4513         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
4514
4515 2003-01-23  Andreas Schwab  <schwab@suse.de>
4516
4517         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
4518         __do_global_ctors_aux hidden global and don't put it in
4519         .init_array.
4520         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
4521         instead so that it comes first.
4522
4523 Sat Jan 25 16:11:22 CET 2003  Jan Hubicka  <jh@suse.cz>
4524
4525         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
4526         subreg is read/modify.
4527
4528 Sat Jan 25 15:55:08 CET 2003  Jan Hubicka  <jh@suse.cz>
4529
4530         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
4531         do libcall for large blocks.
4532         * i386.md (comi patterns): Set type to ssecomi.
4533         (sse2_unpck?pd): Fix mode of vec_select.
4534
4535         * cse.c: Include except.h
4536         (cse_set_around_loop):  Do not create new basic blocks.
4537         * Makefile.in (cse.o): Add dependnecy on except.h
4538
4539 Sat Jan 25 12:05:17 CET 2003  Jan Hubicka  <jh@suse.cz>
4540
4541         * builtins.c (fold_trunc_transparent_mathfn): New function.
4542         (fold_builtin): Use it.
4543         * convert.c (convert_to_real): Re-enable code to convert
4544         math functions; add support for floor familly functions.
4545
4546 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4547
4548         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
4549         dependencies on coretypes.h and $(TM_H).
4550
4551 Sat Jan 25 11:10:03 CET 2003  Jan Hubicka  <jh@suse.cz>
4552
4553         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
4554
4555 2002-01-24  Stuart Hastings  <stuart@apple.com>
4556
4557         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
4558
4559 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
4560
4561         * config/c4x/c4x.md (UNSPEC_BU): New constants.
4562         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
4563         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
4564         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
4565         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
4566         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
4567         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
4568         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
4569
4570 Fri Jan 24 23:44:12 CET 2003  Jan Hubicka  <jh@suse.cz>
4571
4572         * emit-rtl.c (reg_attrs_htab): New static variable.
4573         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
4574         functions.
4575         (reg_rtx): Do not maintain regno_decl.
4576         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
4577         set_mem_attrs_from_reg): New global function.
4578         (init_emit): Do not initialize regno_decl.
4579         (init_emit_once): initialize reg_attrs_htab.
4580         * final.c (alter_subreg): Do not replace REG by SUBREG.
4581         (gen_mem_expr_from_op): Improve output.
4582         (output_asm_operands): Likewise.
4583         * function.c (assign_params): Do not set REGNO_DECL.
4584         * function.h (struct function): Kill regno_decl.
4585         (REGNO_DECL): Kill.
4586         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
4587         * print_rtl.c (print_rtx): Output REG information.
4588         * regclass.c (reg_scan_mark_refs): Update attrs.
4589         * reload1.c (alter_reg): Likewise.
4590         * simplify_rtx.c (simplify_subreg): Likewise.
4591         * stmt.c (expand_decl): Likewise.
4592         * rtl.def (REG): Add new field.
4593         * rtl.h (struct reg_attrs): New.
4594         (rtunion_def): At rtreg.
4595         (X0MEMATTR): Add checking.
4596         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
4597         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
4598         Declare.
4599         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
4600
4601 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
4602
4603         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
4604         (xtensa_emit_call, print_operand): Fix printf format strings
4605         to avoid compile warnings.
4606         (xtensa_function_prologue, xtensa_function_epilogue): Change type
4607         of "size" argument to HOST_WIDE_INT to fix compile warnings.
4608         * config/xtensa/xtensa-protos.h
4609         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
4610
4611 Fri Jan 24 23:03:32 CET 2003  Jan Hubicka  <jh@suse.cz>
4612
4613         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
4614         (implicit_built_in_decls): New global array.
4615         (mathfn_built_in): New global function.
4616         (fold_trunc_transparent_mathfn): New static function
4617         (expand_builtin_strstr, expand_bultin_strchr,
4618         expand_builtin_strpbrk, expand_builtin_strcpy,
4619         expand_builtin_strncpy, expand_bultin_strcmp,
4620         expand_bultin_strncat, expand_builtin_fputs): Use
4621         implicint_built_in_decls.
4622         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
4623         * builtins.def: Fix comments.
4624         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
4625         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
4626         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
4627         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
4628         (DEF_C99_C90RES_BULTIN): New.
4629         (*f, *l builtins): Update.
4630         * c-common.c (DEF_BUILTIN): Initialize implicit array.
4631         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
4632         * convert.c (strip_float_extensions): New global function.
4633         * tree.h (DEF_BUILTIN): Accept 10 arguments.
4634         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
4635         Declare.
4636         * java/builtins.c (define_builtin): Handle implicit.
4637         (DEF_BUILTIN): Update.
4638         * tm.texi (TARGET_C99_FUNCTIONS): Document.
4639         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
4640         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
4641         when using glibc2.
4642
4643 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
4644
4645         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
4646         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
4647         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
4648         * config/xtensa/crti.asm: New file.
4649         * config/xtensa/crtn.asm: New file.
4650         * config/xtensa/t-elf: New file.
4651         * config/xtensa/t-linux: New file.
4652         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
4653         Move various CFLAGS settings to new t-elf file.
4654
4655 2003-01-24  Richard Henderson  <rth@redhat.com>
4656
4657         PR optimization/4382
4658         * tree-inline.c (find_builtin_longjmp_call_1): New.
4659         (find_builtin_longjmp_call): New.
4660         (inlinable_function_p): Use it.
4661
4662 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4663
4664         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
4665         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
4666         * config/i386/i386.c (function_arg_pass_by_reference): New.
4667         (ix86_va_arg): Support arguments passed by reference.
4668
4669 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4670
4671         * cfgloopanal.c: New file.
4672         * cfgloopmanip.c: New file.
4673         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
4674         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
4675         cfglayout.o): Add dependency on cfgloop.h.
4676         (cfgloop.o): Add flags.h dependency.
4677         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
4678         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
4679         (struct loop, struct loops, flow_loops_find, flow_loops_update,
4680         flow_loops_free, flow_loops_dump, flow_loop_dump,
4681         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
4682         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
4683         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
4684         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
4685         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
4686         find_common_loop, verify_loop_structure): Declarations moved to ...
4687         * cfgloop.h: New file.
4688         * bb-reorder.c (reorder_basic_blocks): Modified.
4689         * cfglayout.c: Include cfgloop.h.
4690         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
4691         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
4692         (break_superblocks): New static function.
4693         (cfg_layout_finalize): Use it.
4694         (cfg_layout_split_block): New function.
4695         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
4696         fields.
4697         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
4698         changed.
4699         (cfg_layout_split_block): Declare.
4700         * cfgloop.c: Include cfgloop.h and flags.h.
4701         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
4702         get_loop_body): Avoid signed versus unsigned comparison warnings.
4703         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
4704         loop_latch_edge): Modified.
4705         (verify_loop_structure): Modified to use flags stored in loop structure;
4706         check irreducible loops.
4707         (cancel_loop, cancel_loop_tree): New functions.
4708         (estimate_probability): Use loop analysis code for predictions.
4709         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
4710         warnings.
4711         * doloop.c: Include cfgloop.h.
4712         * loop.c: Include cfgloop.h.
4713         * predict.c: Include cfgloop.h.
4714         * toplev.c: Include cfgloop.h.
4715         * unroll.c: Include cfgloop.h.
4716         * tracer.c (tracer): Modified.
4717
4718 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
4719
4720         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
4721
4722 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
4723
4724         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
4725         * configure: Regenerate.
4726
4727         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
4728         (tls_symbolic_reference_mentioned_p): Add prototype.
4729         (s390_tls_get_offset): Add prototype.
4730         (emit_pic_move): Remove prototype, replace by ...
4731         (emit_symbolic_move): .. this new prototype.
4732
4733         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
4734         (tls_model_chars): New global variable.
4735         (s390_encode_section_info): Encode TLS model.
4736         Use targetm.binds_local_p to check for local symbols.
4737         (s390_strip_name_encoding): New function.
4738         (TARGET_STRIP_NAME_ENCODING): Define.
4739
4740         (get_thread_pointer): New function.
4741         (legitimize_tls_address): New function.
4742         (legitimize_address): Call it.
4743         (emit_pic_move): Remove, replace by ...
4744         (emit_symbolic_move): ... this new function.
4745
4746         (larl_operand): Handle TLS operands.
4747         (legitimate_constant_p): Likewise.
4748         (s390_decompose_address): Likewise.
4749         (s390_cannot_force_const_mem): New function.
4750         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4751
4752         (s390_output_symbolic_const): Handle TLS unspecs.
4753         (print_operand): New code 'J'.
4754         (machine_function): Add struct member 'some_ld_name'.
4755         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
4756
4757         (enum s390_builtin): New type.
4758         (code_for_builtin_64, code_for_builtin_31): New global variables.
4759         (s390_init_builtins, s390_expand_builtin): New functions.
4760         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4761
4762         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
4763         (ASM_OUTPUT_LABELREF): Define.
4764         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
4765
4766         * config/s390/s390.md: Define TLS UNSPEC constants.
4767         ("movdi", "movsi"): Handle TLS operands.
4768         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
4769         ("*tls_load_64", "*tls_load_31"): New insns.
4770         ("call_value_tls", "call_value_tls_exp"): New expanders.
4771         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
4772         "bas_tls_64", "bas_tls_31"): New insns.
4773
4774 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
4775
4776         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
4777         spe ABI is configured, if requested.
4778
4779 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4780
4781         * doc/passes.texi: Fix typo.
4782
4783 2003-01-24  Andreas Schwab  <schwab@suse.de>
4784
4785         * stor-layout.c (excess_unit_span): Only define if used.
4786
4787 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
4788
4789         * gcc/doc/invoke.texi (Optimization Options): List -O levels
4790         for each optimization flag.
4791
4792 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
4793
4794         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
4795
4796 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4797
4798         * doc/bugreport.texi: Use @command instead of @code for commands.
4799         * doc/collect2.texi: Likewise.
4800         * doc/headerdirs.texi: Likewise.
4801         * doc/invoke.texi: Likewise.
4802         * doc/standards.texi: Likewise.
4803         * doc/tm.texi: Likewise.
4804         * doc/trouble.texi: Likewise.
4805
4806 2003-01-24  Nick Clifton  <nickc@redhat.com>
4807
4808         * config/arm/arm.c (use_return_insn): Do not use a single return
4809         instruction for interrupt handelrs which have to create a stack
4810         frame.
4811         (arm_expand_prologue): Do not pre-bias the return address of
4812         interrupt handlers which create a stack frame.
4813
4814 2003-01-24  Nick Clifton  <nickc@redhat.com>
4815
4816         * Add sh2e support:
4817
4818         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
4819
4820                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
4821                 med_cbranches.  Fix logic in short_cbranches.
4822
4823         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
4824
4825                 * config/sh/sh.md (delay for cbranch): Don't annul delay
4826                 slots on SH2e.
4827                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
4828                 cbranch with unfilled delay slot on SH2e.
4829                 (output_branch): Fill with a nop the delay slot of a
4830                 branch that required a delay slot but didn't get one.
4831
4832         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
4833
4834                 * doc/invoke.texi (SH options): Document -m2e.
4835                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
4836                 * config/sh/lib1funcs.asm: Likewise.
4837                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
4838                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
4839                 not __sh1__.
4840                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
4841                 SH2E up.
4842                 (SH3E_BIT): Renamed to...
4843                 (SH_E_BIT): ... this.  Replace all uses.
4844                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
4845                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
4846                 (TARGET_SWITCHES): Added 2e.
4847                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
4848                 (processor_type): Added PROCESSOR_SH2E.
4849                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
4850                 TARGET_SH2E, except in sqrtsf2_i.
4851                 (attribute cpu): Added sh2e.
4852                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
4853                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
4854                 * config.gcc: Add sh2e target support.
4855
4856 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
4857
4858         Rename -W to -Wextra.
4859         * c-decl.c:  Update comments.
4860         * c-typeck.c:  Likewise.
4861         * flags.h:  Likewise.
4862         * function.c:  Likewise.
4863         * stmt.c:  Likewise.
4864         * toplev.c:  Update comments.
4865         (W_options):  Add 'extra'.
4866         (display_help):  Remove '-W'.
4867         (decode_W_option):  Special warn_uninitialized treatment in the case
4868         of -Wextra.
4869         * doc/invoke.texi:  Update with new entries.
4870
4871 2003-01-23  Richard Henderson  <rth@redhat.com>
4872
4873         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
4874         in no-else-block case.  Add commentary.
4875
4876 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4877
4878         * configure.in: Revert last change.
4879
4880 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4881
4882         * configure.in: Don't include ansidecl.h in tconfig.h.
4883         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
4884         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
4885         ATTRIBUTE_UNUSED.
4886
4887         * configure: Regenerate.
4888
4889 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4890
4891         PR java/6748
4892         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
4893         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
4894         kernels.
4895
4896 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4897
4898         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
4899
4900 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
4901
4902         * genattrtab.c (write_attr_get): Mark 'insn' paramter
4903         as ATTRIBUTE_UNUSED.
4904
4905 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
4906
4907         * arm.c (thumb_base_register_rtx_p): New function.
4908         (thumb_index_register_rtx_p): New function.
4909         (thumb_legitimate_address_p): New function.
4910         (thumb_legitimate_offset_p): New function.
4911         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
4912         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
4913         definitions.
4914         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
4915         (THUMB_LEGITIMATE_OFFSET): Delte.
4916         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
4917         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
4918         (thumb_legitimate_offset_p): Likewise.
4919
4920 2003-01-23  Andreas Schwab  <schwab@suse.de>
4921
4922         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
4923
4924 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4925
4926         * fixinc/Makefile.in (FL_LIST): Revert last change.
4927
4928 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4929
4930         PR other/7341
4931         * invoke.texi (ftest-coverage): Fix broken cross-reference.
4932         Change @code to @command for gcov command.
4933
4934         * gcc.texi: Adjust title of gcov section.
4935         Adjust copyright.
4936         * gcov.texi: Likewise.
4937
4938 2003-01-22  Roger Sayle  <roger@eyesopen.com>
4939
4940         PR optimization/8423
4941         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
4942         its argument is constant, or 0 if !flag_gcse.
4943         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
4944         if it's argument is constant.
4945         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
4946         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
4947         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
4948         * builtins.c (purge_builtin_constant_p): New function to force
4949         instantiation of any remaining CONSTANT_P_RTX nodes.
4950         * rtl.h (purge_builtin_constant_p): Prototype here.
4951         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
4952         pass after GCSE and before loop.
4953         (flag_gcse): No longer static.
4954         * flags.h (flag_gcse): Prototype here.
4955
4956 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
4957
4958         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
4959         introduced by last change.
4960
4961 2003-01-22  Andreas Schwab  <schwab@suse.de>
4962
4963         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
4964
4965 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
4966
4967         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
4968         request a scratch reg on H8S when the shift count is 8.
4969
4970 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
4971
4972         * config/s390/s390-protos.h (preferred_la_operand_p):
4973         Remove second parameter.
4974         * config/s390/s390.c (preferred_la_operand_p): Likewise.
4975         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
4976         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
4977         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
4978         Add peepholes to transform ADD to LOAD ADDRESS.
4979
4980 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
4981
4982         * arm.c (arm_address_register_rtx_p): New function.
4983         (arm_legitimate_address_p): New function.
4984         (arm_legitimate_index_p): New function.
4985         (legitimize_pic_address): Use arm_legitimate_index_p.
4986         * arm-protos.h (arm_legtimate_address_p): Add prototype.
4987         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
4988         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
4989
4990 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
4991
4992         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
4993         * config/s390/2064.md (define_bypass): Correct 'Load' and
4994         'Load-address' bypass values.
4995
4996 2003-01-22  Andreas Schwab  <schwab@suse.de>
4997
4998         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
4999
5000 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
5001
5002         * genautomata.c (output_internal_insn_latency_func,
5003         output_print_reservation_func): Short circuit when there is no
5004         automaton to generate code for.
5005
5006 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5007
5008         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
5009         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
5010
5011 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
5012
5013         * config/rs6000/rs6000.md: Remove warning.
5014         (builtin_setjmp_receiver): Likewise.
5015         * config/darwin.c (update_stubs): Slightly improve terrible hack
5016         with identifiers.  Add comment pointing out problems with it.
5017         (update_non_lazy_ptrs): Likewise.
5018
5019 2003-01-21  Richard Henderson  <rth@redhat.com>
5020
5021         * dwarf2out.c (lookup_filename): Fix printf format warning.
5022         * system.h (fread_unlocked, fwrite_unlocked): Undef.
5023
5024         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
5025         (fixincl.o-warn, gnu-regex.o-warn): New.
5026         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
5027         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
5028         * fixinc/fixincl.c (process): Fix printf format warning.
5029
5030 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
5031
5032         * dwarf2out (output_file_names): Don't crash if called
5033         with empty file_table.
5034
5035 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
5036
5037         * genautomata.c (output_internal_insn_latency_func): Add
5038         missing break statement to generated code.
5039
5040 2003-01-21  Roger Sayle  <roger@eyesopen.com>
5041
5042         * stmt.c (same_case_target_p): New function to determine whether
5043         two case labels branch to the same target.  Split out from...
5044         (group_case_nodes): ... here.  Use same_case_target_p instead.
5045         (strip_default_case_nodes): Remove explicit case nodes
5046         that branch to the default destination.
5047         (expand_end_case_type): Call strip_default_case_nodes after
5048         group_case_nodes, to simplify the case-list before we count it.
5049         Only generate table_label RTX when actually needed.  Try to share
5050         thiscase->exit_label and thiscase->data.case_stmt.default_label
5051         when a switch has no explicit default case.  Simplify test for
5052         constant index.
5053
5054 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
5055
5056         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
5057         \t.
5058         (*negsf2_h8300hs): Likewise.
5059         (*addsi3_lshiftrt_16_zexthi): Likewise.
5060         (*iorhi3_lshiftrt_8): Likewise.
5061
5062 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
5063
5064         * dwarf2out.c (fde_table_in_use): Mark GTY.
5065         (dwarf2out_cfi_label_num): New variable, marked GTY.
5066         (dwarf2out_cfi_label): Use it instead of static label_num.
5067         * emit-rtl.c (label_num): Mark GTY.
5068
5069 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
5070
5071         * config/h8300/h8300.c (output_plussi): Support H8/300.
5072         (compute_plussi_length): Likewise.
5073         (compute_plussi_cc): Likewise.
5074         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
5075         output assembly instructions.
5076
5077 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5078
5079         * calls.c (fix_unsafe_tree): Prototype.
5080
5081         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
5082         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
5083         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
5084         c-parse.o-warn): Add -Wno-error.
5085         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
5086
5087         * configure.in (--enable-werror): Add new flag.
5088         * doc/install.texi (--enable-werror): Document.
5089         * configure: Regenerate.
5090
5091         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
5092
5093 2003-01-21  Andreas Schwab  <schwab@suse.de>
5094
5095         * genautomata.c (output_internal_insn_latency_func): Fix missing
5096         close paren in output.
5097
5098 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
5099
5100         * genautomata.c: Space savings in generated code:
5101         (output_dfa_insn_code_func): Split out the table-enlargement
5102         path to an out-of-line static function, dfa_insn_code_enlarge.
5103         (output_internal_insn_latency_func): Use a lookup table for the
5104         default latencies.
5105         (output_print_reservation_func): Use a lookup table for the
5106         strings.
5107
5108 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
5109
5110         PR opt/7507
5111         * calls.c (fix_unsafe_tree): Split out from ...
5112         (expand_call): ... here.  Use it on the function address too.
5113
5114 2003-01-20  Richard Henderson  <rth@redhat.com>
5115
5116         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
5117
5118 2003-01-20  Richard Henderson  <rth@redhat.com>
5119
5120         PR opt/7154
5121         * stmt.c (expand_asm_operands): Validize memory operands.
5122
5123 2003-01-20  Richard Henderson  <rth@redhat.com>
5124
5125         PR opt/8848
5126         * ifcvt.c (noce_process_if_block): Correct arguments to
5127         modified_between_p for no-else-block case.
5128
5129 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
5130
5131         * config/h8300/h8300.c (const_costs): Remove a warning.
5132         (output_plussi): Likewise.
5133         (compute_plussi_length): Likewise.
5134         (compute_plussi_cc): Likewise.
5135
5136 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
5137
5138         * config/h8300/h8300.md (addsi_h8300): Remove the last
5139         alternative.
5140
5141 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
5142
5143         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
5144
5145 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5146
5147         * system.h (__NO_STRING_INLINES): Define.
5148
5149 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5150
5151         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
5152         is not a scalar int mode.
5153
5154 2003-01-20  Roger Sayle  <roger@eyesopen.com>
5155
5156         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
5157         insn's notes following a substitution inside a libcall.
5158
5159 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
5160
5161         * configure.in: Check for system-provided 'uchar' type.
5162         * configure, config.in: Regenerate.
5163         * cpphash.h: Only typedef 'uchar' if the system doesn't.
5164
5165 2003-01-20  Richard Henderson  <rth@redhat.com>
5166
5167         * expr.h (MUST_PASS_IN_STACK): Move implementation...
5168         * calls.c (default_must_pass_in_stack): ... here.
5169
5170 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
5171
5172         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
5173
5174         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
5175
5176         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
5177         Wrap up definition of `insn_alts'.
5178
5179         * genattrtab.c (main): Wrap up `insn_alts'.
5180
5181 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5182
5183         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
5184         prototyping.
5185         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
5186
5187         * config.in, configure: Regenerate.
5188
5189 2003-01-20  Nick Clifton  <nickc@redhat.com>
5190
5191         * config/arm/arm.md (sibcall_epilogue): Add an
5192         UNSPEC_PROLOGUE_USE to prevent the link register from being
5193         considered dead.
5194
5195 Mon Jan 20 14:36:23 CET 2003  Jan Hubicka  <jh@suse.cz>
5196
5197         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
5198
5199 2003-01-20  Andreas Schwab  <schwab@suse.de>
5200
5201         * system.h: Don't declare strsignal if the decl test hasn't been
5202         run yet.
5203
5204 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
5205
5206         * config/h8300/h8300.c (notice_update_cc): Don't assume that
5207         recog_data.operands[0] is always associated with cc0.
5208
5209 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
5210
5211         * collect2.c (ldgetname): Expand declaration to prototype.
5212         * read-rtl.c (atoll): Add prototype.
5213         * system.h (strsignal): Also declare if no declaration found.
5214
5215 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
5216
5217         * config.gcc (mips64*-*-linux*): Added.
5218         * config/mips/linux64.h, config/mips/t-linux64: New file.
5219         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
5220         * config/mips/mips.c (override_options): Use it.
5221         * config/mips/mips.h (TARGET_SWITCHES): Added...
5222         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
5223         * Makefile.in (SPECS): New.
5224         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
5225         * gcc.c (process_command): Move self-spec processing past spec
5226         file loading.
5227         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
5228         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
5229         CRTSTUFF_T_CFLAGS.
5230         (SPECS): Document.
5231         * doc/invoke.texi (-mabi-fake-default): Document.
5232
5233 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
5234
5235         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
5236         z_reg, z_reg_qi): Declare static and GTY().
5237         (da_reg): Remove.
5238         (create_regs_rtx): Don't create da_reg.
5239         ("gt-m68hc11.h"): Include for GTY roots.
5240         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
5241         and GTY() here.
5242         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
5243         (m68hc11_soft_tmp_reg): Likewise.
5244         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
5245
5246 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
5247
5248         * basic-block.h: Fix comment formatting.
5249         * calls.c: Likewise.
5250         * combine.c: Likewise.
5251         * convert.c: Likewise.
5252         * gcov.c: Likewise.
5253         * haifa-sched.c: Likewise.
5254         * libgcc2.c: Likewise.
5255         * loop.c: Likewise.
5256         * profile.c: Likewise.
5257         * system.h: Likewise.
5258
5259 2003-01-18  Roger Sayle  <roger@eyesopen.com>
5260
5261         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
5262
5263 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5264
5265         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
5266
5267 2003-01-17  Dale Johannesen  <dalej@apple.com>
5268
5269         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
5270           (*floatunssidf2_internal):  Ditto.
5271
5272 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
5273
5274         * alias.c: Fix comment typos.
5275         * basic-block.h: Likewise.
5276         * c-common.c: Likewise.
5277         * c-common.h: Likewise.
5278         * c-decl.c: Likewise.
5279         * c-opts.c: Likewise.
5280         * c-pragma.c: Likewise.
5281         * c-pretty-print.h: Likewise.
5282         * cfg.c: Likewise.
5283         * cfganal.c: Likewise.
5284         * cfgbuild.c: Likewise.
5285         * cfgcleanup.c: Likewise.
5286         * cfglayout.c: Likewise.
5287         * cfgrtl.c: Likewise.
5288         * convert.c: Likewise.
5289         * cpphash.h: Likewise.
5290         * cpplex.c: Likewise.
5291         * cpplib.h: Likewise.
5292         * df.h: Likewise.
5293         * diagnostic.c: Likewise.
5294         * diagnostic.h: Likewise.
5295         * dwarf2.h: Likewise.
5296
5297 2003-01-17  Stan Shebs  <shebs@apple.com>
5298
5299         * config/darwin-protos.h: Forward-declare struct cpp_reader.
5300
5301 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
5302
5303         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
5304         mistake in last checkin.
5305
5306 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
5307
5308         * et-forest.c: Fix comment typos.
5309         * et-forest.h: Likewise.
5310         * except.c: Likewise.
5311         * expr.c: Likewise.
5312         * flags.h: Likewise.
5313         * flow.c: Likewise.
5314         * gcc.c: Likewise.
5315         * gcse.c: Likewise.
5316         * genattrtab.c: Likewise.
5317         * genautomata.c: Likewise.
5318         * gengtype.c: Likewise.
5319         * genrecog.c: Likewise.
5320         * global.c: Likewise.
5321         * gthr-rtems.h: Likewise.
5322
5323 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5324
5325         * i386.c (x86_function_profiler): Fix format specifier.
5326
5327 2003-01-17  Richard Henderson  <rth@redhat.com>
5328
5329         * gengtype.c (walk_type): Allow paramN_is.
5330
5331 2003-01-17  Nick Clifton  <nickc@redhat.com>
5332
5333         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
5334
5335 2003-01-16  Richard Henderson  <rth@redhat.com>
5336
5337         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
5338
5339 2003-01-16  Richard Henderson  <rth@redhat.com>
5340
5341         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
5342         (alpha_next_sequence_number): Likewise.
5343         (alpha_this_literal_sequence_number): Likewise.
5344         (alpha_this_gpdisp_sequence_number): Likewise.
5345         (struct alpha_funcs, alpha_funcs_num): Likewise.
5346         (struct alpha_links): Fix branch merge error.
5347         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
5348
5349 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
5350
5351         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
5352         R. Ghazi.
5353
5354 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
5355
5356         * ifcvt.c: Fix comment typos.
5357         * lcm.c: Likewise.
5358         * libgcc2.c: Likewise.
5359         * local-alloc.c: Likewise.
5360         * loop.c: Likewise.
5361         * predict.c: Likewise.
5362         * ra-build.c: Likewise.
5363         * ra.c: Likewise.
5364         * ra-colorize.c: Likewise.
5365         * ra.h: Likewise.
5366         * ra-rewrite.c: Likewise.
5367         * regmove.c: Likewise.
5368         * reload.h: Likewise.
5369         * rtlanal.c: Likewise.
5370         * toplev.c: Likewise.
5371         * tree.h: Likewise.
5372         * unwind-dw2-fde-glibc.c: Likewise.
5373         * vmsdbgout.c: Likewise.
5374
5375 2003-01-16  Richard Henderson  <rth@redhat.com>
5376
5377         * dwarf2out.c (struct file_table): Remove.
5378         (FILE_TABLE_INCREMENT): Remove.
5379         (file_table): Make a varray; mark for GC.  Update all users.
5380         (file_table_last_lookup_index): Extract from struct file_table.
5381         (output_file_names): Fix unsigned compare warnings.
5382         (add_name_attribute): Remove inline marker.
5383         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
5384         (lookup_filename): Don't manage size of file_table.
5385         (init_file_table): Allocate file_table with GC.
5386         (dwarf2out_init): Don't record main_input_filename here.
5387         (dwarf2out_finish): Do it here instead.
5388
5389 2003-01-16  Bruce Korb  <bkorb@gnu.org>
5390
5391         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
5392
5393 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
5394
5395         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
5396         instead of rotldi3_mextr.
5397
5398 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
5399
5400         * haifa-sched.c (move_insn): Restore moving all schedule group.
5401         (set_priorities): Restore taking SCHED_GROUP_P into account.
5402
5403         * sched-deps.c (add_dependence): Restore processing the last group
5404         insn.
5405         (remove_dependence, group_leader): Restore the functions.
5406         (set_sched_group_p): Restore adding dependencies from previous insn
5407         in the group.
5408         (compute_forward_dependences): Restore usage of group_leader.
5409
5410         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
5411         account.
5412
5413         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
5414         account.
5415         (can_schedule_ready_p): Ditto.
5416         (add_branch_dependences): Restore skipping over the group insns.
5417
5418 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
5419
5420         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
5421         68HC12 pre/post inc/dec side effects.
5422
5423 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
5424
5425         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
5426
5427 Thu Jan 16 21:50:25 2003  J"orn Rennecke <amylaar@onetel.net.uk>
5428
5429         * sh.md (mshflo_w_x): Fix description of operation.
5430
5431 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
5432
5433         * config/rs6000/rs6000.h: Mention Altivec registers in
5434         commentary.  Fix typo.
5435
5436 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
5437
5438         * config/rs6000/rs6000.md (movti_string): Remove clobber.
5439         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
5440         generate PARALLEL with clobber for TARGET_POWER.
5441
5442 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5443
5444         * ra-colorize.c (colorize_one_web): Initialize variable.
5445         * regmove.c (fixup_match_1): Likewise.
5446         * reload1.c (reload_as_needed): Likewise.
5447         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
5448
5449 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5450
5451         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
5452
5453 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5454
5455         * dbxout.c (lastfile, cwd): Fix `unused' warning.
5456         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
5457         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
5458         is_main_source, file_table, decl_die_table_in_use,
5459         abbrev_die_table_in_use, line_info_table_in_use,
5460         separate_line_info_table_in_use, pubname_table_in_use,
5461         arange_table_in_use, ranges_table_in_use,
5462         current_function_has_inlines): Likewise.
5463         * flow.c (life_analysis): Likewise.
5464         * genemit.c (gen_insn): Likewise.
5465         * protoize.c (cplus_suffix): Likewise.
5466
5467         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
5468         * arm.h (ROUND_UP_WORD): Likewise.
5469
5470         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
5471         warning.
5472         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
5473         init_emit_once): Likewise.
5474         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
5475         Likewise.
5476         * function.c (assign_stack_temp_for_type): Likewise.
5477         * loop.c (loop_invariant_p): Likewise.
5478         * recog.c (push_operand): Likewise.
5479         * regclass.c (init_reg_sets_1): Likewise.
5480         * reload.c (update_auto_inc_notes): Likewise.
5481         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
5482         * stmt.c (expand_asm_operands): Likewise.
5483         * stor-layout.c (start_record_layout): Likewise.
5484
5485 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
5486
5487         * config/c4x/c4x.md (epilogue): Correct last patch.
5488
5489 2003-01-15  Richard Henderson  <rth@redhat.com>
5490
5491         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
5492         also check that GP is being used.
5493         (alpha_find_lo_sum_using_gp): New.
5494         (alpha_does_function_need_gp): Use get_attr_usegp.
5495         * config/alpha/alpha-protos.h: Update.
5496         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
5497         as needed.
5498
5499 2003-01-15  Roger Sayle  <roger@eyesopen.com>
5500
5501         * gcse.c (one_cprop_pass): Change function arguments to take both
5502         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
5503         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
5504         (bypass_jumps): New function to perform separate jump bypassing pass.
5505         * rtl.h (bypass_jumps): Add function prototype.
5506         * timevar.def (TV_BYPASS): New timing variable.
5507         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
5508         (dump_file): New entry for the bypass RTL dump file.
5509         (rest_of_compilation): Insert new jump bypassing optimization
5510         pass after loop.
5511         * doc/passes.texi: Document new pass.
5512
5513 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5514
5515         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
5516         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
5517         * pa.h (TARGET_SOM_SDEF): Define.
5518         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
5519
5520 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
5521
5522         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
5523         allocate 4-bytes of locals on 68HC11.
5524         (expand_epilogue): Likewise.
5525         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
5526
5527 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
5528
5529         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
5530         and -mshort-double to the assembler to specify the ABI.
5531         (LINK_SPEC): Likewise.
5532         (CPP_SPEC): Pass HCS12 specific define.
5533         (MASK_M68S12): New define.
5534         (TARGET_M68S12): Likewise.
5535         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
5536         (TARGET_VERSION): Update.
5537         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
5538         (LINK_SPEC): Update.
5539         (ASM_SPEC): Update.
5540         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
5541         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
5542
5543 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
5544
5545         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
5546         the return code.
5547
5548 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
5549
5550         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
5551         flag before setting it.
5552
5553 2003-01-15  Roger Sayle  <roger@eyesopen.com>
5554
5555         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
5556         when loop condition is known true, i.e.  "while (1) { ... }".
5557         (genrtl_for_stmt): Similarly for "for" statements.
5558
5559 2003-01-15  Roger Sayle  <roger@eyesopen.com>
5560
5561         * real.c (real_sqrt): Return a bool result indicating whether
5562         a floating point exception or trap should be raised.
5563         * real.h (real_sqrt): Update function prototype.
5564         * builtins.c (fold_builtin): Only fold non-trapping square
5565         roots unless we're ignoring errno and trapping math.
5566
5567 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
5568
5569         * expr.h (emit_conditional_add): Add PARAMS to declaration.
5570         * gengtype-lex.l (malloc, realloc): Move defines after include of
5571         system.h.  Remove duplicate include of system.h.
5572
5573 2003-01-15  Roger Sayle  <roger@eyesopen.com>
5574
5575         PR middle-end/9009
5576         * optabs.c (expand_unop):  When manipulating the FP sign bit
5577         using integer operations, account for targets with different
5578         integer and FP word orders.
5579         (expand_abs): Likewise.
5580
5581 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
5582
5583         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
5584         file extension in section name.
5585
5586 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
5587
5588         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
5589         constant offset.
5590
5591 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
5592
5593         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
5594         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
5595         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
5596         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
5597
5598 Wed Jan 15 12:23:21 CET 2003  Jan Hubicka  <jh@suse.cz>
5599
5600         PR f/9258
5601         * global.c (struct allocno): Add no_stack_reg.
5602         (global_conflicts): Set no_stack_reg.
5603         (find_reg): Use it.
5604
5605         * convert.c (convert_to_real): Fold - and abs only when profitable.
5606         * fold-const.c (fold): Fold truncates in - and abs.
5607
5608 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
5609
5610         Segher Boessenkool  <segher@koffie.nl>
5611
5612         * predict.c (real_inv_br_prob_base): New variable.
5613         (propagate_freq): Use multiply by reciprocal instead of
5614         division.  Don't divide by 1.0 at all.
5615         (estimate_bb_frequencies): Similar.
5616
5617 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
5618
5619         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
5620         * configure: Rebuilt.
5621
5622 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
5623
5624         * config/s390/s390.c (s390_safe_attr_type): New function.
5625         (s390_use_dfa_pipeline_interface): New function, return true for z900.
5626         (s390_issue_rate): New function.
5627         (s390_agen_dep_p): New function.
5628         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
5629         (s390_adjust_cost): Return 'cost' if new DFA is used.
5630         (s390_adjust_priority): Delete function.
5631         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
5632         * config/s390/s390.md (atype attribute): Attribute 'atype' default
5633         determined by 'op_type'.
5634         (type attribute): Added more type attributes.
5635         * config/s390/2064.md: New DFA description for z900 pipeline.
5636
5637 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
5638
5639         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
5640         forced to memory.  Fixes PR bootstrap/9036.
5641
5642         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
5643         to set $gp before the call.
5644
5645 2003-01-14  Richard Henderson  <rth@redhat.com>
5646
5647         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
5648         for force_const_mem.
5649
5650 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5651
5652         * genattr.c (main): Rearrange output to avoid prototype warning.
5653         * genautomata.c (transform_3): Fix ambiguous-else warning.
5654         * local-alloc.c (requires_inout): Add parentheses around
5655         assignment used as truth-value.
5656         * timevar.c: Move system includes above local includes.  Include
5657         toplev.h
5658         * Makefile.in (timevar.o): Depend on toplev.h.
5659
5660 2003-01-14  Denis Chertykov  <denisc@overta.ru>
5661
5662         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
5663         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
5664
5665         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
5666         attributes.
5667         (TARGET_ATTRIBUTE_TABLE): New macro.
5668         (valid_machine_type_attribute): Remove.
5669         (valid_machine_decl_attribute): Remove.
5670         (ip2k_handle_progmem_attribute): New function.
5671         (ip2k_handle_fndecl_attribute): New function.
5672
5673 2003-01-10  Andrew Haley  <aph@redhat.com>
5674
5675         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
5676         registers to be in correct order.  Add rip.
5677
5678 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
5679
5680         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
5681         (*iorsi3_and_lshiftrt_9_sb): Likewise.
5682
5683 Tue Jan 14 00:45:33 CET 2003  Jan Hubicka  <jh@suse.cz>
5684
5685         * convert.c (strip_float_extensions):  Look for narrowest type handling
5686         FP constants.
5687
5688         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
5689         float1 CMP float2.
5690         * convert.c (strip_float_extensions): Make global.
5691         * tree.h (strip_float_extensions): Declare.
5692
5693 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5694
5695         * timevar.def: define TV_NAME_LOOKUP.
5696         * timevar.c (timevar_pop): Be verbose when aborting.
5697
5698 2003-01-13  Andreas Schwab  <schwab@suse.de>
5699
5700         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
5701         $(parsedir), just move the temporary file at the end.
5702         ($(parsedir)/gengtype-yacc.c): Likewise.
5703
5704 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
5705
5706         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
5707         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
5708         splitting.
5709         * configure: Rebuilt.
5710
5711 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5712
5713         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
5714         internal_mcount): Don't use PARAMS.
5715         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
5716         ISO C style.
5717         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
5718
5719 2003-01-13  Andreas Schwab  <schwab@suse.de>
5720
5721         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
5722         directive.
5723
5724 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
5725
5726         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
5727         (*iorsi3_and_lshiftrt_n_sb): Likewise.
5728
5729 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
5730
5731         PR c++/9264
5732         * c-lex.c (c_lex): Set the token value to error_mark_node for
5733         invalid numeric constants.
5734
5735 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5736
5737         * c-pch.c (asm_file_startpos): Change to `long'.
5738         (pch_init): Use ftell, not ftello.
5739         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
5740         Use `long' instead of `off_t'.
5741         (c_common_read_pch): Likewise.
5742         * ggc-common.c (gt_pch_save): Use long/ftell instead of
5743         off_t/ftello.
5744
5745 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
5746
5747         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
5748
5749 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
5750
5751         * arm-protos.h (struct cpp_reader): Add declaration.
5752
5753 Sat Jan 11 11:02:58 CET 2003  Jan Hubicka  <jh@suse.cz>
5754
5755         PR target/9068
5756         * i386.c (output_fp_compare): Fix typo.
5757
5758 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
5759
5760         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
5761
5762 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
5763
5764         * Makefile.in (parsedir): New variable.
5765         (docobjdir): New variable.
5766         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
5767         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
5768         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
5769         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
5770         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
5771         Use docobjdir.
5772         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
5773         objc.maintainer-clean): Use parsedir.
5774
5775         * varasm.c (struct constant_descriptor_rtx): Remove unused
5776         `label' field.
5777
5778         * toplev.c (documented_lang_options): Document -Winvalid-pch.
5779
5780 2003-01-10  Richard Henderson  <rth@redhat.com>
5781
5782         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
5783         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
5784
5785 2003-01-10  Richard Henderson  <rth@redhat.com>
5786
5787         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
5788         not INTEGRAL_MODE_P when widening extensions.
5789
5790 2003-01-10  Richard Henderson  <rth@redhat.com>
5791
5792         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
5793
5794 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
5795
5796         * ggc-page.c (ggc_collect): Avoid overflow computing
5797         min_expand.
5798
5799         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
5800         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
5801         Remove calls.
5802         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
5803
5804 Fri Jan 10 22:05:35 CET 2003  Jan Hubicka  <jh@suse.cz>
5805
5806         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
5807         with weird operands.
5808
5809 2003-01-10  Dale Johannesen <dalej@apple.com>
5810
5811         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
5812         parameters.  Call check_sibcall_argument_overlap if indicated.
5813         (check_sibcall_argument_overlap):  Add mark_stored_args_map
5814         parameter.  Don't mark parameter area as clobbered if not set.
5815         (expand_call):  Adjust calls to above.
5816
5817 2003-01-10 Kelley Cook <kelleycook@comcast.net>
5818
5819         * configure.in (linker read-only and read-write section mixing):
5820         Squelch some assembler warnings.
5821         * configure: Likewise.
5822
5823 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
5824
5825         * doc/invoke.texi: Document -mtune, delete -mcpu
5826         option for S/390 and zSeries.
5827         * config/s390/s390.c (s390_tune_string) New variable.
5828         (s390_cpu_string) Delete variable.
5829         (override_options): Use s390_tune_string instead of
5830         s390_cpu_string.
5831         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
5832
5833 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
5834
5835         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
5836
5837 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
5838
5839         * jump.c (next_nonnote_insn_in_loop): New function.
5840         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
5841         next_nonnote_insn.
5842         (duplicate_loop_exit_test). Likewise.
5843
5844 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
5845
5846         Merge from pch-branch:
5847
5848         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
5849
5850         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
5851         load.
5852
5853         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
5854
5855         * cpplib.c (count_registered_pragmas): New function.
5856         (save_registered_pragmas): New function.
5857         (_cpp_save_pragma_names): New function.
5858         (restore_registered_pragmas): New function.
5859         (_cpp_restore_pragma_names): New function.
5860         * cpphash.h (_cpp_save_pragma_names): Prototype.
5861         (_cpp_restore_pragma_names): Likewise.
5862         * cpppch.c (struct save_macro_item): Split from save_macro_data.
5863         (struct save_macro_data): New field 'saved_pragmas'.
5864         (save_macros): Update for changes to struct save_macro_data.
5865         (cpp_prepare_state): Call _cpp_save_pragma_names, update
5866         for changes to struct save_macro_data.
5867         (cpp_read_state): Call _cpp_restore_pragma_names, update
5868         for changes to struct save_macro_data.
5869
5870         * cpppch.c (cpp_read_state): Restore the hashtable references
5871         in the cpp_reader.
5872
5873         * tree.h (built_in_decls): Mark for PCH.
5874
5875         * dbxout.c (lastfile): Don't mark for PCH.
5876
5877         * ggc.h: Document PCH calls into memory managers.
5878
5879         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
5880
5881         * doc/invoke.texi (Precompiled Headers): Document the
5882         directory form of PCH.
5883         * cppfiles.c (validate_pch): New function.
5884         (open_file_pch): Search suitably-named directories for PCH files.
5885
5886         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
5887
5888         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
5889         reorder options.
5890         (Type Information): Mention that the information is also
5891         used to implement PCH.
5892         * doc/passes.texi (Passes): Improve documentation of
5893         language-specific files.
5894
5895         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
5896
5897         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
5898         (struct walk_type_data): Add reorder_fn field.
5899         (walk_type): Process 'reorder' option.
5900         (write_types_process_field): Reorder parameters to gt_pch_note_object,
5901         call reorder_note_routine.
5902         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
5903         (ggc_wtd): Update for change to struct write_types_data.
5904         (pch_wtd): Likewise.
5905         * ggc.h (gt_pch_note_object): Reorder parameters.
5906         (gt_handle_reorder): New definition.
5907         (gt_pch_note_reorder): New prototype.
5908         * ggc-common.c (struct ptr_data): Add reorder_fn.
5909         (gt_pch_note_object): Reorder parameters.
5910         (gt_pch_note_reorder): New.
5911         (gt_pch_save): Call reorder_fn.
5912         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
5913
5914         * dbxout.c (cwd): Don't mark for PCH.
5915
5916         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
5917
5918         * gengtype.c (finish_root_table): Fix some warnings.
5919         (write_root): Handle TYPE_STRING.
5920         * ggc.h (gt_ggc_m_S): Add prototype.
5921         * stringpool.c (gt_ggc_m_S): New function.
5922
5923         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
5924
5925         * dwarf2out.c (dw2_string_counter): New.
5926         (AT_string_form): Use it.
5927         (same_dw_val_p): Update for removal of hashtable.h hash tables.
5928
5929         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
5930
5931         * dbxout.c: Include gt-dbxout.h.
5932         (lastfile): Mark for PCH/GGC.
5933         (cwd): Likewise.
5934         (struct typeinfo): Likewise.
5935         (typevec): Likewise.
5936         (typevec_len): Likewise.
5937         (next_type_number): Likewise.
5938         (struct dbx_file): Likewise.
5939         (current_file): Likewise.
5940         (next_file_number): Likewise.
5941         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
5942         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
5943         (dbxout_end_source_file): Don't free struct dbx_file.
5944         (dbxout_type): Use GGC to allocate typevec.
5945         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
5946         (GTFILES): Add dbxout.c.
5947         (gt-dbxout.h): New rule.
5948
5949         * Makefile.in (c-pch.o): Add debug.h as dependency.
5950         * c-pch.c: Include debug.h.
5951         (pch_init): Call start_source_file to keep nesting right.
5952         (c_common_read_pch): Add orig_name parameter.  Call
5953         start_source_file debug hook.  Call end_source_file debug hook.
5954         * c-common.h (c_common_read_pch): Update prototype.
5955         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
5956         callback.
5957         * cppfiles.c (struct include_file): Add new field `header_name'.
5958         (find_or_create_entry): Default it to `name'.
5959         (open_file_pch): Set it to the original header file searched for.
5960         (stack_include_file): Don't stack an empty buffer, just handle
5961         PCH files immediately.  Pass header_name field to read_pch callback.
5962
5963         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
5964
5965         * function.c (funcdef_no): Mark to be saved in a PCH.
5966
5967         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
5968
5969         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
5970
5971         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
5972
5973         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
5974
5975         * optabs.h (code_to_optab): Add GTY marker.
5976
5977         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
5978
5979         * Makefile.in (GTFILES): Add cpplib.h.
5980         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
5981         * c-decl.c (build_compound_literal): Don't use var_labelno.
5982         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
5983         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
5984         * varasm.c (const_labelno): Use gengtype to mark.
5985         (var_labelno): Likewise.
5986         (in_section): Likewise.
5987         (in_named_name): Likewise.
5988         (struct in_named_entry): Likewise.
5989         (in_named_htab): Likewise.
5990         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
5991         (init_varasm_once): Use GGC to allocate in_named_htab.
5992         * config/darwin.c (current_pic_label_num): Mark for PCH.
5993
5994         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
5995
5996         * ggc-simple.c (init_ggc_pch): New stub procedure.
5997         (ggc_pch_count_object): Likewise.
5998         (ggc_pch_total_size): Likewise.
5999         (ggc_pch_this_base): Likewise.
6000         (ggc_pch_alloc_object): Likewise.
6001         (ggc_pch_prepare_write): Likewise.
6002         (ggc_pch_write_object): Likewise
6003         (ggc_pch_finish): Likewise.
6004         (ggc_pch_read): Likewise.
6005
6006         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
6007
6008         * c-pch.c (c_common_write_pch): Write the macro definitions after
6009         the GCed data.
6010         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
6011         definitions after the GCed data.
6012         * cpplib.c (save_macros): New.
6013         (reset_ht): New.
6014         (cpp_write_pch_deps): Split out of cpp_write_pch.
6015         (cpp_write_pch_state): Split out of cpp_write_pch.
6016         (cpp_write_pch): Delete.
6017         (struct save_macro_data): Delete.
6018         (cpp_prepare_state): New.
6019         (cpp_read_state): Erase and restore initial macro definitions.
6020         * cpplib.h (struct save_macro_data): Forward-declare.
6021         (cpp_write_pch_deps): Prototype.
6022         (cpp_write_pch_state): Prototype.
6023         (cpp_write_pch): Delete prototype.
6024         (cpp_prepare_state): Prototype.
6025         (cpp_read_state): Add fourth argument.
6026
6027         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
6028
6029         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
6030         (write_array): Remove warning.
6031
6032         * gengtype.c (contains_scalar_p): New.
6033         (finish_root_table): Add the table to all languages, even if it's
6034         empty.
6035         (write_roots): Output gt_pch_scalar_rtab.
6036         * ggc-common.c (gt_pch_save): Write out scalars.
6037         (gt_pch_restore): Read scalars back.
6038
6039         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
6040         (struct page_entry): Delete pch_page field.
6041         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
6042         (clear_marks): Likewise.
6043         (sweep_pages): Likewise.
6044         (poison_pages): Likewise.
6045         (ggc_print_statistics): Likewise.
6046         (ggc_pch_read): Don't free objects read from a PCH.
6047         Properly set up in_use_p and page_tails.
6048
6049         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
6050
6051         * gengtype.c (struct write_types_data): New.
6052         (struct walk_type_data): Make `cookie' const; add extra
6053         prev_val item; add `orig_s' field.
6054         (walk_type): Update prev_val[3].
6055         (write_types_process_field): New.
6056         (write_func_for_structure): Take write_types_data structure.
6057         (write_types): New.
6058         (ggc_wtd): New.
6059         (pch_wtd): New.
6060         (write_types_local_process_field): New.
6061         (gc_mark_process_field): Delete.
6062         (write_local_func_for_structure): New.
6063         (gc_mark_func_name): Delete.
6064         (write_gc_types): Delete.
6065         (write_local): New.
6066         (finish_root_table): Don't include 'ggc_' in PFX.
6067         (write_root): Rename from write_root.  Fill pchw field of structures.
6068         (write_array): New.
6069         (write_roots): Rename from write_gc_roots.  Split out to write_array.
6070         Update to changes to other routines.  Write gt_pch_cache_rtab table.
6071         (main): Write PCH walking routines.
6072         * ggc-common.c: Include toplev.h, sys/mman.h.
6073         (ggc_mark_roots): For cache hashtables, also mark the hash table
6074         and the array of entries.
6075         (saving_htab): New.
6076         (struct ptr_data): New.
6077         (POINTER_HASH): New.
6078         (gt_pch_note_object): New.
6079         (saving_htab_hash): New.
6080         (saving_htab_eq): New.
6081         (struct traversal_state): New.
6082         (call_count): New.
6083         (call_alloc): New.
6084         (compare_ptr_data): New.
6085         (relocate_ptrs): New.
6086         (write_pch_globals): New.
6087         (struct mmap_info): New.
6088         (gt_pch_save): New.
6089         (gt_pch_restore): New.
6090         * ggc-page.c (ROUND_UP_VALUE): New.
6091         (ROUND_UP): New.
6092         (struct page_entry): Add field `pch_page'.
6093         (init_ggc): Use ROUND_UP.
6094         (struct ggc_pch_data): Declare.
6095         (init_ggc_pch): New.
6096         (ggc_pch_count_object): New.
6097         (ggc_pch_total_size): New.
6098         (ggc_pch_this_base): New.
6099         (ggc_pch_alloc_object): New.
6100         (ggc_pch_prepare_write): New.
6101         (ggc_pch_write_object): New.
6102         (ggc_pch_finish): New.
6103         (ggc_pch_read): New.
6104         * ggc.h (gt_pointer_operator): New.
6105         (gt_note_pointers): New.
6106         (gt_pch_note_object): New prototype.
6107         (gt_pointer_walker): New.
6108         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
6109         (LAST_GGC_ROOT_TAB): Update.
6110         (gt_pch_cache_rtab): Declare.
6111         (gt_pch_scalar_rtab): Declare.
6112         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
6113         (LAST_GGC_CACHE_TAB): Update.
6114         (gt_pch_save_stringpool): Declare.
6115         (gt_pch_restore_stringpool): Declare.
6116         (gt_pch_p_S): Declare.
6117         (gt_pch_n_S): Declare.
6118         (struct ggc_pch_data): Forward-declare.
6119         (init_ggc_pch): Declare.
6120         (ggc_pch_count_object): Declare.
6121         (ggc_pch_total_size): Declare.
6122         (ggc_pch_this_base): Declare.
6123         (ggc_pch_alloc_object): Declare.
6124         (ggc_pch_prepare_write): Declare.
6125         (ggc_pch_write_object): Declare.
6126         (ggc_pch_finish): Declare.
6127         (ggc_pch_read): Declare.
6128         (gt_pch_save): Declare.
6129         (gt_pch_restore): Declare.
6130         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
6131         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
6132         const_double_htab, mem_attrs_htab using GGC.
6133         * c-pch.c: Include ggc.h.
6134         (pch_init): Allow reading PCH file back.
6135         (c_common_write_pch): Call gt_pch_save.
6136         (c_common_read_pch): Call gt_pch_restore.
6137         * c-parse.in (init_reswords): Delete now-untrue comment.
6138         Allocate ridpointers using GGC.
6139         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
6140         calling expand_deferred_fns.
6141         * c-common.h (ridpointers): Mark for GTY machinery.
6142         * Makefile.in (stringpool.o): Update dependencies.
6143         (c-pch.o): Update dependencies.
6144         (ggc-common.o): Update dependencies.
6145         * stringpool.c: Include gt-stringpool.h.
6146         (gt_pch_p_S): New.
6147         (gt_pch_n_S): New.
6148         (struct string_pool_data): New.
6149         (spd): New.
6150         (gt_pch_save_stringpool): New.
6151         (gt_pch_restore_stringpool): New.
6152         * tree.c (init_ttree): Make type_hash_table allocated using GC.
6153
6154         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
6155
6156         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
6157         (output_mangled_typename): Don't pass size_t to printf.
6158
6159         * tree.h (union tree_type_symtab): Add tag to `address' field.
6160         (union tree_decl_u2): Add tag to 'i' field.
6161         * varasm.c (union rtx_const_un): Add tags to all fields.
6162         * gengtype.c (struct walk_type_data): New.
6163         (output_escaped_param): Take struct walk_type_data parameter.
6164         (write_gc_structure_fields): Delete.
6165         (walk_type): New.
6166         (write_gc_marker_routine_for_structure): Delete.
6167         (write_func_for_structure): New.
6168         (gc_mark_process_field): New.
6169         (gc_mark_func_name): New.
6170         (gc_counter): Delete.
6171         (write_gc_types): Use write_func_for_structure.
6172         (write_gc_roots): Use walk_type.
6173
6174         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
6175
6176         * ggc-common.c (ggc_mark_roots): Delete 'x'.
6177         (ggc_splay_dont_free): Fix warning about unused 'x'.
6178         (ggc_print_common_statistics): Remove warnings.
6179
6180         2002-10-01  Mike Stump  <mrs@apple.com>
6181
6182         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
6183         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
6184
6185         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
6186             Catherine Moore  <clm@redhat.com>
6187
6188         * Makefile (c-pch.o): Update dependencies.
6189         (LIBCPP_OBJS): Add cpppch.o.
6190         (cpppch.o): New.
6191         * c-common.c (c_common_init): Don't call pch_init here.
6192         * c-common.h (c_common_read_pch): Update prototype.
6193         * c-lex.c (c_common_parse_file): Call pch_init here.
6194         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
6195         (c_common_decode_option): Handle them.
6196         * c-pch.c: Include c-pragma.h.
6197         (save_asm_offset): Delete.
6198         (pch_init): Move contents of save_asm_offset into here, call
6199         cpp_save_state.
6200         (c_common_write_pch): Call cpp_write_pch.
6201         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
6202         cpp_valid_state.
6203         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
6204         * cppfiles.c (stack_include_file): Update for change to
6205         parameters of cb.read_pch.
6206         * cpphash.h (struct cpp_reader): Add `savedstate' field.
6207         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
6208         `restore_pch_deps' fields.
6209         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
6210         (cpp_save_state): Prototype.
6211         (cpp_write_pch): Prototype.
6212         (cpp_valid_state): Prototype.
6213         (cpp_read_state): Prototype.
6214         * cpppch.c: New file.
6215         * flags.h (version_flag): Remove prototype.
6216         * mkdeps.c (deps_save): New.
6217         (deps_restore): New.
6218         * mkdeps.h (deps_save): Prototype.
6219         (deps_restore): Prototype.
6220         * toplev.c (late_init_hook): Delete.
6221         (version_flag): Make static again.
6222         (compile_file): Don't call late_init_hook.
6223         * toplev.h (late_init_hook): Delete.
6224         * doc/cppopts.texi: Document -fpch-deps.
6225         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
6226
6227         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
6228
6229         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
6230         callers.
6231         (c_common_valid_pch): Rename from c_valid_pch, change callers.
6232         (c_common_read_pch): Rename from c_read_pch, change callers.
6233
6234         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
6235         a space between it and its argument.
6236
6237         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
6238
6239         * c-pch.c: New file.
6240         * toplev.h (late_init_hook): Declare.
6241         * toplev.c (late_init_hook): Define.
6242         (version_flag): Make globally visible.
6243         (compile_file): Call late_init_hook.
6244         (init_asm_output): Make output file seekable.
6245         * gcc.c (default_compilers): Update c-header rule.
6246         * flags.h (version_flag): Declare.
6247         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
6248         fields.
6249         * cppfiles.c (struct include_file): Add 'pch' field.
6250         (INCLUDE_PCH_P): New.
6251         (open_file_pch): New.
6252         (stack_include_file): Handle PCH files specially.
6253         (find_include_file): Call open_file_pch instead of open_file.
6254         (_cpp_read_file): Explain why open_file is used instead of
6255         open_file_pch.
6256         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
6257         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
6258         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
6259         in cpplib callbacks.
6260         * c-common.c (pch_file): Correct comment.
6261         (allow_pch): Define.
6262         (c_common_init): Call pch_init.
6263         * c-common.h (allow_pch): Declare.
6264         (pch_init): Declare.
6265         (c_valid_pch): Declare.
6266         (c_read_pch): Declare.
6267         (c_write_pch): Declare.
6268         * Makefile.in (c-pch.o): New.
6269         (C_AND_OBJC_OBJS): Add c-pch.o.
6270         * doc/invoke.texi (Precompiled Headers): Add index entries,
6271         complete truncated paragraph.
6272
6273         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
6274
6275         * c-common.c: (pch_file): Define.
6276         * c-common.h (pch_file): Declare.
6277         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
6278         (missing_arg): Require --output-pch= to have an argument.
6279         (c_common_decode_option): Handle --output-pch=.
6280         * gcc.c: Document new %V.
6281         (default_compilers): Handle compiling C header files.
6282         (do_spec_1): Implement %V.
6283         (main): Handle "gcc foo.h" without trying to run linker.
6284         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
6285         (Overall Options): Document what the driver does with header files,
6286         document new -x option possibilities.
6287         (Invoking G++): More documentation for PCH.
6288         (Precompiled Headers): New.
6289
6290         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
6291
6292         * ggc.h: Don't include varray.h.  Rearrange functions to be more
6293         organized.
6294         (ggc_add_root): Delete.
6295         (ggc_mark_rtx): Delete.
6296         (ggc_mark_tree): Delete.
6297         (struct ggc_statistics): Remove contents.
6298         * ggc-common.c: Remove unneeded includes.
6299         (struct ggc_root): Delete.
6300         (roots): Delete.
6301         (ggc_add_root): Delete.
6302         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
6303         (ggc_print_common_statistics): Remove most of the contents.
6304         * Makefile.in (GGC_H): No longer uses varray.h.
6305         (ggc-common.o): Update dependencies.
6306         (c-parse.o): Add varray.h to dependencies.
6307         (c-common.o): Add varray.h.
6308         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
6309         (mark_ident_hash): Rename to ggc_mark_stringpool.
6310         (init_stringpool): Don't use ggc_add_root.
6311         * c-parse.in: Include varray.h.
6312         * c-common.c: Include varray.h.
6313         * objc/Make-lang.in (objc-act.o): Add varray.h.
6314         * objc/objc-act.c: Include varray.h.
6315
6316         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
6317
6318         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
6319         (dw_cfi_oprnd1_desc): Likewise.
6320
6321         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
6322
6323         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
6324         move out of ifdef.
6325         (alpha_links): Use gengtype to mark; move out of ifdef.
6326         (mark_alpha_links_node): Delete.
6327         (mark_alpha_links): Delete.
6328         (alpha_need_linkage): Use GGC to allocate splay tree, struct
6329         alpha_links, strings.  Don't use ggc_add_root.
6330         * ggc-common.c (ggc_splay_alloc): New.
6331         (ggc_splay_dont_free): New.
6332         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
6333         (ggc_mark_tree): Likewise.
6334         (splay_tree_new_ggc): New.
6335         (ggc_splay_alloc): Declare.
6336         (ggc_splay_dont_free): Declare.
6337         * dwarf2asm.c: Include gt-dwarf2asm.h.
6338         (mark_indirect_pool_entry): Delete.
6339         (mark_indirect_pool): Delete.
6340         (indirect_pool): Use gengtype to mark.
6341         (dw2_force_const_mem): Don't use ggc_add_root.
6342         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
6343         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
6344         (gt-dwarf2asm.h): Depend on s-gtype.
6345
6346         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
6347
6348         * tree.h (union tree_type_symtab): Mark `die' field.
6349         * Makefile.in (dwarf2out.o): Update dependencies.
6350         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
6351         hash tables.
6352         (dw_cfi_oprnd1_desc): New function.
6353         (dw_cfi_oprnd2_desc): New function.
6354         (indirect_string_alloc): Delete.
6355         (debug_str_do_hash): New function.
6356         (debug_str_eq): New function.
6357         (mark_limbo_die_list): Delete.
6358         (dwarf2out_init): Don't call ggc_add_root.
6359
6360 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
6361
6362         The following changes are merged from itanium-sched-branch:
6363
6364         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
6365
6366         * doc/md.texi: Clarify assignment of units to automata description.
6367
6368         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
6369
6370         * genautomata.c (unit_decl): Remove members
6371         `the_same_automaton_unit' and
6372         `the_same_automaton_message_reported_p'.
6373         (process_unit_to_form_the_same_automaton_unit_lists,
6374         form_the_same_automaton_unit_lists_from_regexp,
6375         form_the_same_automaton_unit_lists, the_same_automaton_lists):
6376         Remove them.
6377         (annotation_message_reported_p): New global variable.
6378         (check_unit_distribution_in_reserv,
6379         check_regexp_units_distribution): New functions.
6380         (check_unit_distributions_to_automata): Rewrite it.
6381
6382         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
6383
6384         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
6385         Use continue instead of break if cycle is too big.
6386
6387         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
6388
6389         * genautomata.c (check_unit_distributions_to_automata): Output at
6390         most one message for a unit.
6391         (process_unit_to_form_the_same_automaton_unit_lists): Check
6392         automaton of units instead of units themself.
6393
6394         * doc/md.texi: Describe the constraint about assigning unit to
6395         automata.
6396
6397         2002-12-20  Jan Hubicka  <jH@suse.cz>
6398                     Vladimir Makarov  <vmakarov@redhat.com>
6399
6400         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
6401         and `in_set_p'.
6402         (gen_cpu_unit): Initialize the new members.
6403         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
6404         up `min_occ_cycle_num'.
6405         (evaluate_max_reserv_cycles): Change the function call.
6406         (CLEAR_BIT): New macro.
6407         (states_union, state_shift): Use the mask.
6408         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
6409         (form_reservs_matter): New function.
6410         (make_automaton): Call the function and use the mask.
6411         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
6412         account.
6413
6414         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
6415
6416         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
6417
6418         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
6419
6420         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
6421         for Itanium.
6422
6423         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
6424
6425         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
6426         default cpu.
6427
6428         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
6429                 2002-10-31  Dale Johannesen <dalej@apple.com>
6430
6431         * haifa-sched.c (find_set_reg_weight): New function.
6432         (find_insn_reg_weight): Use the new function.
6433         (schedule_block): Do sorting ready queue always
6434         after insn issue.
6435
6436         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
6437
6438         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
6439
6440         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
6441
6442         * haifa-sched.c (choice_entry): New structure.
6443         (choice_stack, cycle_issued_insns): New variables.
6444         (max_issue): Rewrite it.
6445         (choose_ready): Set up ready_try for unknown insns too.
6446         (schedule_block): Allocate and free choice_stack.  Set up
6447         and modify cycle_issued_insns.
6448
6449         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
6450         with and without filling the bundle.
6451         (bundling): Combine calls of issue_nops_and_insn.
6452
6453         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
6454
6455         * config/ia64/itanium1.md: New file.
6456
6457         * config/ia64/itanium2.md: New file.
6458
6459         * config/ia64/ia64.md: Move DFA descriptions into the new files.
6460         Remove the old pipeline description.
6461
6462         * config/ia64/ia64.c (ia64_override_options): Add aliases of
6463         itanium processor names.
6464
6465         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
6466
6467         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
6468         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
6469
6470         * config/ia64/ia64.md: Add descriptions for Itanium2.
6471
6472         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
6473
6474         * config/ia64/ia64.h (processor_type): New enumeration.
6475         (ia64_tune, ia64_tune_string): New external declarations.
6476         (TARGET_OPTIONS): Add option `tune='.
6477
6478         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
6479         variables.
6480         (ia64_override_options): Set up `ia64_tune'.
6481         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
6482         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
6483         (bundling): Add nops for MM-insns only for Itanium.
6484         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
6485         Itanium.
6486
6487         * config/ia64/ia64.md (cpu): New attribute.
6488         (DFA description): Enable it only for Itanium.
6489
6490         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
6491                     Richard Henderson  <rth@redhat.com>
6492
6493         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
6494         MASK_EARLY_STOP_BITS.
6495         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
6496         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
6497         `early-stop-bits'.
6498
6499         * config/ia64/ia64.c (ia64_dfa_new_cycle,
6500         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
6501         instead of TARGET_TUNE_STOP_BITS.
6502
6503         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
6504         `-mearly-stop-bits'.
6505
6506         * config/ia64/ia64.c (automata_option "v"): Comment it.
6507
6508         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
6509
6510         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
6511         New macros.
6512         (TARGET_SWITCHES): Add entries for the new option.
6513
6514         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
6515         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
6516         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
6517         global variables.
6518         (ia64_sched_reorder2): Set up `clocks'.
6519         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
6520         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
6521         queue when TARGET_TUNE_STOP_BITS.
6522         (bundling): Insert additional nops for MM-insns.
6523         (final_emit_insn_group_barriers): Add insertion of stop bits
6524         according `stops_p'.
6525         (ia64_reorg): Initiate the new varibales.
6526
6527         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
6528
6529         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
6530
6531         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
6532         insns at the end of block insn scheduling.
6533
6534         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
6535
6536         * sched-deps.c (remove_dependence, group_leader): Remove it.
6537         (add_dependence): Add dependence to group leader to.
6538         (set_sched_group_p): Add dependence to the first insn of the
6539         schedule group too.
6540         (sched_analyze_insn): Make dependence to jump as anti-dependence.
6541         Change true dependence by anti-dependence when
6542         `reg_pending_barrier'.
6543
6544         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
6545         add_branch_dependences): Ignore schedule groups.
6546
6547         * sched-ebb.c (init_ready_list): Ditto.
6548
6549         * (move_insn, set_priorities): Ditto.
6550
6551         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
6552         flag is clear after reload.
6553         (adjust_cost): Change cost only for output dependencies.
6554
6555         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
6556
6557         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
6558
6559         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
6560
6561         * target.h (gcc_target): Add member
6562         `dependencies_evaluation_hook'.
6563
6564         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
6565         macro.
6566         (TARGET_SCHED): Add initiatialization of the new member.
6567
6568         * sched-ebb.c: Include `target.h'.
6569         (schedule_ebb): Call `dependencies_evaluation_hook'.
6570
6571         * sched-rgn.c (schedule_region): Call
6572         `dependencies_evaluation_hook'.
6573
6574         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
6575         New macro.
6576         (ia64_dependencies_evaluation_hook): New function.
6577
6578         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
6579         Describe the new hook.
6580
6581         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
6582
6583         * target.h (gcc_target): Add members
6584         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
6585
6586         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
6587         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
6588         macros.
6589         (TARGET_SCHED): Add initiatialization of the new members.
6590
6591         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
6592         insn scheduling too.
6593         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
6594         initialize `ready_try'.
6595         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
6596         `dfa_new_cycle' says not to do it.
6597
6598         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
6599         bundling.
6600
6601         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
6602
6603         * config/ia64/ia64.c: Include `hashtab.h'.
6604         (ia64_first_cycle_multipass_dfa_lookahead_guard,
6605         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
6606         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
6607         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
6608         bundle_state_eq_p, insert_bundle_state,
6609         initiate_bundle_state_table, finish_bundle_state_table,
6610         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
6611         get_template, get_next_important_insn, bundling): New functions.
6612         (ia64_internal_sched_reorder): Remove it.
6613         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
6614         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
6615         (ia64_safe_itanium_requires_unit0): Remove it.
6616         (group_barrier_needed_p): Place group barrier right before a real
6617         insn.
6618         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
6619         Remove them.
6620         (bundle_name): New variable.
6621         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
6622         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
6623         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
6624         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
6625         temp_dfa_state, prev_cycle_state): New global variables.
6626         (insn_matches_slot, maybe_rotate, finish_last_head,
6627         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
6628         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
6629         find_best_packet, itanium_reorder, dump_current_packet,
6630         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
6631         (sched_data, sched_ready, sched_types): Remove them.
6632         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
6633         `init_insn_group_barriers'.
6634         (ia64_sched_reorder, ia64_sched_reorder2): Call
6635         ia64_dfa_sched_reorder.
6636         (ia64_variable_issue): Rewrite it.
6637         (bundle_state): New structure.
6638         (index_to_bundle_states, bundle_states_num,
6639         allocated_bundle_states_chain, free_bundle_state_chain): New
6640         global variables.
6641         (ia64_sched_finish): Add stop bits and call `bundling' after the
6642         2nd insn scheduling.
6643         (ia64_use_dfa_pipeline_interface): Return zero always.
6644         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
6645         insn scheduling.
6646         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
6647         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
6648         (ia64_reorg): Add bundling insns.
6649
6650         * doc/tm.texi
6651         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
6652         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
6653
6654         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
6655
6656         * config/ia64/ia64.md: Add Itanium1 DFA description.
6657         (itanium_class): Add `nop' and `pre_cycle'.  Add
6658         define_function_unit for `nop'.
6659         (nop): Change attribute `itanium_class'.
6660         (pre_cycle): New define_insn.
6661
6662         * config/ia64/ia64-protos.h (bundling_p): New external variable.
6663         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
6664         ia64_produce_address_p): New function prototypes.
6665
6666         * config/ia64/ia64.c (bundling_p): New global variable.
6667         (ia64_use_dfa_pipeline_interface,
6668         ia64_first_cycle_multipass_dfa_lookahead,
6669         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
6670         functions.
6671         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
6672         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
6673         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
6674         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
6675         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
6676         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
6677         (dfa_pre_cycle_insn): New variable.
6678
6679         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
6680
6681         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
6682         constructions.
6683
6684         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
6685         New function prototypes.
6686
6687         * genattrtab.c (main): Process the new constructions.
6688
6689         * genautomata.c (gen_presence_absence_set,
6690         process_presence_absence_names, process_presence_absence_patterns,
6691         add_presence_absence, check_absence_pattern_sets): Add parameter
6692         `final_p'.
6693         (unit_decl): Add new members `final_presence_list' and
6694         `final_absence_list'.
6695         (unit_pattern_rel_decl): Add new member `final_p'.
6696         (gen_final_presence_set, gen_final_absence_set): New functions.
6697         (process_decls): Use member `final_p'.
6698         (temp_reserv): New global variable.
6699         (reserv_sets_are_intersected): Add processing `final_presence_set'
6700         and `final_absence_set'.
6701         (initiate_states): Allocate `temp_reserv'.
6702         (unit_final_presence_set_table, unit_final_absence_set_table): New
6703         gloabal variables.
6704         (initiate_presence_absence_pattern_sets): Initiate them.
6705         (NDFA_to_DFA): Fix typo.
6706         (output_description): Output `final_presence_set' and
6707         `final_absence_set'.
6708
6709         * doc/md.texi (final_presence_set, final_absence_set): Describe
6710         them.
6711
6712         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
6713
6714         * genautomata.c (transform_3): Process a missing case (nothing on
6715         unit place).
6716
6717         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
6718
6719         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
6720         comments about queried units and the minimization.
6721
6722         * doc/md.texi: Ditto.
6723
6724         * genautomata.c (create_composed_state): Return nonzero if the new
6725         state has been created.
6726         (first_cycle_unit_presence): New function.
6727         (state_is_differed): Add new parameter.  Use the new function.
6728         Take queried units into account.
6729         (partition_equiv_class): Pass additional parameter to
6730         `state_is_differed'.
6731         (merge_states): Process composed states too.
6732         (build_automaton, create_automata, output_min_issue_delay_table,
6733         output_tables, output_statistics): Output more information.
6734         (output_reserved_units_table): Use function
6735         `first_cycle_unit_presence'.
6736         (output_tables): Output table of queried units even if the
6737         minimization is switched on.
6738         (write_automata): Output code for querying units even if the
6739         minimization is switched on.
6740
6741         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
6742
6743         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
6744         syntax of the constructions.
6745
6746         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
6747         extended syntax of the constructions.
6748
6749         * genautomata.c (unit_rel_decl): Rename it to
6750         `unit_pattern_rel_decl'.
6751         (pattern_set_el, pattern_reserv): New structures.
6752         (pattern_set_el_t, pattern_reserv_t): New types.
6753         (gen_presence_absence_set): New function.
6754         (process_presence_absence): Remove it.
6755         (process_presence_absence_names,
6756         process_presence_absence_patterns): New functions.
6757         (get_presence_absence_set): Remove it.
6758         (initiate_presence_absence_sets): Rename it on
6759         `initiate_presence_absence_pattern_sets'.  Use new function
6760         `form_reserv_sets_list'.
6761         (form_reserv_sets_list, check_presence_pattern_sets,
6762         check_absence_pattern_sets, output_pattern_set_el_list): New
6763         functions.
6764         (unit_decl): Change types of members `presence_list' and
6765         `absence_list'.
6766         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
6767         (decl): Change types of members `excl', `presence', and `absence'.
6768         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
6769         at the end of the vector.
6770         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
6771         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
6772         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
6773         (gen_presence_set, gen_absence_set): Use new function
6774         `gen_presence_absence_set'.
6775         (add_presence_absence): Process `pattern_list' instead of
6776         `source_list'.
6777         (process_decls): USe new functions
6778         `process_presence_absence_names' and
6779         `process_presence_absence_patterns'.
6780         (reserv_sets_are_intersected): Use new function
6781         `check_presence_pattern_sets'.
6782         (presence_set, absence_set): Remove them.
6783         (unit_presence_set_table, unit_absence_set_table): New global
6784         variables.
6785         (output_description): Use new function
6786         `output_pattern_set_el_list'.
6787         (generate): Use `initiate_presence_absence_pattern_sets'.
6788
6789         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
6790
6791         * genattr.c (main): Add output of prototype of new interface
6792         function `dfa_clean_insn_cache'.
6793
6794         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
6795         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
6796         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
6797         the generated code.
6798         (write_automata): Call the new function.
6799
6800 Thu Jan  9 22:47:38 CET 2003  Jan Hubicka  <jh@suse.cz>
6801
6802         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
6803         correctly.
6804
6805 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
6806
6807         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
6808
6809 Thu Jan  9 17:26:40 2003  J"orn Rennecke <joern.rennecke@superh.com>
6810
6811         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
6812         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
6813         (CONSTRAINT_LEN): Provide default definition.
6814         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
6815         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
6816         (EXTRA_CONSTRAINT_STR): Likewise.
6817         (REG_CLASS_FROM_CONSTRAINT): Define.
6818         * genoutput.c (check_constraint_len, constraint_len): New functions.
6819         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
6820         constraint / modifier.
6821         (gen_insn): Call check_constraint_len.
6822         * local-alloc.c (block_alloc): Update to use new macros / pass
6823         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
6824         * ra-build.c (handle_asm_insn): Likewise.
6825         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
6826         (constrain_operands, peep2_find_free_register): Likewise.
6827         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
6828         * regmove.c (find_matches): Likewise.
6829         * reload.c (push_secondary_reload, find_reloads): Likewise.
6830         (alternative_allows_memconst): Likewise.
6831         * reload1.c (maybe_fix_stack_asms): Likewise.
6832         (reload_cse_simplify_operands): Likewise.
6833         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
6834         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
6835         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
6836         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
6837         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
6838         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
6839
6840         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
6841
6842 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
6843
6844         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
6845         length.
6846         (*extzv_1_r_h8300hs): Likewise.
6847         (*extzv_1_r_inv_h8300): Likewise.
6848         (*extzv_1_r_inv_h8300hs): Likewise.
6849
6850 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
6851
6852         * config/h8300/h8300.h (PREDICATE_CODES): New.
6853
6854 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
6855
6856         * config/h8300/h8300.md (*addsi3_upper): New.
6857         (*iorsi3_shift): Likewise.
6858         (two splitters): Likewise.
6859         (*addsi3_shift): Likewise.
6860         (two splitters): Likewise.
6861
6862 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
6863
6864         * Makefile.in (optabs.o): Add dependency on basic-block.h.
6865         * basic-block.h (control_flow_insn_p): Fuction was exported.
6866         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
6867         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
6868         notes only when the region is contained in a single basic block.
6869
6870 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
6871
6872         PR inline-asm/8832
6873         * tree.h (expand_asm): New prototype.
6874         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
6875         to do so.
6876         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
6877         down to expand_asm.
6878         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
6879         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
6880         (volatile_refs_p) [ASM_INPUT]: Likewise.
6881         (side_effects_p) [ASM_INPUT]: Likewise.
6882
6883 Thu Jan  9 12:00:36 CET 2003  Jan Hubicka  <jh@suse.cz>
6884
6885         * i386.md (*mul*): FIx constraints; remove confused comment; fix
6886         athlon_decode attributes
6887         (imul/k8 optimization peep2s): New.
6888
6889         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
6890         * i386.md (type attribute): Add ssecomi.
6891         (unit, memory, prefix attributes): Handle ssecomi.
6892         (cvt?2? patterns): Fix athlon_decode attribute
6893         (comi patterns): Set attribute to ssecomi.
6894
6895         PR target/8343
6896         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
6897
6898 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
6899
6900         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
6901         that match register_operands.
6902         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
6903         register_operand the default case.
6904
6905 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
6906
6907         PR c/8032
6908         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
6909         an empty element, do not advance the pointer to unfilled
6910         fields if there are pending initializers.
6911
6912 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
6913
6914         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
6915         (install-gcc-tooldir, install-cpp, installdirs,
6916         install-common, install-driver, install-info, install-man,
6917         install-headers, install-include-dir, install-headers-tar,
6918         install-headers-cpio, install-headers-cp, install-mkheaders,
6919         install-collect2, uninstall): Prepend $(DESTDIR) to
6920         destination paths in all (un)installation commands.
6921         (install-driver): Rewrite $(LN) commands to support DESTDIR
6922         with "ln" as well as with "ln -s".
6923         (installdirs): Simply use mkinstalldirs.
6924         (install-libgcc, install-multilib): Also pass DESTDIR.
6925         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
6926         installation destination variable ldir.
6927         * config/alpha/t-osf4, config/arm/t-netbsd,
6928         config/ia64/t-hpux, config/mips/t-iris5-6,
6929         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
6930         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
6931         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
6932         in the definition of SHLIB_INSTALL.
6933         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
6934         $(libsubdir) in the installation commands.
6935
6936 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
6937
6938         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
6939         non-optimizing compile.
6940         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
6941         compile.
6942
6943 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
6944
6945         * config/i386/i386.c (ix86_attribute_table): Add new attributes
6946         ms_struct and gcc_struct.
6947         (ix86_handle_struct_attribute): New function.
6948         (ix86_ms_bitfield_layout_p): Update to take new attributes
6949         into account.
6950         * doc/extend.texi: Document new attributes.
6951         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
6952
6953 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
6954
6955         PR optimization/8750
6956         * config/i386/i386.c (ix86_expand_prologue): Don't allow
6957         scheduling pass to move insns across __alloca call.
6958
6959 2003-01-08  Dale Johannesen  <dalej@apple.com>
6960
6961         * config/rs6000/rs6000.md:  Replace *store_multiple_string
6962         with *stmsi[3-8].
6963
6964 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
6965
6966         PR target/9210
6967         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
6968         Set SYMBOL_REF_FLAG on local data sym_ref.
6969
6970 2003-01-08  Dale Johannesen  <dalej@apple.com>
6971
6972         * function.c (assign_parms):  Don't set pretend_args_size if
6973           REG_PARM_STACK_SPACE.
6974           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
6975           pretend_args_size.
6976
6977 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
6978
6979         * gcc.hlp: Delete.
6980
6981 Thu Jan  9 00:57:15 CET 2003  Jan Hubicka  <jh@suse.cz>
6982
6983         * i386.c  (ix86_expand_int_addcc): Fix thinko.
6984
6985 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
6986
6987         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
6988         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
6989         as hook_bool_tree_hwi_hwi_tree_true.
6990         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
6991         (rs6000_emit_epilogue): Same.
6992         (rs6000_output_mi_thunk): Re-implement as RTL.
6993         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
6994         xcoffout_declare_function if any debugging enabled.
6995
6996 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
6997
6998         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
6999         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
7000         * config/mips/mips.h (enum processor_type): Rename
7001         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
7002         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
7003         Add PROCESSOR_M4K.
7004         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
7005         (ISA_MIPS32R2): New define.
7006         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
7007         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
7008         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
7009         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
7010         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
7011         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
7012         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
7013         compiling MIPS16 code.
7014         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
7015         comment.
7016         (ISA_HAS_SEB_SEH): New define.
7017         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
7018         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
7019         processor_type value renaming.  Add support for MIPS32R2.
7020         Clean up comments, and move "sb1" entry with other MIPS64 CPU
7021         entries.
7022         (override_options): Reimplement -mipsN option handling so that
7023         it will work correctly for -mips32r2.  Avoid branch-likely
7024         instructions on MIPS32R2.
7025         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
7026         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
7027         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
7028         (extendhisi2_hw, extendqisi2_hw): New.
7029         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
7030         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
7031         MIPS32R2, and MIPS64.
7032         (LINK_SPEC): Pass -mips32r2 to linker.
7033         * config/mips/t-isa3264: Built -mips32r2 multilibs.
7034         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
7035         for mips32r2 in the -march description.  Alphabetically sort
7036         CPU names in the -march description.  Add long-missed -mips32
7037         and -mips64 to MIPS option summary.
7038
7039         * config.gcc: Update copyright years to include 2003.
7040         * config/mips/mips.c: Likewise.
7041         * config/mips/mips.h: Likewise.
7042         * config/mips/mips.md: Likewise.
7043         * config/mips/netbsd.h: Likewise.
7044         * doc/invoke.texi: Likewise.
7045
7046 2003-01-08  Andreas Schwab  <schwab@suse.de>
7047
7048         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
7049         variable.
7050         * configure: Regenerated.
7051
7052 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
7053
7054         * config/h8300/h8300.c (output_logical_op): Replace byte/word
7055         extraction of det with b0, b1, w0, w2, etc.
7056         (compute_logical_op_length): Likewise.
7057         (compute_logical_op_cc): Likewise.
7058
7059 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
7060
7061         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
7062         HIGH on all variants.
7063
7064 Wed Jan  8 14:06:34 CET 2003  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
7065
7066         * Makefile.in (PARTITION_H): New.
7067         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
7068         * basic-block.h: Include hard-reg-set.h.
7069
7070 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
7071
7072         * arm.h (ENABLE_XF_PATTERNS): Delete.
7073         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
7074         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
7075         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
7076         (cmpxf_trap): Delete.
7077         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
7078
7079 Wed Jan  8 12:10:57 CET 2003  Jan Hubicka  <jh@suse.cz>
7080
7081         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
7082         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
7083         (add??cc): New expanders.
7084         * i386.c (expand_int_addcc): New function.
7085         * i386-protos.h (expand_int_addcc): Declare.
7086
7087         * alias.c (memory_modified_1): New static function.
7088         (memory_modified): New static varaible.
7089         (memory_modified_in_insn_p): New global function.
7090         * rtl.h (memory_modified_in_insn_p): Declare.
7091         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
7092         references.
7093
7094         * expr.h (emit_conditional_add): Declare.
7095
7096 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
7097
7098         PR other/8947
7099         * doc/invoke.texi (-malign-double): Explain that the option breaks
7100         binary compatibility.
7101
7102 2003-01-08  Andreas Schwab  <schwab@suse.de>
7103
7104         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
7105         should come from the generic *-*-linux* entry.
7106
7107 Tue Jan  7 22:29:56 CET 2003  Jan Hubicka  <jh@suse.cz>
7108
7109         * cselib.c (cselib_current_insn_in_libcall): New static variable.
7110         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
7111         we are inside libcall.
7112         * cselib.h (elt_loc_list): Add in_libcall.
7113         * gcse.c (do_local_cprop): Do not copy propagate using insns
7114         in libcalls.
7115
7116 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
7117
7118         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
7119         not normally affect to issue rate.
7120
7121 Tue Jan  7 21:46:57 CET 2003  Jan Hubicka  <jh@suse.cz>
7122
7123         * genopinit.c (optabs): Add addc_optab.
7124         * ifcvt.c (noce_try_store_flag): Rename to ...
7125         (noce_try_addcc): ... this one; handle generic conditional increment.
7126         (noce_process_if_block): Update noce_try_addcc call.
7127         * optabs.c (emit_conditional_add): New.
7128         (init_obtabs): Initialize addc_optab.
7129         * optabs.h (optab_index): Add OTI_addcc.
7130         (addcc_optab): New macro.
7131         * md.texi: Document addMcc
7132
7133         PR target/8322
7134         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
7135         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
7136         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
7137
7138         * reload1.c (delete_output_reload): Avoid repeated attempts
7139         to delete insn.
7140
7141 2003-01-07  Andreas Schwab  <schwab@suse.de>
7142
7143         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
7144         Move --enable-initfini-array check ...
7145         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
7146         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
7147         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
7148         * configure: Rebuild.
7149
7150 2003-01-07  Richard Henderson  <rth@redhat.com>
7151
7152         * alias.c (find_base_value): Only use new_reg_base_value shortcut
7153         if the register is set once.
7154
7155 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
7156
7157         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
7158         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
7159         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
7160
7161 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
7162             Sunil Davasam  <sunil.k.davasam@intel.com>
7163
7164         PR libstdc++/9076
7165         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
7166         DW_CFA_same_value, read next and ignore.
7167
7168 2003-01-07  Richard Henderson  <rth@redhat.com>
7169
7170         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
7171
7172 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
7173
7174         * cfg.c: Include alloc-pool.h
7175         (edge_pool): New pool.
7176         (bb_pool): New pool.
7177         (first_deleted_edge): Remove.
7178         (first_deleted_block): Remove.
7179         (init_flow): Alloc/free the pools.
7180         (free_edge): Use pools.
7181         (alloc_block): Ditto.
7182         (expunge_block): Ditto.
7183         (cached_make_edge): Ditto.
7184
7185         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
7186
7187 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
7188
7189         * et-forest.c: Include alloc-pool.h.
7190         (struct et_forest): Add node_pool and occur_pool.
7191         (et_forest_create): Create the new pools.
7192         (et_forest_delete): Delete them.
7193         (et_forest_add_node): Allocate and free using pools.
7194         (et_forest_add_edge): Ditto.
7195         (et_forest_remove_node): Ditto.
7196         (et_forest_remove_edge): Ditto.
7197
7198         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
7199
7200 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
7201
7202         * config/h8300/h8300.c (output_logical_op): Simplify and
7203         optimize the handling of SImode.
7204         * config/h8300/h8300.c (compute_logical_op_length): Update
7205         accordingly.
7206         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
7207
7208 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
7209
7210         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
7211         big-endian correction to indirect arguments too.
7212
7213 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
7214
7215         Segher Boessenkool  <segher@koffie.nl>
7216
7217         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
7218         (alt_reg_names): Ditto, fix formatting.
7219         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
7220
7221 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
7222
7223         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
7224         (output_logical_op): Constify intval and det.
7225         (compute_logical_length): Likewise.
7226         (compute_logical_cc): Likewise.
7227         (output_a_shift): Constify mask.
7228         (h8300_encode_label): Constify len.
7229
7230 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
7231
7232         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
7233         (h8300_expand_epilogue): Likewise.
7234
7235 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
7236
7237         Segher Boessenkool  <segher@koffie.nl>
7238
7239         * config/rs6000/altivec.md: Remove spaces from assembler
7240         instruction argument lists.
7241
7242 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7243
7244         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
7245         c4x_assembler_function_p.
7246         (c4x_null_epilogue_p): Complement return value, all uses updated.
7247         (c4x_insert_attributes): Add naked.
7248         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
7249         * doc/extend.texi: Update C4x function attributes.
7250
7251 2003-01-06  Richard Henderson  <rth@redhat.com>
7252
7253         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
7254         properly when changing "local-ness".
7255         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
7256
7257 2003-01-06  Dale Johannesen  <dalej@apple.com>
7258
7259         * config/darwin-protos.h:  Add prototypes for new section functions.
7260
7261 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
7262
7263         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
7264         to EABI.
7265
7266 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
7267
7268         * hwint.h: If the current compiler has no 64-bit type at all,
7269         make HOST_WIDEST_INT 32 bits.
7270
7271 2003-01-06  Eric Christopher  <echristo@redhat.com>
7272
7273         * config/mips/mips.md (movdf_internal2): Fix constraints.
7274
7275 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
7276
7277         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
7278
7279 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
7280
7281         * config/mips/mips.md (leadi): Use dla rather than la.
7282
7283 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
7284
7285         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
7286         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
7287
7288 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
7289
7290         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
7291         redefinition.
7292
7293 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
7294
7295         * config/h8300/h8300.md (*extzv_8_23): New.
7296
7297 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7298
7299         * pa64-hpux.h (JCR_SECTION_NAME): Define.
7300         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
7301         USE_EH_FRAME_REGISTRY when defining.
7302
7303 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
7304
7305         * config/h8300/h8300.c (output_a_shift): Do not output a
7306         variable shift.
7307         * config/h8300/h8300.md (two splitters): New.
7308
7309 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
7310
7311         * config/mips/mips.md: Disable the movstrsi define_split.
7312
7313 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7314
7315         * alloc-pool.c: Don't include "libiberty.h".
7316         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
7317         * convert.c (convert_to_real): Hide unused variable.
7318
7319 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7320
7321         * Makefile.in (gtyp-gen.h): Const-ify.
7322         * gcov-dump.c (tag_table): Likewise.
7323
7324 2003-01-04  Bruce Korb  <bkorb@gnu.org>
7325
7326         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
7327         of *both* the file name and the fix name.
7328
7329 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
7330
7331         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
7332         collect2.
7333         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
7334         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
7335         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
7336         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
7337         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
7338         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
7339         elfos.h.
7340         (EH_FRAME_IN_DATA_SECTION): Delete define.
7341         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
7342         (STARTFILE_SPEC): Use crtbegin.o.
7343         (ENDFILE_SPEC): Use crtend.o.
7344         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
7345         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
7346         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
7347         DTOR_LIST_BEGIN): Define.
7348         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
7349         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
7350         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
7351
7352 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
7353
7354         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
7355         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
7356         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
7357         Cleanup handling of replacement text.
7358         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
7359
7360 2003-01-04  Bruce Korb  <bkorb@gnu.org>
7361
7362         * fixinc/tests/base/math.h: removed obsolete results
7363         * fixinc/tests/base/stdlib.h: ditto
7364         * fixinc/tests/base/sys/param.h: ditto
7365         * fixinc/tests/base/sys/stat.h: ditto
7366         * fixinc/tests/base/time.h: ditto
7367         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
7368         * fixinc/tests/base/sys/byteorder.h: ditto
7369         * fixinc/inclhack.def: Remove superfluous backslashes
7370
7371 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
7372
7373         * config/h8300/h8300-protos.h: Add prototypes for
7374         the new functions defined below.
7375         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
7376         define.
7377         (dosize): Emit RTL instead of assembly code.
7378         (push): Likewise.
7379         (pop): Likewise.
7380         (h8300_output_function_prologue): Remove.
7381         (h8300_expand_prologue): New.
7382         (h8300_expand_epilogue): New.
7383         (h8300_output_function_epilogue): Do only the reset of
7384         pragma_saveall.
7385         * config/h8300/h8300.md (push_h8300): New.
7386         (push_h8300hs): Likewise.
7387         (pop_h8300): Likewise.
7388         (pop_h8300hs): Likewise.
7389         (*stm_h8300s_2): Change the name to stm_h8300s_2.
7390         (*stm_h8300s_3): Change the name to stm_h8300s_3.
7391         (*stm_h8300s_4): Change the name to stm_h8300s_4.
7392         (*ldm_h8300s_2): New.
7393         (*ldm_h8300s_3): Likewise.
7394         (*ldm_h8300s_4): Likewise.
7395         (return): Likewise.
7396         (*return_1): Likewise.
7397         (prologue): Likewise.
7398         (epilogue): Likewise.
7399         (monitor_prologue): Likewise.
7400
7401 2003-01-03  Dale Johannesen  <dalej@apple.com>
7402
7403         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
7404           machopic_picsymbol_stub1.
7405           (EXTRA_SECTION_FUNCTIONS):  Ditto.
7406         * rs6000/rs6000.c:  Update copyright.
7407           (machopic_output_stub):  Use them.  Remove an insn from stub code.
7408
7409 2003-01-02  Jason Merrill  <jason@redhat.com>
7410
7411         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
7412
7413         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
7414         static/external decls.
7415
7416         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
7417         outermost scope.
7418         * c-decl.c (c_make_fname_decl): Push the decls there, too.
7419
7420 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
7421
7422         * config/h8300/h8300-protos.h: Add a prototype for
7423         h8300_current_function_interrupt_function_p.
7424         * config/h8300/h8300.c (interrupt_handler): Remove.
7425         (os_task): Likewise.
7426         (monitor): Likewise.
7427         (pragma_interrupt): New.
7428         (WORD_REG_USED): Use
7429         h8300_current_function_interrupt_function_p.
7430         (dosize): Likewise.
7431         (h8300_output_function_prologue): Likewise.
7432         Do not set interrupt_handler, os_task, monitor.
7433         (h8300_output_function_prologue): Use
7434         h8300_current_function_interrupt_function_p.
7435         Do not set interrupt_handler, os_task, monitor.
7436         (h8300_current_function_interrupt_function_p): New.
7437         (h8300_pr_interrupt): Set pragma_interrupt.
7438         (h8300_insert_attributes): Reset pragma_interrupt.
7439
7440 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7441
7442         * doc/install.texi (Configuration): Fix markup for reference to
7443         gcc/config.gcc.
7444
7445 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
7446
7447         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
7448         (*iorhi3_two_qi): Likewise.
7449         (*iorsi3_zexthi): Likewise.
7450         (*xorhi3_zextqi): Likewise.
7451         (*xorsi3_zexthi): Likewise.
7452         (*xorsi3_zextqi): Likewise.
7453
7454 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
7455
7456         * config/h8300/h8300.c (stack_pointer_operand): New.
7457         (const_int_gt_2_operand): Likewise.
7458         (const_int_ge_8_operand): Likewise.
7459         * config/h8300/h8300.md (a splitter): Likewise.
7460         (a peephole2): Likewise.
7461         * config/h8300/h8300-protos.h: Add prototypes for the new
7462         functions above.
7463
7464 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
7465
7466         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
7467         objc/objc-act.h: Fix copyright years.
7468
7469 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
7470
7471         * doc/passes.texi: Fix documentation for -fssa-ccp
7472
7473 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
7474
7475         * gccbug.in: Update for new categories.
7476
7477 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
7478
7479         * config/h8300/h8300.md: Reorder some patterns.
7480
7481 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
7482
7483         * config/h8300/h8300.c (output_logical_op): Fix a warning.
7484
7485 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
7486
7487         * config/darwin-protos.h, config/c4x/c4x-protos.h,
7488         config/cris/cris-protos.h, config/i370/i370-protos.h,
7489         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
7490         config/v850/v850-protos.h: Use struct, and don't conditionally
7491         compile on GCC_C_PRAGMA_H.
7492
7493 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
7494
7495         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
7496         * config/h8300/h8300-protos.h: Likewise.
7497         * config/sh/sh-protos.h: Likewise.
7498
7499 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
7500
7501         * config/arm/arm-protos.h: Use struct cpp_reader instead of
7502         cpp_reader.
7503         * config/h8300/h8300-protos.h: Likewise.
7504         * config/sh/sh-protos.h: Likewise.
7505
7506 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
7507
7508         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
7509         arm_pr_long_calls_off): Use struct.
7510         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
7511         : Similarly.
7512         Don't include cpplib.h.
7513         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
7514         sh_pr_nosave_low_regs): Similarly.
7515
7516 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
7517
7518         * config/h8300/h8300.c: Include cpplib.h.
7519
7520 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
7521
7522         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
7523           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
7524           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
7525           "GCC" in the copyright header.
7526
7527 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
7528
7529         * c-pragma.c (c_register_pragma): New.
7530         (init_pragma): Use it.
7531         * c-pragma.h (cpp_register_pragma): Don't declare.
7532         (c_register_pragma): New.
7533         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
7534         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
7535         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
7536         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
7537         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
7538         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
7539         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
7540         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
7541         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
7542         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
7543         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
7544         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
7545
7546 2002-12-31  Kazu Hirata  <kazu@cs.umass.edu>
7547
7548         * config/h8300/h8300-protos.h: Update the prototypes.
7549         * config/h8300/h8300.c (const_le_2_operand): Change to
7550         const_int_le_2_operand.
7551         (const_int_le_6_operand): Change to const_int_le_6_operand.
7552         * config/h8300/h8300.md (two peepholes): Update the function
7553         names.
7554
7555 2002-12-31  Tom Tromey  <tromey@redhat.com>
7556
7557         * doc/install.texi (Testing): Fixed typo.
7558
7559 2002-12-31  Kazu Hirata  <kazu@cs.umass.edu>
7560
7561         * config/h8300/h8300.h (TRAMPOLINE_TEMPLATE): Remove.
7562         (TRAMPOLINE_SIZE): Support the normal mode.
7563         (INITIALIZE_TRAMPOLINE): Emit the entire trampoline.
7564
7565 2002-12-31  Mark Mitchell  <mark@codesourcery.com>
7566
7567         * c-common.h (pending_lang_change): Declare.
7568
7569 2002-12-31  Jerry Quinn  <jlquinn@optonline.net>
7570
7571         * gcc/doc/invoke.texi (Optimization Options): Clean up -O flag
7572         descriptions.
7573
7574 2002-12-31  Jerry Quinn  <jlquinn@optonline.net>
7575
7576         * gcc/doc/invoke.texi (Optimization Options): List the options
7577         enabled by each -O flag.
7578
7579 2002-12-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7580
7581         * doc/install.texi (Configuration): Explicitly refer
7582         gcc/config.gcc for a list of cpu models.
7583
7584 2002-12-31  Kazu Hirata  <kazu@cs.umass.edu>
7585
7586         * config/h8300/h8300.h: Fix comment typos.
7587
7588 2002-12-30  David Edelsohn  <edelsohn@gnu.org>
7589
7590         * config/rs6000/rs6000.h (WIDEST_HARDWARE_FP_SIZE): Define.
7591
7592 2002-12-30  Tom Tromey  <tromey@redhat.com>
7593
7594         * doc/install.texi (Testing): Mention Jacks.
7595
7596 2002-12-30  Joseph S. Myers  <jsm@polyomino.org.uk>
7597
7598         * doc/gcc.texi, doc/gccint.texi: Update last modification dates.
7599
7600 2002-12-30  Kazu Hirata  <kazu@cs.umass.edu>
7601
7602         * config/h8300/h8300.c (output_logical_op): Use extu.w in more
7603         cases.
7604         (compute_logical_op_length): Update to reflect the change in
7605         output_logical_op.
7606         (compute_logical_op_cc): Likewise.
7607
7608 2002-12-30  Joseph S. Myers  <jsm@polyomino.org.uk>
7609
7610         * doc/service.texi: Uncomment and update FAQ link.
7611
7612 2002-12-30  Andreas Jaeger  <aj@suse.de>
7613
7614         * unwind-dw2-fde.h (last_fde): Add unused attribute for obj.
7615
7616 2002-12-30  Kazu Hirata  <kazu@cs.umass.edu>
7617
7618         * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): New.
7619
7620 2002-12-30  Kazu Hirata  <kazu@cs.umass.edu>
7621
7622         * config/h8300/h8300.c (output_logical_op): Use extu.w if we
7623         are clearing the most significant byte.
7624         (compute_logical_op_length): Update to reflect the change in
7625         output_logical_op.
7626         (compute_logical_op_cc): Likewise.
7627
7628 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
7629
7630         * config/h8300/h8300.md: Give internal names to anonymous
7631         insns.
7632
7633 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
7634
7635         * config/h8300/h8300.md: Reorder some insns.
7636
7637 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
7638
7639         * config/h8300/h8300-protos.h: Add prototypes for
7640         const_int_qi_operand and const_int_hi_operand.
7641         * config/h8300/h8300.c (const_int_qi_operand): New.
7642         (const_int_hi_operand): Likewise.
7643         * config/h8300/h8300.md (three peepholes): New.
7644
7645 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
7646
7647         * doc/cpp.texi, doc/gcc.texi, doc/gccint.texi, doc/install.texi:
7648         Use @copying.
7649
7650 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
7651
7652         * configure.in: Increase makeinfo version requirement to 4.[2-9].
7653         * configure: Regenerate.
7654         * doc/install.texi: Update Texinfo version requirement.
7655
7656 2002-12-28  Andreas Jaeger  <aj@suse.de>
7657
7658         * config/i386/i386.c (x86_function_profiler): Mark labelno as
7659         possibly unused.
7660
7661         * c-parse.in (yyprint): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX for
7662         correct format.
7663
7664 2002-12-27  Kazu Hirata  <kazu@cs.umass.edu>
7665
7666         * config/h8300/h8300.md (*iorhi_shift_8): Change the name to
7667         *iorhi_ashift_8.
7668         (*iorhi_lshiftrt_8): New.
7669
7670 2002-12-27  Joseph S. Myers  <jsm@polyomino.org.uk>
7671
7672         * doc/include/texinfo.tex: Update to version 2002-12-26.16.
7673
7674 2002-12-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7675
7676         * doc/contrib.texi (Contributors): Add Abramo and Roberto Bagnara.
7677
7678 2002-12-26  Kazu Hirata  <kazu@cs.umass.edu>
7679
7680         * config/h8300/h8300-protos.h: Fix comment typos.
7681         Update copyright.
7682         * config/h8300/h8300.c: Fix comment typos.
7683
7684 2002-12-26  Kazu Hirata  <kazu@cs.umass.edu>
7685
7686         * config/h8300/h8300.h (IDENT_ASM_OP): End with a tab.
7687
7688 2002-12-26  Kazu Hirata  <kazu@cs.umass.edu>
7689
7690         * config/i386/athlon.md: Fix comment typos.
7691         * config/i386/crtdll.h: Likewise.
7692         * config/i386/djgpp.h: Likewise.
7693         * config/i386/i386-interix.h: Likewise.
7694         * config/i386/i386.c: Likewise.
7695         * config/i386/i386.h: Likewise.
7696         * config/i386/i386.md: Likewise.
7697         * config/i386/k6.md: Likewise.
7698         * config/i386/mingw32.h: Likewise.
7699         * config/i386/pentium.md: Likewise.
7700         * config/i386/sco5.h: Likewise.
7701         * config/i386/winnt.c: Likewise.
7702         * config/i386/xmmintrin.h: Likewise.
7703
7704 2002-12-26  Jose Renau <renau@cs.uiuc.edu>
7705
7706         * ssa-dce.c (EXECUTE_IF_UNNECESSARY): Verify INSN is an
7707         INSN_P before checking to see if it is dead.
7708         (mark_all_insn_unnecessary): Similarly.
7709         (ssa_eliminate_dead_code): Similarly.
7710         * rtl.h (struct rtx_def): Update comments for in_struct usage
7711         in dead code elimination pass.
7712         (INSN_DEAD_CODE_P): Allow JUMP_INSN and CALL_INSN as well.
7713
7714 2002-12-26  Andreas Schwab  <schwab@suse.de>
7715
7716         * config.gcc (powerpc*-*-*, rs6000-*-*): Fix assignment syntax.
7717
7718 2002-12-25  David Edelsohn  <edelsohn@gnu.org>
7719
7720         * config/rs6000/rs6000.c (rs6000_override_options): Convert to
7721         tartet_flags_explicit.
7722         * config/rs6000/rs6000.h (MASK_MULTIPLE_SET, MASK_STRING_SET): Delete.
7723         Compact target_flags bits.
7724         (TARGET_MULTIPLE_SET, TARGET_STRING_SET): Delete.
7725         (TARGET_SWITCHES): Delete references to *_SET flags.
7726
7727 Wed Dec 25 20:30:53 CET 2002  Jan Hubicka  <jh@suse.cz>
7728
7729         * i386.md (memory attribute): Fix setcc attribute.
7730
7731 2002-12-25  Kazu Hirata  <kazu@cs.umass.edu>
7732
7733         * output.h: Fix comment typos.
7734         * predict.c: Likewise.
7735         * print-tree.c: Likewise.
7736         * profile.c: Likewise.
7737         * ra-build.c: Likewise.
7738         * ra-colorize.c: Likewise.
7739         * ra-debug.c: Likewise.
7740         * ra-rewrite.c: Likewise.
7741         * ra.c: Likewise.
7742         * ra.h: Likewise.
7743         * real.c: Likewise.
7744         * recog.c: Likewise.
7745         * reg-stack.c: Likewise.
7746         * regclass.c: Likewise.
7747
7748 2002-12-25  Kazu Hirata  <kazu@cs.umass.edu>
7749
7750         * config/h8300/h8300.c (print_operand_address): Do not negate
7751         a negative number when printing one.
7752
7753 2002-12-25  Kazu Hirata  <kazu@cs.umass.edu>
7754
7755         * config/h8300/h8300-protos.h: Add prototypes for
7756         output_plussi, compute_plussi_length, and compute_plussi_cc.
7757         * config/h8300/h8300.c (output_plussi): New.
7758         (compute_plussi_length): Likewise.
7759         (compute_plussi_cc): Likewise.
7760         * config/h8300/h8300.md (addsi_h8300h): Call
7761         output_plussi, compute_plussi_length, and compute_plussi_cc.
7762
7763 2002-12-24  Kazu Hirata  <kazu@cs.umass.edu>
7764
7765         * config/h8300/h8300.md (two peepholes): Use match_dup instead
7766         of match_operand in the new patterns.
7767
7768 2002-12-24  Joseph S. Myers  <jsm@polyomino.org.uk>
7769
7770         * doc/include/texinfo.tex: Update to version 2002-11-25.11.
7771
7772 2002-12-24  Nathan Sidwell  <nathan@codesourcery.com>
7773
7774         * configure.in (enable-coverage): Add SELF_COVERAGE.
7775         * profile.c (end_branch_prob): Use SELF_COVERAGE.
7776
7777 2002-12-24  Jim Wilson  <wilson@redhat.com>
7778
7779         * alias.c (record_set): Handle multi-reg hard registers.
7780
7781 2002-12-24  Kazu Hirata  <kazu@cs.umass.edu>
7782
7783         * regmove.c: Fix comment typos.
7784         * reload.c: Likewise.
7785         * reload1.c: Likewise.
7786         * resource.c: Likewise.
7787         * rtl.def: Likewise.
7788         * rtl.h: Likewise.
7789         * rtlanal.c: Likewise.
7790         * sched-deps.c: Likewise.
7791         * sched-rgn.c: Likewise.
7792         * sibcall.c: Likewise.
7793         * simplify-rtx.c: Likewise.
7794         * ssa-ccp.c: Likewise.
7795         * ssa.c: Likewise.
7796         * stmt.c: Likewise.
7797         * stor-layout.c: Likewise.
7798         * system.h: Likewise.
7799         * tlink.c: Likewise.
7800         * toplev.c: Likewise.
7801         * tracer.c: Likewise.
7802         * tree-inline.c: Likewise.
7803         * tree.c: Likewise.
7804         * tree.h: Likewise.
7805         * unroll.c: Likewise.
7806         * varasm.c: Likewise.
7807
7808 2002-12-23  Larin Hennessy  <larin@science.oregonstate.edu>
7809
7810         * doc/install.texi: Remove i386-*-isc, i860-*-bsd,
7811         m68k-altos-sysv, m68k-isi-bsd, m68k-sony-bsd entries.
7812         * doc/invoke.texi: Remove AMD 29K, ARM RISC/iX, Clipper, Convex,
7813         DG/UX entries.
7814         * doc/md.texi: Remove AMD 29K entries.
7815         * doc/trouble.texi: Remove Alliant, DG/UX, Iris 4.0.5F, GAS
7816         1.38.1, NewsOS, RT PC, WE32K entries.
7817
7818 2002-12-23  Aldy Hernandez  <aldyh@redhat.com>
7819
7820         PR/8763
7821         * config/rs6000/altivec.md (mulv4sf3): Rewrite to add -0.0 vector.
7822         (altivec_vspltisw_v4sf): Name pattern.
7823         (altivec_vslw_v4sf): New pattern.
7824
7825 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
7826
7827         * doc/include/gcc-common.texi: Define DEVELOPMENT.
7828
7829 2002-12-23  Mark Mitchell  <mark@codesourcery.com>
7830
7831         * stor-layout.c (update_alignment_for_field): Correct handling of
7832         unnamed bitfields on PCC_BITFIELD_TYPE_MATTERS machines.
7833         * doc/tm.texi (PCC_BITFIELD_TYPE_MATTERS): Note that an unnamed
7834         bitfield does not affect alignment.
7835
7836 2002-12-23  David Edelsohn  <edelsohn@gnu.org>
7837
7838         * expr.c (expand_assignment): Apply special treatment to
7839         ARRAY_TYPE.
7840
7841 2002-12-23  Kazu Hirata  <kazu@cs.umass.edu>
7842
7843         * config/h8300/h8300-protos.h: Update the prototype of
7844         expand_a_shift.
7845         * config/h8300/h8300.c (expand_a_shift): Change the return
7846         type to void.
7847         * config/h8300/h8300.md: Update all the uses of
7848         expand_a_shift.
7849
7850 2002-12-22  Nathan Sidwell  <nathan@codesourcery.com>
7851
7852         * tree.c (save_expr): Allow either side of a dyadic operand to be
7853         constant.
7854
7855         * doc/portability.texi (portability): Update portability goals.
7856
7857 2002-12-23  Kazu Hirata  <kazu@cs.umass.edu>
7858
7859         * config/h8300/h8300.c (output_a_shift): Remove unused code.
7860
7861 2002-12-22  Mark Mitchell  <mark@codesourcery.com>
7862
7863         * stor-layout.c (update_alignment_for_field): Guard use of
7864         ADJUST_FIELD_ALIGN with #ifdef.
7865
7866         * stor-layout.c (update_alignment_for_field): Use
7867         ADJUST_FIELD_ALIGN when computing the alignment for a zero-width
7868         bitfield when PCC_BITFIELD_TYPE_MATTERS.
7869
7870 2002-12-22  Kazu Hirata  <kazu@cs.umass.edu>
7871
7872         * genautomata.c: Fix comment typos.
7873
7874 Sun Dec 22 18:23:44 CET 2002  Jan Hubicka  <jh@suse.cz>
7875
7876         * params.def (tracer-min-branch-probability-feedback): Fix default.
7877         * final.c (compute_alignments): Use profile to avoid code bloat.
7878
7879 2002-12-22  Kazu Hirata  <kazu@cs.umass.edu>
7880
7881         * config/h8300/h8300.c (get_shift_alg): Make shift insn
7882         sequences end with a valid cc0 whenever possible.
7883
7884 2002-12-22  Kazu Hirata  <kazu@cs.umass.edu>
7885
7886         * config/h8300/h8300.md (negsf2): New.
7887         (*negsf2_h8300): Likewise.
7888         (*negsf2_h8300hs): Likewise.
7889
7890 2002-12-21  Geoffrey Keating  <geoffk@apple.com>
7891
7892         * integrate.c (output_inline_function): Don't hold private
7893         pointers to 'struct function' over GC calls.
7894
7895 2002-12-21  Kaz kojima  <kkojima@gcc.gnu.org>
7896
7897         * config/sh/lib1funcs.asm (__fpscr_values): Conditionalize with
7898         NO_FPSCR_VALUES.
7899         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Add -DNO_FPSCR_VALUES.
7900
7901 2002-12-21  Kazu Hirata  <kazu@cs.umass.edu>
7902
7903         * config/h8300/h8300.md (zero_extendqisi2): Correct the
7904         length.
7905
7906 2002-12-21  Kazu Hirata  <kazu@cs.umass.edu>
7907
7908         * config/h8300/h8300.md (*zero_extendqihi2_h8300): Make the
7909         second alternative "#".
7910         (*zero_extendqihi2_h8300hs): Likewise.
7911         (a define_split): New.
7912
7913 2002-12-21  Kazu Hirata  <kazu@cs.umass.edu>
7914
7915         * config/h8300/h8300-protos.h: Update the prototype for
7916         split_adds_subs.
7917         Add prototypes for const_le_2_operand and const_le_6_operand.
7918         * config/h8300/h8300.c (split_adds_subs): Add an argument to
7919         specify whether inc/dec should be used when possible.
7920         (const_le_2_operand): New.
7921         (const_le_6_operand): Likewise.
7922         * config/h8300/h8300.md (two peepholes): New.
7923
7924 2002-12-21  Kazu Hirata  <kazu@cs.umass.edu>
7925
7926         * config/fr30/fr30.md: Fix a comment typo.
7927         * config/i386/i386.c: Likewise.
7928         * config/ip2k/ip2k.h: Likewise.
7929
7930 2002-12-20  Jim Wilson  <wilson@redhat.com>
7931
7932         * config/rs6000/spe.h (__ev_subifw): Reverse arguments.
7933         (__ev_subw, __ev_subiw): New.
7934         (ev_mwlssf, ev_mwlsmf, ev_mwlssfa, ev_mwlsmfa, ev_mwlssfaaw,
7935         ev_mwlsmfaaw, ev_mwlssfanw, ev_mwlsmfanw): Delete.
7936
7937 2002-12-20  John David Anglin  <dave.anglin@nrc.gc.ca>
7938
7939         * pa-linux.h (TARGET_HAS_STUBS_AND_ELF_SECTIONS): Delete define.
7940         * pa32-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete define.
7941         * pa.c (pa_function_ok_for_sibcall): Allow non indirect sibcalls on
7942         TARGET_ELF32.  Add comment on sibcall issues for TARGET_64BIT.
7943
7944 2002-12-20  Kazu Hirata  <kazu@cs.umass.edu>
7945
7946         * config/h8300/h8300-protos.h: Add prototypes for
7947         incdec_operand and eqne_operator.
7948         * config/h8300/h8300.c (incdec_operand): New.
7949         (eqne_operator): Likewise.
7950         * config/h8300/h8300.h (CONST_OK_FOR_M): Likewise.
7951         (CONST_OK_FOR_O): Likewise.
7952         (CONST_OK_FOR_LETTER_P): Use CONST_OK_FOR_M and
7953         CONST_OK_FOR_O.
7954         * config/h8300/h8300.md (UNSPEC_INCDEC): New.
7955         (addhi3_incdec): New.
7956         (addsi3_incdec): Likewise.
7957         (two peepholes): Likewise.
7958
7959 2002-12-20  Kazu Hirata  <kazu@cs.umass.edu>
7960
7961         * config/h8300/h8300.c (dosize): Remove warnings.
7962         (print_operand): Likewise.
7963
7964 2002-12-20  Richard Henderson  <rth@redhat.com>
7965
7966         * config/alpha/alpha.c (decl_has_samegp): New.
7967         (samegp_function_operand): Use it.  Rename from
7968         current_file_function_operand.
7969         (direct_call_operand): Handle -msmall-text via symbol->jump.
7970         (tls_symbolic_operand_1): Use T for tprel64, t for smaller tprel.
7971         (tls_symbolic_operand_type): Likewise.
7972         (alpha_encode_section_info): Likewise.  Handle -msmall-text.
7973         (alpha_function_ok_for_sibcall): Use decl_has_samegp.
7974         (alpha_end_function): Set symbol->jump for functions defined in
7975         the text section.
7976         * config/alpha/alpha-protos.h: Update.
7977         * config/alpha/alpha.h (MASK_SMALL_TEXT, TARGET_SMALL_TEXT): New.
7978         (TARGET_SWITCHES): Add -msmall-text and -mlarge-text.
7979         (PREDICATE_CODES): Update.
7980         * config/alpha/alpha.md (call patterns): Update for
7981         samegp_function_operand rename; use !samegp reloc if
7982         TARGET_EXPLICIT_RELOCS.
7983         * doc/invoke.text: Document -msmall-text and -mlarge-text.
7984
7985 2002-12-20  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
7986
7987         * config/ns32k/ns32k.md (movdi): Use "l" instead of "f" to match
7988         all registers capable of holding a double float.
7989         (*rcond): change name of "reverse branch" insns to
7990         something more meaningful.
7991         (*rbgt, *rblt, *rbge, *rble): Reverse branches to handle IEEE
7992         comparisons properly.
7993         (*ffs): Change operand 0 from write to read-modify-write.
7994         (*ffsssi2): Drop constraints from define_expand.
7995
7996         * config/ns32k/ns32k.h (STORE_RATIO, STORE_BY_PIECES): Avoid using
7997         MOVE_RATIO as default for store operations.
7998
7999         * config/ns32k/ns32k.h (enum reg_class, REG_CLASS_NAMES): Add
8000         LONG_REGS class.
8001         (CANNOT_CHANGE_MODE_CLASS): Can't subreg LONG_REGS.
8002         (GO_IF_LEGITIMATE_ADDRESS): Remove spurious abort().
8003         * config/ns32k/ns32k.c (regclass_map): Add LONG_REGS class.
8004
8005         * config/ns32k/STATUS: New File
8006         * config/ns32k/NOTES: New file.
8007
8008 2002-12-20  Hartmut Penner  <hpenner@de.ibm.com>
8009
8010         * doc/invoke.texi: Document -mzarch, -mesa, -mcpu= and -march=
8011         option for S/390 and zSeries.
8012         * config/s390/s390.c (s390_cpu, s390_cpu_string, s390_arch,
8013         s390_arch_string): New variables.
8014         (override_options): Checking for options and setting of
8015         appropriate target_flags, cpu and arch flags.
8016         * config/s390/s390.h: (processor_type): New enum.
8017         (TARGET_SWITCHES): New switches -mesa/zarch.
8018         * config/s390/s390.md: New attribute 'cpu'.
8019
8020 2002-12-19  Kazu Hirata  <kazu@cs.umass.edu>
8021
8022         * c-pretty-print.h: Fix comment typos.
8023         * integrate.c: Likewise.
8024         * varasm.c: Likewise.
8025         * config/c4x/c4x.h: Likewise.
8026         * config/c4x/c4x.md: Likewise.
8027         * config/fr30/fr30.md: Likewise.
8028         * config/frv/frv.c: Likewise.
8029         * config/h8300/h8300.c: Likewise.
8030         * config/i386/i386.c: Likewise.
8031         * config/i386/i386.h: Likewise.
8032         * config/ia64/ia64.c: Likewise.
8033         * config/ia64/ia64.h: Likewise.
8034         * config/ip2k/ip2k.md: Likewise.
8035         * config/m68hc11/m68hc11-crt0.S: Likewise.
8036         * config/m68hc11/m68hc11.h: Likewise.
8037         * config/m68hc11/m68hc11.md: Likewise.
8038         * config/m68hc11/m68hc12.h: Likewise.
8039         * config/mcore/mcore.md: Likewise.
8040         * config/mips/mips.c: Likewise.
8041         * config/mips/mips.md: Likewise.
8042         * config/mmix/mmix-modes.def: Likewise.
8043         * config/pa/pa.c: Likewise.
8044         * config/rs6000/rs6000.c: Likewise.
8045         * config/rs6000/rs6000.h: Likewise.
8046         * config/rs6000/rs6000.md: Likewise.
8047
8048 2002-12-19  Kazu Hirata  <kazu@cs.umass.edu>
8049
8050         * config/h8300/h8300.md (output_a_shift): Clean up the code to
8051         output shifts using rotation.
8052
8053 2002-12-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8054
8055         * flow.c (allocate_reg_life_data): Reset REG_FREQ.
8056
8057 2002-12-19  Kazu Hirata  <kazu@cs.umass.edu>
8058
8059         * config/h8300/h8300.md (pushqi_h8300): Don't push the stack
8060         pointer.
8061         (pushqi_h8300hs): Likewise.
8062         (pushhi_h8300): Likewise.
8063         (pushhi_h8300hs): Likewise.
8064
8065 Thu Dec 19 23:44:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
8066
8067         * sched-rgn.c (init_regions): Update comment.
8068
8069 2002-12-19  David Edelsohn  <edelsohn@gnu.org>
8070
8071         * config/rs6000/rs6000.md (define_attr type): Remove altivec.
8072         * config/rs6000/altivec.md (movv4si_internal): Set correct instruction
8073         attributes.
8074         (movv8hi_internal,movv16qi_internal,movv4sf_internal): Same.
8075         (get_vrsave_internal,set_vrsave_internal): Same.
8076         (altivec_vspltisb,altivec_vspltish,altivec_vspltisw): Same.
8077         (absv16qi2,absv8hi2,absv4si2,absv4sf2): Same
8078         (altivec_abss_v16qi,altivec_abss_v8hi,altivec_abss_v4si): Same.
8079
8080 2002-12-19  Casper S. Hornstrup  <chorns@users.sourceforge.net>
8081             Danny Smith  <dannysmith@users.sourceforge.net>
8082             Eric Kohl  <ekohl@rz-online.de>
8083
8084         * config/i386/i386.c (ix86_handle_cdecl_attribute): Check for
8085         attributes incompatible with fastcall attribute.
8086         (ix86_handle_regparm_attribute): Likewise.
8087
8088         * config/i386/i386.c (ix86_comp_type_attributes): Check for mismatched
8089         fastcall types.
8090
8091         * config/i386/cygwin.h (TARGET_OS_CPP_BUILTINS): Add fastcall
8092         attributes.
8093         (ASM_OUTPUT_LABELREF): Define as i386_pe_output_labelref.
8094         * config/i386/i386-protos.h (i386_pe_output_labelref): Declare.
8095         * config/i386/winnt.c (i386_pe_mark_dllimport). Add __imp_ prefix in
8096         i386_pe_output_labelref rather than here.
8097         (gen_fastcall_suffix): New function. Decorates a label name with the
8098         fastcall prefix (@) and the stdcall suffix.
8099         (i386_pe_encode_section_info): Call gen_fastcall_suffix() if a symbol
8100         has a fastcall attribute.
8101         (i386_pe_output_labelref): New function. Outputs a label reference.
8102         * config/i386/i386.c (ix86_attribute_table): Accept 'fastcall' as a
8103         valid attribute.
8104         (ix86_return_pops_args): Fastcall functions pop the stack.
8105         (init_cumulative_args): Reserve registers ECX and EDX if function has
8106         fastcall attribute.
8107         (function_arg): Use registers ECX and EDX if function has fastcall
8108         attribute.
8109         * config/i386/i386.h (CUMULATIVE_ARGS): Add fastcall attribute flag.
8110         (DLL_IMPORT_EXPORT_PREFIX): Redefine as '#'.
8111         (FASTCALL_PREFIX): Define as '@'.
8112         * config/i386/mingw32.h (TARGET_OS_CPP_BUILTINS): Add fastcall
8113         attributes.
8114         * doc/extend.texi: Add documentation of fastcall attribute.
8115
8116 2002-12-19  Nathanael Nerode  <neroden@gcc.gnu.org>
8117
8118         * configure.in: FORBUILD when build!=host changed from
8119         ../$build-alias to ../build-$build_alias to match change made
8120         in top directory.
8121         * configure: Regenerated.
8122
8123 2002-12-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
8124
8125         PR optimization/8988
8126         * loop.c (maybe_eliminate_biv): Kill REG_EQUAL notes mentioning
8127         the biv when eliminating.
8128
8129 2002-12-19  Devang Patel  <dpatel@apple.com>
8130         * gcc.c (struct default_compiler): Recognizes input file name with
8131         .CPP extension as C++ source files
8132         * cp/lang-spec.h: Same
8133         * doc/invoke.texi:  Add documentation for .CPP support.
8134
8135 2002-12-19  Aldy Hernandez  <aldyh@redhat.com>
8136
8137         PR 8553
8138         * config/rs6000/altivec.md ("absv8hi2"): Add & to clobbered
8139         registers.
8140         ("absv16qi2"): Same.
8141         ("absv4si2"): Same.
8142         ("absv4sf2"): Same.
8143         ("altivec_abss_v16qi"): Same.
8144         ("altivec_abss_v8hi"): Same.
8145         ("altivec_abss_v4si"): Same.
8146
8147 2002-12-19  Ulrich Weigand  <uweigand@de.ibm.com>
8148
8149         * config/s390/s390.md ("*tsthiCCT", "*tsthiCCT_cconly",
8150         "*tstqiCCT", "*tstqiCCT_cconly"): New insns.
8151
8152 2002-12-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
8153
8154         PR target/8340
8155         * stmt.c (expand_asm_operands): Produce an error when
8156         the PIC register is clobbered.
8157
8158 2002-12-18  Daniel Berlin  <dberlin@dberlin.org>
8159
8160         * Makefile.in (OBJS): Add alloc-pool.o
8161         (alloc-pool.o): New object.
8162
8163         * alloc-pool.c: New file.
8164         * alloc-pool.h: New file.
8165
8166 2002-12-18  Loren James Rittle  <ljrittle@acm.org>
8167
8168         * gcc.c (validate_switches): Robustify against skipping past '\0'.
8169
8170 2002-12-18  Geoffrey Keating  <geoffk@apple.com>
8171
8172         * config.gcc: Set extra_objs in the generic Darwin rule,
8173         not in the machine-specific rules.
8174
8175 2002-12-19  Kazu Hirata  <kazu@cs.umass.edu>
8176
8177         * ChangeLog: Follow spelling conventions.
8178         * ChangeLog.2: Likewise.
8179         * ChangeLog.4: Likewise.
8180         * ChangeLog.5: Likewise.
8181         * cppexp.c: Likewise.
8182         * df.c: Likewise.
8183         * gcov.c: Likewise.
8184         * gengtype.c: Likewise.
8185         * reload1.c: Likewise.
8186         * sched-rgn.c: Likewise.
8187         * stmt.c: Likewise.
8188         * stor-layout.c: Likewise.
8189         * timevar.c: Likewise.
8190         * toplev.c: Likewise.
8191         * tree.h: Likewise.
8192         * varasm.c: Likewise.
8193         * config/fr30/fr30.md: Likewise.
8194         * config/i386/i386.c: Likewise.
8195         * config/ia64/ia64.c: Likewise.
8196         * config/pa/pa.c: Likewise.
8197
8198 2002-12-18  Roger Sayle  <roger@eyesopen.com>
8199
8200         * basic-block.h (flow_bb_inside_loop_p): Correct prototype.
8201
8202 2002-12-18  Aldy Hernandez  <aldyh@redhat.com>
8203
8204         PR 8551
8205         * config/rs6000/altivec.h (vec_cmplt macro): Reverse arguments in
8206         macro.
8207         (vec_cmplt C++ functions): Reverse arguments.
8208
8209 2002-12-18  Geoffrey Keating  <geoffk@apple.com>
8210
8211         * config/rs6000/t-rs6000: Move contents to t-fprules,
8212         add rules for dependencies of rs6000.o and to build rs6000-c.o
8213         * config/rs6000/t-fprules: New file from t-rs6000.
8214         * config/rs6000/t-beos: Remove soft-fp rules.
8215         * config/rs6000/t-ppccomm: Likewise.
8216         * config/rs6000/t-newas: Likewise.
8217         * config/rs6000/t-rs6000-c-rule: Delete.
8218         * config.gcc: Use t-fprules for rs6000/ ports when appropriate.
8219         Use t-rs6000 for all rs6000/ ports instead of t-rs6000-c-rule.
8220         Create generic Darwin rules.
8221
8222         * gengenrtl.c (gencode): Delete unnecessary rtl_obstack declaration.
8223
8224 2002-12-18  Doug Evans  <dje@sebabeach.org>
8225
8226         * m32r/m32r.c (addr24_operand): Fix arg to CONSTANT_POOL_ADDRESS_P
8227         and LIT_NAME_P.
8228         (move_src_operand): Remove compile-time warning.
8229         * m32r/m32r.h (ROUND_ADVANCE_ARG): Ditto.
8230
8231 2002-12-18  Jason Merrill  <jason@redhat.com>
8232
8233         * unwind-dw2-fde.c (frame_downheap): Split out from...
8234         (frame_heapsort): Here.
8235
8236 2002-12-17  Jason Merrill  <jason@redhat.com>
8237
8238         * tree.c (make_node): Don't set TREE_TYPE on 's' class nodes.
8239         (build1): Always set TREE_SIDE_EFFECTS on 's' class nodes.
8240
8241         * gcc.c (do_spec_1) ['W']: End any pending argument from the braces.
8242
8243         * calls.c (expand_call): Don't try to be clever about expanding
8244         the return slot address.
8245
8246 2002-12-18  Kaz kojima  <kkojima@gcc.gnu.org>
8247
8248         * config/sh/linux.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC):
8249         Define.
8250
8251 2002-12-17  Jason Merrill  <jason@redhat.com>
8252
8253         * genmultilib: Use 'cd ./foo'.
8254
8255 2002-12-17  Kazu Hirata  <kazu@cs.umass.edu>
8256
8257         * doc/c-tree.texi: Restore deliberate spelling mistakes.
8258
8259 2002-12-17  Kazu Hirata  <kazu@cs.umass.edu>
8260
8261         * doc/c-tree.texi: Fix typos and follow spelling conventions.
8262         * doc/cpp.texi: Likewise.
8263         * doc/extend.texi: Likewise.
8264         * doc/gty.texi: Likewise.
8265         * doc/install.texi: Likewise.
8266         * doc/invoke.texi: Likewise.
8267         * doc/md.texi: Likewise.
8268         * doc/passes.texi: Likewise.
8269         * doc/rtl.texi: Likewise.
8270         * doc/sourcebuild.texi: Likewise.
8271         * doc/tm.texi: Likewise.
8272
8273 2002-12-17  Jerry Quinn  <jlquinn@optonline.net>
8274
8275         * doc/invoke.texi: Minor spelling and grammar fixes.
8276
8277 2002-12-17  Ulrich Weigand  <uweigand@de.ibm.com>
8278
8279         * config/s390/s390.c (s390_output_constant_pool): Replace
8280         ASM_OUTPUT_INTERNAL_LABEL by (*targetm.asm_out.internal_label).
8281
8282 Tue Dec 17 09:47:57 CET 2002  Jan Hubicka  <jh@suse.cz>
8283
8284         * convert.c (convert_to_real): Disable function transformation for
8285         now.
8286
8287 2002-12-16  Geoffrey Keating  <geoffk@apple.com>
8288
8289         * gcc.c (handle_braces): Allow '@' as a switch name.
8290
8291 2002-12-16  Jason Merrill  <jason@redhat.com>
8292
8293         * calls.c (expand_call): Handle CALL_EXPR_HAS_RETURN_SLOT_ADDR
8294         with special struct-return ABIs.
8295
8296         * c-semantics.c (add_scope_stmt): Abort if the end SCOPE_STMT
8297         doesn't match the begin SCOPE_STMT in partialness.
8298
8299 2002-12-16  Geoffrey Keating  <geoffk@apple.com>
8300
8301         * genmultilib: Create temporary files in unique subdirectory.
8302
8303         * gcc.c (validate_switches): Allow '@' as a switch name.
8304
8305 2002-12-16  Loren J. Rittle  <ljrittle@acm.org>
8306
8307         * Makefile.in (gcov-iov.h): Improve portability.
8308
8309 Mon Dec 16 23:39:19 CET 2002  Jan Hubicka  <jh@suse.cz>
8310
8311         * mips.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not use qpword on API_N32/not
8312         gas
8313         * mips.md (tablejump insn): Likewise.
8314
8315 2002-12-16  Mark Mitchell  <mark@codesourcery.com>
8316
8317         * doc/include/gcc-common.texi: Change version number to 3.4.
8318
8319 2002-12-16  Bruce Korb  <bkorb@gnu.org>
8320
8321         * fixinc/fixlib.h: add: #include <signal.h>
8322         * fixinc/fixincl.c: remove: #include <signal.h>
8323
8324 Mon Dec 16 17:20:04 2002  J"orn Rennecke <joern.rennecke@superh.com>
8325
8326         * sh.h (EXTRA_CONSTRAINT_Z): New macro.
8327         (EXTRA_CONSTRAINT): Use it.
8328         * sh.md (anddi3): Use 'Z' constraint for alternative 2.
8329
8330 2002-12-15  Zack Weinberg  <zack@codesourcery.com>
8331
8332         * config.gcc (need_64bit_hwint): New variable.
8333         (alpha*-*-*, x86_64-*-*, ia64-*-*, mips*-*-*, powerpc*-*-*,
8334         mmix-knuth-mmixware, rs6000*-*-*, sparc64*-*-*, s390*-*-*,
8335         sh*-*-*, hppa*64*-*-linux, parisc*64*-*-linux, hppa*64*-*-hpux11*,
8336         sparcv9-*-solaris2*, sparc*-*-solaris2.[789], ultrasparc-*-freebsd*):
8337         Set it.
8338         (powerpc*-*-darwin*): Unset it.
8339         (alpha-*-interix, alpha64-dec-*vms*, i?86-*-interix3*,
8340         i?86-*-interix*, sparc64-*-openbsd*): Remove references to
8341         deleted/nonexistent xm-*.h headers.
8342         * configure.in: AC_DEFINE NEED_64BIT_HOST_WIDE_INT if the
8343         target set need_64bit_hwint in config.gcc.
8344         * configure, config.in: Regenerate.
8345
8346         * hwint.h: Overhaul.  Don't bother trying int for
8347         HOST_WIDE_INT.  Do try __int64 if long is not enough.  Base
8348         decision to force 64-bit HOST_WIDE_INT on
8349         NEED_64BIT_HOST_WIDE_INT, not (MAX_)LONG_TYPE_SIZE which is
8350         not visible at this point.  Don't allow prior definition of
8351         any macro defined by this file.
8352
8353         * config/alpha/xm-vms.h: Don't define HOST_WIDE_INT or
8354         HOST_BITS_PER_WIDE_INT.
8355         * config/c4x/c4x.h: Adjust redefinition of
8356         HOST_WIDE_INT_PRINT_HEX to match changes to hwint.h.
8357         * config/alpha/xm-alpha-interix.h, config/alpha/xm-vms64.h,
8358         config/i386/xm-i386-interix.h: Delete file.
8359
8360 2002-12-14  Rodney Brown  <rbrown64@csc.com.au>
8361             John David Anglin  <dave@hiauly1.hia.nrc.ca>
8362
8363         * pa.c (output_millicode_call): Convert ASM_OUTPUT_INTERNAL_LABEL.
8364         * pa64-hpux.h (ASM_OUTPUT_INTERNAL_LABEL): Delete define.
8365
8366 2002-12-14  Zack Weinberg  <zack@codesourcery.com>
8367
8368         * mkconfig.sh: Correct comment.  Add copyright boilerplate.
8369
8370 2002-12-14  Zack Weinberg  <zack@codesourcery.com>
8371
8372         * config/t-darwin, config/arm/t-pe, config/arm/t-strongarm-pe,
8373         config/c4x/t-c4x, config/i370/t-i370, config/i386/t-cygwin,
8374         config/i386/t-interix, config/i960/t-960bare, config/ia64/t-ia64,
8375         config/rs6000/t-rs6000-c-rule, config/sparc/t-sol2,
8376         config/v850/t-v850:  Correct dependencies and normalize
8377         compilation commands for files that include coretypes.h and tm.h.
8378
8379         * config/sparc/gmon-sol2.c: Include tconfig.h and tsystem.h,
8380         not config.h and system.h.
8381
8382 Sat Dec 14 20:43:41 CET 2002  Jan Hubicka  <jh@suse.cz>
8383
8384         * i386.c (flags_reg_operand):  New function.
8385         * i386.h (PREDICATE_CODES): Add flags_reg_operand.
8386         * i386.md (cmov splitter, movqicc): Use new predicate.
8387
8388 Sat Dec 14 17:03:17 CET 2002  Jan Hubicka  <jh@suse.cz>
8389
8390         * i386.md (movqicc splitter): Fix template.
8391
8392 2002-12-13  Jason Merrill  <jason@redhat.com>
8393
8394         * tree.h (CALL_EXPR_HAS_RETURN_SLOT_ADDR): New macro.
8395         * calls.c (expand_call): Handle it.
8396         * tree-inline.c (struct inline_data): Remove target_exprs field.
8397         (optimize_inline_calls): Don't initialize it.
8398         (expand_call_inline): Don't modify it.  Handle
8399         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
8400         (declare_return_variable): Take return slot addr.
8401         * langhooks.h (copy_res_decl_for_inlining): Change target_exprs parm
8402         to return_slot_addr.
8403         * langhooks-def.h, langhooks.c: Adjust.
8404         * explow.c (maybe_set_unchanging): Don't set RTX_UNCHANGING_P for
8405         a decl with no DECL_INITIAL.
8406
8407         * expr.c (expand_expr): Don't discard the target of a call which
8408         returns in memory.
8409
8410 2002-12-13  Neil Booth  <neil@daikokuya.co.uk>
8411
8412         * cppinit.c (path_include): Take an environment variable name.
8413         Tidy up.
8414         (init_standard_includes): Simplify environment handling, and
8415         move to ...
8416         (cpp_read_main_file): ...here as -nostdinc should not affect
8417         environment variable paths.
8418
8419 2002-12-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8420
8421         * pa.c (output_millicode_call): Correct typo.
8422         (output_call): Likewise.
8423
8424 Fri Dec 13 21:07:18 2002  Alexandre Oliva  <aoliva@redhat.com>
8425
8426         * config/mn10300/mn10300.c (print_operand) <case N>: Check
8427         operand's range.  Print value directly, without aid from
8428         output_address.
8429         <case U>: New.
8430         <case S>: Make sure argument to fprintf has the right type.
8431         * config/mn10300/mn10300.h (OK_FOR_T): New macro.
8432         (EXTRA_CONSTRAINT): Adjust.
8433         * config/mn10300/mn10300.md: Add new all-QImode pattern for
8434         bclr.  Use %U for immediate operands of bset and bclr.
8435         (iorqi3): New expand, with insns for AM33 and mn10300.
8436
8437 Fri Dec 13 16:02:27 2002  J"orn Rennecke <joern.rennecke@superh.com>
8438
8439         * sh.c (sh_register_operand): New function.
8440         (prepare_move_operands): Use it.
8441         * sh.h (PREDICATE_CODES): Add entry for sh_register_operand.
8442         * sh.md (movsi_media, movsi_media_nofpu): Allow stores of 0.
8443         (movqi_media, movhi_media, movdi_media, movdi_media_nofpu): Likewise.
8444         (movdf_media, movdf_media_nofpu, movv4sf_i, movsf_media): Likewise.
8445         (movsf_media_nofpu, movv2hi_i, movv4hi_i, movv8qi_i): Likewise.
8446         (movv2si_i): Likewise.
8447
8448 2002-12-13  Jim Wilson  <wilson@redhat.com>
8449
8450         * doc/extend.texi (Complex Numbers): Update info on debug info.
8451
8452 2002-12-13  Kazu Hirata  <kazu@cs.umass.edu>
8453
8454         * config/h8300/h8300.md (addhi3_h8300): Remove the last
8455         alternative.
8456
8457 2002-12-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8458
8459         * hooks.h (hook_tree_tree_bool_false): Declare
8460         hook_bool_tree_tree_false instead.
8461
8462 2002-12-12  Devang Patel  <dpatel@apple.com>
8463
8464         * doc/invoke.texi: Document Darwin linker options, -bundle
8465         -bind_at_load, -all_load and -arch_errors_fatal
8466
8467 2002-12-12  Jim Wilson  <wilson@redhat.com>
8468
8469         * dbxout.c (dbxout_fptype_value): New.
8470         (dbxout_type, case COMPLEX_TYPE): Call it.  Use 'R' instead of 'r'.
8471
8472 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
8473
8474         * c-decl.c: Fix a comment typo.
8475         * cfg.c: Likewise.
8476         * cfgcleanup.c: Likewise.
8477         * cfglayout.c: Likewise.
8478         * cfgrtl.c: Likewise.
8479         * c-typeck.c: Likewise.
8480         * dominance.c: Likewise.
8481         * dwarf2asm.c: Likewise.
8482         * dwarfout.c: Likewise.
8483         * expmed.c: Likewise.
8484         * expr.c: Likewise.
8485         * final.c: Likewise.
8486         * flow.c: Likewise.
8487         * function.c: Likewise.
8488         * gcc.c: Likewise.
8489         * genautomata.c: Likewise.
8490         * integrate.c: Likewise.
8491         * loop.c: Likewise.
8492         * loop.h: Likewise.
8493         * output.h: Likewise.
8494         * profile.c: Likewise.
8495         * ra.h: Likewise.
8496         * reload1.c: Likewise.
8497         * reload.c: Likewise.
8498         * sched-rgn.c: Likewise.
8499         * stmt.c: Likewise.
8500         * tree.h: Likewise.
8501         * vmsdbgout.c: Likewise.
8502
8503 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
8504
8505         * config/h8300/h8300.md: Add a new peephole2.
8506
8507 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
8508
8509         * config/h8300/h8300.md (a peephole2): Accept a constant
8510         that's accepted by CONST_OK_FOR_J.
8511
8512 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
8513
8514         * config/h8300/h8300.h (CONST_OK_FOR_J): New.
8515         (CONST_OK_FOR_LETTER_P): Use CONST_OK_FOR_J.
8516         * config/h8300/h8300.md (*addhi_h8300): Add a new alternative.
8517         (*addhi_h8300hs): Likewise.
8518
8519 Thu Dec 12 16:24:59 2002  J"orn Rennecke <joern.rennecke@superh.com>
8520
8521         * sh.c (reg_class_from_letter): No longer const.  Add 'e' entry.
8522         (sh_register_move_cost): Add clause for SImode fp-fp moves.
8523         Increase cost for moves involving multiple general purpose registers.
8524         * sh.h (OVERRIDE_OPTIONS): Set reg_class_from_letter['e'] according to
8525         TARGET_FMOVD.
8526         (HARD_REGNO_MODE_OK): Allow V2SFmode and V4SFmode in general purpose
8527         registers, and SImode in fp registers, for ! TARGET_SHMEDIA.
8528         (enum reg_class reg_class_from_letter): No longer const.
8529         (SECONDARY_OUTPUT_RELOAD_CLASS): Use REGCLASS_HAS_FP_REG /
8530         REGCLASS_HAS_GENERAL_REG.
8531         Handle SImode moves from/to fp registers.
8532         ! TARGET_SHMEDIA && TARGET_FMOVD.
8533         (SECONDARY_INPUT_RELOAD_CLASS): Use REGCLASS_HAS_FP_REG.
8534         * sh.md (movsi_ie): Add alternatives to move from / to fp regisyters.
8535
8536 2002-12-12  Andreas Schwab  <schwab@suse.de>
8537
8538         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Fix typo in last
8539         change and some warnings.
8540
8541 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
8542
8543         * doc/md.texi (pushm): Fix a typo.
8544
8545 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
8546
8547         * config/mips/mips.c (mips_output_conditional_branch): Support
8548         PIC-safe out-of-range branch and branch-likely.
8549         * config/mips/mips.md (attr length): PIC-safe out-of-range
8550         branches are longer.
8551         ("jump"): Support PIC-safe out-of-range-for-branch jumps.  Remove
8552         unused code to support indirect jumps.
8553
8554 2002-12-11  Zack Weinberg  <zack@codesourcery.com>
8555
8556         * Makefile.in (GTFILES): Add $(host_xm_file_list) and
8557         $(tm_file_list).
8558
8559 2002-12-11  David Edelsohn  <edelsohn@gnu.org>
8560
8561         * config/rs6000/t-rs6000-c-rule: Add coretypes.h $(TM_H) dependencies.
8562
8563 Wed Dec 11 15:20:45 CET 2002  Jan Hubicka  <jh@suse.cz>
8564
8565         * i386.md (cmove splitters): Avoid creation of unnecesary subregs.
8566
8567 2002-12-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8568
8569         * pa.h (BIGGEST_ALIGNMENT): Change 32-bit value to 64 bits.
8570         (MAX_PARM_BOUNDARY, STACK_BOUNDARY): Express in terms of
8571         BIGGEST_ALIGNMENT.
8572         (PREFERRED_STACK_BOUNDARY): Express in terms of STACK_BOUNDARY.
8573         (FUNCTION_BOUNDARY): Express in terms of BITS_PER_WORD.
8574
8575 2002-12-11  Kazu Hirata  <kazu@cs.umass.edu>
8576
8577         * doc/invoke.texi: Correct dump file names.
8578
8579 2002-12-09  Steve Ellcey  <sje@cup.hp.com>
8580
8581         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Don't send stripped
8582         name to globalize_label or assemble_name.
8583
8584 Wed Dec 11 20:15:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
8585
8586         * sh.h (REG_CLASS_HAS_GENERAL_REG): Only true for SIBCALL_REGS
8587         if not TARGET_SHMEDIA.
8588
8589 Wed Dec 11 19:05:05 2002  J"orn Rennecke <joern.rennecke@superh.com>
8590
8591         * sh.h (REG_CLASS_HAS_FP_REG): New.
8592         (REGISTER_MOVE_COST) Use it.  Put body into a function and
8593         move it into:
8594         * sh.c (sh_register_move_cost).
8595         * sh-protos.h (sh_register_move_cost): Declare.
8596
8597         * sh.c (sh_expand_builtin): Abort for unexpected nop values.
8598         (sh_adjust_cost): Always return a value.
8599
8600 Wed Dec 11 18:39:52 2002  J"orn Rennecke <joern.rennecke@superh.com>
8601
8602         * sh.h (REG_CLASS_HAS_GENERAL_REG): New.
8603         (REGISTER_MOVE_COST): Use it.
8604
8605 2002-12-11  Richard Henderson  <rth@redhat.com>
8606
8607         * tree.h (MODULE_LOCAL_P): Kill.
8608         * varasm.c (default_binds_local_p_1): Use decl_visibility instead.
8609
8610 2002-12-11  Kazu Hirata  <kazu@cs.umass.edu>
8611
8612         * config/h8300/h8300.md (two define_peephole2): New.
8613
8614 2002-12-11  Kazu Hirata  <kazu@cs.umass.edu>
8615
8616         * config/h8300/h8300.h (CONST_OK_FOR_J): Remove.
8617         (CONST_OK_FOR_K): Likewise.
8618         (CONST_OK_FOR_M): Likewise.
8619         (CONST_OK_FOR_LETTER_P): Do not use the above macros.
8620
8621 2002-12-11  Neil Booth  <neil@daikokuya.co.uk>
8622
8623         * c-common.c (builtin_define_type_max): Handle unsigned
8624         types too.
8625
8626 2002-12-10  David Edelsohn  <edelsohn@gnu.org>
8627
8628         * haifa-sched.c (rank_for_schedule): Correct style.
8629
8630 2002-12-10  Per Bothner  <pbothner@apple.com>
8631
8632         * cpplib.h (struct cpp_hashnode):  Split a non-portably-signed field
8633         directive_index into an unsigned field and a new is_directive field.
8634         * cppinit.c (mark_named_operators):  Update to set new fields.
8635         * cpplex.c (_cpp_lex_direct):  Now directive_field is unsigned.
8636         * cpplib.c [_cpp_handle_directive]:   Test is_directive field.
8637         No longer need to subtract 1 from directive_index.
8638         (_cpp_init_directives):  No longer need to add 1 to directive_index.
8639         * cpptrad.c (scan_out_logical_line):  Use is_directive field.
8640
8641 2002-12-10  Roger Sayle  <roger@eyesopen.com>
8642
8643         * builtins.c (fold_builtin): Remove -funsafe-math-optimizations
8644         check for evaluating sqrt of a constant at compile time.
8645         * simplify-rtx.c (simplify_unary_operation): Likewise.
8646
8647 2002-12-10  Janis Johnson  <janis187@us.ibm.com>
8648
8649         PR other/8882
8650         * doc/tm.texi (PUSH_ARGS): Remove misplaced line.
8651
8652 2002-12-10  Devang Patel  <dpatel@appple.com>
8653
8654         * config/darwin.h(LINK_SPEC): Add darwin specific linker options.
8655         * doc/invoke.texi: Add new "Darwin Options" section.
8656
8657 2002-12-10  Jim Wilson  <wilson@redhat.com>
8658
8659         * rs6000.h (RETURN_IN_MEMORY): If ABI_V4, then TFmode is returned in
8660         memory.
8661
8662 2002-12-10  Andrew Haley  <aph@redhat.com>
8663
8664         * cse.c (cse_insn): Don't cse past a basic block boundary.
8665
8666 2002-12-10  Jakub Jelinek  <jakub@redhat.com>
8667
8668         * config/linux.h (LIB_SPEC): If -pthread, add -lpthread even if
8669         -shared.
8670         * config/alpha/linux-elf.h (LIB_SPEC): Likewise.
8671         * config/alpha/linux.h (LIB_SPEC): Likewise.
8672         * config/arm/linux-elf.h (LIB_SPEC): Likewise.
8673         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
8674         * config/sparc/linux.h (LIB_SPEC): Likewise.
8675         * config/sparc/linux64.h (LIB_SPEC): Likewise.
8676
8677 2002-12-09  Larin Hennessy  <larin@science.oregonstate.edu>
8678
8679         * doc/invoke.texi: Document UltraSparc III option.
8680
8681 2002-12-09  Richard Henderson  <rth@redhat.com>
8682
8683         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
8684         __tune_pentium2__ and __tune_pentium3__ as necessary.
8685
8686 2002-12-09  Richard Henderson  <rth@redhat.com>
8687
8688         * target.h (gcc_target): Add cannot_force_const_mem.
8689         * target-def.h (TARGET_CANNOT_FORCE_CONST_MEM): New.
8690         (TARGET_INITIALIZER): Add it.
8691         * varasm.c (force_const_mem): Fail if cannot_force_const_mem.
8692         * expr.c (emit_move_insn): Be prepared for force_const_mem to fail.
8693         * reload1.c (reload): Likewise.
8694         * hooks.c (hook_bool_rtx_false): New.
8695         * hooks.h: Declare it.
8696
8697         * config/i386/i386.c (ix86_cannot_force_const_mem): New.
8698         (TARGET_CANNOT_FORCE_CONST_MEM): New.
8699         (ix86_expand_move): Remove de-const-pooling hack.
8700
8701 Mon Dec  9 21:33:38 CET 2002  Jan Hubicka  <jh@suse.cz>
8702
8703         * toplev.c (dump_file): Fix order to match reality.
8704
8705 2002-12-08  Geoffrey Keating  <geoffk@apple.com>
8706
8707         * config/rs6000/rs6000.md (load_multiple): Use adjust_address_nv.
8708         (store_multiple): Likewise.
8709
8710 2002-12-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8711
8712         * pa/fptr.c (__canonicalize_funcptr_for_compare): Don't canonicalize
8713         function pointers in page 0.
8714
8715 2002-12-09  Steve Ellcey  <sje@cup.hp.com>
8716
8717         * config/ia64/hpux.h (TARGET_STRUCT_ARG_REG_LITTLE_ENDIAN): Remove
8718         definition
8719         (MEMBER_TYPE_FORCES_BLK): Move.
8720         * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL to pass
8721         aggregate arguments.
8722         (ia64_function_value): Use PARALLEL to return aggregate values.
8723
8724 2002-12-09  Steve Ellcey  <sje@cup.hp.com>
8725
8726         * doc/tm.texi (FUNCTION_ARG_REG_LITTLE_ENDIAN): Remove definition.
8727         * defaults.h (FUNCTION_ARG_REG_LITTLE_ENDIAN): Remove definition.
8728         * calls.c (store_unaligned_arguments_into_pseudos) Remove
8729         FUNCTION_ARG_REG_LITTLE_ENDIAN.
8730         * stmt.c (expand_return): Ditto.
8731         * expr.c (move_block_from_reg): Ditto.
8732         (copy_blkmode_from_reg): Ditto.
8733         * expmed.c (store_bit_field): Ditto.
8734
8735 2002-12-09  Svein E. Seldal  <Svein.Seldal@solidas.com>
8736
8737         * config.gcc: Added tic4x-* target as an alias to c4x-*
8738
8739 Sun Dec  8 14:57:39 CET 2002  Jan Hubicka  <jh@suse.cz>
8740
8741         * i386.c (ix86_expand_int_movcc): Use force_operand instead of
8742         constructing insn directly.
8743
8744 2002-12-06  Per Bothner  <pbothner@apple.com>
8745
8746         * cpplib.h (struct cpp_hashnode):  Change field directive_index from
8747         char to an int bit-field, for hosts where char is unsigned.
8748
8749 2002-12-07  Roger Sayle  <roger@eyesopen.com>
8750             Richard Henderson <rth@redhat.com>
8751
8752         * real.c (ieee_extended_motorola_format,
8753         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
8754         ieee_quad_format, vax_d_format, vax_g_format, i370_double_format):
8755         Provide appropriate values for new signbit field.
8756
8757 2002-12-07  Roger Sayle  <roger@eyesopen.com>
8758
8759         * real.h (real_format): Add signbit field.
8760         * real.c (ieee_single_format, ieee_double_format,
8761         ieee_extended_motorola_format, ieee_extended_intel_96_format,
8762         ieee_extended_intel_128_format, ibm_extended_format,
8763         ieee_quad_format, vax_f_format, vax_d_format,
8764         vax_g_format, i370_single_format, i370_double_format,
8765         c4x_single_format, c4x_extended_format, real_internal_format):
8766         Provide suitable signbit value, or -1 to avoid bit twiddling.
8767
8768         * optabs.c (expand_unop): Try implementing negation of
8769         floating point modes by flipping the sign bit.
8770         (expand_abs): Try implementing abs of floating point modes
8771         by clearing the sign bit.
8772
8773 Sat Dec  7 22:29:47 CET 2002  Jan Hubicka  <jh@suse.cz>
8774
8775         * i386.c (ix86_expand_int_movcc):  Use force_operand instead
8776         of constructing insn directly.
8777
8778 2002-12-07  Kazu Hirata  <kazu@cs.umass.edu>
8779
8780         * config/h8300/h8300.md (*iorhi_shift_8): New.
8781
8782 2002-12-06  Bernd Schmidt  <bernds@redhat.com>
8783
8784         * doc/invoke.texi: Document FRV port options.
8785         * doc/md.texi: Document FRV register classes.
8786
8787 2002-12-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8788
8789         * doc/install.texi (Configuration): Improve description of cases
8790         where `make distclean` may fail; clarify --with-gnu-as; fix grammar.
8791
8792 2002-12-06  Per Bothner  <pbothner@apple.com>
8793
8794         * cpplib.h (NODE_MACRO_ARG):  New flag.
8795         (struct cpp_hashnode):  Give _cpp_hashnode_value tag to value union.
8796         Remove value.operator field.  Move arg_index field to value union.
8797         (directive_index):  Make signed, since also used for C++ operators.
8798         * cppmacro.c (_cpp_save_parameter):  Use NODE_MACRO_ARG flag to
8799         check for duplicate parameter.  Set NODE_MACRO_ARG flag.
8800         Save node->value, and set node->value.arg_index.
8801         (_cpp_create_definition):  For each paramater, restore node->value.
8802         (lex_expansion_token):  Use NODE_MACRO_ARG flag, and moved arg_index.
8803         * cpptrad.c (scan_out_logical_line): Likewise.
8804         (scan_out_logical_line): Check for directive > 0.
8805         * cpplib.c (cpp_handle_directive):  Likewise.
8806         * cpplex.c (_cpp_lex_direct):  Update as value.operator is replaced
8807         by negative of directive_index.
8808         * cppinit.c (mark_named_operators):  Likewise.
8809
8810         * hashtable.h (struct ht_identifier):  Swap fields, for better packing.
8811
8812 2002-12-06 Dhananjay Deshpande <dhananjayd@kpit.com>
8813
8814         * gcc/config/sh/sh.c (calc_live_regs): Save fpscr only if target has
8815         FPU.
8816         (push): Generate push_fpscr.
8817         (pop): Generate pop_fpscr.
8818         * gcc/config/sh/sh.md : Add define_expand "push_fpscr", "pop_fpscr".
8819         (fpu_switch): Add alternative to push fpscr.  Enable for TARGET_SH3E.
8820
8821 Fri Dec  6 19:36:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
8822
8823         * sh.c (dump_table): DImode pool constants need only 32 bit alignment.
8824         DFmode alignment depends on TARGET_FMOVD && TARGET_ALIGN_DOUBLE.
8825
8826 Fri Dec  6 19:17:49 2002  J"orn Rennecke <joern.rennecke@superh.com>
8827
8828         * sh.md (movdi_i): Name.  Remove inappropriate comment.
8829
8830 Fri Dec  6 15:44:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
8831         Merged from basic improvements branch (excerpt):
8832
8833         2002-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
8834         * config/sh/sh.h (SH_DBX_REGISTER_NUMBER): Handle PR_MEDIA_REG.
8835
8836 2002-12-06  Jakub Jelinek  <jakub@redhat.com>
8837
8838         * expr.c (expand_expr) <case COND_EXPR>: Never modify exp in place.
8839
8840 Thu Dec  5 16:58:25 CET 2002  Jan Hubicka  <jh@suse.cz>
8841
8842         * i386.md (dimode peep2s): Re-add "&& 1".
8843
8844 Thu Dec  5 14:10:15 CET 2002  Jan Hubicka  <jh@suse.cz>
8845
8846         * i386.c (ix86_expand_prologue):  Add comment, do not use
8847         fast prologues for cold and normal functions.
8848
8849 Thu Dec  5 00:52:37 CET 2002  Jan Hubicka  <jh@suse.cz>
8850
8851         * i386.c (x86_rep_movl_optimal): New variable.
8852         (ix86_expand_movstr, ix86_expand_clrstr): Use TARGET_REP_MOVL_OPTIMAL
8853         * i386.h (TARGET_REP_MOVL_OPTIMAL): New macro.
8854
8855         * i386.md (negsf2_ifs, negdf2_ifs, negdf2_ifs_rex64, abssf2_ifs,
8856         absdf2_ifs, absdf2_ifs_rex64): Fix constraints.
8857         neg?f2_ifs, abs?f2_ifs splitters): Refuse memory operand; do not
8858         generate unnecesary subregs.
8859
8860 2002-12-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8861
8862         * pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): Move define.
8863         * pa.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): To here.
8864
8865 2002-12-05  Dale Johannesen  <dalej@apple.com>
8866
8867         * tree.c (unsafe_for_reeval):  Consider callee child of CALL_EXPR.
8868
8869 2002-12-05  Danny Smith  <dannysmith@users.sourceforge.net>
8870
8871         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Replace with
8872         PROFILE_HOOK.
8873         * config/i386/mingw32.h (SUBTARGET_PROLOGUE): Don't undef.
8874
8875 2002-12-05  Aldy Hernandez  <aldyh@redhat.com>
8876
8877         * config/rs6000/spe.h (__ev_mwlufi): Remove.
8878         (__ev_mwlufia): Remove.
8879         (__ev_mwlumfaaw): Remove.
8880         (__ev_mwlusfaaw): Remove.
8881         (__ev_mwlumfanw): Remove.
8882         (__ev_mwlusfanw): Remove.
8883
8884 2002-12-05  Kazu Hirata  <kazu@cs.umass.edu>
8885
8886         * config/h8300/h8300.md (*andorsi3_shift_8): New.
8887
8888 2002-12-05  Kazu Hirata  <kazu@cs.umass.edu>
8889
8890         * config/h8300/h8300.c (shift_alg_si): Optimize ashift:HI and
8891         lshiftrt:SI by 28, 29, and 30 bits when !TARGET_H8300.
8892         (get_shift_alg): Return optimal assembly instructions for the
8893         shifts mentioned above.
8894
8895 Wed Dec  4 11:53:07 CET 2002  Jan Hubicka  <jh@suse.cz>
8896
8897         * i386.c (ix86_expand_int_movcc): Force operand into register for QImode
8898         condtiional moves.
8899
8900 2002-12-04  Kazu Hirata  <kazu@cs.umass.edu>
8901
8902         * config/h8300/h8300.c (h8300_init_once): Do not use loop to
8903         implement ashiftrt:HI by 13 bits on H8S.
8904
8905 2002-12-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8906
8907         * pa/fptr.c (__canonicalize_funcptr_for_compare): New file and function.
8908         * pa.md (canonicalize_funcptr_for_compare): Output library call to
8909         canonicalize_funcptr_for_compare_libfunc on TARGET_ELF32.
8910         * pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL,
8911         CTOR_LIST_BEGIN): New defines.
8912         * pa/t-linux (LIB2FUNCS_EXTRA): New define.
8913         (fptr.c): Add make rules.
8914
8915 2002-12-04  Geoffrey Keating  <geoffk@apple.com>
8916
8917         * combine.c (combine_simplify_rtx): Add new canonicalizations.
8918         * doc/md.texi (Insn Canonicalizations): Document new
8919         canonicalizations for multiply/add combinations.
8920         * config/rs6000/rs6000.md: Add and modify floating add/multiply
8921         patterns to ensure they're used whenever they can be.
8922
8923 2002-12-04  Kazu Hirata  <kazu@cs.umass.edu>
8924
8925         * config/h8300/h8300.c: Update the comments related to shifts.
8926
8927 2002-12-04  Chris Demetriou  <cgd@broadcom.com>
8928
8929         * config/mips/mips.md (get_fnaddr): Correct length attribute.
8930
8931 2002-12-04  Kazu Hirata  <kazu@cs.umass.edu>
8932
8933         * config/h8300/h8300.md (*extzv_8_8): New.
8934         (*extzv_8_16): Likewise.
8935
8936 2002-12-04  Jason Merrill  <jason@redhat.com>
8937
8938         PR c++/8461, c++/8625
8939         * integrate.c (copy_decl_for_inlining): Handle explicit invisible
8940         references.
8941         * tree-inline.c (initialize_inlined_parameters): Likewise.
8942
8943         * tree.c (variably_modified_type_p): Just return an error_mark_node.
8944
8945 2002-12-04  Chris Demetriou  <cgd@broadcom.com>
8946
8947         * config/mips/mips.md (get_fnaddr): Avoid placing an "la"
8948         macro instruction in a branch delay slot, to avoid assembler
8949         warnings.
8950
8951 2002-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
8952
8953         PR c/7622
8954         * c-semantics (genrtl_scope_stmt): Do not output inlined
8955         nested functions that contain no code.
8956
8957 Wed Dec  4 15:20:54 CET 2002  Jan Hubicka  <jh@suse.cz>
8958
8959         * cfgrtl.c (force_nonfallthru_and_redirect):  Allow abnormal edge
8960         to be forced into nonfallthru.
8961
8962 2002-12-03  Jason Thorpe  <thorpej@wasabisystems.com>
8963
8964         * config/t-netbsd (USER_H): Set to $(EXTRA_HEADERS).
8965
8966 2002-12-03  Aldy Hernandez  <aldyh@redhat.com>
8967
8968         * config/rs6000/spe.md (*movv1di_const0): New pattern.
8969
8970 2002-12-03  Richard Henderson  <rth@redhat.com>
8971
8972         * libgcc-std.ver: Inherit GCC_3.3 from GCC_3.0.
8973
8974 2002-12-03  Hans-Peter Nilsson  <hp@bitrange.com>
8975
8976         * bitmap.c (bitmap_ior_and_compl, bitmap_union_of_diff):
8977         Initialize tmp.using_obstack to 0.
8978
8979 2002-12-03  Andreas Schwab  <schwab@suse.de>
8980
8981         * config/m68k/m68k.h (EH_RETURN_DATA_REGNO): Define.
8982         (EH_RETURN_STACKADJ_RTX): Define.
8983         (EH_RETURN_HANDLER_RTX): Define.
8984         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8985         * config/m68k/m68k.c (m68k_save_reg): New function.  Handle eh
8986         registers and don't save fixed registers.
8987         (m68k_output_function_prologue): Use it.
8988         (use_return_insn): Likewise.
8989         (m68k_output_function_epilogue): Likewise.
8990
8991 2002-12-03  Kazu Hirata  <kazu@cs.umass.edu>
8992
8993         * config/h8300/h8300.c (single_one_operand): Fix a warning.
8994         (single_zero_operand): Likewise.
8995
8996 2002-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
8997
8998         * Makefile.in configure configure.in dummy-conditions.c fix-header.c
8999         gcov-iov.c gen-protos.c genattr.c genattrtab.c genautomata.c
9000         gencheck.c gencodes.c genconditions.c genconfig.c genconstants.c
9001         genemit.c genextract.c genflags.c gengenrtl.c gengtype-lex.l
9002         gengtype-yacc.y gengtype.c genopinit.c genoutput.c genpeep.c
9003         genpreds.c genrecog.c gensupport.c mkconfig.sh read-rtl.c
9004         scan-decls.c scan.c config/sh/sh.h doc/configfiles.texi
9005         doc/install-old.texi: Replace hconfig.h with bconfig.h.
9006         * Makefile.in: Replace HCONFIG_H with BCONFIG_H.
9007
9008 2002-12-02  Andrew Pinski  <pinskia@physics.uc.edu>
9009
9010         * config/rs6000/rs6000.md (ffssi): Convert to expander.
9011         (ffsdi): Likewise.
9012         (cntlzw2, cntlzd2): New patterns.
9013
9014 2002-12-02  H.J. Lu <hjl@gnu.org>
9015
9016         * config.gcc (mips*-*-netbsd*): Remove mips/t-netbsd.
9017         (mips*-*-linux*): Remove mips/t-linux.
9018
9019 Mon Dec  2 19:26:30 CET 2002  Jan Hubicka  <jh@suse.cz>
9020
9021         * i386.c (ix86_expand_int_movcc):  Avoid overflow.
9022
9023 2002-12-02  Kazu Hirata  <kazu@cs.umass.edu>
9024
9025         * config/h8300/h8300.c (dosize): Replace argument op with
9026         sign.
9027         (h8300_output_function_prologue): Update the call to dosize.
9028         (h8300_output_function_epilogue): Likewise.
9029
9030 2002-12-02  Bob Wilson  <bob.wilson@acm.org>
9031
9032         * config/xtensa/xtensa.h: Delete ifndefs with nothing inside them.
9033
9034 2002-12-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9035
9036         * configure.in: Use "missing" script to generate warning if
9037         flex or bison programs not found, instead of invoking "false".
9038         * configure: Rebuilt.
9039
9040 Mon Dec  2 20:28:48 CET 2002  Jan Hubicka  <jh@suse.cz>
9041
9042         * unroll.c (copy_loop_body): Copy CONST_OR_PURE_CALL_P.
9043
9044 Mon Dec  2 19:42:52 CET 2002  Jan Hubicka  <jh@suse.cz>
9045
9046         * i386.c (ix86_expand_int_movcc):  Avoid overflow.
9047
9048 2002-12-02  Kazu Hirata  <kazu@cs.umass.edu>
9049
9050         * config/h8300/h8300.c (dosize): Output r7/er7 instead of sp.
9051         (push): Likewise.
9052         (pop): Likewise.
9053         (h8300_output_function_prologue): Likewise.
9054         (h8300_output_function_epilogue): Likewise.
9055
9056 Mon Dec  2 14:43:22 2002  J"orn Rennecke <joern.rennecke@superh.com>
9057
9058         * expmed.c (store_bit_field): Use int_mode_for_mode to find
9059         corresponding mode of non-integer mode, unless it is VOIDmode.
9060
9061 2002-12-02  Kazu Hirata  <kazu@cs.umass.edu>
9062
9063         * config/h8300/h8300.md (stm_h8300s_2): New.
9064         (stm_h8300s_3): Likewise.
9065         (stm_h8300s_4): Likewise.
9066         (five define_peephole2): Likewise.
9067
9068 2002-12-02  Kazu Hirata  <kazu@cs.umass.edu>
9069
9070         * ra-build.c: Fix a comment typo.
9071
9072 Sun Dec  1 16:50:47 CET 2002  Jan Hubicka  <jh@suse.cz>
9073
9074         * i386.c (ix86_expand_int_movcc): fix
9075         reversed BRANCH_COST test; be curefull about infinite recursion.
9076
9077 2002-12-01  Kazu Hirata  <kazu@cs.umass.edu>
9078
9079         * config/h8300/h8300.c (h8300_output_function_prologue):
9080         Remove variable idx.
9081         (h8300_output_function_epilogue): Likewise.
9082
9083 2002-12-01  Zack Weinberg  <zack@codesourcery.com>
9084
9085         * config/frv/xm-frv.h: Delete, unnecessary.
9086
9087 2002-12-01  Kazu Hirata  <kazu@cs.umass.edu>
9088
9089         * config/h8300/h8300.md: Add comments for define_peephole2.
9090
9091 2002-12-01  Mark Mitchell  <mark@codesourcery.com>
9092
9093         * builtin-types.def (BT_SIZE): Use size_type_node.
9094         * builtins.c (fold_builtin): Make the builtin strlen returns a
9095         size_t, not a sizetype.
9096         * c-common.c (c_sizeof_or_alignof_type): Use size_type_node, not
9097         c_size_type_node.
9098         (c_alignof_expr): Likewise.
9099         (c_common_nodes_and_builtins): Likewise.
9100         * c-common.h (CTI_C_SIZE_TYPE): Remove.
9101         (c_size_type_node): Likewise.
9102         * c-format.c (T_ST): Use size_type_node, not c_size_type_node.
9103         * tree.h (TI_SIZE_TYPE): New enumeral.
9104         (size_type_node): Likewise.
9105
9106 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
9107
9108         * configure.in: Don't put ${tm_file} into host_xm_file,
9109         build_xm_file, or xm_file.  Do put tm-preds.h into tm_p_file.
9110         Take location of tm-preds.h into account when calculating
9111         tm_p_file_list.
9112         * configure: Regenerate.
9113         * mkconfig.sh: No need for separate TM_DEFINES and XM_DEFINES
9114         arguments.  Do not provide rtx, rtvec, tree, or GTY here.
9115         Remove special case code for tm_p.h and *config.h; add new
9116         special case code for tm.h and tconfig.h. Clean up a bit.
9117
9118         * Makefile.in (tm_file, tm_file_list): New variables set from
9119         @-substitutions.
9120         (GCONFIG_H): Deleted.
9121         (GTM_H, TM_H): New.
9122         (CONFIG_H): Is now just config.h $(host_xm_file_list).
9123         (TM_P_H): Move up with the other mkconfig.sh-generated
9124         headers; don't mention tm-preds.h explicitly.
9125         (tm.h, cs-tm.h): New rule.
9126         (cs-config.h, cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): Adjust
9127         invocations of mkconfig.sh for changes to that program.
9128         (mostlyclean): Delete print-rtl1.c.
9129         (clean): Delete tm.h.
9130         Update dependencies for the files listed below.
9131
9132         * mklibgcc.in:  Add 'coretypes.h $(TM_H)' to libgcc2_c_dep.
9133
9134         * coretypes.h: New file.
9135         * system.h: #define malloc to xmalloc and realloc to xrealloc
9136         when FLEX_SCANNER or YYBISON is defined, independent of the
9137         value of GCC_VERSION.
9138         * alias.c, attribs.c, bb-reorder.c, bitmap.c, builtins.c,
9139         c-aux-info.c, c-common.c, c-convert.c, c-decl.c, c-dump.c,
9140         c-errors.c, c-format.c, c-lang.c, c-lex.c, c-objc-common.c,
9141         c-opts.c, c-parse.in, c-pragma.c, c-pretty-print.c,
9142         c-semantics.c, c-typeck.c, caller-save.c, calls.c, cfg.c,
9143         cfganal.c, cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c,
9144         cfgrtl.c, collect2.c, combine.c, conflict.c, convert.c,
9145         cppdefault.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
9146         cppinit.c, cpplex.c, cpplib.c, cppmacro.c, cppmain.c,
9147         cppspec.c, cpptrad.c, crtstuff.c, cse.c, cselib.c, dbxout.c,
9148         debug.c, df.c, diagnostic.c, doloop.c, dominance.c,
9149         dummy-conditions.c, dwarf2asm.c, dwarf2out.c, dwarfout.c,
9150         emit-rtl.c, errors.c, et-forest.c, except.c, explow.c,
9151         expmed.c, expr.c, final.c, fix-header.c, flow.c, fold-const.c,
9152         function.c, gcc.c, gccspec.c, gcov-dump.c, gcov-iov.c, gcov.c,
9153         gcse.c, gen-protos.c, genattr.c, genattrtab.c, genautomata.c,
9154         gencheck.c, gencodes.c, genconditions.c, genconfig.c,
9155         genconstants.c, genemit.c, genextract.c, genflags.c,
9156         gengenrtl.c, gengtype-lex.l, gengtype-yacc.y, gengtype.c,
9157         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
9158         gensupport.c, ggc-common.c, ggc-none.c, ggc-page.c,
9159         ggc-simple.c, global.c, graph.c, haifa-sched.c, hashtable.c,
9160         hooks.c, ifcvt.c, integrate.c, intl.c, jump.c, langhooks.c,
9161         lcm.c, libgcc2.c, line-map.c, lists.c, local-alloc.c, loop.c,
9162         main.c, mbchar.c, mips-tdump.c, mips-tfile.c, mkdeps.c,
9163         optabs.c, params.c, predict.c, prefix.c, print-rtl.c,
9164         print-tree.c, profile.c, protoize.c, ra-build.c,
9165         ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, read-rtl.c,
9166         real.c, recog.c, reg-stack.c, regclass.c, regmove.c,
9167         regrename.c, reload.c, reload1.c, reorg.c, resource.c,
9168         rtl-error.c, rtl.c, rtlanal.c, sbitmap.c, scan-decls.c,
9169         scan.c, sched-deps.c, sched-ebb.c, sched-rgn.c, sched-vis.c,
9170         sdbout.c, sibcall.c, simplify-rtx.c, ssa-ccp.c, ssa-dce.c,
9171         ssa.c, stmt.c, stor-layout.c, stringpool.c, timevar.c,
9172         tlink.c, toplev.c, tracer.c, tree-dump.c, tree-inline.c,
9173         tree.c, unroll.c, varasm.c, varray.c, varray.h, vmsdbgout.c,
9174         xcoffout.c, config/darwin-c.c, config/darwin.c,
9175         config/fp-bit.c, config/alpha/alpha.c, config/alpha/vms-cc.c,
9176         config/alpha/vms-ld.c, config/arc/arc.c, config/arm/arm.c,
9177         config/arm/pe.c, config/avr/avr.c, config/c4x/c4x-c.c,
9178         config/c4x/c4x.c, config/cris/cris.c, config/d30v/d30v.c,
9179         config/dsp16xx/dsp16xx.c, config/fr30/fr30.c,
9180         config/frv/frv.c, config/h8300/h8300.c, config/i370/i370-c.c,
9181         config/i370/i370.c, config/i386/i386.c, config/i386/winnt.c,
9182         config/i960/i960-c.c, config/i960/i960.c,
9183         config/ia64/ia64-c.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
9184         config/m32r/m32r.c, config/m68hc11/m68hc11.c,
9185         config/m68k/m68k.c, config/m88k/m88k.c, config/mcore/mcore.c,
9186         config/mips/irix6-libc-compat.c, config/mips/mips.c,
9187         config/mmix/mmix.c, config/mn10200/mn10200.c,
9188         config/mn10300/mn10300.c, config/ns32k/ns32k.c,
9189         config/pa/pa.c, config/pdp11/pdp11.c, config/romp/romp.c,
9190         config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
9191         config/s390/s390.c, config/sh/sh.c, config/sparc/gmon-sol2.c,
9192         config/sparc/sparc.c, config/stormy16/stormy16.c,
9193         config/v850/v850-c.c, config/v850/v850.c, config/vax/vax.c,
9194         config/xtensa/xtensa.c, objc/objc-act.c, objc/objc-lang.c:
9195         Include coretypes.h and tm.h.
9196
9197         * genattrtab.c, genconditions.c, genemit.c, genextract.c,
9198         gengenrtl.c, gengtype.c, genopinit.c, genoutput.c, genpeep.c,
9199         genrecog.c: Include coretypes.h and tm.h from the file
9200         generated by this program.
9201
9202         * unwind-dw2-fde-darwin.c, unwind-dw2-fde-glibc.c,
9203         unwind-dw2-fde.c, unwind-dw2.c, unwind-sjlj.c: Include
9204         coretypes.h and tm.h, and tsystem.h when not already included.
9205         No need to include stddef.h nor stdlib.h.
9206
9207         * fixinc/fixlib.h: Include coretypes.h and tm.h.  Do not
9208         include auto-host.h or ansidecl.h/
9209         * fixinc/server.h: Do not include stdio.h, unistd.h, or fixlib.h.
9210         * fixinc/procopen.c: Include server.h after fixlib.h.  Do not
9211         include auto-host.h, ansidecl.h, or system.h.
9212         * fixinc/server.c: Likewise.  Also, do not include signal.h,
9213         and do not redefine volatile.
9214
9215 Sat Nov 30 17:16:46 CET 2002  Jan Hubicka  <jh@suse.cz>
9216
9217         * i386.md (movdf_integer):  Always enable in 64bit.
9218         (movdf_nointeger): Always disable in 64bit.
9219
9220 2002-11-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9221
9222         * cfg.c (dump_flow_info): Use max_reg_num () to determine the largest
9223         pseudo register number plus 1.
9224
9225 Fri Nov 29 20:10:56 2002  J"orn Rennecke <joern.rennecke@superh.com>
9226
9227         * expmed.c (store_bit_field): Use int_mode_for_mode to find
9228         corresponding mode of non-integer mode, unless it is VOIDmode.
9229
9230 2002-11-29  Hans-Peter Nilsson  <hp@bitrange.com>
9231
9232         * cpplib.c (_cpp_test_assertion): Default *value to 0.
9233
9234         * cppexp.c (num_part_mul): Initialize result.unsignedp, to 1.
9235
9236 2002-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
9237
9238         * config/s390/t-crtstuff: New target makefile fragment.
9239         * config.gcc [s390-*-linux, s390x-*-linux]: Use it.
9240
9241 2002-11-29  Kazu Hirata  <kazu@cs.umass.edu>
9242
9243         * config/h8300/h8300.md (movsi_h8300hs): Change the order of
9244         alternatives to correct the length when the memory operand is
9245         either pre_dec or post_inc.
9246
9247 2002-11-29  Kazu Hirata  <kazu@cs.umass.edu>
9248
9249         * config/h8300/h8300.md (an anonymous pattern): Give an
9250         internal name *tst_extzv_bitqi_1_n.
9251         Accept bit_operand instead of bit_memory_operand.
9252         Do not accept bit tests with the MSB.
9253         (*tst_extzv_memqi_1_n): New.
9254
9255 Thu Nov 28 23:56:24 CET 2002  Jan Hubicka  <jh@suse.cz>
9256
9257         * i386.c (ix86_expand_int_movcc): Add copy_rtx to avoid invalid RTX
9258         sharing when operand is SUBREG.
9259
9260 Thu Nov 28 08:57:26 CET 2002  Jan Hubicka  <jh@suse.cz>
9261
9262         * athlon.md (athlon-decodev): New reservation unit.
9263         (athlon-direct0): New reservation.
9264         (athlon-vector): New use athlon-decodev.
9265         (athlon-double, athlon-direct): Better model.
9266         (athlon_imul_k8): Use athlon-direct0.
9267         (athlon_movlpd_load): New insn reservation.
9268
9269 2002-11-28  Kazu Hirata  <kazu@cs.umass.edu>
9270
9271         * config/h8300/h8300.c (h8300_eightbit_constant_address_p):
9272         Fix a comment typo.
9273         (h8300_tiny_constant_address_p): Likewise.
9274
9275 2002-11-28  Michael Matz  <matz@suse.de>
9276
9277         * doc/passes.texi: Mention the other register allocator.
9278
9279 2002-11-28  Kazu Hirata  <kazu@cs.umass.edu>
9280
9281         * config/h8300/h8300.md (6 new peephole2 patterns): New.
9282
9283 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
9284
9285         * config.gcc (x86_64-*-linux*) [tmake_file]: Remove i386/t-crtstuff.
9286         * config/t-linux (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
9287         * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Define.
9288
9289 2002-11-28  Kazu Hirata  <kazu@cs.umass.edu>
9290
9291         * config/h8300/h8300.c (h8300_and_costs): New.
9292         * config/h8300/h8300.h (RTX_COSTS): Use h8300_and_costs.
9293         * config/h8300/h8300-protos.h: Add a prototype for
9294         h8300_and_costs.
9295
9296 Wed Nov 27 20:34:13 CET 2002  Jan Hubicka  <jh@suse.cz>
9297
9298         * i386.c (x86_sse_partial_regs_for_cvtsd2ss): New.
9299         * i386.h (x86_sse_partial_regs_for_cvtsd2ss): Declare.
9300         (TARGET_SSE_PARTIAL_REGS_FOR_CVTSD2SS): New macro.
9301         * i386.md (truncdfsf patterns and splitters): Use
9302         TARGET_SSE_PARTIAL_REGS_FOR_CVTSD2SS
9303
9304 2002-11-27  Zack Weinberg  <zack@codesourcery.com>
9305
9306         * config/rs6000/rs6000.c (altivec_init_builtins): Make the
9307         pointer argument in the prototypes of the following builtins
9308         be (const TYPE *) rather than (TYPE *):
9309          + __builtin_altivec_ld_internal_4sf
9310          + __builtin_altivec_ld_internal_4si
9311          + __builtin_altivec_ld_internal_8hi
9312          + __builtin_altivec_ld_internal_16qi
9313          + __builtin_altivec_lvsl
9314          + __builtin_altivec_lvsr
9315          + __builtin_altivec_lvebx
9316          + __builtin_altivec_lvehx
9317          + __builtin_altivec_lvewx
9318          + __builtin_altivec_lvxl
9319          + __builtin_altivec_lvx
9320          + __builtin_altivec_dst
9321          + __builtin_altivec_dstt
9322          + __builtin_altivec_dstst
9323          + __builtin_altivec_dststt
9324
9325 2002-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9326
9327         * except.c (default_exception_section): Move variable into the
9328         scope where it is used.
9329
9330 2002-11-27  Krister Walfridsson  <cato@df.lth.se>
9331
9332         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Test for
9333         correct version.
9334
9335 2002-11-27  Kazu Hirata  <kazu@cs.umass.edu>
9336
9337         * config/h8300/h8300.h (OK_FOR_U): Remove extra parentheses.
9338
9339 2002-11-27  Kazu Hirata  <kazu@cs.umass.edu>
9340
9341         * config/h8300/h8300.c (h8300_shift_costs): New.
9342         * config/h8300/h8300.h (RTX_COSTS): Use h8300_shift_costs.
9343         * config/h8300/h8300-protos.h: Add a prototype for
9344         h8300_shift_costs.
9345
9346 2002-11-27  Jim Wilson  <wilson@redhat.com>
9347
9348         * config/rs6000/spe.md (spu_evsplatfi, spu_evsplati): Swap operands
9349         in output template.
9350
9351 2002-11-27  Casper S. Hornstrup  <chorns@users.sourceforge.net>
9352
9353         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Define.
9354         * config/i386/winnt.c (i386_pe_dllexport_name_p): Use
9355         DLL_IMPORT_EXPORT_PREFIX, not '@'.
9356         (i386_pe_dllimport_name_p): Likewise.
9357         (i386_pe_mark_dllexport): Likewise.
9358         (i386_pe_mark_dllimport): Likewise.
9359         (i386_pe_encode_section_info): Likewise.
9360         (i386_pe_strip_name_encoding): Likewise.
9361
9362 2002-11-27  Richard Henderson  <rth@redhat.com>
9363
9364         * mkmap-symver.awk (BEGIN): Set sawsymbol false.
9365         (nm && NF == 3): Set sawsymbol true.
9366         (END): Exit if no symbols seen.
9367         (output): Fix map syntax error if no globals for the version.
9368
9369 Wed Nov 27 14:45:46 CET 2002  Jan Hubicka  <jh@suse.cz>
9370
9371         * builtins.def (DEF_C99_BUILTIN): Fix.
9372
9373 2002-11-26  Kaz Kojima  <kkojima@gcc.gnu.org>
9374
9375         * config/sh/lib1funcs.asm (FUNC, ENDFUNC0, ENDFUNC): New macros.
9376         (all): Add .size and .type information.
9377
9378 Tue Nov 26 22:43:50 CET 2002  Jan Hubicka  <jh@suse.cz>
9379
9380         * i386.c (ix86_expand_int_movcc):  Do not emit lea for short mode on
9381         partial_reg_stall target.
9382
9383 Tue Nov 26 22:27:47 CET 2002  Jan Hubicka  <jh@suse.cz>
9384
9385         * i386.md (movhicc): Allow general operand.
9386         (movqicc): New expander.
9387         (movqicc_noc): New pattern.
9388         * i386.c (ix86_expand_carry_flag_compare): New function.
9389         (ix86_expand_int_movcc): Optimize harder using sbb; support more
9390         HImode conversion; support QImode conditional moves
9391
9392 Tue Nov 26 16:30:59 CET 2002  Jan Hubicka  <jh@suse.cz>
9393
9394         * i386.c (FAST_PROLOGUE_INSN_COUNT): Set to 20.
9395         (ix86_expand_prologue): Multiply the count by amount of registers to be
9396         pushed.
9397
9398 Tue Nov 26 15:55:27 CET 2002  Jan Hubicka  <jh@suse.cz>
9399
9400         * i386.c (override_options): Error about wrong -mcpu on x86-64
9401         compilation.
9402
9403 2002-11-26  NIIBE Yutaka  <gniibe@m17n.org>
9404
9405         * config/sh/linux.h (FUNCTION_PROFILER): Implemented.
9406
9407 Tue Nov 26 00:14:20 CET 2002  Jan Hubicka  <jh@suse.cz>
9408
9409         * i386-protos.h (x86_extended_QIreg_mentioned_p,
9410         x86_extended_reg_mentioned_p): Declare.
9411         * i386.c (extended_reg_mentioned_1): New static function.
9412         (x86_extended_QIreg_mentioned_p,
9413         x86_extended_reg_mentioned_p): New global functions.
9414         * i386.h (REX_SSE_REGNO_P): New macro.
9415         * i386.md (prefix_rex): New attribute.
9416         (length attribute): Add rex.
9417
9418 2002-11-26  Andrew Haley  <aph@redhat.com>
9419
9420         * unwind-sjlj.c (_Unwind_FindEnclosingFunction): Rename
9421         from_Unwind_Find_Enclosing_Function.
9422         * unwind-dw2.c (_Unwind_FindEnclosingFunction): Likewise.
9423         * config/ia64/unwind-ia64.c (_Unwind_FindEnclosingFunction): Likewise.
9424         * libgcc-std.ver (_Unwind_FindEnclosingFunction): Rename from
9425         _Unwind_Find_Enclosing_Function, export @@GCC_3.3.
9426         * unwind.h (_Unwind_FindEnclosingFunction): Add.
9427
9428 2002-11-26  Hartmut Penner  <hpenner@de.ibm.com>
9429
9430         * config/s390/s390.c (390_output_constant_pool): Set alignment
9431         before label in 64 bit mode, behind otherwise.
9432
9433 2002-11-26  Richard Henderson  <rth@redhat.com>
9434
9435         * c-common.c (handle_visibility_attribute): Accept "default".
9436         * tree.h (enum symbol_visibility): New.
9437         (decl_visibility): Declare.
9438         * target.h (gcc_target.visibility): Take visibility arg as integer.
9439         * varasm.c (default_assemble_visibility): Likewise.
9440         (decl_visibility): New.
9441         (maybe_assemble_visibility): Use it.
9442         * output.h (default_assemble_visibility): Update prototype.
9443         * config/rs6000/rs6000.c (rs6000_assemble_visibility): Take
9444         visibility arg as integer.
9445         * doc/extend.texi: Document default visibility.
9446
9447 2002-11-26  Kazu Hirata  <kazu@cs.umass.edu>
9448
9449         * config/h8300/h8300.c: Adjust spacing.
9450         * config/h8300/h8300.h: Likewise.
9451
9452 2002-11-26  Richard Henderson  <rth@redhat.com>
9453
9454         * hooks.c (hook_bool_void_false, hook_void_tree_int,
9455         hook_void_FILEptr_constcharptr): Rename so that the return
9456         type is first.
9457         (hook_int_tree_tree_1, hook_void_tree, hook_void_tree_treeptr,
9458         hook_bool_tree_false): New.
9459         * hooks.h: Update.
9460         * langhooks-def.h: Update for renames.
9461         * target-def.h: Likewise.
9462         * tree.c (default_comp_type_attributes,
9463         default_set_default_type_attributes, default_insert_attributes,
9464         default_function_attribute_inlinable_p,
9465         default_ms_bitfield_layout_p): Remove.
9466         * tree.h: Update.
9467
9468 2002-11-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9469
9470         * pa-protos.h (function_value): New prototype.
9471         * pa.c (function_value): Use a PARALLEL to return small aggregates on
9472         TARGET_64BIT.
9473         * pa.h (FUNCTION_VALUE): Use function_value.
9474         * pa.md (call_value_internal_symref, call_value_internal_reg_64bit,
9475         call_value_internal_reg, sibcall_value_internal_symref,
9476         sibcall_value_internal_symref_64bit): Remove =rf constraint on return
9477         value.
9478
9479 2002-11-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9480
9481         * expr.c (gen_group_rtx, emit_group_move): New functions.
9482         * expr.h (gen_group_rtx, emit_group_move): Prototype.
9483         * function.c (expand_function_start): Use gen_group_rtx to create a
9484         PARALLEL rtx to hold the return value when the real return rtx is a
9485         PARALLEL.
9486         (expand_function_end): Use emit_group_move to move the return value
9487         from a PARALLEL to the real return registers.
9488         * rtl.h (REG_FUNCTION_VALUE_P): Allow function values to be returned
9489         in PARALLELs.
9490
9491 2002-11-26  Jason Thorpe  <thorpej@wasabisystems.com>
9492
9493         * config/t-libc-ok: Fix typo.
9494
9495 2002-11-26  Jakub Jelinek  <jakub@redhat.com>
9496
9497         * configure.in: Move AC_CANONICAL_SYSTEM and AC_ARG_PROGRAM back
9498         before AC_PROG_CC.
9499         * configure: Rebuilt.
9500
9501 2002-11-26  Nathan Sidwell  <nathan@codesourcery.com>
9502
9503         * c-decl.c: (start_struct): Commonize flag setting.
9504
9505 2002-11-26  Jason Thorpe  <thorpej@wasabisystems.com>
9506
9507         * config/rs6000/rs6000.h (RS6000_CPU_CPP_ENDIAN_BUILTINS): New.
9508         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Use
9509         RS6000_CPU_CPP_ENDIAN_BUILTINS.
9510         * config/rs6000/netbsd.h (RS6000_CPU_CPP_ENDIAN_BUILTINS): Redefine.
9511
9512 2002-11-26  Hartmut Penner  <hpenner@de.ibm.com>
9513
9514         * config/s390/s390.md (literal_pool_64, literal_pool_31 ): New
9515         insns.
9516         * config/s390/s390.c (struct machine_function): Introduction of
9517         struct machine_function.
9518         (s390_output_symbolic_const): Use of cfun.
9519         (s390_optimize_prolog): Likewise.
9520         (s390_fixup_clobbered_return_reg): Likewise.
9521         (s390_frame_info): Likewise.
9522         (s390_emit_prologue, s390_emit_epilogue): Likewise.
9523         (s390_init_machine_status): New function.
9524         (override_options): call s390_init_machine_status.
9525         * config/s390/s390-protos.h (s390_output_constant_pool): Changed
9526         prototype.
9527
9528 2002-11-26  Jakub Jelinek  <jakub@redhat.com>
9529
9530         * varasm.c (output_constant_pool): For pool constants in mergeable
9531         section ensure each constant is padded to multiple of entity size.
9532
9533 2002-11-26  Jakub Jelinek  <jakub@redhat.com>
9534
9535         * varasm.c (default_exception_section): Move to...
9536         * except.c (default_exception_section): ... here. Make
9537         .gcc_except_table read-only if it is not expected to have any
9538         dynamic relocations and linker handles it.
9539         * dwarf2out.c (default_eh_frame_section): Make .eh_frame read-only
9540         if it is not expected to have any dynamic relocations and linker
9541         handles it.
9542         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Check what ld does
9543         when linking read-only and read-write sections together.
9544         * configure, config.in: Rebuilt.
9545         * crtstuff.c (EH_FRAME_SECTION_CONST): Define.
9546         (__EH_FRAME_BEGIN__, __FRAME_END__): Add it.
9547
9548 Mon Nov 25 18:32:37 CET 2002  Jan Hubicka  <jh@suse.cz>
9549
9550         * i386.md (pushsf_rex64): Fix typo.
9551
9552 2002-11-25  Aldy Hernandez  <aldyh@redhat.com>
9553
9554         * config/rs6000/spe.h (__ev_create_sfix32_fs): Change macro into
9555         new function.
9556         (__ev_create_ufix32_fs): Same.
9557         (__ev_get_sfix32_fs_internal): New.
9558         (__ev_get_sfix32_fs): Define to use function.
9559         (__ev_get_ufix32_fs_internal): New.
9560         (__ev_get_ufix32_fs): Define to use function.
9561         (__ev_get_upper_ufix32_fs): Call __ev_get_ufix32_fs.
9562         (__ev_get_lower_ufix32_fs): Same.
9563         (__ev_get_upper_sfix32_fs): Call __ev_get_sfix32_fs.
9564         (__ev_get_lower_sfix32_fs): Same.
9565         (__ev_set_sfix32_fs_internal): New.
9566         (__ev_set_ufix32_fs_internal): New.
9567         (__ev_set_sfix32_fs): Call __ev_set_sfix32_fs_internal.
9568         (__ev_set_ufix32_fs): Call __ev_set_ufix32_fs_internal.
9569         (__ev_set_upper_sfix32_fs): Call function.
9570         (__ev_set_lower_sfix32_fs): Same.
9571         (__ev_set_upper_ufix32_fs): Same.
9572         (__ev_set_lower_ufix32_fs): Same.
9573
9574 2002-11-25  Douglas B Rupp  <rupp@gnat.com>
9575
9576         * gcc.c (do_spec_1): Reset delete_this_arg to zero.
9577
9578 2002-11-25  Jason Thorpe  <thorpej@wasabisystems.com>
9579
9580         * config/elfos.h (HANDLE_SYSV_PRAGMA): Define as 1.
9581         * config/interix.h (HANDLE_SYSV_PRAGMA): Likewise.
9582         * config/linux-aout.h (HANDLE_SYSV_PRAGMA): Likewise.
9583         * config/lynx-ng.h (HANDLE_SYSV_PRAGMA): Likewise.
9584         * config/lynx.h (HANDLE_SYSV_PRAGMA): Likewise.
9585         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Likewise.
9586         * config/openbsd.h (HANDLE_SYSV_PRAGMA: Likewise.
9587         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Likewise.
9588         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Likewise.
9589         * config/cris/aout.h (HANDLE_SYSV_PRAGMA): Likewise.
9590         * config/d30v/d30v.h (HANDLE_SYSV_PRAGMA): Likewise.
9591         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Likewise.
9592         * config/i386/djgpp.h (HANDLE_SYSV_PRAGMA): Likewise.
9593         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Likewise.
9594         * config/i386/vxi386.h (HANDLE_SYSV_PRAGMA): Likewise.
9595         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Likewise.
9596         * config/m88k/m88k.h (HANDLE_SYSV_PRAGMA): Likewise.
9597         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Likewise.
9598         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Likewise.
9599         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Likewise.
9600         * config/sparc/linux-aout.h (HANDLE_SYSV_PRAGMA): Likewise.
9601         * config/sparc/vxsparc64.h (HANDLE_SYSV_PRAGMA): Likewise.
9602         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Likewise.
9603         * config/alpha/osf.h (HANDLE_SYSV_PRAGMA): Don't undef before
9604         defining.
9605         * config/i386/sco5.h (HANDLE_SYSV_PRAGMA): Likewise.
9606         * config/mips/iris5.h (HANDLE_SYSV_PRAGMA): Likewise.
9607
9608 2002-11-25  Dave Pitts  <dpitts@cozx.com>
9609
9610         * gcc/fixinc/mkfixinc.sh: add i370-*-openedition to bypass fixinc list
9611
9612 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
9613
9614         * config/h8300/h8300.md (an anonymous pattern): New.
9615
9616 2002-11-25  Richard Henderson  <rth@redhat.com>
9617
9618         * alias.c (find_base_value): Use new_reg_base_value if it's live.
9619         (copying_arguments): Make boolean.
9620
9621 2002-11-25  Jason Thorpe  <thorpej@wasabisystems.com>
9622
9623         * gcc.c (static_spec_functions): Add if-exists-else spec
9624         function.
9625         (if_exists_else_spec_function): New function.
9626         * doc/invoke.texi: Document the if-exists-else spec function.
9627
9628         * config/netbsd-elf.h (NETBSD_STARTFILE_SPEC): For -static, use
9629         "%:if-exists-else(crtbeginT%O%s crtbegin%O%s)".
9630
9631 2002-11-25  Jason Thorpe  <thorpej@wasabisystems.com>
9632
9633         * config.gcc (powerpc-*-netbsd*): Replace "svr4.h" with
9634         "netbsd.h netbsd-elf.h" in tm_file.  Set tmake_file to
9635         "${tmake_file} rs6000/t-netbsd".
9636         * config/rs6000/netbsd.h: Rewrite.
9637         * config/rs6000/t-netbsd: New file.
9638
9639 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
9640
9641         * config/h8300/h8300.md (an anonymous pattern): Relax the
9642         condition for the pattern.
9643
9644 2002-11-25  Aldy Hernandez  <aldyh@redhat.com>
9645
9646         * config/rs6000/rs6000.h (enum rs6000_builtins): Remove evmwlssf,
9647         evmwlsmf, evmwlssfa, evmwlsmfa, evmwlssfaaw, evmwlsmfaaw,
9648         evmwlssfanw, evmwlsmfanw.
9649
9650         * config/rs6000/rs6000.c (bdesc_2arg): Same.
9651
9652         * config/rs6000/spe.md: Same for patterns.
9653
9654 2002-11-25  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
9655
9656         PR c/8639
9657         * fold-const.c (extract_muldiv): Don't propagate division unless
9658         both arguments are multiples of C.
9659
9660 2002-11-25  Andrew Haley  <aph@redhat.com>
9661
9662         * libgcc-std.ver (_Unwind_Find_Enclosing_Function): Add.
9663         * config/ia64/unwind-ia64.c (_Unwind_Find_Enclosing_Function): New.
9664         * unwind-sjlj.c (_Unwind_Find_Enclosing_Function): Likewise.
9665         * unwind-dw2.c (_Unwind_Find_Enclosing_Function): Likewise.
9666
9667 Sun Nov 24 10:38:04 CET 2002  Jan Hubicka  <jh@suse.cz>
9668
9669         * i386.c (x86_use_ffreep): New global variable.
9670         * i386.h (x86_use_frfeep): Declare
9671         (TARGET_USE_FFREEP): New macro
9672         * i386.md  (movs?f*): Use freep when asked for.
9673         (push?f): Remove dead code.
9674
9675 2002-11-24  Kazu Hirata  <kazu@cs.umass.edu>
9676
9677         * config/h8300/h8300.c (h8300_init_once): Fix a typo in the
9678         target help message.
9679
9680 2002-11-24  Jason Thorpe  <thorpej@wasabisystems.com>
9681
9682         * config.gcc (*-*-netbsd*1.[7-9]*, *-*-netbsd*[2-9]*): Set
9683         extra_parts to "crtbegin.o crtend.o crtbeginS.o crtendS.o
9684         crtbeginT.o".
9685         (arm*-*-netbsd*, i[34567]86-*-netbsd*, m68k*-*-netbsd*)
9686         (ns32k-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Set extra_parts
9687         to "" for a.out configurations.
9688         * config/t-netbsd (CRTSTUFF_T_CFLAGS): Set to "-fPIC".
9689
9690 2002-11-24  Jason Thorpe  <thorpej@wasabisystems.com>
9691
9692         * config/alpha/netbsd.h (CPP_SUBTARGET_SPEC): Just use
9693         NETBSD_CPP_SPEC directly.
9694         (SUBTARGET_EXTRA_SPECS): Remove netbsd_cpp_spec.  Add
9695         netbsd_endfile_spec.
9696         (ENDFILE_SPEC): Use %(netbsd_endfile_spec).
9697
9698 2002-11-24  Jason Thorpe  <thorpej@wasabisystems.com>
9699
9700         * config/netbsd-elf.h (STARTFILE_SPEC): Rename to
9701         NETBSD_STARTFILE_SPEC.
9702         (STARTFILE_SPEC): Redefine in terms of NETBSD_STARTFILE_SPEC.
9703         (ENDFILE_SPEC): Likewise.
9704         * config/netbsd.h (LIB_SPEC, LIBGCC_SPEC): Likewise.
9705
9706 2002-11-24  Andreas Schwab  <schwab@suse.de>
9707
9708         * Makefile.in (install-driver): Remove versioned link before
9709         trying to create it.
9710
9711         * config/m68k/m68k.c: Fix typo in last change defining
9712         TARGET_ASM_CAN_OUTPUT_MI_THUNK.
9713
9714 2002-11-23  H.J. Lu <hjl@gnu.org>
9715
9716         * aclocal.m4: Include ../config/accross.m4.
9717         (gcc_AC_COMPILE_CHECK_SIZEOF): Removed.
9718         (gcc_AC_C_COMPILE_ENDIAN): Removed.
9719         (gcc_AC_C_FLOAT_FORMAT): Check $ac_cv_c_bigendian
9720         instead of $ac_cv_c_compile_endian.
9721
9722         * configure.in: Replace gcc_AC_COMPILE_CHECK_SIZEOF with
9723         AC_COMPILE_CHECK_SIZEOF.
9724         Replace gcc_AC_C_COMPILE_ENDIAN with AC_C_BIGENDIAN_CROSS.
9725         * configure: Rebuild.
9726
9727 2002-11-23  Kazu Hirata  <kazu@cs.umass.edu>
9728
9729         * config/h8300/h8300.c (print_operand): Update the use of
9730         h8300_tiny_constant_address_p.
9731         (h8300_adjust_insn_length): Likewise.
9732         (h8300_tiny_constant_address_p): Check if the given rtx is a
9733         variable declared with __attribute__ ((tiny_data)).
9734
9735 2002-11-22  Dale Johannesen  <dalej@apple.com>
9736
9737         * toplev.c (rest_of_compilation):  Fix comments.
9738
9739 2002-11-22  Geoffrey Keating  <geoffk@apple.com>
9740
9741         * aclocal.m4 (ac_cv_func_mmap_dev_zero): Darwin does not
9742         allow mmap from /dev/zero.  Don't make decisions for the host
9743         based on presence or absence of /dev/zero on the build machine.
9744         (ac_cv_func_mmap_anon): Darwin does have working MMAP_ANON.
9745         (AC_FUNC_MMAP_FILE): Darwin does have mmap of a file.
9746         * configure: Regenerate.
9747
9748 2002-11-22  Daniel Jacobowitz  <drow@mvista.com>
9749
9750         * gcc.c (make_relative_prefix, split_directories)
9751         (free_split_directories): Removed.
9752
9753 2002-11-22  Daniel Jacobowitz  <drow@mvista.com>
9754
9755         * configure.in: Set insn=nop for DWARF-2 tests on ARM.
9756         * configure: Regenerated.
9757
9758 2002-11-22  Kazu Hirata  <kazu@cs.umass.edu>
9759
9760         * config/h8300/h8300.c (compute_a_shift_length): Fix the insn
9761         length computation when xor.l is output.
9762
9763 2002-11-21  Douglas B Rupp  <rupp@gnat.com>
9764
9765         * alpha.md (movstrdi, clrstrdi): New VMS patterns.
9766         (call_vms_1, call_value_vms_1): Cleanup syntax.
9767
9768 Thu Nov 21 19:20:27 CET 2002  Jan Hubicka  <jh@suse.cz>
9769
9770         * athlon.md (define_atuomaton): Add athlon_load.
9771         (athlon-double): New reservation.
9772         (athlon-ieu0): New CPU unit.
9773         (athlon-load?): Use athlon_load automaton.
9774         (*_k8 reservations): New.
9775         (other insn revervations): Activate for K8.
9776
9777 Thu Nov 21 15:07:42 CET 2002  Jan Hubicka  <jh@suse.cz>
9778
9779         * cfgrtl.c (verify_flow_info):  Accept EDGE_CAN_FALLTHRU flag.
9780
9781 2002-11-21  Jim Wilson  <wilson@redhat.com>
9782
9783         * config/rs6000/rs6000.c (function_arg): Set inner mode of SPE
9784         vectors to SI.
9785
9786 2002-11-21  Bob Wilson  <bob.wilson@acm.org>
9787
9788         * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Declare.
9789         * config/xtensa/xtensa.c (struct machine_function): Add
9790         incoming_a7_copied flag.
9791         (xtensa_copy_incoming_a7): Define.
9792         (xtensa_emit_move_sequence): Use xtensa_copy_incoming_a7.
9793         * config/xtensa/xtensa.md (movdi, movsf, movdf): Ditto.
9794
9795 Thu Nov 21 23:52:04 CET 2002  Jan Hubicka  <jH@suse.cz>
9796
9797         * i386-protos.h (x86_64_sign_extended_value): Fix prototype.
9798         * i386.c (x86_64_general_operand, x86_64_szext_general_operand,
9799         x86_64_nonmemory_operand, x86_64_movabs_operand,
9800         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
9801         ix86_expand_int_movcc): Update call of x86_64_sign_extended_value.
9802         (local_symbolic_operand): Do not care the 64bit limits.
9803         (x86_64_sign_extended_value): Remove allow_rip support.
9804         (legitimate_pic_address_disp_p): Handle all cases allowed
9805         with RIP addressing.
9806         (legitimate_address_p): Use legitimate_pic_address_disp_p for PIC.
9807         (legitimize_pic_address): Reorganize.
9808         * i386.h (EXTRA_CONSTRAINT): Update call of x86_64_sign_extended_value.
9809
9810 2002-11-21  Jason Thorpe  <thorpej@wasabisystems.com>
9811
9812         * config.gcc (arm*-*-netbsdelf*): Enable configuration.
9813         * config/arm/netbsd-elf.h: New file.
9814
9815 2002-11-21  Jason Thorpe  <thorpej@wasabisystems.com>
9816
9817         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
9818         subtarget_asm_float_spec.
9819         (SUBTARGET_ASM_FLOAT_SPEC): Define, moving the
9820         defaults from...
9821         (ASM_SPEC): ...here.  Use subtarget_asm_float_spec.
9822
9823 2002-11-21  Nick Clifton  <nickc@redhat.com>
9824
9825         * config/fr30/fr30.md (movsf_constant_store): Move code to
9826         detect 0.0 into fr30.c.
9827         * config/fr30/fr30-protos.h (fr30_const_double_is_zero):
9828         Prototype.
9829         * config/fr30/fr30.c (fr30_const_double_is_zero): New
9830         function.  Return true if the rtx is 0.0.
9831
9832 2002-11-21  Jason Thorpe  <thorpej@wasabisystems.com>
9833
9834         * config/arm/elf.h (ASM_SPEC, LINK_SPEC): Pass -EL
9835         if -mlittle-endian is specified.
9836
9837 2002-11-21  Richard Earnshaw  <rearnsha@arm.com>
9838
9839         PR optimization/2903
9840         * arm.md (anddi_notzesidi_di): Operand 2 is inverted not operand 1.
9841         (anddi_notsesidi_di): Likewise.
9842
9843 2002-11-21  Kazu Hirata  <kazu@cs.umass.edu>
9844
9845         * config/h8300/h8300.c (print_operand): Use
9846         h8300_eightbit_constant_address_p and
9847         h8300_tiny_constant_address_p.
9848         (h8300_adjust_insn_length): Likewise.
9849         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Remove.
9850         (TINY_CONSTANT_ADDRESS_P): Likewise.
9851         (OK_FOR_U): Use eightbit_constant_address_p.
9852
9853 2002-11-21  Ulrich Weigand  <uweigand@de.ibm.com>
9854
9855         * config/s390/libgcc-libc.ver: Add multilib support.
9856         * config/s390/linux.h (MULTILIB_DEFAULT): Define.
9857         * config/s390/t-linux64 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
9858         MULTILIB_OSDIRNAMES, LIBGCC, INSTALL_LIBGCC,
9859         EXTRA_MULTILIB_PARTS): Define.
9860
9861 2002-11-21  Richard Earnshaw  <rearnsha@arm.com>
9862
9863         * arm.c (arm_get_frame_size): A leaf function does not need its
9864         stack padding to an aligned boundary if it has no frame.
9865         (thumb_get_frame_size): Likewise.
9866
9867 Wed Nov 20 22:25:53 CET 2002  Jan Hubicka  <jh@suse.cz>
9868
9869         * x86-64.h (MCOUNT_NAME): Fix typo in my previous patch.
9870         (override_options): Likewise.
9871
9872 Wed Nov 20 19:07:17 CET 2002  Jan Hubicka  <jh@suse.cz>
9873
9874         * config.gcc: Add k8 target alias support
9875         * i386.c (_cost): Declare costs for various variants of divides and
9876         multiplies.
9877         (k8_cost): New.
9878         (m_K8, m_ATHLON_K8): New macros.
9879         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
9880         x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_fiop,
9881         x86_promote_QImode, x86_sub_esp_?, x86_add_esp_?,
9882         x86_integer_DFmode_moves, x86_partial_reg_dependency,
9883         x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
9884         x86_prologue_using_move, x86_epilogue_using_move,
9885         x86_arch_always_fancy_math_387, x86_sse_partial_regs,
9886         x86_sse_typeless_stores): Set for K8
9887         (override_options): Add k8 support; fix athlon alignment;
9888         complain about non-x86-64 capable CPU being used in x86-64 compilation.
9889         (ix86_issue_rate): Set for K8.
9890         (ix86_adjust_cost, ia32_use_dfa_pipeline_interface,
9891         x86_machine_dependent_reorg): Handle K8 like
9892         * i386.h
9893         (x86_costs):  Change mult_init and divide into array.
9894         (TARGET_K8, TARGET_ATHLON): New macros.
9895         (MODE_INDEX): New macro.
9896         (RTX_COST): Use new costs.
9897         (TARGET_CPU_CPP_BUILTINS):  Define __k8__ and __tune_k8__.
9898         (TARGET_CPU_DEFAULT_NAMES): Add k8
9899         (TARGET_CPU_DEFAULT_k8): New constant
9900         (enum processor_type): Add PROCESSOR_K8.
9901         * i386.md (cpu attribute): Add k8.
9902
9903         * invoke.texi: Document -march=k8.
9904
9905         * i386.md (type attribute): Add leave
9906         (mode attribute): Remove unknownfp.
9907         (length_immediate, modrm, memory attributes): Handle leave correctly.
9908         (fp comparison patterns): Determine FP mode.
9909         (leave, leave_rex64): Remove special cases.
9910         * ppro.md (ppro_uops, ppro_p2): Add leave
9911         * pentiun.md (pent_pop): Handle leave too.
9912         * k6.md (k6_load): Handle leave.
9913         * athlon.md (athlon_leave, athlon_pop): Fix.
9914         (athlon_decode): Handle leave.
9915
9916 2002-11-20  Steve Ellcey  <sje@cup.hp.com>
9917
9918         * emit-rtl.c (gen_reg_rtx): Simplify mapping of Complex type
9919         to component type using GET_MODE_INNER.
9920         * expr.c (emit_move_insn_1): Ditto.
9921         * optabs.c (expand_binop): Ditto.
9922         (expand_unop): Ditto.
9923         (expand_complex_abs): Ditto.
9924
9925 2002-11-20  Douglas B Rupp  <rupp@gnat.com>
9926
9927         * hwint.h (HAVE___INT64): Fix typo (was HAVE__INT64).
9928
9929 2002-11-20  DJ Delorie  <dj@redhat.com>
9930
9931         * config/stormy16/stormy16.c (s16builtins,
9932         xstormy16_init_builtins, xstormy16_expand_builtin): New.
9933         * config/stormy16/stormy16.md (divmodhi4, sdivlh, udivlh): New.
9934
9935 2002-11-20  Hans-Peter Nilsson  <hp@bitrange.com>
9936
9937         * Makefile.in (RUN_GEN, VALGRIND_DRIVER_DEFINES): New variables.
9938         (DRIVER_DEFINES): Add $(VALGRIND_DRIVER_DEFINES).
9939         (executing gencheck, genconfigs, genconditions, genflags,
9940         gencodes, genconstants, genemit, genrecog, genopinit, genextract,
9941         genpeep, genattr, genattrtab, genoutput, gengenrtl, genpreds,
9942         gengtype, genprotos): Prepend $(RUN_GEN).
9943         * configure.in: Move host compiler tests before --enable-checking
9944         tests.
9945         (--enable-checking=valgrind): New.
9946         * config.in, configure: Regenerate.
9947         * cppfiles.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
9948         Define as empty.
9949         (read_include_file): When doing the mmap+1 trick,
9950         valgrind-annotate the byte after the mmap:ed area as readable.
9951         (purge_cache): Remove above annotation.
9952         * gcc.c (execute) [ENABLE_VALGRIND_CHECKING]: Arrange to prepend
9953         VALGRIND_PATH -q to each command.
9954
9955         * ggc-common.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
9956         Define as empty.
9957         (ggc_realloc): Update valgrind annotations.
9958         * ggc-page.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
9959         Define as empty.
9960         (alloc_anon, free_page, ggc_alloc, poison_pages): Add machinery to
9961         valgrind-annotate memory.
9962
9963 2002-11-20  Ulrich Weigand  <uweigand@de.ibm.com>
9964
9965         * recog.c (constrain_operands): Prefer exact match over reloadable
9966         EXTRA_MEMORY_CONSTRAINT or EXTRA_ADDRESS_CONSTRAINT.
9967
9968         * reload.c (find_reloads): Always reload EXTRA_ADDRESS_CONSTRAINT
9969         operands in Pmode.
9970
9971 2002-11-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
9972
9973         PR c/8518
9974         * c-decl.c (duplicate_decls): Outline the second definition
9975         of an extern inline function in all cases.
9976
9977 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
9978
9979         * stor-layout.c (place_field): Update rli->offset as well as
9980         rli->bitpos.
9981
9982 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
9983
9984         * sched-deps.c (sched_analyze): Check HARD_REGNO_CALL_PART_CLOBBERED.
9985
9986 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
9987
9988         * config/sh/sh.md (udivsi3): Don't put udivsi3_i4_media instructions
9989         into a libcall block.
9990         (divsi3): Likewise divsi3_i4_media.
9991
9992 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
9993
9994         * global.c (find_reg): Check HARD_REGNO_NREGS before kicking
9995         out another register.
9996
9997 2002-11-20  Jakub Jelinek  <jakub@redhat.com>
9998
9999         * combine.c (force_to_mode): Only replace with (not Y) if all bits in fuller_mask
10000         (not just mask) are set in C.
10001
10002 2002-11-19  Steven Bosscher <steven.bosscher@usafa.af.mil>
10003
10004         * config/mips/vr.h (DRIVER_SELF_SPECS): Change %{<mgp32} to %<mgp32.
10005
10006 2002-11-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10007
10008         * profile.c (index_counts_file): Fix obvious mistake.
10009
10010 2002-11-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10011
10012         * Makefile.in (profile.o): Add hashtab.h dependency.
10013         * gcov-io.h (GCOV_SUMMARY_LENGTH): New.
10014         * profile.c: Include hashtab.h.
10015         (htab_counts_index_hash, htab_counts_index_eq, htab_counts_index_del,
10016         cleanup_counts_index, index_counts_file, struct section_reference,
10017         struct da_index_entry, counts_file_name, counts_file_index): New.
10018         (get_exec_counts, init_branch_prob): Modified.
10019
10020 2002-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
10021
10022         * config.gcc (sh*-*-linux*): Add t-slibgcc-elf-ver and t-linux
10023         to tmake_file. Remove setting gas and gnu_ld here.
10024         * config/sh/libgcc-glibc.ver: New file.
10025         * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
10026         (SHLIB_MAPFILES): New.
10027         * config/sh/linux.h (MD_EXEC_PREFIX): Undefine.
10028         (MD_STARTFILE_PREFIX): Likewise.
10029         (HANDLE_PRAGMA_PACK_PACK_PUSH_POP): Define.
10030         (DWARF2_UNWIND_INFO): Redefine.
10031         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10032         (LINK_EH_SPEC): Redefine.
10033         (MD_FALLBACK_FRAME_STATE_FOR): Define except for SH-media.
10034         (SH_FALLBACK_FRAME_FLOAT_STATE): Define.
10035         (SH_DWARF_FRAME_GP0, SH_DWARF_FRAME_FP0, SH_DWARF_FRAME_XD0,
10036         SH_DWARF_FRAME_BT0, SH_DWARF_FRAME_PR, SH_DWARF_FRAME_PR_MEDIA,
10037         SH_DWARF_FRAME_GBR, SH_DWARF_FRAME_MACH, SH_DWARF_FRAME_MACL,
10038         SH_DWARF_FRAME_PC, SH_DWARF_FRAME_SR, SH_DWARF_FRAME_FPUL,
10039         SH_DWARF_FRAME_FPSCR): Likewise.
10040         * config/sh/sh-protos.h (sh_set_return_address): Declare.
10041         * config/sh/sh.c (calc_live_regs): Count EH_RETURN_DATA_REGNO
10042         registers if the current function calls EH return.
10043         (sh_expand_epilogue): Handle EH stack adjustments.
10044         (sh_set_return_address): New function.
10045         * config/sh/sh.h (SH_DBX_REGISTER_NUMBER): Handle PR_MEDIA_REG.
10046         Don't abort even if the number is mapped to -1.
10047         (EH_RETURN_DATA_REGNO): Define.
10048         (EH_RETURN_STACKADJ_RTX): Define.
10049         * config/sh/sh.md (UNSPEC_EH_RETURN): New.
10050         (eh_return): New pattern.
10051         (eh_set_ra_di, eh_set_ra_si): Likewise.
10052         Add splitter to perform EH return after reload.
10053
10054 Tue Nov 19 12:52:07 2002  J"orn Rennecke <joern.rennecke@superh.com>
10055
10056         * stor-layout.c (excess_unit_span): New function.
10057         (place_field): Use it.
10058
10059 2002-11-19  Andreas Schwab  <schwab@suse.de>
10060
10061         * unwind.h (_Unwind_GetTextRelBase): Revert last change, this is
10062         not valid in C++.
10063
10064 2002-11-19  Nathanael Nerode  <neroden@gcc.gnu.org>
10065
10066         * configure.in, Makefile.in: Correct BUILD/HOST confusion.
10067         * configure: Regenerate.
10068
10069 Tue Nov 19 00:11:44 CET 2002  Jan Hubicka  <jh@suse.cz>
10070
10071         * convert.c (strip_float_extensions): New function.
10072         (convert_to_real): Optimize some cases.
10073
10074 2002-11-19  Andreas Jaeger  <aj@suse.de>
10075
10076         * loop.c (record_giv): Initialize not_replaceable.
10077         (check_final_value): Likewise.
10078
10079 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
10080
10081         * config/h8300/h8300.c (h8300_init_once): Replace 1 with
10082         MASK_H8300S.
10083
10084 2002-11-19  Vijay L. Khuspe  <vijayk1@kpit.com>
10085
10086         * config/h8300/h8300.c (h8300_init_once): Allow -mn switch
10087         only if -mh or -ms present.
10088         (h8300_eightbit_constant_address_p): Support the normal mode.
10089         (h8300_tiny_constant_address_p): Likewise.
10090         * config/h8300/h8300.h (TARGET_NORMAL_MODE): New.
10091         (POINTER_SIZE): Add 16 bit pointer for the normal mode.
10092         (Pmode): Evaluate to HImode for the normal mode.
10093         (SIZE_TYPE): Evaluate to unsigned int for normal mode.
10094         (PTRDIFF_TYPE): Evaluate to int for the normal mode.
10095         (ASM_WORD_OP): Evaluate to word for the normal mode.
10096         * config/h8300/h8300.md (tablejump_normal_mode): New.
10097         (indirect_jump_normal_mode): New.
10098         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Pass -mn option to
10099         directory.
10100         (MULTILIB_DIRNAMES): Create target dependent directory
10101         'normal'.
10102         (MULTILIB_EXCEPTIONS): Don't turn on -mn on H8/300.
10103         * doc/invoke.texi (gccoptlist): Describe the new switch -mn.
10104
10105 Tue Nov 19 23:50:56 CET 2002  Jan Hubicka  <jh@suse.cz>
10106
10107         * i386.md (length_immediate): Do not refer to insn address.
10108         (jcc*, jmp patterns):  Compute length explicitly.
10109
10110 2002-11-19 Eric Botcazou <ebotcazou@libertysurf.fr>
10111
10112         PR c/8588
10113         * optabs.c (expand_binop): Convert CONST_INTs in shift
10114         operations too.
10115
10116 2002-11-19  Roger Sayle  <roger@eyesopen.com>
10117
10118         * gcse.c (gcse_emit_move_after): Correct typo in REG_EQUAL note.
10119
10120 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
10121
10122         * config/h8300/h8300.md (an anonymous pattern): Relax the
10123         condition to accept the same operands and/or subregs.
10124
10125 2002-11-19  Daniel Jacobowitz  <drow@mvista.com>
10126
10127         * config/sh/sh.c (gen_shl_and): Revert previous patch.
10128         * config/sh/sh.md (ashrdi3+1, ashrdi3+2): Predicate on
10129         reload_completed.
10130
10131 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
10132
10133         * config/h8300/h8300.c (print_operand): Update the use of
10134         EIGHTBIT_CONSTANT_ADDRESS_P.
10135         (h8300_adjust_insn_length): Likewise.
10136         (h8300_eightbit_constant_address_p): Check if the given rtx is
10137         a variable with __attribute__((eightbit_data)).
10138         * config/h8300/h8300.h (OK_FOR_U): Update the use of
10139         EIGHTBIT_CONSTANT_ADDRESS_P.
10140
10141 2002-11-19  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10142
10143         * doc/contrib.texi (Contributors): Add self as second contact in
10144         addition to Jeff Law.
10145
10146 2002-11-19  Andreas Jaeger  <aj@suse.de>
10147
10148         * tree-inline.c: Move prototpyes of find_alloca_call_1 and
10149         find_alloca_call to right place.
10150
10151 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
10152
10153         * cppfiles.c: Fix formatting.
10154
10155 2002-11-19  Jason Thorpe  <thorpej@wasabisystems.com>
10156
10157         * gcc.c (The Specs Language): Document spec functions.
10158         (static_spec_functions, lookup_spec_function)
10159         (eval_spec_function, handle_spec_function)
10160         (if_exists_spec_function, alloc_args): New.
10161         (execute): Abort if processing_spec_function is true.
10162         (do_spec_1): Hand off spec to handle_spec_function if %:
10163         is encountered.  If processing_spec_function is true,
10164         end any pending argument when the end of the string is reached.
10165         (main): Use alloc_args to allocate the initial argument vector.
10166         * gcc.h (struct spec_function): New.
10167         (lang_specific_spec_functions): New extern.
10168
10169         * config/netbsd-elf.h (STARTFILE_SPEC): Add if-exists(crti%O%s).
10170         (ENDFILE_SPEC): Add if-exists(crtn%O%s).
10171         * config/alpha/netbsd.h (ENDFILE_SPEC): Likewise.
10172
10173         * doc/invoke.texi: Document spec functions.
10174
10175         * cppspec.c (lang_specific_spec_functions): New.
10176         * gccspec.c: Likewise.
10177
10178 2002-11-18  Steve Ellcey  <sje@cup.hp.com>
10179
10180         * config/ia64/hpux_longdouble.h (FIXUNS_TRUNCTFSI2_LIBCALL): New.
10181         (FIXUNS_TRUNCTFDI2_LIBCALL): New.
10182         (fixunstfsi_libfunc): Change.
10183         (fixunstfdi_libfunc): Change.
10184         (sdiv_optab): Don't zero out SImode handler.
10185         (udiv_optab): Don't zero out SImode handler.
10186         (smod_optab): Don't zero out SImode handler.
10187         (umod_optab): Don't zero out SImode handler.
10188
10189 2002-11-18  Neil Booth  <neil@daikokuya.co.uk>
10190
10191         PR preprocessor/8524
10192         * cpplib.c (run_directive): Remove previous kludge to _Pragma.
10193         Add a new one in its place, which hopefully works.
10194         (skip_rest_of_line): Change test for bottom-of-context-stack.
10195
10196 Mon Nov 18 21:29:03 CET 2002  Jan Hubicka  <jh@suse.cz>
10197
10198         * i386.md (addqi_1_slp): Fix output template.
10199         (subqi_1_slp): Fix type.
10200
10201 Sun Nov 17 00:01:28 CET 2002  Jan Hubicka  <jh@suse.cz>
10202
10203         * calls.c (alloca_call_p): New global function.
10204         * tree.h (alloca_call_p): New.
10205         * tree-inline.c (inlinable_function_p):  Do not inline when
10206         function calls alloca.
10207         (find_alloca_call, find_alloca_call_1): New functions.
10208
10209 2002-11-18  Kazu Hirata  <kazu@cs.umass.edu>
10210
10211         * config/h8300/h8300.md (*andorqi3): Use bor between bld and
10212         bst.  Update the insn length.
10213         (*andorhi3): Likewise.
10214         (*andorsi3): Likewise.
10215
10216 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
10217
10218         * config/sh/sh-protos.h (sh_mark_label): Declare.
10219         * config/sh/sh.c (sh_mark_label): New function, taken from
10220         movdi_const, but fixing the case when the address has an addend.
10221         * config/sh/sh.md (movdi_const, movdi_const_32bit): Use it.
10222
10223 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
10224
10225         * config/sh/sh.c (pool_node): New field: part_of_sequence_p.
10226         (add_constant): Set it.
10227         (dump_table): Don't reorder a constant if part_of_sequence_p.
10228         (machine_dependent_reorg): Assume that float constants will
10229         stay in their original order if used as a sequence.
10230
10231 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
10232
10233         * config/sh/sh.c (calc_live_regs): Update check for PIC liveness
10234         in compact code.
10235
10236 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
10237
10238         * config/sh/sh.md (initialize_trampoline): Do not force the
10239         trampoline address into R0_REGS here.
10240
10241 Sun Nov 17 14:01:09 CET 2002  Jan Hubicka  <jh@suse.cz>
10242
10243         * i386.md (negsf2_ifs, negdf2_ifs, negdf2_ifs_rex64, abssf2_ifs,
10244         absdf2_ifs, absdf2_ifs_rex64): Fix constraints.
10245         (neg?f2_ifs, abs?f2_ifs splitters): Refuse memory operand; do not
10246         generate unnecesary subregs.
10247
10248 2002-11-17  Kazu Hirata  <kazu@cs.umass.edu>
10249
10250         * df.c: Fix formatting.
10251
10252 2002-11-17  Kazu Hirata  <kazu@cs.umass.edu>
10253
10254         * config/h8300/h8300.md (two anonymous patterns): Fix insn
10255         lengths.
10256
10257 2002-11-17  Daniel Jacobowitz  <drow@mvista.com>
10258
10259         * sh.c (gen_shl_and): Don't create a zero_extend if the operand
10260         is not an arith_reg_operand.
10261
10262 2002-11-17  Graham Stott  <graham.stott@btinternet.com>
10263
10264         * real.c (real_to_decimal): Fix buffer overrun when buffer size
10265         is smaller than representation.
10266
10267 2002-11-17  Kazu Hirata  <kazu@cs.umass.edu>
10268
10269         * builtins.c: Fix formatting.
10270
10271 Sat Nov 16 16:49:58 CET 2002  Jan Hubicka  <jh@suse.cz>
10272
10273         * i386.md (truncdfsf2_1_sse, truncdfsf2_1_sse_nooverlap, truncdfsf2_2,
10274         floats?dff2_i387):
10275         Work around regclass stupidity.
10276         (truncdfsf_2_1_sse splitter):  Accept !TARGET_PARTIAL_SSE_REGS
10277
10278 Sat Nov 16 02:17:48 CET 2002  Jan Hubicka  <jh@suse.cz>
10279
10280         * i386.md (fop_df_6): New pattern.
10281         (fop_xf_4, fop_xf_5): Handle both SF and DFmode extensions.
10282         (fop_xf_6): Rewrite
10283         (fop_xf_7): Delete.
10284         (fop_tf_4, fop_tf_5): Handle both SF and DFmode extensions.
10285         (fop_tf_6): Rewrite
10286         (fop_tf_7): Delete.
10287
10288 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
10289
10290         * config/h8300/h8300.md (two anonymous patterns): Fix typos.
10291
10292 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
10293
10294         * config/h8300/h8300.md: Fix formatting.
10295
10296 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
10297
10298         * config/h8300/h8300.md: Replace spaces with tabs.
10299         * config/h8300/t-h8300: Remove a trailing empty line.
10300
10301 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
10302
10303         * tlink.c: Fix formatting.
10304
10305 2002-11-16  David Edelsohn  <edelsohn@gnu.org>
10306
10307         PR 8362
10308         * config/rs6000/rs6000.c (rs6000_outout_load_multiple): New function.
10309         * config/rs6000/rs6000.md (movti_string): Remove output modifier
10310         when scratch register never needed.
10311         (ldmsi[3-8]): New patterns.
10312
10313 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
10314
10315         * hard-reg-set.h: Follow spelling conventions.
10316         * real.c: Likewise.
10317         * target.h: Likewise.
10318
10319 2002-11-16  Jakub Jelinek  <jakub@redhat.com>
10320
10321         * config/i386/x86-64.h (MCOUNT_NAME): Change into string literal.
10322
10323 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
10324
10325         * optabs.c: Fix formatting.
10326
10327 Sat Nov 16 02:06:02 CET 2002  Jan Hubicka  <jh@suse.cz>
10328
10329         * athlon.md, k6.md, pentium.md, ppro.md: Handle shift1, rotate1
10330         * i386.md (attribute type): Add type shift1 and rotate1.
10331         (*_slp): Rewrite to have just two operands to avoid reload problems.
10332
10333 2002-11-15  Kazu Hirata  <kazu@cs.umass.edu>
10334
10335         * config/h8300/h8300.md (4 anonymous patterns): New.
10336
10337 2002-11-15  Geoffrey Keating  <geoffk@apple.com>
10338
10339         * params.def (GGC_MIN_HEAPSIZE): Fix GGC_ALWAYS_COLLECT problem.
10340         * doc/invoke.texi: Correct description of what needs to be done to
10341         force collection at every ggc_collect call.
10342
10343 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
10344
10345         * config/s390/s390.c (optimization_options): Set
10346         flag_asynchronous_unwind_tables to 1 by default.
10347
10348 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
10349
10350         * config/s390/s390.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10351
10352 Fri Nov 15 14:54:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10353
10354         * i386-protos.h (x86_function_profiler): New function
10355         * i386.h (MCOUNT_NAME): New.
10356         (PROFILE_COUNT_REGISTER): New.
10357         (FUNCTION_PROFILER): Move offline to ...
10358         * i386.c (x86_function_profiler) ... here; fix 64bit support
10359         * beos-elf.h (FUNCTION_PROFILER): Kill.
10360         (MCOUNT_NAME): New.
10361         * freebsd-aout.h (FUNCTION_PROFILER): Kill.
10362         (MCOUNT_NAME): New.
10363         (PROFILE_COUNT_REGISTER): New.
10364         * linux.h (FUNCTION_PROFILER): Kill.
10365         (MCOUNT_NAME): New.
10366         * x86-64.h (FUNCTION_PROFILER): Kill.
10367         (MCOUNT_NAME): New.
10368         * freebsd.h (FUNCTION_PROFILER): Kill.
10369         (MCOUNT_NAME): New.
10370
10371 2002-11-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10372
10373         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG,
10374         FUNCTION_ARG_PASS_BY_REFERENCE): Define.
10375         * config/arm/arm.c (arm_va_arg,
10376         arm_function_arg_pass_by_reference): New.
10377         * config/arm/arm-protos.h: Add prototypes.
10378
10379 2002-11-14  Kazu Hirata  <kazu@cs.umass.edu>
10380
10381         * gthr-single.h: Fix formatting.
10382
10383 2002-11-14  Zack Weinberg  <zack@codesourcery.com>
10384
10385         * tree.c (tree_vec_elt_check_failed): New function.
10386         * tree.h (TREE_VEC_ELT_CHECK): New checking macro.
10387         (TREE_VEC_ELT): Use it.
10388
10389         * tree-inline.c (optimize_inline_calls): Don't copy a
10390         zero-length vector.
10391
10392 2002-11-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10393
10394         * diagnostic.c (sorry): Don't repeat "sorry, unimplemented" text.
10395
10396 2002-11-14  Jakub Jelinek  <jakub@redhat.com>
10397
10398         * varasm.c (output_addressed_constants) [MINUS_EXPR]: Clear reloc if
10399         both operands contain local relocations.
10400         (categorize_decl_for_section): Don't use mergeable sections if
10401         initializer has any relocations.
10402
10403 2002-11-14  Kazu Hirata  <kazu@cs.umass.edu>
10404
10405         * gthr-vxworks.h: Fix formatting.
10406
10407 2002-11-13  Janis Johnson  <janis187@us.ibm.com>
10408
10409         * doc/install.texi (Testing): Document extra Java testing.
10410         * doc/sourcebuild.texi (Test Suites): Document libgcj testing.
10411
10412 2002-11-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10413
10414         * pa64-hpux.h (LINK_SPEC): Move "+Accept TypeMismatch" switch to the
10415         beginning of the spec.
10416         (LDD_SUFFIX, PARSE_LDD_OUTPUT): Delete.
10417         (LD_INIT_SWITCH, LD_FINI_SWITCH): Define but don't enable.  Add comment
10418         regarding problems with global constructors when using GNU ld.
10419
10420 2002-11-13  Kazu Hirata  <kazu@cs.umass.edu>
10421
10422         * gthr-solaris.h: Fix formatting.
10423
10424 2002-11-13  Kazu Hirata  <kazu@cs.umass.edu>
10425
10426         * gthr-posix.h: Fix formatting.
10427
10428 2002-11-12  Devang Patel <dpatel@apple.com>
10429         * gcc.c (display_help): Two new options -Xpreprocessor and -Xassembler.
10430         (process_command): Same.
10431         * doc/invoke.texi: Info about these two new options.
10432
10433 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
10434
10435         * config/h8300/h8300.md (*andorsi3): New.
10436
10437 2002-11-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10438
10439         * doc/install.texi (powerpc-*-linux-gnu*): Update binutils requirement.
10440
10441 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
10442
10443         * config/h8300/h8300.c (tiny_constant_address_p): Parenthesize
10444         expressions appropriately.
10445
10446 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
10447
10448         * gthr-win32.h: Fix formatting.
10449
10450 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
10451
10452         * config/h8300/h8300.c (single_one_operand): Correctly compute
10453         mask when mode is SImode.
10454         (single_zero_operand): Likewise.
10455         * config/h8300/h8300.md (two new anonymous insns): New.
10456
10457 2002-11-12  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10458
10459         * doc/contrib.texi (Contributors): Use GCJ instead of gcj to refer
10460         to that entire project.
10461
10462 2002-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10463
10464         * config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Restore old
10465         directories.
10466
10467 2002-11-11  Zack Weinberg  <zack@codesourcery.com>
10468
10469         * params.def (ggc-min-expand, ggc-min-heapsize): New parameters.
10470         * doc/invoke.texi: Document them.
10471
10472         * ggc-page.c: Include params.h.  Remove definitions of
10473         GGC_MIN_EXPAND_FOR_GC, GGC_MIN_LAST_ALLOCATED.  Replace
10474         GGC_POISON with ENABLE_GC_CHECKING in ifdefs, delete #define.
10475         (init_gcc): Don't set G.allocated_last_gc here.
10476         (ggc_collect): Use PARAM_VALUE (GGC_MIN_HEAPSIZE) and
10477         PARAM_VALUE (GGC_MIN_EXPAND) to decide whether or not to
10478         perform collection.
10479         * ggc-simple.c: Similarly.
10480         * Makefile.in (ggc-common.o, ggc-simple.o): Add $(PARAMS_H) to
10481         dependencies.
10482
10483 2002-11-11  Kazu Hirata  <kazu@cs.umass.edu>
10484
10485         * gthr-dce.h: Fix formatting.
10486
10487 2002-11-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10488
10489         PR c/8467
10490         * stmt.c (tail_recursion_args): Handle DECL_MODE differing from the
10491         mode of DECL_RTL case.
10492
10493 2002-11-11  Janis Johnson  <janis187@us.ibm.com>
10494
10495         * doc/contrib.texi: Merge in the list from the libstdc++ web pages.
10496
10497 Mon Nov 11 12:06:08 CET 2002  Jan Hubicka  <jh@suse.cz>
10498
10499         * i386.c (construct_container): Fix handling of SSE_CLASS.
10500
10501 2002-11-10  Joel Sherrill <joel@gcc.gnu.org>
10502
10503         * config/m68k/t-crtstuff (crti.o): Use this...
10504         ($(T)crti.o): ... instead.
10505         (crtn.o): Use this...
10506         ($(T)crtn.o): ... instead.
10507
10508 2002-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
10509
10510         PR c/8439
10511         * recog.c (validate_replace_rtx_1) [PLUS]: Simplify only
10512         if there is something new to be simplified.
10513
10514 2002-11-10  H.J. Lu <hjl@gnu.org>
10515
10516         * calls.c (PUSH_ARGS_REVERSED): Define only if not defined.
10517         * expr.c (PUSH_ARGS_REVERSED): Likewise.
10518
10519         * config/i386/i386.h (PUSH_ARGS_REVERSED): Set to 1.
10520
10521 2002-11-10  Zack Weinberg  <zack@codesourcery.com>
10522
10523         * config/rs6000/sysv4.h: Define NO_IMPLICIT_EXTERN_C here...
10524         * config/rs6000/linux.h, config/rs6000/linux64.h,
10525         config/rs6000/windiss.h: ... not here.
10526
10527 2002-11-10  Jason Thorpe  <thorpej@wasabisystems.com>
10528
10529         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define
10530         __ABICALLS__ if TARGET_ABICALLS.
10531
10532 Sun Nov 10 18:49:21 CET 2002  Jan Hubicka  <jh@suse.cz>
10533
10534         * i386.h (MIN_UNITS_PER_WORD): Define to 8 for x86-64 libgcc.
10535
10536 2002-11-10  Joseph S. Myers  <jsm@polyomino.org.uk>
10537
10538         * c-decl.c (grokdeclarator): Make error for duplicate type
10539         qualifiers into a pedwarn, disabled for C99.
10540
10541 2002-11-10  Hans-Peter Nilsson  <hp@bitrange.com>
10542
10543         * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Define the same
10544         as FUNCTION_ARG_PASS_BY_REFERENCE.
10545
10546 2002-11-09  Zack Weinberg  <zack@codesourcery.com>
10547
10548         * doc/install.texi: Add *-*-vxworks* specific installation
10549         instructions.
10550
10551         * config/vxlib.c: Rewrite using generation numbers to identify
10552         valid TSD keys.
10553
10554 Sat Nov  9 00:10:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10555
10556         * i386.c (x86_machine_dependent_reorg): Fix even more side cases.
10557
10558 2002-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10559
10560         * pa.h (STARTING_FRAME_OFFSET): Change offset for TARGET_64BIT to 16.
10561
10562         * config.gcc (hppa*64*-*-linux*): Shorten lines in tm_file define.
10563         (hppa*64*-*-hpux11*): Likewise.  Use elfos.h with gas.
10564         * pa.c (output_millicode_call): Use symbol difference rather than
10565         $PIC_pcrel$0 when using HP assembler.
10566         * pa64-hpux.h (TARGET_GAS): Define to 1 or 0 depending on whether or
10567         not elfos.h (i.e., gas) is being used.
10568         (ASM_FILE_START, STRING_ASM_OP, TEXT_SECTION_ASM_OP,
10569         DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_COMMON,
10570         ASM_OUTPUT_ALIGNED_LOCAL, GLOBAL_ASM_OP, ASM_DECLARE_FUNCTION_NAME,
10571         ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL,
10572         ASM_OUTPUT_INTERNAL_LABEL, ASM_GENERATE_INTERNAL_LABEL): Define when
10573         using elfos.h.
10574         (TARGET_ASM_GLOBALIZE_LABEL): Undefine when using elfos.h.
10575         (DWARF2_ASM_LINE_DEBUG_INFO): Delete.
10576         (ASM_FILE_START): Add standard .SPACE and .SUBSPA defines when not
10577         using elfos.h.
10578         (TEXT_SECTION_ASM_OP, READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
10579         BSS_SECTION_ASM_OP): New HP style defines when not using elfos.h.
10580         (TARGET_ASM_NAMED_SECTION, MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL):
10581         Don't define when not using elfos.h.
10582         (ASM_DECLARE_RESULT): Don't define.
10583         * doc/install.texi (hppa*-hp-hpux*): Remove statement that HP assembler
10584         doesn't work on hppa64-hp-hpux11.
10585         (hppa*-hp-hpux11): Update.
10586
10587 2002-11-09  Jason Thorpe  <thorpej@wasabisystems.com>
10588
10589         * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Don't pass -KPIC
10590         to the assembler if -mno-abicalls was specified.
10591
10592 2002-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10593
10594         * pa-linux.h (PREFERRED_DEBUGGING_TYPE, DWARF2_ASM_LINE_DEBUG_INFO,
10595         ASM_OUTPUT_DEF): Delete.
10596
10597 2002-11-09  Neil Booth  <neil@daikokuya.co.uk>
10598
10599         * c-opts.c (COMMAND_LINE_OPTIONS): Fix -Wimplicit.
10600
10601 2002-11-08  Roger Sayle  <roger@eyesopen.com>
10602
10603         * real.c (real_sqrt): Update comment with bibliographic reference.
10604
10605 Fri Nov  8 13:33:58 CET 2002  Jan Hubicka  <jh@suse.cz>
10606
10607         * i386.md (sse_loadss, sse2_loadsd): Fix expander.
10608
10609 Fri Nov  8 13:25:41 CET 2002  Jan Hubicka  <jh@suse.cz>
10610
10611         * i386.c (x86_machine_dependent_reorg): Fix handling of empty functions.
10612
10613 Fri Nov  8 13:01:42 CET 2002  Jan Hubicka  <jh@suse.cz>
10614
10615         * builtins.c (expand_builtin_mathfn): Handle floor/ceil/trunc/round/nearbyint
10616         (expand_builtin): Likewise.
10617         * builtins.def: Add
10618         __builtin_floor, __builtin_floorf, __builtin_floorl
10619         __builtin_ceil, __builtin_ceilf, __builtin_ceill
10620         __builtin_round, __builtin_roundf, __builtin_roundl
10621         __builtin_trunc, __builtin_truncf, __builtin_truncl
10622         __builtin_nearbyint, __builtin_nearbyintf, __builtin_nearbyintl.
10623         * genopinit.c (optabs): Initialize the new optabs.
10624         * optab.c (init_optabs): Likewise.
10625         * optabs.h (optab_index): Add OTI_floor, OTI_ceil, OTI_trunc,
10626         OTI_round, OTI_nearbyint.
10627         (floor_optab, ceil_optab, trunc_optab, round_optab, nearbyint_optab): New.
10628         * doc/md.texi: Document new named patterns.
10629         * doc/extend.texi (builtin functions)  Document
10630         floor, floorf, floorl, ceil, ceilf,
10631         ceill, round, roundf, roundl, trunc,
10632         truncf, truncl, nearbyint, nearbyintf, nearbyintl.
10633
10634 Fri Nov  8 11:36:11 CET 2002  Jan Hubicka  <jh@suse.cz>
10635
10636         * i386.md (sse_movdfcc, sse_movsfcc): Fix typo in previous patch.
10637
10638 2002-11-08  Dale Johannesen  <dalej@apple.com>
10639
10640         * dbxout.c (dbxout_type):  Fix stabs info for vector types.
10641
10642 2002-11-08  Neil Booth  <neil@daikokuya.co.uk>
10643
10644         PR preprocessor/8497
10645         PR preprocessor/8501
10646         * cpptrad.c (scan_out_logical_line): A '#' from a macro doesn't
10647         start a directive.  In assembler, #NUM is not a line directive.
10648
10649 2002-11-08  Neil Booth  <neil@daikokuya.co.uk>
10650
10651         * cppmain.c (cpp_preprocess_file): Loop to pop any -included
10652         buffers.
10653
10654 2002-11-08  Kazu Hirata  <kazu@cs.umass.edu>
10655
10656         * config/h8300/h8300.md (two anonymous test insns): New.
10657
10658 Fri Nov  8 11:20:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10659
10660         * jump.c (mark_jump_label): Handle subregs of label_refs.
10661
10662 Thu Nov  7 21:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10663
10664         * i386.md (sse_movdfcc, sse_movsfcc): Avoid overactive matching.
10665         * i386.c (ix86_expand_fp_movcc): Match the reversed cases.
10666
10667 2002-11-07  David Mosberger  <davidm@hpl.hp.com>
10668
10669         * config/ia64/crtend.asm: Include "auto-host.h".
10670         [HAVE_INITFINI_ARRAY]: Invoke __do_global_ctors_aux via .init_array.
10671         * config/ia64/crtbegin.asm: Similarly.
10672         * config/ia64/t-ia64 (crtbegin.o): Include from current directory.
10673         (crtend.o, crtbeginS.o, crtendS.o): Likewise.
10674
10675         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): New.
10676         * configure.in: Use it if --enable-initfini-array not specified.
10677         * doc/install.texi (Configuration): Document --enable-initfini-array.
10678         * configure, config.in: Rebuild.
10679
10680 2002-11-07  Jason Thorpe  <thorpej@wasabisystems.com>
10681
10682         * config/arm/arm-protos.h (arm_get_frame_size)
10683         (thumb_get_frame_size): New prototypes.
10684         * config/arm/arm.c (arm_get_frame_size)
10685         (thumb_get_frame_size): New functions.
10686         (use_return_insn, arm_output_epilogue, arm_output_function_epilogue)
10687         (arm_compute_initial_elimination_offset, arm_expand_prologue): Use
10688         arm_get_frame_size.
10689         (thumb_expand_prologue, thumb_expand_epilogue): Use
10690         thumb_get_frame_size.
10691         * config/arm/arm.h (PREFERRED_STACK_BOUNDARY): Define.
10692         (machine_function): Add frame_size member.
10693         (THUMB_INITIAL_ELIMINATION_OFFSET): Use thumb_get_frame_size.
10694
10695 2002-11-07  Richard Earnshaw  <rearnsha@arm.com>
10696
10697         * arm.c (bit_count): Make argument unsigned long.  Return unsigned.
10698         Adjust code to use portable unsigned bit manipulation.
10699         (insn_flags, tune_flags): Change type to unsigned.
10700         (struct processors): Make flags unsigned long.
10701         (arm_override_options): Change type of count and current_bit_count
10702         to unsigned.
10703
10704 2002-11-07  Richard Earnshaw  <rearnsha@arm.com>
10705
10706         * arm/elf.h (TYPE_OPERAND_FMT): Prefix type with %.
10707
10708 Thu Nov  7 15:50:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
10709
10710         * sh.h (DWARF_FRAME_RETURN_COLUMN): Use DWARF_FRAME_REGNUM.
10711
10712 Thu Nov  7 11:18:01 CET 2002  Jan Hubicka  <jh@suse.cz>
10713
10714         * reg-stack.c (compensate_edge): Fix sanity check.
10715
10716 2002-11-05  Geoffrey Keating  <geoffk@apple.com>
10717
10718         * config.gcc: Don't create crtbegin, crtend on Darwin; do create
10719         crt2.o.  Rearrange t-darwin makefiles.
10720         * crtstuff.c [OBJECT_FORMAT_MACHO]: Delete.
10721         * unwind-dw2-fde-darwin.c: New.
10722         * unwind-dw2-fde-glibc.c: Correct comment.
10723         * unwind-dw2-fde.c (__register_frame_info_bases)
10724         [DWARF2_OBJECT_END_PTR_EXTENSION]: Clear fde_end.
10725         (classify_object_over_fdes): Use last_fde.
10726         (add_fdes): Likewise.
10727         (linear_search_fdes): Likewise.
10728         * unwind-dw2-fde.h (struct object)
10729         [DWARF2_OBJECT_END_PTR_EXTENSION]: Add fde_end field.
10730         (last_fde): New.
10731         * config/darwin.h (STARTFILE_SPEC): Include crt2.o not crtbegin.o.
10732         (ENDFILE_SPEC): No crtend.o.
10733         * config/t-darwin: New.
10734         * config/i386/t-darwin: Delete.
10735         * config/darwin-crt2.c: New.
10736         * config/rs6000/t-darwin: Delete contents duplicated in t-rs6000
10737         or config/t-darwin.
10738
10739 2002-11-06  Douglas B Rupp  <rupp@gnat.com>
10740
10741         * config/i386/i386-interix.h (TARGET_SUBTARGET_DEFAULT): Or
10742         MASK_MS_BITFIELD_LAYOUT
10743         (SUBTARGET_OVERRIDE_OPTIONS): Warn about and turn off
10744         MS bitfields for Objective-C.
10745         (PCC_BIT_FIELD_TYPE_TEST, GROUP_BITFIELDS_BY_ALIGN): Remove
10746         defines.
10747
10748         * config/i386/i386.c (ix86_ms_bitfield_layout): New function.
10749         (TARGET_MS_BITFIELD_LAYOUT_P): Define to above function.
10750         (TARGET_USE_MS_BITFIELD_LAYOUT): Define.
10751
10752         * config/i386/i386.h (MASK_MS_BITFIELD_LAYOUT: New mask.
10753         TARGET_USE_MS_BITFIELD_LAYOUT): New macro.
10754         (TARGET_SWITCHES): Add above mask.
10755
10756         * testsuite/gcc.dg/bf-ms-layout.c: New test case.
10757         * testsuite/gcc.dg/bf-no-ms-layout.c: New test case.
10758         * testsuite/gcc.dg/i386-bitfield1.c (dg-options): Add appropriate
10759         flags for interix.
10760
10761 Wed Nov  6 18:54:47 2002  Alexandre Oliva  <aoliva@redhat.com>
10762
10763         * config/mips/mips.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output
10764         .gpword/.gpdword for ABI_N32 and ABI_64 too, if using the GNU
10765         assembler.
10766         * config/mips/mips.md (tablejump_internal3): Output .cpadd
10767         before jump on ABI_N32 too.
10768         (tablejump_internal4): Ditto on ABI_64.  Increase maximum
10769         length to match.
10770
10771 Wed Nov  6 17:16:48 CET 2002  Jan Hubicka  <jh@.suse.cz>
10772
10773         * i386.md (negsf splitter): Accept memory operand in second register.
10774         (abssf/absdf splitters): Simplify
10775         (sse_loadss, sse_loadsd): Turn into expander.
10776
10777 2002-11-06  David Edelsohn  <edelsohn@gnu.org>
10778
10779         PR target/8480
10780         * config/rs6000/rs6000.md (movdi_internal64): Discourage
10781         FPR to FPR moves.
10782
10783 2002-11-06  Janis Johnson  <janis187@us.ibm.com>
10784
10785         * doc/contrib.texi: Merge in the list from the Java web pages.
10786
10787 2002-11-06  David O'Brien  <obrien@FreeBSD.org>
10788
10789         * config/sparc/freebsd: Fix typo.
10790
10791 2002-11-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10792
10793         * pa64-hpux.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Define.
10794
10795 2002-11-06  Alexandre Oliva  <aoliva@redhat.com>
10796
10797         * config/mips/mips.md (call_value_multiple_internal2): Use dla for
10798         non-SImode addresses.
10799
10800 Tue Nov  5 14:34:36 CET 2002  Jan Hubicka  <jh@suse.cz>
10801
10802         * i386.md (float_truncate SSE splitter): Ensure that operand is not
10803         stack register.
10804         (float SSE splitters): Reorder conditional.
10805
10806 2002-11-05  Bob Wilson  <bob.wilson@acm.org>
10807
10808         * config/xtensa/elf.h (LIB_SPEC): Add "-lhal".
10809
10810 2002-11-05  John David Anglin  <dave2hiauly1.hia.nrc.ca>
10811
10812         * pa64-hpux.h (LIB_SPEC): Fix p and pg options.
10813         (STARTFILE_SPEC): Remove p and pg options.
10814
10815 2002-11-05  Andrew Haley  <aph@redhat.com>
10816
10817         * fold-const.c (fold): Don't transform (a0 op compound(a1,a2))
10818         to (compound(a1,a0 op a2)) if a0 or a1 have side effects.
10819
10820 2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
10821
10822         * config/mips/mips.h (CANNOT_CHANGE_MODE_CLASS): Move comment to...
10823         * config/mips/mips.c (mips_cannot_change_mode_class): ...here.
10824
10825 2002-11-04  Zack Weinberg  <zack@codesourcery.com>
10826
10827         * gthr-vxworks.h: Rewritten from scratch.
10828         * config/vxlib.c: New file.
10829         * config/t-vxworks: Add config/vxlib.c to LIB2FUNCS_EXTRA.
10830         * config/rs6000/t-vxworks: Add config/vxlib.c to
10831         LIB2FUNCS_EXTRA here too, because of clash with
10832         config/rs6000/t-ppccomm.
10833
10834 2002-11-04  Dale Johannesen  <dalej@apple.com>
10835
10836         * doloop.c (doloop_modify_runtime):  Fix loop count computation
10837         for unrolled loops.
10838         * loop.c (loop_invariant_p):  Support calling from unroller.
10839
10840 2002-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
10841
10842         * config/s390/s390.c (s390_decompose_address): Use arg_pointer_rtx
10843         for comparison.
10844
10845 2002-11-04  Aldy Hernandez  <aldyh@redhat.com>
10846
10847         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): New.
10848
10849         * config/rs6000/rs6000.h (CLASS_CANNOT_CHANGE_MODE_P): Remove.
10850         (CLASS_CANNOT_CHANGE_MODE): Remove.
10851         (CANNOT_CHANGE_MODE_CLASS): New.
10852
10853         * config/alpha/alpha.h: Same.
10854
10855         * config/ia64/ia64.h: Same.
10856
10857         * config/mips/mips.h: Same.
10858
10859         * config/s390/s390.h: Same.
10860
10861         * config/sh/sh.h: Same.
10862
10863         * config/pa/pa64-regs.h: Same.
10864
10865         * config/sh/sh-protos.h (sh_cannot_change_mode_class): Add prototype.
10866
10867         * config/sh/sh.c (sh_cannot_change_mode_class): New.
10868
10869         * config/mips/mips-protos.h (mips_cannot_change_mode_class): Add
10870         prototype.
10871
10872         * config/mips/mips.c (mips_cannot_change_mode_class): New.
10873
10874         * doc/tm.texi (Register Classes): Remove
10875         CLASS_CANNOT_CHANGE_MODE and CLASS_CANNOT_CHANGE_MODE_P.
10876         Document CANNOT_CHANGE_MODE_CLASS.
10877
10878         * reload.c (push_reload): Use CANNOT_CHANGE_MODE_CLASS.
10879         (push_reload): Same.
10880
10881         * simplify-rtx.c (simplify_subreg): Same.
10882
10883         * reload1.c (choose_reload_regs): Same.
10884
10885         * recog.c (register_operand): Same.
10886
10887         * regrename.c (mode_change_ok): Change to use new
10888         CANNOT_CHANGE_MODE_CLASS infrastructure.
10889
10890         * regclass.c (cannot_change_mode_set_regs): New.
10891         Declare subregs_of_mode.
10892         (regclass): Use subregs_of_mode.
10893         Remove references to reg_changes_mode.
10894         (init_reg_sets_1): Remove class_can_change_mode and
10895         reg_changes_mode code.
10896         (invalid_mode_change_p): New.
10897         (dump_regclass): Use invalid_mode_change_p instead of
10898         class_can_change_mode.
10899         (regclass): Same.
10900         (record_operand_costs): Do not set reg_changes_mode.
10901
10902         * local-alloc.c (struct qty): Remove changes_mode field.
10903         (alloc_qty): Remove changes_mode initialization.
10904         (update_qty_class): Remove set of changes_mode.
10905         (find_free_reg): Use subregs_of_mode.
10906
10907         * global.c (find_reg): Use subregs_of_mode info.
10908
10909         * rtl.h (cannot_change_mode_set_regs): New prototype.
10910         (invalid_mode_change_p): Same.
10911         (REG_CANNOT_CHANGE_MODE_P): New macro.
10912
10913         * flow.c (mark_used_regs): Calculate subregs_of_mode.  Remove
10914         REG_CHANGES_MODE.
10915         (life_analysis): Clear subregs_of_mode.
10916
10917         * combine.c (subst): Pass class to CLASS_CANNOT_CHANGE_MODE_P.
10918         Remove use of CLASS_CANNOT_CHANGE_MODE.
10919         (simplify_set): Same.
10920         (gen_lowpart_for_combine): Calculate subregs_of_mode.  Remove
10921         REG_CHANGES_MODE.
10922
10923         * regs.h: Add extern for subregs_of_mode;
10924         Include hard-reg-set and basic-block.
10925         (REG_CHANGES_MODE): Delete.
10926
10927 2002-11-03  Roger Sayle  <roger@eyesopen.com>
10928
10929         * real.c (real_sqrt): New function to calculate square roots.
10930         * real.h (real_sqrt): Add function prototype.
10931         * builtins.c (fold_builtin): Fold sqrt of constant argument.
10932         * simplify-rtx.c (simplify_unary_operation): Simplify sqrt
10933         of constant argument.
10934
10935 2002-11-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10936
10937         * jump.c (never_reached_warning): Don't set contains_insn until the
10938         first line note is seen.
10939
10940 2002-11-03  David Edelsohn  <edelsohn@gnu.org>
10941
10942         * config/rs6000/rs6000.md (movti_string): Use string instructions.
10943
10944 2002-11-03  Roger Sayle  <roger@eyesopen.com>
10945
10946         PR c/7128
10947         * c-typeck.c (c_expand_asm_operands): Defend against
10948         error_mark_nodes in the output argument to avoid ICE.
10949
10950 2002-11-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
10951
10952         PR middle-end/8408
10953         * genrecog.c (preds): Handle ADDRESSOF.
10954         (validate_pattern): Mark it as an lvalue.
10955
10956 2002-11-02  David Edelsohn  <edelsohn@gnu.org>
10957
10958         * config/rs6000/rs6000.c (rs6000_override_options): Use string
10959         instructions when optimizing for size.
10960
10961 2002-11-02  Kazu Hirata  <kazu@cs.umass.edu>
10962
10963         * config/h8300/h8300.h: Fix comment typos.
10964         * config/h8300/h8300.md: Likewise.
10965         * config/h8300/lib1funcs.asm: Likewise.
10966
10967 2002-11-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10968
10969         Revert this change:
10970
10971         *doc/install.texi (Installing GCC: Configuration): Clarify
10972         the only supported ways to configure gcc.
10973
10974 2002-11-01  Kazu Hirata  <kazu@cs.umass.edu>
10975
10976         * config/h8300/h8300.md (anonymous and:QI pattern): Use 'n'
10977         instead of 'O' for the constraint for the second operand.
10978
10979 2002-11-01  Mark Mitchell  <mark@codesourcery.com>
10980
10981         PR c++/8391
10982         * toplev.c (rest_of_compilation): Do not refuse to output code for
10983         an inline function in a local class.
10984
10985 2002-11-01  David O'Brien  <obrien@FreeBSD.org>
10986
10987         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Define __arch64__.
10988         (TRANSFER_FROM_TRAMPOLINE): Reformat.
10989         Add comment.
10990
10991 2002-11-01  Kazu Hirata  <kazu@cs.umass.edu>
10992
10993         * config/h8300/h8300.h (CAN_ELIMINATE): Simplify.
10994
10995 2002-11-01  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10996
10997         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): New.
10998
10999 2002-11-01  Steve Ellcey  <sje@cup.hp.com>
11000
11001         * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): Remove.
11002         (MASK_INLINE_DIV_THR): Remove.
11003         (TARGET_INLINE_DIV_LAT): Remove.
11004         (TARGET_INLINE_DIV_THR): Remove.
11005         (TARGET_INLINE_DIV): Remove.
11006         (MASK_INLINE_FLOAT_DIV_LAT): New macro.
11007         (MASK_INLINE_FLOAT_DIV_THR): New macro.
11008         (MASK_INLINE_INT_DIV_LAT): New macro.
11009         (MASK_INLINE_INT_DIV_THR): New macro.
11010         (TARGET_INLINE_FLOAT_DIV_LAT): New macro.
11011         (TARGET_INLINE_FLOAT_DIV_THR): New macro.
11012         (TARGET_INLINE_INT_DIV_LAT): New macro.
11013         (TARGET_INLINE_INT_DIV_THR): New macro.
11014         (TARGET_INLINE_FLOAT_DIV): New macro.
11015         (TARGET_INLINE_INT_DIV): New macro.
11016         * config/ia64/ia64.md (divsi3): Change to use new macros.
11017         (modsi3): Ditto.
11018         (udivsi3): Ditto.
11019         (umodsi3): Ditto.
11020         (divsi3_internal): Ditto.
11021         (divdi3): Ditto.
11022         (moddi3): Ditto.
11023         (udivdi3): Ditto.
11024         (umoddi3): Ditto.
11025         (divdi3_internal_lat): Ditto.
11026         (divdi3_internal_thr): Ditto.
11027         (divsf3): Ditto.
11028         (divsf3_internal_lat): Ditto.
11029         (divsf3_internal_thr): Ditto.
11030         (divdf3): Ditto.
11031         (divdf3_internal_lat): Ditto.
11032         (divdf3_internal_thr): Ditto.
11033         (divtf3): Ditto.
11034         (divtf3_internal_lat): Ditto.
11035         (divtf3_internal_thr): Ditto.
11036         * config/ia64/ia64.c (ia64_override_options): Change
11037         to check new macros for conflicts in settings.
11038         * doc/invoke.texi (-minline-divide-min-latency): Remove.
11039         (-minline-divide-max-throughput): Remove.
11040         (-minline-float-divide-min-latency): New.
11041         (-minline-float-divide-max-throughput): New.
11042         (-minline-int-divide-min-latency): New.
11043         (-minline-int-divide-max-throughput): New.
11044
11045 2002-11-01  Richard Earnshaw  (rearnsha@arm.com)
11046
11047         PR target/7856
11048         * arm.c (use_return_insn): Don't use a return insn if there are
11049         saved integer regs, but LR is not one of them.
11050
11051 Fri Nov  1 10:33:15 CET 2002  Jan Hubicka  <jh@suse.cz>
11052
11053         * expr.c (emit_move_insn):  Use SCALAR_FLOAT_MODE_P
11054         * machmode.h (SCALAR_FLOAT_MODE_P): New macro.
11055
11056 Thu Oct 31 18:20:50 CET 2002  Jan Hubicka  <jh@suse.cz>
11057
11058         * i386.md (sse_loadss, sse_loadsd):  Canonicalize; add expander
11059         (movps, movpd splitters): Use canonical form.
11060         (movv2di): Fix merge problem.
11061
11062 Thu Oct 31 16:22:31 CET 2002  Jan Hubicka  <jh@suse.cz>
11063
11064         * i386.md (negdf2_ifs_rex64): Don't allow GPR operand.
11065
11066 2002-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
11067
11068         PR optimization/6162
11069         * doc/md.texi: Document restriction on commutative operand
11070         specification.
11071
11072 2002-10-31  Eric Christopher  <echristo@redhat.com>
11073
11074         * explow.c (convert_memory_address): Use shallow_copy_rtx.
11075
11076 2002-10-31  Steve Ellcey  <sje@cup.hp.com>
11077
11078         * expmed.c (store_bit_field): Check FUNCTION_ARG_REG_LITTLE_ENDIAN.
11079
11080 2002-10-31  Steve Ellcey  <sje@cup.hp.com>
11081
11082         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Set for non-floats.
11083
11084 Thu Oct 31  Dale Johannesen  <dalej@apple.com>
11085
11086         * config/rs6000/darwin.h:  Correct formatting in previous.
11087
11088 Thu Oct 31  Dale Johannesen  <dalej@apple.com>
11089
11090         * config/rs6000/darwin.h:  Enable -falign-xxx options.
11091
11092 Thu Oct 31 18:08:00 CET 2002  Jan Hubicka  <jh@suse.cz>
11093
11094         * i386.c (override_options): Set defaults for flag_omit_frame_pointer,
11095         flag_asynchronous_unwind_tables, flag_pcc_struct_return.
11096         * i386.c (optimization_options): Set flag_omit_frame_pointer,
11097         flag_asynchronous_unwind_tables, flag_pcc_struct_return to 2.
11098         Do not clear -momit-leaf-frame-pointer when profiling.
11099         (ix86_frame_pointer_required): Frame pointer is always required when
11100         profiling.
11101
11102 Thu Oct 31 16:09:44 CET 2002  Jan Hubicka  <jh@suse.cz>
11103
11104         * i386.md (negdf2_ifs_rex64): Don't allow GPR operand.
11105
11106 Thu Oct 31 12:45:55 2002  J"orn Rennecke <joern.rennecke@superh.com>
11107
11108         * sh.h (binary_logical_operator): Declare.
11109         * sh.c (binary_logical_operator): New function.
11110         * sh.md (xordi3+1): New combiner splitter pattern.
11111
11112 2002-10-31  David O'Brien  <obrien@FreeBSD.org>
11113
11114         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Define
11115         __enable_execute_stack function.
11116
11117 2002-10-30  Zack Weinberg  <zack@codesourcery.com>
11118
11119         * gthr.h, gthr-dce.h, gthr-posix.h, gthr-rtems.h,
11120         gthr-solaris.h, gthr-win32.h: Remove __gthread_key_dtor.
11121         * unwind-sjlj.c (fc_key_dtor): Delete.
11122         (fc_key_init): Adjust __gthread_key_create call to match.
11123
11124 2002-10-30  Aldy Hernandez  <aldyh@redhat.com>
11125
11126         * c-common.c: Add GTY to vector_type_node_list.
11127
11128 2002-10-30  John David Anglin  <dave@hiauly.hia.nrc.ca>
11129
11130         * pa-linux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
11131         * pa-protos.h (attr_length_millicode_call, attr_length_call,
11132         pa_init_machine_status): Declare new global functions.
11133         * pa.c (void copy_fp_args, length_fp_args, get_plabel): Declare and
11134         implement new functions.
11135         (attr_length_millicode_call, attr_length_call): Implement.
11136         (total_code_bytes): Change type to long.
11137         (pa_output_function_prologue): Compute total_code_bytes on TARGET_64BIT.
11138         Reset counter if flag_function_sections.
11139         (output_deferred_plabels): Set output alignment to 3 for TARGET_64BIT.
11140         (output_cbranch): Move call to gen_label_rtx.
11141         (output_millicode_call): Rewrite adding long TARGET_64BIT call, expose
11142         delay slot in all variants, shorten pc-relative calls.
11143         (output_call): Rewrite adding long TARGET_64BIT call, improved delay
11144         slot usage and exposure, various new call variants, and shortened
11145         sequences for some variants on TARGET_PA_20.
11146         Miscellaneous format changes.
11147         * pa.h (total_code_bytes): Change type to long.
11148         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_LONG_ABS_CALL,
11149         TARGET_LONG_PIC_SDIFF_CALL, TARGET_LONG_PIC_PCREL_CALL): Define.
11150         (TARGET_SWITCHES): Add "-mlong-calls" and "-mno-long-calls" options.
11151         (EXTRA_CONSTRAINT, GO_IF_LEGITIMATE_ADDRESS,
11152         LEGITIMIZE_RELOAD_ADDRESS): Don't use long floating point loads and
11153         stores on TARGET_ELF32.
11154         *pa.md (define_delay): Allow insns in delay on TARGET_PORTABLE_RUNTIME.
11155         (unnamed patterns for mulsi3, divsi3, udivsi3, modsi3, umodsi3 and
11156         canonicalize_funcptr_for_compare expanders): Calculate attribute length
11157         attr_length_millicode_call().
11158         (call_internal_symref, call_value_internal_symref): Clobber register 1.
11159         Calculate attribute length using attr_length_call().
11160         (call_internal_reg_64bit, call_value_internal_reg_64bit): Move gp load
11161         to delay slot.
11162         (sibcall, sibcall_value): Rewrite.
11163         (sibcall_internal_symref, sibcall_value_internal_symref): Clobber
11164         register 1.  Use attr_length_call().
11165         (sibcall_internal_symref_64bit, sibcall_value_internal_symref_64bit):
11166         New patterns.
11167         (unamed pattern for canonicalize_funcptr_for_compare): Rewrite.
11168         * som.h (MEMBER_TYPE_FORCES_BLK): Define.
11169         * t-pa64 (TARGET_LIBGCC2_CFLAGS): Add "-mlong-calls".
11170         * doc/invoke.texi (mlong-calls): Document.
11171
11172 2002-10-30  Roger Sayle  <roger@eyesopen.com>
11173
11174         * fold-const.c (fold_binary_op_with_conditional_arg):  Improve
11175         handling of cases where one or both branches of the conditional
11176         have void type, i.e. throw an exception or don't return.
11177         (fold): Only apply (and undo) type conversion to the non-void
11178         branches of a COND_EXPR.
11179
11180 2002-10-30  Mark Mitchell  <mark@codesourcery.com>
11181
11182         PR c++/8333
11183         * varasm.c (asm_output_aligned_bss): Do not call
11184         ASM_GLOBALIZE_LABEL.
11185
11186 2002-10-30  David Edelsohn  <edelsohn@gnu.org>
11187             Torbjorn Granlund  <tege@swox.com>
11188
11189         * config/rs6000/rs6000.md (load_toc_v4_PIC_1): Use preferred form
11190         for addressibility.
11191         (load_toc_v4_PIC_1b): Same.
11192
11193 2002-10-30  Kazu Hirata  <kazu@cs.umass.edu>
11194
11195         * config/h8300/h8300.c (h8300_eightbit_constant_address_p):
11196         Truncate the addresses for H8/300 using HImode.
11197
11198 Tue Oct 29 23:28:10 CET 2002  Jan Hubicka  <jh@suse.cz>
11199
11200         * i386.md (negdf splitter): Fix construction of the constant.
11201
11202 Tue Oct 29 20:47:06 CET 2002  Jan Hubicka  <jh@suse.cz>
11203
11204         * i386.md (negsf, negdf): Reorganize to use vector modes
11205         for SSE variants.
11206         (abssf, absdf): Use force_reg.
11207         (movv4sf, movv2df): New splitters.
11208         * i386.h (PREDICATE_CODES): add zero_extended_scalar_load_operand
11209         * i386.c (zero_extended_scalar_load_operand
11210
11211         * i386-protos.h (ix86_expand_call): Update prototype.
11212         * i386.c (ix86_function_ok_for_sibcall): Handle 64bit
11213         (ix86_expand_call): Use r11 for indirect sibcalls.
11214         * i386.md (call, call_value, untyped_call, call_value_pop):
11215         update x86_expand_call call.
11216         (sibcall, sibcall_value): new patterns
11217         (call_rex64, call_value_rex64): Do not accept sibcalls.
11218         (sibcall_rex64, sibcall_value_rex64,
11219         sibcall_rex64_v, sibcall_value_rex64_v): New.
11220
11221 Tue Oct 29 15:37:39 CET 2002  Jan Hubicka  <jh@suse.cz>
11222
11223         * toplev.c (rest_of_compilation): Reorganize way reg_scan is called
11224         before final pass.
11225
11226 2002-10-29  Hans-Peter Nilsson  <hp@bitrange.com>
11227
11228         * toplev.c (rest_of_type_compilation): Return early in case of
11229         errors.
11230         (check_global_declarations): Don't call debug_hooks->global_decl
11231         in case of errors.
11232
11233 2002-10-28  Andreas Bauer  <baueran@in.tum.de>
11234
11235         * doc/c-tree.texi (Tree overview): Fix typos.
11236
11237 2002-10-29  Phil Edwards  <pme@gcc.gnu.org>
11238
11239         * Makefile.in (gnucompare*):  Only record bad comparisons
11240         if there really was a bad comparison.
11241
11242 Tue Oct 29 19:32:16 CET 2002  Jan Hubicka  <jh@suse.cz>
11243
11244         * i386.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'H'
11245         * i386.md (movsf*, movdf*): Use 'C' instead of 'H'
11246         * md.texi (machine dependent constraints): Document 'C'
11247
11248         * simplify-rtx.c (simplify_subreg): Fix const_int->vector subregging.
11249
11250         * i386.c (ix86_expand_vector_move): Fix.
11251
11252         * i386.c (ix86_expand_builtin): Use sse2_maskmovdqu_rex64.
11253         * i386.md (sse2_maskmovdqu_rex64): New pattern
11254
11255         PR target/8322
11256         * xmmintrin.h (_mm_stream_pi, _mm_stream_pd): Fix cast.
11257         (ix86_init_mmx_sse_builtins): Fix type.
11258
11259 2002-10-29  Jason Thorpe  <thorpej@wasabisystems.com>
11260
11261         * gthr-posix.h: Include <unistd.h> for feature tests.
11262         (sched_get_priority_max, sched_get_priority_min)
11263         (pthread_getschedparam, pthread_setschedparam): Only use
11264         if _POSIX_THREAD_PRIORITY_SCHEDULING is defined.
11265         (__gthread_objc_thread_set_priority): Don't treat all nonzero
11266         returns from sched_get_priority_max and sched_get_priority_min
11267         as an error.
11268
11269 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
11270
11271         * config/h8300/h8300.h (TARGET_DEFAULT): Make it
11272         MASK_QUICKCALL.
11273
11274 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
11275
11276         * config/h8300/h8300.c (h8300_eightbit_constant_address_p): New.
11277         (h8300_tiny_constant_address_p): Likewise.
11278         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Use
11279         h8300_eightbit_constant_address_p.
11280         (TINY_CONSTANT_ADDRESS_P): Use h8300_tiny_constant_address_p.
11281         * config/h8300/h8300-protos.h: Add the prototypes for the two
11282         new functions.
11283
11284 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
11285
11286         * reload1.c (update_eliminables): Unconditionally check if
11287         frame_pointer_needed has changed.
11288
11289 Tue Oct 29 15:37:39 CET 2002  Jan Hubicka  <jh@suse.cz>
11290
11291         * toplev.c (rest_of_compilation): Reorganize way reg_scan is called
11292         before final pass.
11293
11294 2002-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
11295
11296         PR optimization/8334
11297         * expr.c (expand_expr) [PLUS]: Don't use simplify_binary_operation;
11298         check for zero operands explicitly.
11299
11300 2002-10-29  Richard Sandiford  <rsandifo@redhat.com>
11301
11302         * config/mips/mips.md (extv, extzv, insv): Set size of referenced
11303         memory after adjusting to BLKmode.
11304
11305 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
11306
11307         * config/h8300/h8300.h (MASK_*): New.
11308         (TARGET_*): Use MASK_*.
11309
11310 2002-10-28  Zack Weinberg  <zack@codesourcery.com>
11311
11312         * config.gcc (*-*-vxworks, powerpc-wrs-vxworks*): New stanzas.
11313         * config/t-vxworks, config/vxworks.h, config/rs6000/t-vxworks,
11314         config/rs6000/vxworks.h: New files.
11315         * config/rs6000/sysv4.h: Rip out -mvxworks and all related code.
11316
11317         * config.gcc (alpha*-*-vxworks*, arm-*-vxworks*,
11318         i?86-wrs-vxworks*, i960-wrs-vxworks* [all],
11319         m68k-wrs-vxworks*, mips-wrs-vxworks, powerpc-wrs-vxworks*,
11320         powerpcle-wrs-vxworks*, sparc*-wrs-vxworks* [all],
11321         sparc-*-vxsim*): Delete stanzas.
11322         * gthr-vxworks.h: Rip out all substantive code and just
11323         include gthr-single.h.
11324
11325         * config/alpha/vxworks.h, config/arm/vxarm.h,
11326         config/i386/vxi386.h, config/i960/t-vxworks960,
11327         config/i960/vx960-coff.h, config/i960/vx960.h,
11328         config/m68k/t-vxworks68, config/m68k/vxm68k.h,
11329         config/mips/vxworks.h, config/rs6000/vxppc.h,
11330         config/sparc/t-vxsparc, config/sparc/t-vxsparc64,
11331         config/sparc/vxsim.h, config/sparc/vxsparc.h,
11332         config/sparc/vxsparc64.h: Delete files.
11333
11334 2002-10-28  Jason Thorpe  <thorpej@wasabisystems.com>
11335
11336         * config.gcc (*-*-netbsd*): Add NETBSD_ENABLE_PTHREADS to
11337         tm_defines if pthreads are enabled.
11338         * config/netbsd.h (LIB_SPEC): Only support the -pthread option
11339         if NETBSD_ENABLE_PTHREADS is defined.
11340
11341 2002-10-28  Kazu Hirata  <kazu@cs.umass.edu>
11342
11343         * ChangeLog.1: Fix typos.
11344         * cse.c: Fix a comment typo.
11345         * reload1.c: Likewise.
11346
11347 2002-10-27  Hans-Peter Nilsson  <hp@bitrange.com>
11348
11349         * fixinc/inclhack.def (libc1_G_va_list): Correct test_text.
11350         * fixinc/tests/base/_G_config.h: New file.
11351
11352 2002-10-27  Kazu Hirata  <kazu@cs.umass.edu>
11353
11354         * combine.c: Fix comment formatting.
11355         * loop.c: Likewise.
11356         * real.c: Likewise.
11357         * regclass.c: Likewise.
11358         * regmove.c: Likewise.
11359         * regrename.c: Likewise.
11360         * reg-stack.c: Likewise.
11361         * reload1.c: Likewise.
11362         * reload.c: Likewise.
11363         * reload.h: Likewise.
11364         * unroll.c: Likewise.
11365
11366 2002-10-27  Kazu Hirata  <kazu@cs.umass.edu>
11367
11368         * reload1.c (reload): Fix a comment typo.
11369
11370 Sun Oct 27 10:15:24 CET 2002  Jan Hubicka  <jh@suse.cz>
11371
11372         * linux64.h (DEFAULT_PCC_STRUCT_RETURN):  Define.
11373
11374 2002-10-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11375
11376         * Makefile.in (dwarf2out.o): Add dependendcy on hashtab.h.
11377         * dwarf2out.c: Include hashtab.h.
11378         (is_main_source): New static variable.
11379         (attr_checksum, die_checksum): Modified to handle die references.
11380         (same_loc_p, same_dw_val_p, same_attr_p, same_die_p, same_die_p_wrap,
11381         unmark_all_dies, htab_cu_hash, htab_cu_eq, htab_cu_del, check_duplicate_cu,
11382         record_comdat_symbol_number): New static functions.
11383         (output_comp_unit, compute_section_prefix, is_type_die, break_out_includes,
11384         mark_dies, unmark_dies, dwarf2out_start_source_file): Modified.
11385         * toplev.c (rest_of_decl_compilation): Call of dwarf2out_decl for type
11386         declarations added.
11387
11388 2002-10-26  Kazu Hirata  <kazu@cs.umass.edu>
11389
11390         * config/h8300/h8300.c (initial_offset): Change to
11391         h8300_initial_elimination_offset.
11392         * config/h8300/h8300.h (INITIAL_ELIMINATION_OFFSET): Use
11393         h8300_initial_elimination_offset.
11394         * config/h8300/h8300-protos.h: Update the prototype.
11395
11396 2002-10-26  Hans-Peter Nilsson  <hp@bitrange.com>
11397
11398         * config/mmix/mmix.h (LIBCALL_VALUE): Use
11399         MMIX_RETURN_VALUE_REGNUM, not MMIX_OUTGOING_RETURN_VALUE_REGNUM.
11400         (FUNCTION_VALUE_REGNO_P): Similar, but move code to...
11401         * config/mmix/mmix.c (mmix_function_value_regno_p): New.
11402         * config/mmix/mmix-protos.h: Remove needless ifdefs on TREE_CODE
11403         and RTX_CODE.
11404         (mmix_function_value_regno_p): Declare.
11405
11406         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Replace unsigned_fix,
11407         invalid for floating point mode result, with fix.
11408
11409 Fri Oct 25 00:04:21 2002  Alexandre Oliva  <aoliva@redhat.com>
11410
11411         * Makefile.in (GCC_FOR_TARGET): Add -L$(objdir)/../ld.
11412         (STAGE2_FLAGS_TO_PASS): Pass GCC_FOR_TARGET.
11413         (stage1_build): Likewise.
11414
11415 2002-10-25  Mike Stump  <mrs@apple.com>
11416
11417         Fixes gcc.dg/warn-1.c.
11418         * c-typeck.c (warn_for_assignment): Don't print argument number,
11419         if zero.
11420
11421 Sat Oct 26 01:44:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
11422
11423         * toplev.c (dump_file_index): Add DFI_ce3.
11424         (dump_file_info): Likewise.
11425         (rest_of_compilation): Run first ifcvt pass before tracer.
11426
11427 2002-10-25  Steve Ellcey  <sje@cup.hp.com>
11428
11429         * config/ia64/hpux.h (BITS_BIG_ENDIAN): Remove.
11430
11431 2002-10-25  Richard Henderson  <rth@redhat.com>
11432
11433         * real.c (real_to_decimal): If the >1 tens reduction loop results
11434         in a negative exponent, fall into the <1 pten computation.
11435
11436 2002-10-25  Zack Weinberg  <zack@codesourcery.com>
11437
11438         PR middle-end/6994
11439         * c-objc-common.c (inline_forbidden_p): Can not inline
11440         functions containing structures or unions containing VLAs.
11441         * tree-inline.c (walk_tree): For all class 't' nodes, walk
11442         TYPE_SIZE and TYPE_SIZE_UNIT.
11443         (copy_tree_r): Copy types if they are variably modified.
11444
11445 2002-10-25  Ulrich Weigand  <uweigand@de.ibm.com>
11446
11447         * config/s390/s390.md: Remove old-style peepholes.
11448
11449 2002-10-25  Ulrich Weigand  <uweigand@de.ibm.com>
11450
11451         * config/s390/s390.c (s390_decompose_address): Do not range check the
11452         displacement if base or index is the argument pointer register.
11453
11454 2002-10-24  Hans-Peter Nilsson  <hp@bitrange.com>
11455
11456         PR other/3337
11457         PR bootstrap/6763
11458         PR bootstrap/8122
11459         * fixinc/inclhack.def (libc1_G_va_list): New fix.
11460         * fixinc/fixincl.x: Regenerate.
11461         * config/i386/linux.h: Move MD_FALLBACK_FRAME_STATE_FOR inside
11462         ifndef IN_LIBGCC2.  Wrap it together with signal.h and
11463         sys/ucontext.h inclusion in ifndef USE_GNULIBC_1.
11464         * configure.in (gcc_AC_CHECK_DECLS): Check vasprintf too.
11465         * config.in, configure: Regenerate.
11466
11467 2002-10-24  Igor Shevlyakov <igor@microunity.com>
11468
11469         * varasm.c (struct rtx_const): Array size 16 for V16QImode.
11470
11471 2002-10-24  Richard Henderson  <rth@redhat.com>
11472
11473         * config/i386/i386.c (x86_output_mi_thunk): Fix x86_64 pic jump.
11474
11475 2002-10-24  Kazu Hirata  <kazu@cs.umass.edu>
11476
11477         * config/h8300/h8300.c (initial_offset): Simplify by using
11478         round_frame_size.
11479
11480 2002-10-24  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11481
11482         * doc/install.texi (avr): Update required binutils version.
11483
11484 2002-10-24  Theodore A. Roth  <troth@openavr.org>
11485
11486         * doc/install.texi: Point avr users at more up-to-date information.
11487
11488 2002-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
11489
11490         * config/s390/s390.md (movdi, movsi, movhi, movqi): Add peepholes2
11491         to pull operands out of the literal pool where possible.
11492
11493 2002-10-24  Denis Chertykov  <denisc@overta.ru>
11494
11495         * config/avr/avr.c (init_cumulative_args): Test fntype for zero.
11496
11497 2002-10-24  Steve Ellcey  <sje@cup.hp.com>
11498
11499         * expr.c (convert_move): If unsignedp is less then zero there
11500         is no equivalent code.
11501
11502 2002-10-24  Zack Weinberg  <zack@codesourcery.com>
11503
11504         * tree.def: Delete mention of nonexistent ARRAY_TYPE fields.
11505
11506 2002-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
11507
11508         * config/s390/s390.h: Rework comments; re-sort target macro definitions
11509         according to the sequence they are defined in the manual.
11510         (POINTER_BOUNDARY): Remove.
11511
11512 2002-10-24  Kazu Hirata  <kazu@cs.umass.edu>
11513
11514         * config/h8300/h8300.c (round_frame_size): Replace 8 with
11515         BITS_PER_UNIT.
11516
11517 2002-10-24  Kazu Hirata  <kazu@cs.umass.edu>
11518
11519         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Make it
11520         64-bit safe.
11521         (TINY_CONSTANT_ADDRESS_P): Likewise.
11522
11523 2002-10-24  Richard Henderson  <rth@redhat.com>
11524
11525         * config/ia64/ia64.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): True.
11526         (ia64_output_mi_thunk): Rewrite to use rtl, and to handle the
11527         vcall offset.
11528
11529 2002-10-24  Richard Henderson  <rth@redhat.com>
11530
11531         PR opt/7944
11532         * reload.c (find_reloads_toplev): Mode of X is not important
11533         when simplifying subregs of constants.
11534
11535 2002-10-24  Richard Sandiford  <rsandifo@redhat.com>
11536
11537         * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Add
11538         MIPS_MARCH_CONTROLS_SOFT_FLOAT=1 to $tm_defines.
11539         * config/mips/mips.c (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Default to 0.
11540         (override_options): Base default setting of MASK_SOFT_FLOAT on -march
11541         if MIPS_MARCH_CONTROLS_SOFT_FLOAT.
11542
11543 2002-10-24  Richard Sandiford  <rsandifo@redhat.com>
11544
11545         * optabs.c (expand_binop): Don't reuse the shift target in the
11546         middle of shift sequences.
11547
11548 Wed Oct 23 22:48:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
11549
11550         * i386.md (abs splitters): Do not produce nested subregs.
11551
11552 Wed Oct 23 12:42:32 CEST 2002  Jan Hubicka  <jh@suse.cz>
11553
11554         * i386.md (movti_rex64): Fix constraints.
11555
11556 Wed Oct 23 12:01:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
11557
11558         * i386.md (abssf,absdf): Use vector operands for SSE
11559         (abssf2_ifs, absdf2_ifs, absdf2_ifs_rex64 and splitters): Update for
11560         vector operand.
11561
11562 2002-10-23  Ziemowit Laski <zlaski@apple.com>
11563
11564         * objc/objc-act.c (get_static_reference): Remove unneeded
11565         TYPE_BINFO initialization.
11566         (get_object-reference): Likewise.
11567         (build_constructor): Tighten precondition check.
11568         (finish_message_expr): Likewise.
11569
11570 2002-10-23  Jakub Jelinek  <jakub@redhat.com>
11571
11572         * config/i386/i386.c (local_symbolic_operand): Move LABEL_REF test
11573         after CONST test.
11574
11575 2002-10-23  Steve Ellcey  <sje@cup.hp.com>
11576
11577         * config/ia64/ia64.c (hfa_element_mode): Don't allow 128 bit floats
11578         in HFAs.
11579
11580 2002-10-23  Richard Henderson  <rth@redhat.com>
11581
11582         * config/alpha/alpha.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): True.
11583         (alpha_output_mi_thunk_osf): Handle vcall_offset.
11584
11585 2002-10-23  Zack Weinberg  <zack@codesourcery.com>
11586
11587         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
11588         var_mod_type_p.
11589         * langhooks-def.h: Default for tree_inlining.var_mod_type_p is
11590         hook_tree_bool_false.
11591
11592         * tree.c (variably_modified_type_p): Moved here from
11593         cp/tree.c.  Use lang_hooks.tree_inlining.var_mod_type_p for
11594         language-specific cases.  Due to this, must weaken some 'if
11595         and only if' checks to merely 'if'.
11596         * tree.h: Prototype variably_modified_type_p.
11597
11598         * tree-inline.c (walk_tree): #undef WALK_SUBTREE_TAIL at end.
11599
11600 2002-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
11601
11602         * config/s390/linux.h (CC1_SPEC, CC1PLUS_SPEC): Remove.
11603         * config/s390/s390.c (optimization_options): Disable -fcaller-saves.
11604
11605         * config/s390/s390-protos.h (fp_operand): Remove.
11606         * config/s390/s390.c (fp_operand): Remove.
11607         * config/s390/s390.md ("movdi"): Replace fp_operand by FP_REG_P.
11608         ("*movdi_lhi", "*movdi_lli", "*movdi_larl"): Likewise.
11609         ("movsi", "*movsi_lhi", "*movsi_lli"): Likewise.
11610         (movdi_31, movdf_31 splitters): Likewise.
11611
11612         * config/s390/s390.h (IEEE_FLOAT): Remove.
11613         (TARGET_FLOAT_FORMAT): Define in terms of TARGET_IEEE_FLOAT.
11614         (INT_REGNO_P): Rename to ...
11615         (GENERAL_REGNO_P): ... this.
11616         (FLOAT_REGNO_P): Rename to ...
11617         (FP_REGNO_P): ... this.
11618         (ADDR_REGNO_P): New macro.
11619         (GENERAL_REG_P, ADDR_REG_P, FP_REG_P, CC_REG_P): New macros.
11620         (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
11621         (DATA_REG_P, FP_REG_P, ADDRESS_REG_P): Likewise.
11622         (HARD_REGNO_NREGS): Adapt to macro renaming.
11623         (HARD_REGNO_MODE_OK): Likewise.
11624
11625 2002-10-23  David Edelsohn  <edelsohn@gnu.org>
11626             Geoff Keating  <geoffk@apple.com>
11627
11628         * config/rs6000/rs6000.c (rs6000_register_move_cost): New function.
11629         (rs6000_memory_move_cost): New function.
11630         * config/rs6000/rs6000-protos.h: Declare them.
11631         * config/rs6000/rs6000.h: Use them.
11632
11633 2002-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
11634
11635         * libgcc2.c (__udiv_w_sdiv): Use attribute ((always_inline)) when
11636         inlining it into other libgcc2 routines.
11637         (__udivmoddi4): Likewise.
11638
11639 2002-10-22  Nathanael Nerode  <neroden@gcc.gnu.org>
11640
11641         * doc/sourcebuild.texi (Test Suites): Improve.
11642
11643 2002-10-22  Stan Shebs  <shebs@apple.com>
11644
11645         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Add missing
11646         case for Darwin.
11647
11648 2002-10-22  Jim Wilson  <wilson@redhat.com>
11649
11650         * config/i386/i386.md (subdi3_1): Add call to ix86_binary_operator_ok.
11651
11652 Wed Oct 23 01:52:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
11653
11654         PR other/8289
11655         * xmmintrin.h: Add const to the argument of loads.
11656
11657         * i386.md (pushv2di): New pattern.
11658         PR target/6890
11659         * xmmintrin.h (_MM_TRANSPOSE4_PS): New.
11660
11661 2002-10-22  Richard Henderson  <rth@redhat.com>
11662
11663         * target.h (gcc_target.asm_out): Merge output_mi_thunk and
11664         output_mi_vcall_thunk into a single hook.  Add can_output_mi_thunk.
11665         * target-def.h (TARGET_ASM_OUTPUT_MI_THUNK): Don't conditionalize.
11666         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Remove.
11667         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11668         (TARGET_ASM_OUT): Update.
11669         * hooks.c (hook_bool_tree_hwi_hwi_tree_false): New.
11670         (hook_bool_tree_hwi_hwi_tree_true): New.
11671         (default_can_output_mi_thunk_no_vcall): New.
11672         * hooks.h: Declare them.
11673         * system.h (ASM_OUTPUT_MI_THUNK): Poison.
11674
11675         * config/alpha/alpha.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11676         (alpha_output_mi_thunk_osf): Add VCALL_OFFSET parameter.
11677         * config/arm/arm.c, config/cris/cris.c, config/frv/frv.c,
11678         config/i960/i960.c, config/ia64/ia64.c, config/m68k/m68k.c,
11679         config/mmix/mmix.c, config/pa/pa.c, config/sparc/sparc.c,
11680         config/stormy16/stormy16.c: Similarly.
11681
11682         * config/i386/i386.c (x86_output_mi_thunk): Merge vcall_offset code.
11683         Handle 64-bit properly.  Streamline.
11684         (x86_output_mi_vcall_thunk): Remove.
11685         (x86_this_parameter): Rename from ia32_this_parameter; handle 64-bit.
11686         (x86_can_output_mi_thunk): New.
11687         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Remove.
11688         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11689         (override_options): Don't zap targetm.asm_out.output_mi_vcall_thunk.
11690
11691         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Rename from
11692         output_mi_thunk; make static; always use function_section.
11693         (TARGET_ASM_OUTPUT_MI_THUNK): New.
11694         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11695         (rs6000_ra_ever_killed): Test no_new_pseudos not
11696         targetm.asm_out.output_mi_thunk in conjunction with thunks.
11697         * config/rs6000/rs6000-protos.h: Update.
11698         * config/rs6000/sysv4.h (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
11699         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't call
11700         xcoffout_declare_function when using rs6000_output_mi_thunk.
11701
11702         * config/s390/s390.c (s390_output_mi_thunk): Rename from
11703         s390_output_mi_vcall_thunk.
11704         (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
11705         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11706
11707         * config/vax/vax.c (vax_output_mi_thunk): Static; add vcall_offset.
11708         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11709         * config/vax/vax-protos.h: Update.
11710         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.
11711
11712 Wed Oct 23 00:33:11 CEST 2002  Jan Hubicka  <jh@suse,cz>
11713
11714         * i386.c (standard_sse_constant_p): Accept vector and integer zeros too.
11715         * i386.h (EXTRA_CONSTRAINT): Recognize 'C'
11716         * i386.md (movti_internal): Use 'C'
11717
11718         * xmmintrin.h (_mm_cmplt_epi*): New.
11719
11720 2002-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
11721
11722         * config/s390/s390.md ("*movdi_64"): Fix op_type attribute.
11723         ("*movdf_64"): Likewise.
11724         ("*lshrdi3_64"): Likewise.
11725         ("blockage"): Add length attribute.
11726         ("lit"): Likewise.
11727
11728 Tue Oct 22 23:51:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
11729
11730         * i386.md: FIx typo.
11731         (sse2_cvtsi2sd, sse2_pslrdq): Fix template.
11732         (sse2_umulv2siv2di3): Fix predicate.
11733         (sse2_psadbw, ashrv8hi3, ashrv4si3, lshrv8hi3 lshrv4si3,
11734         lshrv2di3, ashlv8hi3, ashlv4si3, ashlv2di3): Likewise.
11735         * xmmintrin.h (_mm_mul_epu16): Rename to...
11736         (_mm_mul_epu32): This one.
11737         (_mm_cvtsi32_si128, _mm_cvtsi128_si32): New.
11738
11739         (contains_128bit_aligned_vector_p): Undo accidental checkin.
11740
11741 2002-10-22  Eric Christopher  <echristo@redhat.com>
11742
11743         * config/sparc/sparc.h: Add #error.
11744
11745 2002-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
11746
11747         * config.gcc [s390-*-linux]: Remove s390/t-linux from tmake_file.
11748         [s390x-*-linux*]: Likewise.
11749         * config/s390/t-linux: Remove.
11750         * config/s390/s390.h: Include fixdfdi.h when building libgcc2.
11751
11752 Tue Oct 22 19:07:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
11753
11754         * i386.c (builtin_description): Add IX86_BUILTIN_PUNPCKHQDQ128.
11755         (ix86_expand_builtin): Fix MASKMOVDQU expasion.
11756         * i386.h (ix86_builtins): Add IX86_BUILTIN_PUNPCKHQDQ128.
11757         * i386.md (mmx_punpck?dq): Simplify.
11758         (sse2_pubpcklqdq): Fix.
11759         (sse2_pubpckhqdq): New.
11760         * xmmintrin.h (_mm_unpackhi_epi32): New.
11761
11762         * xmmintrin.h (_mm_cvt*, _mm_stream_pd): Fix prototypes.
11763         (_mm_shufflehi_epi16, _mm_shufflelo_epi16): Fix typo.
11764
11765 2002-10-22  Nathan Sidwell  <nathan@codesourcery.com>
11766
11767         PR c++/7209
11768         * fold_const.c (fold_binary_op_with_conditional_arg): Always
11769         build compound_expr if we used save_expr.
11770
11771 2002-10-22  Alan Modra  <amodra@bigpond.net.au>
11772
11773         * output.h (SECTION_NOTYPE): Define.
11774         * varasm.c (default_section_type_flags_1): Set SECTION_NOTYPE for
11775         init array sections.
11776         (default_elf_asm_named_section): Mind SECTION_NOTYPE.
11777         * config/arm/arm.c (arm_elf_asm_named_section): Likewise.  Also
11778         merge TLS support.
11779
11780 2002-10-21  Richard Henderson  <rth@redhat.com>
11781
11782         * config/i386/i386.c (ix86_function_ok_for_sibcall): Look at
11783         the function type, not the return type.
11784
11785 2002-10-21  Richard Henderson  <rth@redhat.com>
11786
11787         * real.c (sticky_rshift_significand): Return inexact, don't
11788         or it in immediately.
11789         (sub_significands): Accept incomming carry.
11790         (div_significands, rtd_divmod): Update for sub_significands change.
11791         (round_for_format): Update for sticky_rshift_significand change.
11792         (do_add): Don't involve the inexact bit in addition, do give the
11793         inexact bit as the subtraction carry-in.
11794         (encode_internal, decode_internal, real_internal_format): New.
11795         * real.h (real_internal_format): Declare.
11796
11797 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
11798
11799         * libgcc2.c: Fix __udiv_w_sdiv breakage on platforms that
11800         don't define sdiv_qrnnd.
11801
11802 2002-10-21  Kazu Hirata  <kazu@cs.umass.edu>
11803
11804         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Simplify
11805         using IN_RANGE.
11806         (TINY_CONSTANT_ADDRESS_P): Likewise.
11807
11808 Tue Oct 22 00:04:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
11809
11810         * i386.c (builtin_description): Add punpcklqdq and movdq2q
11811         (ix86_init_mmx_sse_builtins): Add v2di_ftype_void, di_ftype_v2di,
11812         v16qi_ftype_pchar, void_ftype_pchar_v16qi, v4si_ftype_pchar,
11813         void_ftype_pchar_v4si; Initialize __builtin_ia32_movdq2q,
11814         __builtin_ia32_loaddqa, __builtin_ia32_loaddqu, __builtin_ia32_loadd
11815         __builtin_ia32_storedqa, __builtin_ia32_storedqu, __builtin_ia32_stored
11816         __builtin_ia32_setzero128.
11817         (ix86_expand_builtin): Handle IX86_BUILTIN_CLRTI, IX86_BUILTIN_LOADDQA,
11818         IX86_BUILTIN_LOADDQU, IX86_BUILTIN_LOADD, IX86_BUILTIN_STOREDQA,
11819         IX86_BUILTIN_STOREDQU, IX86_BUILTIN_STORED, Ix86_BUILTIN_MOVQ.
11820         * i386.h (ix86_builtins): Add IX86_BUILTIN_LOADDQA, IX86_BUILTIN_LOADDQU,
11821         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_STOREDQU, IX86_BUILTIN_LOADD,
11822         IX86_BUILTIN_STORED, IX86_BUILTIN_CLRTI, IX86_BUILTIN_MOVDQ2Q,
11823         IX86_BUILTIN_PUNPCKLQDQ128, Ix86_BUILTIN_MOVQ.
11824         * i386.md (sse2_punpcklqdq, sse2_movqsse2_loadd, sse2_stored,
11825         sse2_movq): New patterns.
11826         (sse2_movdqa, sse2_movdqu, sse2_movdq2q): Fix.
11827         * xmmintrin.h (_mm_load_si128, _mm_loadu_si128, _mm_loadl_epi64,
11828         _mm_store_si128, _mm_storeu_si128, _mm_storel_epi64,
11829         _mm_setzero_si128, _mm_set_epi64, _mm_set_epi32, _mm_set_epi16,
11830         _mm_set_epi8, _mm_set1_epi64, _mm_set1_epi32, _mm_set1_epi16,
11831         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
11832         _mm_setr_epi8, _mm_unpacklo_epi64,_mm_set_moveq): New functions.
11833         (_mm_insert_epi16): Fix.
11834
11835 2002-10-21  Dale Johannesen  <dalej@apple.com>
11836
11837         * config/rs6000/rs6000.c (rs6000_reverse_condition): Handle
11838             unsafe math reversals correctly for RTL generation.
11839           (output_cbranch):  Replace rs6000_reverse_condition call
11840             by its former definition.
11841
11842 2002-10-21  Jakub Jelinek  <jakub@redhat.com>
11843
11844         * config/i386/i386.c (x86_64_sign_extended_value): Add allow_rip
11845         argument.  In CM_SMALL_PIC model consider SYMBOL_REFs binding locally or
11846         from constant pool or LABEL_REFs as sign extended if allow_rip.
11847         Change all +-1GB limits to +-16MB.
11848         (x86_64_general_operand, x86_64_szext_general_operand,
11849         x86_64_nonmemory_operand, x86_64_movabs_operand,
11850         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
11851         legitimate_address_p, ix86_expand_int_movcc): Update callers.
11852         (local_symbolic_operand): Don't allow offsets bigger than +-16MB
11853         in CM_SMALL_PIC model.
11854         (legitimate_pic_address_disp_p): Don't check offsets before
11855         calling local_symbolic_operand.
11856         (legitimize_pic_address): Force offsets bigger than +-16MB into
11857         register.
11858         * config/i386/i386.h (EXTRA_CONSTRAINT, CONST_COSTS): Likewise.
11859         * config/i386/i386-protos.h (x86_64_sign_extended_value): Update
11860         prototype.
11861
11862         * configure.in: Test for @GOTNTPOFF and @INDNTPOFF on IA-32 too.
11863         Add x86-64 test.  Set tls_first_minor to 14 on IA-32 and x86-64.
11864         * configure: Rebuilt.
11865         * config/i386/i386.c (x86_64_sign_extended_value): Don't allow TLS
11866         SYMBOL_REFs unless enclosed in UNSPEC.  Handle UNSPEC_DTPOFF,
11867         UNSPEC_GOTNTPOFF and UNSPEC_NTPOFF.
11868         (legitimate_address_p): Allow foo@dtpoff(base) even on TARGET_64BIT
11869         -fpic.
11870         (ix86_encode_section_info): Don't ever generate TLSGD or TLSLD for
11871         non-pic code if TARGET_64BIT.
11872         (legitimize_address): Generate 64-bit TLS sequences.
11873         (output_pic_addr_const): Support x86-64 TLS operators.
11874         (i386_output_dwarf_dtprel): Output 64-bit DTPOFF as .long f@DTPOFF, 0.
11875         (print_operand_address): Use %fs instead of %gs on TARGET_64BIT.
11876         Don't append (%rip) in 64-bit TLSGD and TLSLD sequences.
11877         (output_addr_const_extra): Support x86-64 TLS operators.
11878         (maybe_get_pool_constant): Handle TARGET_64BIT -fpic.
11879         (ix86_tls_get_addr): Use __tls_get_addr on TARGET_64BIT
11880         unconditionally.
11881         * config/i386/i386.md (*tls_global_dynamic_gnu): Renamed to...
11882         (*tls_global_dynamic_32_gnu): ..., add !TARGET_64BIT.
11883         (*tls_global_dynamic_sun): Renamed to...
11884         (*tls_global_dynamic_32_sun): ..., add !TARGET_64BIT.
11885         (tls_global_dynamic): Renamed to...
11886         (tls_global_dynamic_32): ... this.
11887         (tls_global_dynamic_64, *tls_global_dynamic_64): New.
11888         (*tls_local_dynamic_base_dynamic_gnu): Renamed to...
11889         (*tls_local_dynamic_base_dynamic_32_gnu): ..., add !TARGET_64BIT.
11890         (*tls_local_dynamic_base_dynamic_sun): Renamed to...
11891         (*tls_local_dynamic_base_dynamic_32_sun): ..., add !TARGET_64BIT.
11892         (tls_local_dynamic_base_dynamic): Renamed to...
11893         (tls_local_dynamic_base_dynamic_32): ... this.
11894         (tls_local_dynamic_base_dynamic_64,
11895         *tls_local_dynamic_base_dynamic_64): New.
11896         (*tls_local_dynamic_once): Renamed to...
11897         (*tls_local_dynamic_32_once): ... this.
11898
11899 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
11900
11901         * libgcc2.c: Inline __udiv_w_sdiv when compiling __udivdi3,
11902         __divdi3, __umoddi3, or __moddi3.
11903
11904 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
11905
11906         * c-opts.c (missing_arg): Use cl_options[opt_index].opt_code
11907         instead of just opt_index as switch expression.
11908
11909         * calls.c (store_one_arg): Change type of 'excess_align'
11910         to unsigned int.
11911
11912         * profile.c (output_gcov_string): Change type of 'temp'
11913         to size_t.
11914
11915 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
11916
11917         * config/s390/fixdfdi.h (__fixunsdfdi, __fixdfdi): Add prototypes.
11918         (__fixunssfdi, __fixsfdi): Likewise.
11919         * config/s390/s390.c (s390_single_hi): Initialize 'value'.
11920         (s390_single_qi): Likewise.
11921         (s390_emit_epilogue): Initialize 'offset'.  Remove signed vs.
11922         unsigned comparison warning.
11923         (s390_return_addr_rtx): New function.
11924         * config/s390/s390-protos.h (s390_return_addr_rtx): Declare it.
11925         * config/s390/s390.h (RETURN_ADDR_RTX): Use it.
11926         (HARD_REGNO_MODE_OK): Rewrite condition to silence warnings.
11927
11928 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
11929
11930         * config/s390/s390.c (s390_output_mi_vcall_thunk): New function.
11931         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Define target hook.
11932         (s390_output_mi_thunk): Remove.
11933         (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
11934
11935 2002-10-21  Kazu Hirata  <kazu@cs.umass.edu>
11936
11937         * config/h8300/h8300.h (N_REG_CLASSES): Parenthesize.
11938
11939 2002-10-20  Zack Weinberg  <zack@codesourcery.com>
11940
11941         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix an
11942         inverted test in the conditional determining the possibility
11943         of sibcalls in PIC mode.
11944
11945 2002-10-20  Richard Henderson  <rth@redhat.com>
11946
11947         * target.h (struct gcc_target): Line wrap.
11948
11949         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Static.
11950         (TARGET_ASM_OUTPUT_MI_THUNK): Define here...
11951         * config/alpha/alpha.h: ... not here.
11952         * config/alpha/alpha-protos.h: Update.
11953
11954         * config/arm/arm.c, config/arm/arm.h, config/arm/arm-protos.h
11955         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
11956         config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
11957         config/i386/i386-protos.h, config/i386/i386.c, config/i386/openbsd.h,
11958         config/i386/unix.h, config/i960/i960-protos.h, config/i960/i960.c,
11959         config/i960/i960.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
11960         config/ia64/ia64.h, config/m68k/linux.h, config/m68k/m68k-protos.h,
11961         config/m68k/m68k.c, config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
11962         config/mmix/mmix-protos.h, config/mmix/mmix.c, config/mmix/mmix.h,
11963         config/pa/pa-protos.h, config/pa/pa.c, config/pa/pa.h,
11964         config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
11965         config/sparc/openbsd.h, config/sparc/sparc-protos.h,
11966         config/sparc/sparc.c, config/sparc/sparc.h,
11967         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
11968         config/stormy16/stormy16.h: Similarly.
11969
11970         * config/m68k/m68k.c (m68k_output_mi_thunk): Replicate mnemonic
11971         selection logic from call patterns.
11972
11973 2002-10-20  Mark Mitchell  <mark@codesourcery.com>
11974
11975         * config/m68k/m68k.c (m68k_output_mi_thunk): Fix typo.
11976
11977 2002-10-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11978
11979         PR other/8202
11980         * i386.c (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Define and
11981         expand __builtin_ia32_pslldqi128 and __builtin_ia32_psrldqi128.
11982         * i386.h (IX86_BUILTIN_PSLLDQI128, IX86_BUILTIN_PSRLDQI128): New.
11983         * xmmintrin.h (_mm_srli_si128, _mm_slli_si128): New.
11984
11985 2002-10-20  Roger Sayle  <roger@eyesopen.com>
11986
11987         PR c/761
11988         * toplev.c (flag_unsafe_profile_arcs): Remove.
11989         (flag_bounded_pointers): Remove.
11990         (flag_bounds_check): Correct comments.
11991         (lang_independent_options): Remove -funsafe-profile-arcs and
11992         -fbounded-pointers.  Correct -fbounds-check comments.
11993
11994         * flags.h: Correct flag_schedule_interblock comments.
11995         (flag_bounded_pointers): Remove prototype.
11996         (flag_bounds_check): Correct comments.
11997
11998         * c-opts.c (c_common_init_options): No need to mark
11999         flag_bounds_check as unspecified.
12000         (c_common_post_options): And no need to set it from
12001         flag_bounded_pointers if its still unspecified.
12002
12003         * doc/invoke.texi: Fix some overfull hboxes in "make dvi".
12004         Document --version, -feliminate-dwarf-2-dups, -fno-sched-interblock,
12005         -fno-sched-spec, -fsched-spec-load, -fsched-spec-load-dangerous,
12006         -fsched-verbose=n, -fno-branch-count-reg and -fbounds-check.
12007
12008 Sat Oct 19 22:02:28 2002  Alexandre Oliva  <aoliva@redhat.com>
12009         Angela Marie Thomas  <angela@releasedominatrix.com>
12010         Brendan Kehoe  <brendan@zen.org>
12011         Nick Clifton  <nickc@redhat.com>
12012         Andrew Haley  <aph@redhat.com>
12013
12014         * configure.in (--with-sysroot): New.  Don't inhibit libc if
12015         given.  AC_SUBST TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE
12016         and CROSS_SYSTEM_HEADER_DIR.
12017         * configure: Rebuilt.
12018         * Makefile.in (CROSS_SYSTEM_HEADER_DIR): Set in configure.
12019         (TARGET_SYSTEM_ROOT): New.
12020         (DRIVER_DEFINES): Define CROSS_INCLUDE_DIR from
12021         CROSS_SYSTEM_HEADER_DIR.
12022         (install-gcc-tooldir): New target.
12023         (stmp-fixinc): Do not create $(libsubdir), but rather bail out
12024         if SYSTEM_HEADER_DIR does not exist and it's not the default
12025         sys-include directory.
12026         (deduced.h, stmp-fixproto): Quote SYSTEM_HEADER_DIR properly.
12027         (install-mkheaders): Likewise.
12028         * gcc.c (target_system_root): New variable.
12029         (add_sysrooted_prefix): New function.
12030         (process_command): Recompute run-time target_system_root from
12031         gcc_exec_prefix, keeping it unchanged if the relocated sysroot
12032         does not exist.
12033         (do_spec_1): Process 'R' spec.
12034         (main): Add md_exec_prefix to exec_prefixes regardless of
12035         startfile_prefix_spec.  Use add_sysrooted_prefix for
12036         startfile_prefixes, and don't skip the default ones when cross
12037         compiling with sysroot enabled.  Removed unused case of
12038         non-absolute standard_startfile_prefix.
12039         * config/interix.h: Remove the only potential, yet disabled,
12040         occurrence of non-absolute (empty) standard_startfile_prefix.
12041         * config/sh/linux.h (LIB_SPEC): Add -rpath-link in non-static
12042         linking.
12043         * config/mips/linux.h (LIB_SPEC): Define as in sh/linux.h.
12044         * doc/install.texi (--with-sysroot): Document.
12045         (--with-headers, --with-libs): Deprecate.
12046
12047 2002-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12048             Mark Mitchell  <mark@codesourcery.com>
12049
12050         * alpha-protos.h (alpha_output_mi_thunk_osf): Update signature to
12051         match target.h.
12052         * arm-protos.h, arm.c (arm_output_mi_thunk): Likewise.
12053         * cris-protos.h, cris.c (cris_asm_output_mi_thunk): Likewise.
12054         * frv-protos.h, frv.c (frv_asm_output_mi_thunk): Likewise.
12055         * i386-protos.h, i386.c (x86_output_mi_vcall_thunk,
12056         x86_output_mi_thunk): Likewise.
12057         * i960-protos.h, i960.c (i960_output_mi_thunk): Likewise.
12058         * ia64-protos.h, ia64.c (ia64_output_mi_thunk): Likewise.
12059         * m68k-protos.h, m68k.c (m68k_output_mi_thunk): Likewise.
12060         * mmix-protos.h, mmix.c (mmix_asm_output_mi_thunk): Likewise.
12061         * rs6000-protos.h, rs6000.c (output_mi_thunk): Likewise.
12062         * s390-protos.h, s390.c (s390_output_mi_thunk): Likewise.
12063         * stormy16-protos.h, stormy16.c (xstormy16_asm_output_mi_thunk):
12064         Likewise.
12065         * vax-protos.h, vax.c (vax_output_mi_thunk): Likewise.
12066
12067         * target.h (gcc_target): Update output_mi_thunk and
12068         output_mi_vcall_thunk to take a HOST_WIDE_INT delta and
12069         vcall_index.
12070
12071         * config/alpha/alpha.c: Replace ASM_OUTPUT_MI_THUNK with
12072         TARGET_ASM_OUTPUT_MI_THUNK in comments.
12073         * config/alpha/vms.h (ASM_OUTPUT_MI_THUNK): Don't #undef it.
12074         (TARGET_ASM_OUTPUT_MI_THUNK): #undef it.
12075         * config/frv/frv.h (DEFAULT_VTABLE_THUNKS): Remove definition.
12076         * config/i386/i386-protos.h (x86_output_mi_vcall_thunk): Update
12077         signature.
12078         * config/i386/i386.c (x86_output_mi_vcall_thunk): Likewise.
12079         * config/i386/openbsd.h: Replace ASM_OUTPUT_MI_THUNK with
12080         TARGET_ASM_OUTPUT_MI_THUNK in comments.
12081         * config/i960/i960.h (ASM_OUTPUT_MI_THUNK): Don't define.
12082         (TARGET_ASM_OUTPUT_MI_THUNK): Do define.
12083         * config/m68k/openbsd.h: Replace ASM_OUTPUT_MI_THUNK with
12084         TARGET_ASM_OUTPUT_MI_THUNK in comments.
12085         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Remove #ifdef
12086         ASM_OUTPUT_MI_THUNK and replace with check of targetm.
12087
12088         * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Update signature.
12089         (TARGET_ASM_OUTPU_MI_VCALL_THUNK): Likewise.
12090
12091 2002-10-19  Brad Lucier  <lucier@math.purdue.edu>
12092
12093         * real.c (do_add): Fix 0+0 sign corner case.
12094         (do_divide): Fix Inf/0 corner case.
12095
12096 Sun Oct 20 00:31:31 CEST 2002  Jan Hubicka  <jh@suse.cz>
12097
12098         * i386.c (classify_argument): Pass MMX arguments in memory
12099         (ix86_expand_builtin): Expand proper address mode for cflush.
12100         * i386.md (movdqa): Fix typo.
12101         (sse2_cflush): Accept DImode addresses.
12102
12103         * xmmintrin.h (_mm_sqrt_sd): Accept two arguments.
12104         (_mm_max_sd): Fix pasto.
12105         (_mm_storeh_pd, _mm_storel_pd): Fix.
12106
12107         * i386.c (bdesc_comi): Fix to match specification.
12108         (ix86_expand_sse_comi): Emit the comparison properly.
12109         * i386.md (sse_comi, sse2_comi, sse_ucomi, sse2_ucomi):
12110         Do not use comparison operator.
12111         (vnmaskcmp): Fix template.
12112
12113         * xmmintrin.h (_mm_cvtps_pi16): Fix.
12114
12115 2002-10-19  Sebastian Pop  <s.pop@laposte.net>
12116
12117         * dependence.c : Removed.
12118         * Makefile.in : Remove dependence.o.
12119
12120 Sat Oct 19 10:46:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
12121
12122         * mmintrin.h (__m64): typedef it to v2si.
12123         (_mm_cvtsi32_si64, _mm_cvtsi32_si64_mm_sll_pi16,
12124         _mm_sll_pi32, _mm_sll_pi64, _mm_slli_pi64, _mm_sra_pi16,
12125         _mm_sra_pi32, _mm_srl_pi16, _mm_srl_pi32, _mm_srl_pi64,
12126         _mm_srli_pi64, _mm_and_si64, _mm_andnot_si64,
12127         _mm_or_si64, _mm_xor_si64): Add neccesary casts.
12128         * xmmintrin.h (_mm_setzero_si64): Likewise.
12129
12130         * i386.h (ALIGN_MODE_128): Update comment; add missing modes
12131         (SSE_REG_MODE_P, MMX_REG_MODE_P): New macros.
12132
12133         PR target/7693
12134         Patch by Shawn Wagner
12135         * mmintrin.h: Replace pi64 by si64.
12136
12137 2002-10-18  David Edelsohn  <edelsohn@gnu.org>
12138
12139         * rs6000.md (movdf_hardfloat32): Order alternatives consistently.
12140         Use length of 4 not *.
12141         (movdf_hardfloat64): Same.  Support DFmode moves to/from CTR/LR.
12142         (movdf_softfloat64): Likewise.
12143         (movdi_internal32): Use length of 4 not *.
12144         (movti_power): Same.
12145         (ctrsi, ctrdi): Same.
12146
12147 2002-10-18  Zack Weinberg  <zack@codesourcery.com>
12148
12149         * c-decl.c (start_decl): Point users of the old initialized-
12150         typedef extension at __typeof__.
12151
12152 2002-10-18  Richard Henderson  <rth@redhat.com>
12153
12154         * real.c (cmp_significand_0, rtd_divmod, ten_to_mptwo): New.
12155         (real_to_decimal): Re-implement using the logic from the
12156         gcc 3.2 etoasc.  Comment heavily.
12157         (div_significands): Simplify loop startup and comparison logic.
12158
12159 2002-10-18  Mark Mitchell  <mark@codesourcery.com>
12160
12161         * target-def.h (TARGET_ASM_OUTPUT_MI_THUNK): Default to NULL.
12162         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Likewise.
12163         (TARGET_ASM_OUT): Add them.
12164         * target.h (asm_out): Add output_mi_thunk and
12165         output_mi_vcall_thunk.
12166         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12167         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12168         * config/arm/arm-protos.h (arm_output_mi_thunk): Declare.
12169         * config/arm/arm.c (arm_output_mi_thunk): Define.
12170         * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12171         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12172         * config/cris/cris.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12173         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12174         * config/frv/frv.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12175         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12176         * config/i386/i386-protos.h (x86_output_mi_thunk): Adjust
12177         prototype.
12178         (x86_output_mi_vcall_thunk): Declare.
12179         * config/i386/i386.c (override_options): Clear
12180         output_mi_vcall_thunk in 64-bit mode.
12181         (ix86_fntype_regparm): New function.
12182         (ix86_return_pops_args): Use it.
12183         (ia32_this_parameter): New function.
12184         (x86_output_mi_vcall_thunk): New function.
12185         (x86_output_mi_thunk): Use it
12186         * config/i386/unix.h (TARGET_ASM_OUTPUT_MI_THUNK): Adjust.
12187         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Define.
12188         * config/i960/i960-protos.h (i960_output_mi_thunk): Declare.
12189         * config/i960/i960.c (i960_output_mi_thunk): New function.
12190         * config/i960/i960.h (ASM_OUTPUT_MI_THUNK): Adjust.
12191         * config/ia64/ia64-protos.h (ia64_output_mi_thunk): Declare.
12192         * config/ia64/ia64.c (ia64_output_mi_thunk): Define.
12193         * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12194         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12195         * config/m68k/m68k-protos.h (m68k_output_mi_thunk): New function.
12196         * config/m68k/linux.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12197         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12198         * config/m68k/netbsd-elf.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12199         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12200         * config/mmix/mmix.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12201         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12202         * config/pa/pa.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12203         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12204         * config/rs6000/sysv4.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12205         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12206         * config/s390/s390-protos.h (s390_output_mi_thunk): Declare.
12207         * config/s390/s390.c (s390_output_mi_thunk): Define.
12208         * config/s390/s390.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12209         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12210         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12211         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12212         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12213         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12214         * config/vax/vax-protos.h (vax_output_mi_thunk): Declare.
12215         * config/vax/vax.c (vax_output_mi_thunk): Define.
12216         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12217         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12218         * doc/tm.texi: Adjust documentation.
12219
12220 2002-10-18  Jason Thorpe  <thorpej@wasabisystems.com>
12221
12222         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Define
12223         __enable_execute_stack function.
12224         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Define
12225         as NETBSD_ENABLE_EXECUTE_STACK.
12226         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
12227         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
12228         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
12229         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
12230         * config/sparc/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
12231
12232 2002-10-18  Jason Thorpe  <thorpej@wasabisystems.com>
12233
12234         * config/i386/i386.c (x86_initialize_trampoline): Emit a call
12235         to __enable_execute_stack with the address of the trampoline
12236         if TRANSFER_FROM_TRAMPOLINE is defined.
12237         * config/i386/i386.h (TARGET_64BIT): Expand to a compile-time
12238         constant if building libgcc2.
12239
12240 Thu Oct 17 17:40:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
12241
12242         * i386.c (pentium4_cost): Fix according to Intel recommendations.
12243         (ix86_memory_move_cost): Fix for 64bit compilation.
12244
12245 2002-10-17  Roger Sayle  <roger@eyesopen.com>
12246
12247         * doc/c-tree.texi: Update description of COND_EXPR tree nodes.
12248
12249 2002-10-17  Geoffrey Keating  <geoffk@apple.com>
12250
12251         * config/rs6000/rs6000.h (HARD_REGNO_MODE_OK): Allow arbitrary modes
12252         in CTR/LR/MQ.
12253         * config/rs6000/rs6000.md (movcc_internal1): Support CCmode moves
12254         to/from CTR/LR/MQ.
12255         (movsf_hardfloat): Support SFmode moves to/from CTR/LR/MQ.
12256         (movsf_softfloat): Likewise.
12257
12258 2002-10-17  Janis Johnson  <janis187@us.ibm.com>
12259
12260         * Makefile.in (site.exp): Add ALT_CXX_UNDER_TEST and COMPAT_OPTIONS.
12261
12262 2002-10-17  Jason Thorpe  <thorpej@wasabisystems.com>
12263
12264         * config/alpha/alpha.c (alpha_initialize_trampoline): Use
12265         tramp, not addr, to pass the trampoline address to
12266         __enable_execute_stack.
12267
12268 Thu Oct 17 18:40:47 CEST 2002  Jan Hubicka  <jh@suse.cz>
12269
12270         * mmintrin.h: Guard by __MMX__
12271         * xmmintrin.h: Guard by __SSE__
12272
12273         PR other/8062
12274         * xmmintrin.h (_MM_SHUFFLE2): New macro.
12275         (_mm_load*_?d): New functions.
12276         (_mm_set*_?d): New functions.
12277         (_mm_store*_?d): New functions.
12278
12279 Wed Oct 16 15:01:29 CEST 2002  Jan Hubicka  <jh@suse.cz>
12280
12281         Really commit patch announced at Oct 14
12282         PR c/7344
12283         * predict.c (can_predict_insn_p): New function.
12284         (estimate_probability): Avoid unnecesary work.
12285         (process_note_prediction): Likewise.
12286         * toplev.c (rest_of_compilation): Account early branch prediction pass
12287         as TV_BRANCH_PROB.
12288
12289         PR other/8048
12290         Found by Ian Ollmann
12291         * xmmintrin.h (_mm_shuffle_pd): Fix typo.
12292         (_mm_load?_pd): Likewise.
12293         (_mm_store?_pd): Likewise.
12294
12295         PR target/7386
12296         * i386.c (builtin_description):Drop cmpg[te]s[sd].
12297         * xmmintrin.h (__mm_cmpg[te]_s[sd]): Rewrite using
12298         swapped alternative.
12299
12300         PR opt/7630
12301         * reload1.c (reload_inner_reg_of_subreg): New argument output;
12302         (push_reload): Update call.
12303
12304 2002-10-17  Richard Sandiford  <rsandifo@redhat.com>
12305
12306         * config.gcc (mips*-*-*): Add OBJECT_FORMAT_ELF to $tm_defines
12307         if using mips/elf.h or mips/elf64.h.
12308         * config/mips/elf.h (OBJECT_FORMAT_ELF): Remove.
12309         * config/mips/elf64.h (OBJECT_FORMAT_ELF): Remove.
12310
12311 2002-10-16  Aldy Hernandez  <aldyh@redhat.com>
12312
12313         * config/rs6000/rs6000.c (function_arg): Set inner mode of V1DI to
12314         SI.
12315
12316 2002-10-16  Ulrich Weigand  <uweigand@de.ibm.com>
12317
12318         * config/s390/linux.h (ASM_DOUBLE, _ASM_OUTPUT_LONG): Remove.
12319         (LPREFIX): Likewise.
12320         (ASM_COMMENT_START, LOCAL_LABEL_PREFIX, ASM_FORMAT_PRIVATE_NAME,
12321         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT,
12322         ASM_OUTPUT_ALIGN, ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_BSS,
12323         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
12324         GLOBAL_ASM_OP, ASM_OUTPUT_MI_THUNK): Move to s390.h.
12325
12326         * config/s390/s390.h (ASM_COMMENT_START, LOCAL_LABEL_PREFIX,
12327         ASM_FORMAT_PRIVATE_NAME, ASM_OUTPUT_ALIGN, ASM_OUTPUT_SKIP,
12328         ASM_OUTPUT_ALIGNED_BSS, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
12329         BSS_SECTION_ASM_OP): Move from linux.h.
12330         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12331         Also, use ASM_GENERATE_INTERNAL_LABEL instead of LPREFIX.
12332
12333         * config/s390/s390.c (s390_function_profiler): Use
12334         ASM_GENERATE_INTERNAL_LABEL instead of LPREFIX.
12335
12336 2002-10-15  Eric Christopher  <echristo@redhat.com>
12337
12338         * stor-layout.c (layout_type): Call GET_MODE_BITSIZE once.
12339         * java/parse.y (obtain_incomplete_type): Make pointer
12340         ptr_mode.
12341
12342 2002-10-15  Richard Henderson  <rth@redhat.com>
12343
12344         * real.c (real_to_decimal): Accept BUF_SIZE and CROP_TRAILING_ZEROS
12345         as arguments.  Bound DIGITS by the available buffer size.
12346         (real_to_hexadecimal): Likewise.
12347         * real.h (real_to_decimal, real_to_hexadecimal): Update prototypes.
12348         (REAL_VALUE_TO_DECIMAL): Remove.
12349         * c-common.c, c-pretty-print.c, print-rtl.c, print-tree.c,
12350         sched-vis.c, config/arc/arc.c, config/c4x/c4x.c, config/fr30/fr30.c,
12351         config/i370/i370.h, config/i386/i386.c, config/i960/i960.c,
12352         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
12353         config/m68k/hp320.h, config/m68k/m68k.h, config/m68k/sun2o4.h,
12354         config/m68k/sun3.h, config/mips/mips.c, config/ns32k/ns32k.c,
12355         config/pdp11/pdp11.h, config/vax/vax.h: Update all callers to
12356         use real_to_decimal directly, and with the proper arguments.
12357         * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Remove.
12358
12359 2002-10-15  Jim Wilson  <wilson@redhat.com>
12360
12361         * reload1.c (merge_assigned_reloads): After converting overlapping
12362         reloads to RELOAD_OTHER, abort if there are now conflicting reloads.
12363
12364         * config/i386/i386.md (adddi3_1): Add call to ix86_binary_operator_ok.
12365
12366 Tue Oct 15 22:08:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
12367
12368         * expr.c (do_tablejump): Fix typo in my previous commit.
12369
12370 2002-10-15  Richard Sandiford  <rsandifo@redhat.com>
12371
12372         * config/mips/vr.h (DRIVER_SELF_SPECS): Change %<mgp32 to %{<mgp32}.
12373
12374 2002-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
12375
12376         * config/s390/s390.c (s390_split_branches): Add return
12377         value.  Add parameters TEMP_REG and TEMP_USED.  Use unspec 104.
12378
12379         (find_base_register_in_addr): New function.
12380         (find_base_register_ref): New function.
12381         (replace_base_register_ref): New function.
12382
12383         (struct constant_pool): Add members pool_insn, insns, and anchor.
12384         Remove member last_insn.
12385         (s390_start_pool): Initialize them.
12386         (s390_end_pool): Emit pool placeholder insn.
12387         (s390_add_pool_insn): New function.
12388         (s390_find_pool): Use insns bitmap instead of addresses.
12389         (s390_dump_pool): Replace placeholder insn.  Emit anchor.
12390         Replace unspec 104 by local-pool-relative references.
12391         (s390_output_constant_pool): Output anchor label if required.
12392         (s390_output_symbolic_const): Handle unspec 104 and 105.
12393         (s390_add_pool): Remove, replace by ...
12394         (s390_add_constant, s390_find_constant): ... these new functions.
12395         (s390_add_anchor): New function.
12396
12397         (s390_chunkify_pool): Delete, replace by ...
12398         (s390_chunkify_start, s390_chunkify_finish,
12399         s390_chunkify_cancel): ... these new functions.
12400         (s390_optimize_prolog): Add parameter TEMP_REGNO.
12401         Recompute register live data for special registers.
12402         (s390_fixup_clobbered_return_reg): New function.
12403         (s390_machine_dependent_reorg): Rewrite to use new
12404         s390_chunkify_... routines.
12405
12406         config/s390/s390.md ("reload_base"): Rename to ...
12407         ("reload_base_31"): ... this.
12408         ("reload_base_64"): New insn.
12409         ("reload_base2"): Remove.
12410         ("reload_anchor"): New insn.
12411         ("pool"): New insn.
12412
12413         s390.c (s390_pool_overflow): Remove.
12414         s390.h (s390_pool_overflow): Likewise.
12415         s390.md ("cjump", "icjump", "doloop_si"): Remove s390_pool_overflow.
12416
12417 Tue Oct 15 16:51:04 2002  J"orn Rennecke <joern.rennecke@superh.com>
12418
12419         * sh.md (movv8qi_i+2): Don't split if source is -1.
12420
12421 2002-10-15  Janis Johnson  <janis187@us.ibm.com>
12422
12423         * doc/install.texi: Formatting changes for conformance to HTML 4.01.
12424
12425 2002-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
12426
12427         PR opt/7409
12428         * loop.c (loop_regs_scan): Mark registers used for function
12429         argument passing as MAY_NOT_OPTIMIZE.
12430
12431 Mon Oct 14 19:22:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
12432
12433         * gcov-io.h (gcov_info): Fix type.
12434         * profile.c (create_profiler): Fix type mismatch.
12435
12436 Mon Oct 14 20:33:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
12437
12438         * i386.md (movv2di_internal): New pattern.
12439         (movv2df_internal, movv8hi_internal, movv16qi_internal): Fix predicate.
12440         (movv2di): New expander.
12441         * i386.c (ix86_preferred_reload_class): Return NO_REGS for vector operands.
12442
12443         * i386.c (ix86_expand_timode_binop_builtin): Delete.
12444         (builtin_description): Add SSE1 logicals; rename SSE2 logicals.
12445         (ix86_init_mmx_sse_builtins): Kill SSE1 logicals.
12446         (ix86_expand_builtin): Likewise.
12447         * i386.h (sse_andti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
12448         sse_andti3,
12449         sse_andnti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
12450         sse_andnti3,
12451         sse_orti4_df_1, sse_orti3_df_2, sse_orti3_sf_1, sse_orti3_sf_2,
12452         sse_orti3,
12453         sse_xorti4_df_1, sse_xorti3_df_2, sse_xorti3_sf_1, sse_xorti3_sf_2,
12454         sse_xorti3): Kill.
12455         (sse_andv4sf3, sse_andnv4sf3, sse_orv2df3, sse_xorv2df3, sse_andv2df3,
12456          sse_andnv2df3, sse_orv2df3, sse_xorv2df3): New expanders.
12457         (*sse_andv4sf3, *sse_andnv2df3, *sse_orv4sf3, *sse_xorv4sf3, *sse_andv2df3,
12458          *sse_andnv2df3, *sse_orv2df3, *sse_xorv2df3): New patterns.
12459         (*sse_andsf3, *sse_andndf3, *sse_ordf3, *sse_xordf3, *sse_anddf3,
12460          *sse_andndf3, *sse_orv2df3, *sse_xorv2df3): New patterns.
12461
12462         * xmmintrin.h (__m128i): Define as __v2di.
12463
12464         PR c++/6419
12465         (expand_expr): Use DECL_RTL_SET_P.
12466
12467 2002-10-14  Roger Sayle  <roger@eyesopen.com>
12468
12469         * combine.c (simplify_set):  Treat MODE_CC registers like cc0.
12470
12471 2002-10-14  Roger Sayle  <roger@eyesopen.com>
12472             Zack Weinberg <zack@codesourcery.com>
12473
12474         * config/i386/i386.c (k6_cost): Correct typo.
12475
12476 2002-10-14  Mark Mitchell  <mark@codesourcery.com>
12477
12478         PR optimization/6631
12479         * alias.c (objects_must_conflict_p): Check honor_readonly when
12480         examining TYPE_READONLY.
12481         * function.c (assign_stack_temp_for_type): Likewise.
12482
12483 2002-10-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
12484
12485         * config/alpha/alpha.md (extendsidi2_nofix, extendsidi2_fix):
12486         Swap zero extension arguments.
12487         (umaxhi3): Fix instruction class.
12488         PR target/7211
12489         (prefetch): Fix prefetch instructions.
12490         PR target/7238
12491         (pkwb): Fix output constraint.
12492
12493 2002-10-14  Alexandre Oliva  <aoliva@redhat.com>
12494
12495         * config/mips/mips.c (print_operand): Increase buffer size for
12496         real numbers.
12497
12498 2002-10-14  Richard Henderson  <rth@redhat.com>
12499
12500         PR opt/8165
12501         * gcse.c (adjust_libcall_notes): Revert last change.
12502         * simplify-rtx.c (simplify_replace_rtx): Handle LO_SUM.
12503
12504 2002-10-14  Andrew Haley  <aph@redhat.com>
12505
12506         * tree-inline.c (remap_block): All local class initialization
12507         flags go in the outermost scope.
12508         (expand_call_inline): Call java_inlining_map_static_initializers.
12509         (expand_call_inline): Call java_inlining_merge_static_initializers.
12510         * java/lang.c (merge_init_test_initialization): New.
12511         (java_inlining_merge_static_initializers): New.
12512         (inline_init_test_initialization): New.
12513         (java_inlining_map_static_initializers): New.
12514
12515         * tree-inline.c (expand_call_inline): Convert retvar to expected
12516         type.
12517
12518 2002-10-14  Graham Stott  <graham.stott@btinternet.com>
12519
12520         * stmt.c (decl_conflicts_with_clobbers_p): Add REG_P check.
12521
12522 2002-10-14  Aldy Hernandez  <aldyh@redhat.com>
12523
12524         * stmt.c: Fix typo in comment.
12525
12526 Mon Oct 14 11:35:49 2002  J"orn Rennecke <joern.rennecke@superh.com>
12527
12528         * c-common.c (c_common_type_for_mode): Add V2HImode case.
12529         * tree.c (build_common_tree_nodes_2): Initialize
12530         unsigned_V2HI_type_node and V2HI_type_node.
12531         * tree.h (enum tree_index): Add TI_UV2HI_TYPE and TI_V2HI_TYPE.
12532         (unsigned_V2HI_type_node, V2HI_type_node): Define.
12533
12534 2002-10-14  Jakub Jelinek  <jakub@redhat.com>
12535
12536         * config/i386/i386.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP):
12537         Handle TARGET_64BIT.
12538
12539 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
12540
12541         * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
12542         * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
12543         (MULTILIB_DIRNAMES): Remove long32.
12544         (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
12545         (MULTILIB_REDUNDANT_DIRS): Remove.
12546
12547 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
12548
12549         * doc/tm.texi (DRIVER_SELF_SPECS): Document.
12550         * gcc.c (driver_self_specs): New variable.
12551         (do_self_spec): New function.
12552         (main): Use it to process driver_self_specs.
12553
12554 2002-10-13  Richard Henderson  <rth@redhat.com>
12555
12556         * config/i386/i386.c (ix86_function_ok_for_sibcall): Reject
12557         indirect sibcalls when regparm >= 3.
12558
12559         * config/i386/i386.c (sibcall_insn_operand): New.
12560         * config/i386/i386.h (PREDICATE_CODES): Update.
12561         * config/i386/i386-protos.h: Update.
12562         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
12563
12564         * rtl.c (shallow_copy_rtx): Use memcpy for the entire node.
12565
12566 2002-10-12  Roger Sayle  <roger@eyesopen.com>
12567
12568         * simplify-rtx.c (simplify_binary_operation) [ASHIFTRT]: Optimize
12569         arithmetic right shifts of ~0 during RTL simplifications.
12570
12571 2002-10-12  Neil Booth  <neil@daikokuya.co.uk>
12572
12573         PR preprocessor/7862
12574         PR preprocessor/8190
12575         * gcc.c (cpp_unique_options): Don't delete .d files.
12576         Remove stray whitespace.
12577
12578 2002-10-12  Naohiko Shimizu  <pshimizu@fa2.so-net.ne.jp>
12579
12580         * pdp11.h (ASM_OUTPUT_SKIP): Add preceding 0 for octal constant.
12581         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
12582         * pdp11.c (pdp11_output_function_prologue): 0%o -> %#o.
12583         (pdp11_output_function_epilogue, output_ascii): Likewise.
12584         (output_addr_const_pdp11): Likewise.
12585         * pdp11.md (movdi): Use offsetable memory for floating store.
12586         (lshrsi3, negsi2): Delete irrelevant comment.
12587
12588 2002-10-11  Andreas Bauer  <baueran@in.tum.de>
12589
12590         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
12591         indirect calls to be sibcall optimized.
12592         * config/i386/i386.md (sibcall_1): New.
12593         (call_1): Add no-sibcalls condition.
12594         (sibcall_value_1): New.
12595         (call_value_1): Add no-sibcalls condition.
12596
12597 2002-10-11  Eric Christopher  <echristo@redhat.com>
12598
12599        * output.h (default_valid_pointer_mode): Declare.
12600        * varasm.c (default_valid_pointer_mode): Define.
12601        * target-def.h (TARGET_VALID_POINTER_MODE): Use.
12602        * target.h: Ditto.
12603        * tree.c (build_pointer_type_for_mode): New function.
12604        (build_pointer_type): Use.
12605        (build_reference_type_for_mode): New function.
12606        (build_reference_type): Use.
12607        * tree.h: Declare new functions.
12608        * c-common.c (handle_mode_attribute): Use new functions, check
12609        for type.
12610        * stor-layout.c (layout_type): Depend on machine mode for
12611        REFERENCE_TYPE and POINTER_TYPE.
12612        * dwarf2out.c (simple_type_size_in_bits): Move upward in file.
12613        (modified_type_die): Use instead of PTR_SIZE for POINTER_TYPE
12614        and REFERENCE_TYPE.
12615        * config/mips/mips.c (mips_valid_pointer_mode): New function.
12616        (TARGET_VALID_POINTER_MODE): Use and define.
12617        * config/mips/mips-protos.h (mips_valid_pointer_mode): Declare.
12618
12619 2002-10-11  Geoffrey Keating  <geoffk@apple.com>
12620
12621         * cse.c (mention_regs): Set SUBREG_TICKED to the register number,
12622         not the address of the REG.
12623         (struct cse_reg_info): Make subreg_ticked unsigned.
12624
12625 2002-10-11  Janis Johnson  <janis187@us.ibm.com>
12626
12627         * doc/compat.texi: Add info about C++ libraries.
12628
12629 2002-10-11  Richard Henderson  <rth@redhat.com>
12630
12631         PR opt/8165
12632         * gcse.c (adjust_libcall_notes): Also adjust notes for INSN.
12633
12634 2002-10-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12635
12636         * cfganal.c (dfs_enumerate_from): Use PARAMS.
12637         * genautomata.c (output_insn_code_cases): Likewise.
12638         * real.c (real_format): Likewise.
12639         * tree.c (tree_size): Revise expressions using TREE_CODE_LENGTH to
12640         ensure value is promoted before doing subtraction.
12641
12642 Fri Oct 11 22:22:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
12643
12644         * calls.c (expand_call): Simplify noreturn call.
12645
12646         PR c/7344
12647         * cfgbuild.c (make_edges): Create edge cache when we do have
12648         large jumptable.
12649         * expr.c (do_tablejump): Note size of maximal jumptable.
12650         * function.c (prepare_function_start): Zero out size.
12651         * function.h (function): Add max_jumptable_ents.
12652
12653         * cfgcleanup.c (insn_match_p): Verify sibcall flag for calls to.
12654
12655 Fri Oct 11 12:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
12656
12657         * sh.md (movv8qi_i+2): For V8QI destinations, generate V4HI
12658         register for mperm_w operation.
12659
12660 Fri Oct 11 10:56:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
12661
12662         * emit-rtl.c (gen_lowpart_common): When asked to make a vector from
12663         an integer, use simplify_gen_subreg.
12664
12665 2002-10-10  Diego Novillo  <dnovillo@redhat.com>
12666
12667         * calls.c (flags_from_decl_or_type): Make extern.
12668         (ECF_*): Move ...
12669         * rtl.h (ECF_*): ... here.
12670         (flags_from_decl_or_type): Declare.
12671
12672 2002-10-10  Roger Sayle  <roger@eyesopen.com>
12673             Nathan Sidwell <nathan@codesourcery.com>
12674
12675         * fold-const.c (fold) [RSHIFT_EXPR]: Optimize arithmetic right
12676         shifts of the form -1 >> x.
12677
12678 Thu Oct 10 16:52:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
12679
12680         * cfgcleanup.c (insn_match_p): Verify sibcall flag for calls to.
12681
12682 2002-10-10  Aldy Hernandez  <aldyh@redhat.com>
12683
12684         * extend.texi (Vector Extensions): Remove comment about single
12685         element vectors.
12686
12687 2002-10-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12688
12689         * fold-const.c (size_htab_hash): Use htab_hash_pointer.
12690         * function.c (insns_for_mem_hash): Likewise.
12691         * varasm.c (STRHASH): Likewise.
12692
12693 2002-10-10  Stuart Hastings  <stuart@apple.com>
12694
12695         * cse.c (struct cse_reg_info): Add subreg_ticked.
12696         (SUBREG_TICKED): New.
12697         (get_cse_reg_info): Initialize SUBREG_TICKED.
12698         (mention_regs): Use it.
12699         (invalidate): Set SUBREG_TICKED.
12700         (invalidate_for_call): Likewise.
12701         (addr_affects_sp_p): Likewise.
12702
12703 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
12704
12705         * config/i386/i386.md (tls_local_dynamic_base): Put pic reg
12706         into proper operand.
12707
12708 2002-10-10  Denis Chertykov  <denisc@overta.ru>
12709
12710         * config/ip2k/ip2k.c (function_epilogue): Optimize stack
12711         deallocation.
12712         * config/ip2k/libgcc.S: Combine routines used by function
12713         epilogue.
12714
12715 2002-10-10  Jim Wilson  <wilson@redhat.com>
12716
12717         * cse.c (fold_rtx): Don't perform associative optimization for DIV and
12718         UDIV.
12719
12720 2002-10-10  David Edelsohn  <edelsohn@gnu.org>
12721
12722         * config/rs6000/aix52.h: New file.
12723         * config/rs6000/t-aix52: New File.
12724         * config.gcc (rs6000-ibm-aix5.1.*): New entry.
12725         (rs6000-ibm-aix[56789].*): Default to AIX 5.2.
12726
12727 Thu Oct 10 19:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
12728
12729         PR target/5610
12730         * invoke.texi (-msse-math): Kill
12731         (-msse): Add note to mfpmath=sse.
12732
12733 Thu Oct 10 17:08:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
12734
12735         PR target/7723
12736         * i386.c (ix86_expand_vector_move): Do not generate const0->mem moves.
12737
12738 2002-10-10  Neil Booth  <neil@daikokuya.co.uk>
12739
12740         PR preprocessor/8179
12741         * gcc.c (cpp_options): Add {ansi}, move %{m*} to same location
12742         as cc1_options.
12743         (default_compilers): Pass debug options when preprocessing
12744         stdin.
12745
12746 2002-10-06  Richard Henderson  <rth@redhat.com>
12747
12748         * toplev.c (rest_of_compilation): Revert opt/2960 change.
12749
12750 Wed Oct  9 21:18:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
12751
12752         * i386.c (*_cost): Add branch costs.
12753         (override_options): set ix86_branch_cost.
12754         (ix86_expand_int_movcc): Use BRANCH_COST.
12755         * i386.h (costs): Add branch_cost.
12756
12757 2002-10-09  Zack Weinberg  <zack@codesourcery.com>
12758
12759         PR c/7353
12760         * c-decl.c (start_decl): Unconditionally issue error for
12761         'typedef foo = bar'.
12762         (finish_decl): Remove special case for TYPE_DECL with initializer.
12763
12764         * doc/extend.texi: Delete "Naming Types" section.  Change all
12765         cross-references to that section to refer to "Typeof" instead.
12766         Add the useful safe-max()-macro example from "Naming Types" to
12767         "Typeof", rewritten using that extension.  Add some compatibility
12768         notes to "Typeof."
12769
12770 2002-10-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12771
12772         * loop.c: Revert 2002-08-15 change.
12773         (LOOP_REGNO_NREGS): Ensure type is int.
12774
12775 2002-10-09  David Edelsohn  <edelsohn@gnu.org>
12776
12777         * config/rs6000/rs6000.md (extenddftf2): Change to define_insn
12778         which copies first FPR and clears second.
12779         (extendsftf2): Same.
12780         (floatditf2): Fix typo.
12781         (floatsitf2): Same.
12782         (fix_trunctfdi2): Same.
12783         (fix_trunctfsi2): Same.
12784
12785 2002-10-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12786
12787         * conflict.c (arc_hash): Change return type to hashval_t.
12788         * cselib.c (get_value_hash): Likewise.
12789         * genautomata.c (automaton_decl_hash, insn_decl_hash, decl_hash,
12790         state_hash, automata_list_hash): Likewise.
12791         * read-rtl.c (def_hash): Likewise.
12792         * tree.c (type_hash_hash): Likewise.
12793
12794 2002-10-08  Aldy Hernandez  <aldyh@redhat.com>
12795
12796         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Call
12797         prologue_epilogue_contains instead of using REG_MAYBE_DEAD notes.
12798
12799 Wed Oct  9 15:54:49 2002  J"orn Rennecke <joern.rennecke@superh.com>
12800
12801         * sh.md (ffssi2): Fix emitted code.
12802
12803 2002-10-09  Ulrich Weigand  <uweigand@de.ibm.com>
12804
12805         * cse.c (insn_live_p): Pass insn pattern, not full insn
12806         to may_trap_p.
12807
12808 2002-10-09  Neil Booth  <neil@daikokuya.co.uk>
12809
12810         * cppmacro.c (paste_tokens): Only allow / to paste with =.
12811
12812 2002-10-09  David Edelsohn  <edelsohn@gnu.org>
12813
12814         * config/rs6000/rs6000.md (movdf splitter): Use gen_int_mode on
12815         64-bit hosts.
12816         (movtf_internal): Reference correct displacement for second value
12817         in memory.
12818         (movtf splitter): Correct generation of constants in 64-bit mode.
12819
12820 2002-10-09  Alan Modra  <amodra@bigpond.net.au>
12821
12822         * libgcc2.c (__floatdisf): Properly cure double rounding.
12823
12824 2002-10-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12825
12826         * c-common.c (cb_register_builtins): Define __WCHAR_MAX__.
12827         * doc/cpp.texi (Common Predefined Macros): Document.
12828
12829 2002-10-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12830
12831         PR doc/7484
12832         * doc/invoke.texi (Option Summary): List
12833         -Wmissing-declarations as a C only option.
12834
12835 2002-10-08  Roger Sayle  <roger@eyesopen.com>
12836
12837         * fold-const.c (fold) [LROTATE_EXPR, RROTATE_EXPR]: Optimize
12838         left and right rotates of ~0, i.e. integer_all_onesp (arg0).
12839         [LSHIFT_EXPR, RSHIFT_EXPR]: Optimize shifts and rotates of zero.
12840
12841 Tue Oct  8 01:24:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
12842
12843         * i386.c (x86_sse_partial_reg_dependency, x86_sse_partial_regs,
12844         x86_sse_typeless_stores, x86_sse_load0_by_pxor): New global
12845         variables.
12846         (safe_vector_operand): Update sse_clrv4sf call.
12847         (ix86_expand_buildin): Likewise
12848         * i386.h (x86_sse_partial_reg_dependency, x86_sse_partial_regs,
12849         x86_sse_typeless_stores, x86_sse_load0_by_pxor): Declare.
12850         (TARGET_SSE_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REGS,
12851         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_TYPELESS_LOAD0): New
12852         macros.
12853         * i386.md (movsf*, movdf*, movti, movv4sf, movv2df, movv16qi, movv8hi,
12854         movv4si):  Obey the new flags.
12855         (floatsi2sf, floatdi2sf, truncatedf2sf): Emit extra load of 0 to avoid
12856         reformating penalty.
12857         (anddf, cmov patterns): Avoid reformating by first converting.
12858         (sse_cvtsd2ss): Fix predicate.
12859         (sse2_clrti): Fix mode,
12860         (sse_clrv4sf): Avoid unspec.
12861
12862 2002-10-08  Jakub Jelinek  <jakub@redhat.com>
12863
12864         * config/sparc/t-linux64 (MULTILIB_OPTIONS): Remove
12865         mno-app-regs|mcmodel=medany.
12866         (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES): Remove alt.
12867         (MULTILIB_EXCEPTIONS, MULTILIB_EXCLUSIONS, MULTILIB_MATCHES): Remove.
12868         (CRTSTUFF_T_CFLAGS): Define.
12869
12870 2002-10-08  Roger Sayle  <roger@eyesopen.com>
12871
12872         PR target/8087
12873         * simplify-rtx.c (avoid_constant_pool_reference):  Allow constant
12874         pool references that are constructed using LO_SUM.
12875
12876 2002-10-08  Nathan Sidwell  <nathan@codesourcery.com>
12877
12878         * c-opts.c (c_common_decode_option): Add warn_strict_aliasing to
12879         -Wall.
12880         * c-typeck.c (build_c_cast): Use warn_strict_aliasing, tweak
12881         message.
12882         * flags.h (warn_strict_aliasing): Declare.
12883         * toplev.c (warn_strict_aliasing): Define.
12884         (lang_independent_options): Add it.
12885         * doc/invoke.texi (-Wstrict-aliasing): Document it.
12886
12887 2002-10-08  Zack Weinberg  <zack@codesourcery.com>
12888
12889         * system.h (GCCBUGURL): Delete.
12890         * version.c (bug_report_url): New.  Add commentary about
12891         modifying both these strings in modified distributions.
12892         * version.h: Declare bug_report_url.
12893
12894         * diagnostic.c, gcc.c, gcov.c: Globally replace GCCBUGURL with
12895         bug_report_url.
12896
12897 2002-10-08  Nick Clifton  <nickc@redhat.com>
12898
12899         * config/rs6000/spe.h (__ev_set_acc_u64): Use __ev_create_u64 to
12900         convert uint64_t into __ev64_opaque__.
12901         (__ev_set_acc_s64): Likewise, but using signed types.
12902
12903 2002-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
12904
12905         * config/s390/s390.md ("*doloop_si_long"): Add missing operand.
12906         ("*doloop_di_long"): Likewise.
12907
12908 Tue Oct  8 16:50:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
12909
12910         * print-rtl.c (print_rtx): Increase buffer size for real numbers.
12911
12912 2002-10-08  Richard Sandiford  <rsandifo@redhat.com>
12913
12914         * config/mips/mips.md (define_attr cpu): Add r4111.
12915
12916 2002-10-08  Anthony Green  <green@redhat.com>
12917
12918         * bitmap.c (bitmap_equal_p): Clear all bitmap_head fields.
12919
12920 2002-10-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
12921
12922         * config/c4x/c4x.c (c4x_print_operand): Enlarge buffer
12923         for REAL_VALUE_TO_DECIMAL output.
12924
12925 2002-10-07  Richard Henderson  <rth@redhat.com>
12926
12927         * cse.c (fixed_base_plus_p): Turn FIXED_BASE_PLUS_P into a
12928         function; cleanup PLUS case by using recursion.  Update all users.
12929         (NONZERO_BASE_PLUS_P): Remove.
12930         (find_comparison_args): Use rtx_addr_can_trap_p instead.
12931         (fold_rtx): Use nonzero_address_p.
12932         * rtl.h (nonzero_address_p): Declare.
12933         * rtlanal.c (rtx_varies_p): Handle ADDRESSOF.
12934         (rtx_addr_can_trap_p): Likewise.
12935         (nonzero_address_p): New.
12936         * simplify-rtx.c (NONZERO_BASE_PLUS_P): Remove.
12937         (simplify_relational_operation): Use nonzero_address_p.
12938
12939 2002-10-07  David Edelsohn  <edelsohn@gnu.org>
12940
12941         * config/rs6000/rs6000.c (rs6000_override_options): Set
12942         real_format_for_mode for IBM extended format, if enabled.
12943         (easy_fp_constant): Add TFmode.
12944         (rs6000_legitimize_address): Add TFmode.
12945         (rs6000_legitimate_address): Same.
12946         (function_arg_advance): TFmode uses two FPRs.
12947         (rs6000_emit_prologue): Fix warning.
12948         (rs6000_output_function_epilogue): Add TFmode.
12949         (output_toc): Add TFmode.
12950         * rs6000.h (SLOW_UNALIGNED_ACCESS): Add TFmode.
12951         (LEGITIMATE_OFFSET_ADDRESS_P): Add TFmode.
12952         * rs6000.md (movtf splitter): Load TFmode constant.
12953
12954 2002-10-07  Dale Johannesen  <dalej@apple.com>
12955
12956         * rtl.h:  Add NOTE_PRECONDITIONED.
12957         * unroll.c:  Set it.
12958         * loop.c:  Set loop_info->preconditioned from it.
12959         * doloop.c:  Permit doloop treatment when loop_info->preconditoned.
12960
12961 2002-10-07  Richard Henderson  <rth@redhat.com>
12962
12963         * config/i960/i960.c (i960_setup_incoming_varargs): Create a
12964         new rtx for comparing the argument pointer against zero.
12965         (i960_va_start): Similarly.
12966
12967 2002-10-07  Richard Henderson  <rth@redhat.com>
12968
12969         * config/i960/i960.md (*): Use TFmode, not XFmode.
12970         * config/i960/i960.c (*): Likewise.
12971         (i960_arg_size_and_align): Remove XFmode alignment hack.
12972         (i960_round_align): Merge code from ROUND_TYPE_ALIGN.
12973         * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Use 128, not 96.
12974         (MAX_LONG_DOUBLE_TYPE_SIZE): Likewise.
12975         (DATA_ALIGNMENT, ROUND_TYPE_SIZE): Remove.
12976
12977 2002-10-07  Richard Henderson  <rth@redhat.com>
12978
12979         * config/fp-bit.c (EXTENDED_FLOAT_STUBS): Flush out all XF/TFmode
12980         entry points; use void return value and argument list.
12981
12982 2002-10-06  Andreas Bauer  <baueran@in.tum.de>
12983
12984         * calls.c (expand_call): Fix function-is-volatile check.
12985
12986 2002-10-05  Naohiko Shimizu <nshimizu@keyaki.cc.u-tokai.ac.jp>
12987
12988         * t-pdp11: Add MULTILIB support for msoft-float.
12989         * pdp11.h (LEGITIMATE_CONSTANT_P): Fix soft-float case.
12990
12991         * t-pdp11: Add LIB2FUNCS_EXTRA.
12992         * pdp11.c (pdp11_output_function_prologue): Restrict offset to 16bit,
12993         add preceding 0 to the octal constant, rename 'fp' to 'r5', rename
12994         'fldd' to 'ldd', rename 'fstd' to 'std'.
12995         (pdp11_output_function_epilogue): Likewise.
12996         (output_move_quad): Make the comment gas compatible.
12997         (output_ascii): Add preceding 0 to the octal constant.
12998         (print_operand_address): Add pre_modify, post_modify.
12999         (output_addr_const_pdp11): Add preceding 0 to the octal constant.
13000         * pdp11.h (GO_IF_LEGITIMATE_ADDRESS) : Add 'movb' pre_modify case
13001         with the indication of Paul Koning.
13002         (PRINT_OPERAND): Fix floating constant.
13003         * pdp11.md (movdi): Restrict matching pattern.
13004         (movqi): Generalize the matching pattern.
13005         (movdf): Restrict matching pattern.
13006         (zero_extendqihi2): Change constant representation.
13007         (floatsidf2): Fix wrong operands.
13008         (addqi3): Fix wrong instruction name.
13009         (subqi3): Fix wrong instruction name.
13010         (andsi3, andhi3, andqi3): Simplify and fix to use 'bic'.
13011         (xorsi3): Fix wrong insn.
13012         (one_cmplqi2): Add two operand pattern.
13013         (lsrsi3): New.
13014         (negsi2): New.
13015         (call): Add register indirect case.
13016         (mod): Fix wrong subreg.
13017
13018 2002-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
13019             Volker Reichelt <reichelt@igpm.rwth-aachen.de>
13020
13021         PR c/7411
13022         * expr.c (expand_expr) [PLUS]: Simplify after the operands
13023         have been expanded in EXPAND_NORMAL mode.
13024
13025 2002-10-06  Richard Henderson  <rth@redhat.com>
13026
13027         * config/rs6000/rs6000.md (load_toc_v4_PIC_2): Fix base constraint.
13028
13029 2002-10-06  Richard Henderson  <rth@redhat.com>
13030
13031         PR optimization/2960
13032         * toplev.c (rest_of_compilation): Don't copy_loop_headers if
13033         optimize_size.
13034
13035 2002-10-06  Alexandre Oliva  <aoliva@redhat.com>
13036
13037         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Override
13038         previously definitions.
13039
13040 2002-10-06  Frank Ch. Eigler  <fche@redhat.com>
13041
13042         * cppinit.c (init_standard_includes, parse_option): Use strncmp.
13043         * c-opts.c (find_opt): Similarly.
13044
13045 Sat Oct  5 22:48:06 CEST 2002  Jan Hubicka  <jh@suse.cz>
13046
13047         * athlon.md: rewrite to DFA.
13048         * i386 (ix86_adjust_cost): Drop memory latency code.
13049         (ia32_use_dfa_pipeline_interface): Return true for Athlon.
13050
13051 2002-10-05  Jakub Jelinek  <jakub@redhat.com>
13052
13053         * gcc.c (set_multilib_dir): Don't access *end.
13054         Use memcpy instead of strncpy.  Don't write beyond malloced buffer.
13055         (print_multilib_info): Don't show paths starting with ".:".
13056         * genmultilib: Add new option, "yes" if multilibs are enabled.
13057         Update comments.  If multilibs not enabled, print .:${osdirout}
13058         for each directory.  If multilibs are enabled, always print
13059         ${dirout}:${osdirout}, even if the two are the same.
13060         * Makefile.in (s-mlib): Pass @enable_multilib@ to genmultilib.
13061         Pass all MULTILIB_* variables to genmultilib even if
13062         --disable-multilib but MULTILIB_OSDIRNAMES is not empty.
13063
13064 2002-10-04  Zack Weinberg  <zack@codesourcery.com>
13065
13066         * gcc.c (process_command): Set .validated for -pipe.  Correct
13067         grammar in comment.
13068
13069 2002-10-04  Bruce Korb  <bkorb@gnu.org>
13070
13071         * fixinc/inclhack.def(hpux11_abs):  use format fix
13072         * fixinc/fixincl.x: regenerate
13073         * fixinc/tests/base/stdlib.h: accommodate new fix test
13074
13075 Sat Oct  5 19:42:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
13076
13077         * c-common.c (cb_register_builtins):  Use really_no_inline.
13078
13079 2002-10-04  David Edelsohn  <edelsohn@gnu.org>
13080
13081         * unroll.c (copy_loop_body): Remove REG_EQUAL note attached to
13082         copied instruction if the note is not loop invariant.
13083
13084 2002-10-04  Loren J. Rittle  <ljrittle@acm.org>
13085
13086         * gcc/ginclude/stddef.h: Support the FreeBSD 5 typedef system.
13087
13088 2002-10-04  Steve Ellcey  <sje@cup.hp.com>
13089
13090         * doc/invoke.texi (HPPA):  Add -mlinker-opt, -mgnu-ld,
13091         and -mhp-ld options to list of options.  Add -mgnu-ld
13092         and -mhp-ld option descriptions.
13093
13094 2002-10-04  Steve Ellcey  <sje@cup.hp.com>
13095
13096         * fixinc/inclhack.def (hpux11_abs):  New.
13097         (stdio_va_list): change __va_list__ to __gnuc_va_list.
13098         * fixinc/fixincl.x: Rebuild.
13099
13100 2002-10-04  Roger Sayle  <roger@eyesopen.com>
13101
13102         * config/i386/i386.h (processor_costs): Add new fields fadd,
13103         fmul, fdiv, fabs, fchs and fsqrt to costs structure.
13104         (RTX_COSTS): Use these fields to determine the RTX costs
13105         of floating point addition/subtraction, multiplication,
13106         division, fabs, negation and square root respectively.
13107         * config/i386/i386.c (size_cost): Provide instruction sizes
13108         for these new fields.
13109         (i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
13110         k6_cost, athlon_cost, pentium4_cost): Provide typical cycle
13111         counts for these new fields for all x86 processor variants.
13112
13113 2002-10-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13114
13115         * mips.c (mips_const_double_ok): Delete unused variable.
13116
13117         * gengtype.c (rtx_next): Change type to int.
13118
13119 2002-10-04  Andreas Jaeger  <aj@suse.de>
13120
13121         * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Fix value.
13122
13123 2002-10-04  Richard Henderson  <rth@redhat.com>
13124
13125         * real.h (SIGNIFICAND_BITS): Add one more word.
13126         (CONST_DOUBLE_FORMAT): Accomodate 6 words.
13127         * real.c (times_pten): New.
13128         (real_to_decimal, real_from_string): Use it.
13129         (sticky_rshift_significand): Use & to find modulus.
13130         (rshift_significand, lshift_significand): Likewise.
13131         (do_divide): Apply sticky bit after normalization.
13132         (real_to_decimal, real_to_hexadecimal): Fix sign of Inf and NaN.
13133
13134 2002-10-03  Andreas Bauer  <baueran@in.tum.de>
13135
13136         * doc/tm.texi (FUNCTION_OK_FOR_SIBCALL): Remove.
13137         (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
13138
13139 2002-10-03  Andreas Jaeger  <aj@suse.de>
13140
13141         * gengtype.c (adjust_field_rtx_def): Cast variables of type size_t
13142         to unsigned long, adjust printf format string.
13143         (output_mangled_typename): Likewise.
13144
13145 2002-10-03  Jason Thorpe  <thorpej@wasabisystems.com>
13146
13147         * config/vax/vax.c (vax_output_function_prologue): Use asm_fprintf.
13148         * config/vax/vax.h (VAX_FUNCTION_PROFILER_NAME): New.
13149         (FUNCTION_PROFILER): Rewrite to use ASM_GENERATE_INTERNAL_LABEL,
13150         assemble_name, asm_fprintf, and VAX_FUNCTION_PROFILER_NAME.
13151         (ASM_OUTPUT_MI_THUNK): Use asm_fprintf instead of REGISTER_PREFIX.
13152         (PRINT_OPERAND_PUNCT_VALID_P): Fix comment.
13153         * config/vax/elf.h (FUNCTION_PROFILER): Remove.
13154         (VAX_FUNCTION_PROFILER_NAME): Redefine as "__mcount".
13155
13156 2002-10-03  Mark Mitchell  <mark@codesourcery.com>
13157
13158         * doc/invoke.texi (-Wabi): Document mangling bug.
13159
13160 2002-10-04  Alan Modra  <amodra@bigpond.net.au>
13161
13162         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use a
13163         name for the tbtab label that depends on the function asm name.
13164         Don't output tbtab label unless optional_tbtab.
13165         (output_mi_thunk): Formatting.
13166
13167 2002-10-03  Richard Henderson  <rth@redhat.com>
13168
13169         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Move additional code ...
13170         * config/m68k/m68k.c (override_options): ... here.
13171         * config/m68k/m68kelf.h (OVERRIDE_OPTIONS): Remove.
13172         * config/m68k/m68kv4.h (OVERRIDE_OPTIONS): Remove.
13173         * config/m68k/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
13174         * config/m68k/netbsd-elf.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
13175
13176 2002-10-03  Richard Henderson  <rth@redhat.com>
13177
13178         * real.h (struct real_value): Use ENUM_BITFIELD.
13179
13180 2002-10-03  Richard Henderson  <rth@redhat.com>
13181
13182         * config/i960/i960.md (call, call_value): Use emit_call_insn.
13183
13184 2002-10-03  Steve Ellcey  <sje@cup.hp.com>
13185
13186         * config/pa/pa64-hpux.h (INIT_ENVIRONMENT): New.
13187
13188 2002-10-03  Steve Ellcey  <sje@cup.hp.com>
13189
13190         * config.gcc (hppa*64*-*-hpux11*): Check gnu_ld.
13191         * config/pa/pa.h (MASK_GNU_LD): New.
13192         (TARGET_GNU_LD): New.
13193         * config/pa/pa64-hpux.h (LINK_SPEC): Set based
13194         on gnu-ld and MASK_GNU_LD.
13195         (SUBTARGET_SWITCHES): New gnu-ld & hp-ld flags.
13196
13197 Thu Oct  3 23:35:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
13198
13199         * i386.c (athlon_cost): Fix the move costs.
13200
13201 Thu Oct  3 23:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
13202
13203         * final.c (final): Use symbol name as function name for profiling.
13204         * profile.c (get_exec_counts): Likewise.
13205         (branch_prob): Likewise.
13206
13207 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
13208
13209         * longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
13210
13211 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
13212
13213         * gcc.c (print_multi_os_directory): New variable.
13214         (option_map): Support --print-multi-os-directory.
13215         (struct prefix_list): Add os_multilib field.
13216         (multilib_os_dir): New variable.
13217         (static_specs): Add multilib_options.
13218         (find_a_file): Add multilib argument.  Search in GCC or OS multilib
13219         subdirs if nonzero.
13220         (read_specs, execute): Update callers.
13221         (find_file): Likewise.  Don't prefix name with multilib_dir, instead
13222         pass 1 as multilib option.
13223         (display_help): Include --print-multi-os-directory.
13224         (add_prefix): Add os_multilib argument.  Initialize pl->os_multilib.
13225         (process_command): Update callers.  Handle --print-multi-os-directory.
13226         (do_spec_1) ['D']: Use multilib_os_directory if pl->os_multilib is
13227         set.
13228         (main): Update find_a_file and add_prefix callers.
13229         Handle print_multi_os_directory.
13230         (struct mdswitchstr): New.
13231         (mdswitches, n_mdswitches): New variables.
13232         (used_arg): Add MULTILIB_DEFAULT switches too if they are not
13233         present on the command line nor their mutually incompatible
13234         switches.
13235         (default_arg): Optimize.
13236         (set_multilib_dir): Compute multilib_os_dir.  Initialize mdswitches
13237         array.
13238         (print_multilib_info): Only print GCC multilib dir name, not OS
13239         multilib dirname.
13240         * genmultilib: Add osdirnames parameter.  Output multilib_options
13241         variable.  If osdirnames is specified, output dirnames as
13242         dirname:osdirname.
13243         * mklibgcc.in: Use MULTILIB_OSDIRNAMES, --print-multi-directory
13244         and --print-multi-os-directory instead of SHLIB_SLIBDIR_SUFFIXES
13245         to compute libgcc_s soname and install path.
13246         * Makefile.in (libgcc.mk): Pass MULTILIB_OSDIRNAMES instead of
13247         SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
13248         (s_mlib): Pass MULTILIB_OSDIRNAMES or nothing as last genmultilib
13249         argument.
13250
13251         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Set.
13252         (SHLIB_SLIBDIR_SUFFIXES): Remove.
13253         * config/sparc/linux64.h (STARTFILE_SPEC32, STARTFILE_SPEC64,
13254         ENDFILE_SPEC32, ENDFILE_SPEC64, ENDFILE_COMMON): Remove.
13255         (STARTFILE_SPEC, ENDFILE_SPEC): Don't distinguish between -m32
13256         and -m64.
13257         * config/sparc/t-sol2-64 (MULTILIB_OSDIRNAMES): Set.
13258         (SHLIB_SLIBDIR_SUFFIXES): Remove.
13259         * config/sparc/sol2-bi.h (STARTFILE_ARCH64_SPEC): Remove.
13260         (STARTFILE_ARCH_SPEC): Remove.
13261         * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Set.
13262         (SHLIB_SLIBDIR_SUFFIXES): Remove.
13263         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
13264         * config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Set.
13265         (SHLIB_SLIBDIR_SUFFIXES): Remove.
13266
13267 Thu Oct  3 21:42:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
13268
13269         * predict.c (choose_function_section): Avoid choice for linkonce functions.
13270
13271 Thu Oct  3 15:15:00 CEST 2002  Jan Hubicka  <jh@suse.cz>
13272
13273         * i386.md (lea to mul peep2): Fix condition.
13274
13275 2002-10-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13276
13277         * pa-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete macro.
13278         * pa32-linux.h (FUNCTION_OK_FOR_SIBCALL): Define.
13279
13280 2002-10-02  David Mosberger-Tang  <David.Mosberger@acm.org>
13281
13282         * unwind.h (_Unwind_GetTextRelBase): Mark _C argument with
13283         attribute "unused".
13284
13285         * config/t-libunwind: Mention unwind-sjlj.c.
13286         * unwind-libunwind.c: Change #ifdef __USING_LIBUNWIND_EXCEPTIONS__
13287         to #ifndef __USING_SJLJ_EXCEPTIONS__.
13288
13289         * configure.in: Move sjlj-exceptions and --enable-libunwind-exceptions
13290         before inclusion of config.gcc, but after configuring the compiler etc.
13291         Determine default value for --enable-libunwind-exceptions based on
13292         whether the host has a libunwind library (not guaranteed to be correct,
13293         but it's a reasonable first guess and can always be overridden with an
13294         explicit --enable/disable-libunwind-exceptions.
13295         * config.gcc: For target ia64*-*-linux*, mention t-libunwind as a
13296         tmake_file when $use_libunwind_exceptions is enabled.
13297         * Makefile.in: Update comment: LIB2ADDEH is updated not just by
13298         ia64 (e.g., config/t-linux also updates it).
13299         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS]: Mention -lunwind
13300         along with the shared version of libgcc since the latter requires
13301         the former.
13302         * unwind-libunwind.c: New file.
13303         * config/t-libunwind: Ditto.
13304
13305 2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>
13306
13307         * config.gcc: Remove support for vax-*-vms*.
13308         * config/vax/vms.h: Remove.
13309         * config/vax/xm-vms.h: Remove.
13310         * config/vax/vax-protos.h: Remove VMS-specific code.
13311         * config/vax/vax.c: Remove VMS-specific code.
13312
13313 2002-10-02  Richard Henderson  <rth@redhat.com>
13314
13315         PR opt/7124
13316         * config/i386/i386.c (ix86_register_move_cost): Increase cost
13317         for secondary_memory_needed pairs.
13318
13319 2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>
13320
13321         * doc/vms.texi: Blow away false include file section.
13322
13323 2002-10-02  Roger Sayle  <roger@eyesopen.com>
13324
13325         PR optimization/6627
13326         * toplev.c (force_align_functions_log): New global variable.
13327         * flags.h (force_align_functions_log): Add extern prototype.
13328         * varasm.c (assemble_start_function): Use it to force minimum
13329         function alignment.
13330         * config/i386/i386.h (FUNCTION_BOUNDARY): Set the correct
13331         minimum function alignment to one byte.
13332         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Store the virtual bit in
13333         the least significant bit of vtable member function pointers.
13334         * tree.h (enum ptrmemfunc_vbit_where_t): Move definition to
13335         here from cp/cp-tree.h.
13336
13337 Wed Oct  2 17:01:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
13338
13339         * i386.c (print_operand_address): Use RIP addressing for offsetted
13340         label refs too.
13341
13342 2002-09-30  David S. Miller  <davem@redhat.com>
13343
13344         PR middle-end/7151
13345         * config/sparc/sparc.md (movdi_insn_sp32_v9): Accept 'e' regs.
13346         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
13347
13348 2002-10-01  Andreas Bauer  <baueran@in.tum.de>
13349
13350         * calls.c (expand_call): Remove the `no indirect check'
13351         for sibcall optimization; use function_ok_for_sibcall
13352         target hook; refine check for `function is volatile'.
13353         (FUNCTION_OK_FOR_SIBCALL): Remove the redefinition.
13354         * hooks.c (hook_tree_tree_bool_false): New.
13355         * hooks.h (hook_tree_tree_bool_false): Declare.
13356         * target-def.h (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
13357         (TARGET_INITIALIZER): Add it.
13358         * target.h (struct gcc_target): Add function_ok_for_sibcall.
13359         * config/alpha/alpha.c: (alpha_function_ok_for_sibcall): New.
13360         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13361         * config/alpha/alpha.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13362         * config/arm/arm-protos.h: (arm_function_ok_for_sibcall):
13363         Remove function declaration.
13364         * config/arm/arm.c: (arm_function_ok_for_sibcall): Make
13365         function static and accept another argument of type `tree'.
13366         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13367         * config/arm/arm.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13368         * config/frv/frv.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13369         * config/i386/i386.c: (ix86_function_ok_for_sibcall): New.
13370         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13371         * config/i386/i386.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13372         * config/pa/pa-linux.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13373         (TARGET_HAS_STUBS_AND_ELF_SECTIONS): New definition.
13374         * config/pa/pa.c: (pa_function_ok_for_sibcall): New.
13375         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13376         * config/pa/pa.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13377         * config/rs6000/rs6000-protos.h: (function_ok_for_sibcall):
13378         Remove function declaration.
13379         * config/rs6000/rs6000.c: (rs6000_function_ok_for_sibcall):
13380         Rename function_ok_for_sibcall to rs6000_function_ok_for_sibcall;
13381         rename first argument to `decl'; accept another argument
13382         of type `tree'; make static.
13383         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13384         * config/rs6000/rs6000.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13385         * config/sh/sh.c: (sh_function_ok_for_sibcall): New.
13386         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13387         * config/sh/sh.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13388         * config/sparc/sparc.c: (sparc_function_ok_for_sibcall): New.
13389         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13390         * config/sparc/sparc.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13391         * config/xtensa/xtensa.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13392
13393 2002-10-01  Roger Sayle  <roger@eyesopen.com>
13394
13395         * unroll.c (loop_iterations): Revert 2002-09-08 change.
13396
13397 2002-10-01  Richard Henderson  <rth@redhat.com>
13398
13399         * real.c (real_to_decimal): Crop trailing zeros for DIGITS < 0.
13400         (real_to_hexadecimal): Likewise.
13401         * print-rtl.c (print_rtx): If we are linked with real.c, don't
13402         dump the XWINT fields of a floating point CONST_DOUBLE.
13403
13404 2002-10-01  Jason Thorpe  <thorpej@wasabisystems.com>
13405
13406         * config/vax/elf.h (FUNCTION_PROFILER): Fix __mcount call.
13407
13408 2002-10-01  Richard Henderson  <rth@redhat.com>
13409
13410         * calls.c (precompute_register_parameters): Force non-legitimate
13411         constants into pseudos.
13412
13413 2002-10-01  Nick Clifton  <nickc@redhat.com>
13414
13415         * config/rs6000/spe.md (spe_evrlwi): Add missing third operand
13416         to assembler template.
13417
13418 2002-10-01  Richard Henderson  <rth@redhat.com>
13419
13420         * dwarf2out.c (loc_descriptor_from_tree): Relax requirement
13421         for TLS debug info to !DECL_EXTERNAL.
13422
13423 2002-10-01  Matt Thomas  <matt@3am-software.com>
13424             Jason Thorpe  <thorpej@wasabisystems.com>
13425
13426         * config.gcc (vax-*-netbsdelf*): Enable configuration.
13427         * config/elfos.h (PCC_BITFIELD_TYPE_MATTERS): Define only
13428         if not already defined.
13429         * config/vax/elf.h: New file.
13430         * config/vax/netbsd-elf.h: New file.
13431         * config/vax/vax.c: Include "debug.h".
13432         (vax_output_function_prologue): Add dwarf2 support.  Use
13433         MAIN_NAME_P when checking for VMS_TARGET stack adjust.
13434         * config/vax/vax.h (CONST_OK_FOR_LETTER_P): Add cases for
13435         'J' [0..63], 'K' [-128..127], 'L' [-32768..32767],
13436         'M' [0..255], 'N' [0..65535], and, 'O' [-63..-1].
13437         (VAX_ISTREAM_SYNC): Remove.
13438         (INITIALIZE_TRAMPOLINE): Use gen_sync_istream.
13439         (JUMP_TABLES_IN_TEXT_SECTION): Define.
13440         (ASM_OUTPUT_REG_POP): Use reg_names for the stack pointer.
13441         (ASM_OUTPUT_ADDR_VEC_ELT): Use ASM_GENERATE_INTERNAL_LABEL
13442         and assemble_name.
13443         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13444         (PRINT_OPERAND_PUNCT_VALID_P): Accept '|'.
13445         (PRINT_OPERAND): Output REGISTER_PREFIX for '|'.
13446         (INCOMING_RETURN_ADDR_RTX): Define.
13447         * config/vax/vax.md (VUNSPEC_BLOCKAGE)
13448         (VUNSPEC_SYNC_ISTREAM): Define.
13449         (blockage): Use VUNSPEC_BLOCKAGE.
13450         (sync_istream): New insn.
13451
13452 2002-10-01  Richard Henderson  <rth@redhat.com>
13453
13454         * config/vax/vax.md (call_pop, *call_pop, call_value_pop)
13455         (*call_value_pop, call, call_value): Add dwarf2 EH support.
13456         (*call): New insn.
13457
13458 2002-10-01  Nathan Sidwell  <nathan@codesourcery.com>
13459
13460         PR c/8083
13461         * c-typeck.c (build_c_cast): Warn about type punning which breaks
13462         type based aliasing.
13463
13464 2002-10-01  Mark Mitchell  <mark@codesourcery.com>
13465
13466         * stor-layout.c (update_alignment_for_field): New function.
13467         (place_union_field): Use it.
13468         (place_field): Likewise.
13469
13470 2002-10-01  Nathan Sidwell  <nathan@codesourcery.com>
13471
13472         PR other/8077
13473         * gcc.c (cc1_options): Add space on -auxbase-strip.
13474
13475 2002-10-01  Jim Wilson  <wilson@redhat.com>
13476
13477         * config/v850/v850.h (EPILOGUE_USES): Define.
13478
13479 2002-09-30  Andrew Haley  <aph@redhat.com>
13480
13481         * flow.c (insn_dead_p): When using non-call-exceptions, don't
13482         eliminate insns that may trap.
13483         * cse.c (insn_live_p): Likewise.
13484
13485 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
13486
13487         * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
13488         (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
13489         * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
13490         * config/mips/mips.md: Apply same renaming here.
13491
13492 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
13493
13494         * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
13495         (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
13496         * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
13497         * config/mips/mips.md (define_attr cpu): Remove r4320.
13498         Remove vr4320 scheduler and uses of TARGET_MIPS4320.
13499
13500 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
13501
13502         * config/mips/mips.c (mips16_strings): New variable.
13503         (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
13504         symbol in mips16_strings.  Free the list.
13505         (mips_encode_section_info): Keep track of local strings.
13506
13507 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
13508
13509         * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
13510         (sordered_df, sordered_sf): Remove.
13511         * config/mips/mips.c (get_float_compare_codes): New fn.
13512         (gen_int_relational, gen_conditional_move): Use it.
13513
13514 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
13515
13516         * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
13517         * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
13518         * config/mips/mips.c (fcc_register_operand): New function.
13519         (mips_emit_fcc_reload): New function, extracted from reload_incc.
13520         (override_options): Allow TFmode values in float registers
13521         if ISA_HAS_8CC.
13522         * cnfig/mips/mips.md (reload_incc): Change destination prediate
13523         to fcc_register_operand.  Remove misleading source constraint.
13524         Use mips_emit_fcc_reload.
13525         (reload_outcc): Duplicate reload_incc.
13526
13527 2002-09-30  Zack Weinberg  <zack@codesourcery.com>
13528
13529         * gcc.c (validate_switches): Handle all new forms of spec
13530         syntax introduced recently.  Now returns a char *.
13531         (validate_all_switches): Repetitive logic broken out to...
13532         (validate_switches_from_spec): ...here.
13533         * mklibgcc.in: Don't @-flag commands to generate .oS files.
13534
13535 2002-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
13536
13537         * longlong.h: Partially synchronize with GMP-4.1 version:
13538         Use i370 definitions also for s390.
13539         Add generic definition of umul_ppmm in terms of smul_ppmm.
13540         [s390] (umul_ppmm): Remove.
13541         [s390] (smul_ppmm): Fix incorrect assembler constraints.
13542         [s390] (smul_ppmm, sdiv_qrnnd): Rename __xx to __x.
13543
13544 2002-09-30  Bob Wilson  <bob.wilson@acm.org>
13545
13546         * config/xtensa/xtensa.h (REG_CLASS_NAMES, REG_CLASS_CONTENTS):
13547         Add new RL_REGS register class.
13548         (PREFERRED_RELOAD_CLASS, PREFERRED_OUTPUT_RELOAD_CLASS):
13549         Call xtensa_preferred_reload_class for both input and output reloads.
13550         * config/xtensa/xtensa.c (xtensa_regno_to_class): Use new RL_REGS class.
13551         (xtensa_preferred_reload_class): Handle output reloads; use RL_REGS
13552         instead of either AR_REGS or GR_REGS classes.
13553         (xtensa_secondary_reload_class): Use new RL_REGS class.
13554         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class): Update.
13555
13556 2002-09-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13557
13558         * pa.c (hppa_encode_label): Don't drop '*' from function labels.
13559         (pa_strip_name_encoding): Strip '@' and '*', in that order.
13560         * pa.h (ASM_OUTPUT_LABELREF): Output user_label_prefix except when
13561         there is a '*' prefix in NAME.
13562
13563 Mon Sep 30 21:33:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
13564
13565         * reload.c (push_reload): Handle subregs and secondary memory.
13566         * reload1.c (gen_reload): Likewise.
13567
13568         * jump.c (reg_or_subregno): New function.
13569         * rtl.h (reg_or_subregno): Declare
13570         * unroll.c (find_splittable_givs): Handle subregs.
13571
13572 2002-09-30  Mark Mitchell  <mark@codesourcery.com>
13573
13574         * store-layout.c (finish_record_layout): Add free_p parameter.
13575         (layout_type): Pass it.
13576         * tree.h (finish_record_layout): Update prototype.
13577
13578 Mon Sep 30 14:57:18 CEST 2002  Jan Hubicka  <jh@suse.cz>
13579
13580         * i386.h (TARGET_CPP_CPU_BUILTINS): Define __SSE_MATH__.
13581
13582         * gcse.c (cprop_jump): Check that the register has not
13583         been modified
13584         (cprop_jump): Likewise.
13585
13586 2002-09-30  Richard Earnshaw  <rearnsha@arm.com>
13587
13588         * arm.h (BASE_REG_CLASS): Always return LO_REGS for Thumb.
13589         (MODE_BASE_REG_CLASS, case Thumb): Only return BASE_REGS if we know
13590         that we have a SImode access, and only then if reload hasn't completed;
13591         for all other cases, use LO_REGS.
13592
13593 2002-09-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13594
13595         * openbsd.h: Fix typo in last change.
13596
13597 2002-09-29  Richard Henderson  <rth@redhat.com>
13598
13599         * real.c (real_from_string): Apply sign last.  Tidy exponent handling.
13600
13601 2002-09-29  Richard Henderson  <rth@redhat.com>
13602
13603         PR c/8002
13604         * combine.c (force_to_mode): Handle FLOAT_MODE destinations
13605         for CONST_INT.
13606
13607 2002-09-29  David Edelsohn  <edelsohn@gnu.org>
13608
13609         * real.h (ibm_extended_format): Declare.
13610         * real.c (encode_ibm_extended, decode_ibm_extended): New
13611         functions.
13612
13613 2002-09-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13614
13615         * darwin-protos.h (darwin_asm_output_dwarf_delta): Prototype.
13616
13617         * ia64.c (ia64_hpux_asm_file_end): Const-ify.
13618
13619 2002-09-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13620
13621         * expmed.c (extract_bit_field): Fix bit-field extraction from SUBREGs.
13622
13623 2002-09-29  Kazu Hirata  <kazu@cs.umass.edu>
13624
13625         * builtins.def: Fix comment formatting.
13626         * c-common.def: Likewise.
13627         * cfgcleanup.c: Likewise.
13628         * combine.c: Likewise.
13629         * gengtype.c: Likewise.
13630         * params.def: Likewise.
13631         * predict.def: Likewise.
13632         * rtl.def: Likewise.
13633         * stab.def: Likewise.
13634         * stor-layout.c: Likewise.
13635         * tree.def: Likewise.
13636         * config/darwin.c: Likewise.
13637         * config/darwin.h: Likewise.
13638         * config/dbxcoff.h: Likewise.
13639         * config/elfos.h: Likewise.
13640         * config/fp-bit.c: Likewise.
13641         * config/freebsd-spec.h: Likewise.
13642         * config/interix.h: Likewise.
13643         * config/libgloss.h: Likewise.
13644         * config/linux-aout.h: Likewise.
13645         * config/linux.h: Likewise.
13646         * config/lynx-ng.h: Likewise.
13647         * config/lynx.h: Likewise.
13648         * config/netbsd-aout.h: Likewise.
13649         * config/netbsd.h: Likewise.
13650         * config/netware.h: Likewise.
13651         * config/psos.h: Likewise.
13652         * config/ptx4.h: Likewise.
13653
13654 2002-09-28  Kazu Hirata  <kazu@cs.umass.edu>
13655
13656         * ChangeLog.4: Fix typos.
13657         * ChangeLog.6: Likewise.
13658         * FSFChangeLog.10: Likewise.
13659         * genattrtab.c: Fix comment typos.
13660         * haifa-sched.c: Likewise.
13661         * real.c: Likewise.
13662         * tree.h: Likewise.
13663         * config/arm/arm.c: Likewise.
13664         * config/arm/crti.asm: Likewise.
13665         * config/arm/crtn.asm: Likewise.
13666         * config/frv/frv.c: Likewise.
13667         * config/frv/frv.md: Likewise.
13668         * config/h8300/h8300.md: Likewise.
13669         * config/i386/rtemself.h: Likewise.
13670         * config/ia64/unwind-ia64.c: Likewise.
13671         * config/ip2k/ip2k.h: Likewise.
13672         * config/m88k/m88k.c: Likewise.
13673         * config/m88k/m88k.md: Likewise.
13674         * config/mips/sr71k.md: Likewise.
13675         * config/mmix/mmix.c: Likewise.
13676         * config/rs6000/rs6000.c: Likewise.
13677         * config/sh/sh.md: Likewise.
13678
13679 2002-09-26  Theodore A. Roth  <troth@verinet.com>
13680
13681         * config/avr/avr.c: Eliminate use of _PC_ in pc relative insns.
13682         * config/avr/avr.md: Ditto.
13683
13684 2002-09-27  Alexander N. Kabaev <ak03@gte.com>
13685
13686         PR preprocessor/8055
13687         * cppmacro.c (stringify_arg): Do not overflow the buffer
13688         with the terminating NUL when the argument to be stringified
13689         has no tokens.
13690
13691 2002-09-27  Richard Henderson  <rth@redhat.com>
13692
13693         * unroll.c (simplify_cmp_and_jump_insns): New.
13694         (unroll_loop): Use it.  Use simplify_gen_foo+force_operand
13695         instead of expand_simple_foo.
13696
13697 2002-09-27  Richard Henderson  <rth@redhat.com>
13698
13699         PR optimization/7520
13700         * cfganal.c (flow_active_insn_p): New.
13701         (forwarder_block_p): Use it.
13702
13703 2002-09-27  Richard Henderson  <rth@redhat.com>
13704
13705         * emit-rtl.c (active_insn_p): Revert last change.
13706
13707 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
13708
13709         * doc/extend.texi (tls_model): Document.
13710         * varasm.c (decl_tls_model): New.
13711         * c-common.c (handle_tls_model_attribute): New.
13712         (c_common_attribute_table): Add tls_model.
13713         * config/alpha/alpha.c (alpha_encode_section_info): Use
13714         decl_tls_model.
13715         * flags.h (enum tls_model, flag_tls_default): Move...
13716         * tree.h (enum tls_model, flag_tls_default): ...here.
13717         (decl_tls_model): New prototype.
13718         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
13719         * config/i386/i386.c (ix86_encode_section_info): Likewise.
13720         * config/i386/i386.md (tls_global_dynamic, tls_local_dynamic_base):
13721         Allow !flag_pic.
13722
13723 2002-09-27  Kazu Hirata  <kazu@cs.umass.edu>
13724
13725         * LANGUAGES: Follow spelling conventions.
13726         * rtl.def: Likewise.
13727         * sbitmap.c: Likewise.
13728         * sched-int.h: Likewise.
13729         * sched-rgn.c: Likewise.
13730         * sibcall.c: Likewise.
13731         * simplify-rtx.c: Likewise.
13732         * ssa.c: Likewise.
13733         * stab.def: Likewise.
13734         * stmt.c: Likewise.
13735         * stor-layout.c: Likewise.
13736         * target.h: Likewise.
13737         * timevar.c: Likewise.
13738         * toplev.c: Likewise.
13739         * tree-dump.c: Likewise.
13740         * tree-inline.c: Likewise.
13741         * tree.c: Likewise.
13742         * tree.def: Likewise.
13743         * tree.h: Likewise.
13744         * unroll.c: Likewise.
13745         * varasm.c: Likewise.
13746         * vmsdbgout.c: Likewise.
13747         * treelang/treelang.texi: Likewise.
13748         * treelang/treetree.c: Likewise.
13749
13750 2002-09-27  Kazu Hirata  <kazu@cs.umass.edu>
13751
13752         * config/h8300/h8300.c (compute_saved_regs): Use a macro
13753         instead of a hard register number.
13754         (get_shift_alg): Use an enumerated type instead of numbers.
13755         (h8300_shift_needs_scratch_p): Likewise.
13756
13757 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
13758
13759         * varasm.c (force_data_section): Remove.
13760         (assemble_constant_align): Likewise.
13761         * output.h: Remove corresponding prototypes.
13762
13763 2002-09-26  Roger Sayle  <roger@eyesopen.com>
13764
13765         * stmt.c (expand_exit_loop_if_false): Expand a simple conditional
13766         jump, if the loop to exit is the top of the current nesting stack.
13767
13768 2002-09-26  Torbjorn Granlund  <tege@swox.com>
13769
13770         * libgcc2.c (fixunsdfdi, fixunssfdi): Rewrite, avoiding `long long'
13771         arithmetic.
13772
13773 2002-09-26  David S. Miller  <davem@redhat.com>
13774
13775         PR optimization/7335
13776         * calls.c (emit_library_call_value_1): Passing args by reference
13777         converts a CONST function into a PURE one.
13778
13779 2002-09-26  David Edelsohn  <edelsohn@gnu.org>
13780
13781         * dbxout.c (FORCE_TEXT): Switch to current_function_decl, not
13782         text_section.
13783         * xcoffout.h (DBX_STATIC_BLOCK_START): Remove explicit change to
13784         text section.
13785         * config/rs6000/rs6000.c (rs6000_override_options): Allow
13786         function-sections and data-sections functionality on AIX.
13787
13788 2002-09-26  David Edelsohn  <edelsohn@gnu.org>
13789             Dale Johannesen  <dalej@apple.com>
13790
13791         * config/rs6000/rs6000.c (rs6000_emit_move): Insert zero-extend
13792         in RTL for sub-word loads from memory.
13793
13794 2002-09-26  Richard Henderson  <rth@redhat.com>
13795
13796         PR c/7160
13797         * sched-deps.c (sched_analyze_insn): Make clobber insns depend
13798         on call insns.
13799
13800 2002-09-26  Richard Henderson  <rth@redhat.com>
13801
13802         * emit-rtl.c (const_double_htab_eq): Remove unused variable.
13803
13804 2002-09-26  Chris Lattner  <sabre@nondot.org>
13805
13806         * ssa.c (rename_insn_1): Handle RENAME_NO_RTX correctly when
13807         handling undefined values.
13808
13809 2002-09-26  Richard Henderson  <rth@redhat.com>
13810
13811         PR opt/7520
13812         * emit-rtl.c (active_insn_p): Consider a clobber of the
13813         function return value to be active even after reload.
13814
13815 2002-09-27  Alan Modra  <amodra@bigpond.net.au>
13816
13817         * doloop.c (doloop_modify_runtime <biv skips initial incr>): Adjust
13818         by absolute loop increment, not loop increment.
13819
13820 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
13821
13822         * c-common.h: Follow spelling conventions.
13823         * cpplex.c: Likewise.
13824         * cpplib.h: Likewise.
13825         * gthr-dce.h: Likewise.
13826         * gthr-posix.h: Likewise.
13827         * optabs.c: Likewise.
13828         * output.h: Likewise.
13829         * profile.c: Likewise.
13830         * protoize.c: Likewise.
13831         * ra-rewrite.c: Likewise.
13832         * real.c: Likewise.
13833         * recog.c: Likewise.
13834         * reg-stack.c: Likewise.
13835         * regclass.c: Likewise.
13836         * regmove.c: Likewise.
13837         * reload.c: Likewise.
13838         * reload.h: Likewise.
13839         * reload1.c: Likewise.
13840         * reorg.c: Likewise.
13841         * resource.c: Likewise.
13842         * rtl.h: Likewise.
13843         * rtlanal.c: Likewise.
13844
13845 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
13846
13847         * config/ia64/ia64.c (ia64_expand_load_address): Ensure correct mode
13848         for symbol address.
13849
13850 2002-09-24  Eric Christopher  <echristo@redhat.com>
13851
13852         * config/mips/elf.h: Add HANDLE_SYSV_PRAGMA.
13853         * config/mips/elf64.h: Ditto.
13854
13855 2002-09-24  Eric Christopher  <echristo@redhat.com>
13856
13857         * except.c (expand_builtin_extract_return_address): Handle case
13858         where Pmode != ptr_mode.
13859
13860 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
13861
13862         * config/ia64/hpux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): New
13863
13864 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
13865
13866         * config/ia64/hpux.h (TARGET_DEFAULT): Include TARGET_ILP32.
13867
13868 2002-09-26  Igor Shevlyakov <igor@microunity.com>
13869
13870         * combine.c (simplify_set): Don't call to force_to_mode if size
13871         of integer type is larger than HOST_BITS_PER_WIDE_INT.
13872
13873 2002-09-26  Janis Johnson  <janis187@us.ibm.com>
13874
13875         * Makefile.in (qmtest-g++): Fix file path.
13876
13877 2002-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
13878
13879         * expr.c (expand_expr) [MINUS_EXPR]: Convert A - const to
13880         A + (-const) on RTX level, even for unsigned types.
13881
13882 2002-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
13883
13884         * reload.c (dup_replacements): New function.
13885         (find_reloads): Use it to duplicate replacements at the top level
13886         of match_dup operands.
13887
13888 2002-09-26  Miles Bader  <miles@gnu.org>
13889
13890         * v850.md ("length"): Change default value to 4.
13891
13892 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
13893
13894         * ChangeLog.1: Follow spelling conventions.
13895         * ChangeLog.4: Likewise.
13896         * ChangeLog.6: Likewise.
13897         * FSFChangeLog.11: Likewise.
13898         * doc/cpp.texi: Likewise.
13899         * doc/invoke.texi: Likewise.
13900         * doc/tm.texi: Likewise.
13901
13902 2002-09-26  Nick Clifton  <nickc@redhat.com>
13903
13904         * config.gcc: Add x prefix to v850e case for handling
13905         --with-cpu=v850e.
13906
13907 2002-09-25  Zack Weinberg  <zack@codesourcery.com>
13908
13909         * gcc.c (input_suffix_matches, switch_matches,
13910         mark_matching_switches, process_marked_switches,
13911         process_brace_body): New functions - split from handle_braces.
13912         (handle_braces): Rewrite; handle %{S:X;T:Y;:D} syntax; accept
13913         and ignore whitespace in more places.
13914         (specs documentation comment): Document %{S:X;T:Y;:D}.
13915         Clarify other %{...} docs.
13916         * doc/invoke.texi: Document %{S:X;T:Y;:D}.  Clarify other
13917         %{...} docs.
13918
13919         * config/arm/aof.h (LINK_SPEC): Change %{ov*,*} to %{ov*}.
13920         * config/rs6000/sysv4.h: Use N-way choice spec syntax.
13921
13922 2002-09-25  David S. Miller  <davem@redhat.com>
13923
13924         PR target/7842
13925         * config/sparc/sparc.c (set_extends): SImode ASHIFT does not
13926         extend.
13927
13928 2002-09-25  Richard Henderson  <rth@redhat.com>
13929
13930         * emit-rtl.c (const_double_htab_eq): Distinguish integer and
13931         fp CONST_DOUBLE; use real_identical.
13932
13933 2002-09-25  Mark Mitchell  <mark@codesourcery.com>
13934
13935         * doc/invoke.texi: Add more -Wabi examples.
13936
13937 2002-09-25  Richard Sandiford  <rsandifo@redhat.com>
13938
13939         * config/mips/mips.h (TARGET_MIPS4100): Add missing bracket.
13940
13941 2002-09-24  Nathan Sidwell  <nathan@codesourcery.com>
13942
13943         * profile.c (end_branch_prob): Only look for __gcov_init on
13944         weak-enabled native compilers.
13945
13946 2002-09-24  Denis Chertykov  <denisc@overta.ru>
13947
13948         * config/ip2k/ip2k.c (function_epilogue): Fix wrong numbers in
13949         cases of optimizing "add sp,w" to "inc sp".
13950
13951 2002-09-24  Adam Nemet  <anemet@lnxw.com>
13952
13953         * config/arm/arm.c (thumb_unexpanded_epilogue): Don't generate
13954         epilogue for naked functions.
13955
13956 2002-09-24  Adam Nemet  <anemet@lnxw.com>
13957             Nick Clifton  <nickc@redhat.com>
13958
13959         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Remove.
13960         (FUNCTION_PROFILER): Only invoke THUMB_FUNCTION_PROFILER if it
13961         is defined.
13962
13963 2002-09-24  Ulrich Weigand  <uweigand@de.ibm.com>
13964
13965         * config/s390/s390.c (preferred_la_operand_p): New function.
13966         * config/s390/s390-protos.h (preferred_la_operand_p): Declare it.
13967         * config/s390/s390.md ("addaddr_esame", "*la_ccclobber"): Replace by ...
13968         ("*la_64_cc", "*la_31_cc", splitters): ... these.
13969         ("*la_31"): Deactivate for TARGET_64BIT.
13970         ("*la_31_and", "*la_31_and_cc"): New.
13971
13972 2002-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13973
13974         * real.h (real_value): Make `exp' explicitly signed.
13975
13976 2002-09-24  Kazu Hirata  <kazu@cs.umass.edu>
13977
13978         * config/elfos.h: Follow spelling conventions.
13979         * config/alpha/alpha.h: Likewise.
13980         * config/arc/arc.h: Likewise.
13981         * config/arm/arm.md: Likewise.
13982         * config/avr/avr.h: Likewise.
13983         * config/cris/cris.md: Likewise.
13984         * config/d30v/d30v.h: Likewise.
13985         * config/frv/frv.c: Likewise.
13986         * config/frv/frv.h: Likewise.
13987         * config/h8300/h8300.c: Likewise.
13988         * config/h8300/h8300.h: Likewise.
13989         * config/h8300/h8300.md: Likewise.
13990         * config/i386/cygwin.h: Likewise.
13991         * config/i386/i386.h: Likewise.
13992         * config/i386/sysv3.h: Likewise.
13993         * config/i960/i960.h: Likewise.
13994         * config/ia64/ia64.h: Likewise.
13995         * config/ia64/ia64.md: Likewise.
13996         * config/ip2k/ip2k.h: Likewise.
13997         * config/m32r/m32r.h: Likewise.
13998         * config/m68k/m68k.h: Likewise.
13999         * config/m88k/m88k.h: Likewise.
14000         * config/mcore/mcore.c: Likewise.
14001         * config/mcore/mcore.h: Likewise.
14002         * config/mcore/mcore.md: Likewise.
14003         * config/mips/mips.h: Likewise.
14004         * config/mmix/mmix.h: Likewise.
14005         * config/mmix/mmix.md: Likewise.
14006         * config/ns32k/netbsd.h: Likewise.
14007         * config/ns32k/ns32k.h: Likewise.
14008         * config/ns32k/ns32k.md: Likewise.
14009         * config/pa/pa.h: Likewise.
14010         * config/romp/romp.h: Likewise.
14011         * config/rs6000/rs6000.h: Likewise.
14012         * config/rs6000/rs6000.md: Likewise.
14013         * config/sparc/sparc.h: Likewise.
14014         * config/stormy16/stormy-abi: Likewise.
14015         * config/stormy16/stormy16.h: Likewise.
14016         * config/vax/vax.h: Likewise.
14017
14018 2002-09-23  Kazu Hirata  <kazu@cs.umass.edu>
14019
14020         * config/alpha/alpha.h: Remove commented-out macro
14021         definitions of HAVE_{POST|PRE}_{INC|DEC}REMENT.
14022         * config/avr/avr.h: Likewise.
14023         * config/d30v/d30v.h: Likewise.
14024         * config/dsp16xx/dsp16xx.h: Likewise.
14025         * config/i370/i370.h: Likewise.
14026         * config/i386/i386.h: Likewise.
14027         * config/i960/i960.h: Likewise.
14028         * config/m68k/m68k.h: Likewise.
14029         * config/m88k/m88k.h: Likewise.
14030         * config/mips/mips.h: Likewise.
14031         * config/ns32k/ns32k.h: Likewise.
14032         * config/pdp11/pdp11.h: Likewise.
14033         * config/romp/romp.h: Likewise.
14034         * config/rs6000/rs6000.h: Likewise.
14035         * config/s390/s390.h: Likewise.
14036         * config/sh/sh.h: Likewise.
14037         * config/sparc/sparc.h: Likewise.
14038         * config/stormy16/stormy16.h: Likewise.
14039         * config/vax/vax.h: Likewise.
14040
14041 2002-09-23  Kazu Hirata  <kazu@cs.umass.edu>
14042
14043         * function.c (push_temp_slots_for_block): Remove.
14044         (push_temp_slots_for_target): Likewise.
14045         (get_target_temp_slot_level): Likewise.
14046         (set_target_temp_slot_level): Likewise.
14047         (get_first_block_beg): Likewise.
14048         * function.h: Remove corresponding prototypes.
14049
14050 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
14051
14052         * version.c (version_string): Now const char[].
14053         * version.h: Update to match.
14054
14055 2002-09-23  Richard Henderson  <rth@redhat.com>
14056
14057         * config/i386/i386.h (MASK_ACCUMULATE_OUTGOING_ARGS_SET, MASK_MMX_SET,
14058         MASK_SSE_SET, MASK_SSE2_SET, MASK_3DNOW_SET, MASK_3DNOW_A_SET): Kill.
14059         (TARGET_SWITCHES): Don't reference them.
14060         * config/i386/i386.c (override_options): Use target_flags_explicit
14061         to examine bits set by the user.
14062
14063 2002-09-23  Dale Johannesen  <dalej@apple.com>
14064
14065         * dbxout.c (dbxout_parms):  Set current_sym_code for params
14066         passed on stack by invisible reference.
14067
14068 2002-09-23  Richard Earnshaw  <rearnsha@arm.com>
14069
14070         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Always allocate
14071         at least one byte of space.
14072
14073 2002-09-23  Mark Mitchell  <mark@codesourcery.com>
14074
14075         * c-common.h (flag_abi_version): Fix typo in comment.
14076         * doc/invoke.texi (flag_abi_version): Document default value.
14077
14078 2002-09-23  Hans-Peter Nilsson  <hp@axis.com>
14079
14080         * doc/extend.texi (Extended Asm): Clarify that overlap between
14081         asm-declared register variables used in an asm and the asm clobber
14082         list is not allowed.
14083         * stmt.c (decl_conflicts_with_clobbers_p): New function.
14084         (expand_asm_operands): Keep track of clobbered registers.  Call
14085         decl_conflicts_with_clobbers_p for each input and output operand.
14086         If no conflicts found before, also do conflict sanity check when
14087         emitting clobbers.
14088
14089 2002-09-23  Richard Henderson  <rth@redhat.com>
14090
14091         * c-common.c (cpp_define_data_format): Remove.
14092         (cb_register_builtins): Don't define __WCHAR_BIT__, __SHRT_BIT__,
14093         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
14094         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
14095         * doc/cpp.texi: Don't document them either.
14096         (__SCHAR_MAX__, __SHRT_MAX__, __INT_MAX__, __LONG_MAX__,
14097         __LONG_LONG_MAX__): Document.
14098         (__TARGET_FLOAT_FORMAT__): Remove.
14099
14100 2002-09-23  Richard Henderson  <rth@redhat.com>
14101
14102         * real.c (do_multiply): Normalize U before addition.
14103
14104 2002-09-23  Mark Mitchell  <mark@codesourcery.com>
14105
14106         * c-common.c (flag_abi_version): New variable.
14107         * c-common.h (flag_abi_version): Declare it.
14108         * c-opts.c (missing_arg): Add -fabi-version.
14109         (c_common_decode_option): Process -fabi-version.
14110         * doc/invoke.texi (-fabi-version): Document it.
14111         (-Wabi): Add information about bit-fields in unions.
14112
14113 2002-09-22  Roger Sayle  <roger@eyesopen.com>
14114
14115         * expr.c (STORE_BY_PIECES_P): New target macro.
14116         (can_store_by_pieces, store_by_pieces): Use STORE_BY_PIECES_P
14117         instead of MOVE_BY_PIECES_P.
14118         * doc/tm.texi: Document this new macro.
14119
14120 2002-09-22  Jason Thorpe  <thorpej@wasabisystems.com>
14121
14122         * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC
14123         unless -fno-pic or -fno-PIC is specified.
14124
14125 2002-09-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14126
14127         * c-common.c (preprocessing_trad_p): Define.
14128         * pa-hiux.h, pa-hpux.h, pa-hpux7.h (CPP_PREDEFINES): Delete.
14129         (TARGET_OS_CPP_BUILTINS, SUBTARGET_SWITCHES): Define.
14130         * pa-hpux10.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
14131         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define.
14132         * pa-linux.h (CPP_PREDEFINES): Delete.
14133         (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
14134         * pa32-linux.h, pa64-linux.h (CPP_SPEC): Delete.
14135         * pa-osf.h, pa-pro-end.h, rtems.h (CPP_PREDEFINES): Delete.
14136         (TARGET_OS_CPP_BUILTINS): Define.
14137         * pa.h (MASK_SIO, TARGET_SIO, TARGET_PA_10): Define.
14138         (TARGET_SWITCHES): Reformat.  Use N_() macro.  Add SUBTARGET_SWITCHES.
14139         (SUBTARGET_SWITCHES): Provide default definition.
14140         (TARGET_OPTIONS): Reformat.  Use N_() macro.
14141         (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC, CPP_64BIT_SPEC,
14142         CPP_CPU_DEFAULT_SPEC, CPP_64BIT_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS,
14143         EXTRA_SPECS, CPP_SPEC, CPLUSPLUS_CPP_SPEC, CPP_PREDEFINES): Delete.
14144         (TARGET_CPU_CPP_BUILTINS): Define.
14145         (TARGET_OS_CPP_BUILTINS): Define for BSD-like systems.
14146         * doc/invoke.texi (msio, mwsio): Document new hppa options.
14147         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Document macro
14148         preprocessing_trad_p().
14149
14150 2002-09-22  Jason Thorpe  <thorpej@wasabisystems.com>
14151
14152         * doc/install.texi: Document behavior of --with-headers and
14153         --with-libs when arguments are omitted.
14154
14155 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>
14156
14157         * dbxout.c: Follow spelling conventions.
14158         * defaults.h: Likewise.
14159         * df.c: Likewise.
14160         * diagnostic.h: Likewise.
14161         * doloop.c: Likewise.
14162         * dwarf2out.c: Likewise.
14163         * dwarfout.c: Likewise.
14164         * emit-rtl.c: Likewise.
14165         * except.c: Likewise.
14166         * explow.c: Likewise.
14167         * expmed.c: Likewise.
14168         * expr.c: Likewise.
14169         * expr.h: Likewise.
14170         * flags.h: Likewise.
14171         * flow.c: Likewise.
14172         * fold-const.c: Likewise.
14173         * function.c: Likewise.
14174         * function.h: Likewise.
14175         * gcc.c: Likewise.
14176         * gcov-io.h: Likewise.
14177         * gcov.c: Likewise.
14178         * gcse.c: Likewise.
14179         * genattrtab.c: Likewise.
14180         * genconfig.c: Likewise.
14181         * genrecog.c: Likewise.
14182         * ggc-page.c: Likewise.
14183         * ggc.h: Likewise.
14184         * global.c: Likewise.
14185         * gthr-win32.h: Likewise.
14186         * integrate.c: Likewise.
14187         * jump.c: Likewise.
14188         * langhooks.c: Likewise.
14189         * langhooks.h: Likewise.
14190         * line-map.h: Likewise.
14191         * local-alloc.c: Likewise.
14192         * longlong.h: Likewise.
14193         * loop.c: Likewise.
14194         * loop.h: Likewise.
14195
14196 Tue Aug 27 22:26:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
14197
14198         * i386.h (BIGGEST_FIELD_ALIGNMENT): Set proper default for x86_64.
14199
14200 Tue Aug 27 20:07:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
14201
14202         * i386.c (overwrite_options): Set -mpreferred-stack-boundary to 128
14203         for -Os/TARGET_64BIT too.
14204
14205 2002-09-21  Kazu Hirata  <kazu@cs.umass.edu>
14206
14207         * ChangeLog: Follow spelling conventions.
14208         * ChangeLog.0: Likewise.
14209         * ChangeLog.1: Likewise.
14210         * ChangeLog.2: Likewise.
14211         * ChangeLog.3: Likewise.
14212         * ChangeLog.4: Likewise.
14213         * ChangeLog.5: Likewise.
14214         * ChangeLog.6: Likewise.
14215         * FSFChangeLog.10: Likewise.
14216         * FSFChangeLog.11: Likewise.
14217         * alias.c: Likewise.
14218         * basic-block.h: Likewise.
14219         * c-aux-info.c: Likewise.
14220         * c-common.c: Likewise.
14221         * c-common.h: Likewise.
14222         * c-decl.c: Likewise.
14223         * c-format.c: Likewise.
14224         * c-semantics.c: Likewise.
14225         * c-typeck.c: Likewise.
14226         * calls.c: Likewise.
14227         * cfganal.c: Likewise.
14228         * cfgloop.c: Likewise.
14229         * collect2.c: Likewise.
14230         * combine.c: Likewise.
14231         * conflict.c: Likewise.
14232         * cppexp.c: Likewise.
14233         * cppfiles.c: Likewise.
14234         * cpphash.h: Likewise.
14235         * cppinit.c: Likewise.
14236         * cpplex.c: Likewise.
14237         * cpplib.c: Likewise.
14238         * cpplib.h: Likewise.
14239         * cppmacro.c: Likewise.
14240         * cse.c: Likewise.
14241
14242 2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
14243
14244         * netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of
14245         LINK_SPEC.
14246         (LINK_SPEC): Define to NETBSD_LINK_SPEC_AOUT.
14247         * arm/netbsd.h (SUBTARGET_EXTRA_SEPCS): Add NETBSD_LINK_SPEC_AOUT.
14248         (LINK_SPEC): Rework to use NETBSD_LINK_SPEC_AOUT).
14249
14250 2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
14251
14252         PR opt/7930
14253         * cse.c (fold_rtx): Calculate old_cost before we fold each
14254         operand.
14255
14256 2002-09-21  Richard Henderson  <rth@redhat.com>
14257
14258         * c-common.c (cpp_define_data_format): Remove __GCC_LITTLE_ENDIAN__,
14259         __GCC_BIG_ENDIAN__, __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
14260         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
14261         __TARGET_USES_VAX_F_FLOAT__, __TARGET_USES_VAX_D_FLOAT__,
14262         __TARGET_USES_VAX_G_FLOAT__, __TARGET_USES_VAX_H_FLOAT__.
14263         * doc/cpp.texi: Don't document them.
14264
14265 2002-09-21  Richard Henderson  <rth@redhat.com>
14266
14267         * c-common.c (builtin_define_float_constants): Use real_format
14268         to get the floating-point parameters.
14269
14270 2002-09-21  Richard Henderson  <rth@redhat.com>
14271
14272         * real.c (struct real_format): Move to real.h.
14273         (real_format_for_mode): Rename from fmt_for_mode; update all users;
14274         initialize with ieee defaults.
14275         (real_to_target_fmt, real_from_target_fmt): New.
14276         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
14277         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
14278         ieee_quad_format, i370_single_format, i370_double_format,
14279         c4x_single_format, c4x_extended_format): Rename from s/_format//.
14280         (ieee_quad_format): Fix emin.
14281         (format_for_size, init_real_once): Remove.
14282         * real.h (struct real_format): Move from real.c.
14283         (real_format_for_mode): Declare.
14284         (real_to_target_fmt, real_from_target_fmt): Declare.
14285         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
14286         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
14287         ieee_quad_format, vax_f_format, vax_d_format, vax_g_format,
14288         i370_single_format, i370_double_format, c4x_single_format,
14289         c4x_extended_format): Declare.
14290         * toplev.c (do_compile): Don't call init_real_once.
14291
14292         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
14293         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Remove.
14294
14295         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Define.
14296         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): 64, if vax mode.
14297         * config/alpha/alpha.c (override_options): Set real_format_for_mode
14298         for VAX, if enabled.
14299
14300         * config/c4x/c4x.c (c4x_override_options): Set real_format_for_mode
14301         for C4X.
14302
14303         * config/i370/i370.h (OVERRIDE_OPTIONS): New.
14304         * config/i370/i370.c (override_options): New.
14305         * config/i370/i370-protos.h: Update.
14306
14307         * config/i386/i386.c (override_options): Set real_format_for_mode
14308         for Intel 80-bit extended.
14309         * config/i386/i386.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
14310
14311         * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Mind -mlong-double-64.
14312         (OVERRIDE_OPTIONS): Move code...
14313         * config/i960/i960.c (i960_initialize): ... here.  Set
14314         real_format_for_mode for Intel 80-bit extended.
14315
14316         * config/ia64/ia64.c (ia64_override_options): Set real_format_for_mode
14317         for Intel 80-bit extended, if enabled.
14318
14319         * config/m68k/m68k.c (override_options): Set real_format_for_mode
14320         for Motorola 96-bit extended.
14321
14322         * config/vax/vax.h (OVERRIDE_OPTIONS): New.
14323         * config/vax/vax.c (override_options): New.
14324         * config/vax/vax-protos.h: Update.
14325
14326 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
14327
14328         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Add
14329         #if TARGET_MACHO.
14330
14331         * config/rs6000/rs6000.md (floatdisf2_internal2): Combine
14332         insns.  Supply missing clobber of scratch reg.
14333
14334 2002-09-20  Kazu Hirata  <kazu@cs.umass.edu>
14335
14336         * config/m32r/m32r.c: Follow spelling conventions.
14337         * config/m32r/m32r.h: Likewise.
14338         * config/m32r/m32r.md: Likewise.
14339         * config/m68k/m68k.c: Likewise.
14340         * config/m88k/m88k.c: Likewise.
14341         * config/mcore/mcore.c: Likewise.
14342         * config/mips/mips.c: Likewise.
14343         * config/mips/mips.h: Likewise.
14344         * config/mmix/mmix.c: Likewise.
14345         * config/mn10200/mn10200.c: Likewise.
14346         * config/ns32k/ns32k.h: Likewise.
14347         * config/pa/pa.c: Likewise.
14348         * config/pa/pa64-linux.h: Likewise.
14349         * config/pdp11/pdp11.h: Likewise.
14350         * config/romp/romp.c: Likewise.
14351         * config/romp/romp.h: Likewise.
14352         * config/rs6000/eabi.asm: Likewise.
14353         * config/rs6000/linux64.h: Likewise.
14354         * config/rs6000/rs6000.c: Likewise.
14355         * config/rs6000/rs6000.h: Likewise.
14356         * config/rs6000/rs6000.md: Likewise.
14357         * config/rs6000/sysv4.h: Likewise.
14358         * config/rs6000/xcoff.h: Likewise.
14359
14360 2002-09-20  Jim Wilson  <wilson@redhat.com>
14361
14362         * config/v850/v850/lib1funcs.asm (__muldi3): Change r5 to r28.
14363
14364 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
14365
14366         * config/i386/i386.md (UNSPEC_GOTNTPOFF, UNSPEC_INDNTPOFF): New.
14367         * config/i386/i386.c (legitimate_pic_address_disp_p): Handle
14368         UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF like UNSPEC_GOTTPOFF.
14369         (legitimate_address_p): Likewise.
14370         (legitimize_address): Use @gotntpoff and @indntpoff.
14371         (output_pic_addr_const): Handle UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF.
14372         (output_addr_const_extra): Likewise.
14373
14374 2002-09-20  Jim Wilson  <wilson@redhat.com>
14375
14376         * combine.c (try_combine): When split an instruction pair, where the
14377         first has a sign_extend src, verify that the src and dest modes match.
14378
14379 2002-09-20  Richard Henderson  <rth@redhat.com>
14380
14381         * config/mips/mips.c (dfhigh, dflow, sfhigh, sflow): Remove.
14382         (override_options): Do not initialize them.
14383         (mips_const_double_ok): Allow no fp constants except zero,
14384         and not even that for mips16.
14385         (const_float_1_operand): Use dconst1.
14386         * config/mips/mips.md (movsf, movsf_internal1, movsf_internal2,
14387         movdf, movdf_internal1, movdf_internal1a, movdf_internal2):
14388         Don't allow arbitrary constants; fix predicates and C constraint.
14389
14390 2002-09-20  Neil Booth  <neil@daikokuya.co.uk>
14391
14392         * cppmacro.c: Don't warn about function-like macros without
14393         '(' during pre-expansion.
14394
14395 2002-09-20  Jim Wilson  <wilson@redhat.com>
14396
14397         * config/v850/v850.c (current_function_anonymous_args): Delete.
14398         (expand_prologue): Use current_function_args_info.anonymous_args.
14399         (expand_epilogue): Delete use of current_function_anonymous_args.
14400         * config/v850/v850.h (struct cum_arg): Add anonymous_args field.
14401         (INIT_CUMULATIVE_ARGS): Clear anonymous_args field.
14402         (current_function_anonymous_args): Delete extern declaration.
14403         (SETUP_INCOMING_VARARGS): Set anonymous_args field.
14404
14405 2002-09-20  Geoffrey Keating  <geoffk@apple.com>
14406
14407         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update for change
14408         to load_macho_picbase.
14409         * config/rs6000/rs6000.md: Document Darwin-specific unspec IDs.
14410         (load_macho_picbase): Take the symbol to use as a parameter.
14411         (macho_correct_pic): New insn.
14412         (builtin_setjmp_reciever): On Darwin, restore the PIC register.
14413
14414         * config/rs6000/rs6000.h (ELIMINABLE_REGS): Use
14415         RS6000_PIC_OFFSET_TABLE_REGNUM rather than hardcoding 30.
14416         (CAN_ELIMINATE): Likewise.
14417         (INITIAL_ELIMINATION_OFFSET): Likewise.
14418         (TOC_REGISTER): Likewise.
14419
14420 2002-09-20  Richard Henderson  <rth@redhat.com>
14421
14422         * real.c (real_hash): New.
14423         * real.h: Declare it.
14424         * cse.c (canon_hash): Use it.
14425         * cselib.c (hash_rtx): Likewise.
14426         * emit-rtl.c (const_double_htab_hash): Likewise.
14427         * rtl.h (CONST_DOUBLE_REAL_VALUE): New.
14428         * varasm.c (struct rtx_const): Reduce vector size; separate
14429         integer and fp vectors.
14430         (HASHBITS): Remove.
14431         (const_hash_1): Rename from const_hash.  Use real_hash.  Do not
14432         take modulus MAX_HASH_TABLE.
14433         (const_hash): New.  Do take modulus MAX_HASH_TABLE.
14434         (output_constant_def): Do not take modulus MAX_HASH_TABLE.
14435         (SYMHASH): Don't use HASHBITS.
14436         (decode_rtx_const): Copy only active bits from REAL_VALUE_TYPE.
14437         Fix CONST_VECTOR thinko wrt fp vectors.  Fix kind comparison.
14438         (simplify_subtraction): Fix kind comparison.
14439         (const_hash_rtx): Return unsigned int.  Don't use HASHBITS.
14440         Use a union to pun integer array.
14441         * config/rs6000/rs6000.c (rs6000_hash_constant): Use real_hash;
14442         only hash two words of integral CONST_DOUBLE.
14443
14444 2002-09-20  Steve Ellcey  <sje@cup.hp.com>
14445
14446         * config/ia64/hpux.h (STARTFILE_SPEC): Modify.
14447         (STARTFILE_PREFIX_SPEC): New.
14448         (LINK_SPEC): Modify.
14449         (LIB_SPEC): Modify.
14450         (LIBGCC_SPEC): New.
14451
14452 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
14453
14454         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
14455         UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.
14456
14457 2002-09-20  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
14458
14459         * config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
14460         Add clobber of the condition code register.
14461
14462 2002-09-20  Richard Henderson  <rth@redhat.com>
14463
14464         * real.c (do_fix_trunc): Static.
14465         (encode_ieee_single, encode_ieee_double, encode_ieee_extended,
14466         encode_ieee_quad, encode_vax_f, encode_vax_d, encode_vax_g,
14467         encode_i370_single, encode_i370_double, encode_c4x_single,
14468         encode_c4x_extended): Add default abort case.
14469
14470 2002-09-20  Richard Henderson  <rth@redhat.com>
14471
14472         * real.h (enum real_value_class, SIGNIFICAND_BITS, EXP_BITS,
14473         MAX_EXP, SIGSZ, SIG_MSB, struct real_value): Move from real.c.
14474         (struct realvaluetype): Remove.
14475         (REAL_VALUE_TYPE): Use struct real_value.
14476         (REAL_VALUE_TYPE_SIZE): Use SIGNIFICAND_BITS.
14477         (test_real_width): New.
14478         * real.c: Global replace struct real_value with REAL_VALUE_TYPE.
14479         (real_arithmetic): Avoid hoops for REAL_VALUE_TYPE parameters.
14480         (real_compare, real_exponent, real_ldexp, real_isinf, real_isnan,
14481         real_isneg, real_isnegzero, real_identical, exact_real_inverse,
14482         real_to_integer, real_to_integer2, real_to_decimal,
14483         real_to_hexadecimal, real_from_string, real_from_integer,
14484         real_inf, real_nan, real_2expN, real_convert, real_to_target,
14485         real_from_target): Likewise.
14486         * tree.h (struct tree_real_cst): Use real_value not realvaluetype.
14487         * gengtype-yacc.y (bitfieldopt): Accept an ID as well.
14488
14489 2002-09-20  Richard Henderson  <rth@redhat.com>
14490
14491         * real.h (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT,
14492         IBM_FLOAT_FORMAT, C4X_FLOAT_FORMAT, TARGET_FLOAT_FORMAT): Move ...
14493         * defaults.h: ... here.
14494         * config/arm/arm.h, config/avr/avr.h, config/d30v/d30v.h,
14495         config/fr30/fr30.h, config/frv/frv.h, config/ia64/ia64.h,
14496         config/ip2k/ip2k.h, config/mips/mips.h, config/stormy16/stormy16.h,
14497         config/xtensa/xtensa.h (TARGET_FLOAT_FORMAT): Remove.
14498
14499 2002-09-20  Hans-Peter Nilsson  <hp@bitrange.com>
14500
14501         * config/mmix/mmix.md ("negdf2"): Rewrite.
14502         ("*expanded_negdf2"): New.
14503
14504 2002-09-19  Jim Wilson  <wilson@redhat.com>
14505
14506         * combine.c (simplify_set): When optimizing a subreg src with a
14507         cc0 dest, use GET_MODE (src) for mask instead of inner_mode.
14508
14509 2002-09-19  Dale Johannesen <dalej@apple.com>
14510         * combine.c (make_extraction): Don't create
14511         invalid subreg.
14512
14513 2002-09-19  Roger Sayle  <roger@eyesopen.com>
14514
14515         * tree.c (integer_nonzerop): New predicate for nonzero integers.
14516         * tree.h (integer_nonzerop): Add function prototype.
14517         * stmt.c (expand_end_loop):  Don't rotate the loop when there
14518         are no instructions in the test, i.e. the loop is unconditional.
14519         (expand_exit_loop_if_false):  Optimize RTL generation of loop
14520         tests when the condition is always true or always false.
14521         * c-semantics.c (genrtl_do_stmt):  Optimize RTL generation of
14522         do-loops when the condition is always true.
14523         (genrtl_for_stmt):  Optimize RTL generation of for-loops when
14524         the for-expression is empty.
14525
14526 2002-09-19  Zack Weinberg  <zack@codesourcery.com>
14527
14528         * gcc.c (use_pipes): New flag.
14529         (process_command): Set it.  Adjust check for -pipe conflicting
14530         with -time or -save-temps.
14531         (do_spec_1): Use it.  Handle %|SUFFIX, %mSUFFIX, and
14532         %<SWITCH.  Drop %| (without a SUFFIX).
14533         (handle_braces): Drop %{<SWITCH}, %{^SWITCH}, %{|...}.
14534         (give_switch): Third argument eliminated.
14535         (invoke_as, @assembler_with_cpp spec): Use %|.s or %m.s
14536         depending on AS_NEEDS_DASH_FOR_PIPED_INPUT.
14537         (specs documentation comment): Update.
14538
14539         * config/netbsd-aout.h, config/openbsd.h, config/ptx4.h,
14540         config/svr4.h, config/i386/freebsd-aout.h,
14541         config/m68k/netbsd-elf.h, config/m68k/netbsd.h,
14542         config/m68k/openbsd.h, config/mips/openbsd.h,
14543         config/sparc/sparc.h: Define AS_NEEDS_DASH_FOR_PIPED_INPUT
14544         instead of putting %| into ASM_SPEC and/or ASM_FINAL_SPEC.
14545         * config/avr/avr.h: Delete do-nothing ASM_FINAL_SPEC.
14546         * config/cris/cris.h: Update comment.
14547
14548         * ada/lang-specs.h: Use %(invoke_as).  Straighten out
14549         error messages.  Don't use %{^SWITCH}.
14550         * ada/misc.c (gnat_decode_option): Handle -I with a
14551         separate argument.
14552
14553         * f/lang-specs.h: Use %| and %m.
14554         * java/jvspec.c: Use %m and %(invoke_as).  Change all
14555         uses of %{<SWITCH} to %<SWITCH.
14556
14557         * doc/invoke.texi: Update documentation of specs.
14558         * doc/tm.texi: Document AS_NEEDS_DASH_FOR_PIPED_INPUT.
14559
14560 2002-09-19  Ulrich Weigand  <uweigand@de.ibm.com>
14561
14562         * config/s390/s390.c (addr_generation_dependency_p): Handle SUBREG
14563         and STRICT_LOW_PART within SET_DEST.
14564         * config/s390/s390.md ("*extractqi", "*extracthi"): New insns with
14565         splitters, replacing pre-reload splitters.
14566         ("*zero_extendhisi2_31", "*zero_extendqisi2_31",
14567         "*zero_extendqihi2_31"): New insns.
14568         ("*zero_extendqihi2_64"): Do not clobber CC.
14569
14570 2002-09-18  Devang Patel  <dpatel@apple.com>
14571
14572         * cp/cp-tree.h: New prototype for walk_vtables().
14573         * cp/decl.c (walk_vtables_r): New function.
14574         (struct cp_binding_level): Add new members, namespaces,
14575         names_size and vtables.
14576         (add_decl_to_level): Add decl in namespaces or vtables
14577         chain, if conditions match.
14578         (walk_vtables): New function.
14579         (walk_namespaces_r): Travers separate namespace chain
14580         for namespace decls.
14581         (wrapup_globals_for_namespace): Use names_size instead
14582         of list_length().
14583         * cp/decl2.c (finish_file): Use walk_vtables() instead of
14584         walk_globals() to walk vtable decls.
14585
14586 2002-09-19  Steve Ellcey  <sje@cup.hp.com>
14587
14588         * config/ia64/hpux.h (CTORS_SECTION_ASM_OP): New.
14589         (DTORS_SECTION_ASM_OP): Ditto.
14590         (READONLY_DATA_SECTION_ASM_OP): Moved.
14591         (DATA_SECTION_ASM_OP): New.
14592         (SDATA_SECTION_ASM_OP): New.
14593         (BSS_SECTION_ASM_OP): New.
14594         (SBSS_SECTION_ASM_OP): New.
14595         (TEXT_SECTION_ASM_OP): New.
14596
14597 2002-09-19  Kazu Hirata  <kazu@cs.umass.edu>
14598
14599         * config/fp-bit.c: Follow spelling conventions.
14600         * config/d30v/d30v.c: Likewise.
14601         * config/d30v/d30v.h: Likewise.
14602         * config/fr30/fr30.c: Likewise.
14603         * config/fr30/fr30.h: Likewise.
14604         * config/fr30/fr30.md: Likewise.
14605         * config/frv/frv.c: Likewise.
14606         * config/frv/frv.h: Likewise.
14607         * config/h8300/h8300.c: Likewise.
14608         * config/h8300/lib1funcs.asm: Likewise.
14609         * config/i370/i370.c: Likewise.
14610         * config/i386/i386.h: Likewise.
14611         * config/i386/i386.md: Likewise.
14612         * config/i386/pentium.md: Likewise.
14613         * config/i386/winnt.c: Likewise.
14614         * config/i960/i960.c: Likewise.
14615         * config/ia64/ia64.h: Likewise.
14616         * config/ip2k/ip2k.c: Likewise.
14617         * config/ip2k/ip2k.h: Likewise.
14618         * config/ip2k/ip2k.md: Likewise.
14619         * config/ip2k/libgcc.S: Likewise.
14620
14621 2002-09-19  Stephen Clarke <stephen.clarke@superh.com>
14622
14623         * config/sh/sh.h (UNSPEC_GOTOFF_P): Define.
14624         (GOTOFF_P): Extend to allow gotoff plus constant.
14625
14626 2002-09-18  Richard Henderson  <rth@redhat.com>
14627
14628         * ifcvt.c (noce_process_if_block): Correctly detect X modified
14629         with INSN_B before COND_EARLIEST.  Don't check A and B for
14630         modification in condition range.  Reorder INSN_B for A==B properly.
14631         (if_convert): Iterate until no matches for a block.
14632
14633 2002-09-18  Richard Henderson  <rth@redhat.com>
14634
14635         * calls.c (store_one_arg): Rename default_align to parm_align;
14636         always adjust parm_align for downward padding.
14637
14638 2002-09-18  Richard Henderson  <rth@redhat.com>
14639
14640         * toplev.c (backend_init): Move init_real_once invocation ...
14641         (do_compile): ... here.
14642
14643 2002-09-18  Richard Henderson  <rth@redhat.com>
14644
14645         * sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
14646         RTX_UNCHANGING_P markers for successful tail-recursive replacement.
14647
14648 2002-09-18  Richard Henderson  <rth@redhat.com>
14649
14650         * real.c (round_for_format): Collect sticky as unsigned long, not bool.
14651
14652 2002-09-19  Alan Modra  <amodra@bigpond.net.au>
14653
14654         * config/rs6000/rs6000.md: (floatdisf2): Rename to
14655         floatdisf2_internal1.
14656         (floatdisf2): New define_expand.
14657         (floatdisf2_internal2): Likewise.
14658
14659 2002-09-18  Richard Henderson  <rth@redhat.com>
14660
14661         * real.c (sticky_rshift_significand): Collect sticky as
14662         unsigned long, not bool.
14663
14664 2002-09-18  Ulrich Weigand  <uweigand@de.ibm.com>
14665
14666         * config/s390/s390.c (s390_address_cost): New function.
14667         config/s390/s390-protos.h (s390_address_cost): Add prototype.
14668         config/s390/s390.h (ADDRESS_COST): Call s390_address_cost.
14669         (RTX_COST): Use COSTS_N_INSNS.
14670
14671 2002-09-18  Douglas Rupp  <rupp@gnat.com>
14672             Donn Terry  <donnte@microsoft.com>
14673
14674         * stor-layout.c (place_field): Handle alignment of whole
14675         structures when MSVC compatible bitfields are involved.
14676         Change method of computing location of MS bitfields to
14677         be compatible with #pragma pack(n).
14678
14679         * tree.h (record_layout_info): Add new field
14680         remaining_in_alignment.
14681
14682         * doc/tm.texi: (TARGET_MS_BITFIELD_LAYOUT_P): Update.
14683         (pragma pack): Add paragraph on MSVC bitfield packing.
14684
14685 2002-09-18  Richard Earnshaw  (reanrsha@arm.com)
14686
14687         PR optimization/7967
14688         * arm.md (ne_zeroextractsi): Add clobber of the condition code
14689         register.
14690
14691 2002-09-18  Kazu Hirata  <kazu@cs.umass.edu>
14692
14693         * config/s390/s390.c: Follow spelling conventions.
14694         * config/sh/lib1funcs.asm: Likewise.
14695         * config/sh/sh.c: Likewise.
14696         * config/sh/sh.h: Likewise.
14697         * config/sparc/sparc.c: Likewise.
14698         * config/sparc/sparc.h: Likewise.
14699         * config/sparc/sparc.md: Likewise.
14700         * config/stormy16/stormy16.c: Likewise.
14701         * config/stormy16/stormy16.h: Likewise.
14702         * config/v850/v850.c: Likewise.
14703         * config/v850/v850.h: Likewise.
14704         * config/vax/vax.c: Likewise.
14705         * config/vax/vax.h: Likewise.
14706
14707 2002-09-18  Nick Clifton  <nickc@redhat.com>
14708
14709         * config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
14710         * config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
14711         * config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.
14712
14713 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
14714
14715         * function.c (max_parm_reg_num): Remove.
14716         * stmt.c (in_control_zone_p, stmt_loop_nest_empty,
14717         drop_through_at_end_p, move_cleanups_up,
14718         expand_end_case_dummy, case_index_expr_type): Likewise.
14719         * stor-layout.c (pos_from_byte): Likewise.
14720         * tree.c (chain_member_value, chain_member_purpose, listify,
14721         tree_int_cst_msb, index_type_equal): Likewise.
14722         * tree.h: Remove prototypes for unused functions.
14723
14724 2002-09-17  Zack Weinberg  <zack@codesourcery.com>
14725
14726         * ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
14727         statement that the only translation is to en_UK.
14728
14729 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
14730
14731         * config/alpha/alpha.c: Follow spelling conventions.
14732         * config/alpha/alpha.h: Likewise.
14733         * config/alpha/alpha.md: Likewise.
14734         * config/arc/arc.h: Likewise.
14735         * config/arm/arm.c: Likewise.
14736         * config/arm/arm.h: Likewise.
14737         * config/arm/arm.md: Likewise.
14738         * config/arm/pe.c: Likewise.
14739         * config/arm/unknown-elf.h: Likewise.
14740         * config/avr/avr.c: Likewise.
14741         * config/avr/avr.h: Likewise.
14742         * config/c4x/c4x.c: Likewise.
14743         * config/cris/cris.c: Likewise.
14744         * config/cris/cris.h: Likewise.
14745
14746 2002-09-17  Samuel Figueroa  <figueroa@apple.com>
14747
14748         * final.c (final_scan_insn): Use new macro ASM_OUTPUT_ALIGN_WITH_NOP.
14749         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP) New macro.
14750         * doc/tm.texi (ASM_OUTPUT_ALIGN_WITH_NOP) New description.
14751
14752 2002-09-17  Dale Johannesen  <dalej@apple.com>
14753
14754         * cfgcleanup.c (try_forward_edges):  Do not forward a
14755         branch to just after a loop exit before loop optimization;
14756         this interfered with doloop detection.
14757
14758 2002-09-17  Nick Clifton  <nickc@redhat.com>
14759
14760         * config/arm/arm.c (output_return_instruction): Do not
14761         writeback the stack pointer when it is being loaded.
14762         (arm_output_epilogue): Likewise.
14763
14764 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
14765
14766         * optabs.c (prepare_cmp_insn): Let emit_library_call_value
14767         generate a pseudo reg that receives the result of a libcall.
14768         (prepare_float_lib_cmp): Likewise.
14769
14770 2002-09-17  Steve Ellcey  <sje@cup.hp.com>
14771
14772         * config/ia64/elf.h: Remove CPP_PREDEFINES.
14773
14774 Tue Sep 17 13:58:04 2002  Nicola Pero  <n.pero@mi.flashnet.it>
14775
14776         Fix PR/7014 and related objc bugs:
14777         * c-typeck.c (comp_target_types): Added a reflexive argument.
14778         Pass it to ObjC when/if calling objc_comptypes().  Updated all
14779         callers to provide the appropriate reflexive argument.
14780         * objc/objc-act.c (objc_comptypes): Carefully checked and fixed
14781         typechecking for all cases of comparisons and assignments,
14782         particularly the obscure and less common ones involving protocols.
14783
14784 2002-09-17  Nick Clifton  <nickc@redhat.com>
14785
14786         * machmode.def (V1DImode): New mode.  A single element vector.
14787         * tree.h (TI_UV1DI_TYPE, TI_V1DI_TYPE): New tree_index enums.
14788         (unsigned_V1DI_type_node, V1D1_type_node): New type nodes.
14789         * tree.c (build_common_tree_nodes_2): Build
14790         unsigned_V1DI_type_node and V1D1_type_node.
14791         * c-common.c (c_common_type_for_mode): Return
14792         unsigned_V1DI_type_node or V1D1_type_node for V1DImode.
14793         * rtl.c (class_narrowest_): Start integer vector nodes with V1DImode.
14794
14795 Tue Sep 17 13:40:13 2002  Nicola Pero  <n.pero@mi.flashnet.it>
14796
14797         * doc/objc.texi (Constant string objects): Extended documentation
14798         to make clear that the constant string class ivar layout is
14799         completely fixed.
14800
14801 2002-09-17  Roger Sayle  <roger@eyesopen.com>
14802
14803         * cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned
14804         NOTE_INSN_LOOP_CONT notes when deleting basic blocks.
14805
14806 2002-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
14807
14808         * config/mips/mips.c (save_restore_insns): Remove unused variable.
14809         * gcc.c (make_relative_prefix): Likewise.
14810         * loop.c (check_final_value): Likewise.
14811         * jump.c (init_label_info): Remove return value.
14812         * cse.c (prev_insn): Move variable between #ifdef HAVE_cc0 ... #endif.
14813
14814 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14815
14816         * dsp16xx.h (ASM_FORMAT_PRIVATE_NAME): Delete.
14817         (ASM_PN_FORMAT): Define.
14818
14819 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14820
14821         * alpha.h, alpha/vms.h, arc.h, arm/aof.h, arm/aout.h, avr.h,
14822         c4x.h, cris.h, d30v.h, fr30.h, frv.h, h8300.h, i370.h, i386.h,
14823         i960.h, ia64.h, ip2k.h, m32r.h, m68hc11.h, m68k/3b1.h,
14824         m68k/hp320.h, m68k.h, m68k/mot3300.h, m68k/sgs.h, m68k/tower-as.h,
14825         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
14826         pa.h, pdp11.h, romp.h, rs6000.h, s390/linux.h, sh.h, sparc.h,
14827         stormy16.h, v850.h, vax.h, xtensa.h (ASM_FORMAT_PRIVATE_NAME):
14828         Delete.
14829         * alpha/vms.h, h8300.h, i370.h, ia64.h, m68k/3b1.h, m68k/hp320.h,
14830         m68k/mot3300.h, m68k/sgs.h, m68k/tower-as.h, mmix.h, mn10200.h,
14831         mn10300.h, pa.h, v850.h (ASM_PN_FORMAT): Define.
14832
14833         * defaults.h (ASM_PN_FORMAT, ASM_FORMAT_PRIVATE_NAME): Define.
14834         * doc/tm.texi (ASM_FORMAT_PRIVATE_NAME): Update documentation.
14835
14836 2002-09-16  Richard Henderson  <rth@redhat.com>
14837
14838         * expr.c (emit_block_move): Set memory block size as appropriate
14839         for the copy.
14840
14841 2002-09-16  Richard Henderson  <rth@redhat.com>
14842
14843         PR fortran/3924
14844         * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.
14845
14846 2002-09-16  Richard Henderson  <rth@redhat.com>
14847
14848         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
14849         as well as OFFSET for BITPOS.
14850
14851 2002-09-16  Jeff Garzik  <jgarzik@mandrakesoft.com>
14852
14853         * config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
14854         * config/i386/i386.c (processor_alias_table): Add winchip-c6,
14855         winchip2 and c3.
14856         * doc/invoke.texi: Mention new aliases.
14857
14858 2002-09-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14859
14860         * calls.c (store_one_arg): Set default alignment for BLKmode arguments
14861         to BITS_PER_UNIT when ARGS_GROW_DOWNWARD and the padding direction is
14862         downward.
14863         * function.c (pad_below):  Always compile.
14864         (locate_and_pad_parm): If defined ARGS_GROW_DOWNWARD, pad argument to
14865         alignment when it is not in a register or REG_PARM_STACK_SPACE is true.
14866         Pad below when the argument is not in a register and the padding
14867         direction is downward.
14868
14869         * pa-64.h (MUST_PASS_IN_STACK): Move define to pa.h.
14870         (PAD_VARARGS_DOWN): Define.
14871         * pa.c (function_arg_padding): Revise padding directions to make them
14872         compatible with the 32 and 64-bit runtime architecture documentation.
14873         (hppa_va_arg):  Add code to handle variable and size zero arguments
14874         passed by reference on TARGET_64BIT.  Reformat.
14875         (function_arg): Use a PARALLEL for BLKmode and aggregates args on
14876         TARGET_64BIT.  Use a DImode PARALLEL for BLKmode args 5 to 8 bytes
14877         wide when !TARGET_64BIT.  Move forward check for mode==VOIDmode.
14878         Add comments.
14879         * pa.h (MAX_PARM_BOUNDARY): Correct define for TARGET_64BIT.
14880         (RETURN_IN_MEMORY): Return size zero types in memory.
14881         (FUNCTION_VALUE): Return TFmode in general registers.
14882         (MUST_PASS_IN_STACK): Define.
14883         (FUNCTION_ARG_BOUNDARY): Simplify.
14884         (FUNCTION_ARG_PASS_BY_REFERENCE): Pass variable and zero sized types
14885         by reference.
14886         (FUNCTION_ARG_CALLEE_COPIES): Define to FUNCTION_ARG_PASS_BY_REFERENCE.
14887
14888 2002-09-16  Richard Henderson  <rth@redhat.com>
14889
14890         * real.c (do_fix_trunc): New.
14891         (real_arithmetic): Call it.
14892         * simplify-rtx.c (simplify_unary_operation): Handle FIX
14893         with a floating-point result mode.
14894
14895 2002-09-16  Richard Henderson  <rth@redhat.com>
14896
14897         * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
14898         (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
14899         * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
14900         (__builtin_nans, __builtin_nansf, __builtin_nansl): New.
14901         * builtins.c (fold_builtin_nan): New.
14902         (fold_builtin): Call it.
14903         * real.c (real_nan): Parse a non-empty string.
14904         (round_for_format): Fix NaN significand truncation.
14905         * real.h (real_nan): Return bool.
14906         * doc/extend.texi: Document new builtins.
14907
14908 2002-09-16  Jason Merrill  <jason@redhat.com>
14909             Danny Smith  <dannysmith@users.sourceforge.net>
14910
14911         * config/i386/winnt.c (ix86_handle_dll_attribute): Set
14912         DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
14913         (i386_pe_mark_dllimport): Not here.
14914
14915 2002-09-16  Nathan Sidwell  <nathan@codesourcery.com>
14916
14917         * c-semantics.c (genrtl_do_stmt): Cope with NULL cond.
14918
14919 2002-09-16  Geoffrey Keating  <geoffk@redhat.com>
14920
14921         * config/rs6000/rs6000.c (build_mask64_2_operands): Suppress
14922         warnings about unused operands when HOST_BITS_PER_WIDE_INT is
14923         < 64.
14924         (rs6000_emit_cmove): Use real_isinf not target_isinf.
14925
14926 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
14927
14928         * calls.c (emit_library_call_value_1): Don't refer to
14929         hard_libcall_value.
14930         * optabs.c (prepare_float_lib_cmp): Likewise.
14931
14932 2002-09-16  Geoffrey Keating  <geoffk@apple.com>
14933
14934         * ggc-common.c (ggc_mark_rtx_children_1): Update for changed name
14935         mangling.
14936
14937         The following changes are merged from pch-branch:
14938
14939         * doc/gty.texi (GTY Options): Document %a.
14940         * gengtype.c (do_scalar_typedef): New function.
14941         (process_gc_options): Handle `length' option.
14942         (set_gc_used_type): A pointer to an array of structures doesn't
14943         qualify as a pointer to a structure.
14944         (output_escaped_param): Add `%a' escape.
14945         (write_gc_structure_fields): Allow 'desc' on array of unions.
14946         (main): Define `uint8', `jword' and `JCF_u2' as scalars; use
14947         do_scalar_typedef.
14948
14949         * gengtype.c (enum rtx_code): Make global.
14950         (rtx_format): Make global.
14951         (rtx_next): New.
14952         (gen_rtx_next): New.
14953         (write_rtx_next): New.
14954         (adjust_field_rtx_def): Skip fields marked by chain_next.
14955         (open_base_files): Delete redundant prototype.
14956         (write_enum_defn): New.
14957         (output_mangled_typename): Correct abort call.
14958         (write_gc_marker_routine_for_structure): Handle chain_next and
14959         chain_prev options.
14960         (finish_root_table): Don't output redundant \n.
14961         (main): Call gen_rtx_next, write_rtx_next, write_enum_defn.
14962         * c-tree.h (union lang_tree_node): Add chain_next option.
14963
14964         * gengtype.h (NUM_PARAM): New definition.
14965         (struct type): For TYPE_PARAM_STRUCT, allow multiple parameters.
14966         * gengtype.c (find_param_structure): New.
14967         (adjust_field_type): Handle param<n>_is option.
14968         (process_gc_options): Detect use_params option.  Update callers.
14969         (set_gc_used_type): Add 'param' parameter, update callers.  Handle
14970         'use_params' option.
14971         (open_base_files): Add splay-tree.h to list of files included.
14972         (output_mangled_typename): New.
14973         (write_gc_structure_fields): Update 'param' parameter to support
14974         multiple parameters.  Change name mangling.  Allow parameterized
14975         fields to have an apparent scalar type.  Handle param<n>_is options,
14976         use_param option.
14977         (write_gc_marker_routine_for_structure): Update for change to name
14978         mangling.  Better guess the output file for parameterized types.
14979         (write_gc_types): Update for change to name mangling.
14980         (write_gc_root): Update for change to name mangling.  Handle (ignore)
14981         param<n>_is options.
14982         * doc/gty.texi (GTY Options): Add description of param<n>_is
14983         options, use_params option.
14984         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
14985         * gengtype-lex.l: Produce token for param<n>_is.
14986         * gengtype-yacc.y: Parse param<n>_is.
14987
14988         * gengtype.c (adjust_field_tree_exp): Don't name a variable 'rindex'.
14989
14990         * rtl.c: Update comment describing rtx_format.
14991         * rtl.h (union rtunion): Separate definition and typedef.
14992         (struct rtx_def): Use gengtype to mark.
14993         * Makefile.in (gengtype.o): Also depend on rtl.def.
14994         * ggc.h (ggc_mark_rtx_children): Delete prototype.
14995         (ggc_mark_rtx): Change to alias of gengtype-generated routine.
14996         * ggc-common.c (ggc_mark_rtx_children): Delete.
14997         (ggc_mark_rtx_children_1): Delete.
14998         (gt_ggc_m_rtx_def): Delete.
14999         * gengtype.c (adjust_field_rtx_def): New.
15000         (adjust_field_type): Call adjust_field_rtx_def.
15001         (write_gc_structure_fields): Add 'default' case to switch if none
15002         is specified; remove unused code.
15003
15004         * tree.h (struct tree_exp): Update for change to meaning
15005         of special.
15006         * gengtype.c (adjust_field_tree_exp): New function.
15007         (adjust_field_type): Handle `tree_exp' special here.
15008         (write_gc_structure_fields): Don't handle `tree_exp' special here.
15009         Handle new `dot' option.
15010
15011         * gengtype.h: Make `info' a pointer-to-const.
15012         * gengtype-yacc.y (yacc_ids): Use xasprintf.
15013
15014         * gengtype.c (write_gc_structure_fields): Remove implementation
15015         of `always' option, add `default' option.
15016         * doc/gty.texi (GTY Options): Remove documentation of `always',
15017         add `default'.
15018
15019 2002-09-16  Hans-Peter Nilsson  <hp@bitrange.com>
15020
15021         * output.h: Remove #ifdef RTX_CODE and #ifdef TREE_CODE.
15022
15023 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15024
15025         * m68hc11.md (addhi_sp): Fix uninitialized variable bug.
15026
15027         * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h
15028         instead of the *-protos.h file directly.
15029         * t-c4x, t-i370, t-v850: Depend on $(TM_P_H).
15030         * darwin.c (machopic_output_stub): Move prototype ...
15031         * darwin-protos.h (machopic_output_stub): ... here.
15032         * rs6000-protos.h (machopic_output_stub): Don't declare.
15033
15034 2002-09-16  Richard Henderson  <rth@redhat.com>
15035
15036         * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
15037
15038 2002-09-16  Richard Henderson  <rth@redhat.com>
15039
15040         * real.c, real.h: Rewrite from scratch.
15041
15042         * Makefile.in (simplify-rtx.o): Depend on TREE_H.
15043         (paranoia): New target.
15044         * builtins.c (fold_builtin_inf): Use new real.h interface.
15045         * c-common.c (builtin_define_with_hex_fp_value): Likewise.
15046         * c-lex.c (interpret_float): Likewise.
15047         * emit-rtl.c (gen_lowpart_common): Likewise.
15048         * optabs.c (expand_float): Use real_2expN.
15049         * config/ia64/ia64.md (divsi3, udivsi3): Likewise.
15050         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New.
15051         (FLOAT_WORDS_BIG_ENDIAN): New.
15052         * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE
15053         directly to REAL_VALUE_NEGATIVE.
15054         * loop.c (canonicalize_condition): Likewise.
15055         * simplify-rtx.c: Include tree.h.
15056         (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX
15057         with floating-point result modes.
15058         * toplev.c (backend_init): Call init_real_once.
15059
15060         * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE.
15061         * tree.c (build_real): Likewise.
15062         * config/alpha/alpha.c, config/vax/vax.c (float_strings,
15063         float_values, inited_float_values, check_float_value): Remove.
15064         * config/alpha/alpha.h, config/m68hc11/m68hc11.h,
15065         config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove.
15066         * doc/tm.texi (CHECK_FLOAT_VALUE): Remove.
15067         (VAX_HALFWORD_ORDER): Remove.
15068
15069 2002-09-16  Ulrich Weigand  <uweigand@de.ibm.com>
15070
15071         * config/s390/s390.c: (legitimize_la_operand): Remove, replace by ...
15072         (s390_load_address): ... this new function.
15073         (s390_decompose_address): Allow the argument pointer and all
15074         virtual registers as 'pointer' registers.
15075         (s390_expand_plus_operand): Use s390_load_address.
15076         config/s390/s390.md (movti, movdi, movdf splitters): Likewise.
15077         ("force_la_31"): New insn pattern.
15078         config/s390/s390-protos.h (legitimize_la_operand): Remove.
15079         (s390_load_address): Add prototype.
15080
15081         * config/s390/s390.c: Include "optabs.h".
15082         (s390_expand_movstr, s390_expand_clrstr, s390_expand_cmpstr): New.
15083         config/s390/s390-protos.h (s390_expand_movstr, s390_expand_clrstr,
15084         s390_expand_cmpstr): Add prototypes.
15085         config/s390/s390.md ("movstrdi", "movstrsi"): Call s390_expand_movstr.
15086         ("movstrdi_short"): Rename to "movstr_short_64".  Change predicates
15087         for operands 0 and 1 to "memory_operand".  Add type attribute.
15088         ("movstrsi_short"): Rename to "movstr_short_31".  Change predicates
15089         for operands 0 and 1 to "memory_operand".  Add type attribute.
15090         ("movstrdi_long", "movstrsi_long"): Remove.
15091         ("movstrdi_64"): Rename to "movstr_long_64". Add type attribute.
15092         ("movstrsi_31"): Rename to "movstr_long_31". Add type attribute.
15093         ("clrstrdi", "clrstrsi"): Call s390_expand_clrstr.
15094         ("clrstrsico"): Remove, replace by ...
15095         ("clrstr_short_64", "clrstr_short_31"): ... these new patterns.
15096         ("clrstrsi_64"): Rename to "clrstr_long_64".
15097         ("clrstrsi_31"): Rename to "clrstr_long_31".
15098         ("cmpstrdi", "cmpstrsi"): Call s390_expand_cmpstr.
15099         ("cmpstr_const"): Remove, replace by ...
15100         ("cmpstr_short_64", "cmpstr_short_31"): ... these new patterns.
15101         ("cmpstr_64"): Rename to "cmpstr_long_64".
15102         ("cmpstr_31"): Rename to "cmpstr_long_31".
15103
15104 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
15105
15106         * ABOUT-NLS: Follow spelling conventions.
15107         * ChangeLog: Likewise.
15108         * ChangeLog.1: Likewise.
15109         * ChangeLog.2: Likewise.
15110         * ChangeLog.3: Likewise.
15111         * ChangeLog.4: Likewise.
15112         * ChangeLog.5: Likewise.
15113         * ChangeLog.6: Likewise.
15114         * FSFChangeLog.10: Likewise.
15115         * FSFChangeLog.11: Likewise.
15116         * c-common.c: Likewise.
15117         * c-lex.c: Likewise.
15118         * c-objc-common.c: Likewise.
15119         * cppexp.c: Likewise.
15120         * cppinit.c: Likewise.
15121         * cpplex.c: Likewise.
15122         * doloop.c: Likewise.
15123         * flow.c: Likewise.
15124         * function.c: Likewise.
15125         * integrate.c: Likewise.
15126         * loop.c: Likewise.
15127         * reg-stack.c: Likewise.
15128         * reload.h: Likewise.
15129         * ssa.c: Likewise.
15130
15131 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15132
15133         * Makefile.in (vmsdbgout.o): Depend on $(TARGET_H)
15134         * vmsdbgout.c: Include "target.h".
15135
15136 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
15137
15138         * ChangeLog: Follow spelling conventions.
15139         * ChangeLog.0: Likewise.
15140         * ChangeLog.1: Likewise.
15141         * ChangeLog.2: Likewise.
15142         * ChangeLog.4: Likewise.
15143         * ChangeLog.6: Likewise.
15144         * config.gcc: Likewise.
15145         * dwarfout.c: Likewise.
15146         * reload1.c: Likewise.
15147         * simplify-rtx.c: Likewise.
15148         * unwind-sjlj.c: Likewise.
15149         * config/avr/avr.h: Likewise.
15150         * config/d30v/d30v.h: Likewise.
15151         * config/frv/frv.c: Likewise.
15152         * config/frv/frv.h: Likewise.
15153         * config/ip2k/ip2k.h: Likewise.
15154         * config/m88k/m88k-move.sh: Likewise.
15155         * config/stormy16/stormy16.c: Likewise.
15156         * config/stormy16/stormy16.h: Likewise.
15157         * doc/extend.texi: Likewise.
15158         * doc/interface.texi: Likewise.
15159         * doc/invoke.texi: Likewise.
15160         * doc/md.texi: Likewise.
15161         * doc/rtl.texi: Likewise.
15162         * doc/tm.texi: Likewise.
15163         * doc/trouble.texi: Likewise.
15164         * ginclude/float.h: Likewise.
15165         * treelang/treelang.texi: Likewise.
15166
15167 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15168
15169         * i386-protos.h (i386_pe_dllexport_name_p,
15170         i386_pe_dllimport_name_p, i386_pe_unique_section,
15171         i386_pe_declare_function_type, i386_pe_record_external_function,
15172         i386_pe_record_exported_symbol, i386_pe_asm_file_end): Add
15173         prototype.
15174         * i386/t-cygwin (winnt.o): Depend on $(TM_P_H).
15175         * i386/t-interix (winnt.o): Likewise.
15176
15177         * v850-protos.h (v850_output_addr_const_extra): Prototype.
15178
15179 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
15180
15181         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Add
15182         MIPS ABI CPP macros.
15183         (TARGET_CPU_CPP_BUILTINS): Redefine.
15184         (SUBTARGET_EXTRA_SPECS): Remove subtarget_endian_default.
15185         (SUBTARGET_ENDIAN_DEFAULT_SPEC): Remove.
15186
15187 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15188
15189         * ia64/aix.h (TARGET_OS_CPP_BUILTINS): Fix typo.
15190
15191 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
15192
15193         * ChangeLog: Follow spelling conventions.
15194         * ChangeLog.0: Likewise.
15195         * ChangeLog.1: Likewise.
15196         * ChangeLog.2: Likewise.
15197         * ChangeLog.3: Likewise.
15198         * ChangeLog.4: Likewise.
15199         * ChangeLog.5: Likewise.
15200         * ChangeLog.6: Likewise.
15201         * FSFChangeLog.10: Likewise.
15202         * FSFChangeLog.11: Likewise.
15203         * c-common.c: Likewise.
15204         * c-common.h: Likewise.
15205         * c-format.c: Likewise.
15206         * c-opts.c: Likewise.
15207         * cpplib.c: Likewise.
15208         * langhooks.h: Likewise.
15209         * real.c: Likewise.
15210         * reg-stack.c: Likewise.
15211         * toplev.c: Likewise.
15212         * config/arm/arm.c: Likewise.
15213         * config/arm/arm.md: Likewise.
15214         * config/arm/linux-gas.h: Likewise.
15215         * config/arm/netbsd.h: Likewise.
15216         * config/c4x/c4x.c: Likewise.
15217         * config/c4x/c4x.h: Likewise.
15218         * config/c4x/c4x.md: Likewise.
15219         * config/c4x/libgcc.S: Likewise.
15220         * config/fr30/fr30.md: Likewise.
15221         * config/frv/frv.md: Likewise.
15222         * config/ia64/ia64.md: Likewise.
15223         * config/mips/mips.h: Likewise.
15224         * config/mn10300/mn10300.c: Likewise.
15225         * config/stormy16/stormy16.c: Likewise.
15226         * config/v850/v850.md: Likewise.
15227         * doc/extend.texi: Likewise.
15228         * doc/invoke.texi: Likewise.
15229         * doc/md.texi: Likewise.
15230
15231 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
15232
15233         * config/netbsd.h (LIB_SPEC): Include the appropriate pthread
15234         library if -pthread is specified.
15235
15236 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
15237
15238         * config.gcc (*-*-netbsd*): Set thread_file to 'posix'
15239         for --enable-threads=yes and --enable-threads=posix.
15240
15241 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
15242
15243         * config/sparc/cypress.md: Replace Sparc with SPARC.
15244         * config/sparc/freebsd.h: Likewise.
15245         * config/sparc/gmon-sol2.c: Likewise.
15246         * config/sparc/hypersparc.md: Likewise.
15247         * config/sparc/lb1spc.asm: Likewise.
15248         * config/sparc/lb1spl.asm: Likewise.
15249         * config/sparc/linux.h: Likewise.
15250         * config/sparc/linux64.h: Likewise.
15251         * config/sparc/lynx.h: Likewise.
15252         * config/sparc/sol2.h: Likewise.
15253         * config/sparc/sparc-modes.def: Likewise.
15254         * config/sparc/sparc.c: Likewise.
15255         * config/sparc/sparc.h: Likewise.
15256         * config/sparc/sparc.md: Likewise.
15257         * config/sparc/sparclet.md: Likewise.
15258         * config/sparc/supersparc.md: Likewise.
15259         * config/sparc/sysv4.h: Likewise.
15260         * config/sparc/vxsim.h: Likewise.
15261         * config/sparc/vxsparc64.h: Likewise.
15262
15263 2002-09-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15264
15265         * c-lex.c (cb_ident): Mark variable with ATTRIBUTE_UNUSED.
15266         * collect2.c (ignore_library, aix_std_libs): Move into the context
15267         where it is used.
15268         * m68hc11.c (m68hc11_autoinc_compatible_p): Delete prototype.
15269         (autoinc_mode, m68hc11_make_autoinc_notes): Add prototypes.
15270         * m88k.c (output_call): Wrap variables with macro controlling use.
15271         * rs6000.md: Likewise.  Const-ify variable.
15272         * sh.h (ASM_OUTPUT_LABELREF): Likewise.
15273         * final.c (only_leaf_regs_used): Likewise.
15274         * regrename.c (maybe_mode_change): Mark parameter with
15275         ATTRIBUTE_UNUSED.
15276         * reload.c (find_valid_class): Likewise.  Likewise for variable.
15277         (find_reloads_address_1): Likewise.
15278         * varasm.c (weak_finish): Wrap variable with macro controlling use.
15279
15280 2002-09-14  Marek Michalkiewicz  <marekm@amelek.gda.pl>
15281
15282         * config/avr/avr.c (output.h): Move after inclusion of tree.h.
15283
15284 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
15285
15286         * ChangeLog: Follow spelling conventions.
15287         * ChangeLog.0: Likewise.
15288         * ChangeLog.2: Likewise.
15289         * ChangeLog.3: Likewise.
15290         * ChangeLog.4: Likewise.
15291         * ChangeLog.5: Likewise.
15292         * ChangeLog.6: Likewise.
15293         * cppfiles.c: Likewise.
15294         * cppinit.c: Likewise.
15295         * cpplib.h: Likewise.
15296         * cse.c: Likewise.
15297         * debug.h: Likewise.
15298         * df.c: Likewise.
15299         * dominance.c: Likewise.
15300         * hashtable.c: Likewise.
15301         * hashtable.h: Likewise.
15302         * loop.c: Likewise.
15303         * config/arm/README-interworking: Likewise.
15304         * config/arm/arm.c: Likewise.
15305         * config/arm/arm.h: Likewise.
15306         * config/arm/arm.md: Likewise.
15307         * config/dsp16xx/dsp16xx.h: Likewise.
15308         * config/frv/frv.c: Likewise.
15309         * config/frv/frv.h: Likewise.
15310         * config/ip2k/ip2k.h: Likewise.
15311         * config/rs6000/rs6000.c: Likewise.
15312         * config/stormy16/stormy-abi: Likewise.
15313         * config/stormy16/stormy16.h: Likewise.
15314         * config/v850/v850.c: Likewise.
15315
15316 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
15317
15318         * loop.c: Fix a comment typo.
15319
15320 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
15321
15322         * config/fr30/fr30.h: Fix comment typos.
15323         * config/frv/frv.c: Likewise.
15324         * config/i386/xmmintrin.h: Likewise.
15325         * config/mips/mips.c: Likewise.
15326         * config/sh/sh.c: Likewise.
15327
15328 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
15329
15330         * haifa-sched.c: Follow spelling conventions.
15331         * regclass.c: Likewise.
15332         * regrename.c: Likewise.
15333         * config/fp-bit.c: Likewise.
15334         * config/frv/frv.h: Likewise.
15335         * config/m88k/m88k.c: Likewise.
15336         * config/mcore/mcore.c: Likewise.
15337         * config/rs6000/darwin.h: Likewise.
15338         * config/rs6000/gnu.h: Likewise.
15339         * config/rs6000/linux.h: Likewise.
15340         * config/rs6000/linux64.h: Likewise.
15341         * config/rs6000/rs6000.c: Likewise.
15342         * config/rs6000/rs6000.h: Likewise.
15343         * config/sh/sh.c: Likewise.
15344         * config/sparc/sparc.c: Likewise.
15345         * config/sparc/ultra1_2.md: Likewise.
15346
15347 2002-09-14  Stephane Carrez  <stcarrez@nerim.fr>
15348
15349         * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
15350         memory operand when source is 0 (K constraint).
15351         ("movsi_internal"): Likewise.
15352         ("movdf_internal"): Likewise.
15353         ("movsf_internal"): Likewise.
15354
15355 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
15356
15357         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
15358         targetm.binds_local_p to set SYMBOL_REF_FLAG.
15359         (rs6000_xcoff_encode_section_info): Likewise.
15360         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15361
15362 2002-09-10  Theodore A. Roth  <troth@verinet.com>
15363
15364         * gcc/config/avr/avr.h: Set default options for C++ for avr.
15365
15366 2002-09-13  Roger Sayle  <roger@eyesopen.com>
15367
15368         * stmt.c (struct nexting): Remove unused alt_end_label field.
15369         (expand_start_loop): Delete initialization of alt_end_label.
15370         (expand_start_null_loop): Likewise.
15371         (expand_exit_loop_if_false): Delete updating of alt_end_label.
15372
15373 2002-09-13  Richard Henderson  <rth@redhat.com>
15374
15375         * Makefile.in (toplev.o): Depend on real.h.
15376         (print-rtl.o, varasm.o, ifcvt.o): Likewise.
15377
15378 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
15379
15380         * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
15381         * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
15382         * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
15383
15384 2002-09-13  Nathan Sidwell  <nathan@codesourcery.com>
15385
15386         * ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
15387
15388 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
15389
15390         * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
15391         ia64*-*-linux*): Set extra_parts.
15392         * config/ia64/t-aix (EXTRA_PARTS): Remove.
15393         * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
15394
15395 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
15396
15397         * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
15398         * config/h8300/h8300.c: Likewise.
15399         * config/h8300/h8300.h: Likewise.
15400         * config/h8300/h8300.md: Likewise.
15401         * doc/invoke.texi: Likewise.
15402
15403 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
15404
15405         * config/h8300/h8300.c (h8300_init_once): Fix formatting.
15406
15407 2002-09-13  Richard Henderson  <rth@redhat.com>
15408
15409         * config/alpha/alpha.md (attr type): Add callpal.
15410         (imb, trap, load_tp, set_tp): Use it.
15411         * config/alpha/ev4.md (ev4_callpal): New.
15412         * config/alpha/ev5.md (ev5_callpal): New.
15413         * config/alpha/ev6.md (ev6_ibr): Handle callpal.
15414         * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
15415         (alphaev5_insn_pipe): Likewise.
15416
15417 2002-09-13  Andreas Jaeger  <aj@suse.de>
15418
15419         * Makefile.in (print-rtl.o): Depend on CONFIG_H.
15420
15421 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
15422
15423         * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
15424         LIB2ADDEH): New, set to NULL.
15425         (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
15426
15427 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
15428
15429         * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
15430         (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
15431         (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
15432         Add declarations.
15433         (_U_Qfneg): Remove.
15434
15435 2002-09-13 Dhananjay Deshpande  <dhananjayd@kpit.com>
15436
15437         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
15438         for H8/300, H8S aa:8 mode.
15439         (TINY_CONSTANT_ADDRESS_P): Add support for H8S aa:16 mode.
15440         * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
15441         for H8/300 aa:8 mode.
15442
15443 2002-09-13  Hartmut Penner  <hpenner@de.ibm.com>
15444
15445         * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
15446         insns.
15447
15448 2002-09-12  Richard Henderson  <rth@redhat.com>
15449
15450         * Makefile.in (HOST_PRINT): Use print-rtl1.o
15451         (print-rtl.o): Don't define GENERATOR_FILE.
15452         (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
15453         * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
15454         unless GENERATOR_FILE.
15455
15456 2002-09-12  Stan Shebs  <shebs@apple.com>
15457
15458         * config/darwin.h (USER_LABEL_PREFIX): Define here...
15459         * config/i386/darwin.h: ... instead of here.
15460
15461         * target.h (struct gcc_target): New field
15462         terminate_dw2_eh_frame_info.
15463         * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
15464         (TARGET_INITIALIZER): Add it.
15465         * dwarf2out.c (output_call_frame_info): Use target hook.
15466         * dwarf2asm.c (dw2_asm_output_delta): Use macro
15467         ASM_OUTPUT_DWARF_DELTA if defined.
15468         * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
15469         (ASM_OUTPUT_DWARF_DELTA): Ditto.
15470         (ASM_OUTPUT_DWARF_OFFSET): Ditto.
15471         (ASM_OUTPUT_DWARF_PCREL): Ditto.
15472         * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
15473         (powerpc-*-darwin*): Ditto.
15474         * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
15475         to work correctly for Darwin.
15476         * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
15477         (STARTFILE_SPEC): Add crtbegin.o.
15478         (ENDFILE_SPEC): Define.
15479         (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
15480         (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
15481         (ASM_OUTPUT_DWARF_DELTA): Define.
15482         (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
15483         * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
15484
15485 2002-09-13  Alan Modra  <amodra@bigpond.net.au>
15486
15487         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
15488         nesting.  Correct test for non-PowerPC64 ELF ABI_AIX.
15489         * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
15490
15491 2002-09-12  Zack Weinberg  <zack@codesourcery.com>
15492
15493         * toplev.c: Move default definition of USER_LABEL_PREFIX...
15494         * defaults.h: ... here.
15495
15496 2002-09-12  Richard Henderson  <rth@redhat.com>
15497
15498         * vax.c: Include tree.h earlier.
15499
15500 2002-09-12  Stan Shebs  <shebs@apple.com>
15501
15502         * config/darwin.c (machopic_finish): Remove #if 0 chunks.
15503         (machopic_operand_p): Ditto.
15504
15505 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
15506
15507         * config/arm/arm.c (arm_compute_initial_elimination_offset):
15508         Fix a comment typo.
15509
15510 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
15511
15512         * toplev.c (do_abort): Fix a comment typo.
15513
15514 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
15515
15516         * cselib.c: Fix comment formatting.
15517         * gengtype.c: Likewise.
15518
15519 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
15520
15521         * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
15522         (udivmodhi4): Likewise.
15523
15524 2002-09-12  Graham Stott  <graham.stott@btinternet.com>
15525             Roger Sayle  <roger@eyesopen.com>
15526
15527         * i386.c (any_fp_register_operand, fp_register_operand,
15528         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
15529         New predicate functions.
15530         * i386-protos.h:  Add their prototypes.
15531         * i386.h: Add them to PREDICATE_CODES.
15532         * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
15533         "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
15534         "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
15535         "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
15536         "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
15537         "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
15538         "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
15539         "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
15540         "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
15541         "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
15542         "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
15543         Use these new predicates to simplify and correct the use of
15544         FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
15545
15546 2002-09-12  Jason Merrill  <jason@redhat.com>
15547
15548         * diagnostic.c (output_add_identifier): New fn.
15549         * diagnostic.h: Declare it.
15550
15551         * calls.c (store_one_arg): Use size_in_bytes to determine the
15552         amount of space to push.
15553
15554 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
15555
15556         * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
15557
15558 2002-09-12  Ulrich Weigand  <uweigand@de.ibm.com>
15559
15560         * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
15561         * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
15562         (s390_select_ccmode): Likewise.
15563         (s390_branch_condition_mask): Likewise.
15564         (optimization_options): Do not set flag_branch_on_count.
15565         (s390_split_branches): Handle doloop branches.
15566         (s390_chunkify_pool): Likewise.
15567         * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
15568         ("doloop_end"): New expander.
15569         ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
15570         associated splitters): New.
15571
15572 2002-09-11  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15573
15574         * genattrtab.c (simplify_cond): Remove unused variable(s).
15575         * global.c (record_conflicts): Likewise.
15576         * jump.c (rebuild_jump_labels): Likewise.
15577         * loop.c (scan_loop, check_final_value): Likewise.
15578         * ra-colorize.c (colorize_one_web, assign_colors): Likewise.
15579         * reload1.c (eliminate_regs_in_insn, do_input_reload): Likewise.
15580         * rtlanal.c (reg_set_p): Likewise.
15581         * stmt.c (expand_asm_operands, expand_decl): Likewise.
15582         * genautomata.c (empty_reserv): Remove.
15583         * loop.c (max_luid): Likewise.
15584         * sched-rgn.c (bitlst_table_size): Likewise.
15585
15586 2002-09-11  Nathan Sidwell  <nathan@codesourcery.com>
15587
15588         Reimplement gcov format.
15589         * gcov-io.h: Replace.
15590         * gcov.c: Reimplement.
15591         * gcov-iov.c: New file.
15592         * gcov-dump.c: New file.
15593         * libgcc2.c (L_bb): Replace with ...
15594         (L_gcov): ... this.
15595         (struct bb_function_info, struct bb): Remove.
15596         (inhibit_libc): Never inhibit.
15597         (gcov_list, gcov_crc): New static variables.
15598         (gcov_version_mismatch): New static function.
15599         (__bb_exit_func): Renamed to ...
15600         (__gcov_exit): ... here. Made static. Reimplement.
15601         (__gcov_init_func): Rename to ...
15602         (__gcov_init): ... here. Check version, update crc.
15603         (__bb_fork_func): Rename to ...
15604         (__gcov_flush): ... here.
15605         * libgcc2.h (struct bb, __bb_exit_func, __bb_init_func,
15606         __bb_fork_func, gcov_type, __bb_find_arc_counters): Remove.
15607         * calls.c (expand_call): Call __gcov_flush.
15608         * profile.c (bb_file, last_bb_file_name): Remove.
15609         (bbg_file_name): New global variable.
15610         (output_gcov_string): Remove.
15611         (get_exec_counts): Reimplement.
15612         (branch_prob): Reimplement gcov file writing.
15613         (init_branch_prob): Create bbg_file_name, don't create
15614         bb_file_name.
15615         (end_branch_prob): Adjust. Don't remove counter file when
15616         instrumenting ourselves.
15617         (create_profiler): Adjust.
15618         * doc/gcov.texi (Gcov Data Files): Remove detailed specification,
15619         point to gcov-io.h.
15620         * Makefile.in (LANGUAGES): Add gcov-dump.
15621         (coverageexts): Remove .bb.
15622         (STAGESTUFF): Add gcov-dump.
15623         (LIB2FUNCS_ST): Replace _bb with _gcov.
15624         (profile.o): Depend on gcov-iov.h.
15625         (final.o): Don't depend on profile.h, gcov.h.
15626         (gcov.o): Depend on gcov-iov.h.
15627         (gcov-iov.o): New target.
15628         (gcov-iov): New target.
15629         (gcov-iov.h): New target.
15630         (gcov-dump.o): New target.
15631         (GCOV_DUMP_OBJS): New variable.
15632         (gcov-dump): New target.
15633         (distclean): Remove coverageexts.
15634         (stage1): Remove coverageexts.
15635
15636 2002-09-11  Hartmut Penner  <hpenner@de.ibm.com>
15637
15638         * fold-const.c (make_range): Only narrow to signed range if
15639         the signed range is smaller than the unsigned range.
15640
15641 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
15642
15643         * emit-rtl.c (set_mem_size): New function.
15644         * expr.h (set_mem_size): Declare.
15645         * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
15646         (expand_block_move): Instead, use adjust_address and
15647         replace_equiv_address to generate proper aliasing info.
15648         Move common code out of conditionals.  Localize vars.
15649
15650 2002-09-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
15651
15652         * optabs.c (expand_binop): Minor cleanup.
15653         (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
15654
15655 2002-09-11  Dan Nicolaescu  <dann@ics.uci.edu>
15656
15657         * print-tree.c (print_node): Print the restrict qualifier.
15658
15659 2002-09-11  Janis Johnson  <janis187@us.ibm.com>
15660
15661         * doc/install.texi: Fix typos.
15662
15663 2002-09-11  Zack Weinberg  <zack@codesourcery.com>
15664
15665         * Makefile.in: Remove all references to s-under and underscore.c.
15666         * collect2.c, tlink.c: Change all uses of prepends_underscore
15667         to look directly at USER_LABEL_PREFIX.
15668
15669 2002-09-11  David Edelsohn  <edelsohn@gnu.org>
15670
15671         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
15672         alignment to csect.
15673         (rs6000_xcoff_unique_section): Only set section name for public
15674         data.
15675         (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
15676         * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
15677         duplicate definition.
15678
15679 2002-09-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15680
15681         * pa.md (extzv): Check predicates before emitting extzv_32.
15682         (insv): Likewise.
15683
15684 2002-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
15685
15686         * config/s390/s390.h (MOVE_MAX): Define to correct value.
15687         (MAX_MOVE_MAX): Define.
15688         (MOVE_BY_PIECES_P): Define.
15689         (CLEAR_BY_PIECES_P): Define.
15690
15691 2002-09-10  Denis Chertykov  <denisc@overta.ru>
15692
15693         * config/avr/avr.md (movstrhi): Use right operands for conversion.
15694
15695 2002-09-10  Richard Earnshaw  <rearnsha@arm.com>
15696
15697         PR c/7873
15698         * arm.md (insv): Use reg_or_int_operand for operand[3].
15699
15700 2002-09-10  David Edelsohn  <edelsohn@gnu.org>
15701
15702         * rs6000.c (rs6000_assemble_visibility): Protect declaration
15703         inside macro.  Correct function definition typo.
15704         (rs6000_xcoff_section_type_flags): New function.
15705         (TARGET_SECTION_TYPE_FLAGS): Remove definition.
15706         (rs6000_elf_section_type_flags): Call default_section_type_flags_1
15707         with appropriate PIC test.
15708         (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
15709         determine readonly.
15710         (rs6000_binds_local_p): Combine PIC flags.
15711         * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
15712         * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
15713
15714 2002-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15715
15716         * h8300.md: Fix signed/unsigned warnings.
15717         * mcore.md: Likewise.
15718         * mn10300.c (mask_ok_for_mem_btst): Likewise.
15719
15720 2002-09-09  Per Bothner  <per@bothner.com>
15721
15722         * print-tree.c (print_node):  In a STRING_CST, escape non-ascii
15723         characters, and only print TREE_STRING_LENGTH chars.
15724
15725 2002-09-09  Steve Ellcey  <sje@cup.hp.com>
15726
15727         * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
15728         (ASM_FILE_END) New.
15729         * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
15730         * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
15731         * config/ia64/ia64.c (ia64_asm_output_external): Create list
15732         of external functions if TARGET_HPUX_LD is true.
15733         (ia64_hpux_add_extern_decl): New, routine to put names on
15734         list of external functions.
15735         (ia64_hpux_asm_file_end): Put out declarations for external
15736         functions if and only if they are used.
15737
15738 2002-09-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15739
15740         * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
15741         on TARGET_64BIT before pic register restore.
15742
15743 2002-09-09  David Edelsohn  <edelsohn@gnu.org>
15744
15745         * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
15746         (TARGET_HAVE_TLS): New description.
15747
15748 2002-09-09  Janis Johnson  <janis187@us.ibm.com>
15749
15750         * doc/extend.texi (Statement Exprs): Fix broken link.
15751
15752 2002-09-09  Denis Chertykov  <denisc@overta.ru>
15753
15754         * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
15755         right conversion of operands[1].
15756
15757 2002-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
15758
15759         * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
15760         commutative.  Use "nonimmediate_operand" instead of "register_operand"
15761         as predicate for operand 0.  Move to after the "*tmXX_mem" insns.
15762
15763         ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
15764         as commutative.
15765
15766         ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
15767         mark as commutative.  Use "nonimmediate_operand" instead of
15768         "register_operand" as predicate for operand 1.
15769
15770         ("movstrictsi"): Fix typo in insn name.
15771
15772 2002-09-09  Jan Hubicka  <jh@suse.cz>
15773
15774         * i386.c (index_register_operand): New.
15775         * i386.h (predicate_codes): Add new predicate.
15776         * i386.md (lea_general_*): Use index_register_operand
15777         (ashift to lea splitter): Do not produce invalid leas
15778         (ashift to mov+ashift split): New.
15779
15780 2002-09-09  Nick Clifton  <nickc@redhat.com>
15781
15782         * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
15783         Fix folding marks.
15784
15785 2002-09-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
15786             J"orn Rennecke <joern.rennecke@superh.com>
15787
15788         * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
15789
15790 2002-09-09  Alan Modra  <amodra@bigpond.net.au>
15791
15792         * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
15793         (function_ok_for_sibcall): Use binds_local_p.  Respect longcall
15794         attributes.
15795
15796 2002-09-08  Nathan Sidwell  <nathan@codesourcery.com>
15797
15798         * basic_block.h (gcov_type): Explain why it is signed.
15799         * final.c: Don't include profile.h.
15800         (struct function_list, functions_head, functions_tail,
15801         end_final): Moved to profile.c
15802         (final): Move arc chaining code to profile.c.
15803         * function.c (prepare_function_start): Remove duplicate line.
15804         * output.h (end_final): Remove prototype.
15805         * predict.c (estimate_loops_at_level): Use gcov_type.
15806         * profile.c (struct function_list, functions_head,
15807         functions_tail): Moved from final.c
15808         (need_func_profiler): Remove.
15809         (instrument_edges): Don't set need_func_profiler.
15810         (get_exec_counts): Avoid signed/unsigned warning.
15811         (compute_checksum): Use crc32.
15812         (branch_prob): Adjust. Chain onto functions_head.
15813         (init_branch_prob): Absorb init_edge_profiler.
15814         (init_edge_profiler): Remove.
15815         (create_profiler): Moved and renamed from final.c:end_final.
15816         Emit data and constructor.
15817         (output_func_start_profiler): Remove.
15818         * profile.h (struct profile_info): checksum is unsigned.
15819         * rtl.h (output_func_start_profiler): Remove prototype.
15820         (create_profiler): Declare.
15821         * toplev.c (compile_file): Call create_profiler, if instrumenting
15822         arcs. Don't call end_final.
15823
15824 2002-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15825
15826         * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
15827
15828 2002-09-08  Richard Henderson  <rth@redhat.com>
15829
15830         * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
15831         (DW_OP_GNU_push_tls_address): New.
15832         (DW_OP_lo_user): Fix.
15833         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
15834         (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
15835         (size_of_loc_descr): Likewise.
15836         (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
15837         (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
15838         (loc_descriptor_from_tree): Handle TLS variables.
15839         (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
15840         (add_location_or_const_value_attribute): ... not here.  Defer
15841         to loc_descriptor_from_tree for TLS variables.
15842
15843         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
15844         * config/i386/i386.c (i386_output_dwarf_dtprel): New.
15845         * config/i386/i386-protos.h: Update.
15846
15847 2002-09-08  Roger Sayle  <roger@eyesopen.com>
15848
15849         PR optimization/6405
15850         * unroll.c (loop_iterations): last_loop_insn should be the previous
15851         non-note instruction before loop->end.
15852         * loop.c (strength_reduce): The conditional jump is the last
15853         non-note instruction before loop->end (as above).
15854
15855 2002-09-08  Roger Sayle  <roger@eyesopen.com>
15856
15857         * combine.c (try_combine): Handle the case that undobuf.other_insn
15858         has been turned into a return or unconditional jump, by inserting
15859         a BARRIER if necessary.
15860         (simplify_set):  Test if a condition code setter has a constant
15861         comparison at compile time, if so convert this insn to a no-op move
15862         and update/simplify the condition code user (undobuf.other_insn).
15863
15864 2002-09-08  Krister Walfridsson  <cato@df.lth.se>
15865
15866         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
15867         (CLEAR_INSN_CACHE): Define.
15868
15869 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
15870
15871         * basic-block.h: Fix comment formatting.
15872         * c-common.c: Likewise.
15873         * c-common.h: Likewise.
15874         * c-lex.c: Likewise.
15875         * c-pretty-print.c: Likewise.
15876         * cfglayout.c: Likewise.
15877         * cfgloop.c: Likewise.
15878         * defaults.h: Likewise.
15879         * et-forest.c: Likewise.
15880         * explow.c: Likewise.
15881         * function.h: Likewise.
15882         * gcov.c: Likewise.
15883         * genattrtab.c: Likewise.
15884         * gengtype.c: Likewise.
15885         * ifcvt.c: Likewise.
15886         * libgcc2.c: Likewise.
15887         * loop.c: Likewise.
15888         * profile.c: Likewise.
15889         * ra-build.c: Likewise.
15890         * real.c: Likewise.
15891         * rtl.h: Likewise.
15892         * tracer.c: Likewise.
15893         * tree-inline.c: Likewise.
15894         * varasm.c: Likewise.
15895
15896 2002-09-08  Jan Hubicka  <jh@suse.cz>
15897
15898         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
15899         handling.
15900
15901         * loop.c (loop_givs_reduce):  Emit addition after.
15902
15903 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
15904
15905         * varasm.c (default_assemble_visibility): Rename from
15906         assemble_visibility.
15907         * output.h: Here too.
15908         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
15909         * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
15910
15911 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
15912
15913         * reload.c (find_reloads <p constraint>): Pass operand_mode to
15914         find_reloads_address.
15915
15916 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
15917
15918         * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
15919         (anonymous pattern): Likewise.
15920
15921 2002-09-07  Igor Shevlyakov <igor@microunity.com>
15922
15923         * machmode.def: Add modes for half-float vectors.
15924
15925 2002-09-07  Scott Snyder  <snyder@fnal.gov>
15926
15927         PR target/7374
15928         * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
15929
15930 2002-09-07  Roger Sayle  <roger@eyesopen.com>
15931
15932         * basic-block.h (struct loop): Remove unused cont_dominator field.
15933
15934 2002-09-07  Igor Shevlyakov <igor@microunity.com>
15935
15936         * varasm.c (decode_rtx_const): Don't check undefined field for
15937         CONST_VECTOR.
15938
15939 2002-09-07  Glen Nakamura  <glen@imodulo.com>
15940
15941         PR opt/7814
15942         * sched-deps.c (sched_analyze_insn): Make sure to add insn
15943         to reg_last->sets after flushing the dependency lists to guarantee
15944         that subsequent clobbers will be dependent on it.
15945
15946 2002-09-07  Igor Shevlyakov <igor@microunity.com>
15947
15948         * combine.c (simplify_shift_const): Calculate rotate count
15949         correctly for vector operands.
15950
15951 2002-09-07  Ansgar Esztermann  <ansgar@thphy.uni-duesseldorf.de>
15952
15953         * c-typeck.c (c_tree_expr_nonnegative_p): New function.
15954         (build_binary_op): Call c_tree_expr_nonnegative_p rather than
15955         tree_expr_nonnegative_p.
15956         (build_conditional_expr): Likewise.
15957         * c-tree.h (c_tree_expr_nonnegative_p): Declare.
15958
15959 2002-09-07  Richard Henderson  <rth@redhat.com>
15960
15961         * builtins.def (inf, inff, infl): Mark const.
15962         (huge_val, huge_valf, huge_vall): Likewise.
15963         (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
15964
15965         * real.c (ereal_inf): Clear E before use.
15966
15967 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
15968
15969         * config/h8300/h8300.md (udivmodqi4): Split the pattern into
15970         an expander and an anonymous pattern.  Zero out the upper half
15971         of the dividend in the expander.
15972         (udivmodqi4): Likewise.
15973
15974 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
15975
15976         * config/h8300/h8300.c: Fix formatting.
15977         * config/h8300/h8300.h: Likewise.
15978         * config/h8300/h8300.md: Likewise.
15979
15980 2002-09-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15981
15982         * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
15983         information.
15984
15985 2002-09-07  Graham Stott  <graham.stott@btinternet.com>
15986
15987        * rtlanal.c (dead_or_set_regno_p): Fix typo.
15988
15989 2002-09-07  Alan Modra  <amodra@bigpond.net.au>
15990
15991         * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15992
15993         * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
15994         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
15995         (TARGET_ASM_OUT): Add the above here.
15996         * target.h (struct gcc_target): Add "visibility" field.
15997         * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
15998         * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
15999         (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
16000         (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
16001
16002 2002-09-06  Ziemowit Laski <zlaski@apple.com>
16003
16004         * c-lang.c (objc_is_id): New stub.
16005         * c-tree.h (objc_is_id): New forward declaration.
16006         * c-typeck.c (build_c_cast): Do not strip protocol
16007         qualifiers from 'id' type.
16008         * objc/objc-act.c (objc_comptypes): Correct handling
16009         of protocol qualifiers.
16010         (objc_is_id): New.
16011
16012 Fri Sep  6 13:10:08 2002  Jeffrey A Law  (law@redhat.com)
16013
16014         * pentium.md (pentium-firstvboth): Fix typo.
16015
16016 2002-09-06      Dhananjay Deshpande <dhananjayd@kpit.com>
16017
16018         * h8300.c (enum shift_alg): Move to earlier in h8300.c.
16019         (enum shift_type, enum h8_cpu): Likewise.
16020         (INL, ROT, LOP, SPC macros): Likewise.
16021         (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise.  Lose
16022         const designator.
16023         (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
16024         space efficient algorithms when optimize for codesize.
16025
16026 Fri Sep  6 16:35:32 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16027
16028         Fix PR/1727 and long-standing failing testcase
16029         objc/formal-protocol-6.m.
16030         * objc-act.c (build_protocol_expr): If compiling for the GNU
16031         runtime, create a list of Protocol statically allocated instances
16032         if it doesn't exist, then add the Protocol object to this same
16033         list.
16034         (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
16035         instead of TREE_CHAIN.
16036
16037 Fri Sep  6 16:17:33 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16038
16039         * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
16040         10k.  Fixed category dumping - print out category names with the
16041         proper syntax.  Print '@end\n' and not '\n@end' at the end of the
16042         interface.
16043         (finish_objc): Fixed the -gen-decls option.  It was printing out
16044         only the last class.  Dump an interface declaration of all classes
16045         being compiled instead.
16046
16047 2002-09-06  Jason Thorpe  <thorpej@wasabisystems.com>
16048
16049         * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
16050         prototype.
16051         * config/arm/arm.c (arm_gen_return_addr_mask): New function.
16052         * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
16053         if not APCS26 and not Thumb or ARMv4-or-higher.  Use gen_int_mode
16054         rather than GEN_INT.
16055         * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
16056         (return_addr_mask, *check_arch2): New.
16057
16058 2002-09-06  Ulrich Weigand  <uweigand@de.ibm.com>
16059
16060         * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
16061         "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
16062         "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
16063         "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
16064         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
16065         "adddf3", "*adddf3", "*adddf3_ibm",
16066         "addsf3", "*addsf3", "*addsf3_ibm",
16067         "muldi3", "mulsi3", "mulsidi3",
16068         "muldf3", "*muldf3", "*muldf3_ibm",
16069         "mulsf3", "*mulsf3", "*mulsf3_ibm",
16070         "*anddi3_cc", "*anddi3_cconly", "anddi3",
16071         "*andsi3_cc", "*andsi3_cconly", "andsi3",
16072         "*iordi3_cc", "*iordi3_cconly", "iordi3",
16073         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
16074         "*xordi3_cc", "*xordi3_cconly", "xordi3",
16075         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
16076         instead of "register_operand" as predicate for "%0" operand.
16077
16078 2002-09-06  Jakub Jelinek  <jakub@redhat.com>
16079
16080         * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
16081         unconditionally when gcc_cv_as_flags64 checks are gone.
16082         * configure: Rebuilt.
16083
16084 2002-09-06  Alan Modra  <amodra@bigpond.net.au>
16085
16086         * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
16087         2002-07-26 change.  Comment.
16088
16089 2002-09-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16090
16091         * frv.c (frv_unique_section, frv_select_section,
16092         frv_select_rtx_section): Delete.
16093         (frv_in_small_data_p): New.
16094         (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
16095         TARGET_ASM_SELECT_RTX_SECTION): Delete.
16096         (TARGET_IN_SMALL_DATA_P): Define.
16097
16098 2002-09-05  Dale Johannesen  <dalej@apple.com>
16099
16100         * reload1.c (reload):  Retain only those memory clobbers
16101         added for variable-array handling.
16102
16103 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
16104
16105         * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
16106         return-in-memory rules.
16107         * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
16108
16109 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
16110
16111         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
16112         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
16113
16114 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
16115
16116         * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
16117         not a compile-time constant for the non-IBM case.
16118         * config/arm/arm-protos.h (arm_float_words_big_endian): New
16119         prototype.
16120         * config/arm/arm.c (arm_float_words_big_endian): New function.
16121         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
16122         if TARGET_VFP  and not TARGET_HARD_FLOAT.
16123         (ARM_FLAG_VFP, TARGET_VFP): Define.
16124         (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
16125
16126 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
16127
16128         * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
16129         URLs.  Fix AIX wording.
16130
16131 2002-09-05  Stan Shebs  <shebs@apple.com>
16132
16133         * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
16134         -fPIC equivalent on Darwin.
16135
16136 Thu Sep  5 16:27:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
16137
16138         * sh.c (sh_expand_builtin): Return early if encountering an
16139         error_mark for a type.
16140
16141 2002-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
16142
16143         * config/s390/s390.c (s390_expand_plus_operand): Do not require
16144         double-word scratch register.
16145         config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
16146
16147         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
16148         "*cli"): Replace s_operand by memory_operand.
16149         ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
16150
16151 2002-09-05  Kazu Hirata  <kazu@cs.umass.edu>
16152
16153         * config/h8300/h8300.c (asm_file_start): Add a missing
16154         semicolon.
16155
16156 2002-09-04  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
16157
16158         * c-typeck.c (build_function_call): Remove unused variable(s).
16159         (build_c_cast): Likewise.
16160         * calls.c (rtx_for_function_call): Likewise.
16161         * cfglayout.c (duplicate_insn_chain): Likewise.
16162         * cfgloop.c (flow_loop_nodes_find): Likewise.
16163         * cfgrtl.c (split_edge): Likewise.
16164         * df.c (df_ref_create): Likewise.
16165         * except.c (expand_end_catch): Likewise.
16166         * expr.c (emit_push_insn, store_constructor, expand_expr): Likewise.
16167         * function.c (emit_return_into_block): Likewise.
16168         (reposition_prologue_and_epilogue_notes): Likewise.
16169         * gengtype.c (get_file_basename, write_gc_structure_fields): Likewise.
16170         * combine.c (subst_prev_insn, need_refresh): Remove.
16171         * dwarf2out.c (primary_filename): Remove.
16172         * final.c (new_block): Remove.
16173         * gcse.c (orig_bb_count): Remove.
16174
16175 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16176
16177         * dsp16xx-protos.h (dsp16xx_compare_gen): Change to bool.
16178         * dsp16xx.c (dsp16xx_compare_gen): Likewise.
16179         * dsp16xx.md: Treat dsp16xx_compare_gen as a bool.  Call functions
16180         directly instead of using a function pointer.
16181
16182 2002-09-04  Krister Walfridsson  <cato@df.lth.se>
16183
16184         * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
16185         * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
16186         (ix86_output_addr_diff_elt) Likewise.
16187         (x86_output_mi_thunk) Likewise.
16188         * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
16189
16190 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16191
16192         * frv.c (frv_encode_section_info): Fix error in last change.
16193
16194 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
16195
16196         * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
16197         (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
16198         (TARGET_BINDS_LOCAL_P): Define.
16199         (rs6000_override_options): Save original flag_pic value.
16200         (rs6000_elf_select_section): Call default_elf_select_section_1.
16201         (rs6000_elf_unique_section): Call default_unique_section_1.
16202         (rs6000_elf_in_small_data_p): New function.
16203         (rs6000_xcoff_asm_named_section): Determine storage mapping class.
16204         (rs6000_xcoff_select_section): Update based on defaults.
16205         (rs6000_xcoff_unique_section): Set to basic name if not common.
16206         (rs6000_binds_local_p): New function.
16207         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
16208         targetm.have_srodata_section if SDATA_EABI.
16209         (TARGET_IN_SMALL_DATA_P): Define.
16210
16211 2002-09-04  Dale Johannesen  <dalej@apple.com>
16212
16213         * varasm.c (struct rtx_const, decode_rtx_const):
16214         Make veclo and vechi fields not share storage.
16215
16216 Thu Sep  5 00:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
16217
16218         * loop.c (scan_loop): Don't mark separate insns out of a libcall
16219         for moving.
16220         (move_movables): Abort if we see the first insn of a libcall.
16221
16222 2002-09-04  Richard Henderson  <rth@redhat.com>
16223
16224         * builtin-types.def (BT_FN_FLOAT): New.
16225         (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
16226         * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
16227         BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
16228         * builtins.c (fold_builtin_inf): New.
16229         (fold_builtin): Call it.
16230         * real.c (ereal_inf): New.
16231         * real.h: Declare it.
16232         * doc/extend.texi: Document new builtins.
16233
16234 2002-09-04  Richard Henderson  <rth@redhat.com>
16235
16236         * cse.c (cse_insn): Avoid subreg games if the equivalence
16237         is already in the proper mode.
16238
16239 2002-09-04  Eric Botcazou  <ebotcazou@multimania.com>
16240
16241         PR c/7102
16242         * optabs.c (expand_binop): Convert CONST_INTs in all cases.
16243
16244 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16245
16246         * pa.md (setccfp0, setccfp1): New patterns.
16247
16248 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16249
16250         * frv-protos.h (frv_init_builtins, frv_expand_builtin,
16251         frv_select_section, frv_select_rtx_section,
16252         frv_encode_section_info, frv_unique_section): Delete.
16253         * frv.c: Update for target hooks.
16254         * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
16255         SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
16256         EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
16257
16258 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16259
16260         * ip2k-protos.h (function_prologue, function_epilogue,
16261         encode_section_info): Update to match target hook specification.
16262         * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
16263         (function_prologue, function_epilogue, encode_section_info):
16264         Update to match target hook specification.
16265         * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
16266         ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
16267         (NOTICE_UPDATE_CC): Cast to void.
16268         * ip2k.md: Add defaults in switch statements.
16269
16270 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
16271
16272         * doc/trouble.texi (Interoperation): Update information about C++ ABI
16273         issues.
16274
16275 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
16276
16277         * config/sparc/t-netbsd64: Disable multilib for now.
16278
16279 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
16280
16281         * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
16282         * target.h (gcc_target): Add have_srodata_section member.
16283         * varasm.c (section_category): Add SECCAT_SRODATA.
16284         (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
16285         READONLY_SDATA_SECTION defined.
16286         (decl_readonly_section_1): True for SECCAT_SRODATA also.
16287         (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
16288         (default_unique_section_1): Likewise.
16289
16290 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16291
16292         * expr.c (emit_group_load): Revise to allow splitting TCmode source
16293         into DImode pieces.
16294
16295         * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
16296         * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
16297         for floating-point register class.
16298         * pa.c (function_arg): Fix handling of modes wider than one word for
16299         TARGET_64BIT.
16300
16301 Wed Sep  4 18:48:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
16302
16303         * combine.c (make_compound_operation): Don't generate zero / sign
16304         extensions in floating point modes.
16305
16306 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
16307
16308         * doc/c-tree.texi: Fix overfull hboxes.
16309         * doc/cppopts.texi: Ditto.
16310         * doc/extend.texi: Ditto.
16311         * doc/gty.texi: Ditto.
16312         * doc/invoke.texi: Ditto.
16313         * doc/makefile.texi: Ditto.
16314         * doc/rtl.texi: Ditto.
16315         * doc/standards.texi: Ditto.
16316         * doc/tm.texi: Ditto.
16317
16318 2002-09-04  Richard Henderson  <rth@redhat.com>
16319
16320         * c-common.c (builtin_define_with_hex_fp_value): New.
16321         (builtin_define_float_constants): Use it.  Fix H_FLOAT mant_dig.
16322
16323 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
16324
16325         * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
16326         (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
16327         -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
16328         Warn that these options can break ABI compatibility.
16329
16330 2002-09-04  Richard Henderson  <rth@redhat.com>
16331
16332         * real.c (ereal_to_decimal): Add digits parameter.
16333         * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
16334         * c-pretty-print.c (pp_c_real_literal): Update call.
16335         * print-rtl.c (print_rtx): Likewise.
16336         * print-tree.c (print_node_brief, print_node): Likewise.
16337         * sched-vis.c (print_value): Likewise.
16338         * config/arc/arc.c (arc_print_operand): Likewise.
16339         * config/c4x/c4x.c (c4x_print_operand): Likewise.
16340         * config/i370/i370.h (PRINT_OPERAND): Likewise.
16341         * config/i386/i386.c (print_operand): Likewise.
16342         * config/i960/i960.c (i960_print_operand): Likewise.
16343         * config/ip2k/ip2k.c (asm_output_float): Likewise.
16344         * config/m32r/m32r.c (m32r_print_operand): Likewise.
16345         * config/m68hc11/m68hc11.c (print_operand): Likewise.
16346         * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
16347         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
16348         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
16349         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
16350         * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
16351         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
16352         * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
16353         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
16354         * config/mips/mips.c (print_operand): Likewise.
16355         * config/ns32k/ns32k.c (print_operand): Likewise.
16356         * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
16357         * config/vax/vax.h (PRINT_OPERAND): Likewise.
16358         * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
16359
16360 2002-09-04  Bob Wilson  <bob.wilson@acm.org>
16361
16362         * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
16363         xtensa_multibss_section_type_flags.
16364         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
16365
16366 2002-09-04  Richard Henderson  <rth@redhat.com>
16367
16368         * doc/install-old.texi: Don't mention enquire.
16369         * doc/sourcebuild.texi: Update float.h description.
16370
16371 Wed Sep  4 11:22:14 2002  J"orn Rennecke <joern.rennecke@superh.com>
16372
16373         * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
16374
16375 2002-09-03  Roger Sayle  <roger@eyesopen.com>
16376
16377         * builtins.c (build_function_call_expr): Remove prototype, export
16378         as non-static and add a comment above function definition.
16379         (builtin_mathfn_code): New function to check for math builtins.
16380         (fold_builtin): Optimize sqrt(0.0) as 0.0, sqrt(1.0) as 1.0,
16381         exp(0.0) as 1.0, and log(1.0) as 0.0.  Optimize exp(log(x)) and
16382         log(exp(x)) as x.  Optimize sqrt(exp(x)) as exp(x/2.0) and
16383         log(sqrt(x)) as log(x)/2.0.
16384
16385         * tree.h: Prototype build_function_call_expr and builtin_mathfn_code
16386         in new "builtins.c" section.  Place the build_range_type prototype
16387         with the other prototypes from "tree.c".
16388
16389         * fold-const.c (fold) [ABS_EXPR]: Fold fabs(sqrt(x)) as sqrt(x)
16390         and fabs(exp(x)) as exp(x).  [MULT_EXPR]: Fold sqrt(x)*sqrt(y)
16391         as sqrt(x*y) and exp(x)*exp(y) as exp(x+y). [RDIV_EXPR]: Fold
16392         x/exp(y) as x*exp(-y).
16393
16394 2002-09-03  David Edelsohn  <edelsohn@gnu.org>
16395
16396         * varasm.c (default_section_type_flags): Append _1 to name with
16397         shlib parameter.  Use original name to call new function with
16398         implicit flag_pic.
16399         (decl_readonly_section): Likewise.
16400         (default_elf_select_section): Likewise.
16401         (default_unique_section): Likewise.
16402         (default_bind_local_p): Likewise.
16403         (categorize_decl_for_section): Add shlib parameter to use in place
16404         of implicit flag_pic.
16405         * output.h: Declare new functions with _1 and shlib argument.
16406
16407 2002-09-03  Janis Johnson  <janis187@us.ibm.com>
16408
16409         * doc/install.texi: Fix typos, formatting problems, and obvious
16410         overfull/underfull boxes.
16411
16412         * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
16413         * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
16414         include its file, compat.texi.
16415         * doc/compat.texi: New file with new chapter, Binary Compatibility.
16416
16417 2002-09-03  Neil Booth  <neil@daikokuya.co.uk>
16418
16419         Debian BTS Bug #157416
16420         * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
16421         * cpplib.c (destringize_and_run): Kludge around getting
16422         tokens from in-progress macros.
16423         (_cpp_do__Pragma): Simplify.
16424
16425 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
16426
16427         * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
16428         (CPP_CPU_SPEC): Remove.
16429         (TARGET_CPU_CPP_BUILTINS): New.
16430         * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
16431         (CPP_SPEC): Remove.
16432         (TARGET_OS_CPP_BUILTINS): New.
16433         * config/ia64/linux.h (CPP_PREDEFINES): Remove.
16434         (TARGET_OS_CPP_BUILTINS): New.
16435         * config/ia64/aix.h (CPP_SPEC): Move some stuff to
16436         TARGET_OS_CPP_BUILTINS.
16437         (CPP_PREDEFINES): Remove.
16438         (CPLUSPLUS_CPP_SPEC): Remove.
16439         (TARGET_OS_CPP_BUILTINS): New.
16440
16441 2002-09-03  Richard Henderson  <rth@redhat.com>
16442
16443         * Makefile.in (USER_H): Add ginclude/float.h.
16444         (FLOAT_H): Remove.
16445         (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
16446         (mostlyclean): Don't remove float.h intermediate files.
16447         (distclean): Don't remove float.h.
16448         * config.gcc: Remove all float_format references.
16449         * configure.in (float_format, float_h_file): Remove.
16450
16451         * c-common.c: Include tree-inline.h.
16452         (builtin_define_with_int_value): New.
16453         (builtin_define_type_precision): Use it.
16454         (builtin_define_float_constants): New.
16455         (cb_register_builtins): Use it.  Define __FLT_RADIX__ and
16456         __FLT_EVAL_METHOD__.
16457         * defaults.h (TARGET_FLT_EVAL_METHOD): New.
16458         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
16459         * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
16460         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
16461         (TARGET_FLT_EVAL_METHOD): New.
16462
16463         * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
16464         config/float-i386.h, config/float-i64.h, config/float-m68k.h,
16465         config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
16466         * ginclude/float.h: New.
16467
16468 2002-09-03  Stan Shebs  <shebs@apple.com>
16469
16470         * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
16471         (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
16472         (PREFERRED_DEBUGGING_TYPE): Ditto.
16473         (ASM_OUTPUT_IDENT): Remove empty definition.
16474
16475 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
16476
16477         * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
16478         cxx_target.
16479         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
16480         handling routine for builtin pragma.
16481         * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
16482         Registered pragma handling routine.
16483         * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
16484         (ia64_hpux_add_pragma_builtin) New subroutine used by above.
16485         If builtin pragma seen for math routine and C89 conformance is
16486         requested use different math function in order to set errno.
16487         * t-ia64 (ia64-c.o): Add new rule for new file.
16488
16489 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
16490
16491         * config/s390/s390.md ("movti"): Add Q->Q alternative.
16492         ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
16493         "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
16494
16495         ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
16496         "*movsf_ss"): Remove.
16497
16498 2002-09-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16499
16500         * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
16501         Delete macros.
16502
16503 2002-09-03   Arati Dikey  <aratid@kpit.com>
16504
16505         * h8300.c (asm_file_start): Corrected optimization comment.
16506
16507 2002-09-03  Stan Shebs  <shebs@apple.com>
16508
16509         * c-lang.c (recognize_objc_keyword): Remove, no longer used.
16510         * c-tree.h (recognize_objc_keyword): Remove decl.
16511         * c-typeck.c (comp_target_types): Update a comment.
16512
16513 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
16514
16515         * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
16516         and register validity checks.
16517         (general_s_operand): Adapt to s390_decompose_address interface change.
16518         (q_constraint): Likewise.
16519         (s390_expand_plus_operand): Likewise.
16520         (legitimiate_address_p): Likewise.
16521         (legitimate_la_operand_p): Likewise.
16522         (legitimize_la_operand): Likewise.
16523         (print_operand_address): Likewise.
16524         (print_operand): Likewise.
16525
16526 Tue Sep  3 11:32:14 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16527
16528         PR objc/5956:
16529         * objc/objc-act.c (build_typed_selector_reference): Fix typo which
16530         was causing the new selector never to match the existing ones
16531         (Patch by Alexander Malmberg <alexander@malmberg.org>).
16532
16533 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
16534
16535         * config/i386/i386.md ("femms"): Add "memory" attr "none".
16536
16537 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
16538
16539         * expr.c (expand_expr): Remove extraneous comment and code.
16540
16541 2002-09-02  Nathan Sidwell  <nathan@codesourcery.com>
16542
16543         * stor-layout (finish_builtin_struct): Renamed and moved from c++
16544         frontend. Take chain of fields. Allow NULL alignment type.
16545         * tree.h (finish_builtin_struct): Declare.
16546
16547 2002-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16548
16549         * config/alpha/alpha.c config/alpha/alpha.h config/alpha/alpha.md
16550         config/alpha/elf.h config/alpha/unicosmk.h config/alpha/vms.h
16551         config/arc/arc.c config/arc/arc.h config/arm/aout.h
16552         config/arm/arm.c config/arm/arm.h config/arm/arm.md
16553         config/avr/avr.h config/d30v/d30v.h config/dbxcoff.h
16554         config/dbxelf.h config/elfos.h config/fr30/fr30.h config/frv/frv.h
16555         config/i386/i386.c config/i386/i386.md config/i386/sco5.h
16556         config/ia64/ia64.h config/ip2k/ip2k.h config/m68hc11/m68hc11.md
16557         config/m68k/hp320.h config/m68k/m68k.c config/m68k/m68k.md
16558         config/m68k/mot3300.h config/m68k/sgs.h config/m68k/tower-as.h
16559         config/m88k/m88k.c config/m88k/m88k.h config/mcore/mcore-pe.h
16560         config/mcore/mcore.c config/mips/mips.c config/mips/mips.h
16561         config/ns32k/ns32k.md config/pa/pa-linux.h config/pa/pa.c
16562         config/pa/pa.h config/pa/pa.md config/romp/romp.h
16563         config/rs6000/linux64.h config/rs6000/lynx.h
16564         config/rs6000/rs6000.c config/rs6000/sysv4.h config/rs6000/xcoff.h
16565         config/s390/s390.c config/s390/s390.md config/sh/sh.c
16566         config/sparc/sparc.c config/sparc/sysv4.h
16567         config/stormy16/stormy16.h dbxout.c defaults.h dwarf2out.c
16568         dwarfout.c except.c final.c varasm.c vmsdbgout.c: Replace
16569         ASM_OUTPUT_INTERNAL_LABEL macro with a call to the target hook.
16570
16571         * doc/tm.texi: Update docs.
16572         * default.h (ASM_OUTPUT_INTERNAL_LABEL): Don't define.
16573         * system.h (ASM_OUTPUT_INTERNAL_LABEL): Poison.
16574
16575 2002-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16576
16577         * Makefile.in (sdbout.o, insn-output.o): Depend on $(TARGET_H).
16578         * arc.c (arc_internal_label): New function.
16579         (TARGET_ASM_INTERNAL_LABEL): Set.
16580         * arc.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16581         * arm.c (arm_internal_label): New function.
16582         (TARGET_ASM_INTERNAL_LABEL): Set.
16583         * arm.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16584         * arm/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16585         * i370.c (i370_internal_label): New function.
16586         (TARGET_ASM_INTERNAL_LABEL): Set.
16587         * i370.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16588         * m68k/hp320.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16589         * m68k.c (m68k_hp320_internal_label): New function.
16590         (TARGET_ASM_INTERNAL_LABEL): Set.
16591         * m88k.c (m88k_internal_label): New function.
16592         (TARGET_ASM_INTERNAL_LABEL): Set.
16593         * m88k.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16594         * defaults.h (ASM_OUTPUT_INTERNAL_LABEL): Set to target hook.
16595         * genoutput.c (output_prologue): Include target.h in output file.
16596         * output.h (default_internal_label): Declare.
16597         * sdbout.c: Include target.h.
16598         * target-def.h (TARGET_ASM_INTERNAL_LABEL): Set and add to
16599         TARGET_ASM_OUT.
16600         * target.h (internal_label): Add to struct gcc_target.
16601         * varasm.c (default_internal_label): New function.
16602
16603 2002-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16604
16605         * alpha.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16606         * avr.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16607         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16608         * cris.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16609         * d30v.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16610         * darwin.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16611         * dsp16xx.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16612         * elfos.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16613         * h8300.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16614         * i386/att.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16615         * i386/bsd.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16616         * i386/i386-coff.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16617         * i386/lynx-ng.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16618         * i386/lynx.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16619         * i386/sco5.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16620         * i960/i960.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16621         * m68k/3b1.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16622         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16623         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16624         * m68k.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16625         * m68k/mot3300.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16626         * m68k/tower-as.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16627         * m88k.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16628         * mcore.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16629         * mips.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16630         * mmix-protos.h (mmix_asm_output_internal_label): Likewise.
16631         * mmix.c (mmix_asm_output_internal_label): Likewise.
16632         * mmix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16633         * ns32k.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16634         * pa.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16635         * pdp11.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16636         * romp.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16637         * rs6000/xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16638         * sh/coff.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16639         * sh/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16640         * sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16641         * sparc/linux.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16642         * sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16643         * sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16644         * sparc/pbd.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16645         * sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16646         * sparc.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16647         * sparc/vxsim.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16648         * stormy16.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16649         * svr3.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16650         * vax.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16651
16652         * defaults.h (ASM_OUTPUT_INTERNAL_LABEL): Define.
16653
16654 2002-08-31  Richard Henderson  <rth@redhat.com>
16655
16656         * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
16657
16658 2002-08-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16659
16660         * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
16661
16662 2002-08-30  Richard Henderson  <rth@redhat.com>
16663
16664         PR opt/7515
16665         * c-objc-common.c: Include target.h.
16666         (c_cannot_inline_tree_fn): Don't auto-inline functions that
16667         don't bind locally.  Factor setting DECL_UNINLINABLE.
16668         * Makefile.in (c-objc-common.o): Update.
16669
16670 2002-08-30  Janis Johnson  <janis187@us.ibm.com>
16671
16672         * doc/install.texi (Configuration, Building): Fix a typo and
16673         some formatting directives.
16674
16675 2002-08-30  Paul Koning <pkoning@equallogic.com>
16676
16677         * doc/c-tree.texi (RDIV_EXPR): Fix typo.
16678         * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
16679         implemented" note.
16680         * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
16681         for alphabetic order.
16682         * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
16683         VAX_FLOAT_FORMAT.  Remove reference to HOST_FLOAT_FORMAT.
16684         (VAX_HALFWORD_ORDER): Document.
16685         (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
16686         IEEE float format.
16687         (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
16688         (ASM_OUTPUT_LABEL_REF): Fix font.
16689         (CASE_VECTOR_SHORTEN_MODE): Ditto.
16690
16691 2002-08-30  Denis Chertykov  <denisc@overta.ru>
16692
16693         * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
16694         stuff.
16695         (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
16696         CONST_DOUBLE constants.
16697
16698 2002-08-30  Jason Thorpe  <thorpej@wasabisystems.com>
16699
16700         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
16701         related defines to...
16702         (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
16703         * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
16704         as a no-op.
16705
16706 2002-08-30  Krister Walfridsson  <cato@df.lth.se>
16707
16708         * config/arm/arm.c (arm_asm_output_labelref): New function.
16709         * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
16710         * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
16711
16712 2002-08-29  Rodney Brown  <rbrown64@csc.com.au>
16713
16714         * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
16715         memory exhausted" workarounds.
16716
16717 2002-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16718
16719         * diagnostic.c (fancy_abort): Don't repeat "internal error".
16720         * toplev.c (crash_signal): Likewise.
16721
16722 Fri Aug 30 00:33:37 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16723
16724         * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
16725         * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
16726         Extended, updated documentation.
16727         (-Wundeclared-selector): Documented.
16728
16729 2002-08-29  Jason Thorpe  <thorpej@wasabisystems.com>
16730
16731         * config/chorus.h: Consistently define *_DEBUGGING_INFO with
16732         the value 1.  Do not undef before defining.
16733         * config/darwin.h: Likewise.
16734         * config/dbx.h: Likewise.
16735         * config/dbxcoff.h: Likewise.
16736         * config/dbxelf.h: Likewise.
16737         * config/elfos.h: Likewise.
16738         * config/interix.h: Likewise.
16739         * config/lynx-ng.h: Likewise.
16740         * config/lynx.h: Likewise.
16741         * config/netware.h: Likewise.
16742         * config/psos.h: Likewise.
16743         * config/svr3.h: Likewise.
16744         * config/alpha/alpha.h: Likewise.
16745         * config/alpha/elf.h: Likewise.
16746         * config/alpha/vms.h: Likewise.
16747         * config/arc/arc.h: Likewise.
16748         * config/arm/aout.h: Likewise.
16749         * config/arm/coff.h: Likewise.
16750         * config/c4x/c4x.h: Likewise.
16751         * config/h8300/h8300.h: Likewise.
16752         * config/i386/cygwin.h: Likewise.
16753         * config/i386/djgpp.h: Likewise.
16754         * config/i386/gas.h: Likewise.
16755         * config/i386/gstabs.h: Likewise.
16756         * config/i386/i386-coff.h: Likewise.
16757         * config/i386/i386-interix.h: Likewise.
16758         * config/i386/sco5.h: Likewise.
16759         * config/i386/svr3dbx.h: Likewise.
16760         * config/i386/sysv3.h: Likewise.
16761         * config/i386/win32.h: Likewise.
16762         * config/i386/x86-64.h: Likewise.
16763         * config/i960/i960.h: Likewise.
16764         * config/ia64/ia64.h: Likewise.
16765         * config/ip2k/ip2k.h: Likewise.
16766         * config/m32r/m32r.h: Likewise.
16767         * config/m68k/3b1.h: Likewise.
16768         * config/m68k/3b1g.h: Likewise.
16769         * config/m68k/ccur-GAS.h: Likewise.
16770         * config/m68k/coff.h: Likewise.
16771         * config/m68k/hp2bsd.h: Likewise.
16772         * config/m68k/hp310g.h: Likewise.
16773         * config/m68k/hp320g.h: Likewise.
16774         * config/m68k/hp3bsd.h: Likewise.
16775         * config/m68k/hp3bsd44.h: Likewise.
16776         * config/m68k/linux-aout.h: Likewise.
16777         * config/m68k/m68k-aout.h: Likewise.
16778         * config/m68k/mot3300.h: Likewise.
16779         * config/m68k/netbsd.h: Likewise.
16780         * config/m68k/openbsd.h: Likewise.
16781         * config/m68k/pbb.h: Likewise.
16782         * config/m68k/plexus.h: Likewise.
16783         * config/m68k/sun2.h: Likewise.
16784         * config/m68k/sun3.h: Likewise.
16785         * config/m68k/tower-as.h: Likewise.
16786         * config/m68k/vxm68k.h: Likewise.
16787         * config/m88k/aout-dbx.h: Likewise.
16788         * config/m88k/m88k-aout.h: Likewise.
16789         * config/mcore/mcore-elf.h: Likewise.
16790         * config/mcore/mcore-pe.h: Likewise.
16791         * config/mips/elf.h: Likewise.
16792         * config/mips/elf64.h: Likewise.
16793         * config/mips/iris5gas.h: Likewise.
16794         * config/mips/iris6.h: Likewise.
16795         * config/mips/mips.h: Likewise.
16796         * config/mips/sni-gas.h: Likewise.
16797         * config/mmix/mmix.h: Likewise.
16798         * config/ns32k/netbsd.h: Likewise.
16799         * config/pa/pa64-hpux.h: Likewise.
16800         * config/romp/romp.h: Likewise.
16801         * config/rs6000/sysv4.h: Likewise.
16802         * config/rs6000/xcoff.h: Likewise.
16803         * config/sh/coff.h: Likewise.
16804         * config/sh/elf.h: Likewise.
16805         * config/sparc/linux64.h: Likewise.
16806         * config/sparc/liteelf.h: Likewise.
16807         * config/sparc/netbsd.h: Likewise.
16808         * config/sparc/openbsd.h: Likewise.
16809         * config/sparc/pbd.h: Likewise.
16810         * config/sparc/sp64-elf.h: Likewise.
16811         * config/sparc/sp86x-elf.h: Likewise.
16812         * config/sparc/sparc.h: Likewise.
16813         * config/vax/vax.h: Likewise.
16814         * config/vax/vaxv.h: Likewise.
16815
16816 2002-08-29  "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
16817
16818         * h8300.c (shift_alg_hi): Various tweaks to improve performance
16819         of HImode shifts.
16820         (get_shift_alg): Corresponding changes.
16821
16822 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16823
16824         * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
16825
16826 2002-08-29  Richard Henderson  <rth@redhat.com>
16827
16828         * expr.h (enum block_op_methods): New.
16829         (emit_block_move): Update prototype.
16830         * expr.c (block_move_libcall_safe_for_call_parm): New.
16831         (emit_block_move_via_loop): New.
16832         (emit_block_move): Use them.  New argument METHOD.
16833         (emit_push_insn): Always respect the given alignment.
16834         (expand_assignment): Update call to emit_block_move.
16835         (store_expr, store_field, expand_expr): Likewise.
16836         * builtins.c (expand_builtin_apply): Likewise.
16837         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
16838         * function.c (expand_function_end): Likewise.
16839         * config/sh/sh.c (sh_initialize_trampoline): Likewise.
16840         * config/sparc/sparc.c (sparc_va_arg): Likewise.
16841         * calls.c (expand_call, emit_library_call_value_1): Likewise.
16842         (save_fixed_argument_area): Use emit_block_move with
16843         BLOCK_OP_CALL_PARM instead of move_by_pieces.
16844         (restore_fixed_argument_area): Likewise.
16845         (store_one_arg): Fix alignment parameter to emit_push_insn.
16846
16847 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16848
16849         * install.texi (hppa64-hp-hpux11*): Document installation procedure.
16850
16851 2002-08-29  Catherine Moore  <clm@redhat.com>
16852
16853         * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
16854         NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
16855         (PREDICATE_CODES): Include new predicates.
16856         (RTX_COSTS): Handle UMOD and UDIV.  Tune MULT for v850e.
16857         (TARGET_SWITCHES):  Add strict-align.
16858         (TARGET_STRICT_ALIGN): New.
16859         (MASK_DEFAULT, STRICT_ALIGNMENT):  Redefine.
16860         * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
16861         Define.
16862         (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
16863         v850_muldi3.
16864         * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
16865         L_callt_save_r2_r31, L_return_r2_r31,
16866         L_save_all_interrupt): Change addi to add.
16867         (L_save_interrupt, L_return_interrupt): Rework.
16868         (__return_r31):  Correct .size directive.
16869         (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
16870         (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
16871         New routines.
16872         * config/v850/v850.c (expand_prologue): Call
16873         gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
16874         gen_callt_return_interrupt and gen_callt_save_all_interrupt.
16875         (reg_or_int9_operand): New predicate.
16876         (reg_or_const_operand): New routine.
16877         * config/v850/v850.md (return_interrupt): Changed from
16878         restore_interrupt.
16879         (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
16880         (callt_save_interrupt): Change save sequence.
16881         (callt_return_interrupt): New.
16882         (save_interrupt): Don't use runtime function for LONG_CALLS
16883         and TARGET_PROLOG_FUNCTION.
16884         (save_all_interrupt): Likewise.
16885         (mulsi3): Use new predicate.
16886         (moviscc): Disallow some combination of constants.
16887         Fix define_split for sasf insns, so that it will not generate bad
16888         code if operand0 and operand5 are the same.
16889         * config/v850/v850-protos.h: Prototype new predicates.
16890
16891 2002-08-29  Zack Weinberg  <zack@codesourcery.com>
16892
16893         * config/rs6000/rs6000.c (processor_target_table): Add 405f.
16894         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Likewise.
16895
16896 2002-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16897
16898         * c-common.c (builtin_define_type_precision): New function.
16899         (cb_register_builtins): Use it.  Define __WCHAR_UNSIGNED__ is
16900         wchar_t is unsigned in C++.
16901         * doc/cpp.texi (Common Predefined Macros): Document
16902         __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
16903         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
16904         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
16905
16906 2002-08-28  Sylvain Pion <pion@cs.nyu.edu>
16907
16908         * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
16909         section.  Mention that it is enabled by -Wall.
16910         (-Wall): Mention that there can be language-specific warnings as well.
16911         (-Wctor-dtor-privacy): Mention that it is enabled by default.
16912         (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
16913
16914 Wed Aug 28 15:35:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
16915
16916         * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
16917         if it is ever live.
16918
16919         * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
16920         attribute for SHCOMPACT.
16921
16922         * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
16923         appropriately.
16924         (FUNCTION_BOUNDARY): Specify only the minimum alignment required
16925         by the ABI.
16926
16927         * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
16928
16929 2002-08-28  Jason Thorpe  <thorpej@wasabisystems.com>
16930
16931         * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
16932         "MASK_GAS|MASK_ABICALLS".
16933         * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
16934         (TARGET_DEFAULT): Remove.
16935         (MACHINE_TYPE): Undefine before defining.
16936         (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
16937
16938 2002-08-27  Mark Mitchell  <mark@codesourcery.com>
16939
16940         * c-common.c (warn_abi): New variable.
16941         * c-common.h (warn_abi): Likewise.
16942         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
16943         (c_common_decode_option): Handle it.
16944         * doc/invoke.texi: Document -Wabi.
16945
16946 Tue Aug 27 23:03:52 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16947
16948         * c-common.c (warn_undeclared_selector): New variable.
16949         * c-common.h (warn_undeclared_selector): Idem.
16950         * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
16951         to on when -Wundeclared-selector is found.
16952         (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
16953         * objc/objc-act.c (build_selector_expr): If
16954         warn_undeclared_selector is set, check that the selector has
16955         already been defined, and emit a warning if not.
16956
16957 2002-08-27  Nick Clifton  <nickc@redhat.com>
16958             Catherine Moore  <clm@redhat.com>
16959             Jim Wilson  <wilson@cygnus.com>
16960
16961         * config.gcc: Add v850e-*-* target.
16962         Add --with-cpu= support for v850.
16963         * config/v850/lib1funcs.asm: Add v850e callt functions.
16964         * config/v850/v850.h: Add support for v850e target.
16965         * config/v850/v850.c: Add functions to support v850e target.
16966         * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
16967         * config/v850/v850.md: Add patterns for v850e instructions.
16968         * doc/invoke.texi: Document new v850e command line switches.
16969
16970 Tue Aug 27 18:30:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
16971                           Aldy Hernandez <aldyh at redhat dot com>
16972
16973         * doc/tm.texi: Applied numerous fixes to the automaton based
16974         scheduler descrition.
16975
16976 Tue Aug 27 19:51:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
16977
16978         * i386.c (classify_argument): Handle variable sized objects.
16979
16980 Tue Aug 27 19:18:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
16981
16982         * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
16983
16984 Tue Aug 27 18:01:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
16985
16986         * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
16987
16988 Tue Aug 27 18:00:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
16989
16990         * i386.c (classify_argument): Properly compute word size of the analyzed object.
16991
16992 Tue Aug 27 14:39:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
16993
16994         * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
16995         mac_gp ftrc_s and cwb.  Add / Adjust definitions in individual insn
16996         accordingly.
16997         (attribute insn_class): Provide default definitions based on type.
16998         Remove all insn-specific settings.
16999         (various function units): Remove old SH4 scheduling.
17000         (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
17001         New attributes.  Set them where appropriate.
17002         (cpu unit FS): Don't define / use.
17003         (F3, load_store): New cpu units.
17004         (F01): New reservation.
17005         (all insn_reservations): Make dependent on sh4 pipeline model.
17006         Fix latencies.
17007         (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
17008         (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
17009         (mt insn_reservation): Use type mt_group.
17010         (insn_reservation load_store): Split into sh4_load, sh4_load_si,
17011         sh4_fload and sh4_store.
17012         (insn_reservation branch_zero and branch): Replace with sh4_branch.
17013         (insn_reservation branch_far): Replace with sh4_return.
17014         (insn_reservation return_from_exp): Rename to:
17015         (sh4_return_from_exp).  Change to be just d_lock*5.
17016         (insn_reservation lds_to_pr): Rename to:
17017         (sh4_lds_to_pr).  Change to be just d_lock*2.
17018         (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
17019         d_lock*2.
17020         (insn_reservation prload_mem): Rename to:
17021         (sh4_prstore_mem).  Change to d_lock*2,nothing,memory.
17022         (insn_reservation fpscr_store): Rename to:
17023         (fpscr_load).  Change to d_lock,nothing,F1*3.
17024         (insn_reservation fpscr_store_mem): Rename to:
17025         (fpscr_load_mem).  Change to d_lock,nothing,(F1+memory),F1*2.
17026         (insn_reservation multi): Change to
17027         d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
17028         (insn_reservation fp_arith): Change to issue,F01,F2.
17029         (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
17030         (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
17031         (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
17032         (insn_reservation fp_double_cmp): Change to
17033         d_lock,(d_lock+F01),F1+F2,F2.
17034         (insn_reservation dp_div): Change to
17035         issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
17036         * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
17037         (sh_adjust_cost, SHcompact): Differentiate between different
17038         kinds of dependencies.  Drop factor of ten for superscalar.
17039         Use new instruction types.  Add new exception rules.
17040
17041         * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
17042
17043         * sh.md (mperm_w): Add DONE.
17044
17045 2002-08-27  David Edelsohn  <edelsohn@gnu.org>
17046
17047         * longlong.h: Import current PowerPC defintion from GMP-4.1.
17048
17049         * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
17050
17051         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
17052
17053 Tue Aug 27 13:53:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
17054
17055         * sh.h (MAX_FIXED_MODE_SIZE): Define.
17056
17057 2002-08-27  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
17058
17059         * doc/cpp.texi (Common Predefined Macros): Don't mess with table
17060         delimiter.
17061
17062 2002-08-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17063
17064         * c-common.c (cpp_define_data_format): New function.
17065         (cb_register_builtins): Call it.
17066
17067         * doc/cpp.texi (Common Predefined Macros): Document
17068         __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
17069         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
17070         __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
17071         __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
17072         __TARGET_USES_VAX_H_FLOAT__.
17073
17074 2002-08-26  Ziemowit Laski <zlaski@apple.com>
17075
17076         * objc/objc-act.c (get_super_receiver): If inside a class method
17077         of a category, cast the receiver to 'id' before accessing the 'isa'
17078         field so that <objc/objc-class.h> is not needed.  For NeXT runtime.
17079
17080 2002-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
17081
17082         * config/s390/s390-protos.h (s390_function_prologue,
17083         s390_function_epilogue): Remove.
17084         config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
17085         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
17086
17087         config/s390/s390.c (s390_machine_dependent_recorg): New function.
17088         config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
17089         config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
17090         config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
17091         to being called from MACHINE_DEPENDENT_REORG.  Update regs_ever_live.
17092
17093         config/s390/s390.c (s390_frame_info): Inline save_fprs_p.  Always
17094         assume BASE_REGISTER and RETURN_REGNUM need to be saved.
17095         (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
17096         function is not a leaf function.  Use save_gprs and restore_gprs.
17097         (s390_emit_epilogue): Likewise.
17098         (save_gprs, restore_gprs): New functions.
17099         (struct s390_frame): Remove return_reg_saved_p member.
17100         (save_fprs_p): Remove.
17101         (s390_optimize_prolog): New function.
17102         (s390_legitimate_reload_constant): Remove now unnecessary check.
17103
17104         (s390_function_count): Remove.
17105         (s390_output_symbolic_const): Replace s390_function_count by
17106         current_function_funcdef_no.
17107         (s390_output_constant_pool): Likewise.
17108
17109         (legitimize_pic_address): Use regs_ever_live to track PIC register
17110         instead of current_function_uses_pic_offset_table.
17111         (s390_emit_prologue): Likewise.
17112         config/s390/s390.md ("call", "call_value"): Likewise.
17113
17114 2002-08-26  Neil Booth  <neil@daikokuya.co.uk>
17115
17116         * c-opts.c (find_opt): Don't complain about wrong languages
17117         here.  Return exact matches even for wrong language.
17118         (c_common_decode_option): Complain about wrong languages
17119         here.
17120
17121 2002-08-24  Stuart Hastings  <stuart@apple.com>
17122
17123         * function.h (struct function): Add flag
17124         all_throwers_are_sibcalls.
17125         * except.c (set_nothrow_function_flags): Replaces
17126         nothrow_function_p. Set new flag.
17127         * except.h (set_nothrow_function_flags): Replaces
17128         nothrow_function_p.
17129         * dwarf2out.c (struct dw_fde_struct): Add flag
17130         all_throwers_are_sibcalls.
17131         (output_call_frame_info): Test it.
17132         (dwarf2out_begin_prologue) Propagate it from cfun to
17133         dw_fde_struct.
17134         * toplev.c (rest_of_compilation): Update calls to
17135         nothrow_function_p.
17136
17137 2002-08-23  Zack Weinberg  <zack@codesourcery.com>
17138
17139         * ggc-page.c (compute_inverse): Short circuit calculation for
17140         object sizes larger than half a page.
17141
17142 2002-08-23  David Edelsohn  <edelsohn@gnu.org>
17143
17144         * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
17145         DEFAULT_ABI == ABI_AIX like PIC.  Test PIC & reloc for readonly
17146         default.
17147         (rs6000_elf_unique_section): Likewise.
17148
17149 2002-08-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17150
17151         * ns32k.c (ns32k_globalize_label): Delete.
17152         * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
17153
17154 2002-08-23  Alan Modra  <amodra@bigpond.net.au>
17155
17156         * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
17157         for loading delta with num_insns_constant_wide.  Calculate
17158         delta_low, delta_high without using a conditional.
17159
17160 2002-08-22  Jason Merrill  <jason@redhat.com>
17161
17162         * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
17163         * c-common.def: Adjust.
17164         * c-dump.c (c_dump_tree): Adjust.
17165         * c-semantics.c (genrtl_return_stmt): Adjust.
17166         * c-pretty-print.c (pp_c_statement): Adjust.
17167         * tree-inline.c (copy_body_r): Adjust.
17168
17169 2002-08-22  Zack Weinberg  <zack@codesourcery.com>
17170
17171         * ggc-page.c: Avoid division in ggc_set_mark.
17172         (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
17173         compute_inverse): New.
17174         (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
17175         (init_ggc): Initialize inverse_table.
17176
17177 2002-08-22  Tom Tromey  <tromey@redhat.com>
17178
17179         * doc/install.texi (Configuration): Document --datadir.
17180
17181 2002-08-22  Alexandre Oliva  <aoliva@redhat.com>
17182
17183         * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
17184
17185 2002-08-22  Hans-Peter Nilsson  <hp@bitrange.com>
17186
17187         * gengtype-lex.l (ID): Allow underscore as first character.
17188
17189 2002-08-21  David Edelsohn  <edelsohn@gnu.org>
17190
17191         * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
17192         function.
17193         (rs6000_xcoff_asm_named_section): Rename.
17194         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
17195
17196 2002-08-21  Tom Tromey  <tromey@redhat.com>
17197
17198         For PR java/6005 and PR java/7611:
17199         * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
17200         (fold): Likewise.
17201         * langhooks.c (lhd_can_use_bit_fields_p): New function.
17202         * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
17203         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
17204         (LANG_HOOKS_INITIALIZER): Use it.
17205         * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
17206         field.
17207
17208 2002-08-21  Stan Shebs  <shebs@apple.com>
17209
17210         * tree.c (finish_vector_type): Fix a typo in a comment.
17211         * Makefile.in: Fix "the the" stutters in comments.
17212         * genautomata.c: Ditto.
17213         * ifcvt.c: Ditto.
17214         * regrename.c: Ditto.
17215         * config/alpha/alpha.c: Ditto.
17216         * config/alpha/vms-crt0-64.c: Ditto.
17217         * config/alpha/vms-crt0.c: Ditto.
17218         * config/alpha/vms-psxcrt0-64.c: Ditto.
17219         * config/alpha/vms-psxcrt0.c: Ditto.
17220         * config/d30v/d30v.h: Ditto.
17221         * config/fr30/fr30.h: Ditto.
17222         * config/rs6000/rs6000.c: Ditto.
17223         * config/stormy16/stormy16.h: Ditto.
17224         * doc/md.texi: Ditto.
17225
17226 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17227
17228         * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
17229
17230 2002-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
17231
17232         * c-decl.c (grokdeclarator): Make invalid combinations with long,
17233         short, signed or unsigned into hard errors.  Fixes PR c/4319.
17234         Also make duplicate modifiers such as "short short" into hard
17235         errors.
17236
17237 2002-08-21  Andrew Pinski <pinskia@physics.uc.edu>
17238             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17239
17240         * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
17241         to the actual end.  Add '@end table' and '@table @code'.
17242
17243 2002-08-20  Geoffrey Keating  <geoffk@redhat.com>
17244
17245         * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
17246
17247         * unroll.c (biv_total_increment): Don't try to compute the total
17248         increment for FP BIVs.
17249
17250 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17251
17252         * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
17253         * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
17254         ASM_OUTPUT_ALIGNED_BSS): Use target hook.
17255         * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
17256         * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
17257         * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
17258         (GLOBAL_ASM_OP): Define.
17259         * arm.c (aof_globalize_label): New function.
17260         (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
17261         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
17262         * c4x.c (c4x_globalize_label): New function.
17263         (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
17264         * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
17265         (GLOBAL_ASM_OP): Define.
17266         * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
17267         * darwin-protos.h (darwin_globalize_label): Declare.
17268         * darwin.c (darwin_globalize_label): New function.
17269         * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
17270         (ASM_GLOBALIZE_LABEL): Delete.
17271         (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
17272         * dsp16xx.c (asm_output_common): Use target hook.
17273         * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
17274         * frv.h (ASM_GLOBALIZE_LABEL): Delete.
17275         (GLOBAL_ASM_OP): Define.
17276         * i370.c (i370_globalize_label): New function.
17277         (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
17278         * i370.h (ASM_GLOBALIZE_LABEL): Delete.
17279         * i386.c (ix86_asm_file_end): Use target hook.
17280         * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
17281         (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
17282         * ia64.c (ia64_asm_output_external): Likewise.
17283         * ia64/sysv4.h: Update comment.
17284         * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
17285         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
17286         * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
17287         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
17288         * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
17289         * mmix-protos.h (mmix_asm_globalize_label): Delete.
17290         * mmix.c (mmix_asm_globalize_label): Likewise.
17291         * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
17292         (GLOBAL_ASM_OP): Define.
17293         * ns32k.c (ns32k_globalize_label): New function.
17294         * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
17295         (ASM_GLOBALIZE_LABEL): Delete.
17296         * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
17297         (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
17298         * pa.c (pa_globalize_label): New function.
17299         * pa.h (ASM_GLOBALIZE_LABEL): Delete.
17300         (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
17301         * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
17302         (GLOBAL_ASM_OP): Define.
17303         (TARGET_ASM_GLOBALIZE_LABEL): Undef.
17304         * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
17305         * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
17306         (GLOBAL_ASM_OP): Define.
17307         * v850.c (v850_output_aligned_bss): Use target hook.
17308         * vax.c (vms_globalize_label): New function.
17309         (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
17310         * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
17311         (GLOBAL_ASM_OP): Define.
17312         * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
17313         * doc/tm.texi: Update docs.
17314         * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
17315         target hook.
17316         * final.c (output_alternate_entry_point): Likewise.
17317         * hooks.c (hook_FILEptr_constcharptr_void): New function.
17318         * hooks.h (hook_FILEptr_constcharptr_void): Declare.
17319         * output.h (assemble_global): Delete.
17320         (default_globalize_label): Declare.
17321         * system.h (ASM_GLOBALIZE_LABEL): Poison.
17322         * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
17323         (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
17324         * target.h (gcc_target): Add globalize_label member.
17325         * varasm.c (asm_output_bss, asm_output_aligned_bss,
17326         globalize_decl): Use target hook.
17327         (assemble_global): Delete.
17328         (default_globalize_label): New function.
17329
17330 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17331
17332         * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
17333
17334 2002-08-20  Devang Patel  <dpatel@apple.com>
17335         * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
17336
17337 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17338
17339         * arc.c (output_shift): Use stdio instead of asm_fprintf.
17340         * arm.c (thumb_output_function_prologue): Likewise.
17341         * avr.c (print_operand): Likewise.
17342         * c4x.c (c4x_print_operand): Likewise.
17343         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
17344         ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
17345         * cris.c (cris_target_asm_function_prologue,
17346         cris_asm_output_mi_thunk): Likewise.
17347         * h8300.c (print_operand): Likewise.
17348         * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
17349         * ip2k.c (print_operand): Likewise.  Fix format specifier.
17350         * m68hc11.c (asm_print_register, print_operand,
17351         print_operand_address): Use stdio instead of asm_fprintf.
17352         (print_operand_address): Fix format specifier.
17353         * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
17354         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
17355         asm_fprintf.
17356         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17357         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17358         * m68k.c (m68k_output_function_prologue,
17359         m68k_output_function_epilogue, print_operand): Likewise.
17360         * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
17361         Likewise.  Fix format specifier.
17362         * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
17363         * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
17364         * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
17365
17366 2002-08-15  Eric Christopher  <echristo@redhat.com>
17367             Jeff Knaggs  <jknaggs@redhat.com>
17368
17369         * config.gcc (mipsisa64sr71k-elf): New target.
17370         * config/mips/sr71k.md: New file.
17371         * config/mips/mips.md: Use it.
17372         (rot*): Add sr71k specifics.
17373         * config/mips/t-sr71k: New file.
17374         * config/mips/mips.h (sr71k): New cpu.
17375         (TARGET_SR71K): Use it.
17376         (TUNE_SR71K): Ditto.
17377         (GENERATE_BRANCHLIKELY): Ditto.
17378         (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
17379         ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
17380         * config/mips/mips.c (sr71k): New cpu.
17381         (mips_use_dfa_pipeline_interface): Use.
17382
17383 2002-08-15  Eric Christopher  <echristo@redhat.com>
17384             Richard Sandiford <rsandifo@redhat.com>
17385             Aldy Hernandez  <aldyh@redhat.com>
17386             Graham Stott    <grahams@redhat.com>
17387             Michael Meissner  <meissner@redhat.com>
17388             Gavin Romig-Koch  <gavin@redhat.com>
17389             Ken Raeburn  <raeburn@cygnus.com>
17390             Alexandre Oliva <aoliva@redhat.com>
17391
17392         * config.gcc (mips64vr-elf): New target.
17393         * config/mips/5400.md: New file.
17394         * config/mips/5500.md: Ditto.
17395         * config/mips/mips.md: Use them.
17396         (frsqrt): New.
17397         * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
17398         cpus.
17399         (mips_issue_rate): Use them.
17400         (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
17401         (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
17402         * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
17403         cpus.
17404         (TARGET_MIPSx): Use them.
17405         (TUNE_MIPSx): Ditto.
17406         (GETNATE_MULT3_SI): Ditto.
17407         (ISA_HAS_BRANCHLIKELY): Ditto.
17408         (ISA_HAS_CONDMOVE): Ditto.
17409         (ISA_HAS_NMADD_NMSUB): Ditto.
17410         (ISA_HAS_MULHI): New. Ditto.
17411         (ISA_HAS_MULS): Ditto.
17412         (ISA_HAS_MSAC): Ditto.
17413         (ISA_HAS_MACC): Ditto.
17414         (ISA_HAS_ROTR_SI): Ditto.
17415         (ISA_HAS_ROTR_DI): Ditto.
17416         (RTX_COSTS): Use.
17417
17418 2002-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17419
17420         * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
17421         at head.
17422         (remove_dup_nonsys_dirs): New function.
17423         (remove_dup_dirs): Change argument head to head_ptr.  Remove warnings.
17424         (merge_include_chains): Remove non-system include directories from
17425         quote and bracket include chains when they duplicate equivalent system
17426         directories.
17427         * doc/cpp.texi (-I): Update.
17428         * doc/cppopts.texi (-I): Update.
17429         * doc/install.texi (--with-local-prefix): Further document usage of
17430         this option.
17431         * doc/invoke.texi (-I): Update.
17432
17433 2002-08-20  Richard Henderson  <rth@redhat.com>
17434
17435         * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
17436         (emit_block_move): Split out subroutines.
17437         (emit_block_move_via_movstr): New.
17438         (emit_block_move_via_libcall): New.  Emit bcopy via normal call also.
17439         (emit_block_move_libcall_fn): New.  Construct function prototype for
17440         bcopy as well.
17441         (clear_storage): Split out subroutines.
17442         (clear_storage_via_clrstr): New.
17443         (clear_storage_via_libcall): New. Emit bzero as a normal call also.
17444         (clear_storage_libcall_fn): New.  Construct function prototype for
17445         bzero as well.
17446         (emit_push_insn): Use emit_block_move.
17447         (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
17448         (store_constructor): Likewise.
17449
17450 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
17451
17452         * objc/objc-act.c (building_objc_message_expr): Rename to
17453         current_objc_message_selector.
17454
17455 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
17456
17457         * objc/objc-act.c (build_ivar_chain): Remove.
17458         (objc_copy_list): Likewise.
17459         (get_class_ivars): Inline call to removed build_ivar_chain
17460         function.  Save off a clean copy of ivars in the CLASS_OWN_IVARS
17461         slot; use that slot (rather than CLASS_IVARS) when accessing
17462         ivars for base classes.  Call copy_list and chainon instead of
17463         objc_copy_list.
17464         (build_private_template): Call get_class_ivars instead of
17465         build_ivar_chain.
17466         (start_class): Allocate room for the CLASS_OWN_IVARS slot.
17467         (continue_class): Call get_class_ivars instead of
17468         build_ivar_chain.
17469         (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
17470         of DECL_BIT_FIELD (which may have been cleared).
17471         * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
17472
17473 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17474
17475         * genautomata.c (output_translate_vect, output_state_ainsn_table,
17476         output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
17477         in output file.
17478         (output_internal_min_issue_delay_func): Initialize variable in
17479         output file.
17480
17481 2002-08-19  Alexandre Oliva  <aoliva@redhat.com>
17482
17483         * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
17484         (stage2_build, stage3_build, stage4_build): Likewise, to CC.
17485
17486 2002-08-19  Geoffrey Keating  <geoffk@redhat.com>
17487             Steve Ellcey  <sje@cup.hp.com>
17488
17489         * machmode.h (SCALAR_INT_MODE_P): New macro to test for
17490         scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
17491         * explow.c (trunc_int_for_mode): Abort when the mode is not
17492         a scaler integer mode.
17493         * combine.c (expand_compound_operation): Don't expand Vector
17494         or Complex modes into shifts.
17495         (expand_field_assignment): Don't do bitwise arithmatic and
17496         shifts on Vector or Complex modes.
17497         (simplify_comparison): Don't call trunc_int_for_mode
17498         for VOIDmode.
17499         * recog.c (general_operand): Likewise.
17500         (immediate_operand): Likewise.
17501         (nonmemory_operand): Likewise.
17502
17503 2002-08-19  David Edelsohn  <edelsohn@gnu.org>
17504
17505         * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
17506         multi-instruction SImode constant.  Add REG_EQUAL note.
17507         * config/rs6000/rs6000.md (movsi splitter): Use
17508         rs6000_emit_set_const.
17509
17510 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17511
17512         * tree-inline.c (initialize_inlined_parameters): Wrap variable in
17513         the macro test controlling its use.
17514
17515 2002-08-18  H.J. Lu  (hjl@gnu.org)
17516
17517         * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
17518         crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
17519         gnu_ld=yes.
17520         (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
17521         i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
17522         s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
17523         xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
17524         here.
17525         (cris-*-linux*): Remove setting thread_file here.
17526
17527 2002-08-18  Neil Booth  <neil@daikokuya.co.uk>
17528
17529         PR preprocessor/7602
17530         * cppinit.c (path_include): Treat the system environment
17531         variables as being cxx_aware.
17532
17533 2002-08-17  Joseph S. Myers  <jsm@polyomino.org.uk>
17534
17535         * c-decl.c (flexible_array_type_p): New function.
17536         (grokdeclarator, finish_struct): Use it.
17537         * doc/extend.texi: Document constraints on use of structures with
17538         flexible array members.
17539
17540 2002-08-17  Richard Sandiford  <rsandifo@redhat.com>
17541
17542         * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
17543         config/mips/t-r3900 (MULTILIB_MATCHES): Define.
17544         * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
17545
17546 2002-08-16  Stan Shebs  <shebs@apple.com>
17547
17548         * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
17549         for ObjC with -fnext-runtime.
17550         * doc/cpp.texi: Document it.
17551
17552 2002-08-16  Janis Johnson  <janis187@us.ibm.com>
17553
17554         * doc/install.texi (Final installation): Replace links to individual
17555         build status pages with a link to a common page that lists them all.
17556
17557 2002-08-16  Sylvain Pion <pion@cs.nyu.edu>
17558
17559         * doc/invoke.texi: Fix typo.
17560
17561 2002-08-16  David Edelsohn  <edelsohn@gnu.org>
17562
17563         * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
17564
17565 2002-08-16  Andrew Haley  <aph@redhat.com>
17566
17567         * tree-inline.c: Add includes for Java inliner.
17568         (remap_decl): Don't handle anonymous types for Java.
17569         (remap_block): Add handling for Java trees.
17570         (copy_scope_stmt): Conditionalize for non-Java use only.
17571         (copy_body_r): Handle Java trees.  Add handling for
17572         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
17573         (initialize_inlined_parameters):  Handle Java trees.
17574         (declare_return_variable): Likewise.
17575         (expand_call_inline): Handle Java trees.
17576         (walk_tree): Likewise.
17577         (copy_tree_r): Don't handle SCOPE_STMTs for Java.
17578         (add_stmt_to_compound): New function.
17579
17580 2002-08-15  Richard Henderson  <rth@redhat.com>
17581
17582         * Makefile.in (LOOSE_WARN): Remove -fno-common.
17583         (NOCOMMON_FLAG): New substitution point.
17584         (GCC_WARN_CFLAGS): Include it.
17585         * configure.in (ac_checking): Set nocommon_flag.
17586         (nocommon_flag): New substitution point.
17587
17588 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
17589
17590         * c-tree.h (skip_evaluation): Move declaration...
17591         * c-common.h: ... here.
17592         * c-typeck.c (build_external_ref): Don't assemble_external nor
17593         mark a tree as used if skip_evaluation is set.
17594         * c-parse.in (typeof): New non-terminal to set skip_evaluation
17595         around TYPEOF.
17596         (typespec_nonreserved_nonattr): Use it.
17597
17598 2002-08-15  Douglas B Rupp  <rupp@gnat.com>
17599
17600         * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
17601         (xcoff_debug_hooks): Update end_prologue.
17602         * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
17603         * debug.h (end_prologue): Add file arg.
17604         (end_epilogue): Add line and file args.
17605         (dwarf2out_end_epilogue): Add line and file args.
17606         (vmsdbgout_after_prologue): Remove.
17607         * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
17608         (dwarf2_debug_hooks): Update end_prologue.
17609         * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
17610         (dwarfout_end_prologue): Add file arg.
17611         * final.c (vmsdbgout_after_prologue): Remove
17612         (final_end_function): Update end_epilogue call.
17613         (final_scan_insn): Update end_prologue call.
17614         * sdbout.c (sdbout_end_epilogue): Add line and file args.
17615         (sdbout_end_prologue): Add file arg.
17616         (sdb_debug_hooks): Update end_prologue.
17617         (sdb_begin_prologue): Update sdbout_end_prologue call.
17618         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
17619         vmsdbgout_end_function.
17620         (vmsdbgout_end_prologue): New function renamed from
17621         vmsdbgout_after_prologue. Call vmsdbgout_source_line.
17622         (vmsdbgout_end_function): New function.
17623         (vmsdbgout_end_epilogue): Add line and file args. Call
17624         vmsdbgout_source_line.
17625         (write_pclines): Write only valid line numbers.
17626         (write_srccorr): Don't write source correlation records if 0 lines.
17627         * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
17628
17629 2002-08-15  Steve Ellcey  <sje@cup.hp.com>
17630
17631         * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
17632         (_Unwind_Internal_Ptr): 32 bit version for use in
17633         read_encoded_value_with_base.
17634         * gcc/unwind-pe.h (read_encoded_value_with_base): Use
17635         _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
17636         right size.
17637
17638 2002-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17639
17640         * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
17641         signed/unsigned warnings.
17642
17643         * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
17644         record_reg_classes): Likewise.
17645
17646         * reload.c (reload_inner_reg_of_subreg, push_reload,
17647         find_reloads_address_1): Likewise.
17648
17649 2002-08-15  David Edelsohn  <edelsohn@gnu.org>
17650
17651         * rs6000.c (output_mi_thunk): Return to function section on
17652         TARGET_ELF.
17653
17654         * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
17655
17656 2002-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
17657
17658         * config/s390/s390.c (legitimize_address): Optimize loading
17659         of large displacements.
17660
17661 2002-08-14  Douglas B Rupp  <rupp@gnat.com>
17662
17663         * config/alpha/alpha-protos.h: Update.
17664
17665         * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
17666         (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
17667         (alpha_linkage_symbol_p): New static function.
17668         (print_operand_address): Print linkage operand.
17669
17670         (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
17671         variables.
17672         (reloc_kind): New enum.
17673         (struct alpha_funcs): New struct.
17674         (struct alpha_links): Add reloc_kind field. Rename links_kind field.
17675
17676         (alpha_need_linkage): Rewrite.
17677         (alpha_use_linkage): New global function.
17678         (alpha_write_linkage): Rewrite and make static.
17679         (alpha_write_one_linkage): Rewrite
17680
17681         (alpha_start_function): Remove procedure descriptor output.
17682         (alpha_end_function): Write linkages at end of each function.
17683
17684         * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
17685         (call_vms_1, call_value_vms_1): Rewrite.
17686
17687         * config/alpha/vms.h (ASM_FILE_END): Remove.
17688
17689 2002-08-14  Richard Henderson  <rth@redhat.com>
17690
17691         * ggc-page.c (RTL_SIZE): New.
17692         (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
17693         * rtl.def (BARRIER, NOTE): Pad to 9 slots.
17694
17695 2002-08-14  Richard Henderson  <rth@redhat.com>
17696
17697         * calls.c: Include target.h.
17698         * Makefile.in (calls.o): Update.
17699
17700         * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
17701         * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
17702
17703 2002-08-14  Richard Henderson  <rth@redhat.com>
17704
17705         * Makefile.in (LOOSE_WARN): Add -fno-common.
17706         * c-common.h (constant_string_class_name): Add missing extern.
17707
17708 2002-08-15  Neil Booth  <neil@daikokuya.co.uk>
17709
17710         PR preprocessor/7358
17711         * c-opts.c (check_deps_environment_vars): Ignore main file
17712         for SUNPRO_DEPENDENCIES.
17713         * cppfiles.c (stack_include_file): Ignore main file if
17714         appropriate.
17715         * cpplib.h (struct cpp_options): New member in deps.
17716         * doc/cppenv.texi: Update.
17717
17718 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
17719
17720         PR preprocessor/7526
17721         * cpplib.c (run_directive): Kludge so _Pragma dependency works.
17722
17723 2002-08-14  Nathan Sidwell  <nathan@codesourcery.com>
17724
17725         * doc/invoke.texi (-a): Remove documentation.
17726         (-fprofile-arcs): Remove reference to -a, -ax options.
17727         * doc/gcov.texi (Gcov Data Files): Data might be merged.
17728
17729 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
17730
17731         Fix PR/7566
17732         * c-semantics.c (genrtl_case_label): Don't (mis)use
17733         warning_with_decl.
17734
17735 2002-08-14  Dale Johannesen  <dalej@apple.com>
17736
17737         * explow.c (emit_stack_restore):  Emit memory clobbers
17738         preceding the stack pop, to prevent the scheduler from
17739         moving refs to variable arrays below this pop.
17740         * reload1.c (reload):  Preserve these clobbers for sched2.
17741         * doc/rtl.texi:  Document clobber (mem:BLK (scratch)).
17742
17743 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
17744
17745         * c-opts.c (c_common_post_options): Correct test.
17746
17747 2002-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17748
17749         * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
17750         order in call to fprintf.
17751
17752 2002-08-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17753
17754         * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
17755
17756 2002-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
17757
17758         * reload.c (find_reloads): Handle constraint letters marked by
17759         EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
17760         (alternative_allows_memconst): Likewise.
17761         * reload1.c (maybe_fix_stack_asms): Likewise.
17762         * recog.c (asm_operand_ok, preprocess_constraints,
17763         constrain_operands): Likewise.
17764         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
17765         * local-alloc.c (block_alloc, requires_inout): Likewise.
17766         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
17767
17768         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
17769         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
17770         * doc/tm.texi: Document these two new target macros.
17771
17772         * config/s390/s390.c (s390_expand_plus_operand): Accept already
17773         valid operands.
17774         (q_constraint): New function.
17775         config/s390/s390-protos.h (q_constraint): Declare it.
17776         config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
17777         (EXTRA_MEMORY_CONSTRAINT): New macro.
17778
17779         * config/s390/s390.md: Throughout the machine description,
17780         replace all instances of the constraint combinations 'Qo'
17781         or 'oQ' with simply 'Q'.
17782
17783 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
17784
17785         * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
17786         * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
17787         (LIBGCC2_CFLAGS): Compile with -mrelax.
17788
17789 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
17790
17791         * doc/invoke.texi: Document -minmax for 68HC12.
17792
17793         * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
17794         ("uminqi3"): Likewise.
17795         ("uminhi3", "umaxhi3"): Likewise.
17796
17797         * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
17798         (TARGET_MIN_MAX): Define.
17799         (TARGET_SWITCHES): New option -minmax/-mnominmax.
17800
17801 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
17802
17803         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
17804         (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
17805
17806         * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
17807         (ret, declare, farsym): New gas macros.
17808         (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
17809         ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
17810         and declare the symbol far when compiled with -mlong-calls.
17811         (__far_trampoline): New for 68HC12 trampoline code to invoke a
17812         far handler using jsr/bsr.
17813
17814         * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
17815         (jsr): New macro to transform a 'jsr' into a 'call'.
17816
17817 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
17818
17819         * doc/invoke.texi: Document -mlong-calls for 68HC12.
17820
17821         * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
17822         -mlong-calls is specified.
17823         (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
17824         assembler directives.
17825         (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
17826         (TARGET_SWITCHES): Add -mlong-calls options.
17827         (current_function_far): Declare.
17828
17829         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
17830         into account the page register saved on the stack.
17831         (m68hc11_override_options): Take into account -mlong-calls option.
17832         (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
17833
17834         * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
17835         if the function is going to be in 68HC12 banked memory (-mlong-calls).
17836         ("*return_16bit"): Likewise.
17837         ("*return_void"): Likewise.
17838         ("call", "call_value"): Use call for a far function call.
17839
17840 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
17841
17842         * toplev.c (parse_options_and_default_flags): Don't call
17843         post_options here.
17844         (general_init): Initialize GC, pools and tree hash here,
17845         instead of lang_independent_init.
17846         (lang_independent_init): Rename backend_init.
17847         (do_compile): Call post_options hook; exit early if there
17848         have been errors after switch processing.
17849         (toplev_main): Update.
17850
17851 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
17852
17853         * c-pretty-print.h: Guard against multiple inclusion.
17854         Robustify macros.
17855         (pp_c_attributes): Declare.
17856         * c-pretty-print.c (pp_c_attributes): New function.
17857
17858 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17859
17860         * m68k.c (m68k_output_function_prologue,
17861         m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
17862         and NEWS/MOTOROLA.
17863         * genattrtab.c: Remove dpx2 comment.
17864         * libgcc2.c (__enable_execute_stack): Delete versions for
17865         NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
17866         sony_news/SYSTYPE_BSD.
17867         * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
17868         __gmicro__, __i860__, __NeXT__ and __pyr__.
17869         * rtl.h: Remove convex comment.
17870         * varasm.c: Likewise.
17871
17872 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17873
17874         * c-opts.c (lang_flags): Const-ify.
17875         * ra-build.c (undef_table): Likewise.
17876         * ra.c (eliminables): Likewise.
17877
17878 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
17879
17880         * tree.h: Guard against multiple inclusion.
17881
17882 2002-08-14  Hans-Peter Nilsson  <hp@bitrange.com>
17883
17884         * reload1.c (reload_cse_simplify): Before checking
17885         REG_FUNCTION_VALUE_P, check REG_P.
17886
17887 2002-08-13  Geoffrey Keating  <geoffk@redhat.com>
17888
17889         * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
17890
17891 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
17892
17893         * c-opts.c (c_common_init_options): Extra braces needed.
17894
17895 Tue Aug 13 17:40:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
17896
17897         * sh.c (sh_init_builtins): Add PARAMS to declaration.
17898         (sh_media_init_builtins, sh_expand_builtin): Likewise.
17899         (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
17900         (sh_expand_binop_v2sf): Likewise.
17901         * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
17902         (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
17903         (sh_initialize_trampoline): Likewise.
17904
17905 2002-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
17906
17907         * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
17908         new condition code modes.
17909         s390.c (s390_match_ccmode_set): Handle those new CC modes.
17910         (s390_select_ccmode): Likewise.
17911         (s390_branch_condition_mask): Likewise.
17912
17913         * s390-protos.h (s390_tm_ccmode): Declare.
17914         s390.c (s390_tm_ccmode): New function.
17915         (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
17916
17917         * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
17918         ("*cmpsi_tm2"): Rename to "*tmsi_ext".
17919         ("*cmpqi_tm2"): Rename to "*tmqi_ext".
17920
17921         ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
17922         "*cmphi_tm_sub","*cmphi_cct_0",  "*cmpqi_tm", "*cmpqi_tm_sub",
17923         "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
17924         ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
17925         "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
17926
17927         ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
17928         "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
17929         "*cmpqi_ccs_0"): Remove, replace by ...
17930         ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
17931         "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
17932         "*tstqi", "*tstqi_cconly"): ... these new patterns.
17933
17934         ("*cmpsidi_ccs"): Remove, replace by ...
17935         ("*cmpsi_ccs_sign"): ... this new pattern.
17936         ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
17937
17938         ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
17939         ("*cli"): ... this new pattern.
17940
17941         ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
17942         "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
17943         New patterns.
17944         ("adddi3_64"): Rename to "*adddi3_64".
17945         ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
17946         ("adddi3"): Adapt expander.
17947
17948         ("*addsi3_cc"): Allow "general_operand" for operand 2.
17949         ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
17950         "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
17951
17952         ("addhi3", "addqi3"): Remove, replace by ...
17953         ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
17954
17955         ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
17956         "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
17957         ("subdi3"): Replace by insn and splitter "*subdi3_31".
17958         ("subdi3"): New expander.
17959
17960         ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
17961
17962         ("subhi3", "subqi3"): Remove, replace by ...
17963         ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
17964
17965         ("*muldi3_sign"): New pattern.
17966         ("muldi3"): Do not clobber CC.
17967         ("mulsi3"): Likewise.
17968         ("mulsi_6432"): Likewise.
17969
17970 2002-08-13  Denis Chertykov  <denisc@overta.ru>
17971
17972         * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
17973         which can change CC0.
17974
17975 Tue Aug 13 14:49:20 2002  J"orn Rennecke <joern.rennecke@superh.com>
17976
17977         * gcse.c (adjust_libcall_notes): New function.
17978         (do_local_cprop): Use it.  Add fourth parameter.  Changed caller.
17979
17980 2002-08-13  Nathan Sidwell  <nathan@codesourcery.com>
17981
17982         * libgcc2.c (L_bb): Remove unneeded #includes.
17983         (__global_counters, __gthreads_active): Remove unused globals.
17984         (__bb_exit_func): Merge counts into files rather than appending.
17985         * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
17986         (ALL_CFLAGS): ... to here.
17987
17988 2002-08-13  Denis Chertykov  <denisc@overta.ru>
17989
17990         * config/ip2k/ip2k.c (commands_in_file): Variable removed.
17991         (function_epilogue): Don't calculate function size.
17992         (ip2k_set_compare): Don't use lookup_const_double.
17993         (asm_file_start): Initialization of commands_in_file removed.
17994         (asm_file_end): Output of commands_in_file removed.
17995
17996         * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
17997         __INT_MAX__.
17998
17999 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
18000
18001         * c-opts.c (c_common_init_options): Check option array is
18002         sorted if checking enabled.
18003
18004 2002-08-13  Gabriel Dos Reis  <gdr@nerim.net>
18005
18006         * c-pretty-print.c: #include "c-tree.h".
18007         (pp_c_simple_type_specifier): Tweak.
18008         (pp_c_storage_class_specifier): New.
18009         (pp_c_function_specifier): Likewise.
18010         (pp_c_declaration_specifiers): Likewise.
18011         (pp_c_init_declarator): Likewise.
18012         (pp_c_declaration): Likewise.
18013         (pp_c_direct_declarator): Stub.
18014         (pp_c_declarator): Likewise.
18015         (pp_c_parameter_declaration): Likewise.
18016
18017 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
18018
18019         * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
18020         handle_deferred_opts, sanitize_cpp_opts, defer_opt,
18021         struct deferred_opt): New.
18022         (COMMAND_LINE_OPTIONS): Add -M*.
18023         (missing_arg): Update.
18024         (c_common_decode_option): Handle -M*.
18025         (c_common_post_options): Handle -M*.  Use sanitize_cpp_opts;
18026         don't call cpp_post_options.
18027         (c_common_finish, check_deps_environment_vars): Update.
18028         * cppfiles.c (stack_include_file, handle_missing_header): Update.
18029         * cpphash.h (CPP_PRINT_DEPS): Remove.
18030         * cppinit.c: Don't include version.h.
18031         (cpp_create_reader): Don't call deps_init.  Initialize
18032         warn_long_long.
18033         (cpp_read_main_file): Init deps if necessary.
18034         (cpp_destroy): Conditionally free deps.
18035         (cpp_finish): Update.
18036         (no_tgt): Remove.
18037         (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
18038         (cpp_post_options): Rename post_options.
18039         * cpplib.h (struct cpp_options): Remove some dependency options;
18040         move others to a new structure.
18041         (cpp_post_options): Remove.
18042         (cpp_finish): Comment.
18043         * fix-header.c (read_scan_file): Don't call cpp_post_options.
18044
18045 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
18046
18047         * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
18048         ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
18049         MMIX_rR_REGNUM as clobbered.
18050         * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
18051
18052 2002-08-12  Gabriel Dos Reis  <gdr@nerim.net>
18053
18054         * diagnostic.h (output_formatted_scalar): Rename from
18055         output_formatted_integer.
18056         * diagnostic.def: Add DK_DEBUG.
18057         * diagnostic.c (output_decimal): Adjust.
18058         (output_long_decimal): Likewise.
18059         (output_unsigned_decimal): Likewise.
18060         (output_octal): Likewise.
18061         (output_long_octal): Likewise.
18062         (output_hexadecimal): Likewise.
18063         (output_long_hexadecimal): Likewise.
18064         * c-pretty-print.c (pp_c_type_specifier): New function.
18065         (pp_c_specifier_qualifier_list): Likewise.
18066         (pp_c_abstract_declarator): Likewise.
18067         (pp_c_char): Replace pp_format_integer with pp_format_scalar.
18068
18069 2002-08-12  David Edelsohn  <edelsohn@gnu.org>
18070
18071         * doc/trouble.texi (Disappointments): Add static constructor and
18072         destructor dependency information for AIX.
18073
18074 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
18075
18076         * cpphash.h (struct printer): New from cppmain.c.
18077         (cpp_reader): New member.
18078         * cppmain.c (struct printer): Move to cpphash.h.
18079         (options, print): Remove.
18080         (account_for_newlines, print_line, maybe_print_line,
18081         cpp_preprocess_file, setup_callbacks, scan_translation_unit,
18082         scan_translation_unit_trad, cb_line_change, cb_ident,
18083         cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
18084         cb_def_pragma): Make reentrant.
18085
18086 2002-08-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18087
18088         * real.c (ieee_64): Always define.
18089         (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
18090         (dec_h): Not used yet, hide it.
18091         (emdnorm): Mark parameter in ATTRIBUTE_UNUSED.  Guard label with
18092         macro controlling use.
18093         (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
18094
18095 Mon Aug 12 12:48:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
18096
18097         * i386.md (tablejump): Sign extend the operand.
18098         * i386.c (classify_argument): Fix missed case from previous patch.
18099
18100 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
18101
18102         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
18103         to c-copts.c.
18104         (warn_multichar): Die.
18105         (cb_register_builtins): Export.
18106         * c-common.h (warn_multichar, preprocess_file): Remove.
18107         (cb_register_builtins): New.
18108         * c-lang.c (c_init): Remove.
18109         (LANG_HOOKS_INIT): Use c_objc_common_init.
18110         * c-lex.c (init_c_lex): Don't canonicalize filename.
18111         * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
18112         (preprocess_file): Make static.  Update for cpplib.
18113         (c_common_decode_option): Remove warn_multichar.  Use in_fname.
18114         (c_common_post_options): Set some cpp options here.
18115         (c_common_init): Move from c-common.c.
18116         * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
18117         * cpplib.h (struct cpp_options): Remove in_fname.
18118         (cpp_preprocess_file): Update.
18119         * cppmain.c (cpp_preprocess_file): Update for new prototypes.
18120
18121 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18122
18123         * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
18124
18125 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18126
18127         * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
18128         backslash in comment preceeding macro definition.
18129         * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
18130         * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
18131         * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
18132
18133 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
18134
18135         * expr.c (store_expr): In condition for checking if value is
18136         generated in TARGET, move call to expr_size last.
18137
18138 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
18139
18140         * c-common.c (c_common_init): Call preprocess_file instead.
18141         (c_common_finish): Move to c-opts.c.
18142         * c-common.h (preprocess_file): new.
18143         * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
18144         check_deps_environment_vars, c_common_finish): New.
18145         (c_common_decode_option): Update for out_fname and dependencies.
18146         * cppinit.c (init_dependency_output, output_deps): Remove.
18147         (cpp_destroy): Update prototype.
18148         (cpp_add_dependency_target): New.
18149         (cpp_read_main_file): Don't overlay a buffer.
18150         (cpp_finish): Take a deps output stream and write deps to it.
18151         Return the error count.
18152         (cpp_post_options): Don't canonicalize out_fname, or do anything
18153         with dependencies.
18154         * cpplib.h (struct cpp_options): Remove out_fname and
18155         preprocess_only.
18156         (cpp_add_dependency_target): New.
18157         (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
18158         * cppmain.c (cpp_preprocess_file): Update prototype.  Don't
18159         set preprocess_only.  Don't handle the output stream directly.
18160
18161 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18162
18163         * dsp16xx.c (print_operand): Fix format specifier.
18164         * dsp16xx.md: Avoid automatic aggregate initialization.
18165         * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
18166         * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
18167         integer constant modifier.
18168         * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
18169         * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
18170         guards.
18171         * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
18172         * v850.c (v850_select_section): Mark parameter with
18173         ATTRIBUTE_UNUSED.
18174         * global.c (global_alloc): Const-ify.
18175         * ra-colorize.c (hardregset_to_string): Fix format specifier.
18176
18177 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18178
18179         * darwin-c.c (darwin_pragma_options): Const-ify.
18180         * darwin.c (machopic_non_lazy_ptr_name,
18181         machopic_validate_stub_or_non_lazy_ptr): Likewise.
18182         (machopic_indirect_data_reference): Wrap variables in macros
18183         controlling their use.
18184         (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
18185         (machopic_select_section): Use parentheses around && within ||.
18186         * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
18187
18188 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18189
18190         * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
18191         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
18192         ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
18193         ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
18194         mdr_try_remove_redundant_insns, track_w_reload,
18195         mdr_try_wreg_elim): Make function static to match prototype.
18196         * mmix.c (mmix_target_asm_function_epilogue): Likewise.  Mark
18197         parameter with ATTRIBUTE_UNUSED.
18198
18199 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18200
18201         * arc.c (arc_init): Don't use ISO C style function definitions.
18202         * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
18203         arm_get_strip_length, arm_strip_name_encoding): Likewise.
18204         * avr.h (progmem_section): Likewise.
18205         * h8300.c h8300_asm_insn_count): Likewise.
18206         * m32r.c (init_idents): Likewise.
18207         * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
18208         * sh.c (sh_cfun_interrupt_handler_p): Likewise.
18209         * xtensa.c (xtensa_build_va_list): Likewise.
18210
18211 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
18212
18213         * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
18214         * c-opts.c (parse_option): Rename find_opt.
18215         (set_std_c99): New function.
18216         (COMMAND_LINE_OPTIONS): Handle -remap and -o.  Remove OPT_std_bad.
18217         (missing_arg): Remove OPT_std_bad.  Handle -o.
18218         (c_common_decode_option): Handle input and output file names,
18219         -o and -remap.  Clean up -std= handling.
18220         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
18221         (cpp_handle_option): Similarly.  Don't handle filenames.
18222
18223 Sun Aug 11 14:43:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
18224
18225         * i386.c (classify_argument): Fix computing of field's offsets.
18226
18227 2002-08-11  Andreas Jaeger  <aj@suse.de>
18228
18229         PR target/7531:
18230         * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
18231
18232 2002-08-10  Ziemowit Laski  <zlaski@apple.com>
18233
18234         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
18235         reference to clk_objective_c with flag_objc.
18236         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
18237         Likewise.
18238         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
18239
18240 2002-08-10  Neil Booth  <neil@daikokuya.co.uk>
18241
18242         * c-opts.c (set_std_cxx98, set_std_c89): New.
18243         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
18244         (c_common_decode_option): Handle new switches from cppinit.c.
18245         Add -std=gnu++98.
18246         * cppinit.c (set_lang): Rename cpp_set_lang.  Export.
18247         (no_arg, no_num): Remove.
18248         (COMMAND_LINE_OPTIONS): Move more to c-opts.c.  Drop all lang-
18249         switches apart from -lang-objc and lang-asm.
18250         (cpp_handle_option): Similarly.
18251         * cpplib.h (cpp_set_lang): New.
18252         * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
18253         -std=gnu++98.
18254         * objc/lang-specs.h: Remove -ansi.
18255
18256 Sat Aug 10 19:59:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
18257                                Graham Stott
18258
18259         * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
18260         errors.
18261
18262 2002-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18263
18264         * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
18265         emit_jump_insn): Fix uninitialized variable.
18266         * gcov.c (init_line_info): Likewise.
18267         * genautomata.c (transform_3): Add braces around ambiguous
18268         else.
18269         * ifcvt.c (cond_exec_process_insns): Mark parameter with
18270         ATTRIBUTE_UNUSED.
18271         * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
18272         * regrename.c (copyprop_hardreg_forward): Fix uninitialized
18273         variable.
18274
18275         * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
18276         warnings in output files.
18277
18278 2002-08-09  Ziemowit Laski  <zlaski@apple.com>
18279
18280         * c-common.c (flag_objc): New.
18281         * c-common.h (c_language_kind): Get rid of clk_objective_c
18282         enum value.
18283         (flag_objc): New extern declaration.
18284         * c-decl.c (implicitly_declare): Call objc_check_decl
18285         instead of maybe_objc_check_decl.
18286         (finish_decl): Likewise.
18287         (grokfield): Likewise.
18288         (finish_struct): Likewise.
18289         * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
18290         (maybe_objc_comptypes): Rename to objc_comptypes.
18291         (maybe_building_objc_message_expr): Rename to
18292         objc_message_selector.
18293         * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
18294         replace with flag_objc as needed.
18295         * c-opts.c (c_common_init_options): Likewise.
18296         (c_common_decode_option): Likewise.
18297         * c-parse.in (init_reswords): Likewise.
18298         * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
18299         (maybe_objc_comptypes): Rename to objc_comptypes.
18300         (maybe_building_objc_message_expr): Rename to
18301         objc_message_selector.
18302         * c-typeck.c (comptypes): Call objc_comptypes instead of
18303         maybe_objc_comptypes, and/or objc_message_selector instead of
18304         maybe_building_objc_message_expr.
18305         (comp_target_types): Likewise.
18306         (convert_for_assignment): Likewise.
18307         (warn_for_assignment): Likewise.
18308         * cppinit.c (init_builtins): Set __OBJC__ manifest constant
18309         independently of those for other languages.
18310         * objc/objc-act.c (maybe_objc_comptypes): Delete.
18311         (maybe_objc_check_decl): Delete.
18312         (maybe_building_objc_message_expr): Rename to
18313         objc_message_selector.
18314         * objc/objc-lang.c (objc_init_options): Use clk_c instead of
18315         clk_objective_c; set flag_objc flag.
18316
18317 2002-08-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
18318
18319         * ifcvt.c (find_if_case_2): Test correct basic block for size.
18320
18321 2002-08-09  Dale Johannesen  <dalej@apple.com>
18322
18323         * config/rs6000/rs6000.md: Add sibcall patterns.
18324         * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL):  Define.
18325         * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
18326         Rewritten to handle sibcalls.
18327         * config/rs6000/rs6000.c (function_ok_for_sibcall):  New.
18328         * config/rs6000/rs6000-protos.h (function_ok_for_sibcall):  New.
18329
18330 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
18331
18332         * profile.c (da_file_name): New static var.
18333         (init_branch_prob): Initialize it.
18334         (end_branch_prob): Remove da file.
18335
18336         * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
18337         * configure.in (coverage_flags): Default to nothing.
18338         * configure: Rebuilt.
18339
18340 2002-08-09  Neil Booth  <neil@daikokuya.co.uk>
18341
18342         * Makefile.in (c-opts.o): Update
18343         * c-opts.c: Include intl.h.
18344         (print_help): Move from cppinit.c.  Remove unused options.
18345         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
18346         (missing_arg): Complain for switches without an argument.
18347         (c_common_decode_option): Reject missing joined arguments.
18348         Handle new switches from cppinit.c.
18349         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
18350         (cpp_handle_option): Similarly.
18351         (print_help): Moved to c-opts.c.
18352         * cpplib.h (struct cpp_options): Remove help_only.
18353         * gcc.c (cpp_unique_options): Remove -$.
18354         * doc/cppopts.texi: Undocument -h.
18355
18356 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
18357
18358         * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
18359         legitimate constant.
18360         (legitimate_pic_operand_p): Neither pic operand.
18361         (legitimate_address_p): But legitimate address.
18362         (get_thread_pointer): Generate MEM/u instead of CONST around
18363         UNSPEC_TP.
18364         (print_operand): Remove printing of UNSPEC_TP.
18365         (print_operand_address): And print it here.
18366
18367 2002-08-08  Devang Patel  <dpatel@apple.com>
18368
18369         * objc/objc-act.c (build_selector_translation_table): Issue warning,
18370         when  -Wselector is used,if method for which selector is being
18371         created does not exist.
18372
18373 2002-08-08  Stephen Clarke <stephen.clarke@superh.com>
18374
18375         * config/sh/sh.c (prepare_move_operands): Only call
18376         target_reg_operand if TARGET_SHMEDIA.
18377
18378 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
18379
18380         * config/rs6000/rs6000.h, config/rs6000/aix.h,
18381         config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
18382         two patches.
18383         * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
18384
18385 2002-08-08  Lars Brinkhoff  <lars@nocrew.org>
18386             Richard Henderson  <rth@redhat.com>
18387
18388         * emit-rtl.c (gen_rtx_REG): After reload, only return
18389         frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
18390
18391 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
18392
18393         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
18394         * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
18395         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
18396         macro.
18397
18398 2002-08-08  Adam Nemet  <anemet@lnxw.com>
18399
18400         * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
18401         register.
18402         (thumb_expand_prologue): Likewise.
18403         (thumb_output_function_prologue): Likewise.
18404         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
18405         the additional push of the PIC register.
18406
18407 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
18408
18409         * configure.in (enable_coverage): New enable switch.
18410         * configure: Rebuilt.
18411         * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
18412         (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
18413         (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
18414         (mostlyclean): Remove coverage files.
18415         * doc/install.texi: Document enable_coverage.
18416
18417         * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
18418         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
18419         * f/Make-lang.in (f.mostlyclean): Remove coverage files.
18420         * java/Make-lang.in (java.mostlyclean): Remove coverage files.
18421         * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
18422         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
18423         files.
18424
18425 2002-08-08  Neil Booth  <neil@daikokuya.co.uk>
18426
18427         * c-opts.c (cpp_opts): New.
18428         (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
18429         (c_common_decode_options): Handle cpplib switches.
18430         (c_common_init_options): Set cpp_opts.
18431         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
18432         (cpp_handle_option): Similarly.
18433
18434 2002-08-08  David Edelsohn  <edelsohn@gnu.org>
18435
18436         * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
18437         (TARGET_ALTIVEC_ABI): Same.
18438         (TARGET_ALTIVEC_VRSAVE): Same.
18439
18440         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
18441         icode not CODE_FOR_nothing.  Change switch to if.
18442
18443 2002-08-08  Alan Modra  <amodra@bigpond.net.au>
18444
18445         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
18446
18447 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
18448
18449         * stor-layout.c (place_union_field): For bitfields if
18450         PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
18451         TYPE_USER_ALIGN.
18452
18453 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18454
18455         * pa.c (struct deferred_plabel): Constify name field.
18456
18457 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
18458
18459         * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
18460
18461 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18462
18463         * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
18464         local_prefix are the same.
18465         * configure: Rebuilt.
18466
18467 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
18468             Richard Henderson  <rth@redhat.com>
18469
18470         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
18471         to type_align when PCC_BITFIELD_TYPE_MATTERS.  Only apply
18472         ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
18473         (place_field): Likewise.
18474         * config/i386/i386.c (x86_field_alignment): Don't check
18475         DECL_USER_ALIGN here.
18476         * config/rs6000/rs6000.c (rs6000_field_alignment): New.
18477         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
18478         prototype.
18479         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
18480         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
18481         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
18482         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
18483         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
18484         * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
18485
18486 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
18487
18488         * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
18489         * c-common.c: Don't include tree-inline.h.
18490         (c_common_init_options, c_common_post_options): Move to c-opts.c.
18491         * c-common.h (c_common_decode_option): New.
18492         * c-decl.c (c_decode_option): Remove.
18493         * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
18494         * c-opts.c: New file.
18495         * c-tree.h (c_decode_option): Remove.
18496         * doc/passes.texi: Update.
18497         * objc/objc-act.c (objc_decode_option): Remove.
18498         * objc/objc-act.h (objc_decode_option): Remove.
18499         * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
18500         c_common_decode_option.
18501
18502 2002-08-07  Chris Demetriou  <cgd@broadcom.com>
18503
18504         * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
18505         dependency on TARGET_DOUBLE_FLOAT.
18506
18507 2002-08-07  Stephen Clarke <stephen.clarke@superh.com>
18508
18509         * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
18510         overwrite callee-save registers.  Fix comment.
18511
18512 2002-08-06  Chris Demetriou  <cgd@broadcom.com>
18513
18514         * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
18515         in target_flags based on ISA, if it was not set on the command
18516         line.  Warn if MASK_BRANCHLIKLEY is set but the ISA does not
18517         support Branch Likely instructions.
18518         * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
18519         (TARGET_BRANCHLIKELY): Likewise.
18520         (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
18521         (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
18522         ISA_HAS_BRANCHLIKELY.
18523         (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
18524         * doc/invoke.texi: Document new MIPS -mbranch-likely and
18525         -mno-branch-likely options.
18526
18527 2002-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18528
18529         * ip2k.c (ip2k_set_compare): Add missing iteration variable.
18530
18531         * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
18532         $(GCONFIG_H).
18533
18534 2002-08-06  Aldy Hernandez  <aldyh@redhat.com>
18535
18536         * c-decl.c (duplicate_decls): Error out for incompatible TLS
18537         declarations.
18538
18539         * testsuite/gcc.dg/tls/diag-3.c: New.
18540
18541 2002-08-06  Dale Johannesen  <dalej@apple.com>
18542
18543         * c-common.c (fname_decl): Use line number 0 for
18544         __func__, to avoid confusing debuggers.
18545
18546 2002-08-06  Nathan Sidwell  <nathan@codesourcery.com>
18547
18548         * gcov.c: Tidy.
18549         (struct line_info, struct coverage): New structures.
18550         (gcov_file_name, gcov_file): Remove globals.
18551         (output_data): Take source file parameter. Fix memory leak. Break
18552         up into ...
18553         (init_line_info, output_line_info, make_gcov_file_name,
18554         accumulate_branch_counts): ... here.
18555         (calculate_branch_probs, function_summary): Adjust.
18556         (main): Adjust.
18557         (function_*): Remove global variables.
18558
18559 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
18560
18561         * dwarf2out.c: Remove unused macros.
18562
18563 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
18564
18565         * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
18566
18567 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
18568
18569         * cppinit.c (struct lang_flags): Rename trigraphs std.
18570         (set_lang): Update.
18571         * cpplib.h (struct cpp_options): New member std.
18572         * cppmacro.c (_cpp_builtin_macro_text): Use std.
18573         (collect_args): Flag whether to swallow a possible future
18574         comma pasted with varargs.
18575         (replace_args): Use this flag.
18576         * doc/cpp.texi: Update varargs extension documentation.
18577
18578 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
18579
18580         * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
18581
18582 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
18583
18584         * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
18585         and MODE_CLASS_INT modes.
18586
18587 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
18588
18589         * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
18590         --{enable,disable}-threads is given to configure.
18591         (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
18592         x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
18593         powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
18594         s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
18595         Remove thread_file setting here.
18596
18597 2002-08-06  David Edelsohn  <edelsohn@gnu.org>
18598
18599         * doc/install.texi (Binaries): Update Bull Freeware URL.
18600
18601 2002-08-06  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18602
18603         * doc/gcc.texi (Top): Rename Index to Keyword Index.
18604
18605 2002-08-05  Nathan Sidwell  <nathan@codesourcery.com>
18606
18607         * gcov.c (output_data): Round to % to nearest, tweak formatting.
18608
18609 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
18610
18611         * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
18612         of the operands into MINUS_EXPR if code is PLUS_EXPR.
18613
18614 2002-08-05  Douglas B Rupp  <rupp@gnat.com>
18615
18616         * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
18617         * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
18618         drectve_section): Define.
18619         * config/i386/t-interix: Replace interix.o rule with winnt.o.
18620         * config/i386/interix.c: Remove.
18621
18622 2002-08-05  Geoffrey Keating  <geoffk@redhat.com>
18623
18624         * attribs.c: Don't include obstack.h.
18625         * builtins.c: Likewise.
18626         * cfganal.c: Likewise.
18627         * cfgbuild.c: Likewise.
18628         * cfgcleanup.c: Likewise.
18629         * emit-rtl.c: Likewise.
18630         * loop.c: Likewise.
18631         * stmt.c: Likewise.
18632
18633         * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
18634
18635 2002-08-05  Gabriel Dos Reis  <gdr@nerim.net>
18636
18637         * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
18638
18639 2002-08-04  Chris Demetriou  <cgd@broadcom.com>
18640
18641         * doc/invoke.texi: Remove duplicated paragraph describing
18642         TARGET_SWITCHES.
18643
18644 2002-08-04  Geoffrey Keating  <geoffk@redhat.com>
18645
18646         * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
18647         * collect2.h (permanent_obstack): Delete declaration.
18648         * collect2.c (permanent_obstack): Delete definition.
18649         (main): Don't initialize permanent_obstack.  Use xstrdup instead.
18650         * expr.c: Don't include obstack.h.
18651         (permanent_obstack): Delete declaration.
18652         * function.c: Don't include obstack.h.
18653         (permanent_obstack): Delete declaration.
18654         * integrate.c: Don't include obstack.h.
18655         (function_maybepermanent_obstack): Delete declaration.
18656         * print-tree.c (debug_tree): Use x*alloc not permalloc.
18657         * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
18658         * tlink.c (pfgets): Use xstrdup not permanent_obstack.
18659         * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
18660         * tree.h: Rename init_obstacks to init_ttree.  Remove declarations
18661         of permalloc, expralloc, perm_calloc.
18662         * tree.c (permanent_obstack): Delete definition.
18663         (init_ttree): Rename from init_obstacks.
18664         (permalloc): Delete.
18665         (perm_calloc): Delete.
18666         (dump_tree_statistics): Don't print information about
18667         permanent_obstack.
18668         * varasm.c (assemble_start_function): Use xstrdup instead of
18669         permalloc/strcpy.
18670         (assemble_variable): Likewise.
18671         * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
18672         permalloc.
18673         (unicosmk_add_extern): Likewise.
18674         * config/c4x/c4x.c (c4x_external_ref): Likewise.
18675         (c4x_global_label): Likewise.
18676         * config/frv/frv.c (frv_encode_section_info): Likewise.
18677         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
18678         (i386_pe_record_exported_symbol): Likewise.
18679         * config/mips/mips.c (mips_output_external): Likewise.
18680         (mips_output_external_libcall): Likewise.
18681         * config/pa/pa.c: (permanent_obstack): Delete declaration.
18682         (output_call): Use ggc_strdup instead of allocating on
18683         permanent_obstack.
18684         * config/romp/romp.c: Include ggc.h.
18685         (get_symref): Don't declare permanent_obstack, use ggc_strdup
18686         intead of permanent_obstack.
18687         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
18688         instead of permalloc.
18689         * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
18690         instead of permalloc
18691         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
18692         instead of permalloc.
18693         * config/vax/vax.c (vms_check_external): Use xmalloc instead of
18694         permalloc.
18695
18696 2002-08-04  Bernd Schmidt  <bernds@redhat.com>
18697
18698         Contribute a port developed primarily by Michael Meissner,
18699         Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
18700         * config.gcc: Add frv-elf target.
18701         * config/frv/cmovd.c: New file.
18702         * config/frv/cmovh.c: New file.
18703         * config/frv/cmovw.c: New file.
18704         * config/frv/frv-abi.h: New file.
18705         * config/frv/frv-asm.h: New file.
18706         * config/frv/frv-modes.def: New file.
18707         * config/frv/frv-protos.h: New file.
18708         * config/frv/frv.c: New file.
18709         * config/frv/frv.h: New file.
18710         * config/frv/frv.md: New file.
18711         * config/frv/frvbegin.c: New file.
18712         * config/frv/frvend.c: New file.
18713         * config/frv/lib1funcs.asm: New file.
18714         * config/frv/media.h: New file.
18715         * config/frv/modi.c: New file.
18716         * config/frv/t-frv: New file.
18717         * config/frv/uitod.c: New file.
18718         * config/frv/uitof.c: New file.
18719         * config/frv/ulltod.c: New file.
18720         * config/frv/ulltof.c: New file.
18721         * config/frv/umodi.c: New file.
18722         * config/frv/xm-frv.h: New file.
18723
18724         * config/frv/media.h: Removed again.
18725
18726 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
18727
18728         * gcov.c (bb_file_time): New static variable.
18729         (object_directory): May also be object file.
18730         (preserve_paths): New static variable.
18731         (print_usage): Adjust.
18732         (options): Adjust.
18733         (process_args): Adjust.
18734         (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
18735         file. Find modification date on bb file.
18736         (read_profile): Don't rewind a NULL file.
18737         (format_hwint): New static function.
18738         (function_summary): Use format_hwint.
18739         (output_data): SOURCE_FILE_NAME is never relative to
18740         OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
18741         mangling. Adjust output format to make it more machine readable.
18742         * doc/gcov.texi: Document & clarify semantics.
18743
18744 2002-08-04  Joseph S. Myers  <jsm@polyomino.org.uk>
18745
18746         * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
18747
18748 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
18749
18750         * gcc.c (cc1_options): Pass output file as auxbase when
18751         appropriate.
18752         * profile.c (init_branch_prob): FILENAME has already had ending
18753         stripped.
18754         * final.c (end_final): Likewise.
18755         * toplev.c (aux_base_name): New global.
18756         (compile_file): Pass aux_base_name to init init_branch_prob and
18757         end_final.
18758         (independent_decode_option, case 'a'): New auxinfo options.
18759         (case 'd'): Protect against mising basename.
18760         (do_compile): Initialize aux_base_name.
18761         * toplev.h (aux_base_name): New global.
18762         * doc/invoke.texi: Adjust documentation.
18763
18764 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
18765
18766         * config/i386/i386.c (x86_field_alignment): Remove duplicate test
18767         of TARGET_ALIGN_DOUBLE.
18768
18769 2002-08-04  Gabriel Dos Reis  <gdr@nerim.net>
18770
18771         * diagnostic.c (inform): New function.
18772         * diagnostic.h (inform): Declare.
18773
18774 2002-08-03  David Edelsohn  <edelsohn@gnu.org>
18775
18776         * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
18777         (movhi_internal): Same.
18778         (movqi_internal): Same.
18779         (movdi_internal64): Same.
18780
18781         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
18782
18783         * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
18784         (ASM_OUTPUT_SKIP): Use it.  SIZE unsigned.
18785         (COMMON_ASM_OP): Define.
18786         (ASM_OUTPUT_ALIGNED_COMMON): Use it.  SIZE unsigned.
18787         Use ALIGN parameter.
18788         (LOCAL_COMMON_ASM_OP): Define.
18789         (ASM_OUTPUT_LOCAL): Use it.  SIZE unsigned.
18790
18791 2002-08-03  Roger Sayle  <roger@eyesopen.com>
18792
18793         * builtins.def: Define new builtin functions exp, expf, expl,
18794         log, logf and logl (and their __builtin_* variants).
18795         * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
18796         Define exp_optab and log_optab.
18797         * optabs.c (init_optans): Initialize exp_optab and log_optab.
18798         * genopinit.c (optabs): Implement exp_optab and log_optab
18799         using exp?f2 and log?f2 patterns.
18800         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
18801         and BUILT_IN_LOG* using exp_optab and log_optab respectively.
18802         (expand_builtin): Ignore the new builtins (and all cos and
18803         sin variants) when not optimizing.  Expand new builtins via
18804         expand_builtin_mathfn when flag_unsafe_math_optimizations.
18805
18806         * doc/extend.texi: Document new exp and log builtins.
18807         * doc/md.texi: Document new exp?f2 and log?f2 patterns
18808         (and previously undocumented cos?f2 and sin?f2 patterns).
18809
18810 2002-08-03  Jason Merrill  <jason@redhat.com>
18811
18812         * explow.c (int_expr_size): New fn.
18813         * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
18814         * expr.h: Declare it.
18815
18816 2002-08-02  Krister Walfridsson  <cato@df.lth.se>
18817
18818         * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
18819         gengtype-* dependencies.
18820
18821 2002-08-02  Eric Christopher  <echristo@redhat.com>
18822
18823         * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
18824         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
18825         #ifndef to #undef.
18826         (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
18827
18828 2002-08-02  David Edelsohn  <edelsohn@gnu.org>
18829
18830         PR optimize/7067
18831         * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
18832         small if optimizing for size.
18833
18834 2002-08-02  Daniel Jacobowitz  <drow@mvista.com>
18835
18836         * configure.in (FORBUILD): Use $build_alias.
18837         * configure: Regenerated.
18838
18839 2002-08-02  Richard Sandiford  <rsandifo@redhat.com>
18840
18841         * config.gcc: Don't include mips/abi64.h in $tm_file.
18842         * hard-reg-set.h (call_really_used_regs): Declare.
18843         * config/mips/abi64.h: Remove file.
18844         * config/mips/linux.h,
18845         * config/mips/iris6.h: Don't include it.
18846         * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
18847         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
18848         (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
18849         FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
18850         FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
18851         Bring across definitions from abi64.h.
18852         (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
18853         (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
18854         (struct mips_args): Use it.
18855         * config/mips/mips.c (mips_conditional_register_usage): Define.
18856
18857 2002-08-02  Jason Merrill  <jason@redhat.com>
18858
18859         * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
18860         * langhooks.c (lhd_expr_size): Define default.
18861         * langhooks.h (struct lang_hooks): Add expr_size.
18862         * explow.c (expr_size): Call it.
18863         * expr.c (store_expr): Don't copy an expression of size zero.
18864         (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
18865         to store.
18866         * Makefile.in (builtins.o): Depend on langhooks.h.
18867
18868 2002-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18869
18870         * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
18871         * ra-debug.c: Include "tm_p.h".
18872         * ra-rewrite.c (is_partly_live_1): Change return type to bool.
18873
18874 2002-08-02  Toon Moene  <toon@moene.indiv.nluug.nl>
18875
18876         * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
18877         when not honoring signalling NaNs.
18878         (simplify_ternary_operation): a == b has a definite value
18879         when not honoring NaNs.
18880
18881 2002-08-02  Jason Merrill  <jason@redhat.com>
18882
18883         * gdbinit.in (pct): New macro.
18884
18885 2002-08-01  Stan Shebs  <shebs@apple.com>
18886             Andreas Tobler  <toa@pop.agri.ch>
18887
18888         * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
18889         plays nice with Darwin headers.
18890         (_BSD_RUNE_T_DEFINED_): Likewise.
18891
18892 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
18893
18894         * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
18895         * cppinit.c (cpp_post_options): Likewise.
18896
18897         * cppexp.c (cpp_classify_number): Suppress -Wtraditional
18898         warning about 'LL' suffix (but not 'ULL' etc) when
18899         -Wno-long-long is in effect.
18900
18901         * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
18902         Check for failing time()/localtime(), issue a warning, and
18903         make __TIME__ and __DATE__ expand to fallback strings.
18904
18905         * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
18906         and __TIME__ when the date and time cannot be determined.
18907
18908 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
18909
18910         * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
18911
18912 2002-08-01  Daniel Jacobowitz  <drow@mvista.com>
18913
18914         * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
18915
18916 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
18917
18918         * config.gcc (mipsisa64sb1-*-elf*): New configuration.
18919         (mipsisa64sb1el-*-elf*): Likewise.
18920         * config/mips/mips.c (mips_cpu_info_table): Add sb1.
18921         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
18922         (TARGET_SB1, TUNE_SB1): New macros.
18923         * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
18924         -mtune flags.
18925
18926 2002-08-01  David Edelsohn  <edelsohn@gnu.org>
18927
18928         * varasm.c (asm_emit_uninitialized): Return false if global BSS
18929         and ASM_EMIT_BSS not supported by target.
18930         (assemble_variable): Do not duplicate uninitialized logic.
18931         Fall through if asm_emit_uninitialized failed.
18932
18933 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
18934
18935         * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
18936
18937 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
18938
18939         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
18940         (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
18941
18942         * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
18943         HOST_BITS_PER_WIDE_INT == 64.
18944
18945 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18946
18947         * df.c (df_insn_table_realloc): Change parameter to unsigned.
18948         * optabs.c (expand_binop): Make variable unsigned.
18949         * simplify-rtx.c (simplify_subreg): Likewise.
18950         * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
18951
18952 2002-08-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
18953
18954         * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
18955
18956 2002-08-01  Richard Henderson  <rth@redhat.com>
18957
18958         * toplev.c (parse_options_and_default_flags): Don't set
18959         flag_reorder_blocks for -Os.
18960
18961         * config/avr/avr.c (avr_optimization_options): Remove.
18962         * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
18963         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
18964         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
18965
18966 2002-08-01  H.J. Lu <hjl@gnu.org>
18967             Richard Henderson  <rth@redhat.com>
18968
18969         * output.h (DECL_READONLY_SECTION): Remove.
18970         (decl_readonly_section): Declare.
18971         * varasm.c (decl_readonly_section): New.
18972         (default_section_type_flags, default_select_section): Use it.
18973         * config/arm/pe.c (arm_pe_unique_section): Likewise.
18974         * config/i386/interix.c (i386_pe_unique_section): Likewise.
18975         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
18976         * config/mcore/mcore.c (mcore_unique_section): Likewise.
18977         * config/mips/mips.c (mips_unique_section): Likewise.
18978
18979 2002-08-01  Richard Henderson  <rth@redhat.com>
18980
18981         * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
18982         refers to a subroutine parameter.
18983
18984 2002-08-01  Jakub Jelinek  <jakub@redhat.com>
18985
18986         * varasm.c (assemble_visibility): Strip name encoding.
18987
18988 2002-08-01  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
18989
18990         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
18991         (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
18992         when there is no frame pointer.
18993         (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
18994         registers properly.
18995         * config/ns32k/__unorddf2.c: New file.
18996         * config/ns32k/__unordsf2.c: New file.
18997         * config/ns32k/t-ns32k: New file.
18998         * config.gcc (ns32k-*-netbsd*): Use it.
18999
19000 2002-08-01  Aldy Hernandez  <aldyh@redhat.com>
19001
19002         * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
19003
19004 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
19005
19006         * c-common.c (__GXX_ABI_VERSION): Correct spelling.
19007
19008 2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>
19009
19010         * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
19011
19012 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
19013
19014         * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
19015
19016 2002-08-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19017
19018         * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
19019         n_sets): Removed.
19020         (expr_hash_table, set_hash_table): Type changed to ...
19021         (struct hash_table): New type.
19022         (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
19023         insert_expr_in_table, insert_set_in_table, compute_hash_table,
19024         dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
19025         compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
19026         (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
19027         (alloc_hash_table): New.
19028         (free_set_hash_table, free_expr_hash_table): Merged to ...
19029         (free_hash_table): New.
19030         (compute_set_hash_table, compute_expr_hash_table): Merged to ...
19031         (compute_hash_table_work): New.
19032         (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
19033         find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
19034         pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
19035         one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
19036         hoist_code, one_code_hoisting_pass,
19037         trim_ld_motion_mems): Altered due to changed type of hash tables.
19038
19039 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
19040
19041         * final.c (output_alternate_entry_point):
19042         If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
19043
19044 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19045
19046         * objc/objc-act.c (encode_complete_bitfield): Add prototype and
19047         avoid ISO C style function definition.
19048
19049         * expr.c (expand_assignment): Delete unused variable.
19050
19051 2002-08-01  Toon Moene  <toon@moene.indiv.nluug.nl>
19052
19053         * c-common.c (cb_register_builtins): Set
19054         __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
19055         is given, and to 0 otherwise.
19056         * combine.c (simplify_if_then_else): HONOR_NANS
19057         implies FLOAT_MODE_P.
19058
19059 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
19060
19061         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
19062         (cpp_handle_option): Don't handle it.
19063         (print_help): Update.
19064         * doc/cppopts.texi: Update.
19065
19066 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
19067
19068         * c-common.c (cb_register_builtins): If C++, define
19069         __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
19070         * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
19071 cp:
19072         * lang-specs.h: Simplify in accordance with new code in
19073         c-common.c.
19074
19075 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
19076
19077         * c-common.c: Define all C/ObjC/C++ warning and flag variables.
19078         * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
19079         * c-decl.c: Move all warning and flag variables to c-common.c.
19080         * c-format.c: Move all warning variables to c-common.c.
19081         * c-tree.h: Move all warning and flag declarations to c-common.h.
19082         * objc/objc-act.c: Move all warning variables to c-common.c.
19083         (flag_warn_protocol): Rename warn_protocol.
19084
19085 2002-07-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19086
19087         * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
19088
19089 2002-07-31  Graham Stott  <graham.stott@btinternet.com>
19090
19091         * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
19092         .section prefix.
19093
19094 2002-07-31  Stan Shebs  <shebs@apple.com>
19095
19096         * config.gcc (i[34567]86-*-darwin*): New configuration.
19097         * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
19098         defining.
19099         (TARGET_ENCODE_SECTION_INFO): Ditto.
19100         (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
19101         * config/darwin.c (machopic_indirect_data_reference): Remove
19102         setting of RTX_UNCHANGING_P.
19103         (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
19104         not to be applied to sums.
19105         * config/i386/t-darwin: New file.
19106         * config/i386/darwin.h: New file.
19107         * config/i386/i386.h (TARGET_MACHO): Add default definition.
19108         * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
19109         * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
19110         label and not the GOT add.
19111         (constant_address_p): For Mach-O, seeing a CONST is enough.
19112         (legitimate_pic_address_disp_p): Add a Mach-O case.
19113         (legitimate_address_p): Also test machopic_operand_p if Mach-O.
19114         (legitimize_pic_address): Use generic Mach-O code to legitimize.
19115         (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
19116         if outputting a difference.
19117         (ix86_output_addr_diff_elt): Add Mach-O case.
19118         (ix86_expand_move): Similarly.
19119         (ix86_expand_call): Similarly.
19120         (current_machopic_label_num): New global.
19121         (machopic_output_stub): New function.
19122         (ix86_value_regno): New function.
19123         (ix86_function_value): Use it instead of VALUE_REGNO.
19124         (ix86_libcall_value): Ditto.
19125         * config/i386/unix.h (VALUE_REGNO): Remove.
19126
19127 2002-07-31  Graham Stott  <grahas@btinternet.com>
19128
19129         * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
19130         hash for LABEL_REF's.
19131
19132 2002-07-31  Graham Stott  <grahams@btinternet.com>
19133
19134         * config/rs6000/rs6000.c (spe_init_builtins,
19135         altivec_init_builtins, rs6000_common_init_builtins):
19136         Replace ANSI with K&R function def.
19137
19138 2002-07-31  David Edelsohn  <edelsohn@gnu.org>
19139
19140         * rs6000.c (validate_condition_mode): Test flag_finite_math_only
19141         for CCFPmode.
19142
19143 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
19144
19145         * config/mips/crtn.asm: Don't use __mips16 to determine the
19146         return-address offset.  Define RA to a suitable temporary
19147         register for the return address.
19148
19149 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
19150
19151         * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
19152         constraints to 'd'.
19153
19154 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
19155
19156         * config/mips/elf.h (STARTFILE_SPEC): Define differently if
19157         default ABI is MEABI.  (Undoes incorrect change in Eric Christopher's
19158         patch on 2002-07-29.)
19159         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
19160
19161 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19162
19163         * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
19164         fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
19165         ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
19166         openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
19167         s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
19168         (ASM_GLOBALIZE_LABEL): Delete.
19169         (GLOBAL_ASM_OP): Define.
19170
19171         * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
19172
19173         * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
19174         * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
19175
19176 2002-07-30  Geoffrey Keating  <geoffk@redhat.com>
19177
19178         * doc/extend.texi (Hints implementation): Document that GCC
19179         mostly ignores `register'.
19180
19181 2002-07-30  Toon Moene  <toon@moene.indiv.nluug.nl>
19182
19183         * flags.h: Declare flag_finite_math_only.
19184         Use it in definition of HONOR_NANS and
19185         HONOR_INFINITIES.
19186         * c-common.c (cb_register_builtins): Emit
19187         __FINITE_MATH_ONLY__ when flag_finite_math_only
19188         is set.
19189         * combine.c (simplify_if_then_else): If
19190         flag_finite_math_only is set, a == b has a
19191         definite value.
19192         * toplev.c: Initialize flag_finite_math_only.
19193         (set_flags_fast_math): Set it on -ffast-math.
19194         (flag_fast_math_set_p): Test it.
19195         * doc/invoke.texi: Document -ffinite-math-only.
19196
19197 2002-07-30  Richard Henderson  <rth@redhat.com>
19198
19199         * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
19200         (noce_process_if_block): Likewise.
19201
19202 2002-07-30  Bernd Schmidt  <bernds@redhat.com>
19203
19204         * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
19205         Bail out early if false_expr is NULL and we'd crash due to this.
19206         * genemit.c (gen_expand): Recognize return insns even if the return
19207         appears in a parallel.
19208         * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
19209         * config/fp-bit.c: Likewise.
19210         * doc/tm.texi: Document it.
19211
19212 2002-07-30  David Edelsohn  <edelsohn@gnu.org>
19213             Zack Weinberg  <zack@codesourcery.com>
19214
19215         * rs6000.c (rs6000_expand_unop_builtin): Check icode not
19216         CODE_FOR_nothing.  Change switch to if.
19217         (rs6000_expand_binop_builtin): Same.
19218         (rs6000_expand_builtin): Expand builtin if target support enabled.
19219         (rs6000_init_builtins): Init builtin if target support enabled.
19220         (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
19221
19222 2002-07-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19223
19224         * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
19225
19226 2002-07-30  Richard Sandiford  <rsandifo@redhat.com>
19227
19228         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
19229
19230 Tue Jul 30 18:31:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
19231
19232         * sh.md (cond_delay_slot): New attribute.
19233         (cbranch delay): Use it for anulled-true case.
19234         (stuff_delay_slot): New pattern.
19235         * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
19236         delay slot insn.
19237         (gen_far_branch): Emit stuff_delay_slot pattern.
19238
19239 Tue Jul 30 11:21:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
19240
19241         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
19242
19243 2002-07-30  Kazu Hirata  <kazu@cs.umass.edu>
19244
19245         * fold-const.c: Fix comment typos.
19246         * gcse.c: Likewise.
19247         * reload1.c: Likewise.
19248
19249 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
19250
19251         * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
19252         for TARGET_SPE.
19253
19254 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
19255
19256         * c-pretty-print.h (pp_c_statement): Declare.
19257         * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
19258         (pp_c_statement): Define.
19259
19260 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19261
19262         * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
19263         darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
19264         ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
19265         mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
19266         rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
19267         v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
19268
19269         * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
19270         * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
19271
19272 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
19273
19274         * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
19275         (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
19276         COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
19277         (pp_c_expression): Update.
19278
19279 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19280
19281         * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
19282         concat in lieu of xmalloc/strcpy/memcpy/sprintf.
19283         * alpha/vms-ld.c (main): Likewise.
19284         * dsp16xx.c (double_reg_to_memory): Likewise.
19285         * mcore.c (mcore_expand_prolog): Likewise.
19286         * cppfiles.c (read_name_map): Likewise.
19287         * gensupport.c (process_rtx, identify_predicable_attribute,
19288         alter_test_for_insn): Likewise.
19289         * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
19290
19291 2002-07-29  Roger Sayle  <roger@eyesopen.com>
19292
19293         * builtins.c (expand_builtin):  Change the default behavior to
19294         only issue an error if the builtin function doesn't have a
19295         fallback library call.  Remove several cases handled by the
19296         new default.
19297
19298 2002-07-29  John David Anglin  <dave@hiauly1.hia.nrc>
19299
19300         * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
19301         floating point format of the target is IEEE.
19302         * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
19303         format of the target is DEC.
19304
19305 2002-07-29  Richard Henderson  <rth@redhat.com>
19306
19307         * unroll.c (verify_addresses): Remove.
19308         (find_splittable_givs): Never split DEST_ADDR givs.
19309
19310 2002-07-29  Geoffrey Keating  <geoffk@redhat.com>
19311
19312         * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
19313         is exhaustive.
19314         (Files): Improve documentation on generated source files.
19315
19316         * doc/extend.texi (Translation implementation): Document what
19317         diagnostics look like.
19318         (Identifiers implementation): Document that there's normally no
19319         limit on identifier names.
19320         (Integers implementation): Document two's complement.
19321         (Hints implementation): Document that GCC honors 'inline', mostly.
19322         (Preprocessing directives implementation): Document that GCC
19323         requires the current time.
19324
19325 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
19326
19327         * c-pretty-print.h (struct c_pretty_print_info): Add new member.
19328         (pp_initializer): New macro.
19329         (pp_c_initializer): Declare.
19330         * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
19331         (pp_c_initializer): Define.
19332         (pp_c_initializer_list): New function.
19333         (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
19334         VECTOR_CST, CONSTRUCTOR.
19335         (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
19336         IMAGPART_EXPR.
19337         (pp_c_cast_expression): Handle FLOAT_EXPR.
19338         (pp_c_assignment_expression): Handle INIT_EXPR.
19339         (pp_c_expression): Update.
19340
19341 2002-07-30  Neil Booth  <neil@daikokuya.co.uk>
19342
19343         * objc/objc-act.c (objc_init): Return immediately if filename
19344         is NULL.
19345
19346 2002-07-29  Eric Christopher  <echristo@redhat.com>
19347
19348         * config/mips/elf.h: Remove ecoff.h and gofast includes.
19349         (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
19350         (SDB_DEBUGGING_INFO): Undefine.
19351         (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
19352         (PUT_SDB_SIZE): Remove.
19353         (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
19354         (STARTFILE_SPEC): Add isa3264 define.
19355         * config/mips/elf64.h: Ditto.  Move TARGET_MEM_FUNCTIONS from here...
19356         * config/mips/ecoff.h: Remove. and here...
19357         * config/mips/iris3.h: and here...
19358         * config/mips/sni-svr4.h: and here...
19359         * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
19360         Add assembler -mmdebug options for non-dwarf debugging.
19361         * config/mips/r3900.h: Remove debug info defines.
19362         * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
19363         * config/mips/isa3264.h: Ditto.
19364         * config/mips/t-isa3264: Fix up for file removal and gofast configure
19365         change.
19366         * config/mips/t-elf: Ditto.
19367         * config/mips/t-ecoff: Ditto.
19368         * config/mips/t-r3900: Ditto.
19369         * config/mips/t-iris5-6: Ditto.
19370         * config/mips/t-isa3264: Ditto.
19371         * config/mips/t-linux: Remove.
19372         * config/mips/t-netbsd: Remove.
19373         * config/mips/t-mips: New file.
19374         * config/mips/t-gofast: Ditto.
19375         * config/mips/netbsd.h: Remove unnecessary undefines.
19376         * config/mips/linux.h: Remove #include of mips.h.
19377         * config.gcc: Add mips.h include for elf targets. Remove tm_file
19378         for ecoff. Add gofast configure option for mips.
19379
19380 2002-07-29  Chris Demetriou  <cgd@broadcom.com>
19381
19382         * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
19383         linker scripts use STARTUP directives consistently.
19384         * configure: Regenerate.
19385         * config.in: Regenerate.
19386         * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
19387         on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
19388         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
19389         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
19390         HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
19391         will be the same.
19392
19393 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
19394
19395         * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
19396
19397 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
19398
19399         * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
19400
19401 2002-07-29  Aldy Hernandez  <aldy@quesejoda.com>
19402
19403         * config/rs6000/rs6000.md: Move altivec patterns from here...
19404
19405         * config/rs6000/altivec.md: ...to here.
19406
19407 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
19408
19409         * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
19410
19411 2002-07-29  Richard Henderson  <rth@redhat.com>
19412
19413         * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
19414         set_mem_attributes and add BITPOS argument.  Subtract it from
19415         OFFSET when same is adjusted.
19416         (set_mem_attributes): New wrapper function.
19417         * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
19418         remove offset adjustment hack.
19419         * expr.h (set_mem_attributes_minus_bitpos): Declare.
19420
19421 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
19422
19423         * Makefile.in (C_OBJS): Include c-pretty-print.o
19424         (c-pretty-print.o): Add depency rule.
19425         * pretty-print.h: Add more macros.
19426         * c-pretty-print.c: New file.
19427         * c-pretty-print.h: Likewise.
19428
19429 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
19430
19431         * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
19432         constants to __ev64_s32__.
19433         (__internal_ev_mwhgsmian): Same.
19434         (__internal_ev_mwhgsmfan): Same.
19435         (__internal_ev_mwhgssfan): Same.
19436         (__internal_ev_mwhgumiaa): Same.
19437         (__internal_ev_mwhgsmiaa): Same.
19438         (__internal_ev_mwhgsmfaa): Same.
19439         (__internal_ev_mwhgssfaa): Same.
19440
19441 2002-07-29  David Edelsohn  <edelsohn@gnu.org>
19442
19443         * varasm.c (assemble_variable): Narrow test for uninitialized
19444         without BSS target support.
19445
19446 2002-07-29  Nathan Sidwell  <nathan@codesourcery.com>
19447
19448         * profile.c: Add file comment describing the overall algorithm and
19449         structures.
19450         (struct edge_info): Add comments.
19451         (struct bb_info): Add comments.
19452         * basic-block.h (EDGE_*): Add comments.
19453         * doc/gcov.texi (Gcov Data Files): Document bit flags.
19454
19455 2002-07-29  Bob Wilson  <bob.wilson@acm.org>
19456
19457         * config/xtensa/elf.h, config/xtensa/linux.h
19458         (TARGET_OS_CPP_BUILTINS): Define.
19459         (CPP_PREDEFINES): Remove.
19460         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
19461         (CPP_SPEC): Remove.
19462
19463 2002-07-29  Zack Weinberg  <zack@codesourcery.com>
19464
19465         * gensupport.c: Include hashtab.h.
19466         (insn_elision, condition_table, hash_c_test, cmp_c_test,
19467         maybe_eval_c_test): New routines and data structures to
19468         support insn elision.
19469         (init_md_reader): Read and initialize the condition_table.
19470         (read_md_rtx): Discard insn patterns whose C test is provably
19471         always false.
19472         * gensupport.h: Declare new functions and data structures.
19473
19474         * genconditions.c, dummy-conditions.c: New files.
19475         * Makefile.in: Build genconditions; run it to construct
19476         insn-conditions.c; build that and link it into most gen*
19477         programs.
19478         (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
19479         (GEN): Delete, unused.
19480         (STAGESTUFF): Update.
19481
19482         * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
19483         CODE_FOR_nothing for all elided patterns.
19484         (main): Tweaked to support this.
19485         * genflags.c (gen_proto): Emit a static inline generator
19486         function here for all elided patterns, which simply returns
19487         NULL_RTX.
19488         (gen_insn): Do not define HAVE_xxx for elided patterns.
19489         (main): Tweaked to support this.  No need to forward-declare
19490         struct rtx_def.
19491         * genrecog.c: Do not bother emitting the C test if it's known
19492         to be true at compile time.
19493
19494 2002-07-29  Mike Stump  <mrs@apple.com>
19495
19496         * config.gcc (target_gtfiles): Initialize, as otherwise cross
19497         compilers hosted on powerpc-apple-darwin6.0 won't even build.
19498
19499 2002-07-29  Richard Earnshaw  <rearnsha@arm.com>
19500
19501         * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
19502         remove clobber of LR.
19503         (sibcall_insn, sibcall_value_insn): Update accordingly.
19504         (sibcall_epilogue): Remove debugging comment from assembler stream.
19505
19506 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
19507
19508         * pretty-print.h: Define more macros.
19509         * diagnostic.h (output_formatted_integer): Moved from...
19510         * diagnostic.c: ... here.
19511
19512 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19513
19514         * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
19515
19516 2002-07-28  Zack Weinberg  <zack@codesourcery.com>
19517
19518         * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
19519         arguments.  Always use ".-symbol" as expression argument.
19520         * doc/tm.texi: Update to match.  Document requirement for
19521         ".size symbol, .-symbol" to be acceptable to assembler.
19522
19523         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
19524         config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
19525         config/i386/freebsd-aout.h, config/i386/sco5.h,
19526         config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
19527         config/xtensa/linux.h:  Update uses of ASM_OUTPUT_MEASURED_SIZE.
19528
19529 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19530
19531         * Makefile.in (gengtype-lex.c): Fix error in last change.
19532
19533         * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
19534         backslash.
19535
19536         * Makefile.in (vmsdbgout.o): Depend on function.h.
19537
19538         * vmsdbgout.c: Include function.h.
19539
19540 2002-07-28  Alan Modra  <amodra@bigpond.net.au>
19541
19542         * prefix.c (update_path): Don't strip single `.' path components
19543         unless stripping a later `..' component.  Exit loop as soon as
19544         a valid path is found.
19545
19546 2002-07-27  Roger Sayle  <roger@eyesopen.com>
19547
19548         * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
19549         argument.  Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
19550         BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
19551         floating point unordered comparisons (e.g. __builtin_isgreater)
19552         as const, and leave the remaining GCC_BUILTINs unchanged.
19553
19554         * c-decl.c (builtin_function): No need to explicitly mark
19555         BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
19556
19557 2002-07-27  Roger Sayle  <roger@eyesopen.com>
19558
19559         * Makefile.in: rtlanal.o now depends upon real.h.
19560
19561         * flags.h [flag_signaling_nans]: New flag.
19562         [HONOR_SNANS]: New macro.
19563
19564         * toplev.c [flag_signaling_nans]: Initialize to false.
19565         (f_options): Add processing for "-fsignaling-nans".
19566         (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
19567         (process_options): flag_signaling_nans implies flag_trapping_math.
19568
19569         * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
19570         when -fsignaling-nans.  First step to implementing WG14's N965.
19571
19572         * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
19573         1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
19574         [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
19575
19576         * simplify-rtx.c (simplify_relational_operation): Conditionalize
19577         transforming abs(x) < 0.0 into false on !HONOR_SNANS.
19578
19579         * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
19580         required by HONOR_SNANS.  (may_trap_p): Floating point DIV, MOD,
19581         UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
19582         -fsignaling_nans.  EQ and NE only trap for flag_signaling_nans
19583         not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
19584
19585         * doc/invoke.texi: Document new -fsignaling-nans compiler option.
19586
19587 2002-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19588
19589         * Makefile.in (gengtype-lex.c): Work around a bug in flex.
19590         * gengtype-lex.l (YY_USE_PROTOS): Undef.
19591         (YY_DECL): Define.
19592
19593 2002-07-27  Roger Sayle  <roger@eyesopen.com>
19594
19595         * doc/invoke.texi: Document that both -fno-builtin-foo and
19596         -fno-builtin are supported by the g++ front-end.
19597
19598 2002-07-27  Stan Shebs  <shebs@apple.com>
19599
19600         * configure.in: Rename config_gtfiles to target_gtfiles.
19601         * configure: Regenerate.
19602         * doc/gty.texi: Update reference.
19603         * config.gcc (powerpc-*-darwin*): Set target_gtfiles
19604         instead of appending to it.
19605
19606 2002-07-25  Aldy Hernandez  <aldyh@redhat.com>
19607
19608         * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
19609         vectors are split into two registers.
19610         (function_arg): Same.
19611
19612 Thu Jul 26 23:00:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
19613
19614         * pa.md (extv): Check predicates before emitting extv_32.
19615
19616 2002-07-27  Alan Modra  <amodra@bigpond.net.au>
19617
19618         * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
19619         (rs6000_traceback): New var.
19620         (rs6000_override_options): Set rs6000_traceback.
19621         (rs6000_output_function_epilogue): Implement traceback options.
19622         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
19623         (rs6000_traceback_name): Declare.
19624
19625         * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
19626         label reference when NO_PROFILE_COUNTERS.
19627
19628 2002-07-26  Jason Merrill  <jason@redhat.com>
19629
19630         * function.c (assign_parms): Handle frontend-directed pass by
19631         invisible reference.
19632
19633 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
19634
19635         * doc/cppopts.texi: Update.
19636
19637 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
19638
19639         * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
19640         warnings on assertions.
19641
19642 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
19643
19644         * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
19645         RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
19646         RID_COMPL): Remove.
19647         * c-parse.in (rid_to_yy): Similarly.
19648
19649 2002-07-26  Jason Merrill  <jason@redhat.com>
19650
19651         * c-dump.c: Resurrect.
19652         * tree-dump.c: Move C-specific stuff to c-dump.c.
19653         * c-common.h: Declare c_dump_tree.
19654         * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
19655         * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
19656         (c-dump.o): New rule.
19657
19658 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
19659
19660         * config/rs6000/rs6000.md: Enable patterns using rlwinm for
19661         PowerPC64.  Replace "T" and "S" constraints with "n" when the
19662         predicate will do.  Formatting fixes.
19663         (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
19664         as for extzvsi_internal1.
19665
19666 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
19667
19668         * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
19669         DERIV_END_LABEL_FMT): Remove.
19670         (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
19671
19672 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
19673
19674         * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
19675         Remove.
19676
19677 2002-07-25  Stan Shebs  <shebs@apple.com>
19678
19679         * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
19680         local var dwarfp.
19681         (output_compiler_stub): Remove unused locals.
19682         (output_call): Always initialize line number.
19683
19684 Thu Jul 25 20:34:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
19685
19686         * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
19687         * sh.md (truncdiqi2, movqi_media): Likewise.
19688
19689 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
19690
19691         * gcse.c (obstack_chunk_alloc): Remove.
19692         (gcse_alloc): Fix to count allocated bytes.
19693         * collect2.c (SYMBOL__MAIN): Remove.
19694
19695 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
19696
19697         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
19698         HAVE_TARGET_EXECUTABLE_SUFFIX.
19699
19700 Thu Jul 25 18:57:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
19701
19702         * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
19703         SIZE, EXPR and OFFSET.
19704
19705 2002-07-25  Richard Henderson  <rth@redhat.com>
19706
19707         * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
19708         in ARRAY_REF of DECL_P case.
19709
19710 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
19711
19712         * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
19713         description.  Document -mips32, -mips64, and the associated -march
19714         values.  Describe the "mipsN" arguments to -march.  Say that the
19715         -mipsN options are equivalent to -march.  Reword the description
19716         of default type sizes.
19717         * toplev.h (target_flags_explicit): Declare.
19718         * toplev.c (target_flags_explicit): New var.
19719         (set_target_switch): Update target_flags_explicit.
19720         * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
19721         * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
19722         * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
19723         * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
19724         * config/mips/mips.h (mips_cpu_info): New struct.
19725         (mips_cpu_string, mips_explicit_type_size_string): Remove.
19726         (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
19727         (MIPS_CPP_SET_PROCESSOR): New macro.
19728         (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
19729         Define _MIPS_ARCH and _MIPS_TUNE.
19730         (MIPS_ISA_DEFAULT): Don't provide a default value.  Instead...
19731         (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
19732         MIPS_ISA_DEFAULT were already defined.
19733         (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
19734         (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
19735         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
19736         (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
19737         (ABI_GAS_ASM_SPEC): Remove.
19738         (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
19739         (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
19740         Invoke %(asm_abi_default_spec) if no ABI was specified.
19741         (CC1_SPEC): Remove ISA -> register-size rules.
19742         (EXTRA_SPECS): Remove abi_gas_asm_spec.  Add asm_abi_default_spec.
19743         * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
19744         (mips_cpu_string, mips_explicit_type_size_string): Remove.
19745         (mips_cpu_info_table): New array.
19746         (mips_set_architecture, mips_set_tune): New fns.
19747         (override_options): Rework to make -mipsN equivalent to -march.
19748         Detect more erroneous cases, including those removed from CC1_SPEC.
19749         Don't change the ABI based on architecture, or vice versa.
19750         Unify logic with GAS.
19751         (mips_asm_file_start): Get architecture name from mips_arch_info.
19752         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
19753         (mips_parse_cpu): Take the name of the option as argument.  Handle
19754         'from-abi'.  Raise an error if the option is wrong.
19755         (mips_cpu_info_from_isa): New fn.
19756
19757 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
19758
19759         * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
19760         (tablejump_mips162): Likewise.
19761
19762 Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
19763
19764         * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
19765         int_mode_for_mode.
19766
19767 2002-07-25  Gabriel Dos Reis  <gdr@nerim.net>
19768
19769         * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
19770         complaining.
19771         * c-common.h (c_sizeof): Adjust definition.
19772         (c_alignof): Likewise.
19773         * c-tree.h (c_sizeof_nowarn): Now macro.
19774         * c-typeck.c (c_sizeof_nowarn): Remove definition.
19775
19776 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
19777
19778         * c-decl.c (c_decode_option): No need to handle switches
19779         cpplib handles.
19780
19781 2002-07-24  Zack Weinberg  <zack@codesourcery.com>
19782
19783         * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
19784         ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
19785         * doc/tm.texi: Document them.  Also document SIZE_ASM_OP,
19786         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
19787
19788         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
19789         config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
19790         config/cris/aout.h, config/i386/freebsd-aout.h,
19791         config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
19792         config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
19793         config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
19794         config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
19795         config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
19796         config/xtensa/elf.h, config/xtensa/linux.h:
19797         Use the new macros.
19798         Where possible, remove redundant definitions of SIZE_ASM_OP,
19799         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
19800
19801 2002-07-24  Aldy Hernandez  <aldyh@redhat.com>
19802
19803         * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
19804         TARGET_ISEL, and TARGET_FPRS.
19805
19806         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
19807         -mabi=spe, -mabi=no-spe, and -misel=.
19808
19809         * config/rs6000/rs6000-protos.h: Add output_isel.
19810         Move vrsave_operation prototype here.
19811
19812         * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
19813         (smaxsi3): Same.
19814         (uminsi3): Same.
19815         (umaxsi3): Same.
19816         (abssi2_nopower): Disallow when TARGET_ISEL.
19817         (*ne0): Same.
19818         (negsf2): Change to expand and rename old pattern to *negsf2.
19819         (abssf2): Change to expand and rename old pattern to *abssf2.
19820
19821         New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
19822         fixunssfsi2.
19823
19824         Change patterns that check for TARGET_HARD_FLOAT or
19825         TARGET_SOFT_FLOAT to also check TARGET_FPRS.
19826
19827         * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
19828         rs6000_isel, rs6000_fprs, rs6000_isel_string.
19829         (rs6000_override_options): Add 8540 case to
19830         processor_target_table.
19831         Set rs6000_isel for the 8540.
19832         Call rs6000_parse_isel_option.
19833         (enable_mask_for_builtins): New.
19834         (rs6000_parse_isel_option): New.
19835         (rs6000_parse_abi_options): Add spe and no-spe.
19836         (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
19837         (rs6000_legitimize_address): Check for TARGET_FPRS when checking
19838         for TARGET_HARD_FLOAT.
19839         Add case for SPE_VECTOR_MODE.
19840         (rs6000_legitimize_reload_address): Handle SPE vector modes.
19841         (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
19842         vector modes.
19843         Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
19844         (rs6000_emit_move): Check for TARGET_FPRS.
19845         Add cases for SPE vector modes.
19846         (function_arg_boundary): Return 64 for SPE vector modes.
19847         (function_arg_advance): Check for TARGET_FPRS and
19848         Handle SPE vectors.
19849         (function_arg): Same.
19850         (setup_incoming_varargs): Check for TARGET_FPRS.
19851         (rs6000_va_arg): Same.
19852         (struct builtin_description): Un-constify mask field.  Move up in
19853         file.
19854         (bdesc_2arg): Un-constify and add SPE builtins.
19855         (bdesc_1arg): Same.
19856         (bdesc_spe_predicates): New.
19857         (bdesc_spe_evsel): New.
19858         (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
19859         (rs6000_expand_binop_builtin): Same.
19860         (bdesc_2arg_spe): New.
19861         (spe_expand_builtin): New.
19862         (spe_expand_predicate_builtin): New.
19863         (spe_expand_evsel_builtin): New.
19864         (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
19865         (rs6000_init_builtins): Initialize SPE builtins.  Call
19866         rs6000_common_init_builtins.
19867         (altivec_init_builtins): Move all non-altivec builtin code to...
19868         (rs6000_common_init_builtins): ...here.  New function.
19869         (branch_positive_comparison_operator): Allow NE code for SPE.
19870         (ccr_bit): Return correct ccr bit for SPE fp.
19871         (print_operand): Emit crnor in 'D' case for SPE.
19872         New case 't'.
19873         Add SPE code for 'y' case.
19874         (rs6000_generate_compare): Generate rtl for SPE fp.
19875         (output_cbranch): Handle SPE hard floats.
19876         (rs6000_emit_cmove): Handle isel.
19877         (rs6000_emit_int_cmove): New.
19878         (output_isel): New.
19879         (rs6000_stack_info): Adjust stack frame so GPRs are saved in
19880         64-bits for SPE.
19881         (debug_stack_info): Add SPE info.
19882         (gen_frame_mem_offset): New.
19883         (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
19884         Change mode of frame pointer, when saving it, to Pmode.
19885         (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
19886         Misc cleanups and use gen_frame_mem_offset when appropriate.
19887
19888         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
19889         (TARGET_SPE_ABI): New.
19890         (TARGET_SPE): New.
19891         (TARGET_ISEL): New.
19892         (TARGET_FPRS): New.
19893         (FIXED_SCRATCH): New.
19894         (RTX_COSTS): Add PROCESSOR_PPC8540.
19895         (ASM_CPU_SPEC): Add case for 8540.
19896         (TARGET_OPTIONS): Add isel= case.
19897         (rs6000_spe_abi): New.
19898         (rs6000_isel): New.
19899         (rs6000_fprs): New.
19900         (rs6000_isel_string): New.
19901         (UNITS_PER_SPE_WORD): New.
19902         (LOCAL_ALIGNMENT): Adjust for SPE.
19903         (HARD_REGNO_MODE_OK): Same.
19904         (DATA_ALIGNMENT): Same.
19905         (MEMBER_TYPE_FORCES_BLK): New.
19906         (FIRST_PSEUDO_REGISTER): Set to 113.
19907         (FIXED_REGISTERS): Add SPE registers.
19908         (reg_class): Same.
19909         (REG_CLASS_NAMES): Same.
19910         (REG_CLASS_CONTENTS): Same.
19911         (REGNO_REG_CLASS): Same.
19912         (REGISTER_NAMES): Same.
19913         (DEBUG_REGISTER_NAMES): Same.
19914         (ADDITIONAL_REGISTER_NAMES): Same.
19915         (CALL_USED_REGISTERS): Same.
19916         (CALL_REALLY_USED_REGISTERS): Same.
19917         (SPE_ACC_REGNO): New.
19918         (SPEFSCR_REGNO): New.
19919         (SPE_SIMD_REGNO_P): New.
19920         (HARD_REGNO_NREGS): Adjust for SPE.
19921         (VECTOR_MODE_SUPPORTED_P): Same.
19922         (REGNO_REG_CLASS): Same.
19923         (FUNCTION_VALUE): Same.
19924         (LIBCALL_VALUE): Same.
19925         (LEGITIMATE_OFFSET_ADDRESS_P): Same.
19926         (SPE_VECTOR_MODE): New.
19927         (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
19928         the GPRs.  Set FIXED_SCRATCH fixed in SPE case.
19929         (rs6000_stack): Add spe_gp_size, spe_padding_size,
19930         spe_gp_save_offset.
19931         (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
19932         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
19933         (SPE_CONST_OFFSET_OK): New.
19934         (rs6000_builtins): Add SPE builtins.
19935
19936         * testsuite/gcc.dg/ppc-spe.c: New.
19937
19938         * config/rs6000/eabispe.h: New.
19939
19940         * config/rs6000/spe.h: New.
19941
19942         * config/rs600/spe.md: New.
19943
19944         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
19945         __SIMD__ for TARGET_SPE.
19946
19947         * config.gcc: Add powerpc-*-eabispe* case.
19948         Add spe.h to user headers for powerpc.
19949
19950 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
19951
19952         * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
19953         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
19954         * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
19955
19956 2002-07-24  Richard Henderson  <rth@redhat.com>
19957
19958         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
19959         form when not optimizing.
19960
19961 2002-07-24  David Mosberger  <davidm@hpl.hp.com>
19962
19963         * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
19964         thread_pointer_rtx as unchanging.
19965
19966 2002-07-24  Michael Matz  <matz@suse.de>
19967
19968         * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
19969         (free_reg): Use it.
19970
19971 2002-07-24  Richard Earnshaw  <rearnsha@arm.com>
19972
19973         * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
19974         pattern.
19975         (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
19976         (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
19977
19978 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
19979
19980         * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
19981         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
19982         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
19983
19984 Wed Jul 24 17:59:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
19985
19986         * toplev.c (rest_of_compilation): Dump loops before clobbering
19987         the structure.
19988
19989 Wed Jul 24 17:23:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
19990
19991         * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
19992
19993 2002-07-24  Frank van der Linden  <fvdl@wasabisystems.com>
19994
19995         PR optimization/7291
19996         * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
19997         problem on x86_64.
19998
19999 2002-07-24  Gabriel Dos Reis  <gdr@nerim.net>
20000
20001         * pretty-print.h: Add macros from cp/error.c
20002
20003 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
20004
20005         * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
20006         (mask64_2_operand): Declare.
20007         (build_mask64_2_operands): Declare.
20008         (and64_2_operand): Declare.
20009         (extract_MB): Declare.
20010         (extract_ME): Declare.
20011         * config/rs6000/rs6000.c (mask64_operand): Allow all ones.  Remove
20012         CONST_DOUBLE code.
20013         (mask_operand_wrap): New insn predicate.
20014         (mask64_2_operand): Likewise.
20015         (and64_2_operand): Likewise.
20016         (build_mask64_2_operands): New function.
20017         (extract_MB): New function.
20018         (extract_ME): New function.
20019         (print_operand <case m,M>): Use extract_MB and extract_ME.
20020         (print_operand <case S>): Allow all ones.  Remove CONST_DOUBLE support.
20021         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
20022         (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
20023         mask64_2_operand.  Remove CONST_DOUBLE from mask64_operand.
20024         * config/rs6000/rs6000.md (andsi3_internal3): New
20025         (andsi3_internal3+1): Enable split for powerpc64.
20026         (andsi3_internal3+2): New split.
20027         (andsi3_internal4): Renamed old andsi3_internal3.
20028         (andsi3_internal5): New.
20029         (andsi3_internal5+1): Enable split for powerpc64.
20030         (andsi3_internal5+2): New split.
20031         (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
20032         (anddi3): Handle 't' constraint.
20033         (anddi3+1): New split.
20034         (anddi3_internal2): Handle 't' constraint.
20035         (anddi3_internal2+1): New split.
20036         (anddi3_internal3): Handle 't' constraint.
20037         (anddi3_internal3+1): New split.
20038
20039 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
20040
20041         * config/rs6000/rs6000.md: Remove scratch reg on insns using
20042         addze and similar (plus (comparison r1 r2) r3) insns.  Add
20043         missing scratch reg in one case.  Formatting fixes.
20044
20045 2002-07-24  Neil Booth  <neil@daikokuya.co.uk>
20046
20047         * cppexp.c (parse_defined): Mark macro used.
20048         * cpphash.h (struct cpp_macro): New member "used".
20049         (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
20050         (struct cpp_reader): New member.
20051         * cppinit.c (cpp_finish_options): Set first_unused_line.
20052         (cpp_finish): Warn of unused macros if requested.
20053         (OPT_TABLE): New switches.
20054         (cpp_handle_option): Handle them.
20055         * cpplib.c (do_undef): Warn if macro unused.
20056         (do_ifdef, do_ifndef): Mark macro used.
20057         * cpplib.h (struct cpp_options): New member.
20058         * cppmacro.c (_cpp_warn_if_unused_macro): New.
20059         (enter_macro_context): Mark macro used.
20060         (_cpp_create_definition): Mark macro unused; warn if unused
20061         when redefined.
20062         * cpptrad.c (scan_out_logcial_line, push_replacement_text):
20063         Mark macros used.
20064         * doc/cppopts.texi: Update.
20065
20066 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
20067
20068         * dwarf2out.c (SECTION_ASM_OP,
20069         ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
20070         * system.h (SECTION_ASM_OP): Poison.
20071         * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
20072         * config/alpha/alpha-interix.h, config/mips/linux.h
20073         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
20074         * config/mmix/mmix-protos.h, config/mmix/mmix.c
20075         (mmix_asm_output_define_label_difference_symbol): Remove.
20076         * config/mmix/mmix.h
20077         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
20078         * doc/tm.texi: Remove documentation.
20079
20080 Tue Jul 23 21:49:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
20081
20082         * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
20083         (constrain_operands): Likewise.
20084         * regclass.c (record_reg_classes): Likewise.
20085         * reload.c (find_reloads): Likewise.
20086         * doc/md.texi: Likewise.
20087
20088         * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
20089         * simplify-rtx.c (simplify_subreg): When converting to a non-int
20090         mode, try to convert to an integer mode of matching size first.
20091
20092         * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
20093         from individual subregs, check that each subreg has been generated
20094         sucessfully.
20095
20096 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
20097
20098         * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
20099         * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
20100         FOR_EACH_BB_IN_SBITMAP): Remove.
20101         * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
20102         * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
20103         LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
20104         * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
20105         PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
20106         * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
20107
20108 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
20109
20110         * pretty-print.h: New file.
20111
20112 2002-07-23      Paul Koning     <pkoning@equallogic.com>
20113
20114         * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
20115         (LARGEST_EXPONENT_IS_NORMAL): Ditto.
20116         (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
20117         (TARGET_G_FLOAT): Default to 0 if not defined.
20118         (ieeetoe): New, common routine to convert target format floats
20119         to internal form.
20120         (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
20121         vs. others.
20122         (e113toe): Change to use ieeetoe.
20123
20124 2002-07-23  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
20125
20126         * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
20127         IBM.
20128         (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
20129         (e64toe): Remove special cases for DEC and IBM. Remove support for
20130         ARM_EXTENDED_IEEE_FORMAT.
20131         (e24toe): Remove special cases for DEC.
20132         (significand_size): Simplify. Indent.
20133         (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
20134         (etoieee, toieee): New.
20135         (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
20136         etoieee and toieee for IEEE arithmetic.
20137
20138 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
20139
20140         * doc/extend.texi: Say ISO C90, not ISO C89.
20141         * doc/invoke.texi: Likewise.
20142         * doc/standards.texi: Likewise.
20143
20144 2002-07-23  Steve Ellcey  <sje@cup.hp.com>
20145
20146         * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
20147         Fix permutation of conversion and plus/mult.
20148         * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
20149         ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
20150         (expand_builtin_strncpy) Ditto.
20151         (expand_builtin_memset) Ditto.
20152
20153 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
20154
20155         Fix PR/7363:
20156         * c-common.c (c_sizeof_or_alignof_type): New function.
20157         (c_alignof): Remove definition.
20158         * c-common.h (c_sizeof, c_alignof): Define as macros.
20159         (c_sizeof_or_alignof_type): Declare.
20160         (my_friendly_assert): Moved from cp/cp-tree.h
20161         * c-typeck.c (c_sizeof): Remove definition.
20162
20163 2002-07-23  Jan Hubicka  <jh@suse.cz>
20164
20165         * gcse.c (try_replace_reg): Use num_changes_pending.
20166         * recog.c (num_changes_pending): New function.
20167         (validate_replace_src): Use validate_repalce_src_group.
20168         (validate_replace_src_group): New.
20169         * recog.h (validate_repalce_src_group): New.
20170         (num_changes_pending): Likewise.
20171
20172 Tue Jul 23 12:16:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
20173
20174         * calls.c (emit_library_call_value_1): If
20175         FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
20176         libcall, const call nor pure call.
20177
20178 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
20179
20180         * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
20181
20182 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
20183
20184         * vmsdbgout.c (SECTION_ASM_OP): Remove.
20185
20186 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
20187
20188         * config/i386/i386.c (AT_BP): Remove.
20189
20190 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
20191
20192         * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
20193         Default definition.
20194         * gcse.c: Don't define obstack_chunk_free.
20195         * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
20196         flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
20197         integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
20198         reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
20199         Don't define obstack macros.
20200
20201 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
20202
20203         PR target/6744
20204         * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
20205         ASM_OPERANDS instructions.
20206
20207 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
20208
20209         PR target/7361
20210         * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
20211         constant addresses only on 68HC12.
20212
20213 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
20214
20215         * cppfiles.c (stack_include_file): Correct test of whether
20216         a dependency should be output.
20217
20218 2002-07-22  David Edelsohn  <edelsohn@gnu.org>
20219
20220         * collect2.c (is_ctor_dtor): Add other possible JOINER values.
20221
20222 2002-07-22  Richard Earnshaw  <rearnsha@arm.com>
20223
20224         * arm.md (movqi): If optimizing and we can create pseudos, use
20225         a ZERO_EXTEND to load from memory, then copy the result into the
20226         target.
20227         (movhi): Likewise, but only for ARMv4.
20228
20229 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
20230
20231         * ssa-ccp.c (PHI_PARMS): Remove.
20232
20233 2002-07-22  Richard Sandiford  <rsandifo@redhat.com>
20234
20235         * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
20236         on big-endian targets.
20237
20238 2002-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20239
20240         * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
20241         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
20242         HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
20243         New formatting macros.
20244
20245         * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
20246
20247 Mon Jul 22 15:27:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
20248
20249         * rtlanal.c (subreg_regno_offset): Return correct offset for
20250         big endian paradoxical subregs.
20251
20252         * optabs.c (expand_vector_unop): Don't expand using sub_optab
20253         if we got the wrong mode.
20254
20255         * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
20256         * genrecog.c (write_switch, write_cond): Use it.
20257         * genemit.c (gen_exp): Likewise.
20258
20259 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
20260
20261         * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
20262
20263 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
20264
20265         * c-decl.c (build_compound_literal): Defer compound literal decls
20266         until until file end to emit them only if they are actually used.
20267
20268 2002-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20269
20270         * ra-build.c (check_conflict_numbers): Hide unused function.
20271         (livethrough_conflicts_bb): Avoid automatic aggregate
20272         initialization.
20273         (parts_to_webs_1): Avoid `U' integer constant modifier.
20274         (conflicts_between_webs): Wrap a variable in the macro controlling
20275         its usage.
20276         * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
20277         (dump_igraph, dump_graph_cost): Avoid string concatenation
20278         (dump_static_insn_cost): Avoid automatic aggregate
20279         initialization.
20280         * ra-rewrite.c (insert_stores): Avoid automatic aggregate
20281         initialization.
20282         (dump_cost): Avoid string concatenation
20283
20284 2002-07-21  Richard Henderson  <rth@redhat.com>
20285
20286         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
20287         GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
20288
20289 2002-07-21  Richard Henderson  <rth@redhat.com>
20290
20291         * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
20292         that are not unrolled completely.
20293
20294 2002-07-21  Richard Henderson  <rth@redhat.com>
20295
20296         * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
20297         * loop.c (strength_reduce): Update.
20298         * toplev.c (rest_of_compilation): Do unrolling in the first
20299         loop pass, not the second.
20300
20301 2002-07-21  Richard Henderson  <rth@redhat.com>
20302
20303         * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
20304         when flag_argument_noalias == 2.
20305         * alias.c (nonoverlapping_memrefs_p): Handle that.
20306         * print-rtl.c (print_mem_expr): Likewise.
20307
20308 2002-07-21  Hartmut Schirmer  <hartmut.schirmer@arcor.de>
20309
20310         * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
20311         instead of __negdi2 directly.
20312
20313 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
20314
20315         * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
20316         * function.c (SYMBOL__MAIN): Remove definition.
20317         * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
20318         * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
20319         * profile.c (GCOV_INDEX_TO_BB): Remove.
20320         * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
20321         * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
20322
20323 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
20324
20325         * c-lex.c (GET_ENVIRONMENT): Remove.
20326         * collect2.c (GET_ENV_PATH_LIST): Remove.
20327         (prefix_from_env): Use GET_ENVIRONMENT.
20328         * cppinit.c (GET_ENV_PATH_LIST): Remove.
20329         (init_standard_includes): Use GET_ENVIRONMENT.
20330         * defaults.h (GET_ENVIRONMENT): Define here if not already.
20331         * gcc.c (GET_ENV_PATH_LIST): Remove.
20332         (make_relative_prefix, process_command): Update.
20333         * protoize.c (GET_ENV_PATH_LIST): Remove.
20334         (do_processing): Update.
20335
20336 2002-07-21  Gabriel Dos Reis  <gdr@nerim.net>
20337
20338         * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
20339         (grokdeclarator): Likewise.
20340         * c-format.c (C_STD_NAME): Likewise.
20341         * c-lex.c (interpret_integer): Likewise.
20342         * c-typeck.c (build_array_ref): Likewise.
20343         * cpplex.c (_cpp_lex_direct): Likewise.
20344         * toplev.c (documented_lang_options): Likewise.
20345
20346 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
20347
20348         * c-format.c (T99_I, T99_UI): Remove.
20349
20350 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
20351
20352         * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
20353
20354 Sun Jul 21 21:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
20355
20356         * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
20357         do_local_cprop.
20358
20359 2002-07-21  Andreas Jaeger  <aj@suse.de>
20360
20361         * reload1.c (fixup_abnormal_edges): Remove unused variable.
20362
20363 2002-07-21  Bernd Schmidt  <bernds@redhat.com>
20364
20365         Improvements for the ifcvt pass from Michael Meissner, with patches
20366         by Richard Sandiford <rsandifo@redhat.com>
20367         * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
20368         * ifcvt.c (cond_exec_changed_p): New static variable.
20369         (last_active_insn): New function, renamed from last_active_insn_p
20370         and changed to return the last active insn in a basic block. All
20371         callers updated.
20372         (block_fallthru): New function.
20373         (cond_exec_process_insns): New argument CE_INFO.  Pass it to
20374         IFCVT_MODIFY_INSN.  All callers updated.
20375         Return false if START or END are NULL.
20376         Handle case where we're processing an insn that is already
20377         conditional.
20378
20379         (noce_process_if_block): CE_INFO argument rather than
20380         multiple args containing the involved basic blocks.  All callers
20381         changed.
20382         (process_if_block, merge_if_block, find_if_block,
20383         cond_exec_process_if_block): Likewise.
20384
20385         (cond_exec_process_if_block): New arg DO_MULTIPLE_P.  All callers
20386         changed.
20387         Use new function last_active_insn to simplify some code.
20388         New code to handle multiple tests.
20389         Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
20390         cond_exec_changed_p to TRUE.
20391
20392         (process_if_block): New code to handle multiple tests.
20393         (merge_if_block): Likewise.
20394         (find_if_header): New arg PASS.  Changed to return the currently
20395         processed basic block or NULL instead of true/false. All callers
20396         changed.
20397         Call IFCVT_INIT_EXTRA_FIELDS.
20398         (block_jumps_and_fallthru_p): New function.
20399         (find_if_block): Discover opportunities to convert multiple tests.
20400         Add additional debugging output.
20401         Update the ce_info structure before returning.
20402
20403         (if_convert): Run multiple passes of if-conversion.
20404         * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
20405         IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
20406         IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
20407         these macros.
20408
20409 Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
20410
20411         * gcse.c: Include cselib.h
20412         (constptop_register): Break out from ...
20413         (cprop_insn): ... here; kill basic_block argument.
20414         (do_local_cprop, local_cprop_pass): New functions.
20415         (one_cprop_pass): Call local_cprop_pass.
20416
20417 2002-07-20  Roger Sayle  <roger@eyesopen.com>
20418
20419         * simplify-rtx.c (simplify_relational_operation): Optimize
20420         abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
20421
20422 2002-07-20  Michae Matz  <matz@suse.de>
20423
20424         * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
20425
20426 2002-07-20  Neil Booth  <neil@daikokuya.co.uk>
20427
20428         * cppexp.c (struct op): Add token pointer.
20429         (check_promotion, CHECK_PROMOTION): New.
20430         (optab): Update.
20431         (_cpp_parse_expr): Update, use token pointer of struct op.
20432         (reduce): Warn about change of sign owing to promotion.
20433         * cppinit.c (cpp_handle_option): New warning if -Wall.
20434         * cpplib.h (struct cpp_options): New member.
20435
20436 2002-07-19  David Edelsohn  <edelsohn@gnu.org>
20437
20438         * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
20439         fpu list.  Separate Power4 compare and delayed_compare.  Correct
20440         Power4 fpcompare.
20441         (fix_truncdfsi2_internal): Restore FPR preference.
20442         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
20443         mcpu?power4, mcpu?604e.  Remove mpower, mpower2, mpowerpc.
20444
20445 2002-07-19  Momchil Velikov <velco@fadata.bg>
20446
20447         * reload1.c (reload_as_needed): Duplicate oldpat.
20448
20449 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
20450
20451         PR optimization/7130
20452         * loop.h (struct loop_info): Add "preconditioned".
20453         * unroll.c (unroll_loop): Set it.
20454         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
20455
20456 2002-07-19  Zack Weinberg  <zack@codesourcery.com>
20457
20458         * rtl.def (CODE_LABEL): Remove slot 8.
20459         * rtl.h (struct rtx_def): Document new uses of jump and call fields.
20460         (LABEL_ALTERNATE_NAME): Delete.
20461         (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
20462         * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
20463
20464         * final.c (output_alternate_entry_point): New.
20465         (final_scan_insn): Use it instead of
20466         ASM_OUTPUT_ALTERNATE_LABEL_NAME.  Do not consider possibility
20467         of a case label being an alternate entry point.
20468
20469         * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
20470         * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
20471         Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
20472         (field deleted).
20473         * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
20474
20475         * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
20476         LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
20477         * doc/tm.texi: Delete documentation of
20478         ASM_OUTPUT_ALTERNATE_LABEL_NAME.
20479
20480 2002-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20481
20482         * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
20483         (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
20484         (LINK_SPEC): Define.
20485         (STARTFILE_SPEC): Define.
20486         (ENDFILE_SPEC): Define.
20487
20488         * config/mips/iris6-o32.h (LINK_SPEC): Move ...
20489         * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
20490
20491         * config/mips/iris6-o32-gas.h: New file.
20492         * config.gcc (mips-sgi-irix6*o32): Use it.
20493
20494         * config/mips/t-iris5-gas: New file.
20495         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
20496
20497 2002-07-19  Neil Booth  <neil@daikokuya.co.uk>
20498
20499         * cppexp.c (ALWAYS_EVAL): Remove.
20500         (optab, reduce): Always evaluate.
20501         (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
20502         only if not skipping evaluation.
20503
20504 2002-07-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
20505
20506         * config/avr/avr.c (debug_hard_reg_set): Remove.
20507
20508 2002-07-19  Chris Demetriou  <cgd@broadcom.com>
20509
20510         * gcc.c (cpp_options): Include "%1" (cc1_spec).
20511
20512 2002-07-19  Richard Henderson  <rth@redhat.com>
20513
20514         * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
20515
20516 2002-07-19  Alan Modra  <amodra@bigpond.net.au>
20517
20518         * prefix.c (update_path): Don't zap single `.' path components
20519         unless followed by another `.' and fix typo last patch.
20520
20521 2002-07-18  Neil Booth  <neil@daikokuya.co.uk>
20522
20523         * cppexp.c (cpp_num_mul): Remove unused parameter.
20524         (UNARY, BINARY, OTHER, binary_handler): Remove.
20525         (ALWAYS_EVAL): New.
20526         (optab): Update.
20527         (reduce): Refactor to a large switch, don't use a function
20528         pointer.
20529
20530 2002-07-18  Bo Thorsen  <bo@berlioz.suse.de>
20531
20532         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
20533
20534 Thu Jul 18 19:39:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
20535
20536         * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
20537         (sh_expand_binop_v2sf): Likewise.
20538         * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
20539         (int_gpr_dest, trunc_hi_operand): New functions.
20540         * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
20541         trunc_hi_operand.
20542         (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
20543         * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
20544         (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
20545         (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
20546         (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
20547         (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
20548         (extendhisi2_media+1, extendqisi2_media+1): Likewise.
20549         (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
20550         (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
20551         (movsf_ie+1): Likewise.
20552         (loaddi_trunc): Use int_gpr_dest predicate.
20553         (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
20554         (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
20555         (casesi_worker_0+[12], casesi_worker): Likewise.
20556         (shcompact_preserve_incoming_args): Likewise.
20557         (mov_nop): Use any_register_operand predicate.
20558         (mperm_w0): Use trunc_hi_operand predicate.
20559
20560 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20561
20562         * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
20563         * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
20564         numbering.
20565
20566 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20567
20568         * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
20569
20570 2002-07-18  Richard Henderson  <rth@redhat.com>
20571
20572         PR optimization/7147
20573         * ifcvt.c (noce_get_condition): Make certain that the condition
20574         is valid at JUMP.
20575
20576 Thu Jul 18 13:44:51 2002  J"orn Rennecke <joern.rennecke@superh.com>
20577
20578         * sh.c (barrier_align, push): Shut up compiler warnings.
20579         (initial_elimination_offset,sh_media_init_builtins): Likewise.
20580         (reg_no_subreg_operand): Delete.
20581
20582 2002-07-17  Bo Thorsen  <bo@suse.de>
20583
20584         * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
20585         (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
20586         (STARTFILE_SPEC): Remove hardcoded library paths.
20587         (ENDFILE_SPEC): Likewise.
20588
20589 Thu Jul 18 09:38:59 CEST 2002  Jan Hubicka  <jh@suse.cz>
20590
20591         * gcse.c (hoist_expr_reaches_here_p):  Stop once expr_bb is reached.
20592
20593         * gcse.c (try_replace_reg): Do not return false positives.
20594
20595 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
20596
20597         * prefix.c: (update_path): Strip ".." components when prior dir
20598         doesn't exist.  Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
20599
20600         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
20601         (ASM_OUTPUT_REG_POP): Likewise.
20602
20603 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
20604
20605         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
20606         adjustments to first_reg for profiling case.
20607         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
20608         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
20609         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
20610         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
20611         (ASM_OUTPUT_REG_POP): Define.
20612         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
20613         (ASM_OUTPUT_REG_POP): Undef.
20614
20615 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
20616
20617         * cpplib.c (do_sccs): Handle #sccs on all systems.
20618         * system.h (SCCS_DIRECTIVE): Poison.
20619         * config/darwin.h, config/freebsd.h, config/netbsd.h,
20620         config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
20621         config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
20622         config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
20623         config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
20624         config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
20625         config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
20626         config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
20627         Remove all references to SCCS_DIRECTIVE.
20628         * doc/cpp.texi, doc/tm.texi: Update.
20629
20630 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
20631
20632         * regrename.c (maybe_mode_change): New function.
20633         (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
20634
20635 2002-07-17  Rodney Brown  <rbrown64@csc.com.au>
20636
20637         * config/i386/i386.c (ix86_expand_int_movcc): In the general case
20638         suppress addition when either ct or cf are zero.
20639
20640 2002-07-17  Eric Botcazou <ebotcazou@multimania.com>
20641             Glen Nakamura <glen@imodulo.com>
20642
20643         PR optimization/6713
20644         * loop.c (loop_givs_rescan): Explicitly delete the insn that
20645         sets a non-replaceable giv after issuing the new one.
20646
20647 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
20648
20649         * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
20650         eval_token): Clarify and correct use of "bool" variables.
20651         * cpplib.h (struct cpp_options): Similarly.
20652         * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
20653         * cpptrad.c (recursive_macro): Similarly.
20654
20655 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
20656
20657         * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
20658         SHmedia code.
20659
20660         * sh.md (cmpgtudi_media): Remove spurious @.
20661
20662         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
20663         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
20664
20665         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
20666         * sh-protos.h (sh_initialize_trampoline): Declare.
20667         * sh.c (sh_initialize_trampoline): New function.
20668         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
20669         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
20670         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
20671         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
20672         * sh.md (initialize_trampoline, double_shori): New patterns.
20673         (initialize_trampoline_compact): Likewise.
20674         (shmedia32_initialize_trampoline_big): Remove.
20675         (shmedia32_initialize_trampoline_little): Likewise.
20676
20677         * sh-protos.h (binary_float_operator): Remove declaration.
20678         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
20679         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
20680         (unary_float_operator, sh_expand_unop_v2sf): New functions.
20681         (sh_expand_binop_v2sf): Likewise.
20682         (zero_vec_operand): Delete.
20683         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
20684         all non-shared ones.
20685         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
20686         Enable nsb and byterev.
20687         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
20688         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
20689         in general regs.
20690         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
20691         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
20692         immediate operands.
20693         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
20694         Add DF_HI_REGS.
20695         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
20696         lowpart fp regs - only for big endian for now.
20697         (LEGITIMATE_CONSTANT_P): Don't allow nonzero float vectors
20698         when FPU is in use.
20699         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
20700         (LOAD_EXTEND_OP): NIL for SImode.
20701         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
20702         general and fp registers is 4.
20703         PREDICATE_CODES: Amend binary_float_operator entry.
20704         Remove zero_vec_operand.  Add unary_float_operator.
20705         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
20706         subreg SET_DEST.
20707         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
20708         (truncdiqi2): Do sign extension.
20709         (movsi_media, movdi_media): Allow to use r63 to an fp register.
20710         (movdf_media, movsf_media): Likewise.
20711         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
20712         Collapse to one define_insn_and_split.  Allow immediate sources.
20713         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
20714         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
20715         (movv4sf): Allow immediate sources.
20716         (movsf_media_nofpu+1): Don't split moves to FP registers.
20717         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
20718         (movv8qi_i+3): Check against CONST0_RTX.
20719         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
20720         for input and output operands.  Fix argument 3 to gen_mextr_rl.
20721         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
20722         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
20723         (mshf0_w, fipr, ftrv): Likewise.
20724         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
20725
20726 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
20727
20728         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
20729         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
20730         * arm.c: Similarly.
20731
20732 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
20733
20734         * config/mips/mips-protos.h (mips_sign_extend): Declare.
20735         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
20736         (TARGET_SWITCHES): Remove debugh.
20737         (ISA_HAS_TRUNC_W): New macro.
20738         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
20739         (PREDICATE_CODES): Remove se_nonimmediate_operand.
20740         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
20741         any SImode move_operand.
20742         (se_nonimmediate_operand): Remove.
20743         (mips_sign_extend): New.
20744         (mips_move_2words): Use it for sign-extended source operands.
20745         (override_options): Allow integers to be put into single FPRs.
20746         (mips_secondary_reload_class): Handle integers in float registers.
20747         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
20748         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
20749         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
20750         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
20751         (fix_truncdfdi2): Provide only a single alternative, in which the
20752         integer is in a float register.  Depend on TARGET_FLOAT64 rather
20753         than TARGET_64BIT.
20754         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
20755         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
20756         (movdi_internal2): Don't allow the source operand to be sign-extended.
20757         Add alternatives for float registers.
20758         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
20759         allows sign-extension.
20760         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
20761         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
20762         float registers.  Remove TARGET_DEBUG_H_MODE test.
20763         (movhi_internal1): Rename to movhi_internal.  Don't check
20764         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
20765         (movqi_internal1): Rename to movqi_internal and remove
20766         TARGET_DEBUG_H_MODE dependency.
20767         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
20768
20769 2002-07-16  Jim Wilson  <wilson@redhat.com>
20770
20771         * toplev.c (lang_dependent_init): Create function context for
20772         init_expr_once.
20773
20774 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
20775
20776         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
20777         --gc-sections if -r.
20778         * config/cris/cris.h: Ditto.
20779
20780 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
20781
20782         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
20783         the comparison directly gives a mask suppress addition when cf is
20784         zero by complementing the mask.
20785
20786 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
20787
20788         * Makefile.in: Delete references to enquire.
20789         * enquire.c: Move to contrib.
20790
20791 2002-07-16  Stan Shebs  <shebs@apple.com>
20792
20793         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
20794         config/rs6000/darwin.h.
20795         (ASM_OUTPUT_SKIP): Ditto.
20796         (TEXT_SECTION_ASM_OP): Ditto.
20797         (DATA_SECTION_ASM_OP): Ditto.
20798         (ASM_APP_ON): Define.
20799         (ASM_APP_OFF): Define.
20800         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
20801         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
20802
20803         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
20804         (machopic_function_base_name): Declare result to be const.
20805         (machopic_non_lazy_ptr_name): Ditto.
20806         (machopic_stub_name): Ditto.
20807         * config/darwin-protos.h: Ditto for the prototypes.
20808
20809 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
20810
20811         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
20812
20813 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
20814
20815         * i386.md (prefetch): Fix for 64bit mode.
20816         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
20817
20818 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
20819
20820         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
20821         * i386.c (x86_machine_dependent_reorg): New function.
20822         * i386-protos.h (x86_machine_dependent_reorg): Declare.
20823
20824 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
20825
20826         * builtins.c (std_expand_builtin_va_start): Remove unused
20827         first argument.
20828         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
20829         std_expand_builtin_va_start with just two arguments.
20830         * expr.h: Update prototypes.
20831
20832         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
20833         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
20834         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
20835         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
20836         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
20837         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
20838         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
20839         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
20840         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
20841         argument from all implementations of EXPAND_BUILTIN_VA_START
20842         and all uses of std_expand_builtin_va_start.
20843
20844 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
20845
20846         * regrename.c (copy_value): Don't record high part copies.
20847
20848 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
20849
20850         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
20851         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
20852         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
20853
20854 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
20855
20856         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
20857
20858         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
20859         into addsi3 using register class "x" and "y".
20860
20861         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
20862         "earlyclobber" constraint modifier for some alternative.
20863
20864         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
20865         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
20866         unordered.
20867         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
20868
20869         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
20870         (TARGET_SWITCHES): Add -mieee-compare option.
20871         (OVERRIDE_OPTIONS): 32332 is a subset of
20872         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
20873         (TARGET_SWITCHES): Fix description of bitfield option.
20874         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
20875         -mieee-compare option. Remove 32332 flag.
20876
20877 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
20878
20879         * explow.c (convert_memory_address): Remove special handling
20880         when POINTERS_EXTEND_UNSIGNED < 0.
20881         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
20882         (movedi_symbolic): Fix typo.
20883         (load_fptr): Remove mode restriction so it works for SI and DI.
20884         (load_fptr_internal1): Ditto.
20885         (load_gprel): Ditto.
20886         (load_symptr_internal1): Ditto.
20887         (call_pic): Ditto.
20888         * config/ia64.c (call_operand): Modify mode check.
20889         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
20890         (ia64_expand_move): Ditto.
20891         (ia64_assemble_integer): Handle SImode function pointers.
20892         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
20893         (ia64_expand_op_and_fetch): Ditto.
20894         (ia64_expand_compare_and_swap): Ditto.
20895         (ia64_expand_lock_test_and_set): Ditto.
20896         (ia64_expand_lock_release): Ditto.
20897
20898 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
20899
20900         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
20901
20902 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
20903             Richard Earnshaw  <rearnsha@arm.com>
20904
20905         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
20906         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
20907
20908 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
20909
20910         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
20911         understands to be a memory clobber.
20912         * arm.c (arm_expand_prologue): Use it.
20913
20914 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
20915
20916         * ra-rewrite.c: #include reload.h, insn-config.h
20917         * ra-build.c: #include reload.h
20918         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
20919         depend on reload.h, insn-config.h.
20920
20921 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
20922
20923         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
20924         the same size as a word.
20925
20926         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
20927         BYTES_BIG_ENDIAN into account.
20928
20929 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
20930
20931         * i386.md (prefetch): Fix for 64bit mode.
20932         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
20933
20934         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
20935
20936 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
20937
20938         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
20939
20940 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
20941
20942         * ginclude/varargs.h: Replace with stub which issues #error.
20943         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
20944         __builtin_va_start.
20945
20946         * builtins.def (BUILT_IN_VARARGS_START): Delete.
20947         (BUILT_IN_VA_START): New.
20948         * builtins.c (expand_builtin_va_start): Eliminate first
20949         argument and code to implement pre-ISO varargs.
20950         (std_expand_builtin_va_start): Ignore first argument; it is
20951         always 1.
20952         (expand_builtin): Handle BUILT_IN_VA_START and
20953         BUILT_IN_STDARG_START identically.  Delete
20954         BUILT_IN_VARARGS_START case.
20955
20956         * function.c (assign_parms): Delete hide_last_arg and all
20957         its uses.
20958         (mark_varargs): Delete function.
20959         * function.h (struct function): Delete 'varargs' bit.
20960         (current_function_varargs): Delete macro.
20961         * tree.h: Don't declare mark_varargs.
20962
20963         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
20964         (c_expand_body): Don't call mark_varargs.
20965         * c-objc-common.c: Handle BUILT_IN_VA_START and
20966         BUILT_IN_STDARG_START identically.  Delete
20967         BUILT_IN_VARARGS_START case.
20968         * c-tree.h: Don't declare c_mark_varargs.
20969         * c-parse.in: Remove grammar rules for '&...' (which has been
20970         commented out since before 2.7.2) and for '...' in K+R
20971         argument declarations.
20972
20973         * builtins.c, function.c, integrate.c, sibcall.c,
20974         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
20975         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
20976         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
20977         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
20978         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
20979         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
20980         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
20981         config/stormy16/stormy16.c: Delete all references to
20982         current_function_varargs, and code predicated on that flag.
20983
20984         * config/alpha/alpha.c (alpha_va_start),
20985         config/arc/arc.c (arc_va_start),
20986         config/i386/i386.c (ix86_va_start),
20987         config/mips/mips.c (mips_va_start),
20988         config/mn10300/mn10300.c (mn10300_va_start),
20989         config/rs6000/rs6000.c (rs6000_va_start),
20990         config/s390/s390.c (s390_va_start),
20991         config/sh/sh.c (sh_va_start),
20992         Ignore first argument; it is always 1.
20993
20994         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
20995         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
20996         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
20997         Delete m68hc11_va_start.
20998         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
20999         No need to define EXPAND_BUILTIN_VA_START.
21000
21001         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
21002         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
21003
21004 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
21005
21006         PR optimization/7153
21007         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
21008         dies in more than one insn.
21009
21010 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
21011
21012         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
21013
21014 2002-07-15  Michael Matz  <matz@suse.de>,
21015             Daniel Berlin  <dberlin@dberlin.org>,
21016             Denis Chertykov  <denisc@overta.ru>
21017
21018         Add a new register allocator.
21019
21020         * ra.c: New file.
21021         * ra.h: New file.
21022         * ra-build.c: New file.
21023         * ra-colorize.c: New file.
21024         * ra-debug.c: New file.
21025         * ra-rewrite.c: New file.
21026
21027         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
21028         (ra-rewrite.o): New .o files for libbackend.a.
21029         (GTFILES): Add basic-block.h.
21030
21031         * toplev.c (flag_new_regalloc): New.
21032         (f_options): New option "new-ra".
21033         (rest_of_compilation): Call initialize_uninitialized_subregs()
21034         only for the old allocator.  If flag_new_regalloc is set, call
21035         new allocator, instead of local_alloc(), global_alloc() and
21036         friends.
21037
21038         * doc/invoke.texi: Document -fnew-ra.
21039         * basic-block.h (FOR_ALL_BB): New.
21040         * config/rs6000/rs6000.c (print_operand): Write small constants
21041         as @l+80.
21042
21043         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
21044         (df_reg_table_realloc): Make size at least as large as max_reg_num().
21045         (df_insn_table_realloc): Size argument now is absolute, not relative.
21046         Changed all callers.
21047
21048         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
21049         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
21050
21051         2002-06-20  Michael Matz  <matz@suse.de>
21052
21053         * df.h (struct ref.id): Make unsigned.
21054         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
21055
21056         2002-06-13  Michael Matz  <matz@suse.de>
21057
21058         * df.h (DF_REF_MODE_CHANGE): New flag.
21059         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
21060         involving subregs with invalid mode changes, when
21061         CLASS_CANNOT_CHANGE_MODE is defined.
21062
21063         2002-05-07  Michael Matz  <matz@suse.de>
21064
21065         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
21066
21067         2002-05-03  Michael Matz  <matz@suse.de>
21068
21069         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
21070
21071         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
21072
21073         * regclass.c (regclass): Work with all regs which have sets or
21074         refs.
21075         (reg_scan_mark_refs): Count regs inside (clobber ...).
21076
21077         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
21078
21079         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
21080         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
21081         add new refs.
21082         (df_bb_refs_update): Don't clear insns_modified here, ...
21083         (df_analyse): ... but here.
21084
21085         * sbitmap.c (dump_sbitmap_file): New.
21086         (debug_sbitmap): Use it.
21087
21088         * sbitmap.h (dump_sbitmap_file): Add prototype.
21089
21090         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
21091
21092         * df.c (df_insn_modify): Grow the UID table if necessary, rather
21093         than assume all emits go through df_insns_modify.
21094
21095         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
21096
21097         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
21098         increase REG_N_REFS (like flow does), so that regclass doesn't
21099         think a reg is useless, and thus, not calculate a class, when it
21100         really should have.
21101
21102         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
21103
21104         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
21105         dataflow analysis.
21106
21107 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
21108
21109         PR middle-end/7245
21110         * config/i386/i386.c (const_int_1_31_operand): New.
21111         * config/i386/i386.h (PREDICATE_CODES): Add it.
21112         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
21113         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
21114         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
21115
21116 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
21117
21118         PR target/7282
21119         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
21120         (floatunssidf2): Likewise.
21121         (floatsidf_ppc64): New insn_and_split.
21122         (floatunssidf_ppc64): Likewise.
21123
21124 2002-07-14  Andreas Jaeger  <aj@suse.de>
21125
21126         * config.gcc (sh64): Remove unused
21127         target_requires_64bit_host_wide_int.
21128
21129 2002-07-12  Roger Sayle  <roger@eyesopen.com>
21130
21131         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
21132         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
21133         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
21134         whether clear_by_pieces should be used to clear storage.
21135         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
21136
21137         * doc/tm.texi: Document these two new target macros.
21138
21139 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
21140
21141         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
21142         the scratch register.
21143         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
21144         of it, forbid reload to use it.
21145
21146 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
21147
21148         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
21149         usage on 64-bit hosts, return value was truncated to 32 bits.
21150
21151 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
21152
21153         * simplify-rtx.c (simplify_subreg): Handle floating point
21154         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
21155         the element mode is requested, compute a subreg with an
21156         integer mode of the same size as the element mode first.
21157
21158 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
21159
21160         * combine.c (try_combine): When converting a paradoxical subreg
21161         to an extension, take LOAD_EXTEND_OP into account.
21162
21163 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
21164
21165         * config.gcc (mips-sgi-irix6*o32): New configuration.
21166
21167         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
21168         configurations.
21169         * configure: Regenerate.
21170
21171         * config/mips/iris6-o32-as.h: New file.
21172         * config/mips/iris6-o32.h: New file.
21173
21174         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
21175         (NM_FLAGS): Define.
21176         (HAVE_AS_SHF_MERGE): Undefine.
21177
21178         * config/mips/t-iris5-as: New file.
21179         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
21180
21181         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
21182         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
21183         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
21184         dp-bit.c, fp-bit.c): Move ...
21185         * config/mips/t-iris5-6: ... here.
21186         New file, shared by IRIX 5 and IRIX 6.
21187         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
21188         mips-sgi-irix5*): Use it.
21189
21190         * config/mips/iris6.h: Remove duplicate comment.
21191
21192         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
21193         !TARGET_IRIX6]: Define.
21194         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
21195
21196         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
21197
21198 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21199
21200         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
21201         and delete code to force constant to register.
21202         * pa-protos.h (adddi3_operand): Add prototype.
21203         * pa.c (adddi3_operand): New function.
21204
21205 2002-07-11  Roger Sayle  <roger@eyesopen.com>
21206
21207         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
21208         non-ANSI builtin functions.
21209
21210 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
21211
21212         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
21213         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
21214         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
21215         (gen_const_vector_0): Use it.
21216
21217 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21218
21219         * pa.md (adddi3): For 32-bit targets, force constants to a register
21220         if they don't fit in an 11-bit immediate.  Change insn predicate to
21221         arith11_operand.  Remove comment.
21222         * pa.c (cint_ok_for_move): Fix comment.
21223         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
21224         targets.
21225
21226 2002-07-11  Tim Josling  <tej@melbpc.org.au>
21227
21228         Remove front end hard coding from gengtype.c.
21229
21230         * Makefile.in
21231         (STAGESTUFF): add gtyp-gen.h
21232         (GTFILES): Remove front end specific files.
21233         (GTFILES_FILES_LANGS): New, from configure..
21234         (GTFILES_FILES_FILES): Likewise.
21235         (GTFILES_LANG_DIR_NAMES): Likewise.
21236         (GTFILES_SRCDIR): Likewise.
21237         (gtyp-gen.h): Build from configure information.
21238         (s-gtype): Remove command line parameters from gengtype.
21239         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
21240         (mostlyclean): Delete files generated by and for gengtype.
21241
21242         * c-config-lang.in: New file.
21243
21244         * configure.in (all_gtfiles_files_langs): New. Accumulate files
21245         for each language.
21246         (all_gtfiles_files_files): New. Accumulate language for each file
21247         accumulated.
21248         (gtfiles): Pick up value for C.
21249         (srcdir): AC-SUBST this variable.
21250         (all_gtfiles_files_langs): AC-SUBST this variable.
21251         (all_gtfiles_files_files): AC-SUBST this variable.
21252
21253         * configure: Regenerate.
21254
21255         * gengtype-lex.l (parse_file): Make parameter const.
21256
21257         * gengtype.c (toplevel): include gtyp-gen.h.
21258         (BASE_FILE_<language> unnamed enum): Delete.
21259         (lang_names): Delete (replaced by gtyp-gen.h)
21260         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
21261         all references.
21262         (NUM_GT_FILES): New.
21263         (NUM_LANG_FILES): New.
21264         (srcdir_len): New.
21265         (NUM_BASE_FILES): Change calculation.
21266         (open_base_files): Change prototype to avoid warning.
21267         (startswith): Delete.
21268         (get_file_basename): Iterate through generated language list not
21269         hard coded list.
21270         (get_base_file_bitmap): Use generated list of files and languages.
21271         (close_output_files): Add prototype to rmove warning.
21272         (main): Iterate through list of generated files from gtyp-gen.h
21273         rather than command line paramaters.  Ignore duplicated file
21274         names.
21275
21276         * gengtype.h (parse_file): Amend prototype for const parameter.
21277
21278         * doc/sourcebuild.texi: Document gtfiles variable.
21279
21280         * doc/gty.texi: Document changes to gtfiles variable for front
21281         ends.
21282
21283         * objc/config-lang.in (gtfiles): Add files needed for objc front
21284         end.
21285
21286 2002-07-10  Roger Sayle  <roger@eyesopen.com>
21287
21288         PR c/2454
21289         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
21290         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
21291
21292 2002-07-10  Roger Sayle  <roger@eyesopen.com>
21293             Zack Weinberg <zack@codesourcery.com>
21294
21295         * builtins.def: Make the argument types of abort and exit
21296         independent of the front-end.
21297
21298 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
21299
21300         * config/rs6000/linux64.h (ASM_SPEC): Define.
21301
21302 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
21303
21304         * config/rs6000/rs6000.c (emit_frame_save): New.
21305         (rs6000_frame_related): Replace reg2 before reg.
21306         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
21307         and eh_return registers.
21308
21309 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
21310
21311         Revert all patches for optimization of Complex .op. Real.
21312         * complex_part_zero_p: Remove
21313         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
21314         with x.
21315         * expand_cmplxdiv_wide: Ditto.
21316         * expand_binop: Ditto.
21317
21318 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
21319
21320         * config/avr/avr.md: Fix two 0x80000000 constants to make them
21321         negative also on 64-bit hosts.
21322
21323         Default to -fno-reorder-blocks when optimizing for size.
21324         * config/avr/avr-protos.h (avr_optimization_options): Declare.
21325         * config/avr/avr.c (avr_optimization_options): New function.
21326         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
21327
21328         Optimize returning from simple functions.
21329         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
21330         * config/avr/avr.c (avr_simple_epilogue): New function.
21331         * config/avr/avr.md (return): New insn.
21332
21333 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
21334
21335         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
21336         HAS_INIT_SECTION to protection.
21337
21338 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
21339
21340         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
21341         deprecated.
21342
21343 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
21344
21345         * combine.c (gen_lowpart_for_combine): Handle vector modes.
21346         Supply non-VOID mode to simplify_gen_subreg.
21347
21348 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
21349
21350         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
21351
21352 2002-07-10  Jeffrey A Law  <law@redhat.com>
21353
21354         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
21355         as appropriate.
21356
21357         * mn10200.c (expand_epilogue): Fix test to determine which scratch
21358         register to use.
21359
21360 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
21361
21362         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
21363         Get mode from dest.
21364         If simplify_gen_subreg fails, try next equivalent.
21365
21366 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
21367
21368         * diagnostic.h: #include location.h
21369         (location_t): Move definition to..
21370         * location.h: ... here.  New file.
21371         * tree.h: #include location.h
21372         (DECL_SOURCE_LOCATION): New macro.
21373         (DECL_SOURCE_FILE): Use.
21374         (DECL_SOURCE_LINE): Likewise.
21375         (struct tree_decl): REplace filename and linenum with locus.
21376         * Makefile.in (TREE_H): add location.h
21377         (diagnostic.o): Depends on gt-location.h
21378         (gt-location.h): Depends on s-gtype
21379
21380 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
21381
21382         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
21383         TARGET_OS_CPP_BUILTINS.
21384         * config/rs6000/aix31.h: Likewise.
21385         * config/rs6000/aix41.h: Likewise.
21386         * config/rs6000/aix43.h: Likewise.
21387         * config/rs6000/aix51.h: Likewise.
21388         * config/rs6000/beos.h: Likewise.
21389         * config/rs6000/darwin.h: Likewise.
21390         * config/rs6000/eabi.h: Likewise.
21391         * config/rs6000/eabisim.h: Likewise.
21392         * config/rs6000/linux.h: Likewise.
21393         * config/rs6000/linux64.h: Likewise.
21394         * config/rs6000/lynx.h: Likewise.
21395         * config/rs6000/mach.h: Likewise.
21396         * config/rs6000/rtems.h: Likewise.
21397         * config/rs6000/sysv4.h: Likewise.
21398         * config/rs6000/vxppc.h: Likewise.
21399
21400 2002-07-09 Devang Patel <dpatel@apple.com>
21401         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
21402         Do not allow ObjC objects as a parameter type for Objective-C methods.
21403         My previous patch restricted  'struct' also.
21404
21405 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
21406
21407         * cpperror.c (cpp_error): Default to directive_line within
21408         directives here.
21409         * cppexp.c (cpp_interpret_integer): Only use traditional
21410         number semantics in directives.
21411         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
21412         (do_include_common): Similarly.
21413         * cpptrad.c (scan_out_logical_line): Implement accurate
21414         quoting of <> in #include.
21415         * doc/cpp.texi: Update.
21416
21417 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
21418                           J"orn Rennecke <joern.rennecke@superh.com>
21419
21420         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
21421         * sh.md (attribute issues): Replace with:
21422         (attribute pipe_model).  All users changed.
21423         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
21424         All users changed.
21425         (function units sh5issue, sh5fds): New.
21426         (attribute is_mac_media): New.
21427         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
21428         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
21429         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
21430         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
21431         (call_media, call_value_media, sibcall_media): Likewise.
21432         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
21433         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
21434         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
21435         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
21436         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
21437         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
21438         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
21439         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
21440         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
21441         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
21442         (truncdfsf2_media): Likewise.
21443         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
21444         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
21445
21446 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
21447
21448         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
21449         * sh.c (general_extend_operand, inqhi_operand): New functions.
21450         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
21451         alternatives using 'N' modifier.  Add type.
21452         (adddi3z_media): Likewise.  Enable generator function generation.
21453         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
21454         exact predicates / constraints.  Add type.
21455         (subsi3): Allow 0 for SHMEDIA.
21456         (udivsi3_i4_media): Use match_operand for input values
21457         rather than hard registers.
21458         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
21459         unnecessarily through hard registers.  Keep copies of pseudo
21460         registers outside of the libcall sequence.
21461         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
21462         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
21463         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
21464         (extendhidi2, extendqidi2): Likewise.
21465         (andsi3_compact): Name.
21466         (andcdi3): Enable generator function generation.
21467         (zero_extendhisi2, zero_extendqisi2): Rename to
21468         (zero_extendhisi2_compact, zero_extendqisi2_compact).
21469         (extendhisi2, extendqisi2): Rename to
21470         (extendhisi2_compact, extendqisi2_compact).
21471         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
21472         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
21473         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
21474         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
21475         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
21476         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
21477         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
21478         (shmedia32_initialize_trampoline_big): Likewise.
21479         (shmedia32_initialize_trampoline_little): Likewise.
21480         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
21481         (negdi2): Remove spurious T clobber.
21482         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
21483         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
21484         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
21485         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
21486         (ic_invalidate_line_media): Write back data cache before invalidating
21487         instruction cache.  Add type.
21488         (movsf_media): Sign-extend when the destination is a general
21489         purpose register.  Add type.
21490         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
21491         (casesi_worker_0+1): Only increment ref count for proper label.
21492         (casesi_worker_0+2): Likewise.
21493
21494 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
21495
21496         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
21497
21498 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
21499
21500         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
21501         from Pmode to ptr_mode.
21502         (get_exception_pointer): Ditto.
21503         (connect_post_landing_pads): Ditto.
21504         (dw2_build_landing_pads): Ditto.
21505
21506 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
21507         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
21508         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
21509         (handle_pragma_redefine_extname): Change to use new function.
21510
21511 2002-07-08  Roger Sayle  <roger@eyesopen.com>
21512
21513         * combine.c (combine_simplify_rtx): Add an explicit cast
21514         to avoid signed/unsigned comparison warning.
21515         (simplify_if_then_else): Likewise.
21516         (extended_count): Likewise.
21517         (simplify_shift_const): Likewise.
21518         (simplify_comparison): Likewise.
21519
21520 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
21521
21522         * config/mips/mips.md: Add imadd type.  Update scheduler description
21523         to use imadd as well as imul.
21524         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
21525         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
21526         (*mul_sub_si): Likewise for first alternative.  Change second
21527         alternative from imul to multi.
21528
21529 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
21530
21531         * c-common.c (c_common_post_options): Update prototype;
21532         don't init backends if preprocessing only.
21533         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
21534         * langhooks.h (struct lang_hooks): Update post_options to
21535         return a boolean.
21536         * toplev.c (parse_options_and_default_flags, do_compile,
21537         lang_independent_init): Update prototypes.  Allow the
21538         front end to specify that there is no need to initialize
21539         the back end.
21540         (general_init): Move call to hex_init here...
21541         (toplev_main): ...from here.  Pass flag for back end init
21542         suppression.
21543
21544 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
21545
21546         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
21547         (PREDICATE_CODES): Add entries for equality_comparison_operator,
21548         greater_comparison_operator and less_comparison_operator.
21549         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
21550         more operators.
21551         (equality_comparison_operator): New function.
21552         (greater_comparison_operator, less_comparison_operator): Likewise.
21553         * sh.md (beq_media_i): Disable generator function generation.
21554         Use match_operator to handle a whole class of comparisons.  Add
21555         modifier in output template to provide branch prediction.  Add type.
21556         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
21557         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
21558         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
21559         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
21560
21561 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
21562
21563         Emit MMIX function prologue and epilogue as rtl.
21564         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
21565         not unprototyped get_hard_reg_initial_val.
21566         ("call_value", "nonlocal_goto_receiver"): Ditto.
21567         ("return"): Make define_expand.  Move real insn to...
21568         ("*expanded_return"): New pattern.
21569         ("prologue", "epilogue"): New define_expands.
21570         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
21571         (struct machine_function): New member in_prologue.
21572         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
21573         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
21574         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
21575         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
21576         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
21577         (LOCAL_REGNO): Define.  Adjust comment.
21578         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
21579         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
21580         leaf_function_p.
21581         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
21582         the prologue.
21583         (mmix_target_asm_function_prologue): Make static.  Just mark that
21584         the prologue is being emitted.  Move guts to...
21585         (mmix_expand_prologue): New function.  Adjust for emitting
21586         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
21587         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
21588         \n.  Move guts to...
21589         (mmix_expand_epilogue): New function.  Adjust for emitting
21590         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
21591         (mmix_target_asm_function_end_prologue): Mark that the prologue
21592         has ended.
21593         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
21594         (mmix_conditional_register_usage): Improve comments.
21595         (mmix_local_regno): New function.
21596         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
21597         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
21598         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
21599         (mmix_get_hard_reg_initial_val): Ditto.
21600
21601 2002-07-06  Andreas Jaeger  <aj@suse.de>
21602
21603         * toplev.c (set_fast_math_flags): Don't use ISO C style function
21604         definitions.
21605         * gengtype.c (open_base_files): Likewise.
21606         (close_output_files): Likewise.
21607         * tracer.c (find_best_predecessor): Likewise.
21608         (find_best_successor): Likewise.
21609         (ignore_bb_p): Likewise.
21610
21611 2002-07-05  Roger Sayle  <roger@eyesopen.com>
21612
21613         PR c++/7099
21614         * builtin-attrs.def: Define new attribute lists for use in
21615         builtins.def.
21616         * builtins.def [DEF_BUILTIN]: Modify to take an additional
21617         ATTRS argument, an enumerated value defined in builtin-attrs.def
21618         that represents the attribute list for the builtins.  Modify
21619         all builtin functions to pass an appropriate attribute list.
21620         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
21621         their required noreturn attributes.
21622         * tree.h (enum_builtin_function): Ignore the additional parameter
21623         to DEF_BUILTIN.
21624         * builtins.c (built_in_names): Likewise.
21625         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
21626         argument with a tree representing the functions attribute list.
21627         Pass this "attrs" argument to builtin_function.  No longer handle
21628         the noreturn_p processing manually.
21629         (built_in_attributes): Move the definitions from builtin-attrs.def
21630         before c_common_nodes_and_builtins.
21631         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
21632         DEF_BUILTIN, passing it to both builtin_function and the changed
21633         builtin_function_2.
21634
21635         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
21636         __builtin__exit and __builtin__Exit.
21637
21638 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
21639
21640         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
21641         QI mode registers in soft registers.
21642         ("zero_extendqihi2"): Do not take into account soft registers
21643         for register allocation (use '*' constraint).
21644
21645 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
21646
21647         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
21648         it is dead.
21649         ("*ashrsi3"): Likewise.
21650         ("*lshrsi3"): Likewise.
21651
21652 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
21653
21654         * genautomata.c (output_max_insn_queue_index_def): Take latencies
21655         into account.
21656
21657 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
21658
21659         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
21660         address computation and memory moves.
21661
21662 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
21663
21664         PR c++/6706
21665         * dwarfout.c (output_reg_number): Fix warning message.
21666         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
21667         before using it.
21668
21669 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
21670
21671         * gcc/gcc.c (asm_debug): Move initialization ...
21672         (init_spec): ... here.
21673
21674 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
21675
21676         * c-parse.in (extdef): Append ';'.
21677         (old_style_parm_decls): Append ';'.
21678
21679 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
21680
21681         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
21682         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
21683         to gcc_cv_as_gstabs_flag.
21684         * configure: Rebuilt.
21685
21686 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
21687
21688         * ggc.h (ggc_add_root): Document as obsolete.
21689
21690 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
21691
21692         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
21693         (mshflo_w): Likewise.
21694
21695 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
21696
21697         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
21698         vector mode subregs of constants to finding integer mode
21699         subregs of constants.
21700         * cse.c (cse_insn): Use simplify_gen_subreg.
21701         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
21702         From a vector mode expression of different size than the
21703         target mode.
21704
21705 2002-07-03  Eric Christopher  <echristo@redhat.com>
21706
21707         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
21708         * config/mips/mips.h: Remove deprecated -m<processor> options
21709         and cc1_cpu_spec associated.
21710         (CONSTANT_ADDRESS_P): Fix last patch.
21711         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
21712         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
21713         sunge_sf): Remove.
21714
21715 2002-07-03  Stan Shebs  <shebs@apple.com>
21716
21717         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
21718         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
21719         (CPP_SPEC): Remove insertion of APPLE_CC definition.
21720
21721 2002-07-03  Roger Sayle  <roger@eyesopen.com>
21722
21723         * combine.c (struct_undo): Change types of recorded substitutions
21724         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
21725         (do_SUBST_INT): Change types of the substitution from unsigned int
21726         to int, to avoid compilation warning from SUBST_INT's only caller.
21727
21728         (make_extraction): Add cast to avoid compilation warning.
21729         (force_to_mode): Remove cast to avoid compilation warning.
21730
21731 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
21732             Jeff Law  <law@redhat.com>
21733
21734         * i386.md (length_immediate attribute): Fix typo.
21735         (length_address attribute): Likewise.
21736         (modrm attribute): Set it to 0 for immediate call instructions.
21737         (jcc_1 pattern): Set modrm attribute to 0.
21738         (jcc_2 pattern ): Likewise.
21739         (jump pattern): Likewise.
21740         (doloop_end_internal pattern): Explicitly set length.
21741         (leave pattern): Fix typo.
21742         (leave_rex64 pattern): Likewise.
21743
21744 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
21745
21746         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
21747         in FPR as preference.
21748         (fctiwz): Same.
21749         (floatdidf2, fix_truncdfdi2): Same.
21750         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
21751         (floatditf2): Same.
21752         (floatsitf2, fix_trunctfsi2): SImode in GPR.
21753         (ctrdi): Remove FPR alternative and splitter.
21754
21755 2002-07-03  Will Cohen  <wcohen@redhat.com>
21756
21757         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
21758
21759 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
21760
21761         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
21762         than UNITS_PER_WORD, unless this is little endian and the first unit
21763         in this word.  Let extract_bit_field decide how to load an element.
21764         Force arguments to matching mode.
21765         (expand_vector_unop): Likewise.
21766
21767         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
21768         consist of word_mode elements.
21769         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
21770         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
21771         (build_unary_op): Allow vector types for BIT_NOT_EPR.
21772         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
21773         CONST_VECTOR.
21774         * optabs.c (expand_vector_binop): Try to perform operation in
21775         smaller vector modes with same inner size.  Add handling of AND, IOR
21776         and XOR.  Reject expansion to inner-mode sized scalars when using
21777         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
21778         (expand_vector_unop): Try to perform operation in smaller vector
21779         modes with same inner size.  Add handling of one's complement.
21780         When there is no vector negate operation, try a vector subtract
21781         operation.  Use simplify_gen_subreg on constants.
21782         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
21783         constants into smaller vectors with same inner mode, and to
21784         integer CONST_DOUBLEs.
21785
21786 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21787
21788         * c-parse.in (parsing_iso_function_signature): New variable.
21789         (extdef_1): New, copied from...
21790         (extdef): ... here.  Reset parsing_iso_function_signature.
21791         (old_style_parm_decls):  Reset parsing_iso_function_signature.
21792         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
21793         Warn about ISO C style function definitions.
21794         (nested_function, notype_nested_function): Reset
21795         parsing_iso_function_signature.
21796         (parmlist_2): Set parsing_iso_function_signature.
21797
21798         * doc/invoke.texi (-Wtraditional): Document new behavior.
21799
21800 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
21801
21802         * config.gcc (mips*el-*-*): Use tm_defines to set
21803         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
21804         * config/mips/little.h: Remove.
21805
21806 2002-07-02 Devang Patel <dpatel@apple.com>
21807
21808         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
21809         object as parameter. Prevent something like 'NSObject' to be
21810         used as the type for a method argument.
21811
21812 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
21813
21814         * cpptrad.c: Update comment.
21815
21816 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
21817
21818         * doc/cpp.texi: Update for traditional preprocessing changes.
21819         * goc/cppopts.texi: Similarly.
21820
21821 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
21822
21823         * c-parse.in (designator): Enable designated initializers if ObjC.
21824         (objcmessageexpr): Remove references to objc_receiver_context.
21825         * objc/objc-act.h (objc_receiver_context): Remove decl.
21826         * objc/objc-act.c (objc_receiver_context): Remove.
21827         (lookup_objc_ivar): Test objc_method_context instead of
21828         objc_receiver_context.
21829
21830 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
21831
21832         * sh.c (print_operand, case 'N'): Allow zero vector.
21833         (arith_reg_or_0_operand): Likewise.
21834         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
21835         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
21836         IOR, XOR, PLUS and SET and take their respective constant
21837         ranges into account.
21838         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
21839         * sh.md (subdi3, subdi3_media): Allow zero operand.
21840         (movv8qi_i+3): Only vector that is not split is the zero vector.
21841         Fix operand 3 to simplify_subreg.
21842         (movv2si_i): Split alternative 1.
21843         (mshfhi_l_di_rev+1): New splitter.
21844
21845 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
21846
21847         PR preprocessor/7029
21848         * cppinit.c (cpp_handle_option):  Suppress warnings with an
21849         implicit "-w" for "-M" and "-MM".
21850         * doc/cppopts.texi: Update.
21851
21852 2002-07-01  Roger Sayle  <roger@eyesopen.com>
21853
21854         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
21855         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
21856         builtin_function.
21857
21858 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
21859
21860         * README.Portability: Fix typos.
21861
21862 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
21863
21864         PR target/7177
21865         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
21866         of indirections for register inside sign-extended mem part.
21867
21868 2002-07-01  Roger Sayle  <roger@eyesopen.com>
21869
21870         * tree.h:  Modify builtin_function interface to take an extra
21871         argument ATTRS, which is a tree representing an attribute list.
21872
21873         * c-decl.c (builtin_function): Accept additional parameter.
21874         * objc/objc-act.c (builtin_function): Likewise.
21875         * f/com.c (builtin_function): Likewise.
21876         * java/decl.c (builtin_function): Likewise.
21877         * ada/utils.c (builtin_function): Likewise.
21878         * cp/decl.c (builtin_function): Likewise.
21879         (builtin_function_1): Likewise.
21880
21881         * c-common.c (c_common_nodes_and_builtins): Pass an additional
21882         NULL_TREE argument to builtin_function.  (builtin_function_2):
21883         Likewise.
21884         * cp/call.c (build_java_interface_fn_ref): Likewise.
21885         * objc/objc-act.c (synth_module_prologue): Likewise.
21886         * java/decl.c (java_init_decl_processing): Likewise.
21887         * f/com.c (ffe_com_init_0): Likewise.
21888
21889         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
21890         NULL_TREE argument to builtin_function.
21891         * config/arm/arm.c (def_builtin): Likewise.
21892         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
21893         * config/i386/i386.c (def_builtin): Likewise.
21894         * config/ia64/ia64.c (def_builtin): Likewise.
21895         * config/rs6000/rs6000.c (def_builtin): Likewise.
21896
21897 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
21898
21899         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
21900         * config/mips/t-isa3264: Likewise.
21901         * config/mmix/t-mmix: Likewise.
21902
21903 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21904
21905         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
21906
21907 2002-07-01  Roger Sayle  <roger@eyesopen.com>
21908
21909         PR opt/4046
21910         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
21911         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
21912         B are truth values.
21913
21914 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
21915
21916         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
21917
21918 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
21919
21920         * README.Portability (Function prototypes): Give an example of
21921         declaring and defining a function with no arguments.
21922
21923         * README.Portability (Function prototypes): Document new
21924         variable-argument function macros.
21925
21926 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
21927
21928         * sh.c (langhooks.h): Include.
21929         (sh_init_builtins, sh_media_init_builtins): New functions.
21930         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
21931         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
21932         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
21933         (builtin_description): New struct tag.
21934         (signature_args, bdesc): New arrays.
21935         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
21936         (print_operand): Add 'N' modifier.
21937         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
21938         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
21939         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
21940         (CONST_COSTS): Add special case for SHmedia AND.
21941         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
21942         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
21943         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
21944         target_operand can also be const or unspec.
21945         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
21946         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
21947         (attribute type): Add new types.
21948         (anddi3): Add splitter.
21949         (movdi_const_16bit+1): Add code to handle vector constants and
21950         bitmasks efficiently.
21951         (shori_media): Have generator function made.
21952         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
21953         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
21954         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
21955         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
21956         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
21957         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
21958         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
21959         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
21960         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
21961         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
21962         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
21963         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
21964         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
21965         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
21966         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
21967         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
21968         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
21969         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
21970         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
21971         (ftrv): Likewise.
21972
21973         (fpu_switch+1, fpu_switch+2): Remove constraint.
21974
21975 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
21976
21977         * tree.c (build_function_type_list): Update function comment.
21978         Rename first argument to return_type.
21979
21980 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
21981
21982         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
21983         tradcif.y and related files.
21984
21985 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
21986
21987         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
21988
21989 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21990
21991         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
21992
21993 See ChangeLog.7 for earlier changes.