OSDN Git Service

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