OSDN Git Service

PR debug/4461
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
2
3         PR debug/4461
4         * varasm.c (get_pool_constant_mark): New.
5         * rtl.h (get_pool_constant_mark): Add prototype.
6         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
7         be represented if it has not been output.
8
9 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
10
11         * combine.c (do_SUBST): Sanity check substitutions of
12         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
13         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
14         CONST_INT into its operand.
15         (known_cond): Likewise, for ZERO_EXTEND.
16         * simplify-rtx.c (simplify_unary_operation): Fix condition to
17         allow for simplification of wide modes.  Reject CONST_INTs in
18         ZERO_EXTEND when their actual mode is not given.
19
20 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
21
22         * c-decl.c (pushdecl): If no global declaration is found for an
23         extern declaration in block scope, try a limbo one.
24
25 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
26
27         PR c++/4401
28         * c-common.c (pointer_int_sum): Moved from...
29         * c-typeck.c (pointer_int_sum): ...here.
30         * c-common.h (pointer_int_sum): Add prototype.
31
32 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
33
34         PR c++/5713
35         * c-decl.c (duplicate_decls): Return 0 if issued error about
36         redeclaration.
37
38 2002-02-20  Roger Sayle  <roger@eyesopen.com>
39             Jakub Jelinek  <jakub@redhat.com>
40
41         PR c/4389
42         * tree.c (host_integerp): Ensure that the constant integer is
43         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
44         when pos is zero or non-zero respectively.  Clarify comment.
45         * c-format.c (check_format_info_recurse): Fix host_integerp
46         usage; the pos argument should be zero when assigning to a
47         signed HOST_WIDE_INT.
48
49 2002-02-20  Richard Henderson  <rth@redhat.com>
50
51         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
52         of the operand, rather than assuming TImode.
53         (ix86_expand_binop_builtin): Cope with commutative patterns
54         using nonimmediate_operand for both operands.
55         (ix86_expand_timode_binop_builtin): Likewise.
56         (ix86_expand_store_builtin): Validate operand 1.
57         (ix86_expand_unop1_builtin): Likewise.
58
59 2002-02-20  Philip Blundell  <philb@gnu.org>
60         
61         PR 5705
62         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
63
64 2002-02-20  Richard Henderson  <rth@redhat.com>
65
66         PR c/5615
67         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
68
69 2002-02-20  Tom Tromey  <tromey@redhat.com>
70
71         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
72         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
73         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
74         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
75         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
76         unconditionally.
77
78 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
79
80         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
81           for (const_int 0) in X not just INTVAL.
82
83 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
84
85         * doc/extend.texi: Avoid or reduce overfull hboxes.
86
87 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
88
89         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
90         operations if the field does not start at a mode boundary.
91
92 2001-02-20      Joel Sherrill <joel@OARcorp.com>
93
94         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
95         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
96         Also done for -Acpu and -Amachine.
97
98 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
99
100         * cppinit.c (init_dependency_output): Take deps output file
101         from -o if none given with -MF.  Suppress normal output.
102         * gcc.c (cpp_unique_options): Have -M and -MM imply -E. 
103         * doc/cpp.texi, doc/invoke.texi: Update.
104
105 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
106
107         * toplev.c (output_quoted_string): Write unprintable
108         characters with octal escapes.
109
110 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
111
112         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
113         really_call_used[VRSAVE_REGNO] if not Altivec.
114
115 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
116         
117         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
118         MODE_MASK.
119         (constant_pool_expr_1): Fix formatting.
120         (rs6000_legitimize_reload_address): Likewise.
121
122 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
123
124         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
125         now that we have one.
126
127 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
128
129         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
130         end of first block of bitfields (which was only seven bits);
131         rename dummy to unused_1; remove comment which is no longer true.
132
133 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
134
135         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
136
137 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
138
139         PR 5399
140         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
141         if generating PIC.
142
143         PR 5054
144         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
145         arm_is_longcall_p rather than inspecting call-type cookie
146         directly.
147         (call_value_insn) [TARGET_THUMB]: Likewise.
148
149 2002-02-19  Graham Stott  <grahams@redhat.com>
150
151         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
152
153 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
154
155         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
156         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
157         (FP_SAVE_INLINE): Delete.
158
159         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
160         * config/rs6000/eabi.asm: Remove ABI save restore routines.
161         * config/rs6000/t-ppccomm: Build crtsavres.o.
162         * config/rs6000/crtsavres.asm: New file.
163
164 2002-02-19  Philip Blundell  <philb@gnu.org>
165
166         * config/arm/arm.c (use_return_insn): Don't reject interrupt
167         functions.
168         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
169         (output_return_instruction): Allow interrupt functions to return with
170         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
171         (arm_expand_prologue): Subtract 4 before stacking LR in an
172         interrupt function.
173
174 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
175
176         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
177         decl, not just FUNCTION_DECL.
178         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
179         (arm_assemble_integer): Likewise.
180         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
181         marked local.
182         
183 2002-02-19  matthew green  <mrg@eterna.com.au>
184
185         * config.gcc (sparc-*-netbsdelf*): Enable target.
186         (sparc64-*-netbsd*): New target.
187         * config/sparc/netbsd-elf.h: New file.
188         * config/sparc/t-netbsd64: New file.
189
190 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
191
192         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
193
194 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
195
196         * doc/invoke.texi: explicitly list the style guidelines that
197         -Weffc++ checks for.
198
199 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
200
201         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
202
203 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
204
205         PR other/5718
206         * gcc.c (cpp_unique_options): Treat -o as indicating object file
207         only if not -E.  If -E, pass -o through to the preprocessor.
208
209 2002-02-19  Kazu Hirata  <kazu@hxi.com>
210
211         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
212         register number with an appropriate macro.
213
214 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
215
216         * doc/rtl.texi (Constants): Close @code tag.
217
218 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
219
220         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
221         ("mmx_uavgv4hi3"): Same.
222         ("pmulhrwv4hi3"): Same.
223
224         * tree-inline.c (walk_tree): Handle vectors.
225
226         * c-common.c (constant_expression_warning): Handle vectors.
227         (overflow_warning): Same.
228
229         * sched-deps.c (sched_analyze_2): Handle vectors.
230
231         * rtlanal.c (rtx_unstable_p): Handle vectors.
232         (rtx_varies_p): Same.
233         (count_occurrences): Same.
234         (regs_set_between_p): Same.
235         (modified_between_p): Same.
236         (modified_in_p): Same.
237         (volatile_insn_p): Same.
238         (volatile_refs_p): Same.
239         (side_effects_p): Same.
240         (may_trap_p): Same.
241         (inequality_comparisons_p): Same.
242         (replace_regs): Same.
243         (computed_jump_p_1): Same.
244
245         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
246         argument.
247         (inner_mode_array): New.
248         (copy_rtx): Handle vectors.
249         (copy_most_rtx): Same.
250         (rtx_equal_p): Same.
251         (get_mode_alignment): Adjust for vectors.
252
253         * resource.c (mark_referenced_resources): Handle vectors.
254         (mark_set_resources): Same.
255
256         * reload1.c (eliminate_regs): Handle vectors.
257         (elimination_effects): Same.
258         (scan_paradoxical_subregs): Same.
259
260         * reload.c (subst_reg_equivs): Handle vectors.
261
262         * regrename.c (scan_rtx): Handle vectors.
263
264         * regclass.c (reg_scan_mark_refs): Handle vectors.
265
266         * recog.c (find_single_use_1): Handle vectors.
267
268         * local-alloc.c (equiv_init_varies_p): Handle vectors.
269         (contains_replace_regs): Same.
270         (memref_referenced_p): Same.
271
272         * integrate.c (copy_rtx_and_substitute): Handle vectors.
273         (subst_constants): Same.
274
275         * genattrtab.c (attr_copy_rtx): Handle vectors.
276         (encode_units_mask): Same.
277         (clear_struct_flag): Same.
278         (count_sub_rtxs): Same.
279
280         * gcse.c (want_to_gcse_p): Handle vectors.
281         (oprs_unchanged_p): Same.
282         (hash_expr_1): Same.
283         (oprs_not_set_p): Same.
284         (expr_killed_p): Same.
285         (compute_transp): Same.
286         (store_ops_ok): Same.
287
288         * function.c (purge_addressof_1): Do not allow paradoxical subregs
289         of vectors.
290         (fixup_var_refs_1): Same.
291         (instantiate_virtual_regs_1): Same.
292
293         * fold-const.c (operand_equal_p): Handle vectors.
294         (fold): Same.
295         (rtl_expr_nonnegative_p): Same.
296
297         * flow.c (mark_used_regs): Handle vectors.
298
299         * df.c (df_uses_record): Handle vectors.
300
301         * cselib.c (cselib_subst_to_values): Handle vectors.
302         (cselib_mem_conflict_p): Same.
303         (hash_rtx): Same.
304
305         * cse.c (canon_reg): Handle vectors.
306         (fold_rt): Same.
307         (cse_process_notes): Same.
308         (count_reg_usage): Same.
309         (canon_hash): Same.
310
311         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
312
313         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
314
315         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
316         (gen_rtx): Handle CONST_VECTOR.
317         (gen_const_vector_0): New.
318         (copy_rtx_if_shared): CONST_VECTORs can be shared.
319         (reset_used_flags): Same.
320         (copy_insn_1): Same.
321         (initializer_constant_valid_p): Handle VECTOR_CST.
322
323         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
324
325         * doc/rtl.texi (Constants): Document const_vector.
326         (CONST0_RTX): Update for vectors.
327         (RTL sharing): Same.
328
329         * print-tree.c (print_node): Add case for VECTOR_CST.
330
331         * tree.h (TREE_VECTOR_CST_ELTS): New.
332         (struct tree_vector): New.
333         (union tree_node): Add vector node.
334         (build_vector): Add prototype.
335
336         * tree.def (VECTOR_CST): New.
337
338         * tree.c (build_vector): New.
339
340         * expmed.c (make_tree): Handle CONST_VECTOR.
341
342         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
343         (CONST_VECTOR_ELT): New.
344         (CONST_VECTOR_NUNITS): New.
345
346         * machmode.h (GET_MODE_INNER): New.
347         (DEF_MACHMODE): Accept 8th arg.
348
349         * machmode.def: Add 8th argument for vector inner mode.
350         Add inner vector modes for vectors.
351
352         * rtl.def (VEC_CONST): Remove.
353         (CONST_VECTOR): New.
354
355         * expr.c (clear_storage): Allow vectors.
356         (is_zeros_p): Handle VECTOR_CST.
357
358         * varasm.c (output_constant_pool): Handle vectors.
359         (rtx_const): Add veclo and vechi fields.
360         (kind): Add RTX_VECTOR.
361         (decode_rtx_const): Add case for vector.
362
363         * config/rs6000/rs6000-protos.h: Add zero_constant.
364         
365         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
366         constants.  Force easy vector constants into memory.
367         (easy_vector_constant): New.
368         (emit_easy_vector_constant): New.
369         (rs6000_legitimize_reload_address): Do not generate bad reloads on
370         darwin.
371
372         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
373         instruction does.
374         ("altivec_lvxl"): Same.
375         (altivec_lvebx): Same.
376         (altivec_lvehx): Same.
377         (altivec_lvewx): Same.
378         ("*movv4si_const0"): New.
379         ("*movv4sf_const0"): New.
380         ("*movv8hi_const0"): New.
381         ("*movv16qi_const0"): New.
382
383 2002-02-18  Kazu Hirata  <kazu@hxi.com>
384
385         * config/h8300/h8300.c (notice_update_cc): Use
386         cc_status.value2.
387
388 2002-02-18  Kazu Hirata  <kazu@hxi.com>
389
390         * config/h8300/h8300.md (divmod patterns): Change the
391         constraints for operands[1] to register_operand.
392
393 2002-02-18  Kazu Hirata  <kazu@hxi.com>
394
395         * config/h8300/h8300-protos.h: Remove the prototype for
396         p_operand.
397         * config/h8300/h8300.c (p_operand): Remove.
398         * config/h8300/h8300.md: Replace p_operand with
399         const_int_operand.
400
401 2002-02-18 Philip Blundell <pb@nexus.co.uk>
402
403         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
404         comment.
405         (output_return_instruction): Allow use of LDR to unstack
406         return addresss even for interrupt handlers or when
407         interworking.  If compiling for ARMv5, use interworking-safe
408         return instructions by default.  Remove duplicated code and
409         lengthy "strcat" sequences.
410
411 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
412
413         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
414         (LINK_EH_SPEC): Define.
415         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
416
417 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
418
419         * config/s390/s390.c (s390_emit_prologue): Do not set the
420         frame_related flag for call-clobbered registers.
421
422 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
423
424         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
425         (construct_container): Fix handling of SSE operands.
426         (ix86_expand_builtin): Fix handling of 64bit pointers.
427         (mmx_maskmovq_rex): New pattern.
428
429 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
430
431         * regrename.c (kill_set_value): Handle subregs properly.
432
433 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
434
435         * objc/objc-act.c (handle_impent): Remove leading '*'
436         from objc_class_name. 
437
438 2002-02-17  Richard Henderson  <rth@redhat.com>
439
440         * config/alpha/alpha.c (some_small_symbolic_operand,
441         some_small_symbolic_operand_1, split_small_symbolic_operand,
442         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
443         Handle small SYMBOL_REFs anywhere, not just inside memories.
444         * config/alpha/alpha-protos.h: Update.
445         * config/alpha/alpha.h (PREDICATE_CODES): Update.
446         * config/alpha/alpha.md (small symbolic operand splitter): Update.
447
448 2002-02-17  Roland McGrath  <roland@frob.com>
449
450         * config.gcc (powerpc-*-gnu-gnualtivec*,
451         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
452         * config/rs6000/gnu.h: New file.
453         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
454         Grok "gnu" in rs6000_abi_name.
455         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
456         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
457         Grok -mcall-gnu analogous to -mcall-linux et al.
458         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
459         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
460         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
461
462 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
463
464         PR c/3444:
465         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
466         shortening.
467
468 2002-02-17  Philipp Thomas  <pthomas@suse.de>
469
470         * config/cris/cris.h: Undefine STARTFILE_SPEC and
471         ENDFILE_SPEC before (re)defining them.
472
473 2002-02-17  Kazu Hirata  <kazu@hxi.com>
474
475         * config/h8300/h8300.c: Fix formatting.
476         * config/h8300/h8300.h: Likewise.
477
478 2002-02-17  Philipp Thomas  <pthomas@suse.de>
479
480         * doc/tm.texi: Explain why empty strings should not be
481         marked for translation.
482
483 2002-02-17  Philipp Thomas  <pthomas@suse.de>
484
485         * final.c (output_operand_lossage): Changed to accept
486         printf style arguments. Change calls where necessary.
487         * output.h (output_operand_lossage): Change declaration
488         accordingly. Update copyright.
489         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
490         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
491         Update copyright date where necessary.
492         
493         * config/i386/i386.c (print_operand): Likewise. Remove use of
494         sprintf.
495
496         * config/cris/cris.c (cris_operand_lossage): Likewise.
497         Rename parameter so that exgettext recognizes it as
498         translatable message.
499         (LOSE_AND_RETURN): Rename parameter to msgid.
500
501 2002-02-17  Kazu Hirata  <kazu@hxi.com>
502
503         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
504         hard coded register number with an appropriate macro.
505         (HARD_REGNO_MODE_OK): Likewise.
506         (ARG_POINTER_REGNUM): Likewise.
507         (STATIC_CHAIN_REGNUM): Likewise.
508         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
509         * config/h8300/h8300.md (define_constants): Define more
510         register numbers.
511
512 2002-02-17  Philipp Thomas  <pthomas@suse.de>
513
514         * config/i386/i386.h: Don't mark empty strings for translation.
515
516 2002-02-16  H.J. Lu <hjl@gnu.org>
517
518         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
519
520 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
521
522         * cppinit.c (merge_include_chains): Check for brack being
523         NULL before attempting to merge it with qtail.
524
525 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
526
527         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
528         DBX_DEBUG.
529
530 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
531
532         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
533
534 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
535
536         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
537         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
538         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
539
540 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
541
542         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
543         now only if !TARGET_FIX.
544         (*movsi_nt_vms_fix): New pattern.
545
546 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
547
548         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
549         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
550         (alpha_sa_mask, alpha_sa_size): Reflect above change.
551         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
552         (alpha_start_function, alpha_expand_epilogue): Likewise.
553         (unicosmk_gen_dsib): Likewise.
554
555 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
556
557         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
558
559 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
560
561         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away, 
562         check_and_change_labels, s390_final_chunkify): Delete.
563         (s390_split_branches, s390_chunkify_pool): New functions.
564         (s390_function_prologue): Call them.
565         
566         * config/s390/s390.h (S390_REL_MAX): Delete.
567         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
568
569         * config/s390/s390.md (cjump, icjump, jump): Fix length 
570         attribute calculation.
571
572
573 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
574
575         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
576         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
577
578 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
579
580         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
581         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
582         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
583
584 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
585
586         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
587
588 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
589
590         * reload.c (find_dummy_reload): Check that an output register
591         is valid for its mode.
592
593 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
594
595         * combine.c (known_cond): After replacing the REG of a SUBREG, try
596         to simplify it.
597
598         * function.c (assign_parms): Demote promoted argument passed by
599         transparent reference.
600
601 2001-02-14      Joel Sherrill <joel@OARcorp.com>
602
603         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
604         -Acpu() and -Amachine() to eliminate warnings.
605
606 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
607
608         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
609
610 2002-02-14  Kazu Hirata  <kazu@hxi.com>
611
612         * config/h8300/h8300-protos.h: Update the prototype for
613         const_costs.
614         * config/h8300/h8300.c (const_costs): Treat SET as a little
615         more expensive operation.
616         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
617         reference to const_costs.
618
619 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
620
621         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
622
623 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
624
625         PR c/5503:
626         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
627         use arguments from newtype.
628
629 2002-02-13  Eric Christopher  <echristo@redhat.com>
630
631         * config/mips/mips.c (override_options): Add check for march/mipsX
632         on the same command line. Fix error message in cpu processing.
633         Remove architecture and ISA checks.
634
635 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
636
637         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
638
639         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
640
641 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
642
643         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
644         alternatives.
645         ("*movv8hi_internal1"): Same.
646         ("*movv16qi_internal1"): Same.
647         ("*movv4sf_internal1"): Same.
648
649         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
650         not push_reload for altivec modes.
651
652 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
653
654         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
655         all RTEMS targets including removal of #includes from config/*/rtems*.h
656         file and adding them to tm_file setting. Added xm_defines=POSIX to
657         many targets.
658         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
659         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
660         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
661         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
662         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
663         config/m68k/rtemself.h: Ditto.
664         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
665         config/mips/rtems64.h: Ditto.
666         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
667         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
668         Ditto.
669         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
670         config/sparc/rtemself.h: Ditto.
671         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
672         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
673         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
674         more like arm-elf.
675         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
676         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
677         target made more similar to i386-elf.
678         * config/i386/t-rtems-i386: Added soft float support and multilibs.
679         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
680         be similar to config/m68k/t-m68kelf.
681         * gthr-rtems.h: Encapsulate with extern "C" for C++.
682
683 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
684
685         * regmove.c (kill_value): Handle subregs.
686
687 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
688
689         * i386.md (mul patterns): Allow memory operand to be first;
690         add expanders where needed; fix constraints.
691         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
692         Allow memory operand to be the first.
693
694         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
695         operands.
696
697 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
698
699         PR c/5681:
700         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
701         GET_MODE (x).
702
703 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
704
705         PR optimization/5547:
706         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
707         all valid IA-32 address modes involving non-scaled %ebx and
708         GOT/GOTOFF as displacement.
709
710 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
711
712         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
713         after emitting ltorg insns.
714
715         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
716         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
717         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
718         *abssf2): Fix "op_type" attribute.
719
720 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
721
722         * mkconfig.sh: Avoid using a subshell redirect.
723         ($output.T): Change to $(output)T.
724         (ENABLE_NLS): Remove unneeded undef.
725
726         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
727         * config/alpha/x-vms (libsubdir): Define.
728
729         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
730         register frame procedures. Optimize retrieving context.
731
732         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
733         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
734         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
735
736 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
737
738         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
739         Make same change as for find_base_value.
740
741 2002-02-13  Kazu Hirata  <kazu@hxi.com>
742
743         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
744         of QImode and SImode.
745
746 2002-02-13  Kazu Hirata  <kazu@hxi.com>
747
748         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
749         length computation of movsi.
750         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
751
752 2002-02-13  Kazu Hirata  <kazu@hxi.com>
753
754         * config/h8300/h8300.md (subqi3): Tighten the predicate for
755         operands[2] to register_operand.
756
757 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
758
759         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
760
761 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
762
763         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
764         for altivec_lvx* and altivec_stvx*.
765         ("*movv4si_internal"): Add constraint for loading from GPRs.
766         ("*movv8hi_internal1"): Same.
767         ("*movv16qi_internal1"): Same.
768         ("*movv4sf_internal1"): Same.
769
770         * config/rs6000/rs6000.c (altivec_register_operand): New.
771
772         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
773         altivec_register_operand.
774
775 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
776
777         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
778         handle SYMBOL_REF.
779
780 2002-02-13  Stan Shebs  <shebs@apple.com>
781
782         * c-typeck.c (digest_init): Handle vectors.
783         (really_start_incremental_init): Same.
784         (pop_init_level): Same.
785         (process_init_element): Same.
786
787         * varasm.c (output_constant): Same.
788
789         * expr.c (clear_storage): Same.
790         (store_constructor): Same.
791
792 2002-02-12  Eric Christopher  <echristo@redhat.com>
793
794         * explow.c (hard_function_value): Add comment explaining
795         signed/unsigned comparison.
796
797 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
798
799         * jump.c (never_reached_warning): Add finish argument.
800         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
801         real insn after end.
802         * rtl.h (never_reached_warning): Adjust prototype.
803         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
804         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
805         never_reached_warning.
806
807 2002-02-12  Graham Stott  <grahams@redhat.com>
808
809         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
810
811 2002-02-12  Kazu Hirata  <kazu@hxi.com>
812
813         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
814         logical shifts on H8/300.
815         (shift_alg_si): Improve several shifts on H8/300.
816         (get_shift_alg): Likewise.
817
818 2002-02-12  Graham Stott  <grahams@redhat.com>
819
820         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
821
822 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
823
824         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
825         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
826
827 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
828
829         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
830         non-CONST_INT through default_assemble_integer.
831         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
832         <case 8>: Abort for CONST_DOUBLE.
833
834 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
835
836         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
837         is specified.
838         * config/pa/pa-linux.h (LIB_SPEC): Delete.
839         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
840
841 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
842
843         * config/stormy16/stormy16.md (zero_extendqihi2): New.
844
845 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
846
847         * regrename.c (regrename_optimize): Don't accept a
848         part-clobbered register if the replaced register is not part
849         clobbered.
850
851         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
852         take padding into account when computing the argument value.
853
854         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
855
856         * combine.c (try_combine): Apply substitutions in
857         CALL_INSN_FUNCTION_USAGE too.
858
859 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
860
861         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
862         __builtin_altivec_abs*.
863         (bdesc_abs): New.
864
865         * config/rs6000/rs6000.h (rs6000_builtins): Add
866         ALTIVEC_BUILTIN_ABS*.
867
868         * config/rs6000/altivec.h: Use const char for builtins expecting
869         literals.
870         (vec_abs): New versions for C and C++.
871         (vec_abss): Same.
872
873 2002-02-10  Kazu Hirata  <kazu@hxi.com>
874
875         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
876         using Pmode.
877
878 2002-02-10  Kazu Hirata  <kazu@hxi.com>
879
880         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
881         constant definition from h8300.md.
882         (FRAME_POINTER_REGNUM): Likewise.
883         * config/h8300/h8300.md (define_constants): Add FP_REG.
884
885 2002-02-10  Kazu Hirata  <kazu@hxi.com>
886
887         * config/h8300/h8300.c (print_operand): Remove redundant code.
888
889 2002-02-10  Kazu Hirata  <kazu@hxi.com>
890
891         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
892         * config/h8300/h8300.c (byte_reg): Make it static.
893
894 2002-02-10  Richard Henderson  <rth@redhat.com>
895
896         PR c/5623
897         * c-typeck.c (incomplete_type_error): Handle flexible array members.
898
899 2002-02-10  Richard Henderson  <rth@redhat.com>
900
901         PR c++/5624
902         * tree.c (append_random_chars): Don't abort if main_input_filename
903         does not exist.
904
905 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
906
907         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
908
909 2002-02-10  Kazu Hirata  <kazu@hxi.com>
910
911         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
912         (pushhi1): Likewise.
913
914 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
915
916         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
917         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
918
919 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
920
921         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
922         remove MASK_VIS.
923         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
924
925 2002-02-09  Kazu Hirata  <kazu@hxi.com>
926
927         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
928         a half of an SImode register on H8/300.
929
930 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
931
932         * i386.md (movdi_2): Add missing '!'.
933
934 2002-02-09  Kazu Hirata  <kazu@hxi.com>
935
936         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
937         definitions.
938
939 2002-02-09  Kazu Hirata  <kazu@hxi.com>
940
941         * config/h8300/h8300.md (length): Correct the distance valid
942         for the short branch.
943
944 2002-02-09  Kazu Hirata  <kazu@hxi.com>
945
946         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
947
948 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
949
950         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
951         registers in SImode.
952         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
953         part-clobbered.
954
955         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
956         patch.
957
958         Contribute sh64-elf.
959         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
960         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
961         (sh_cannot_modify_jumps_p): New function.
962         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
963         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
964         (sh_ms_bitfield_layout_p): New function.
965         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
966                     Zack Weinberg  <zack@codesourcery.com>
967         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
968         expand_simple_binop instead of expand_binop.
969         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
970         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
971         use of .quad and .uaquad.
972         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
973         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
974         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
975         * config/sh/sh.md (movdi_const, movdi_const_32bit,
976         movdi_const_16bit): Make sure all CONSTs have modes.
977         (sym2PIC): Ditto, but by adjusting all callers.
978         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
979         if the prologue calls the SHmedia argument decoder or register
980         saver.
981         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
982         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
983         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
984         (sh_expand_epilogue): Don't emit USE of return target register.
985         (prepare_move_operands): Legitimize DImode PIC addresses.
986         (sh_media_register_for_return): Skip tr0, used to initialize the
987         PIC register.
988         (sh_expand_prologue): Remove explicit USE of return register.
989         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
990         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
991         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
992         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
993         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
994         EXTRA_CONSTRAINT_T.
995         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
996         (MOVI_SHORI_BASE_OPERAND_P): New.
997         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
998         (EXTRA_CONSTRAINT_T): Define in terms of them.
999         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
1000         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
1001         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
1002         alternatives supporting TARGET_REGS.
1003         (UNSPEC_GOTPLT): New constant.
1004         (movdi split): Move incrementing of LABEL_NUSES...
1005         (movdi_const, movdi_const_32bit): Here.  Use
1006         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
1007         (movdi_const_16bit): New.
1008         (call, call_value) [flag_pic]: Use GOTPLT.
1009         (call_pop, call_value_pop): New expands.
1010         (call_pop_compact, call_pop_rettramp): New insns.
1011         (call_value_pop_compact, call_value_pop_rettramp): New insns.
1012         (sibcall) [flag_pic]: Use GOT.
1013         (builtint_setjmp_receiver): Remove bogus, unused expand.
1014         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
1015         (*pt, *ptb, ptrel): New insns.
1016         (sym2GOT): Handle DImode GOT.
1017         (sym2GOTPLT, symGOTPLT2reg): New expands.
1018         (sym2PIC): New expand.
1019         (shcompact_return_tramp): Use GOTPLT to return trampoline.
1020         (shcompact_return_tramp_i): Use return register explicitly.
1021         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
1022         disable flag_reorder_blocks.
1023         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
1024         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
1025         clobbers, for clarity.
1026         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
1027         restoring of r0 in macl as MAYBE_DEAD.
1028         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
1029         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
1030         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
1031         alter_subreg all over.
1032         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
1033         reload, instead of emitting instructions that would require
1034         reloading.
1035         (casesi_load_media): Add missing modes.
1036         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
1037         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
1038         as used if the argument decoder is called.
1039         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
1040         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
1041         Pmode, then extend it to DImode if necessary.
1042         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
1043         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
1044         constants in FPU-enabled SHmedia, let them be loaded from memory.
1045         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
1046         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
1047         Adjust whitespace in assembly output templates.
1048         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
1049         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
1050         mode of if_then_else.
1051         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
1052         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
1053         sh.h.
1054         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
1055                     Joern Rennecke <amylaar@redhat.com>
1056         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
1057         (SUBTARGET_CPP_PTR_SPEC): New.
1058         (SUBTARGET_CPP_SPEC): Remove.
1059         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
1060         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
1061         Fix typo in previous checkin.
1062         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
1063         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
1064         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
1065                     Alexandre Oliva  <aoliva@redhat.com>
1066         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
1067         what single FP register can hold for SHmedia target.
1068         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
1069                     Alexandre Oliva  <aoliva@redhat.com>
1070         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
1071         Do not split into SUBREG.
1072         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
1073         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
1074         and added new functions as specified in SH5 ABI r9.
1075         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
1076         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
1077         8-byte boundary.
1078         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
1079         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
1080         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
1081         and consttable_window_ends.
1082         2001-06-03  Graham Stott  <grahams@redhat,com>
1083         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
1084         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
1085         * config/sh/sh.c (print_operand): Handle floating-point pair,
1086         vector and matrix registers.
1087         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
1088         vector modes into account.
1089         * config/sh/sh.md (movv2sf): Split move between registers into
1090         movdf.
1091         (movv4sf, movv16sf): Introduce insns that get split only after
1092         reload.
1093         * config/sh/shmedia.h: Fix Copyright dates.
1094         * config/sh/ushmedia.h: Likewise.  Move loop counter
1095         declarations into conditionals that uses them.
1096         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
1097         loop boundary.
1098         * config/sh/sshmedia.h: Fix Copyright dates.
1099         (sh_media_PUTCFG): Fix constraints.
1100         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
1101         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
1102         ptrmemfunc_vbit_in_delta for SH5.
1103         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
1104         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
1105         * invoke.texi: Likewise.
1106         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
1107         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
1108         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
1109         GCC_pop_shmedia_regs_nofpu): New global symbols.
1110         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
1111         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
1112         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
1113         compact function with nonlocal labels.
1114         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
1115         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
1116         (initial_elimination_offset): Account for their stack space.
1117         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
1118         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
1119         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
1120         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
1121         least one of the operands to be a register.
1122         (movv2sf): Likewise.  Renamed to movv2sf_i.
1123         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
1124         prepare_move_operands() before emitting SHmedia insns.
1125         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
1126         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
1127         Don't save nor initialize r12.  Don't mis-align the stack.
1128         Pad the code with a nop.
1129         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
1130         stack.
1131         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
1132         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
1133         [__SHMEDIA__]: Implement.
1134         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
1135         * config/sh/sh.md: Set latency of `pt' closer to reality.
1136         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
1137         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
1138         Set move, load and store type attributes.
1139         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
1140         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
1141         profiling.
1142         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
1143         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
1144         * config/sh/sh.c (sh_media_register_for_return): New function.
1145         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
1146         branch-target register.
1147         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
1148         * config/sh/sh.md (return_media_i): Use any call-clobbered
1149         branch-target register.
1150         (return_media): If r18 wasn't copied in the prologue, copy it
1151         here.
1152         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
1153         Clear class FP0_REGS.
1154         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
1155         from elf.h.
1156         2001-03-08  DJ Delorie  <dj@redhat.com>
1157         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
1158         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
1159         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
1160         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
1161         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
1162         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
1163         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
1164         return value correctly for call_cookie.
1165         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
1166         * config/sh/crt1.asm (start): Modified so as to call
1167         ___setup_argv_and_call_main.
1168         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
1169         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
1170         SHmedia mode.
1171         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
1172         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
1173         (STRIP_NAME_ENCODING): Use it.
1174         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
1175         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
1176         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
1177         prepare_scc_operands().
1178         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
1179         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
1180         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
1181         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
1182         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
1183         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
1184         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
1185         used in shcompact_incoming_args.
1186         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
1187         change.
1188         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
1189         mode.
1190         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
1191         Adjust accordingly.
1192         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
1193         Simplify.  Adjust.  Add sanity check.
1194         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
1195         FPU_SINGLE_BIT.
1196         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
1197         TARGET_SHCOMPACT.
1198         (udivsi3, divsi3): Use them.
1199         (force_mode_for_call): New insn.
1200         (call, call_value, sibcall_value): Emit it before SHcompact
1201         calls.
1202         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
1203         * config/sh/sh.md (call, call_value, sibcall): Make sure the
1204         call cookie is non-NULL before taking its value.
1205         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
1206         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
1207         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
1208         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
1209         block.
1210         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
1211         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
1212         temporary for stack adjusts.  Use MACL and MACH to pass
1213         arguments to shcompact_incoming_args.
1214         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
1215         clobber r1.
1216         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
1217         (nested_trampoline): Load static chain address into r1.
1218         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
1219         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
1220         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
1221         fp_arith_reg_operand().
1222         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
1223         * config/sh/sh.md (casesi): Sign-extend the first two operands,
1224         and use signed compares for them.
1225         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
1226         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
1227         ones properly aligned.
1228         (find_barrier): Account for extra alignment needed for 8-byte wide
1229         constants.
1230         (machine_dependent_reorg): Require a label for the second 4-byte
1231         constant after an 8-byte one.
1232         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
1233         change.
1234         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
1235         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
1236         last_float when switching float modes.
1237         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
1238         auto-increment for general-purpose registers.
1239         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
1240         result.
1241         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
1242         for stack adjust.
1243         * config/sh/sh.c (sh_builtin_saveregs): Support using all
1244         registers for varargs.
1245         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
1246         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
1247         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
1248         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
1249         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
1250         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
1251         call_cookie accordingly.
1252         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
1253         (SHCOMPACT_BYREF): Likewise.
1254         (SHCOMPACT_FORCE_ON_STACK): New macro.
1255         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
1256         (sh_builtin_saveregs): Likewise.
1257         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1258         shcompact_incoming_args): Use new shift values.  Support
1259         sequences of consecutive and non-consecutive pushes/pops.
1260         * config/sh/sh.md (return): Don't explicitly use PR_REG.
1261         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
1262         * config/sh/sh.h (TEXT_SECTION): Define.
1263         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
1264         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
1265         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
1266         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
1267         return values on FPU-enabled SHmedia.
1268         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
1269         FPU-enabled SHmedia.
1270         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
1271         value is returned in a non-FP reg and is not returned by
1272         reference.
1273         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
1274         jump_ind.
1275         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
1276         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
1277         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
1278         quad-aligned to be passed by callee-copy reference.
1279         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
1280         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
1281         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
1282         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
1283         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
1284         copying low-numbered FP regs to r7 and r8.
1285         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
1286         FP regs to general-purpose regs only if the copy was passed on the
1287         stack.
1288         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
1289         copying FP reg to r9.
1290         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
1291         copy FP regs to general-purpose regs only in outgoing calls.
1292         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
1293         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
1294         HOST_WIDE_INT.
1295         * config/sh/sh.h (struct sh_args): Document all fields.
1296         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
1297         passed partially on the stack should not consider making
1298         sibcalls.
1299         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
1300         stack_regs only for incoming calls.  When passing FP args,
1301         make sure there are FP regs available before modifying
1302         call_cookie.
1303         (SHCOMPACT_BYREF): Pass double args in general-purpose
1304         registers by reference.
1305         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
1306         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
1307         attempt to generate sibcalls if the caller got any arguments
1308         by reference.
1309         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
1310         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
1311         to 8-byte boundaries.
1312         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
1313         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
1314         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
1315         stored in the stack.
1316         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
1317         for the offsets to have the ISA bit set.
1318         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
1319         invocation.  Use beq instead of bgt to mark end of sequence of
1320         loads.
1321         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
1322         bgt to mark end of sequence of stores.
1323         * config/sh/sh.c (arith_operand): Don't check whether
1324         CONST_OK_FOR_J for now.
1325         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
1326         instead of long for conversion.
1327         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
1328         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
1329         before passing it to fprintf.
1330         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
1331         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
1332         Call set_fpscr before reading/writing SR.
1333         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
1334         Call set_fpscr.
1335         * config/sh/lib1funcs.asm: Add `.align 2' directives before
1336         SHmedia code.
1337         (FMOVD_WORKS): Define on SH5 with FPU.
1338         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
1339         setting.
1340         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
1341         _fpscr_values.
1342         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
1343         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
1344         address.
1345         (ia_main_table): Ditto.
1346         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
1347         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1348         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
1349         the definitions from sh.h.
1350         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
1351         TARGET_SH5.
1352         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
1353         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
1354         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1355         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
1356         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
1357         Increment LABEL_NUSES.
1358
1359         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
1360         TARGET_SH5.
1361         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
1362         defined.
1363         * config/sh/elf.h (SIZE_TYPE): Likewise.
1364         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
1365         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1366         shcompact_incoming_args): Load switch table addresses using
1367         datalabel.
1368         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1369         (NO_BUILTIN_SIZE_TYPE): Define.
1370         (SIZE_TYPE): Don't define.
1371         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
1372         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
1373         definition of __SH5__=32 for -m5-compact-nofpu.
1374         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
1375         ADDR_DIFF_VEC.
1376         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
1377         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
1378         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
1379         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
1380         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
1381         (INSN_LENGTH_ALIGNMENT): Likewise.
1382         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
1383         * config/sh/sh.md (call, call_value, sibcall): Simplify
1384         copying of non-branch-target register.
1385         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
1386         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
1387         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
1388         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
1389         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
1390         floating-point values as structs.
1391         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
1392         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
1393         general-purpose register.
1394         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
1395         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
1396         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
1397         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
1398         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
1399         (ENCODE_SECTION_INFO): Enclose variables and constants in
1400         DATALABEL unspecs.
1401         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
1402         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
1403         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
1404         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
1405         only for LABEL_REFs.  For SYMBOL_REFs, prepend
1406         SH_DATALABEL_ENCODING to the symbol name.
1407         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
1408         convert_mode().
1409         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
1410         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
1411         UNSPEC_DATALABEL.
1412         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
1413         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
1414         (DATALABEL_REF_P): Don't require CONST.
1415         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
1416         REL label.
1417         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
1418         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
1419         right.
1420         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
1421         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
1422         Use shallow_copy_rtx and PUT_MODE to change the mode of
1423         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
1424         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
1425         on SHmedia using GENERAL_REGs.
1426         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
1427         bltu_media_i): Fix reversion of conditions.
1428         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
1429         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
1430         * config/sh/sh.c (output_far_jump): Save r13 in macl.
1431         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
1432         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
1433         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
1434         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
1435         (GCC_nested_trampoline): Likewise.
1436         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
1437         * config/sh/sh.c (gen_datalabel_ref): Define.
1438         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
1439         (INITIALIZE_TRAMPOLINE): Likewise.
1440         (TRAMPOLINE_ADJUST_ADDRESS): Define.
1441         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
1442         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
1443         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
1444         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
1445         (ic_invalidate): Adjust for SH5.
1446         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
1447         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
1448         _nested_trampoline.
1449         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
1450         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
1451         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
1452         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
1453         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
1454         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
1455         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
1456         * config/sh/sh.c (target_reg_operand): Match only target-branch
1457         registers and pseudos that aren't virtual registers.
1458         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
1459         Copy operands that don't match target_reg_operand to pseudos.
1460         (call_media, call_value_media, sibcall_media): Use
1461         target_reg_operand instead of target_operand.
1462         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
1463         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
1464         * config/sh/sh.c (target_reg_operand): Match hardware registers
1465         other than branch-target registers.
1466         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
1467         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
1468         (fpscr_values) [SH5 == 32]: Define.
1469         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
1470         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
1471         Handle function addresses coming in SUBREGs.
1472         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
1473         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
1474         shcompact_return_trampoline): Use datalabel where appropriate.
1475         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
1476         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
1477         general-purpose register to copy one branch-target register to
1478         another.
1479         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
1480         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
1481         SYMBOL_REFs with VOIDmode.
1482         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
1483         bltu_media_i): New insns.
1484         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
1485         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
1486         (INIT_CUMULATIVE_ARGS): Likewise.
1487         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
1488         * machmode.def (V16SFmode): New mode.
1489         * c-common.c (type_for_mode): Support V2SF and V16SF.
1490         * tree.c (build_common_tree_nodes_2): Likewise.
1491         * tree.h (tree_index): Likewise.
1492         * calls.c (emit_call_1): Take args_so_far.  Adjust all
1493         callers.  Introduce CALL_POPS_ARGS.
1494         * tm.texi (CALL_POPS_ARGS): Document.
1495         * config/sh/crt1.asm: Implement in SHmedia mode.
1496         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
1497         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
1498         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
1499         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
1500         Implement divsi and udivsi in SHmedia mode.  Introduce
1501         SHcompact trampolines.
1502         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
1503         only in SHmedia64.
1504         (regno_reg_class): Rewrite.
1505         (fp_reg_names): Remove.
1506         (sh_register_names, sh_additional_register_names): New.
1507         (print_operand): Added `u'.  Support SUBREGs in addresses.
1508         Add parentheses around shifted CONSTs.
1509         (output_file_start): Output .mode and .abi directives.
1510         (shiftcosts, addsubcosts, multcosts): Adjust.
1511         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
1512         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
1513         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
1514         bytes, not registers.  Take into account the need for the
1515         SHcompact incoming args trampoline.  Adjust all callers.
1516         (sh_expand_prologue): Take stack_regs into account.  Call
1517         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
1518         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
1519         stack aligned as per SH5 ABI.
1520         (sh_builtin_saveregs): Support SH5 ABI.
1521         (sh_build_va_list, sh_va_start): Likewise.
1522         (initial_elimination_offset): Take alignment into account.
1523         Compute location of PR according to the SH5 stack frame.
1524         (arith_reg_operand): Reject branch-target registers.
1525         (shmedia_6bit_operand): New.
1526         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
1527         (target_reg_operand): Match DImode only.  Accept SUBREGs.
1528         (target_operand): New.
1529         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
1530         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
1531         SIBCALL_REGS for SHmedia.
1532         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
1533         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
1534         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
1535         (TARGET_SWITCHES): New SH5 flags.
1536         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
1537         VALID_REGISTER_P to disable unsupported registers.
1538         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
1539         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
1540         (FUNCTION_ARG_PADDING): Define.
1541         (FASTEST_ALIGNMENT): Adjust.
1542         (SH_REGISTER_NAMES_INITIALIZER): New.
1543         (sh_register_names): Declare.
1544         (DEBUG_REGISTER_NAMES): Define.
1545         (REGISTER_NAMES): Define based on sh_register_names.
1546         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
1547         (sh_additional_register_names): Declare.
1548         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
1549         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
1550         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
1551         (REGISTER_NATURAL_MODE): Define.
1552         (FIRST_PSEUDO_REGISTER): Adjust.
1553         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
1554         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
1555         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
1556         (VECTOR_MODE_SUPPORTED_P): Define.
1557         (REG_CLASS_CONTENTS): Adjust.
1558         (SMALL_REGISTER_CLASSES): Adjust.
1559         (REG_ALLOC_ORDER): Adjust.
1560         (INDEX_REG_CLASS): Adjust.
1561         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
1562         (CONST_OK_FOR_LETTER_P): Adjust.
1563         (PREFERRED_RELOAD_CLASS): Adjust.
1564         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
1565         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
1566         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
1567         (FIRST_FP_PARM_REG): Adjust.
1568         (CALL_POPS_ARGS): Define.
1569         (FUNCTION_ARG_REGNO_P): Adjust.
1570         (struct sh_args): New fields.
1571         (GET_SH_ARG_CLASS): Adjust.
1572         (INIT_CUMULATIVE_ARGS): Adjust.
1573         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
1574         (FUNCTION_ARG_ADVANCE): Adjust.
1575         (FUNCTION_ARG): Adjust.
1576         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
1577         (FUNCTION_ARG_CALLEE_COPIES): Define.
1578         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
1579         (STRICT_ARGUMENT_NAMING): Define.
1580         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
1581         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
1582         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
1583         (SETUP_INCOMING_VARARGS): Adjust.
1584         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
1585         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
1586         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
1587         (SUBREG_OK_FOR_INDEX_P): Adjust.
1588         (EXTRA_CONSTRAINT_S): Update.
1589         (EXTRA_CONSTRAINT_T): New.
1590         (EXTRA_CONSTRAINT): Adjust.
1591         (GO_IF_LEGITIMATE_INDEX): Adjust.
1592         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
1593         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
1594         (MOVE_MAX): Adjust.
1595         (MAX_MOVE_MAX): Define.
1596         (Pmode): Adjust.
1597         (CONST_COSTS): Adjust.
1598         (REGISTER_MOVE_COST): Adjust.
1599         (BRANCH_COST): Adjust.
1600         (TEXT_SECTION_ASM_OP): Adjust.
1601         (DBX_REGISTER_NUMBER): Adjust.
1602         (ASM_OUTPUT_DOUBLE_INT): New.
1603         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
1604         (PREDICATE_CODES): Adjust.
1605         (PROMOTE_MODE): Adjust.
1606         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
1607         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
1608         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
1609         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
1610         (DR0_REG, DR2_REG, DR4_REG): Renumber.
1611         (TR0_REG, TR1_REG, TR2_REG): New.
1612         (XD0_REG): Renumber.
1613         (UNSPEC_COMPACT_ARGS): New.
1614         (type): Added pt and ptabs.
1615         (length): Default to 4 on SHmedia.  Default pt length to 12
1616         and     20 on SHmedia32 and SHmedia64, respectively.
1617         (pt): New function unit.
1618         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
1619         Add whitespace between operands of SHmedia instructions.
1620         (movdicc): Fix.
1621         (adddi3_media, addsi3_media): Adjust constraints.
1622         (subsi3) [SHmedia]: Force operand 1 into a register.
1623         (udivsi3_i1_media, udivsi3_i4_media): New.
1624         (udivsi3): Support SHmedia.
1625         (divsi3_i1_media, divsi3_i4_media): New.
1626         (divsi3): Support SHmedia.
1627         (anddi3, iordi3, xordi3): Adjust constraints.
1628         (zero_extendhidi2, zero_extendqidi2): New.
1629         (extendsidi2, extendhidi2, extendqidi2): New.
1630         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
1631         (pop_e, pop_fpul, pop_4): Likewise.
1632         (movsi_media): Support FP and BT registers.
1633         (movsi_media_nofpu): New.  Adjust splits to DImode.
1634         (lduw, ldub): Renamed to zero_extend* above.
1635         (movqi_media): Fix typo.
1636         (movdi_media): Support FP and BT registers.
1637         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
1638         (movdi_const_32bit): New.
1639         (shori_media): Require immediate operand.  Use `u' for output.
1640         (movdf_media, movsf_media): Simplified.
1641         (movdf_media_nofpu, movsf_media_nofpu): New.
1642         (movdf, movsf): Adjust
1643         (movv2sf, movv2sf, movv16sf): New.
1644         (beq_media, beq_media_i): Adjust constraints.  Don't use
1645         scratch BT register.
1646         (bne_media, bne_media_i): Likewise.
1647         (bgt_media, bgt_media_i): Likewise.
1648         (bge_media, bge_media_i): Likewise.
1649         (bgtu_media, bgtu_media_i): Likewise.
1650         (bgeu_media, bgeu_media_i): Likewise.
1651         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
1652         bunordered): Emit jump insn.  Force operands to registers when
1653         needed.
1654         (jump_media, jump): Simplify.
1655         (call_compact, call_compact_rettramp): New.
1656         (call_value_compact, call_value_compact_rettramp): New.
1657         (call_media, call_value_media): Simplify.
1658         (sibcall_compact, sibcall_media): New.
1659         (call, call_value): Adjust for SHmedia and SHcompact.
1660         (sibcall, sibcall_value, untyped_call): Likewise.
1661         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
1662         (indirect_jump): Adjust for SHmedia.
1663         (casesi_jump_media): New.
1664         (nop): Re-enable for SHmedia.
1665         (call_site): Restrict to SH1.
1666         (casesi): Adjust for SHmedia.
1667         (casesi_shift_media, casesi_load_media): New.
1668         (return): Explicitly use PR register.  Call return trampoline
1669         on SHcompact.
1670         (return_i): Explicitly use PR register.
1671         (shcompact_return_tramp, shcompact_return_tramp_i): New.
1672         (return_media): Adjust.
1673         (shcompact_incoming_args): New.
1674         (epilogue): Adjust.
1675         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
1676         (movstrsi): Disable on SH5.
1677         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
1678         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
1679         (subsf3, subsf3_media): Likewise.
1680         (mulsf3, mulsf3_media, mac_media): Likewise.
1681         (divsf3, divsf3_media): Likewise.
1682         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
1683         (floatsisf2, fux_truncsfsi2): Likewise.
1684         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
1685         constraints.
1686         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
1687         (cmpunsf_media, cmpsf): Likewise.
1688         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
1689         (abssf2, abssf2_media): Likewise.
1690         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
1691         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
1692         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
1693         (floatsidf2, fix_truncdfsi2): Likewise.
1694         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
1695         constraints.
1696         (cmpeqdf_media, cmpgtdf_media): Likewise.
1697         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
1698         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
1699         (absdf2, absdf2_media): Likewise.
1700         (extendsfdf2, extendsfdf2_media): Likewise.
1701         (truncsfdf2, truncsfdf2_media): Likewise.
1702         * config/sh/sh64.h: New file.
1703         * config/sh/t-sh64: New file.
1704         * config/sh/shmedia.h: New file.
1705         * config/sh/ushmedia.h: New file.
1706         * config/sh/sshmedia.h: New file.
1707         * configure.in: Added sh64-*-elf.
1708         * configure: Rebuilt.
1709         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
1710         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
1711         (reg_class_from_letter): Use `b' for TARGET_REGS.
1712         (print_operand): Support `%M', `%m', `AND' and
1713         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
1714         (andcosts): Adjust for SHmedia.
1715         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
1716         Likewise.
1717         (target_reg_operand): New function.
1718         * config/sh/sh-protos.h (target_reg_operand): Declare.
1719         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
1720         FP registers on SH5.
1721         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
1722         on SH4.
1723         (TARGET_REGISTER_P): New macro.
1724         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
1725         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
1726         (EXTRA_CONSTRAINT_S): New macro.
1727         (EXTRA_CONSTRAINT): Adjust.
1728         (FLOAT_TYPE_SIZE): Define to 32.
1729         (Pmode): DImode on SHmedia.
1730         (CONST_COSTS): Adjust for SHmedia literals.
1731         (PREDICATE_CODES): Added target_reg_operand.
1732         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
1733         * config/sh/sh.md: Remove all attrs from SHmedia insns.
1734         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
1735         (cmpdi): Accept SHmedia.
1736         (movdicc_false, movdicc_true): New insns.
1737         (movdicc): New expand.
1738         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
1739         no_new_pseudos.
1740         (addsi3_media): Match `S' constraint.
1741         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
1742         (negdi2): Expand for SHmedia.
1743         (one_cmpldi2): New expand.
1744         (zero_extendsidi2): Change from expand to insn.
1745         (extendsidi2): Add constraints.
1746         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
1747         LD/ST address.  Fix SI immediate loading split.
1748         (movhi_media, movqi_media, lduw, ldub): New insns.
1749         (movhi, movqi): Accept SHmedia.
1750         (shori_media, movdi_media): Relax input constraints.  Split
1751         symbolic constants.
1752         (movdf_media, movsf_media): New insn.  New split to movdi.
1753         (movdf, movsf): Match on SHmedia.
1754         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
1755         bgeu_media): New insns and splits.  New insns with `_i' suffix.
1756         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
1757         (bunordered): New expand.
1758         (jump_compact): Renamed from `jump'.
1759         (jump_media): New insn.
1760         (jump): New expand.
1761         (call_media, call_value_media): New insns.
1762         (call, call_value): Adjust.
1763         (indirect_jump_compact): Renamed from `indirect_jump'.
1764         (indirect_jump_media): New insn.
1765         (indirect_jump): New expand.
1766         (untyped_call, return): Accept SHmedia.
1767         (return_media): New insn.
1768         (prologue, epilogue, blockage): Accept SHmedia.
1769         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
1770         (sunordered): New expand.
1771         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
1772         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
1773         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
1774         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
1775         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
1776         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
1777         abssf2_media): New insns.
1778         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
1779         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
1780         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
1781         floatdidf2, floatsidf2_media, fix_truncdfdi2,
1782         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
1783         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
1784         absdf2_media): New insns.
1785         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
1786         (extendsfdf2_media, truncdfsf2_media): New insns.
1787         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
1788         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
1789         * config/sh/sh.h (CONST_OK_FOR_J): Document.
1790         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
1791         * config/sh/sh.md (adddi3): New expand.
1792         (adddi3_media, adddi3z_media): New insns.
1793         (adddi3_compact): Renamed from adddi3.
1794         (addsi3_media): Use add.l r63 to add constant zero.
1795         (subdi3): New expand.
1796         (subdi3_media): New insn.
1797         (subdi3_compact): Renamed from subdi3.
1798         (mulsidi3): New expand.
1799         (mulsidi3_media): New insn.
1800         (mulsidi3_compact): Renamed from mulsidi3.
1801         (umulsidi3): New expand.
1802         (umulsidi3_media): New insn.
1803         (umulsidi3_compact): Renamed from umulsidi3.
1804         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
1805         (ashlsi3, ashrsi3, lshrsi3): Use them.
1806         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
1807         (ashldi3, ashrdi3, lshrdi3): Use them.
1808         (zero_extendsidi2): New expand.
1809         (extendsidi2): New insn.
1810         (movsi_media): New insn.  Split to movdi to load constants.
1811         (movsi): Enable for shmedia.
1812         (movdi_media): New insn.  Use shori_media to load wide constants.
1813         (short_media): New insn.
1814         (movdi): Enable for shmedia.
1815         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
1816         * config/sh/sh.h (CPP_SPEC): Added `m5'.
1817         (SUBTARGET_CPP_SPEC): Added `!m5'.
1818         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
1819         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
1820         to all other SH variants.
1821         (TARGET_DEFAULT): Set to SH1_BIT.
1822         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
1823         (BITS_PER_WORD): Raise to 64 on shmedia.
1824         (MAX_BITS_PER_WORD): Change to 64.
1825         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
1826         (INT_TYPE_SIZE): Keep as 32.
1827         (UNITS_PER_WORD): Raise to 8 on shmedia.
1828         (MIN_UNITS_PER_WORD): Keep as 4.
1829         (POINTER_SIZE): Raise to 64 on shmedia.
1830         (CONST_OK_FOR_J): New macro.
1831         (CONST_OK_FOR_LETTER_P): Use it.
1832         (processor_type): Add PROCESSOR_SH5.
1833         * config/sh/sh.md: Conditionalize all expands, insns and
1834         splits to TARGET_SH1.
1835         (cpu): Added sh5.
1836         (addsi3_compact): Renamed from...
1837         (addsi3): Now an expand.
1838         (addsi3_media, subsi3_media): New insns.
1839         (subsi3): Don't negate constants with SHmedia.
1840
1841         * hooks.c: New file.
1842         * hooks.h: New file.
1843         * Makefile.in (HOOKS_H): New.
1844         (TARGET_DEF_H): Added $(HOOKS_H).
1845         (OBJS): Added hooks.o.
1846         (cfgcleanup.o, bb-reorder.o): Added target.h.
1847         (hooks.o): Added dependencies.
1848         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
1849         (TARGET_INITIALIZER): this.
1850         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
1851         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
1852         * bb-reorder.c: Include target.h.
1853         (reorder_basic_blocks): Skip if cannot modify jumps.
1854         * cfgcleanup.c: Include target.h.
1855         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
1856
1857 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
1858
1859         * config/mips/mips.md (casesi_internal, casesi_internal_di):
1860         Protect jump delay slot instructions with .set noreorder and
1861         .set nomacro.
1862
1863 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
1864
1865         * config/mips/mips.md (casesi_internal_di): Calculate
1866         the index into the target offset table correctly.
1867
1868 2002-02-08  Richard Henderson  <rth@redhat.com>
1869
1870         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
1871         * final.c (output_addr_const): Accept and discard SUBREG.
1872         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
1873         mark them unknown instead.
1874         (simplify_subtraction): Handle RTX_UNKNOWN.
1875         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
1876
1877 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
1878
1879         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
1880
1881 2002-02-08  Richard Henderson  <rth@redhat.com>
1882
1883         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
1884
1885 2002-02-08  Andreas Jaeger  <aj@suse.de>
1886
1887         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
1888         * config/i386/t-linux64: New file.
1889
1890 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
1891
1892         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
1893         * c-parse.in (compstmt): Clear last_expr_type.
1894
1895 2002-02-07  Richard Henderson  <rth@redhat.com>
1896
1897         * loop.c (strength_reduce): Sink final_value when not
1898         eliminating a biv.
1899
1900 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
1901
1902         * config/sparc/freebsd.h: Fix mismatched spec {.
1903
1904 2002-02-07  Richard Henderson  <rth@redhat.com>
1905
1906         * cfgrtl.c: Include recog.h and insn-config.h.
1907         (keep_with_call_p): Fix general_operand invocation.
1908         * Makefile.in (cfgrtl.o): Update dependencies.
1909
1910 2002-02-07  Kazu Hirata  <kazu@hxi.com>
1911
1912         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
1913         comment.  Accept HImode only if TARGET_H8300.
1914
1915 2002-02-07  Eric Christopher  <echristo@redhat.com>
1916
1917         * config/mips/crtn.asm: Cleanup #ifdefs.
1918
1919 2002-02-07  Eric Christopher  <echristo@redhat.com>
1920
1921         * config/mips/crti.asm: Add changes for mips16. mips16 uses
1922         register 7 as RA instead of $31.
1923         * config/mips/crtn.asm: Ditto.
1924         * config/mips/mips.c (mips_move_2words): Add case for
1925         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
1926         (compute_frame_size): Fix typo.
1927         (save_restore_insns): Ditto.  Make documentation about using
1928         register $7 as return register more precise.
1929         (mips_expand_epilogue): Fix comment. Add code to work around not
1930         being able to add to the stack pointer directly.
1931         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
1932         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
1933         epilogue.
1934
1935 2002-02-07  Tom Rix  <trix@redhat.com>
1936
1937         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
1938         immediates in ldu and stdu DS opcode field.
1939         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
1940         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
1941         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
1942
1943 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
1944
1945         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
1946         offset for stack bias.
1947
1948 2002-02-07  H.J. Lu <hjl@gnu.org>
1949
1950         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
1951
1952 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
1953
1954         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
1955
1956 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
1957
1958         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
1959         * i386.c (x86_order_regs_for_local_alloc): New global function.
1960         * i386.h (REG_ALLOC_ORDER): CLeanup.
1961         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
1962
1963 2002-02-07  Richard Henderson  <rth@redhat.com>
1964
1965         PR optimization/2463
1966         * alias.c (find_base_value): Recall base values for fixed hard regs.
1967         * loop.c (loop_regs_update): Don't use single_set on non-insns.
1968
1969 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
1970
1971         * config/mips/mips.md (define_delay) [mips16]: Adjust required
1972         length.
1973
1974 2002-02-06  Richard Henderson  <rth@redhat.com>
1975
1976         PR c/5609
1977         * stmt.c (resolve_operand_name_1): Take more care with mixed
1978         named and unnamed operands.
1979
1980 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
1981             Jan Hubicka  <jh@suse.cz>
1982
1983         * loop.c (remove_constant_addition): Avoid clobbering a shared
1984         CONST expression.
1985
1986 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
1987
1988         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
1989         * config/s390/t-linux64: New file.
1990         * config/s390/libgcc-glibc.ver: New file.
1991
1992 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
1993
1994         * config/s390/linux64.h: Delete file.
1995         * config/s390/s390x.h: New file.
1996         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
1997         as target header file.
1998         * config/s390/linux.h (TARGET_VERSION): Define depending on
1999         DEFAULT_TARGET_64BIT.
2000         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
2001         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
2002         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
2003         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
2004         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
2005         (EXTRA_SPEC): New define.
2006         * config/s390/s390.h (TARGET_VERSION): Define depending on
2007         DEFAULT_TARGET_64BIT.
2008         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
2009
2010 2002-02-06  Jason Merrill  <jason@redhat.com>
2011
2012         * c-decl.c (finish_function): Warn about a non-void function with
2013         no return statement and no abnormal exit.
2014         (current_function_returns_abnormally): New variable.
2015         (start_function): Clear it.
2016         (struct c_language_function): Add returns_abnormally.
2017         (push_c_function_context): Save it.
2018         (pop_c_function_context): Restore it.
2019         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
2020         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
2021         an explicit return type.
2022         * c-tree.h: Declare current_function_returns_abnormally.
2023         (C_FUNCTION_IMPLICIT_INT): New macro.
2024         * c-typeck.c (build_function_call): Set it.
2025         (c_expand_return): Set current_function_returns_value even if the
2026         value is erroneous.
2027
2028 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
2029
2030         PR c/5420:
2031         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
2032         unsafe for reevaluation.
2033
2034 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
2035
2036         PR c/5482:
2037         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
2038         EXPR_STMT, but COMPOUND_STMT, recurse into it.
2039
2040 2002-02-06  Richard Henderson  <rth@redhat.com>
2041
2042         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
2043         be a general_operand.  Dest for function value must be a pseudo.
2044
2045 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
2046
2047         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
2048         as SYMBOL_REFs from the constant pool.
2049
2050 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
2051
2052         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
2053         passed by invisible reference.
2054
2055 2002-02-05  Richard Henderson  <rth@redhat.com>
2056
2057         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
2058
2059 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
2060
2061         Implement using "base addresses" in insn operands as default.
2062         * config/mmix/mmix.c (mmix_conditional_register_usage): if
2063         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
2064         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
2065         used to read the rtx value.
2066         (mmix_target_asm_function_epilogue): Fix spacing.
2067         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
2068         (mmix_legitimate_address): Ditto.
2069         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
2070         should be loaded with a GETA insn.  Don't allocate needless extra
2071         char for nul termination and fix misleading comment.
2072         (mmix_print_operand_address): Handle constants if
2073         TARGET_BASE_ADDRESSES.
2074         (mmix_output_register_setting): Use base addressing if
2075         TARGET_BASE_ADDRESSES and the number of insns is 3.
2076         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
2077         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
2078         to use R as constraint, add LDA to match s.
2079         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
2080         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
2081         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
2082         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
2083         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
2084         order with other fixed registers.
2085         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
2086         other parameter/call-clobbered registers.
2087         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
2088         -mbase-addresses, -mno-base-addresses.
2089         (MMIX Options): Ditto.
2090
2091 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2092
2093         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
2094
2095 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
2096
2097         * config/rs6000/altivec.h: Change elem to _S_elem.
2098
2099 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
2100
2101         * config/netbsd.h (WCHAR_TYPE): Define.
2102         (WCHAR_TYPE_SIZE): Ditto.
2103         (WINT_TYPE): Ditto.
2104         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
2105         (WCHAR_UNSIGNED): Ditto.
2106         (WCHAR_TYPE_SIZE): Ditto.
2107         (WINT_TYPE): Ditto.
2108         * config/arm/netbsd.h: Likewise.
2109         * config/i386/netbsd-elf.h: Likewise.
2110         * config/i386/netbsd.h: Likewise.
2111         * config/m68k/netbsd-elf.h: Likewise.
2112         * config/m68k/netbsd.h: Likewise.
2113         * config/ns32k/netbsd.h: Likewise.
2114         * config/sparc/netbsd.h: Likewise.
2115         * config/vax/netbsd.: Likewise.
2116
2117 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
2118
2119         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
2120         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
2121         (TARGET_INITIALIZER): this.
2122         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
2123         (BITFIELD_NBYTES_LIMITED): Markup fix.
2124         * tree.h (default_ms_bitfield_layout_p): Declare.
2125         (record_layout_info): Added prev_field.
2126         * tree.c (default_ms_bitfield_layout_p): New fn.
2127         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
2128         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
2129         * stor-layout.c: Include target.h.
2130         (start_record_layout): Initialize prev_field.
2131         (place_field): Handle MS bit-field layout, and disregard
2132         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
2133         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
2134         * Makefile.in (stor-layout.o): Adjust dependencies.
2135
2136 2002-02-05  Jason Merrill  <jason@redhat.com>
2137
2138         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
2139
2140 2002-02-05  Andreas Jaeger  <aj@suse.de>
2141
2142         * crtstuff.c: Fix comments.
2143
2144 2002-02-05  Richard Henderson  <rth@redhat.com>
2145
2146         PR fortran/3393
2147         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
2148         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
2149
2150         PR fortran/3392
2151         * config/mips/mips.c (function_arg): Handle TImode.
2152         (function_arg_advance): Likewise.
2153
2154 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
2155
2156         * config/rs6000/altivec.h (vec_step_help): Rename to
2157         __vec_step_help.
2158
2159 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
2160
2161         * config/rs6000/altivec.h: Fix typos.
2162
2163 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
2164
2165         * config/arm/netbsd.h: Correct a comment.
2166
2167 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
2168
2169         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
2170         building void typed builtins.
2171
2172         * config/rs6000/altivec.h (vec_ld*): Fix typos.
2173         (vec_step): Implement for C++.
2174
2175 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2176
2177         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
2178
2179 2002-02-04  Richard Henderson  <rth@redhat.com>
2180
2181         * combine.c (nonzero_bits): Re-introduce special case for
2182         sp/fp/ap wrt REGNO_POINTER_ALIGN.
2183
2184 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
2185
2186         * doc/extend.texi: Warn about unsupported usage of altivec
2187         builtins.
2188
2189         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
2190         (altivec_predicate_*): New.
2191
2192         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
2193         Add C++ version of vec_*() functions.
2194
2195         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
2196         (bdesc_2arg): Remove altivec predicates.
2197         (altivec_expand_builtin): Handle predicates.
2198         (altivec_init_builtins): Handle predicates.
2199         (altivec_expand_predicate_builtin): New.
2200
2201 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2202
2203         * pa.c (DO_FRAME_NOTES): Move forward.
2204         (store_reg): Revise handling of frame notes.
2205         (load_reg): Likewise.
2206         (set_reg_plus_d): Likewise.
2207         (hppa_expand_prologue): Likewise.
2208         (hppa_expand_epilogue): Likewise.
2209
2210 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2211
2212         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
2213
2214 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
2215
2216         PR c/4475, c++/3780:
2217         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
2218         * c-common.h (SWITCH_TYPE): Define.
2219         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
2220         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
2221         Rename spareness variable to sparseness.
2222         (expand_end_case_type): Renamed from expand_end_case, use orig_type
2223         if non-NULL instead of TREE_TYPE (orig_index).
2224         * tree.h (expand_end_case_type): Renamed from expand_end_case.
2225         (expand_end_case): Define using expand_end_case_type.
2226         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
2227         to expand_end_case_type.
2228         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
2229
2230 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2231
2232         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
2233         (BIGGEST_ALIGNMENT): Change to 128.
2234
2235 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2236
2237         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
2238
2239 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2240
2241         * pa.md (call_internal_reg_64bit): Remove unused variable.
2242
2243 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
2244
2245         * config/arm/arm.h (machine_function): Add uses_anonymous_args
2246         field.
2247         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
2248         * config/arm/arm.c (current_function_anonymous_args): Delete,
2249         replace uses with cfun->machine->uses_anonymous_args.
2250         (arm_reorg): Do not reset uses_anonymous_args.
2251
2252         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
2253         any geenral register.
2254
2255 2001-02-04  Bernd Schmidt  <bernds@redhat.com>
2256
2257         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
2258         the entry block.
2259
2260 2002-02-04  Richard Henderson  <rth@redhat.com>
2261
2262         * combine.c (force_to_mode): Remove STACK_BIAS code.
2263         (nonzero_bits): Likewise.  Replace sp/fp special case with
2264         REGNO_POINTER_ALIGN.
2265
2266         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
2267         (HARD_FRAME_POINTER_REGNUM): New.
2268         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
2269         (FIXED_REGS, CALL_USED_REGS): Update.
2270         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
2271         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
2272         (HARD_REGNO_NREGS): Update for SFP.
2273         (STACK_POINTER_OFFSET): Include bias here ...
2274         (FIRST_PARM_OFFSET): ... not here.
2275         (STACK_BIAS): Remove.
2276         (INIT_EXPANDERS): New.
2277         (STARTING_FRAME_OFFSET): Do not include bias.
2278         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
2279         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
2280         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
2281         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
2282         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
2283         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
2284         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
2285         (MUST_SAVE_REGISTER): Likewise.
2286         (sparc_flat_function_prologue): Likewise.
2287         (sparc_flat_function_epilogue): Likewise.
2288         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
2289         (sparc_init_modes): SFP is GENERAL_REGS.
2290         (sparc_builtin_saveregs): SFP does not have bias applied.
2291
2292 2002-02-04  Richard Henderson  <rth@redhat.com>
2293
2294         * config/alpha/alpha.c (current_function_is_thunk): Don't check
2295         current_function_is_thunk.
2296         (alpha_sa_mask): Distinguish between current_function_is_thunk
2297         called from ASM_OUTPUT_MI_THUNK and not.
2298         (alpha_does_function_need_gp): Thunks always need gp.
2299         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
2300         (alpha_output_mi_thunk_osf): New.
2301         * config/alpha/alpha-protos.h: Update.
2302         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
2303
2304 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
2305
2306         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
2307         function types, not when they're taken away.
2308
2309 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
2310
2311         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
2312         CODE_LABEL and jump table when replacing a table jump with a
2313         simple jump.
2314
2315 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
2316
2317         * config/s390/s390-protos.h (legitimize_la_operand,
2318         s390_secondary_input_reload_class, s390_plus_operand,
2319         s390_expand_plus_operand): Add prototypes.
2320
2321         config/s390/s390.c (s390_secondary_input_reload_class,
2322         s390_plus_operand, s390_expand_plus_operand): New functions.
2323
2324         (struct s390_address): New member 'pointer'.
2325         (s390_decompose_address): Compute it.
2326         (legitimate_la_operand_p): Use it.
2327         (legitimize_la_operand): New function.
2328         (movti, movdi, movdf splitters): Call it.
2329
2330         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
2331         (PREDICATE_CODES): Add s390_plus_operand.
2332
2333         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
2334         (la_ccclobber): Allow GENERAL_REGS as output operand.
2335
2336         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
2337         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
2338         (*la_64, *la_31, reload_indi, reload_insi): ... these.
2339
2340 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
2341
2342         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
2343         register names for regular asm () construct.
2344
2345 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
2346
2347         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
2348         registers.
2349
2350 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
2351
2352         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
2353         pat for recog.
2354
2355 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
2356
2357         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
2358         constant pool to be identical by string address and index.
2359
2360 2002-02-04  Anthony Green  <green@redhat.com>
2361
2362         * output.h (SECTION_OVERRIDE): Define.
2363         * varasm.c (named_section): Obey SECTION_OVERRIDE.
2364
2365 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
2366
2367         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
2368         by existing arm*-*-netbsd* (a.out) target.
2369         (ns32k-*-netbsdelf*): Likewise.
2370         (sparc-*-netbsdelf*): Likewise.
2371         (vax-*-netbsdelf*): Likewise.
2372
2373 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
2374
2375         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
2376         headers and libobjc headers.
2377
2378 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
2379
2380         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
2381         (_mingw.h): Remove duplicate include.
2382
2383 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
2384
2385         * config.gcc: Set cpu_type to m68k for 68010, as well.
2386         (m68010-*-netbsdelf*): New...
2387         (m68k*-*-netbsdelf*): ...targets.
2388         * config/m68k/netbsd-elf.h: New file.
2389
2390 2002-02-02  Kazu Hirata  <kazu@hxi.com>
2391
2392         * config/h8300/h8300.c (hand_list): Move inside function_arg.
2393
2394 2002-02-02  Kazu Hirata  <kazu@hxi.com>
2395
2396         * config/h8300/h8300.c (h8_push_ops): Move inside
2397         h8300_init_once.
2398         (h8_pop_ops): Likewise.
2399         (h8_move_ops): Likewise.
2400
2401 2002-02-02  Kazu Hirata  <kazu@hxi.com>
2402
2403         * config/h8300/h8300.c (os_task): Make it static.
2404         (monitor): Likewise.
2405         (pragma_saveall): Likewise.
2406
2407 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
2408
2409         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
2410         constant is a valid sign-extension for Pmode.
2411
2412 2002-02-02  Kazu Hirata  <kazu@hxi.com>
2413
2414         * config/h8300/h8300.c: Fix formatting.
2415
2416 2002-02-02  Kazu Hirata  <kazu@hxi.com>
2417
2418         * config/h8300/h8300.md: Fix formatting.
2419
2420 2002-02-02  Kazu Hirata  <kazu@hxi.com>
2421
2422         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
2423         predicates of operands[1].  Split the patterns for each
2424         processor variant.
2425
2426 2002-02-02  Kazu Hirata  <kazu@hxi.com>
2427
2428         * config/h8300/h8300.md (xor patterns): Tighten the predicates
2429         of operands[1] to register_operand.
2430
2431 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2432
2433         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
2434         * cpphash.c (_cpp_init_hashtable): Similarly.
2435         * cppinit.c (cpp_create_reader): Default the signed_char flag.
2436         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
2437         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
2438         (cpp_handle_option): Handle the new options.
2439         * cpplex.c (cpp_interpret_charconst): Use new flag.
2440         * cpplib.h (struct cpp_options): New member signed_char.
2441         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
2442         (cpp_options): Handle -fsigned-char and -funsigned-char.
2443         (static_specs): Remove signed_char_spec.
2444         (do_spec1): Don't handle %c.
2445         * system.h: Poison SIGNED_CHAR_SPEC.
2446         * tradcif.y (yylex): Use flag_signed_char.
2447         * tradcpp.h (flag_signed_char): New.
2448         * tradcpp.c (flag_signed_char): New.
2449         (main): Handle new command-line options.
2450         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
2451 config:
2452         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
2453         * avr/avr.h: Remove old comments.
2454         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
2455         (CC1_SPEC): Pass -fsigned-char if -mic*.
2456         (SIGNED_CHAR_SPEC): Remove.
2457 doc:
2458         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
2459
2460 2002-02-01  Eric Christopher  <echristo@redhat.com>
2461
2462         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
2463         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
2464         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
2465         (ASM_OUTPUT_REG_POP): Ditto.
2466
2467 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2468
2469         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
2470         patch.
2471
2472 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
2473
2474         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
2475
2476 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
2477
2478         PR c/5304:
2479         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
2480         unconditionally.
2481
2482 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
2483
2484         * cfganal.c: Include tm_p.h.
2485         (keep_with_call_p): Fix the test that determines if a register holds
2486         the return value of a call.
2487
2488 2002-02-01  DJ Delorie  <dj@redhat.com>
2489
2490         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
2491         we are given conflicting registers, switch to the other one we
2492         had allocated for us.
2493         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
2494         as TImode so we know when the "other" register is available.
2495
2496 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
2497
2498         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
2499         sparc/sparc_bi.h.
2500
2501 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
2502
2503         * cfganal.c (keep_with_call_p): New function.
2504         (flow_call_edges_add): Prevent splitting a block between a call and
2505         a single-set instruction that should be kept in the same block.
2506
2507 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2508
2509         * doc/install.texi (avr): Update outdated URL.
2510
2511 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
2512
2513         * config/stormy16/stormy16.md (pushqi): New.
2514         (popqi): New.
2515         (pushhi): New.
2516         (pophi): New.
2517         (movhi): Remove stack operands.
2518         (movqi): Likewise.
2519         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
2520         nonimmediate_nonstack_operand.
2521         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
2522         New.
2523         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
2524         New.
2525
2526 2002-01-31  Jason Merrill  <jason@redhat.com>
2527
2528         * Makefile.in (c-parse.c): Handle .output file.
2529         * objc/Make-lang.in (objc-parse.c): Likewise.
2530
2531 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
2532
2533         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
2534         the -me[lb] option is given.  Don't output the default flag
2535         twice.
2536
2537 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
2538
2539         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
2540         the primary source file; this has not been done yet.
2541         * c-decl.c (c_expand_body): Reset input_filename from
2542         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
2543
2544 2002-01-31  Kazu Hirata  <kazu@hxi.com>
2545
2546         * rtlanal.c (subreg_regno_offset): Do not use
2547         SUBREG_REGNO_OFFSET.
2548         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
2549         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
2550
2551 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
2552
2553         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
2554         version rather than GNATS version in --version output.
2555
2556 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
2557
2558         * ifcvt.c (noce_process_if_block): Make a copy of the destination
2559         when copying back from a temporary.
2560
2561 2002-01-30  Richard Henderson  <rth@redhat.com>
2562
2563         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
2564         and new_dest are the same.
2565
2566 2002-01-30  Richard Henderson  <rth@redhat.com>
2567
2568         PR opt/5076
2569         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
2570         * rtl.c (note_insn_name): Update.
2571         * emit-rtl.c (remove_unnecessary_notes): Kill it.
2572         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
2573         to perform loop rotation.
2574         (expand_exit_loop_top_cond): New.
2575         * tree.h (expand_exit_loop_top_cond): Declare it.
2576         * c-semantics.c (genrtl_while_stmt): Use it.
2577         (genrtl_for_stmt): Likewise.
2578
2579 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
2580
2581         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
2582         arguments to 64-bit boundaries on 64-bit ABIs.
2583
2584 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
2585
2586         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
2587
2588 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
2589
2590         * c-decl.c (grokdeclarator): Handle type being a typedef for an
2591         invalid type.
2592
2593 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
2594
2595         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
2596         * config/sparc/sparc_bi.h: Remove file.
2597         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
2598
2599 2002-01-30  Richard Henderson  <rth@redhat.com>
2600
2601         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
2602
2603 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
2604
2605         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
2606
2607 2002-01-30  Jason Merrill  <jason@redhat.com>
2608
2609         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
2610         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
2611         (reg_save): Use DW_CFA_offset_extended_sf instead.
2612
2613         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
2614
2615 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
2616
2617         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
2618         in cselib_lookup.
2619
2620 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
2621
2622         * rs6000.md ("*call_value_local32"): Remove constraints.
2623         ("*call_value_local64"): Same.
2624         ("*call_value_indirect_nonlocal_aix32"): Same.
2625         ("*call_value_nonlocal_aix32"): Same.
2626         ("*call_value_indirect_nonlocal_aix64"): Same.
2627         ("*call_value_nonlocal_aix64"): Same.
2628         ("*call_value_nonlocal_sysv"): Same.
2629
2630 2002-01-29  Richard Henderson  <rth@redhat.com>
2631
2632         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
2633
2634 2002-01-29  Richard Henderson  <rth@redhat.com>
2635
2636         * expr.c (force_operand): Ignore flag_pic for detecting pic
2637         address loads.
2638         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
2639         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
2640         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
2641         instead of open-coded loop.
2642         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
2643         be fixed when in use.
2644
2645 2002-01-29  Richard Henderson  <rth@redhat.com>
2646
2647         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
2648         * sched-rgn.c (propagate_deps): Update them.
2649         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
2650         clobbers list when either gets too long.
2651
2652 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
2653
2654         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
2655         and INDEX_REGS the same as GENERAL_REGS.
2656         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
2657
2658 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2659
2660         * tree.c (build_nonstandard_integer_type): Correct prototype.
2661
2662 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
2663
2664         * config/s390/s390.md (movstrsico, movstrdix_64,
2665         movstrsix_31): Remove, replace by ...
2666         (movstrdi_short, movstrsi_short, movstrdi_long,
2667         movstrsi_long): ... these.  New.
2668         (movstrdi, movstrsi): Adapt.
2669
2670         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
2671         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
2672         Remove unnecessary CC clobber.
2673         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
2674         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
2675
2676         (divmoddi4): Don't partially initialize TImode register.
2677
2678 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
2679
2680         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
2681
2682 2002-01-29  Richard Henderson  <rth@redhat.com>
2683
2684         * flow.c (print_rtl_and_abort): Remove.
2685         (print_rtl_and_abort_fcn): Remove.
2686         (verify_local_live_at_start): Use dump_bb instead.
2687         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
2688         (verify_wide_reg_1): Return 2 on mode test failure.
2689
2690 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2691
2692         PR c/3325, c/3326, c/2511, c/3347
2693         * c-decl.c (enum_decl_context): Remove BITFIELD.
2694         (grokdeclarator): Take bitfield width as an input.
2695         Ensure bitfields are given the correct type.  Perform
2696         bitfield width validation with build_bitfield_integer_type
2697         rather than waiting for finish_struct.
2698         (grok_typename, grok_typename_in_parm_context, start_decl,
2699         push_parmdecl, grokfield, start_function): Update calls to
2700         grokdeclarator.
2701         (build_bitfield_integer_type): New function.
2702         (finish_struct): Move bitfield validation to grokdeclarator
2703         and build_bitfield_integer_type.
2704         * tree.c (build_nonstandard_integer_type): New function.
2705         * tree.h (build_nonstandard_integer_type): New prototype.
2706 objc:
2707         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
2708
2709 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
2710
2711         PR other/1502:
2712         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
2713         don't ignore unrecognized -W* options.
2714         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
2715         * cpplib.h (cpp_handle_option): Adjust prototype.
2716         * c-decl.c (c_decode_options): Pass 0 as last argument to
2717         cpp_handle_option.
2718
2719         PR c/2896:
2720         * gcc.c (cpp_unique_options): Split from cpp_options.
2721         (cpp_options): Source cpp_unique_options.
2722         (default_compilers): Use cpp_unique_options instead of cpp_options
2723         when used together with cc1_options.
2724         (static_specs): Add cpp_unique_options.
2725         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
2726         when used together with cc1_options.
2727
2728 2002-01-29  Kazu Hirata  <kazu@hxi.com>
2729
2730         * config/h8300/h8300-protos.h: Update the prototype of
2731         output_a_shift.
2732         * config/h8300/h8300.c (output_a_shift): Remove an unused
2733         argument 'insn'.  Remove redundant code.
2734         * config/h8300/h8300.md: Adust to the new prototype of
2735         output_a_shift.
2736
2737 2002-01-29  Kazu Hirata  <kazu@hxi.com>
2738
2739         * config/h8300/h8300-protos.h: Update the prototypes of
2740         emit_a_rotate and expand_a_rotate.
2741         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
2742         first argument to 'enum rtx_code'.
2743         (expand_a_rotate): Likewise.
2744
2745 2002-01-28  Kazu Hirata  <kazu@hxi.com>
2746
2747         * config/h8300/h8300-protos.h: Update the prototype of
2748         output_simode_bld.
2749         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
2750         'log2'.
2751         * config/h8300/h8300.md: Adjust to the new prototype.
2752
2753 2002-01-28  Kazu Hirata  <kazu@hxi.com>
2754
2755         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
2756         redundant code.
2757
2758 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2759
2760         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
2761         is a fixed register before returning pic_offset_table_rtx.
2762         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
2763         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
2764
2765 2002-01-28  Jason Merrill  <jason@redhat.com>
2766
2767         * dwarf2.h: Sync with src version.
2768
2769 2002-01-28  Paul Koning  <pkoning@equallogic.com>
2770
2771         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
2772         BT_FN_VOID_PTR_VAR.
2773         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
2774         * doc/extend.texi (__builtin_prefetch): Update documentation:
2775         first argument is now const void ptr.
2776
2777 2002-01-28  Kazu Hirata  <kazu@hxi.com>
2778
2779         * config/h8300/h8300-protos.h: Remove an unused prototype.
2780
2781 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
2782
2783         * toplev.c (lang_independent_init): Round up identifier size.
2784
2785 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
2786
2787         * config.gcc: Revert previous change.
2788
2789 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
2790
2791         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
2792
2793 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
2794
2795         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
2796         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
2797         other non-elf netbsd config frags.
2798         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
2799         collect2 will does that.
2800         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
2801         shared-lib frobbing will work.
2802
2803 2002-01-28  Kazu Hirata  <kazu@hxi.com>
2804
2805         * config/h8300/h8300.h: Fix formatting.
2806         * config/h8300/h8300.md: Likewise.
2807
2808 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
2809
2810         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
2811         the old, removed AAA_standards fix.
2812         * fixinc/fixincl.x: Rebuilt.
2813
2814 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
2815
2816         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
2817         atexit call in crtbegin, hooked in after call to frame_dummy;
2818         register EH before registering __fini__start.
2819
2820 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
2821
2822         * config/rs6000/altivec.h: Remove spurious semicolons.
2823
2824 2002-01-27  Kazu Hirata  <kazu@hxi.com>
2825
2826         * config/h8300/h8300.md: Replace dead bit extraction patterns
2827         with ones that work.
2828
2829 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2830
2831         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
2832         if not STRICT_ALIGNMENT.
2833         * rtl.h (MEM_ALIGN): Likewise.
2834
2835 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2836
2837         * doc/invoke.texi (-fdump-translation-unit): Revert this
2838         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2839
2840 2002-01-27  Kazu Hirata  <kazu@hxi.com>
2841
2842         * config/h8300/h8300.md (define_constants): New.
2843         (anonymous patterns) Use defined constants appropriately.
2844
2845 2002-01-27  Kazu Hirata  <kazu@hxi.com>
2846
2847         * config/h8300/h8300.c (function_arg): Remove redundant code.
2848
2849 2002-01-26  Richard Henderson  <rth@redhat.com>
2850
2851         * sched-deps.c (reg_pending_uses_head): New.
2852         (reg_pending_barrier): Rename from reg_pending_sets_all.
2853         (find_insn_list): Don't mark inline.
2854         (find_insn_mem_list): Remove.
2855         (add_dependence_list, add_dependence_list_and_free): New.
2856         (flush_pending_lists): Replace only_write param with separate
2857         for_read and for_write parameters.  Update all callers.  Use
2858         add_dependence_list_and_free.
2859         (sched_analyze_1): Do not add reg dependencies here; just set
2860         the pending bits.  Use add_dependence_list.
2861         (sched_analyze_2): Likewise.
2862         (sched_analyze_insn): Replace schedule_barrier_found with
2863         reg_pending_barrier.  Add all dependencies for pending reg
2864         uses, sets, and clobbers.
2865         (sched_analyze): Don't add reg dependencies for calls, just
2866         set pending bits.  Use regs_invalidated_by_call.  Treat
2867         sched_before_next_call as a normal list, not a fake insn.
2868         (init_deps): No funny init for sched_before_next_call.
2869         (free_deps): Free pending mems lists.  Don't zero reg_last.
2870         (init_deps_global): Init reg_pending_uses.
2871         (finish_deps_global): Free it.
2872         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
2873         (find_insn_mem_list): Remove.
2874         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
2875         (propagate_deps): Use them.  Zero temp mem lists.
2876
2877 2002-01-26  Richard Henderson  <rth@redhat.com>
2878
2879         * Makefile.in (CRTSTUFF_CFLAGS): New.
2880         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
2881         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
2882         crtstuff.c instead of alpha assembly version.
2883         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
2884         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
2885         not FORCE_{INIT,FINI}_SECTION_ALIGN.
2886         (__do_global_dtors_aux): Mark used.
2887         (frame_dummy, __do_global_ctors_aux): Mark used.
2888         (fini_dummy, init_dummy): Remove.
2889
2890         * config/alpha/crtbegin.asm: Remove file.
2891         * config/alpha/crtend.asm: Remove file.
2892         * config/alpha/t-crtbe: Remove file.
2893         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
2894         (LINK_EH_SPEC): New.
2895
2896         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
2897         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
2898         calling constructors.
2899         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
2900
2901         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
2902         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
2903         CRT_END_INIT_DUMMY hack.
2904         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
2905         FORCE_{INIT,FINI}_SECTION_ALIGN.
2906
2907         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
2908         FORCE_{INIT,FINI}_SECTION_ALIGN.
2909
2910         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
2911         invocation sequence.
2912         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
2913
2914         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
2915         (FORCE_CODE_SECTION_ALIGN): New.
2916
2917 2002-01-26  Richard Henderson  <rth@redhat.com>
2918
2919         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
2920
2921 2002-01-26  Richard Henderson  <rth@redhat.com>
2922
2923         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
2924         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
2925
2926 2002-01-26  Kazu Hirata  <kazu@hxi.com>
2927
2928         * config/h8300/h8300.md: Remove bit extraction patterns that
2929         cannot be triggered.
2930         Restrict each bit extraction pattern to a variant on which the
2931         pattern is tested.
2932
2933 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
2934
2935         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
2936
2937 2002-01-26  Kazu Hirata  <kazu@hxi.com>
2938
2939         * config/h8300/h8300.md: Remove bit test patterns that cannot
2940         be triggered.
2941         Restrict each bit test pattern to a variant on which the
2942         pattern is tested.
2943
2944 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2945
2946         * builtins.c (expand_builtin_strncat): Remove redundant check for
2947         INTEGER_CST.
2948
2949 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
2950
2951         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
2952         default setting.
2953         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
2954         existing setting.
2955
2956 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
2957
2958         * dbxout.c (dbxout_init): Use assemble_name rather than just
2959         stripping off the first character.
2960         (dbxout_source_file): Likewise.
2961
2962 2002-01-25  DJ Delorie  <dj@redhat.com>
2963
2964         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
2965         using rtx_equal_p, not by comparing pointers.
2966
2967 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
2968
2969         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
2970         for PIC_OFFSET_TABLE_REGNUM.
2971         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
2972
2973 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
2974
2975         * config.gcc (x86_64-*-freebsd*): New target.
2976         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
2977         value.
2978         (i[34567]86-*-freebsd*): Don't include svr4.h.
2979         * config/i386/freebsd64.h: New file.
2980
2981 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
2982
2983         * config/alpha/x-vms (version): Make static.
2984
2985         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
2986         in previous checkin.
2987
2988         * Makefile.in (install-headers-cp): New target.
2989         * config.gcc (alpha-dec-*vms*): Install headers with
2990         install-headers-cp
2991
2992 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
2993
2994         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
2995         avoid it's copies.
2996
2997 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2998
2999         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
3000         of compare_tree_int.
3001         (expand_builtin_strncat): Likewise.
3002         * c-decl.c (finish_struct): Use tree_low_cst.
3003         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
3004         * tree.c (compare_tree_int): Likewise.
3005
3006 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
3007
3008         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
3009         adjustments even if they are implemented by more than two insns.
3010
3011 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
3012
3013         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
3014         * df.h (struct ref): Kill B.
3015         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
3016
3017         * basic-block.h (PROP_EQUAL_NOTES): New flag.
3018         * flow.c (propagate_one_insn): Use it.
3019         (mark_used_regs): Handle NIL.
3020
3021 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
3022
3023         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
3024         to help folding.
3025
3026 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
3027
3028         * rs6000.md (prefetch): Make address V4SI mode so that the address
3029         is restricted to legitimate form for instruction.
3030
3031 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
3032
3033         * doc/install.texi (xtensa-*-elf): New target.
3034         (xtensa-*-linux*): New target.
3035         * doc/contrib.texi: Add myself.
3036
3037 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
3038
3039         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
3040         purpose register to hold an SImode (or smaller) value.
3041
3042 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
3043
3044         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
3045         registry only.
3046         * crtstuff.c: Likewise.
3047
3048 2002-01-25  Kazu Hirata  <kazu@hxi.com>
3049
3050         * config/h8300/h8300.md (negation patterns): Tighten
3051         predicates to register_operand.
3052
3053 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
3054
3055         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
3056         mode, not Pmode.
3057
3058         * builtins.c (expand_builtin_prefetch): Same.
3059
3060 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
3061
3062         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
3063         modes.
3064
3065 2002-01-24  Kazu Hirata  <kazu@hxi.com>
3066
3067         * config/h8300/h8300.c (print_operand): Remove support for
3068         operand character 'A'.
3069         * config/h8300/h8300.md (three anonymous patterns): Replace
3070         operand character 'A' with either 'T' or 'S'.
3071
3072 2002-01-24  Kazu Hirata  <kazu@hxi.com>
3073
3074         * config/h8300/h8300.c (print_operand): Remove support for
3075         operand character 'U'.
3076
3077 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
3078
3079         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
3080
3081 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
3082
3083         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
3084         values to be assigned to the stack pointer.
3085
3086 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
3087
3088         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
3089         to const_double needs to be done right for big-endian systems.
3090
3091 2002-01-24  Jason Merrill  <jason@redhat.com>
3092
3093         PR c++/2432
3094         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
3095         to can_throw_internal.
3096
3097 2002-01-23  Richard Henderson  <rth@redhat.com>
3098
3099         * fold-const.c (fold): Change UINT_MAX test to check vs precision
3100         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
3101
3102 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
3103
3104         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
3105         (symGOT2reg): Use them, then set as GOT value as unchanging.
3106         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
3107         as a temporary, if possible.
3108         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
3109         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
3110
3111 2002-01-23  Kazu Hirata  <kazu@hxi.com>
3112
3113         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
3114         accept to accept 0x80 as operands[2].
3115
3116 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
3117
3118         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
3119
3120 2002-01-23  Richard Henderson  <rth@redhat.com>
3121
3122         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
3123
3124 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
3125
3126         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
3127         (parmlist_or_identifiers_1): Verify that only a parmlist follows
3128         an attribute.
3129
3130 2002-01-23  Richard Henderson  <rth@redhat.com>
3131
3132         * expr.c (move_by_pieces_1): Extend size before negation.
3133
3134         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
3135         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
3136         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
3137         * config/m68k/t-m68kelf: Likewise.
3138
3139 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
3140
3141         * config/xtensa/elf.h: New file.
3142         * config/xtensa/lib1funcs.asm: New file.
3143         * config/xtensa/lib2funcs.S: New file.
3144         * config/xtensa/linux.h: New file.
3145         * config/xtensa/t-xtensa: New file.
3146         * config/xtensa/xtensa-config.h: New file.
3147         * config/xtensa/xtensa-protos.h: New file.
3148         * config/xtensa/xtensa.c: New file.
3149         * config/xtensa/xtensa.h: New file.
3150         * config/xtensa/xtensa.md: New file.
3151         * config.gcc (xtensa-*-elf*): New target.
3152         (xtensa-*-linux*): New target.
3153         * cse.c (canon_hash): Compare rtx pointers instead of register
3154         numbers.  This is required for the Xtensa port.
3155         * integrate.c (copy_insn_list): Handle case where the static
3156         chain is in memory and the memory address has to be copied to
3157         a register.
3158         * doc/invoke.texi (Option Summary): Add Xtensa options.
3159         (Xtensa Options): New node.
3160         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
3161
3162 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
3163
3164         * diagnostic.c (internal_error): Do ICE suppression only
3165         when ENABLE_CHECKING is not defined.
3166
3167         * c-typeck.c (require_complete_type): Return error_mark_node
3168         if type is error_mark_node.
3169
3170 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
3171
3172         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
3173         -Os and issue a warning.
3174
3175 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
3176
3177         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
3178         current (lack of) need for host configuration by hand.
3179
3180         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
3181         references.  Documentation of some target macros moved from
3182         hostconfig.texi to tm.texi.
3183
3184 2002-01-23  Will Cohen  <wcohen@redhat.com>
3185
3186         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
3187         defined.
3188
3189 2002-01-23  Kazu Hirata  <kazu@hxi.com>
3190
3191         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
3192         operand[3].
3193
3194 2002-01-23  Jason Merrill  <jason@redhat.com>
3195
3196         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
3197
3198         * function.c (assign_parms): Don't put args of inline functions
3199         into registers when not optimizing.
3200
3201 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
3202
3203         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
3204         (prologue_use): New pattern.
3205         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
3206         preference to gen_rtx_USE.
3207         (thumb_expand_prologue): Use gen_prologue_use in preference to
3208         gen_rtx_USE.
3209         (thumb_expand_epilogue): Use gen_prologue_use in preference to
3210         gen_rtx_USE.
3211
3212 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
3213
3214         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
3215
3216 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
3217
3218         PR c/3504
3219         * doc/extend.texi: Correct documentation of __alignof__.
3220
3221 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
3222
3223         * params.h: Rename arguments of DEFPARAM so that it will be
3224         recognized as a translation keyword.
3225
3226 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
3227
3228         * extend.texi: Document altivec functions.
3229         Fix N-bit adjectives in X86 builtin documentation.
3230
3231 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
3232
3233         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
3234         auto_inc_dec values.
3235
3236 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
3237
3238         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
3239         after backslash.
3240         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
3241
3242 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
3243
3244         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
3245
3246 2002-01-22  Richard Henderson  <rth@redhat.com>
3247
3248         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
3249         copy_insn not copy_rtx.
3250
3251 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
3252
3253         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
3254         "nonzero" as that might add "1" bits.  Ensure "constop" is
3255         properly sign extened.
3256         (force_to_mode): Tweak for sign extended constop.
3257
3258 2002-01-22  Richard Henderson  <rth@redhat.com>
3259
3260         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
3261         for_each_rtx instead of assuming we're already looking at the MEM.
3262         (split_small_symbolic_mem_operand): Likewise.
3263         * config/alpha/alpha.h (PREDICATE_CODES): Update.
3264         * config/alpha/alpha.md (small symbolic memory splitters): Update.
3265
3266 2002-01-22  Richard Henderson  <rth@redhat.com>
3267
3268         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
3269         sequence number for the literal.
3270         (divmoddi_internal_er): Likewise.
3271
3272 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3273
3274         PR java/4972
3275         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
3276         in LIBICONV variable.
3277         * configure: Regenerated.
3278
3279 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
3280
3281         * dependence.c (build_def_use): Remove array_idx.
3282
3283         * dwarfout.c (last_filename): Remove.
3284         (output_compile_unit_die): Remove last_filename.
3285
3286 2002-01-22  Roger Sayle  <roger@eyesopen.com>
3287             Richard Henderson  <rth@redhat.com>
3288
3289         PR opt/3640
3290         * fold-const.c (fold): Optimize unsigned comparisons against
3291         UINT_MAX (and similar unsigned constants).
3292
3293 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
3294
3295         * Makefile.in (loop.o): Depend on OPTABS_H.
3296         * loop.c (emit_prefetch_instructions): Check the prefetch operand
3297         against the predicate.
3298
3299         PR target/5379
3300         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
3301         for the address operand.
3302
3303 2002-01-22  Richard Henderson  <rth@redhat.com>
3304
3305         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
3306
3307 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3308
3309         PR other/5450
3310         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
3311         preprocessor flags.
3312
3313 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
3314
3315         * config.gcc (x86_64-*-netbsd*): New target.
3316         * config/i386/netbsd64.h: New file.
3317
3318 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
3319
3320         * regrename.c (kill_value): Fix typo.
3321
3322 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
3323
3324         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
3325
3326         * config/rs6000/rs6000.h: Same.
3327
3328         * function.c (instantiate_virtual_regs): Remove
3329         STARTING_FRAME_PHASE.
3330         (assign_stack_local_1): Same.
3331         Calculate frame phase.
3332
3333 2002-01-22  Nick Clifton  <nickc@redhat.com>
3334
3335         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
3336         variable declaration to outer scope in order to simplify
3337         future extensions.
3338         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
3339         arm_hard_regno_mode_ok.
3340         * config/arm/arm-protos.h: Add a prototype for
3341         arm_hard_regno_mode_ok.
3342         * config/arm/arm.c (soft_df_operand): Remove now redundant
3343         check for DImode values using IP_REGNUM.
3344         (nonimmediate_soft_df_operand): Remove now redundant check for
3345         DImode values using IP_REGNUM.
3346         (arm_hard_regno_mode_ok): New function. New check: make sure
3347         that DImode values are not stored in IP_REGNUM.
3348
3349         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
3350         note with a USE.
3351         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
3352
3353 2002-01-22  Jason Merrill  <jason@redhat.com>
3354
3355         * c-semantics.c (genrtl_compound_stmt): Only check nesting
3356         consistency if this COMPOUND_STMT is scoped.
3357
3358 2002-01-22  Kazu Hirata  <kazu@hxi.com>
3359
3360         * predict.c: Fix formatting.
3361         * print-tree.c: Likewise.
3362         * protoize.c: Likewise.
3363         * real.h: Likewise.
3364         * rtl.h: Likewise.
3365         * sbitmap.h: Likewise.
3366         * scan.c: Likewise.
3367         * sched-deps.c: Likewise.
3368         * sched-vis.c: Likewise.
3369         * sdbout.c: Likewise.
3370         * sibcall.c: Likewise.
3371         * ssa.c: Likewise.
3372         * ssa-ccp.c: Likewise.
3373         * ssa-dce.c: Likewise.
3374         * stmt.c: Likewise.
3375         * stor-layout.c: Likewise.
3376         * system.h: Likewise.
3377
3378 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3379
3380         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
3381         if fits in bounds of base type.
3382
3383         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
3384         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
3385         (add_bound_info, default): If can't find a context, make a
3386         SAVE_EXPR.
3387         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
3388
3389 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
3390
3391         * c-typeck.c (parser_build_binary_op): If result from
3392         build_binary_op is ERROR_MARK just return error_mark_node without
3393         further processing.
3394
3395 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
3396
3397         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
3398         Split a.out-specific bits into...
3399         * config/netbsd-aout.h: ...this.
3400         * config/netbsd-elf.h: New file.
3401         * config/alpha/netbsd-elf.h: Remove.
3402         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
3403         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
3404         (STARTFILE_SPEC): Remove redundant definition.
3405         (ENDFILE_SPEC): Likewise.
3406         (LINK_SPEC): Likewise.
3407         (CPP_SPEC): Likewise.
3408         (ASM_SPEC): Likewise.
3409         (LIB_SPEC): Likewise.
3410         (SWITCH_TAKES_ARG): Likewise.
3411         (TARGET_MEM_FUNCTIONS): Likewise.
3412         (CPP_PREDEFINES): Redefine.
3413         (ASM_FINAL_SPEC): Remove redefinition.
3414         (ASM_COMMENT_START): Redefine.
3415         (FUNCTION_PROFILER): Define.
3416         (TARGET_VERSION): Redefine.
3417         Comment and formatting cleanup.
3418         * config/i386/netbsd.h: Include <netbsd-aout.h>.
3419         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
3420         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
3421         big- or little-endian.
3422         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
3423         * config.gcc (*-*-netbsd*): Add definitions common to all
3424         NetBSD configs.
3425         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
3426         gnu_ld definitions.  Add netbsd-elf.h to and remove
3427         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
3428         tmake_file, and don't lose previous tmake_file contents.
3429         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
3430         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
3431         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
3432         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
3433         (mipsel-*-netbsd*): Rename this to...
3434         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
3435         mips/little.h to tm_file for mips*el-*.
3436         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
3437         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
3438         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
3439
3440 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3441
3442         * pa-protos.h (reg_before_reload_operand): New function prototype.
3443         * pa.c (reg_before_reload_operand): New function implementation.
3444         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
3445         contraints to "*m".
3446
3447 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3448
3449         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
3450
3451 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3452
3453         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
3454         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
3455         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
3456         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
3457         (ENDFILE_SPEC): Undefine.
3458         (STARTFILE_SPEC): Redefine for PA.
3459
3460 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3461
3462         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
3463
3464 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
3465
3466         * config.gcc: Add entries to supported PowerPC --with-cpu
3467         types.
3468
3469 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
3470
3471         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
3472         true for 64-bit mode only SSE registers in 32-bit mode.
3473
3474 2002-01-21  Kazu Hirata  <kazu@hxi.com>
3475
3476         * unwind-dw2.c: Fix formatting.
3477         * unwind-dw2-fde.c: Likewise.
3478         * unwind-dw2-fde.h: Likewise.
3479         * unwind-pe.h: Likewise.
3480         * varasm.c: Likewise.
3481         * varray.h: Likewise.
3482
3483 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
3484
3485         Remove workaround for register stack overwrite bug in mmix.
3486         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
3487         support for TARGET_REG_STACK_FILL_BUG.
3488         * config/mmix/mmix.h: Remove member has_call_without_parameters.
3489         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
3490         Delete.
3491         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
3492         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
3493         -mno-reg-stack-fill-bug-workaround.
3494         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
3495         machine member has_call_without_parameters.
3496         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
3497         -mreg-stack-fill-bug-workaround and
3498         -mno-reg-stack-fill-bug-workaround.
3499         (MMIX Options): Ditto.
3500
3501 2002-01-21  Kazu Hirata  <kazu@hxi.com>
3502
3503         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
3504         as appropriate.
3505         Remove redundant code.
3506
3507 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
3508
3509         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
3510         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3511         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
3512         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
3513         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
3514         out target macro definitions and non-target-specific comments
3515         mostly taken from old versions of the manual.
3516
3517 2002-01-20  Kazu Hirata  <kazu@hxi.com>
3518
3519         * config/h8300/h8300.h: Fix comment formatting.
3520         * config/ia64/aix.h: Likewise.
3521         * config/ia64/ia64-protos.h: Likewise.
3522         * config/ia64/ia64.c: Likewise.
3523         * config/ia64/ia64.h: Likewise.
3524         * config/ia64/ia64intrin.h: Likewise.
3525         * config/ia64/linux.h: Likewise.
3526         * config/ia64/unwind-aix.c: Likewise.
3527         * config/ia64/unwind-ia64.c: Likewise.
3528
3529 2002-01-20  Kazu Hirata  <kazu@hxi.com>
3530
3531         * config/h8300/h8300.c: Revise comments about shift code.
3532
3533 2002-01-20  Kazu Hirata  <kazu@hxi.com>
3534
3535         * config/h8300/h8300.c (function_arg): Update a comment.
3536
3537 2002-01-20  Kazu Hirata  <kazu@hxi.com>
3538
3539         * config/h8300/h8300.md: Update the comments at the beginning
3540         of the file.
3541
3542 2002-01-20  Kazu Hirata  <kazu@hxi.com>
3543
3544         * config/i370/i370.c: Fix comment formatting.
3545         * config/i370/i370.h: Likewise.
3546         * config/i370/i370.md: Likewise.
3547         * config/i370/linux.h: Likewise.
3548
3549 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3550
3551         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
3552
3553         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
3554         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
3555         in incomplete case.
3556
3557 2002-01-20  Graham Stott  <grahams@redhat.com>
3558
3559         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
3560
3561 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3562
3563         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
3564
3565 2002-01-19  Tom Rix  <trix@redhat.com>
3566
3567         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
3568
3569 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
3570
3571         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
3572
3573         * function.c (assign_stack_local_1): Adjust x_frame_offset with
3574         STARTING_FRAME_PHASE.
3575         (STARTING_FRAME_PHASE): New.
3576         (instantiate_virtual_regs): Check saneness of
3577         STARTING_FRAME_PHASE.
3578
3579         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
3580
3581 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
3582
3583         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
3584
3585 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3586
3587         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
3588         be used for bootstrapping GCC 3.0.
3589
3590 2002-01-18  Kazu Hirata  <kazu@hxi.com>
3591
3592         * config/h8300/h8300.md: Fix an insn length.
3593
3594 2002-01-18  Kazu Hirata  <kazu@hxi.com>
3595
3596         * bitmap.h: Fix comment formatting.
3597         * combine.c: Likewise.
3598         * cppfiles.c: Likewise.
3599         * c-pragma.h: Likewise.
3600         * c-typeck.c: Likewise.
3601         * df.c: Likewise.
3602         * dwarf2out.c: Likewise.
3603         * function.c: Likewise.
3604         * gcc.c: Likewise.
3605         * genattrtab.c: Likewise.
3606         * gthr-win32.h: Likewise.
3607         * haifa-sched.c: Likewise.
3608         * predict.c: Likewise.
3609         * rtlanal.c: Likewise.
3610         * rtl.h: Likewise.
3611         * unwind-dw2-fde.h: Likewise.
3612         * unwind-pe.h: Likewise.
3613         * vmsdbgout.c: Likewise.
3614
3615 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3616
3617         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
3618         if type_required and passed decl.
3619
3620 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
3621
3622         * config.gcc (cpu_type): Include altivec.h in powerpc
3623         extra_headers.
3624         Same for darwin.
3625
3626         * config/rs6000/altivec.h: New.
3627
3628 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
3629
3630         * doc/install.texi (*-ibm-aix*): Update assembler and exception
3631         handling information.
3632         * doc/trouble.texi (Interoperation): Add libstdc++ information
3633         for AIX.
3634         (Misunderstandings): Add template instantiation and static template
3635         member information for AIX.
3636
3637 2002-01-17  Jason Merrill  <jason@redhat.com>
3638
3639         * dbxout.c (dbxout_type): Support const and volatile.
3640
3641         * except.c (add_partial_entry): Remove backwards compatibility code.
3642         (end_protect_partials): Likewise.
3643
3644 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
3645
3646         * config/ia64/ia64.md (prologue_use): New.
3647         * config/ia64/ia64.c (ia64_expand_prologue): Use
3648         gen_prologue_use instead of gen_rtx_USE.
3649         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
3650         as CODE_FOR_pred_rel_mutex.
3651         (ia64_sched_reorder2): Likewise.
3652
3653 2002-01-16  Eric Christopher  <echristo@redhat.com>
3654
3655         * config/mips/r3900.h: Reformat.
3656         (SUBTARGET_CPP_SIZE_SPEC): Remove.
3657         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
3658         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
3659         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
3660         * config/mips/t-elf: Remove mips3 multilib.
3661
3662 2002-01-16  H.J. Lu <hjl@gnu.org>
3663
3664         * config/mips/linux.h: Include "mips/abi64.h".
3665
3666 2002-01-16  H.J. Lu <hjl@gnu.org>
3667
3668         * config/mips/t-linux: New.
3669
3670         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
3671
3672         * config/mips/linux.h: Don't include "gofast.h".
3673         (INIT_SUBTARGET_OPTABS): Removed.
3674
3675 2002-01-16  Kazu Hirata  <kazu@hxi.com>
3676
3677         * config/h8300/h8300-protos.h: Replace emit_a_shift with
3678         output_a_shift.
3679         * config/h8300/h8300.c: Likewise.
3680         * config/h8300/h8300.md: Likewise.
3681
3682 2002-01-16  Kazu Hirata  <kazu@hxi.com>
3683
3684         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
3685         spaces after an opcode name.
3686         (pushqi1_h8300hs): Likewise.
3687         (pushhi1_h8300hs): Likewise.
3688
3689 2002-01-16  Kazu Hirata  <kazu@hxi.com>
3690
3691         * doc/extend.texi: Replace "option" with "attribute"
3692         appropriately.
3693
3694 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
3695
3696         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
3697         (and:DI () (const_int -8)).
3698         (split_small_symbolic_mem_operand): Split
3699         (mem (and:DI () (const_int -8)).
3700
3701 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
3702
3703         PR target/5309:
3704         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
3705         same way as TYPE_IMUL.
3706         (ultrasparc_sched_reorder): Likewise.
3707         * config/sparc/sparc.md (type): Add comment to update
3708         ultrasparc_sched_reorder when making changes.
3709
3710 2002-01-16  Kazu Hirata  <kazu@hxi.com>
3711
3712         * doc/invoke.texi: Change the dump file name of block
3713         reordering pass from 28.bbro to 29.bbro.
3714         Mention -dk option.
3715
3716 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
3717
3718         * i386.md (minsf splitter): Fix pasto.
3719
3720 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
3721
3722         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
3723         to frame pointer initialisation instruction.
3724         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
3725         initialisation instruction.
3726         (soft_df_operand): Do not accept the IP register.
3727         (nonimmediate_soft_df_operand): Do not accept the IP register.
3728
3729 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
3730
3731         PR target/5357:
3732         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
3733         MASK_V8 being both set.
3734
3735 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
3736
3737         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
3738         insn for GOT register; add REG_MAYBE_DEAD notes instead.
3739         config/s390/s390.md (call, call_value): Add GOT register to
3740         CALL_INSN_FUNCTION_USAGE where needed.
3741         (call_exp, call_value_exp): New.
3742
3743 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
3744
3745         * config/arm/arm.c: General formatting tidy up.
3746
3747 2002-01-16  Graham Stott  <grahams@redhat.com>
3748
3749         * calls.c (try_to_integrate): Use "(size_t)" intermediate
3750         cast and when casting an integer literal to "rtx" pointer.
3751         (expand_call): Likewise.
3752         * flow.c (try_pre_increment): Likewise.
3753         (find_use_as_address): Likewise.
3754         * integrate.c (expand_iline_function): Likewise.
3755         * regmove.c (try_auto_increment): Likewise.
3756
3757 2002-01-16  Graham Stott  <grahams@redhat.com>
3758
3759         * sched-rgn.c (passed): Use sbitmap_free.
3760         (header): Likewise.
3761         (inner): Likewise.
3762         (in_queue): Likewise.
3763         (in_stack): Likewise.
3764
3765 2002-01-15  Eric Christopher  <echristo@redhat.com>
3766
3767         * flow.c (propagate_one_insn): Change to use fatal_insn.
3768
3769 2002-01-15  Kazu Hirata  <kazu@hxi.com>
3770
3771         * expmed.c (extract_fixed_bit_field): Remove unused code.
3772         * system.h: Poison SLOW_ZERO_EXTEND.
3773         * doc/tm.texi: Remove.
3774         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
3775         * config/arm/arm.h: Likewise.
3776         * config/avr/avr.h: Likewise.
3777         * config/clipper/clipper.h: Likewise.
3778         * config/convex/convex.h: Likewise.
3779         * config/d30v/d30v.h: Likewise.
3780         * config/dsp16xx/dsp16xx.h: Likewise.
3781         * config/elxsi/elxsi.h: Likewise.
3782         * config/fr30/fr30.h: Likewise.
3783         * config/h8300/h8300.h: Likewise.
3784         * config/i370/i370.h: Likewise.
3785         * config/i386/i386.h: Likewise.
3786         * config/m68k/m68k.h: Likewise.
3787         * config/mips/mips.h: Likewise.
3788         * config/ns32k/ns32k.h: Likewise.
3789         * config/pdp11/pdp11.h: Likewise.
3790         * config/pj/pj.h: Likewise.
3791         * config/s390/s390.h: Likewise.
3792         * config/sh/sh.h: Likewise.
3793         * config/stormy16/stormy16.h: Likewise.
3794         * config/v850/v850.h: Likewise.
3795         * config/vax/vax.h: Likewise.
3796         * config/we32k/we32k.h: Likewise.
3797
3798 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
3799
3800         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
3801         (altivec_lvsl): Change constraint to b.
3802         (altivec_lvsr): Same.
3803         (altivec_lvebx): Same.
3804         (altivec_lvehx): Same.
3805         (altivec_lvewx): Same.
3806         (altivec_lvxl): Same.
3807         (altivec_lvx): Same.
3808         (altivec_stvx): Add parallel.
3809         (altivec_stvxl): Same.
3810         (altivec_stvehx): Same.
3811         (altivec_stvebx): Same.
3812         (altivec_stvebx): Same.
3813
3814 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
3815
3816         * config.gcc: Change altivec.h to altivec-defs.h.
3817
3818         * config/rs6000/altivec.h: Delete.
3819
3820         * config/rs6000/altivec-defs.h: Add.
3821
3822 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3823
3824         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
3825         and UMOD modes.
3826
3827         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
3828         less than or equal to eight bytes.
3829
3830         * vax.md (andsi3): Remove constraints and change SET destination
3831         operand type to nonimmediate_operand.
3832         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
3833         when it is a CONST_INT.
3834
3835 2002-01-15  Jason Merrill  <jason@redhat.com>
3836
3837         * c-common.def (FILE_STMT): New code.
3838         * c-common.c (statement_code_p): It's a statement.
3839         * c-common.h (stmt_tree_s): Add x_last_filename.
3840         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
3841         (last_expr_filename): New macro.
3842         * c-semantics.c (begin_stmt_tree): Initialize it.
3843         (add_stmt): If the filename changed, also insert a
3844         FILE_STMT.
3845         (expand_stmt): Handle seeing one.
3846
3847 2002-01-15  Eric Christopher  <echristo@redhat.com>
3848
3849         * flow.c (propagate_one_insn): Add error message and print out
3850         insn for debugging.
3851
3852 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
3853
3854         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
3855         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
3856         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
3857         TRAMPOLINE_ALIGNMENT.
3858         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
3859         to be in bits.
3860         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
3861         PCC_BITFIELD_TYPE_MATTERS.
3862         * config/interix.h (STDC_VALUE): Remove.  Use
3863         STDC_0_IN_SYSTEM_HEADERS.
3864         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
3865         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
3866         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
3867
3868 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3869
3870         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
3871         not work on this platform currently.
3872
3873 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
3874
3875         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
3876         readonly_warning in _().
3877
3878 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
3879
3880         * gcc.c (delete_if_ordinary): Backout previous change.
3881
3882 2002-01-15  Kazu Hirata  <kazu@hxi.com>
3883
3884         * config/h8300/h8300.c (print_operand): Remove support for
3885         unused operand characters.
3886
3887         * read-rtl.c: Fix formatting.
3888         * real.c: Likewise.
3889         * recog.c: Likewise.
3890         * regclass.c: Likewise.
3891         * regmove.c: Likewise.
3892         * reg-stack.c: Likewise.
3893         * reload1.c: Likewise.
3894         * rtlanal.c: Likewise.
3895
3896 2002-01-15  Kazu Hirata  <kazu@hxi.com>
3897
3898         * config/i386/i386.c: Fix formatting.
3899
3900 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
3901
3902         * c-typeck.c (process_init_element): Don't save_expr
3903         COMPOUND_LITERAL_EXPR if just its initializer will be used.
3904
3905 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
3906
3907         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
3908         emit optional traceback table if optimize_size or TARGET_ELF.
3909         * config/rs6000/rs6000.md (prefetch): New.
3910
3911 2002-01-15  Andreas Jaeger  <aj@suse.de>
3912
3913         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
3914
3915 2002-01-15  Kazu Hirata  <kazu@hxi.com>
3916
3917         * mips-tfile.c: Fix formatting.
3918
3919 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
3920
3921         * unroll.c (final_reg_note_copy): Fix previous commit.
3922
3923 2002-01-14  Kazu Hirata  <kazu@hxi.com>
3924
3925         * config/h8300/h8300-protos.h: Remove the prototype for
3926         eq_operator.
3927         * config/h8300/h8300.c (eq_operator): Remove.
3928
3929 2002-01-14  Richard Henderson  <rth@redhat.com>
3930
3931         * config/i386/i386.md (prefetch): Tidy.
3932         (prefetch_3dnow): Fix locality operand.
3933
3934 2002-01-14  Richard Henderson  <rth@redhat.com>
3935
3936         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
3937         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
3938
3939 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
3940
3941         * reload1.c (reload_combine): Pass reg_sum replacement through
3942         copy_rtx in loop performing multiple changes.
3943
3944 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
3945
3946         * except.c (remove_unreachable_regions): New.
3947         (free_eh_status): Clear exception_handler_labels.
3948         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
3949         (find_exception_handler_labels): Don't add the same label more than
3950         once.
3951         (remove_exception_handler_label): Don't die if
3952         find_exception_handler_labels hasn't been called for the current
3953         function yet.
3954
3955 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
3956
3957         * toplev.c (rest_of_compilation): Rebuild jump labels after
3958         gcse.
3959
3960 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
3961
3962         * doc/extend.texi: Move documentation of X86 built-in functions
3963         here.
3964         * doc/invoke.texi: From here.
3965         * doc/sourcebuild.texi: Document location of documentation for
3966         machine built-in functions.
3967
3968 2002-01-13  Christopher Faylor  <cgf@redhat.com>
3969
3970         * cppfiles.c (TEST_THRESHOLD): New macro.
3971         (SHOULD_MMAP): Ditto.
3972         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
3973         be used.
3974
3975 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
3976
3977         * unroll.c (final_reg_note_copy): Properly handle
3978         REG_LABEL
3979         (unroll_loops): Fix LOOP_CONDITION heuristics.
3980
3981 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
3982
3983         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
3984         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
3985
3986 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
3987
3988         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
3989         threaded loop.
3990
3991 2002-01-14  Tom Rix  <trix@redhat.com>
3992
3993         * config/rs6000/rs6000.md: Fix typo with sradi.
3994
3995 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
3996
3997         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
3998         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
3999         (clrstrdi, clrstrsi): Adapt callers.
4000
4001         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
4002
4003         (movti splitter): Never use register 0 as base register.
4004
4005 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
4006
4007         * combine.c (simplify_shift_const): Always generate new rtx
4008         for shift expression instead of reusing given expression.
4009
4010 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4011
4012         * config/alpha/alpha.c (alpha_expand_mov): Don't call
4013         alpha_legitimize_address unless mode is Pmode.
4014
4015 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
4016
4017         * doc/md.texi (Modifiers): Document the '*' constraint for the
4018         user.
4019
4020         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
4021         * doc/extend.texi (Function Attributes): 'interrupt' is valid
4022         for xstormy16 too.
4023
4024 2002-01-13  Richard Henderson  <rth@redhat.com>
4025
4026         * reload.c (find_reloads): Use a hard reg destination as reload reg
4027         for an input reload of the source.
4028
4029 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4030
4031         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
4032         more generic.
4033
4034 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
4035
4036         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
4037         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
4038
4039         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
4040
4041 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4042
4043         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
4044
4045 2002-01-12  Tom Rix  <trix@redhat.com>
4046
4047         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
4048         TARGET_POWERPC64.
4049
4050 2002-01-12  Richard Henderson  <rth@redhat.com>
4051
4052         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
4053
4054         * doc/invoke.texi: Update Alpha options.
4055
4056         * doc/invoke.texi: Update i386 built-in function lists.
4057
4058 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
4059
4060         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
4061         referencing outside.
4062
4063 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4064
4065         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
4066         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
4067         offsets, and change line folding.
4068         * optabs.c (expand_binop): Remove warnings.
4069         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
4070
4071 2002-01-12  Graham Stott <grahams@redhat.com>
4072
4073         * attribs.c (handle_deprecated_attribute): constify WHAT.
4074         * diagnostic.c (warn_deprecated_use): Add braces, fixes
4075         dangling else warning and constify WHAT.
4076         * except.h (struct function, struct inline_remap): Move
4077         struct tag forward defs before all prototypes.
4078         (duplicate_eh_regions): Whitespace.
4079
4080 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
4081
4082         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
4083         MODE_BASE_REG_CLASS.
4084         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
4085
4086 2002-01-12  Richard Henderson  <rth@redhat.com>
4087
4088         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
4089         (ix86_expand_vector_move): New.
4090         (bdesc_2arg): Remove andps, andnps, orps, xorps.
4091         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
4092         Remove old prefetch builtins.  Special case the logicals removed above.
4093         (ix86_expand_builtin): Likewise.
4094         (safe_vector_operand): Use V4SFmode, not TImode.
4095         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
4096         (ix86_expand_timode_binop_builtin): New.
4097         * config/i386/i386-protos.h: Update.
4098         * config/i386/i386.h (enum ix86_builtins): Update.
4099         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
4100         Use ix86_expand_vector_move in vector move expanders.
4101         (movti_internal, movti_rex64): Add xorps alternative.
4102         (sse_clrv4sf): Rename and adjust from sse_clrti.
4103         (prefetch): Don't work so hard.
4104         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
4105         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
4106         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
4107
4108 2002-01-11  Richard Henderson  <rth@redhat.com>
4109
4110         * config/i386/mmintrin.h: New file.
4111         * config/i386/xmmintrin.h: New file.
4112         * config.gcc (i?86-*-*): Add extra_headers.
4113         * simplify-rtx.c (simplify_unary_operation): Handle saturating
4114         truncation codes.
4115         (simplify_binary_operation): Handle saturating arithmetic codes.
4116         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
4117         not the lowpart subreg.
4118         (ix86_expand_builtin): Return a TImode dummy register instead of 0
4119         on error.
4120         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
4121
4122 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
4123
4124         * conflict.c (conflict_graph_compute): Free regsets when finished.
4125         * ssa.c (compute_coalesced_reg_partition): Likewise.
4126
4127 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4128
4129         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
4130         every where we allocate a register.
4131
4132 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
4133
4134         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
4135         * lcm.c (compute_earliest, compute_farthest): Likewise.
4136
4137 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
4138
4139         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
4140
4141 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
4142
4143         * doc/rtl.texi (Insns): Fix 2 typos.
4144
4145 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
4146
4147         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
4148         options.  Use @table @gcctabopt for MMIX options.  Add index
4149         entries for MMIX options.  Start new paragraph with first
4150         heading of the machine-dependent options.
4151
4152 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4153
4154         PR other/5299
4155         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
4156         * combine.c (force_to_mode): Same.
4157         * reload1.c (clear_reload_reg_in_use): Same.
4158
4159 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
4160
4161         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
4162         and 'subtargets'.
4163
4164 2002-01-11  Andreas Jaeger  <aj@suse.de>,
4165             Brad Lucier <lucier@math.purdue.edu>
4166
4167         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
4168         mcpu.
4169
4170 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
4171
4172         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
4173         Protect with IN_LIBGCC.
4174         (LINK_EH_SPEC): Add required trailing space.
4175
4176 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
4177
4178         * c-tree.h: Move function declarations so that they are listed
4179         under the filename which contains them.
4180         (check_identifier, finish_decl_top_level,
4181         lookup_name_current_level_global, shadow_record_fields): Remove.
4182
4183 2002-01-11  Andreas Jaeger  <aj@suse.de>
4184
4185         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
4186         march.
4187
4188 2002-01-10  Richard Henderson  <rth@redhat.com>
4189
4190         * config/alpha/alpha.c (print_operand): Add 'J'.
4191         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
4192         new operand with the sequence number for the lituse.  When splitting
4193         the insns, use gen_movdi_er_high_g and generate a sequence number.
4194         (gen_movdi_er_high_g): Print the sequence number if non-zero.
4195
4196 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
4197
4198         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
4199         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
4200         stvxl.
4201         (altivec_expand_builtin): Same.
4202         (altivec_expand_stv_builtin): New.
4203
4204         * config/rs6000/rs6000.h (rs6000_builtins): Same.
4205
4206         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
4207         ("altivec_lvehx"): New.
4208         ("altivec_lvewx"): New.
4209         ("altivec_lvxl"): New.
4210         ("altivec_lvx"): New.
4211         ("altivec_stvx"): New.
4212         ("altivec_stvebx"): New.
4213         ("altivec_stvehx"): New.
4214         ("altivec_stvewx"): New.
4215         ("altivec_stvxl"): New.
4216
4217 2002-01-10  Richard Henderson  <rth@redhat.com>
4218
4219         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
4220         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
4221         care not to delete instructions twice.
4222
4223 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
4224
4225         * toplev.c: Don't declare environ (it's not used anywhere).
4226         * configure.in: Don't check for declaration of environ.
4227         * config/i386/xm-mingw32.h: Don't #define environ.
4228         * config.in, configure: Regenerate.
4229
4230 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
4231
4232         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
4233         * configure: Regenerate.
4234
4235         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
4236         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
4237         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
4238         alpha/xm-vms.h.
4239         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
4240         LIMITS_H_TEST here, not in m68k/x-next.
4241         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
4242         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
4243
4244         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
4245         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
4246         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
4247
4248         * config/i386/x-djgpp: Renamed i386/t-djgpp.
4249         * config/m88k/x-dolph: Renamed m88k/t-dolph.
4250         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
4251         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
4252         replacement of quadlib.asm with quadlib.c.
4253
4254         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
4255         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
4256         config/rs6000/xm-beos.h: Delete file.
4257
4258         * config.gcc: Update to match above changes.
4259
4260 2002-01-10  Kazu Hirata  <kazu@hxi.com>
4261
4262         * config/h8300/h8300.h: Fix comment typos.
4263         * config/h8300/h8300.md: Likewise.
4264         * config/h8300/lib1funcs.asm: Likewise.
4265
4266 2002-01-10  Dale Johannesen  <dalej@apple.com>
4267
4268         PR optimization/5269
4269         * unroll.c (precondition_loop_p): Make *increment be the correct
4270         sign when n_iterations known, to avoid confusing caller.
4271
4272 2002-01-10  Kazu Hirata  <kazu@hxi.com>
4273
4274         * doc/extend.texi (deprecated): Fix a typo.
4275
4276 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
4277
4278         * basic-block.h (update_br_prob_note): Declare.
4279         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
4280         (try_forward_edges): Care negative frequencies and update note.
4281         (outgoing_edges_match): Tweek conditional merging heuristics.
4282         (try_crossjump_to_edge): use update_br_prob_note.
4283         * cfglayout.c (fixup_reorder_chain): Likewise.
4284         * cfrtl.c (update_br_prob_note): New.
4285         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
4286
4287         * i386.c (ix86_decompose_address): Return -1 if address contains
4288         shift.
4289         (legitimate_address_p): Require ix86_decompose_address to return 1.
4290
4291         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
4292         (cprop_insn): Likewise.
4293
4294 2002-01-10  Kazu Hirata  <kazu@hxi.com>
4295
4296         * toplev.c: Fix formatting.
4297         * tree.c: Likewise.
4298         * tree-dump.c: Likewise.
4299         * unroll.c: Likewise.
4300         * unwind-dw2.c: Likewise.
4301         * unwind-dw2-fde.c: Likewise.
4302         * unwind-dw2-fde-glibc.c: Likewise.
4303         * unwind-sjlj.c: Likewise.
4304
4305 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
4306
4307         * doc/invoke.texi: Document PDP-11 options.
4308
4309 2002-01-10  Kazu Hirata  <kazu@hxi.com>
4310
4311         * config/h8300/h8300.h: Fix formatting.
4312
4313 2002-01-10  Ira Ruben   <ira@apple.com>
4314
4315         Add __attribute__ ((deprecated)).
4316         * extend.texi: Document __attribute__ ((deprecated)).
4317         * invoke.texi: Document -Wno-deprecated-declarations.
4318         * testsuite/g++.dg/other/deprecated.C: New C++ test.
4319         * testsuite/gcc.dg/deprecated.c: New C test.
4320         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
4321         (c_common_attribute_table): Add "deprecated" entry.
4322         (handle_deprecated_attribute): New function.
4323         * c-decl.c (deprecated_states): New enum.
4324         deprecated_state: State of "deprecated" handling.
4325         (start_decl): Set deprecated_state based on attributes.
4326         (grokdeclarator): Test for deprecated uses, propagate attribute.
4327         * c-typeck.c (build_component_ref): Test for deprecated fields.
4328         (build_external_ref): Test for deprecated primaries.
4329         * diagnostic.c (warn_deprecated_use) New function to issue
4330         warnings about __attribute__ ((depricated)) references.
4331         * flags.h (warn_deprecated_decl): Extern declared for
4332         -W[no-]deprecated-declarations option.
4333         * print-tree.c (print_node): Show deprecated flag status.
4334         * toplev.c (warn_deprecated_decl): Defined.
4335         (W_options): Added "deprecated-declaration".
4336         * toplev.h (warn_deprecated_use): Extern declared.
4337         * tree.h (struct tree_common): Define deprecated_flag.
4338         (TREE_DEPRECATED): New macro to access flag.
4339         * cp/call.c (build_call): Test for deprecated calls.
4340         * cp/class.c (add_implicitly_declared_members): Set global
4341         flag to tell grokdeclarator to not issue deprecated warnings.
4342         * cp/cp-tree.h: Add extern for adding_implicit_members.
4343         * cp/decl.c (deprecated_states): New enum.
4344         (start_decl): Set deprecated_state based on attributes.
4345         (grokdeclarator): Test for deprecated uses, propagate attribute.
4346         * cp/lex.c (do_identifier): Test for deprecated primaries.
4347         * cp/typeck.c (build_component_ref): Test for deprecated fields.
4348
4349 2002-01-10  Ira Ruben   <ira@apple.com>
4350
4351         Fix to assign attributes to inline member functions.
4352         * cp/decl.c (start_method): Handle attrlist.
4353
4354 2002-01-10  Kazu Hirata  <kazu@hxi.com>
4355
4356         * combine.c (expand_field_assignment): Use subreg_lsb().
4357
4358 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
4359
4360         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
4361         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
4362         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
4363         Recurse for any operand of AND as long as constant is non-zero.
4364
4365 2002-01-10  Kazu Hirata  <kazu@hxi.com>
4366
4367         * config/h8300/h8300.md: Remove constraints from expanders.
4368
4369 2002-01-10  Kazu Hirata  <kazu@hxi.com>
4370
4371         * varasm.c: Fix formatting.
4372         * varray.c: Likewise.
4373         * vmsdbgout.c: Likewise.
4374         * xcoffout.c: Likewise.
4375
4376 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
4377
4378         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
4379         update edge probabilities to match.
4380
4381 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
4382
4383         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
4384         dependencies.
4385         * doc/languages.texi, doc/sourcebuild.texi: New files.
4386         * doc/configfiles.texi: Make a subsubsection.  Update.
4387         * doc/configterms.texi: Add @node.  Remove warning that this isn't
4388         instructions for building GCC.
4389         * doc/makefile.texi: Make a subsection.
4390         * doc/gccint.texi: Update.
4391
4392 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
4393
4394         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
4395
4396 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
4397
4398         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
4399
4400 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
4401
4402         * optabs.c (expand_fix): Look for wider integer modes first.
4403
4404         * i386.md (mov?f): Avoid the fake const double trick for medium
4405         memory model.
4406         (min?f*/max?f*): Prohibit memory operands for i387 variant.
4407         (fop_df_4): Disable for SSE compilation.
4408
4409 2002-01-10  Graham Stott  <grahams@redhat.com>
4410
4411         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
4412         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
4413
4414 2002-01-10  Richard Henderson  <rth@redhat.com>
4415
4416         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
4417
4418 2002-01-10  Richard Henderson  <rth@redhat.com>
4419
4420         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
4421         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
4422
4423 2002-01-10  Kazu Hirata  <kazu@hxi.com>
4424
4425         * combine.c (can_combine_p): Fix a comment typo.
4426
4427 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
4428
4429         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
4430         empty list correctly.  Change loop index $t to $f for
4431         consistency with rest of Makefile.
4432
4433 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
4434
4435         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
4436         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
4437
4438         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
4439         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
4440         (altivec_init_builtins): Same.
4441         (altivec_expand_unop_builtin): Return NULL_RTX on error.
4442         (altivec_expand_binop_builtin): Same.
4443         (altivec_expand_ternop_builtin): Same.
4444         (bdesc_dst): New.
4445
4446         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
4447         ("altivec_vctuxs"): Fix typo.
4448         ("altivec_vnmsubfp"): Same.
4449         ("altivec_dssall"): New.
4450         ("altivec_mfvscr"): New.
4451         ("altivec_dss"): New.
4452         ("altivec_lvsl"): New.
4453         ("altivec_lvsr"): New.
4454         ("altivec_dstt"): New.
4455         ("altivec_dstst"): New.
4456         ("altivec_dststt"): New.
4457         ("altivec_dst"): New.
4458
4459         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
4460         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
4461
4462 2002-01-09  Richard Henderson  <rth@redhat.com>
4463
4464         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
4465
4466 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
4467
4468         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
4469         function.
4470         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
4471         prototype.
4472         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
4473
4474 2002-01-09  Kazu Hirata  <kazu@hxi.com>
4475
4476         * read-rtl.c: Fix formatting.
4477         * real.c: Likewise.
4478         * regclass.c: Likewise.
4479         * regrename.c: Likewise.
4480         * reg-stack.c: Likewise.
4481         * reload1.c: Likewise.
4482         * reload.c: Likewise.
4483         * rtl.c: Likewise.
4484
4485 2002-01-09  Kazu Hirata  <kazu@hxi.com>
4486
4487         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
4488         to extract items in the expr_list chain.
4489
4490 2002-01-09  Richard Henderson  <rth@redhat.com>
4491
4492         * config/vax/vax.c (vax_rtx_cost): Never abort.
4493
4494         * config/vax/vax.h (REAL_ARITHMETIC): Define.
4495
4496 2002-01-09  Jan Hubicka  <jh@suse.cz>
4497
4498         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
4499
4500 2002-01-09  Richard Henderson  <rth@redhat.com>
4501
4502         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
4503         Unify code from various alternatives.
4504
4505 2002-01-09  Richard Henderson  <rth@redhat.com>
4506
4507         * regrename.c (copy_value): Ignore the copy if the source register
4508         is present in the value chain with a narrower mode.
4509
4510 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
4511
4512         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
4513         for the c4x target. Also improve layout.
4514
4515 2002-01-09  Richard Henderson  <rth@redhat.com>
4516
4517         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
4518         * config/m32r/m32r.md (and ior xor splitters): Swap operands
4519         to match insn patterns.
4520
4521 2002-01-09  Richard Henderson  <rth@redhat.com>
4522
4523         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
4524         (copyprop_hardreg_forward_1): Likewise.
4525
4526 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4527
4528         * pa.md (decrement_and_branch_until_zero): Change predicate for
4529         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
4530
4531 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
4532
4533         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
4534         gets undefined. For Darwin.
4535
4536 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4537
4538         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
4539
4540 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
4541
4542         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
4543
4544 2002-01-08  Richard Henderson  <rth@redhat.com>
4545
4546         * regrename.c (copy_value): Ignore overlapping copies.
4547
4548 2002-01-08  Richard Henderson  <rth@redhat.com>
4549
4550         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
4551         as needed to avoid shared structure.
4552
4553 2002-01-08  Kazu Hirata  <kazu@hxi.com>
4554
4555         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
4556         H8/300H and H8/S.
4557
4558 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
4559
4560         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
4561         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
4562         documentation of obsolete macros.
4563         * system.h: Poison these macros.
4564         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
4565         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
4566         config/c4x/c4x.h, config/clipper/clipper.h,
4567         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
4568         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
4569         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
4570         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
4571         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
4572         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
4573         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4574         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
4575         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
4576         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4577         config/sparc/sparc.h, config/stormy16/stormy16.h,
4578         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
4579         definitions and commented out definitions of obsolete macros.
4580         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
4581         of MAX_INT_TYPE_SIZE.
4582
4583 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
4584
4585         * config/s390/s390.c (s390_preferred_reload_class): Never
4586         return ADDR_REGS if it isn't a subset of the given class.
4587         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
4588         FP_REGS, but all superclasses as well.
4589
4590         * config/s390/s390.c (s390_function_profiler): Fix thinko.
4591
4592         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
4593         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
4594         must not be a const_int.
4595
4596 2002-01-08  Richard Henderson  <rth@redhat.com>
4597
4598         * Makefile.in (toplev.o): Depend on options.h.
4599         (gcc.o): Depend on specs.h.
4600
4601 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
4602
4603         * expr.c (store_expr): Convert VOIDmode constants back to target's
4604         mode.
4605
4606 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4607
4608         * doc/invoke.texi: Markup gcc as @command.  Refer to
4609         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
4610         of http://gcc.gnu.org/thanks.html.
4611
4612 2002-01-08  Dale Johannesen  <dalej@apple.com>
4613
4614         * config/rs6000/rs6000.md: Add missing int register
4615         target case to movdf_low.
4616
4617 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
4618
4619         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
4620         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
4621         (cppinit.o): Depend on except.h.
4622         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
4623         s-specs): New rules.
4624
4625         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
4626         Don't create specs.h/options.h/gencheck.h here.  Remove
4627         unnecessary variable settings from last argument of AC_OUTPUT.
4628         * config.in, configure: Regenerate.
4629         * intl.c: Hardcode package name as "gcc".
4630
4631         * cppinit.c: Include except.h.
4632         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
4633         appropriate.
4634         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
4635         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
4636         (!)USING_SJLJ_EXCEPTIONS.
4637         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
4638
4639 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
4640
4641         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
4642         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
4643         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
4644         documentation of obsolete macros.
4645         * system.h: Poison these macros.
4646         * config/d30v/d30v.h, config/ns32k/encore.h,
4647         config/stormy16/stormy16.h: Remove definitions and commented out
4648         definitions of obsolete macros.
4649
4650 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
4651
4652         * objc/objc-act.c (handle_class_ref): Mark the declaration of
4653         %sobjc_class_ref_%s as used - to prevent unwanted compiler
4654         warnings.
4655
4656 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
4657
4658         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
4659         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
4660         to insn adjusting stack/frame pointer.
4661         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
4662         accept operands that cause the insn to be non-splittable.
4663
4664 2002-01-08  Graham Stott  <grahams@redhat.com>
4665
4666         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
4667         (C_TYPE_FIELDS_VOLATILE): Likewise.
4668         (C_TYPE_BEING_DEFINED): Likewise.
4669         (C_IS_RESERVED_WORD): Likewise.
4670         (C_TYPE_VARIABLE_SIZE): Likewise.
4671         (C_DECL_VARIABLE_SIZE): Likewise.
4672         (C_MISSING_PROTOTYPE_WARNED): Likewise.
4673         (C_SET_EXP_ORIGINAL_CODE): Likewise.
4674         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
4675         parenthesis.
4676         (C_DECL_ANTICIPATED): Likewise.
4677         (c_build_type_variant): Add parenthesis.
4678
4679 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
4680
4681         * gcc.c (option_map): Remove --version.
4682         (process_command): Handle -fversion following the GNU Coding
4683         Standards.  Partially addresses PR other/704.
4684
4685 2002-01-08  Graham Stott  <grahams@redhat.com>
4686
4687         * combine.c (combine_instructions): Fix typo.
4688
4689 2002-01-08  Graham Stott  <grahams@redhat.com>
4690
4691         * debug.h: Use "tree" and "rtx" throughout.
4692
4693         * debug.c: Likewise.
4694
4695 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
4696
4697         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
4698         constant pool, use the pool's version of the symbol instead.
4699
4700 2002-01-07  Richard Henderson  <rth@redhat.com>
4701
4702         * regrename.c (find_oldest_value_reg): Ignore the value chain if
4703         the original register was copied in a mode with a fewer number of
4704         hard registers than the desired mode.
4705         (copyprop_hardreg_forward_1): Likewise.
4706         (debug_value_data): Fix loop test.
4707         * toplev.c (parse_options_and_default_flags): Reenable
4708         -fcprop-registers at -O1.
4709
4710 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
4711
4712         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
4713         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
4714
4715         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
4716         predicates.
4717
4718         * config/rs6000/rs6000.md: Add altivec predicate patterns.
4719
4720 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4721
4722         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
4723         (pa_output_function_prologue): Output local label at the beginning of
4724         the prologue when profiling.
4725         (hppa_profile_hook): Use the local label rather than the function label.
4726         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
4727
4728 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
4729
4730         * config/rs6000/rs6000.c (print_operand): Remove extra space.
4731         (altivec_expand_unop_builtin): Fix thinko.
4732         (altivec_expand_binop_builtin): Same.
4733         (altivec_expand_ternop_builtin): Same.
4734         (altivec_expand_builtin): Same.
4735
4736 2002-01-07  Richard Henderson  <rth@redhat.com>
4737
4738         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
4739
4740 2002-01-07  Jason Merrill  <jason@redhat.com>
4741
4742         * unwind-dw2.c (execute_cfa_program): Use < again.
4743
4744 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
4745
4746         * predict.c (combine_predictions_for_insn): Avoid division by zero.
4747
4748 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
4749
4750         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
4751         Don't allow -1 - x -> ~x simplifications in the first pass.
4752
4753 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
4754
4755         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
4756         arguments.
4757         (altivec_expand_binop_builtin): Same.
4758         (altivec_expand_unop_builtin): Same.
4759         (print_operand): Fix typo.
4760         (bdesc_1arg): Add vupk* variants.
4761
4762         * rs6000.h (rs6000_builtins): Add vupk* enums.
4763
4764         * rs6000.md: Add altivec_vupk* variants.
4765
4766 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
4767
4768         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
4769         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
4770         and last update dates.
4771
4772 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
4773
4774         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
4775
4776 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4777
4778         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
4779         * config/avr/avr.h (CPP_SPEC): Likewise.
4780         (LINK_SPEC): Likewise.
4781         (CRT_BINUTILS_SPECS): Likewise.
4782         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4783         * doc/invoke.texi (AVR Options): Document them.
4784
4785 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
4786
4787         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
4788         LABEL_NUSES.
4789
4790 2002-01-07  Graham Stott  <grahams@redhat.com>
4791
4792         * config/i386/i386.h: Update copyright date.
4793         (HALF_PIC_PTR): Add parenthesis.
4794         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
4795         (CONSTANT_ALIGNMENT): Add parenthesis.
4796         (DATA_ALIGNMENT): Likewise.
4797         (LOCAL_ALIGNMENT): Likewise.
4798         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
4799         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
4800         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
4801         (HARD_REGNO_NREGS): Add paranethesis.
4802         (VALID_SSE_REG_MODE): Whitespace.
4803         (VALID_MMX_REG_MODE): Whitespace.
4804         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
4805         (ix86_hard_regno_mode_ok): Add parenthesis.
4806         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
4807         (RETURN_IN_MEMORY): Whitespace.
4808         (N_REG_CLASSES): Add parenthesis.
4809         (INTEGER_CLASS_P): Add parenthesis and wrap.
4810         (FLOAT_CLASS_P): Likewise.
4811         (SSE_CLASS_P): Likewise.
4812         (MMX_CLASS_P): Likewise.
4813         (MAYBE_INTEGER_CLASS_P): Likewise.
4814         (MAYBE_FLOAT_CLASS_P): Likewise.
4815         (MAYBE_SSE_CLASS_P): Likewise.
4816         (MAYBE_MMX_CLASS_P): Likewise.
4817         (Q_CLASS_P): Likewise.
4818         (GENERAL_REGNO_P): Uppercase macro parameter.
4819         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
4820         (FP_REGNO_P): Likewise.
4821         (ANY_FP_REGNO_P): Uppercase macro parameter.
4822         (SSE_REGNO_P): Likewise.
4823         (SSE_REGNO): Likewise.
4824         (SSE_REG_P): Likewise.
4825         (SSE_FLOAT_MODE_P): Likewise.
4826         (MMX_REGNO_P): Likewise.
4827         (MMX_REG_P):Likewise.
4828         (STACK_REG_P): Likewise.
4829         (NON_STACK_REG_P): Likewise.
4830         (STACK_TOP_P): Likewise.
4831         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
4832         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
4833         (SECONDARY_MEMORY_NEEDED): Likewise.
4834         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
4835         (MD_ASM_CLOBBERS): Whitespace and wrap.
4836         (MUST_PASS_IN_STACK): Whitespace and wrap.
4837         (RETURN_POPS_ARGS): Add parenthesis.
4838         (INIT_CUMULATIVE_ARGS): Likewise.
4839         (FUNCTION_ARG): Likewise.
4840         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
4841         (SETUP_INCOMING_VARARGS): Likewise.
4842         (BUILD_VA_LIST_TYPE):  Add parenthesis.
4843         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
4844         parenthsis.
4845         (EXPAND_BUILTIN_VA_ARG): Likewise.
4846         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
4847         (INITIALIZE_TRAMPOLINE): Add parenthesis.
4848         (INITIAL_ELIMINATION_OFFSET): Likewise.
4849         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
4850         (REGNO_OK_FOR_BASE_P): Likewise.
4851         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
4852         (REGNO_OK_FOR_DIREG_P): Likewise.
4853         (REG_OK_FOR_INDEX_P): Whitespace.
4854         (REG_OK_FOR_BASE_P): Whitespace.
4855         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
4856         parenthesis.
4857         (FIND_BASE_TERM): Fix typo.
4858         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
4859         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
4860         (SYMBOLIC_CONST; Whitespace.
4861         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
4862         (ENCODE_SECTION_INFO): Whitespace.
4863         (FINALIZE_PIC): Remove do { ... } while (0).
4864         (PROMOTE_MODE): Wrap in do { ... } while (0).
4865         (CONST_COSTS): Whitespace.
4866         (RTX_COSTS): Add paramethesis, whitespace and wrap.
4867         (REGISTER_MOVE_COST): Add parenthesis.
4868         (MEMORY_MOVE_COST): Likewise.
4869         (EXTRA_CC_MODES): Whitespace.
4870         (SELECT_CC_MODE): Add parenthesis and whitespace.
4871         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
4872         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
4873         (ASM_OUTPUT_LABEL): Add paramethesis.
4874         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
4875         (ASM_OUTPUT_REG_POP): Likewise.
4876         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
4877         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4878
4879         * config/i386/i386.c: Update copyright.
4880         (CHECK_STACK_LIMIT): Add parenthesis.
4881         (AT_BP): Uppercase macro parameter.
4882         (x86_64_int_parameter_registers): Constify.
4883         (x86_64_int_return_registers): Likewise.
4884         (ix86_compare_op0): Use rtx.
4885         (construct_container): Constify INTREG parameter.
4886         (function_arg): Use rtx.
4887
4888         * diagnostic.h: Update copyright date.
4889         (output_buffer_state): Add parenthesis.
4890         (output_buffer_format_args): Likewise.
4891
4892         * combine.c (combine_instructions): Replace XEXP (links, 0)
4893         with link.
4894
4895 2002-01-06  H.J. Lu <hjl@gnu.org>
4896
4897         * cfgcleanup.c (thread_jump): Fix 2 typos.
4898
4899 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
4900
4901         * config.gcc: Add support for --enable-altivec.
4902
4903 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4904
4905         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
4906
4907 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
4908
4909         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
4910         __objc_class_name_*.
4911
4912 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4913
4914         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
4915
4916 2002-01-06  Richard Henderson  <rth@redhat.com>
4917
4918         * reorg.c (emit_delay_sequence): Remove death notes, not merely
4919         nop them out.  Increment label reference count for REG_LABEL.
4920         (fill_slots_from_thread): Frob label reference count around
4921         delete_related_insns.
4922
4923 2002-01-05  Richard Henderson  <rth@redhat.com>
4924
4925         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
4926         jump threading.
4927
4928 2002-01-05  Richard Henderson  <rth@redhat.com>
4929
4930         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
4931         * integrate.c (output_inline_function): Likewise.
4932         * toplev.c (rest_of_compilation): Do it here instead.  Move call
4933         to remove_unnecessary_notes after emitting abstract instance.
4934         Force an emitted nested function to have its parent emited as well.
4935         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
4936         for null.
4937         (rtl_for_decl_location): Do not look at reload data structures
4938         before reload has run.
4939
4940 2002-01-05  Kazu Hirata  <kazu@hxi.com>
4941
4942         * cse.c: Fix formatting.
4943         * dwarf2asm.c: Likewise.
4944         * dwarf2out.c: Likewise.
4945         * explow.c: Likewise.
4946         * expmed.c: Likewise.
4947         * function.c: Likewise.
4948         * gcov.c: Likewise.
4949         * gencheck.c: Likewise.
4950         * genrecog.c: Likewise.
4951         * ggc-common.c: Likewise.
4952         * ggc-page.c: Likewise.
4953         * global.c: Likewise.
4954
4955 2002-01-05  Kazu Hirata  <kazu@hxi.com>
4956
4957         * combine.c: Fix formatting.
4958
4959 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
4960
4961         PR middle-end/1557
4962         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
4963
4964 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
4965
4966         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
4967         as 1 for __powerpc64__ as well.
4968
4969         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
4970
4971         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
4972         return it.
4973
4974 2002-01-05  Daniel Berlin  <dan@dberlin.org>
4975
4976         * lcm.c: Revert change, due to performance regression it causes on
4977         SPEC because it's slightly more conservative (sigh, I hate
4978         edge-based LCM).
4979
4980 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
4981
4982         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
4983
4984 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4985
4986         * doc/cppinternals.texi: Update.
4987
4988 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
4989
4990         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
4991         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
4992         negatives.
4993         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
4994         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
4995         kludge for pre-october-14th mmix versions to handle new-found bug
4996         with PUSHJ/PUSHGO and the register stack.
4997         * config/mmix/mmix.h (struct machine_function): Rename member
4998         has_call_value_without_parameters to has_call_without_parameters.
4999         All referers changed.
5000         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
5001         TARGET_MASK_BRANCH_PREDICT): New macros.
5002         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
5003         -mno-reg-stack-fill-bug-workaround.
5004         * config/mmix/mmix.md ("call"): Set struct machine member
5005         has_call_without_parameters.
5006
5007 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
5008
5009         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
5010
5011 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
5012
5013         * cfgcleanup.c: Include tm_p.h
5014         (mark_effect): Fix handling of hard register; fix handling of SET
5015
5016 2002-01-04  Kazu Hirata  <kazu@hxi.com>
5017
5018         * config/h8300/h8300.md (anonymous patterns): Check that
5019         operands are registers before using REGNO on them.
5020
5021 2002-01-03  Roland McGrath  <roland@frob.com>
5022
5023         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
5024
5025 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
5026
5027         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
5028         * c-common.h (genrtl_expr_stmt_value): Likewise.
5029         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
5030         (expand_expr_stmt_value): Add maybe_last argument.
5031         Don't warn about statement with no effect if it is the last statement
5032         in expression statement.
5033         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
5034         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
5035         expand_expr_stmt_value.
5036         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
5037         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
5038         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
5039         as maybe_last to expand_expr_stmt_value.
5040
5041 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
5042
5043         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
5044         be passed in, do not build it.
5045         (c_begin_if_stmt): New function.
5046         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
5047         * c-common.h (c_expand_start_cond): Update prototype.
5048         (c_begin_if_stmt): Prototype new function.
5049         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
5050         * c-parse.in (if_prefix): Use c_begin_if_stmt,
5051         c_begin_while_stmt and c_finish_while_stmt_cond.
5052
5053 2002-01-04  William Cohen  <wcohen@redhat.com>
5054
5055         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
5056         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
5057         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
5058         * config/pa/som.h (ASM_FILE_START): Likewise.
5059
5060 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
5061
5062         * lcm.c: Include df.h.
5063         Add available_transfer_function prototype.
5064         (compute_available): Rework to use iterative dataflow framework.
5065         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
5066         with bb_info in df.h
5067         (available_transfer_function): New function.
5068
5069         * Makefile.in (lcm.o): add df.h to dependencies.
5070
5071 2002-01-04  Richard Henderson  <rth@redhat.com>
5072
5073         * config/alpha/alpha.c (some_operand): Accept HIGH.
5074         (input_operand): Likewise; accept simple references to globals.
5075         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
5076         (alpha_const_double_ok_for_letter_p): Likewise.
5077         (alpha_extra_constraint): Likewise.
5078         (alpha_preferred_reload_class): Likewise.  Do not force
5079         symbolic constants to memory.
5080         (alpha_legitimate_address_p): Accept simple references
5081         to small_symbolic_operand.
5082         (alpha_legitimize_address): New arg scratch.  Be prepared to be
5083         called when no_new_pseudos.  Emit simple symbolic references.
5084         Split integers into low, high, and rest.
5085         (alpha_expand_mov): Use alpha_legitimize_address.
5086         (some_small_symbolic_mem_operand): New.
5087         (split_small_symbolic_mem_operand): New.
5088         * config/alpha/alpha-protos.h: Update.
5089         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
5090         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
5091         (EXTRA_CONSTRAINT): Likewise.
5092         (PREFERRED_RELOAD_CLASS): Likewise.
5093         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
5094         (PREDICATE_CODES): Update.
5095         * config/alpha/alpha.md: New post-reload splitters to convert
5096         simplfied symbolic operands to the form that references $29.
5097         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
5098         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
5099
5100 2002-01-03  Richard Henderson  <rth@redhat.com>
5101
5102         * local-alloc.c (function_invariant_p): Update commentary.
5103
5104 2002-01-04  H.J. Lu <hjl@gnu.org>
5105
5106         * toplev.c (rest_of_compilation): Fix a typo when calling
5107         cleanup_cfg.
5108
5109 2002-01-03  Kazu Hirata  <kazu@hxi.com>
5110
5111         * c-common.c: Fix formatting.
5112         * diagnostic.c: Likewise.
5113         * doloop.c: Likewise.
5114         * dwarf2out.c: Likewise.
5115
5116 2002-01-03  Kazu Hirata  <kazu@hxi.com>
5117
5118         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
5119         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
5120
5121 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
5122
5123         * cpperror.c: Update comments and copyright.
5124         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
5125         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
5126
5127 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5128
5129         * collect2.c (main): Use strcmp when testing for "-shared".
5130
5131 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
5132
5133         * cppmacro.c: Don't include intl.h.  Update comments.
5134         (new_number_token): Allocate enough buffer for 64-bit unsigned
5135         integers; update prototype.
5136         * cppmain.c: Update comments.
5137
5138 2002-01-03  William Cohen  <wcohen@redhat.com>
5139
5140         * function.h (struct function): Add profile.
5141         (current_function_profile): New.
5142         doc/extend.texi: Update documentation.
5143         * final.c (final_start_function): Use current_function_profile
5144         instead of profile_flag.
5145         (profile_after_prologue): Likewise.
5146         * function.c (expand_function_start): Likewise.
5147         (expand_function_start): Likewise.
5148         * config/alpha/alpha.c (direct_call_operand):
5149         (alpha_does_function_need_gp): Likewise.
5150         (alpha_expand_prologue): Likewise.
5151         * config/arm/arm.c (arm_expand_prologue): Likewise.
5152         thumb_expand_prologue: Likewise.
5153         * config/d30v/d30v.c (d30v_stack_info): Likewise.
5154         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
5155         (fr30_expand_prologue): Likewise.
5156         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
5157         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
5158         * config/i386/i386.h (FINALIZE_PIC): Likewise.
5159         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
5160         * config/i960/i960.c (i960_output_function_prologue): Likewise.
5161         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5162         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
5163         (m32r_expand_prologue): Likewise.
5164         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
5165         (m88k_expand_prologue): Likewise.
5166         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
5167         * config/mips/mips.c (compute_frame_size): Likewise.
5168         (mips_expand_prologue): Likewise.
5169         (mips_can_use_return_insn): Likewise.
5170         * config/pa/elf.h (ASM_FILE_START): Likewise.
5171         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
5172         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
5173         * config/pa/som.h (ASM_FILE_START): Likewise.
5174         * config/romp/romp.c (romp_using_r14): Likewise.
5175         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
5176         (rs6000_stack_info): Likewise.
5177         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5178         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
5179         * config/v850/v850.c (compute_register_save_size): Likewise.
5180
5181 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
5182
5183         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
5184         gen_lowpart_common fails, use gen_lowpart_SUBREG.
5185
5186 2002-01-03  Turly O'Connor  <turly@apple.com>
5187
5188         * darwin.c (machopic_output_possible_stub_label): Don't generate
5189         stub routines for pseudo-stubs which we've just defined.
5190
5191 2002-01-03  Kazu Hirata  <kazu@hxi.com>
5192
5193         * builtins.c: Fix formatting.
5194         * c-typeck.c: Likewise.
5195         * combine.c: Likewise.
5196         * expr.c: Likewise.
5197         * loop.c: Likewise.
5198
5199 2002-01-03  Andreas Schwab  <schwab@suse.de>
5200
5201         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
5202         and return true if _cpp_push_next_buffer pushed a new include
5203         file.
5204         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
5205         _cpp_pop_file_buffer did not push a new file.
5206         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
5207
5208 2002-01-02  Eric Christopher  <echristo@redhat.com>
5209
5210         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
5211         FIND_REG_INC_NOTE call. Update copyright.
5212         * loop.c (canonicalize_condition): Ditto.
5213         * reorg.c (delete_scheduled_jump): Ditto.
5214
5215 2002-01-03  Kazu Hirata  <kazu@hxi.com>
5216
5217         * gcse.c: Fix formatting.
5218
5219 2002-01-03  Graham Stott  <grahams@redhat.com>
5220
5221         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
5222         forward defs for struct tags rtx_def, union_tree, rtvec_def
5223         also output corresponding typedefs for rtx, tree, and rtvec.
5224
5225         * system.h: Move forward defs for struct tags rtx_def, union_tree,
5226         rtvec_def along with corresponding typedefs for rtx, tree, and
5227         rtvec to config.h, hconfig.h, tconfig.h.
5228
5229 2002-01-03  Graham Stott  <grahams@redhat.com>
5230
5231         * tree.h: Update copyright date.
5232         (IS_EXPR_CODE_CLASS): Add parenthesis.
5233         (TREE_SET_CODE): Add whitespace.
5234         (TREE_CHECK): Add parenthesis.
5235         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
5236         (CST_OR_CONSTRUCTOR_CHECK):
5237         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
5238         (TREE_SYMBOL_REFERENCED): Whitespace.
5239         (INT_CST_LT): Likewise.
5240         (INT_CST_LT_UNSIGNED): Likewise.
5241         (tree_real_cst): Unwrap comment.
5242         (tree_string): Likewise.
5243         (tree_complex): Likewise.
5244         (IDENTIFIER_POINTER): correct cast.
5245         (SAVE_EXPR_CONTEXT): Whitespace.
5246         (EXPR_WFL_FILENAME_NODE): Likewise.
5247         (EXPR_WFL_FILENAME): Remove parenthesis.
5248         (DECL_ORIGIN): Add parenthesis.
5249         (DECL_FROM_INLINE): Use NULL_TREE.
5250         (build_int_2): Whitespace.
5251         (build_type_variant): Add parenthesis.
5252
5253         * gcc/jcf-parse.c: Update copyright date.
5254         (yyparse): Constify resource_filename.
5255
5256 2002-01-03  Graham Stott  <grahams@redhat.com>
5257
5258         * rtl.h: Update copyright date.
5259         (RTL_CHECK1): Wrap long line.
5260         (RTL_CHECK2): Likewise.
5261         (RTL_CHECKC1): Wrap long line and whitespace.
5262         (RTL_CHECKC2): Likewise.
5263         (XWINT): Whitespace.
5264         (XINT): Likewise.
5265         (XSTR): Likewise.
5266         (XEXP): Likewise.
5267         (XVEC): Likewise.
5268         (XMODE): Likewise.
5269         (XBITMAP): Likewise.
5270         (XTREE): Likewise.
5271         (XBBDEF): Likewise.
5272         (XTMPL): Likewise.
5273         (X0WINT): Likewise.
5274         (X0INT):Likewise.
5275         (X0UINT): Likewise.
5276         (X0STR): Likewise.
5277         (X0EXP): Likewise.
5278         (X0VEC): Likewise.
5279         (X0MODE): Likewise.
5280         (X0BITMAP): Likewise.
5281         (X0TREE): Likewise.
5282         (X0BBDEF): Likewise.
5283         (X0ADVFLAGS): Likewise.
5284         (X0CSELIB): Likewise.
5285         (X0MEMATTR): Likewise.
5286         (XCWINT): Likewise.
5287         (XCINT): Likewise.
5288         (XCUINT): Likewise.
5289         (XCSTR): Likewise.
5290         (XCEXP): Likewise.
5291         (XCVEC): Likewise.
5292         (XCMODE): Likewise.
5293         (XCBITMAP): Likewise.
5294         (XCTREE): Likewise.
5295         (XCBBDEF): Likewise.
5296         (XCADVFLAGS): Likewise.
5297         (XCCSELIB): Likewise.
5298         (XC2EXP): Likewise.
5299         (INSN_UID): Likewise.
5300         (PREV_INSN): Likewise.
5301         (PATTERN): Likewise.
5302         (INSN_CODE): Likewise.
5303         (PUT_REG_NOTE_KIND): Likewise.
5304         (CODE_LABEL_NUMBER): Likewise.
5305         (NOTE_SOURCE_FILE): Likewise.
5306         (NOTE_BLOCK): Likewise.
5307         (NOTE_EH_HANDLER): Likewise.
5308         (NOTE_RANGE_INFO): Likewise.
5309         (NOTE_LIVE_INFO): Likewise.
5310         (NOTE_BASIC_BLOCK): Likewise.
5311         (NOTE_EXPECTED_VALUE): Likewise.
5312         (NOTE_LINE_NUMBER): Likewise.
5313         (LABEL_NAME): Likewise.
5314         (LABEL_NUSES): Likewise.
5315         (LABEL_ALTERNATE_NAME): Likewise.
5316         (ADDRESSOF_DECL): Likewise.
5317         (JUMP_LABEL): Likewise.
5318         (LABEL_NEXTREF): Likewise.
5319         (REGNO): Likewise.
5320         (ORIGINAL_REGNO: Likewise.
5321         (HARD_REGISTER_NUM_P): Add parenthesis.
5322         (SUBREG_REG): Whitespace.
5323         (SUBREG_BYTE): Likewise.
5324         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
5325         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
5326         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
5327         (ASM_OPERANDS_INPUT_VEC): Likewise.
5328         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
5329         (ASM_OPERANDS_INPUT): Likewise.
5330         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
5331         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
5332         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
5333         (ASM_OPERANDS_INPUT_MODE): Likewise.
5334         (ASM_OPERANDS_SOURCE_FILE): Likewise.
5335         (ASM_OPERANDS_SOURCE_LINE): Likewise.
5336         (MEM_SET_IN_STRUCT_P): Minor reformat.
5337         (TRAP_CONDITION): Whitespace.
5338         (TRAP_CODE): Likewise.
5339         (COND_EXEC_TEST): Likewise.
5340         (COND_EXEC_CODE): Likewise.
5341         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
5342         (PHI_NODE_P): Add parenthesis.
5343         (plus_constant): Whitespace and add parenthesis.
5344
5345 2002-01-03  Kazu Hirata  <kazu@hxi.com>
5346
5347         * config/avr/avr.c: Fix comment typos.
5348         * config/c4x/c4x.md: Likewise.
5349         * config/dsp16xx/dsp16xx.h: Likewise.
5350         * config/dsp16xx/dsp16xx.md: Likewise.
5351         * config/i386/i386.md: Likewise.
5352         * config/ia64/ia64.c: Likewise.
5353         * config/m32r/m32r.h: Likewise.
5354         * config/m68hc11/m68hc11.md: Likewise.
5355         * config/mmix/mmix.c: Likewise.
5356         * config/mn10200/mn10200.c: Likewise.
5357         * config/romp/romp.c: Likewise.
5358         * config/sh/sh.c: Likewise.
5359         * config/stormy16/stormy16.c: Likewise.
5360         * config/stormy16/stormy16.h: Likewise.
5361         * config/stormy16/stormy16.md: Likewise.
5362
5363 2002-01-03  Graham Stott  <grahams@redhat.com>
5364
5365         * loop.h: Update copyright date.
5366         (LOOP_MOVABLES): Fix typo.
5367         (LOOP_REGS): Likewise.
5368         (LOOP_IVS): Likewise.
5369
5370 2002-01-03  Graham Stott  <grahams@redhat.com>
5371
5372         * cppinit.c: Update copyright date.
5373         Don't include output.h
5374         * Makefile.in: Update copyright date.
5375         Update dependency.
5376
5377 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5378
5379         PR c/5226
5380         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
5381         (-pthread) Add to RS/6000 options.
5382
5383 2002-01-02  Kazu Hirata  <kazu@hxi.com>
5384
5385         * except.c: Fix comment typos.
5386         * loop.c: Likewise.
5387         * varasm.c: Likewise.
5388         * doc/tm.texi: Fix a typo.
5389
5390 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
5391
5392         * c-typeck.c (output_init_element): Allow initializing static storage
5393         duration objects with compound literals.
5394
5395 2002-01-02  Richard Henderson  <rth@redhat.com>
5396
5397         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
5398         after abusing it.
5399
5400 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5401
5402         * gcc.c (default_compilers): Const-ify.
5403         * mips-tdump.c (stab_names): Likewise.
5404         * mips-tfile.c (map_coff_types, map_coff_storage,
5405         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
5406         pseudo_ops_t, pseudo_ops): Likewise.
5407         * protoize.c (default_include): Likewise
5408
5409         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
5410         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
5411         Add array size in declaration.
5412         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
5413         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
5414         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
5415         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
5416         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
5417         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
5418         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
5419         emtens, make_nan): Const-ify.
5420         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
5421         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
5422
5423 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
5424
5425         * config.gcc (ia64-*-*): Set extra_headers.
5426         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
5427         * config/alpha/t-osf: Remove.
5428         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
5429
5430 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
5431
5432         * config/rs6000/t-aix43: Revert previous change.
5433
5434 2002-01-02  Jason Merrill  <jason@redhat.com>
5435
5436         * c-decl.c (c_expand_body): Call outlining_inline_function when
5437         emitting an inline function out of line.
5438
5439 2002-01-02  Richard Henderson  <rth@redhat.com>
5440
5441         * dwarf2out.c (limbo_die_node): Add created_for member.
5442         (new_die): New argument created_for.  Update all callers.
5443         (mark_limbo_die_list): New.
5444         (dwarf2out_init): Register limbo_die_list as a root.
5445         (dwarf2out_finish): Force insert limbo dies into their function
5446         context.
5447
5448 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
5449
5450         PR c++/5089
5451         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
5452
5453 2002-01-02  Kazu Hirata  <kazu@hxi.com>
5454
5455         * config/h8300/fixunssfsi.c: Update copyright.
5456         Fix comment typos.
5457         Fix formatting.
5458         * config/h8300/h8300.c: Update copyright.
5459         Eliminate warnings.
5460
5461 2002-01-02  Kazu Hirata  <kazu@hxi.com>
5462
5463         * config/romp/romp.c: Fix comment formatting.
5464         * config/romp/romp.h: Likewise.
5465         * config/romp/romp.md: Likewise.
5466         * config/s390/s390.c: Likewise.
5467         * config/stormy16/stormy16.c: Likewise.
5468         * config/stormy16/stormy16.h: Likewise.
5469
5470 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
5471
5472         * c-common.h (genrtl_expr_stmt_value): Declare.
5473         * c-semantics.c (genrtl_goto_stmt): Redirect to...
5474         (genrtl_goto_stmt_value): ... this new function.  Pass new
5475         argument down to expand_expr_stmt_value, taking
5476         TREE_ADDRESSABLE into account.
5477         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
5478         STMT_EXPR as addressable, i.e., one whose result we want.
5479         * expr.c (expand_expr): Don't save expression statement value
5480         of labeled_blocks or loop_exprs.
5481         * stmt.c (expand_expr_stmt): Redirect to...
5482         (expand_expr_stmt_value): ... this new function.  Use new
5483         argument to tell whether to save expression value.
5484         (expand_end_stmt_expr): Reset last_expr_type and
5485         last_expr_value if we don't have either.
5486         * tree-inline.c (declare_return_variable): Mark its use
5487         statement as addressable.
5488         * tree.h: Document new use of TREE_ADDRESSABLE.
5489         (expand_expr_stmt_value): Declare.
5490
5491 2002-01-01  Tom Rix  <trix@redhat.com>
5492
5493         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
5494         rs6000_emit_allocate_stack.
5495
5496 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
5497
5498         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
5499         ${srcdir}/ginclude/ to every entry in extra_headers.
5500         * configure: Regenerate.
5501         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
5502         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
5503         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
5504         * ginclude/proto.h: Rename to config/convex/proto.h.
5505
5506 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5507
5508         * attribs.c (handle_vector_size_attribute): Use host_integerp
5509         and tree_int_cst; remove warnings.
5510         * caller-save.c (insert_restore): Add cast to get rid of warning.
5511         (insert_save): Likewise.
5512         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
5513         * regmove.c (find_matches): Add temporary var to kill a warning.
5514
5515 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
5516
5517         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
5518         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
5519         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
5520         (vms-dwarf2eh.o): Add Makefile rule.
5521         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
5522         * config/alpha/vms-dwarf2eh.asm: New file.
5523
5524         * gcc.c (delete_if_ordinary): Delete all versions.
5525
5526 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
5527
5528         * config/mmix/mmix.md: Update FIXME to not mention
5529         define_constants.
5530         (MMIX_rJ_REGNUM): New define_constants constant.
5531         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
5532         "*movdicc_real"): Adjust contraints formatting.
5533         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
5534         for branch prediction.
5535         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
5536         output template.
5537         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
5538         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
5539         number.  Delete related FIXMEs.
5540         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
5541         from number to MMIX_rJ_REGNUM.
5542         (TARGET_MASK_BRANCH_PREDICT): New.
5543         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
5544         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
5545         value.  Add -mbranch-predict and -mno-branch-predict.
5546         (TARGET_VERSION): Drop date.
5547         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
5548         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
5549         for finding out global symbols.
5550         (mmix_asm_output_labelref): Revert condition for global symbol.
5551         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
5552         (mmix_print_operand_punct_valid_p): A '+' is valid.
5553
5554 See ChangeLog.6 for earlier changes.