OSDN Git Service

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