OSDN Git Service

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