OSDN Git Service

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