OSDN Git Service

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