OSDN Git Service

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