OSDN Git Service

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