OSDN Git Service

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