OSDN Git Service

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