OSDN Git Service

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