OSDN Git Service

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