OSDN Git Service

* varasm.c (output_constant_def): Fix stupid typo.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-03-19  Richard Henderson  <rth@redhat.com>
2
3         * varasm.c (output_constant_def): Fix stupid typo.
4
5 2002-03-19  Richard Henderson  <rth@redhat.com>
6
7         PR 5879
8         * except.c (current_function_has_exception_handlers): New.
9         * except.h: Declare it.
10         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
11         Combine tests that disable all sibcalls for the function.
12
13 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
14
15         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
16         for INTEGER_CST.
17
18 2002-03-19  Richard Henderson  <rth@redhat.com>
19
20         PR 5977, 5991
21         * config/ia64/ia64.c: Revert 2002-03-01 patch.
22         * config/ia64/ia64.h (INIT_EXPANDERS): New.
23
24 2002-03-19  Jim Blandy  <jimb@redhat.com>
25
26         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
27         name, even if the replacement list contains no tokens, as required
28         by Dwarf.
29
30 2002-03-19  Jason Merrill  <jason@redhat.com>
31
32         * varasm.c (globalize_decl): Get the name from the RTL, not
33         DECL_ASSEMBLER_NAME.
34
35         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
36
37 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
38
39         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
40         subdi_carry): Define.
41
42 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
43
44         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
45         about -fpic/-fPIC if extra_warnings set.
46
47 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
48
49         * expr.c (expand_expr): Sign-extend CONST_INT generated from
50         TREE_STRING_POINTER.
51
52 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
53
54         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
55         in favor of SP if FRAME_POINTER_REQUIRED is false.
56
57 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
58
59         * emit-rtl.c (gen_int_mode): New function.
60         * rtl.h: Prototype for it.
61         * combine.c (make_extraction, simplify_comparison), expmed.c
62         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
63         (convert_modes, store_field), optabs.c (expand_fix),
64         simplify-rtx.c (neg_const_int, simplify_unary_real),
65
66         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
67         Use it instead of GEN_INT (trunc_int_for_mode (...)).
68
69 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
70
71         PR c/5656
72         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
73         convert_parm_for_inlining.
74         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
75         Define.
76         * langhooks-def.h: Likewise.
77         * objc/objc-lang.c: Likewise.
78         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
79         function.
80         * tree-inline.c (initialize_inlined_parameters):
81         Call convert_parm_for_inlining lang hook if needed.
82         * c-typeck.c (c_convert_parm_for_inlining): New function.
83         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
84
85 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
86
87         * calls.c (precompute_arguments): Do not assume that temporaries 
88         can be destroyed after expanding the argument.
89         (expand_call): Likewise.
90
91 2002-03-15  Eric Christopher  <echristo@redhat.com>
92
93         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
94         Fix register preference on last change.
95         * config/mips/mips.c (mips_return_in_memory): New function.
96         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
97         * config/mips/mips-protos.h: Declare.
98         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
99         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
100
101 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
102
103         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
104         a register too.
105         (anddi3, iorsi3): Likewise.
106
107         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
108         use %gprel for symbols that are going to be placed in linkonce
109         sections.
110
111         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
112         RETURN_ADDRESS_POINTER_REGNUM to $ra.
113         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
114         not needed.  Disregard leaf_function_p().
115         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
116         mips16 frame pointer.
117         * config/mips/mips.md (store ra): Only to small SP offsets.
118         2001-08-22  Graham Stott  <grahams@redhat.com>
119         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
120         return a REG rtx for the return address register.
121
122 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
123
124         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
125         constant-pool addresses as "mode-dependent".
126         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
127
128 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
129
130         PR target/5740
131         * expr.c (emit_group_load): Use extract_bit_field if
132         needed for CONCAT arguments.
133
134 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
135
136         PR target/4863
137         * arm.md (tablejump): Make this a define_expand.  For PIC add the
138         offset to the base of the table.
139         (thumb_tablejump): Matcher for Thumb tablejump insn.
140         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
141         as the difference of two labels.
142         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
143         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
144         tables in the code.
145         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
146         * arm.c (get_jump_table_size): If the table is not in the text
147         section, return zero.
148
149 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
150
151         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
152         of gen_rtx_SUBREG.
153         (arm_reload_out_hi): Use gen_lowpart instead of
154         gen_rtx_SUBREG to access QImode components.
155         * config/arm/arm.md: Disable zero_extend split for QImode
156         subregs in BIG_ENDIAN mode.
157         (storehi_bigend): Match use of least significant byte.
158         (storeinthi): Remove extraneous SUBREG.
159         Add missing construction of operands[2].
160         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
161         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
162         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
163
164 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
165
166         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
167         any_operand.
168
169 2002-03-17  Richard Henderson  <rth@redhat.com>
170
171         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
172         explicitly.
173
174 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
175
176         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
177         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
178
179 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
180
181         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
182
183         * predict.c (estimate_bb_frequencies): Delete unused variables.
184
185 2002-03-17  Richard Henderson  <rth@redhat.com>
186
187         * config/ia64/ia64.c (ia64_attribute_table): Move before
188         targetm definition.  Make static.
189
190 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
191
192         * c-common.h (yyparse, c_common_parse_file): New.
193         * c-lang.c: Include c-common.h.
194         (LANG_HOOKS_PARSE_FILE): Redefine.
195         * c-lex.c: Include c-common.h.
196         (yyparse): Rename c_common_parse_file.  Call yyparse.
197         * c-parse.in (yyparse): Remove macro.
198         * c-tree.h (yyparse_1): Remove.
199         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
200         (LANG_HOOKS_INITIALIZER): Update.
201         * langhooks.h (struct lang_hoooks): New hook parse_file.
202         * toplev.c (compile_file): Use parse_file hook.
203         * tree.h (yyparse): Remove.
204         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
205
206 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
207
208         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
209         float_truncate, not fix.
210         ("*truncdfsf2_real"): Ditto.
211         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
212
213         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
214
215 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
216
217         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
218         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
219         where appropriate.  Make the second reference to
220         leaf_function_p a function call, as intended.  Reindented.
221
222         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
223         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
224
225         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
226         add register to non-constant into sp.
227
228         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
229         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
230         (mips16_gp_pseudo_rtx): Lose.
231         (INIT_EXPANDERS): Deleted.
232         * config/mips/mips.c (mips_init_machine_status): New.
233         (mips_free_machine_status): New.
234         (mips_mark_machine_status): New.
235         (override_options): Set them.
236         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
237         (struct machine_function): ... new.  Replaced all references.
238         (mips_add_gc_roots): Don't mark them.
239         (embedded_pic_fnaddr_reg): New, extracted from...
240         (embedded_pic_offset): ... here.
241         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
242         (movsi): Likewise.
243
244 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
245
246         * cppinit.c: Revert -MD removal.
247
248 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
249
250         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
251         soft registers by default for 68HC12.
252         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
253         when compiling with -fomit-frame-pointer.
254         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
255         (expand_epilogue): Likewise.
256         (m68hc11_gen_rotate): Use exg when rotating by 8.
257
258 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
259
260         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
261         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
262         (splits): Remove unused add splits.
263         ("*addhi3_68hc12"): Tune constraints.
264         ("addhi_sp"): Try to use X instead of Y in all cases and if the
265         constant fits in 8-bits and D is dead use abx/aby instructions.
266         ("*addhi3"): Remove extern declaration of ix_reg.
267         ("*subsi3"): Optimize and provide new split.
268         ("subhi3"): Cleanup.
269         ("*subhi3_sp"): Avoid saving X if we know it is dead.
270         (arith splits): For 68hc12 save the address register on the stack
271         and do the arithmetic operation with a pop.
272
273 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
274
275         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
276         allocating QImode in address registers.
277         ("*movqi_m68hc11"): Likewise.
278
279 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
280
281         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
282
283 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
284
285         * cppinit.c (print_help): Display -MD and -MMD.
286         Don't display usage string.  Update assertion syntax and
287         typo.
288         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
289         (cpp_handle_option): Update.
290
291 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
292
293         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
294         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
295         and define it so that regardless of target CPU size,
296         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
297         of "int" rather than "long."
298
299 2002-03-15  Richard Henderson  <rth@redhat.com>
300
301         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
302         size as a tree.
303
304 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
305
306         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
307         ("tstqi" split): Avoid using memory for tstqi on address register.
308         (splits): Remove constraints.
309         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
310         ("cmpdf", "cmpsf"): Remove since not used.
311         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
312         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
313
314 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
315
316         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
317         ("neghi2"): Tighten constraints.
318         ("one_cmplsi2"): Optimize and simplify split.
319         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
320
321 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
322
323         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
324         and split of AND operation to clear the upper bits.
325         ("*logicalsi3_zextqi"): Likewise.
326         ("*logicallhi3_zexthi_ashift8"): Likewise.
327         ("*logicalsi3_silshr16"): Likewise.
328         ("logicalsi3_silshl16"): Likewise.
329         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
330
331 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
332
333         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
334         (m68hc11_indirect_p): New function.
335         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
336         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
337         TARGET_M6812.
338         (asm_print_register): Likewise.
339         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
340         (m68hc11_indirect_p): Declare.
341         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
342         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
343         (TARGET_SWITCHES): New option -mrelax.
344         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
345         destination.
346         ("iorsi3", "xorsi3"): Likewise.
347         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
348         ("*andhi3_mem"): New to handle destination in memory with bclr
349         and a scratch register.
350         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
351         ("*andhi3_const"): New when operand2 is constant.
352         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
353         ("*andhi3_gen"): Cleanup of the old "andhi3".
354         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
355         ("xorqi3"): Update constraints.
356
357 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
358
359         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
360         for reg_equiv_memory_loc when the operand is a register that does
361         not get a hard register (stack location).
362         (tst_operand): After reload, accept all memory operand.
363         (symbolic_memory_operand): Fix detection of symbolic references.
364         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
365         accept symbols and any constant.
366
367 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
368
369         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
370         note on the insn that sets the soft frame register.
371         (must_parenthesize): ix and iy are also reserved names.
372         (print_operand_address): One more place where parenthesis are required
373         to avoid confusion with register names.
374         (m68hc11_gen_movhi): Allow push of stack pointer.
375         (m68hc11_check_z_replacement): Fix handling of parallel with a
376         clobber.
377         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
378         the replacement register is.
379         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
380         and D8_REGS classes.
381         (MODES_TIEABLE_P): All modes are tieable except QImode.
382
383 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
384
385         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
386         (___subdi3): Likewise.
387         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
388         (__map_data_section): Optimize 68hc11 case.
389
390 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
391
392         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
393         than a shift to avoid adding a register with itself.
394         (m68hc11_memory_move_cost): Take into account NO_REGS.
395         (m68hc11_register_move_cost): Update and use memory move cost
396         for soft registers.
397         (m68hc11_address_cost): Make cost of valid offset not 0 so that
398         it gives more opportunities to cse to optimize.
399         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
400         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
401
402 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
403
404         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
405         * c-common.def (CLEANUP_STMT): New tree node.
406         * c-common.h (CLEANUP_DECL): New macro.
407         (CLEANUP_EXPR): Likewise.
408         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
409         * expr.c (expand_expr): Tidy.
410         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
411         * tree-inline.c (initialize_inlined_parameters): Clean up
412         new local variables.
413
414 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
415
416         PR bootstrap/4128
417         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
418         before movrXX only, use reg_overlap_mentioned_p.
419         Only special case NE if just one insn can be generated.
420
421 2002-03-15  Jason Merrill  <jason@redhat.com>
422
423         * varasm.c (assemble_variable): Call resolve_unique_section before
424         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
425         of error_mark_node.
426
427 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
428
429         PR target/5170
430         * arm.md (split pattern for thumb shiftable immediates): Add comment
431         explaining non-obvious test.
432
433 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
434
435         PR target/5712
436         * arm.md (movaddr, movaddr_insn): Delete.
437
438 2002-03-15  Jason Merrill  <jason@redhat.com>
439
440         * toplev.c (wrapup_global_declarations): Clarify variable handling.
441         -fkeep-static-consts doesn't apply to comdats.
442
443 2002-03-14  Richard Henderson  <rth@redhat.com>
444
445         * c-decl.c: Include c-pragma.h.
446         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
447         (finish_function): Tidy.
448         * c-pragma.c: Include c-common.h.
449         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
450         (handle_pragma_weak): Use them.
451         (init_pragma): Register pending_weaks.
452         * c-pragma.h (maybe_apply_pragma_weak): Declare.
453         * print-tree.c (print_node): Print DECL_WEAK.
454         * varasm.c (mark_weak_decls): Remove.
455         (remove_from_pending_weak_list): Remove.
456         (add_weak): Remove.
457         (asm_emit_uninitialised): Call globalize_decl for weak commons.
458         (weak_decls): Make a tree_list.
459         (declare_weak): Cons weak_decls directly.
460         (globalize_decl): Remove weak_decls elements directly.
461         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
462         symbols.  Don't pretend to handle aliases.
463         (init_varasm_once): Update weak_decls registry.
464         * Makefile.in: Update dependencies.
465
466 2002-03-14  Richard Henderson  <rth@redhat.com>
467
468         PR target/5312
469         * config/ia64/ia64.c: Include tm_p.h last.
470         (gen_nop_type): Remove duplicate definition.
471         (cycle_end_fill_slots): Set sched_data for second L slot.
472         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
473         (nop_cycles_until): Fix typos.
474
475 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
476
477         PR optimization/5891
478         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
479
480 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
481
482         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
483           descriptors correctly.
484
485 2002-03-14  Michael Meissner  <meissner@redhat.com>
486
487         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
488         100, allowing MAX_UNROLLED_INSNS to be overridden.
489
490         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
491         --param.
492
493         * unroll.c (params.h): Include.
494         (MAX_UNROLLED_INSNS): Delete, now in params.h.
495
496         * doc/invoke.texi (--param max-unroll-insns): Document.
497
498         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
499
500 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
501
502         * arm.md: Fix warnings about constraints in peepholes and splits.
503
504 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
505
506         * cpphash.h (struct lexer_state): Remove line_extension member.
507         * cpplib.c (dequote_string, do_linemarker): New functions.
508         (linemarker_dir): New data object.
509         (DIRECTIVE_TABLE): No longer need to interpret #line in
510         preprocessed source.  Delete obsolete comment about return
511         values of handlers.
512         (end_directive, directive_diagnostics, _cpp_handle_directive):
513         Don't muck with line_extension.
514         (directive_diagnostics): No need to issue warnings for
515         linemarkers here.
516         (_cpp_handle_directive): Issue warnings for linemarkers here,
517         when appropriate.  Dispatch linemarkers to do_linemarker, not
518         do_line.
519         (do_line): Code to handle linemarkers split out to do_linemarker.
520         Convert escape sequences in filename argument, both places.
521
522         * cppmacro.c (quote_string): Rename cpp_quote_string and
523         export.  All callers changed.
524         * cpplib.h (cpp_quote_string): Prototype.
525         * cppmain.c (print_line): Call cpp_quote_string on to_file
526         before printing it.
527
528         * doc/cpp.texi: Document that escapes are now interpreted in
529         #line and in linemarkers, and that non-printing characters are
530         converted to octal escapes when linemarkers are generated.
531
532 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
533
534         * emit-rtl.c (try_split): Use delete_insns.
535         * recog.c (split_all_insns): Fix terminating condition.
536
537 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
538             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
539
540         PR target/5828
541         * arm.c (arm_output_epilogue): Fix floating-point register save
542         adjustment when using a frame pointer.
543
544 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
545
546         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
547         * config/mips/mips.c (compute_frame_size): Retrofit them here.
548         (save_restore_insns, mips_expand_epilogue): And here.
549         (build_mips16_call_stub): And here.
550         (mips_function_value): Use the new macros to decide whether a single
551         or complex float can be returned in floating-point registers.  Return
552         a parallel rtx in the complex case.
553
554 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
555
556         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
557         call after liveness analysis.
558
559         * recog.c (split_insn): Use delete_insn_and_edges.
560
561         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
562         instructions to have branch prediction notes.
563         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
564
565 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
566
567         * configure.in: Don't pass -Wno-long-long to a ADA compiler
568         that doesn't support it.
569         * configure: Regenerate.
570
571 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
572
573         PR target/5626
574         * config/sparc/sparc.md (normal_branch, inverted_branch,
575         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
576         inverted_fp_branch): Adjust calls to output_cbranch.
577         Set length attribute.
578         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
579         output_v9branch.  Set length attribute.
580         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
581         predicates.
582         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
583         (output_cbranch): Likewise.  Handle far branches.
584         (output_v9branch): Handle far branches.
585         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
586         Adjust prototypes.
587         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
588         noov_compare64_op predicates.
589
590 2002-03-13  Jason Merrill  <jason@redhat.com>
591
592         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
593         into the function and constify it.
594         * gthr-dce.h, gthr-solaris.h: Likewise.
595
596 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
597
598         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
599         * config/rs6000/rs6000.c (rs6000_va_arg): Use
600         std_expand_builtin_va_arg if not ABI_V4.
601
602 2002-03-13  Jason Merrill  <jason@redhat.com>
603
604         * varasm.c (globalize_decl): New fn.
605         (assemble_start_function): Use it.
606         (asm_emit_uninitialized): Use it.
607         (assemble_alias): Use it.
608         (assemble_variable): Use it.
609
610 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
611
612         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
613         2002-03-12 internal visibility change.
614         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
615         visibility into SYMBOL_REF_FLAG.
616
617 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
618
619         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
620         VOIDmode operand.  Add compile-time optimization for constant results.
621
622 2002-03-12  Jason Merrill  <jason@redhat.com>
623
624         * c-typeck.c (convert_for_assignment): Don't allow conversions
625         between pointers and references.  Only allow lvalues to convert to
626         reference.
627
628 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
629
630         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
631         before prologue, to avoid scheduling problems.
632
633 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
634
635         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
636         (ELIMINABLE_REGS): Add sfp->sp.
637         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
638
639 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
640
641         PR optimization/5892
642         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
643
644 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
645
646         * loop.c (basic_induction_var): Don't call convert_modes if mode
647         classes are different.
648
649 2002-03-12  Richard Henderson  <rth@redhat.com>
650
651         PR optimization/5901
652         * function.c (reposition_prologue_and_epilogue_notes): Position
653         the markers after/before the last/first insn not deleted.
654
655 2002-03-12  Richard Henderson  <rth@redhat.com>
656
657         PR optimization/5878
658         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
659         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
660         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
661
662         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
663         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
664         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
665
666         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
667         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
668         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
669         also.  Don't set it if not flag_pic.
670         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
671         to be INVALID_REGNUM when not used.
672
673 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
674
675         * expmed.c (store_bit_field): Reset alias set for memory.
676         (extract_bit_field): Same.
677
678 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
679
680         * c-common.c (c_tree_code_type, c_tree_code_length,
681         c_tree_code_name, add_c_tree_codes): Delete.
682         * c-common.h (add_c_tree_codes): Delete.
683         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
684         Define.
685         * c-objc-common.c (c_objc_common_init): Don't call
686         add_c_tree_codes, instead set lang_unsafe_for_reeval.
687         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
688         objc_tree_code_name, add_objc_tree_codes): Delete.
689         (objc_init): Don't call add_objc_tree_codes.
690         * objc/objc-lang.c (tree_code_type, tree_code_length,
691         tree_code_name): Define.
692         * toplev.c (lang_independent_init): Don't set
693         tree_code_length[IDENTIFIER_NODE].
694         * tree.c (tree_code_type, tree_code_length, tree_code_name):
695         Delete definitions, moved to language front-ends.
696         * tree.def (IDENTIFIER_NODE): Hardwire the length.
697         * tree.h (tree_code_type, tree_code_length, tree_code_name):
698         Const-ify.
699         (tree_code_length): Change type to unsigned char.
700
701 2002-03-12  Richard Henderson  <rth@redhat.com>
702
703         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
704         internal visibility change.
705
706 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
707
708         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
709         validize_mem() instead of change_address to avoid clobbering
710         memory attributes.
711
712 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
713
714         * c-lex.h (position_after_whitespace): Remove.
715
716 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
717
718         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
719         (lex_string): Use unsigned char pointers.
720
721 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
722
723         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
724         is not a valid memory_operand.
725
726 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
727
728         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
729         * config/xtensa/lib1funcs.asm: Fix copyright to include
730         special case for libgcc files.
731         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
732         (__divsi3): Likewise.
733         (__umodsi3): Likewise.
734         (__modsi3): Likewise.
735         * config/xtensa/lib2funcs.S: Fix copyright to include
736         special case for libgcc files.
737
738 2002-03-12  Tom Rix  <trix@redhat.com>
739
740         * collect2.c (resolve_lib_name): Move outside of
741         OBJECT_FORMAT_COFF ifdef.
742         (ignore_library): Same.
743
744 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
745
746         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
747
748 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
749
750         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
751         to function_section before writing out the constant pool.
752
753 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
754
755         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
756         zero_constant.
757         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
758
759 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
760
761         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
762         (adddi3): Likewise.
763         (movdf): Likewise.
764         (movdi): Likewise.
765         (cmpsi splitter): Likewise.
766         (modsi3): Fail if <= 0.
767         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
768         redundant test when HOST_BITS_PER_WIDE_INT != 32.
769         (reg_or_sub_cint64_operand): Likewise.
770         (num_insns_constant_wide): Optimize sign extension.
771         (rs6000_legitimize_address): Likewise.
772
773 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
774
775         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
776         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
777
778 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
779
780         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
781         address calculation.
782
783 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
784
785         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
786         scratch register to DImode / TImode.
787         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
788         register used does not overlap the target.
789
790 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
791
792         * Makefile.in (debug.o): Depend on debug.h.
793         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
794         * debug.c (do_nothing_debug_hooks): Likewise.
795         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
796         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
797         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
798         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
799         * dwarfout.c (dwarf_debug_hooks): Likewise.
800         * integrate.c (output_inline_function): Likewise.
801         * objc/objc-act.c (synth_module_prologue): Likewise.
802         * sdbout.c (sdb_debug_hooks): Likewise.
803         * toplev.c (debug_hooks): Likewise.
804         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
805
806 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
807
808         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
809         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
810         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
811         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
812         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
813         * defaults.h (POINTER_SIZE): Define.
814         * doc/tm.texi (POINTER_SIZE): Document default.
815
816 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
817
818         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
819
820 2002-03-11  Richard Henderson  <rth@redhat.com>
821
822         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
823         if rebuild_label_notes_after_reload.
824
825 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
826
827         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
828         emit pic register load if "internal" visibility.
829         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
830         (cris_expand_builtin_va_arg): Do all computations on trees.
831
832 2002-03-11  Richard Henderson  <rth@redhat.com>
833
834         * rtlanal.c: Include recog.h.
835         (keep_with_call_p): Fix thinko.
836         * Makefile.in (rtlanal.o): Update dependencies.
837
838 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
839
840         * genflags.c (gen_insn): Use IS_VSPACE.
841         * genoutput.c (output_insn_data): Likewise.
842         (process_template): Likewise.
843
844 2002-03-11  Richard Henderson  <rth@redhat.com>
845
846         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
847
848 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
849
850         * Makefile.in: Update.
851         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
852         Update documentation.
853         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
854         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
855
856 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
857
858         * Makefile.in: Give texi2pod its input file as a command line
859         argument, not on stdin.
860
861 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
862             Daniel Berlin  <dan@dberlin.org>
863
864         C++ alias analysis improvement.
865         * alias.c (record_component_aliases): Record aliases for base
866         classes too.
867
868 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
869
870         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
871
872 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
873
874         * toplev.c (vms_fopen): Remove, not needed.
875
876         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
877
878         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
879
880         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
881         for FP, already done later.
882
883         * toplev.c (debug_args): Add entry for VMS_DEBUG.
884         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
885
886 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
887
888         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
889         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
890         LARGEST_EXPONENT_IS_NORMAL for the given mode.
891         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
892         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
893         (ediv, emul, eldexp, esqrt): Likewise.
894         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
895         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
896         (saturate): New function.
897         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
898         (make_nan): Use a saturation value instead of a NaN if
899         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
900         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
901         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
902         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
903         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
904         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
905         !ROUND_TOWARDS_ZERO.
906         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
907         (ROUND_TOWARDS_ZERO): Document.
908
909 2002-03-11  Andreas Jaeger  <aj@suse.de>
910
911         * cfg.c (dump_flow_info): Remove unused variable.
912
913 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
914
915         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
916         computations on trees.
917
918 2002-03-10  Richard Henderson  <rth@redhat.com>
919
920         PR 5693:
921         * reload.c (copy_replacements_1): New.
922         (copy_replacements): Use it to recurse through the rtx.
923
924 2002-03-10  Richard Henderson  <rth@redhat.com>
925
926         * loop.c (strength_reduce): Compute number of iterations as
927         unsigned HOST_WIDE_INT.
928
929 2002-03-10  Richard Henderson  <rth@redhat.com>
930
931         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
932         to move away from the end of the block.
933
934 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
935
936         PR preprocessor/5899
937         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
938
939 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
940
941         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
942
943         * attribs.c (decl_attributes): Fix signed/unsigned warning.
944
945 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
946
947         * config/mmix/mmix.c: Improve comments.
948         (mmix_target_asm_function_prologue): Drop variable
949         empty_stack_frame.  Don't allocate unused slot above fp.
950         (mmix_target_asm_function_epilogue): Mirror prologue changes.
951         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
952         brace in first column.
953         (enum reg_class): Ditto.
954         (FIRST_PARM_OFFSET): Now 0.
955         (USER_LABEL_PREFIX): Remove #if 0:d definition.
956
957 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
958
959         * combine.c (make_extraction): Fix error in last change.
960
961 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
962
963         * c4x.c (c4x_fp_reglist): Const-ify.
964         * cris.c (cris_print_operand): Likewise.
965         * i386.c (ix86_va_arg): Likewise.
966         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
967         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
968         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
969         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
970         * mcore.h (regno_reg_class): Likewise.
971         * mips.c (gen_int_relational): Likewise.
972         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
973         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
974         * pdp11.c (move_costs): Likewise.
975         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
976         * s390.c (s390_branch_condition_mnemonic, regclass_map):
977         Likewise.
978         * s390.h (regclass_map): Likewise.
979         * sh.c (shift_amounts): Likewise.
980         * sh.md (rotlsi3): Likewise.
981
982 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
983
984         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
985         (ne0+5): Use new clobber to generate proper shift pattern.
986         Patch by Michael Matz <matz@kde.org>.
987
988 2002-03-09  Andreas Schwab  <schwab@suse.de>
989
990         * gcc.c (validate_all_switches): Also handle `%W{...}'.
991
992 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
993
994         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
995
996 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
997
998         PR middle-end/5877
999         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
1000         even for non-representable constants.
1001
1002 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1003
1004         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
1005         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
1006         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
1007         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
1008         (pop_function_context): Compute MAY_SHARE parameter for
1009         fixup_var_refs.
1010         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
1011         (gen_mem_addressof): Call fixup_var_refs with new parm.
1012
1013         * combine.c (make_extraction): Don't make extension of CONST_INT.
1014
1015 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
1016
1017         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
1018         in o32 and o64 ABIs.
1019         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
1020         but getting fixed-size structs passed in registers regardless of
1021         padding in o32 and o64 ABIs.
1022
1023         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
1024         offset before loading address of argument passed by transparent
1025         reference.
1026
1027 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1028
1029         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
1030
1031 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
1032
1033         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
1034         marker such that registers after it are saved.
1035
1036 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1037
1038         * sparc.c (arith_4096_operand): Fix error in last change.
1039
1040 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
1041
1042         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
1043         defaults for MEABI.
1044
1045 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
1046
1047         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
1048         vectors.
1049
1050 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
1051
1052         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
1053
1054 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
1055
1056         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
1057         removed; fix return value.
1058         * combine.c (combine_instructions): Dirtify blocks where we failed to
1059         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
1060         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
1061
1062 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1063
1064         * gcse.c (insert_insn_end_bb): Fix typo in last change.
1065
1066 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
1067
1068         * recog.c (peephole2_optimize): Re-distribute EH edges.
1069
1070 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1071
1072         * expr.c (expand_expr): Use unsave lang hook.
1073         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
1074         (LANG_HOOKS_INITIALIZER): Update.
1075         * langhooks.h (struct lang_hooks): New hook unsave.
1076         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
1077         (unsave_expr_1): Remove unused lang_unsave_expr_now.
1078         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
1079         (unsave_expr_now): Remove.
1080         * tree.h (unsave_expr_now, lang_unsave,
1081         lang_unsave_expr_now): Remove.
1082         (lhd_unsave): New.
1083
1084 2002-03-08  Andreas Jaeger  <aj@suse.de>
1085
1086         * flow.c (propagate_block_delete_insn): Remove unused variable.
1087
1088 2002-03-08  Kazu Hirata  <kazu@hxi.com>
1089
1090         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
1091         insn length for memory load/store.
1092
1093 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1094
1095         * doc/install.texi (--with-libiconv-prefix): Document.
1096
1097 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
1098
1099         * doc/sourcebuild.texi: Fix typo.
1100
1101 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
1102
1103         PR c/3711
1104         * builtins.c (std_expand_builtin_va_arg): Do all computations on
1105         trees.
1106
1107 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1108
1109         * rtl.c (copy_most_rtx): Move from here ...
1110         * emit-rtl.c (copy_most_rtx): ... to here.
1111
1112 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
1113
1114         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
1115         SUBTARGET_CPP_SIZE_SPEC.
1116         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
1117
1118         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
1119
1120 2002-03-07  Matt Hiller  <hiller@redhat.com>
1121
1122         * gensupport.c (first_dir_md_include): Renamed from include;
1123         change all references.
1124         (last_dir_md_include): Renamed from last_include; change all
1125         references.
1126         (init_md_reader): Unconditionally initialize base_dir whether or
1127         not filename is a relative path.
1128
1129 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
1130
1131         * config/fp-bit.c (_unord_f2): Compile it in even if
1132         US_SOFTWARE_GOFAST is enabled.
1133
1134         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
1135         NULL_RTX.  Set all HFmode operations as NULL_RTX.
1136         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
1137         NULL_RTX, try reversing the comparison and the operands.
1138
1139 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
1140
1141         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
1142         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
1143         and MATCH_OP_DUP.
1144
1145 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
1146
1147         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
1148
1149 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
1150
1151         * basic-block.h (fixup_abnormal_edges): Declare.
1152         * reload1.c (fixup_abnormal_edges): New function.
1153         * reg-stack.c (convert_regs): Use it.
1154
1155         * gcse.c (insert_insn_end_bb): Handle trapping insns.
1156
1157         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
1158
1159 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
1160
1161         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
1162         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
1163         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
1164         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
1165         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
1166         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
1167         unless x and y could be infinite.
1168         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
1169         Check that the common type of both arguments is a real, even for
1170         targets without unordered comparisons.  Allow an integer argument
1171         to be compared against a real.
1172         (expand_tree_builtin): Use expand_unordered_cmp.
1173         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
1174         * cse.c (fold_rtx): Likewise.  Fix indentation.
1175         * fold-const.c (fold_real_zero_addition_p): New.
1176         (fold): Use it, and the new HONOR_... macros.
1177         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
1178         * jump.c (reversed_comparison_code_parts): After searching for
1179         the true comparison mode, use HONOR_NANS to decide whether it
1180         can be safely reversed.
1181         (reverse_condition_maybe_unordered): Remove IEEE check.
1182         * simplify-rtx.c (simplify_binary_operation): Use the new macros
1183         to decide which simplifications are valid.  Allow the following
1184         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
1185         and (a - -b) to (a + b).
1186         (simplify_relational_operation): Use HONOR_NANS.
1187         * doc/tm.texi: Document the MODE_HAS_... macros.
1188
1189 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
1190
1191         * combine.c (simplify_comparison): If simplifying a logical shift
1192         right and compare with constant, force the comparison to unsigned.
1193
1194 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
1195
1196         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
1197
1198         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
1199         -mabi=no-altivec
1200         (alt_reg_names): Remove % for vrsave.
1201
1202 2002-03-06  Richard Henderson  <rth@redhat.com>
1203
1204         PR optimization/5844
1205         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
1206         if used indicates we've already emitted one copy of an operand.
1207         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
1208         (gen_split): Supply a non-null used.
1209
1210 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
1211
1212         * reload1.c (reload): Unshare all rtl after reload is done.
1213
1214         * simplify-rtx.c (simplify_plus_minus): Do not abort,
1215         but simply fail if the expression is too complex to simplify.
1216         (simplify_gen_binary): Handle simplify_plus_minus failures.
1217
1218 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
1219
1220         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
1221         consistently call delete_trivially_dead_insns after CSE and GCSE;
1222         fix DFI_life dumping; do jump threading after liveness; do crossjumping
1223         after liveness2; update comment in last crossjumping.
1224         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
1225
1226 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
1227
1228         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
1229         after completing fast dead code elimination.
1230
1231         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
1232         COMPARE operator.
1233
1234 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
1235
1236         * version.c:  Fix misplaced leading blanks on first line.
1237
1238 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
1239
1240         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
1241
1242 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
1243
1244         * cfgcleanup.c (mentions_nonequal_regs): New function.
1245         (thread_jump): Use it.
1246         * toplev.c (rest_of_compilation): Run jump threading after
1247         liveness.
1248
1249 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
1250
1251         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
1252         patch.
1253
1254 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
1255
1256         * predict.c (estimate_bb_frequencies): Do not reload the
1257         frequencies from notes.
1258
1259 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
1260
1261         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
1262         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
1263
1264         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
1265         delete_noop_moves): Return indeger.
1266         * flow.c (ndead): New variable.
1267         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
1268         BB argument; update callers.
1269         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
1270         (life_analysis): Do not call purge_all_dead_edges.
1271         (update_life_info): Return number of deleted insns; print statistics.
1272         (update_life_info_in_dirty_blocks): likewise.
1273         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
1274         return number of insns deleted.
1275
1276         * cse.c: Include timevar.h
1277         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
1278         iterate until stabilizes; print statistics; return number of killed
1279         insns.
1280         * Makefile.in: (cse.o): Add timevar.h dependency
1281         * rtl.h (delete_trivially_dead_insns): New.
1282         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
1283         * toplev.c (rest_of_compilation): Update callers.
1284
1285         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
1286         (try_optimize_cfg): Do not update liveness.
1287         (cleanup-cfg): Loop until try_optimize_cfg and dead code
1288         removal stabilizes; use delete_trivially_dead_insns.
1289
1290         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
1291
1292 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
1293
1294         * cppmain.c (setup_callbacks): Disable #pragma and #ident
1295         callbacks when processing assembly language.
1296
1297 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1298
1299         * pa.h (ASM_FILE_END): Define.
1300         * som.h (ASM_FILE_END): Delete.
1301
1302         * pa.c (function_arg): Don't pass floats in general registers in
1303         indirect calls if TARGET_ELF32.
1304
1305 2002-03-05  Richard Henderson  <rth@redhat.com>
1306
1307         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
1308
1309 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
1310
1311         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
1312
1313 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
1314
1315         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
1316         -r command line.  Don't hide any symbols if not building
1317         shared libgcc.
1318
1319 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
1320
1321         * cfg.c (dump_flow_info): Warn about profile mismatches.
1322         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
1323         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
1324
1325 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
1326
1327         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
1328         wide volatile memory by parts.
1329
1330 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
1331
1332         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
1333         is NULL.
1334
1335 2002-03-05  Richard Henderson  <rth@redhat.com>
1336
1337         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
1338
1339 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
1340
1341         * toplev.c (documented_lang_options): Document more
1342         language-specific options.
1343         * doc/invoke.texi (Warning Options): Correct documentation for
1344         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
1345         * c-decl.c (c_decode_option): Use a table to handle warning options.
1346
1347 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
1348
1349         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
1350         parameter to mmix_encode_section_info.
1351         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
1352         relocatably.  Always produce ELF, not mmo if linking relocatably.
1353         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
1354         first is non-zero, don't add symbol prefix.
1355         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
1356         prototype accordingly.
1357
1358 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
1359
1360         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
1361
1362 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
1363
1364         * configure.in: Increase required makeinfo version to 4.1.
1365         * configure: Regenerate.
1366
1367 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
1368
1369         * .cvsignore: Remove *.info* and genrtl*; these files are generated
1370         elsewhere now.
1371
1372 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1373
1374         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
1375         * doc/invoke.texi: Fix @math uses.
1376
1377 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
1378
1379         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
1380         removal
1381
1382 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
1383
1384         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
1385         (powerpc-*-eabisimaltivec*): Same.
1386
1387         * config/rs6000/t-ppcendian: New.
1388
1389 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
1390
1391         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
1392         nonimmediate_src_operand and nonimmediate_lsrc_operand to
1393         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
1394
1395 2002-03-03  Richard Henderson  <rth@redhat.com>
1396
1397         * toplev.c (rest_of_decl_compilation): Revert last two changes.
1398
1399 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
1400
1401         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
1402         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
1403         tree.c, config/m68k/m68k.c:
1404         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
1405         REAL_ARITHMETIC blocks unconditional.  Delete some further
1406         #ifdef blocks predicated on REAL_ARITHMETIC.
1407         * flags.h, toplev.c: Delete remaining references to
1408         flag_pretend_float.
1409
1410         * doc/invoke.texi: Remove documentation of -fpretend-float.
1411         * doc/tm.texi: Describe the various REAL_* macros as provided by
1412         real.h, not by the target configuration files.
1413
1414         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
1415         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
1416         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
1417         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
1418         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
1419         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
1420         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
1421         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
1422         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
1423         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
1424         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
1425         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1426         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
1427         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
1428         config/xtensa/xtensa.h:
1429         Do not define, undefine, or mention in comments any of
1430         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
1431         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
1432         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
1433         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
1434         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
1435         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
1436         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
1437         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
1438         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
1439
1440 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1441
1442         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
1443         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
1444         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
1445         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
1446         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
1447         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
1448         Delete.
1449         * defaults.h (BITS_PER_WORD): Define.
1450         * doc/tm.texi (BITS_PER_WORD): Document default value.
1451
1452         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
1453         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
1454         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
1455
1456 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1457
1458         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
1459         lieu of explicit sizeof/sizeof.
1460         * i386.c (override_options, ix86_init_mmx_sse_builtins,
1461         ix86_expand_builtin): Likewise.
1462         * mips.c (mips_add_gc_roots): Likewise.
1463         * mmix.c (mmix_output_condition): Likewise.
1464         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
1465         altivec_init_builtins): Likewise.
1466         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
1467         * cppexp.c (Nsuff, parse_number): Likewise.
1468         * cppinit.c (builtin_array_end): Likewise.
1469         * gcc.c (n_default_compilers, process_command): Likewise.
1470         * genpreds.c (output_predicate_decls): Likewise.
1471         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
1472         * lcm.c (N_ENTITIES): Likewise.
1473         * stor-layout.c (set_sizetype): Likewise.
1474
1475 2002-03-03  Richard Henderson  <rth@redhat.com>
1476
1477         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
1478         for types or labels.
1479
1480 2002-03-03  Richard Henderson  <rth@redhat.com>
1481
1482         * c-decl.c (start_decl): Initialized variables are not common.
1483
1484 2002-03-02  Per Bothner  <per@bothner.com>
1485
1486         * gcc.c (option_map):  Suport new --bootclasspath option.
1487         --CLASSPATH is now just an alias for --classpath.
1488
1489 2002-03-02  Richard Henderson  <rth@redhat.com>
1490
1491         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
1492         load if "internal" visibility.
1493         * doc/extend.texi: Document visibility meanings.
1494
1495 2002-03-02  Richard Henderson  <rth@redhat.com>
1496
1497         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
1498         to functions as well.
1499
1500 2002-03-02  Richard Henderson  <rth@redhat.com>
1501
1502         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
1503         (handle_visibility_attribute): Don't call assemble_visibility.
1504         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
1505         without asmspec.  Invoke assemble_alias when needed.
1506         * varasm.c (maybe_assemble_visibility): New.
1507         (assemble_start_function, assemble_variable, assemble_alias): Use it.
1508
1509 2002-03-02  Richard Henderson  <rth@redhat.com>
1510
1511         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
1512         invoke ENCODE_SECTION_INFO with first call flag.
1513
1514         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
1515         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
1516         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
1517         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
1518         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
1519         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
1520         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
1521         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
1522         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
1523         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
1524         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
1525         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
1526         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
1527         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
1528         config/mcore/mcore-protos.h, config/mcore/mcore.c,
1529         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
1530         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
1531         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
1532         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
1533         config/sh/sh.h, config/sparc/sparc.h,
1534         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
1535         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
1536         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
1537         FIRST argument.  As needed, examine it and do nothing.
1538
1539         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
1540         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
1541         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
1542
1543         * config/arm/t-pe (pe.o): Add dependencies.
1544
1545 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1546
1547         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
1548         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
1549         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
1550         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
1551         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
1552         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
1553         * defaults.h (BITS_PER_UNIT): Define.
1554         * doc/tm.texi (BITS_PER_UNIT): Document default value.
1555
1556 2002-03-02  Kazu Hirata  <kazu@hxi.com>
1557
1558         * config/h8300/h8300-protos.h: Add a prototype for
1559         compute_a_shift_length.
1560         * config/h8300/h8300.c (h8300_asm_insn_count): New.
1561         (compute_a_shift_length): Likewise.
1562         (h8300_adjust_insn_length): Do not adjust insn length of shift
1563         insns.
1564         * config/h8300/h8300.md (anonymous shift patterns): Use
1565         compute_a_shift_length.
1566
1567 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1568
1569         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
1570         trunc_int_for_mode.
1571
1572         * emit-rtl.c (offset_address): Call update_temp_slot_address.
1573
1574 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1575
1576         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
1577         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
1578         * flags.h (flag_zero_initialized_in_bss): Declare.
1579         * toplev.c (flag_zero_initialized_in_bss): New flag.
1580         (lang_independent_options): Add flag_zero_initialized_in_bss.
1581         * tree.c (initializer_zerop): New function.
1582         * tree.h (initializer_zerop): Declare.
1583         * varasm.c (assemble_variable): If we can emit bss, put zero
1584         initializers in the bss section.
1585
1586 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
1587
1588         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
1589         like more than one symbol per .weak directive.
1590
1591 2002-03-01  Richard Henderson  <rth@redhat.com>
1592
1593         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
1594         adjust argument_pointer by pretend_args_size.
1595         (ia64_va_start): Adjust va_start address by -pretend_args_size.
1596
1597 2002-03-01  Kazu Hirata  <kazu@hxi.com>
1598
1599         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
1600
1601 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
1602
1603         * toplev.c (rest_of_compilation): Delete dead jumptables before
1604         loop.
1605         * flow.c (delete_dead_jumptables): Make global.
1606         * rtl.h (delete_dead_jumptables): Declare.
1607
1608 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
1609
1610         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
1611         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
1612         * config/rs6000/xcoff.h (COLLET_EXPORT_LIST): Delete.
1613
1614 2002-03-01  Kazu Hirata  <kazu@hxi.com>
1615
1616         * config/h8300/h8300-protos.h: Fix formatting.
1617         * config/h8300/h8300.c: Likewise.
1618         * config/h8300/h8300.h: Likewise.
1619
1620 2002-03-01  Kazu Hirata  <kazu@hxi.com>
1621
1622         * config/h8300/h8300.c (print_operand): Support 16-bit
1623         constant addresses.
1624         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
1625
1626 2002-02-28  Richard Henderson  <rth@redhat.com>
1627
1628         * expmed.c (store_bit_field): Prevent generation of CONCATs;
1629         pun complex values as integers; use gen_lowpart instead of
1630         gen_rtx_SUBREG.
1631         (extract_bit_field): Likewise.
1632
1633 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
1634             David Edelsohn  <edelsohn@gnu.org>
1635
1636         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
1637         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
1638         (SUPPORTS_WEAK): Likewise.
1639         * output.h (add_weak): Add tree param.
1640         * varasm.c (add_weak): Likewise.  Save decl.
1641         (struct weak_syms): Add decl field.
1642         (mark_weak_decls): New function.
1643         (init_varasm_once): ggc_add_root mark_weak_decls.
1644         (assemble_start_function): Use ASM_WEAKEN_DECL.
1645         (assemble_variable): Likewise.
1646         (assemble_alias): Likewise.
1647         (declare_weak): Pass decl to add_weak.
1648         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
1649         (remove_from_pending_weak_list): Declare and define for
1650         ASM_WEAKEN_DECL.
1651         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
1652         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
1653         * defaults.h (SUPPORTS_WEAK): Likewise.
1654         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
1655         .weak for code sym.  Do emit .size for descriptor sym.
1656         (ASM_DECLARE_FUNCTION_SIZE): Define.
1657         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
1658         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
1659         .lglobl unless TARGET_XCOFF.  Formatting fixes.
1660         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
1661         .weak for code sym.
1662         (HANDLE_PRAGMA_WEAK): Remove.
1663         (ASM_WEAKEN_LABEL): Remove.
1664         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
1665
1666 2002-03-01  Jason Merrill  <jason@redhat.com>
1667
1668         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
1669         (TARGET_EXPR_CLEANUP): New macro.
1670
1671 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
1672
1673         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
1674         to take ptr_extend into account as third type of extension.
1675         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
1676         fields used by SUBREG_PROMOTED_UNSIGNED_P.
1677         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
1678         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
1679         * calls.c (precompute_arguments): Use new macro.
1680         (expand_call): Ditto.
1681         * combine.c (nonzero_bits): Ditto.
1682         (record_promoted_value): Ditto.
1683         * expr.c (store_expr): Ditto.
1684         (expand_expr): Ditto.
1685         * function.c (assign_parms): Ditto.
1686
1687 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
1688
1689         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
1690         override -shared and -shared-libgcc.
1691
1692 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
1693
1694         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
1695         of "ultrasparc".
1696         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
1697         to be broken.
1698
1699 2002-02-28  Richard Henderson  <rth@redhat.com>
1700
1701         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
1702         4 cycle latency from MM producers.
1703         (ia64_internal_sched_reorder): Likewise with pipeline flush.
1704
1705 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
1706
1707         * mklibgcc.in: Don't use GNU make extension.
1708
1709 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
1710
1711         * c-parse.in (STATIC): New terminal.
1712         (scspec): New non-terminal.  Update productions accordingly.
1713         (program): Remove bogus ifc / end ifc.
1714         (array_declarator): Simplify production using STATIC.
1715
1716 2002-02-28  Jim Meyering  <meyering@lucent.com>
1717
1718         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
1719         \a still means TARGET_BELL.
1720
1721 2002-02-28  Richard Henderson  <rth@redhat.com>
1722
1723         * haifa-sched.c (sched_emit_insn): New.
1724         (schedule_block): Use last_scheduled_insn to track last insn.
1725         * sched-int.h (sched_emit_insn): Prototype.
1726         * config/ia64/ia64.c (last_issued): Remove.
1727         (ia64_variable_issue): Don't set it.
1728         (nop_cycles_until): Use sched_emit_insn.
1729
1730 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
1731
1732         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
1733         extended constants.
1734
1735 2002-02-28  Kazu Hirata  <kazu@hxi.com>
1736
1737         * config/h8300/h8300.c: Fix formatting.
1738         * config/h8300/h8300.h: Likewise.
1739
1740 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1741
1742         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
1743         which may overwrite the high byte of the frame pointer.
1744
1745 2002-02-28  Bo Thorsen  <bo@suse.de>
1746
1747         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
1748         (STARTFILE_SPEC): Add 64 bit files.
1749         (ENDFILE_SPEC): Likewise.
1750
1751 2002-02-28  Jason Merrill  <jason@redhat.com>
1752
1753         * c-decl.c (finish_function): Only warn about missing return
1754         statement with -Wreturn-type.
1755
1756 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
1757
1758         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
1759
1760         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
1761         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
1762
1763 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
1764
1765         * basic-block.h (BB_REACHABLE): Renumber.
1766         (BB_DIRTY, BB_NEW): New flags.
1767         (clear_bb_flags): Declare.
1768         (update_life_info_in_dirty_blocks): Declare.
1769         * cfg.c (clear_bb_flags): New function.
1770         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
1771         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
1772         reorder_insns, emit_insn_after): Mark block as dirty.
1773         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
1774         (update_life_info_in_dirty_blocks): New function.
1775         * recog.c (apply_change_group): Dirtify block.
1776
1777         * cse.c (cse_insn): Reorder emitting of jump insn to keep
1778         cfg consistent.
1779         * gcse.c (delete_null_pointer_checks): Likewise.
1780
1781         * toplev.c (dump_file_index): Move cse2 after bp,
1782         add DFI_null
1783         (dump_file_info): Similary.
1784         (rest_of_compilation): Avoid most of CFG rebuilds;
1785         do first if converision after null pointer checks, do cse2
1786         after branch prediction; avoid full liveness rebuild after
1787         initializing subregs.
1788         * invoke.texi (-d options): Document -du, renumber.
1789
1790         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
1791         (notice_new_block): Do not set BB_UPDATE_LIFE.
1792         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
1793          merge_blocks_move_successor_nojumps, merge_blocks,
1794          try_crossjump_to_edge): Likewise.
1795         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
1796         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
1797         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
1798         (merge_of_block): Do not use life_data_ok.
1799         (find_if_case_1): Do not use SET_UPDATE_LIFE.
1800         (if_convert): Use BB_DIRTY mechanizm to update life.
1801         * lcm.c (optimize_mode_switching): Update
1802         update_life_info_in_dirty_blocks
1803
1804 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
1805
1806         * Makefile.in (integrate.o): Update.
1807         * c-decl.c (copy_lang_decl): Rename.
1808         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
1809         * integrate.c: Include langhooks.h.
1810         (copy_decl_for_inlining): Update to use langhook.
1811         * langhooks-def.h (lhd_do_nothing_t,
1812         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
1813         (LANG_HOOKS_INITIALIZER): Update.
1814         * langhooks.c (lhd_do_nothing_t): New.
1815         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
1816         * tree.h (copy_lang_decl): Remove.
1817 objc:
1818         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
1819
1820 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
1821
1822         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
1823         POST_DEC, and POST_MODIFY.
1824
1825 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
1826
1827         * c-typeck.c (digest_init): Remove unused parameter; all
1828         callers changed.
1829
1830 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
1831
1832         * expmed.c (expand_shift): Correctly test for low part of a
1833         subreg.
1834
1835 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
1836
1837         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
1838         insn UIDs with insn addresses.
1839
1840 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
1841
1842         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
1843         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
1844         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
1845         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
1846         gcc.c, toplev.c: Delete code implementing -traditional mode.
1847
1848         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
1849         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
1850         Document removal of -traditional mode for compilation, and
1851         remove documentation only relevant to that mode.
1852
1853         * config/nextstep.h, config/ptx4.h, config/svr4.h,
1854         config/convex/convex.h, config/d30v/d30v.h,
1855         config/i386/dgux.h, config/i386/osf1elf.h,
1856         config/i386/osfelf.h, config/i386/osfrose.h,
1857         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
1858         config/m68k/hp310.h, config/m88k/dgux.h,
1859         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
1860         config/m88k/m88k.h, config/m88k/openbsd.h,
1861         config/mips/abi64.h, config/mips/osfrose.h,
1862         config/mips/svr4-5.h, config/mips/svr4-t.h,
1863         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1864         config/stormy16/stormy16.h: Remove all references to
1865         -traditional from target specs.  Delete all mention of the
1866         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
1867         delete a couple of commented-out definitions of
1868         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
1869         to -traditional.
1870
1871         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
1872         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
1873
1874 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
1875
1876         * mklibgcc.in: Don't use \n in a line subject to
1877         interpretation by echo.
1878
1879 2002-02-27  Graham Stott  <grahams@redhat.com>
1880
1881         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
1882         Constify NAME.
1883
1884         * loop.c (prescan_loop): Handle PARALLEL.
1885
1886         * unroll.c (loop_iterations): Return 0 if the add_val for
1887         a BIV is REG.
1888
1889         * final.c (output_operand_lossage): Constify PFX_STR.
1890
1891         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
1892
1893 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
1894
1895         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
1896         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
1897
1898 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
1899
1900         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
1901
1902 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1903
1904         * cpplex.c (_cpp_lex_token): Handle directives in macro
1905         arguments.
1906         * cpplib.c (_cpp_handle_directive): Save and restore state
1907         if parsing macro args when entering a directive.
1908         * cppmacro.c (collect_args): No need to handle directives
1909         in macro arguments.
1910         (enter_macro_context, replace_args): Use the original macro
1911         definition in case it was redefined whilst collecting arguments.
1912 doc:
1913         * cpp.texi: Update.
1914
1915 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
1916
1917         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
1918         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
1919         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
1920         method on AIX.
1921         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
1922         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
1923         (load_toc_v4_PIC_2): Same.
1924
1925 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
1926
1927         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
1928
1929 2002-02-26  Richard Henderson  <rth@redhat.com>
1930
1931         * config/alpha/alpha.md (ashldi_se): Re-enable.
1932
1933 2002-02-26  Richard Henderson  <rth@redhat.com>
1934
1935         * config/alpha/alpha.c (alpha_encode_section_info): Examine
1936         MODULE_LOCAL_P; improve commentary.
1937
1938 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
1939
1940         * doc/cpp.texi: Clarify documentation of relationship between
1941         #line and #include.
1942
1943 2002-02-26  Kazu Hirata  <kazu@hxi.com>
1944
1945         * config/h8300/h8300-protos.h: Update the prototype for
1946         compute_logical_op_length.  Add the prototype for
1947         compute_logical_op_cc.
1948         * config/h8300/h8300.c (compute_logical_op_length): Figure out
1949         code from operands.
1950         (compute_logical_op_cc): New.
1951         * config/h8300/h8300.md: Combine all the logical op patterns
1952         in HImode and SImode.  Use compute_logical_op_cc.
1953
1954 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
1955
1956         * config/i386/i386.c (print_operand): Don't append ATT-style
1957         length suffixs to x87 opcodes when in Intel mode.
1958
1959 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
1960
1961         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
1962         (init_emit_once): Update calls.
1963         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
1964         (init_syntax_once): Prototype.
1965
1966 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1967
1968         * pa-linux.h (LIB_SPEC): Update definition.
1969         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
1970
1971 2002-02-26  Richard Henderson  <rth@redhat.com>
1972
1973         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
1974         if we emitted a stop bit.
1975
1976 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
1977
1978         * configure.in (libgcc_visibility): Substitute.
1979         * configure: Rebuilt.
1980         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
1981         defined symbols .hidden.
1982
1983 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
1984
1985         * attribs.c (c_common_attribute_table): Add visibility.
1986         (handle_visibility_attribute): New function.
1987         * varasm.c (assemble_visibility): New function.
1988         * output.h (assemble_visibility): Add prototype.
1989         * tree.h (MODULE_LOCAL_P): Define.
1990         * crtstuff.c (__dso_handle): Use visibility attribute.
1991         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
1992         for MODULE_LOCAL_P symbols too.
1993         * config/ia64/ia64.c (ia64_encode_section_info): Handle
1994         MODULE_LOCAL_P symbols the same way as local symbols.
1995         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
1996         into .sdata/.sbss by the user.
1997         * doc/extend.texi (Function Attributes): Document visibility
1998         attribute.
1999
2000 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
2001
2002         PR debug/5770
2003         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
2004         STRING_CST initializer spanning the whole variable without
2005         embedded zeros.
2006         If expand_expr returned MEM, don't use it.
2007
2008 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
2009
2010         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
2011         generate a die for the lexical block.
2012
2013 2002-02-26  Kazu Hirata  <kazu@hxi.com>
2014
2015         * config/h8300/h8300-protos.h: Add a prototype for
2016         compute_logical_op_length.
2017         * config/h8300/h8300.c (compute_logical_op_length): New.
2018         * config/h8300/h8300.md (anonymous logical patterns): Use
2019         compute_logical_op_length for length.
2020
2021 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
2022
2023         * dwarf2out.c (modified_type_die): Do not call type_main_variant
2024         for vectors.
2025         (gen_type_die): Same.
2026
2027         * attribs.c (handle_vector_size_attribute): Set debug information.
2028
2029 2002-02-26  Daniel Egger  <degger@fhm.edu>
2030
2031         * config/rs6000/rs6000.md: Swap define_insn attributes to
2032         fix incorrect generation of merge high instructions instead
2033         of merge low.
2034
2035 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
2036
2037         * c-typeck.c (really_start_incremental_init): Use
2038         bitsize_zero_node for vectors.
2039
2040 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
2041
2042         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
2043         ("*set_vrsave_internal"): Same.
2044
2045 2002-02-25  Richard Henderson  <rth@redhat.com>
2046
2047         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
2048         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
2049
2050 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
2051
2052         PR target/5755
2053         * config/i386/i386.c (ix86_return_pops_args): Only pop
2054         fake structure return argument if it was passed on the stack.
2055
2056 2002-02-25  Jason Merrill  <jason@redhat.com>
2057
2058         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
2059         RESULT_DECL.
2060
2061 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
2062
2063         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
2064         link with shared_name only.
2065         * doc/invoke.texi (Link Options): Document new behavior.
2066
2067 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
2068
2069         * c-typeck.c (push_init_level): Handle vectors.
2070
2071 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
2072
2073         * config/sparc/sparc.c (const64_high_operand): Zero-extend
2074         operands of SPARC_SETHI_P.
2075         (input_operand): Likewise.
2076         (sparc_emit_set_const32): Likewise.
2077         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
2078         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
2079         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
2080         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
2081         (movdi_insn_sp64_vis): Likewise.
2082         (movdi split, movdf split): Use SETHI32.
2083         * doc/md.texi: Document SPARC constraints L, M and N.
2084
2085 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
2086
2087         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
2088         ("*set_vrsave_internal"): use mfspr for Darwin.
2089
2090         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
2091         gen_get_vrsave_internal.
2092
2093 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2094
2095         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
2096
2097 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
2098
2099         * cpplex.c (cpp_interpret_charconst): Get signedness or
2100         otherwise of wide character constants correct.
2101         * cppexp.c (lex): Get signedness of wide charconsts correct.
2102
2103 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2104
2105         * optabs.c (widen_operand): Only call convert_modes for
2106         promoted SUBREG if signedness matches.
2107         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
2108
2109 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
2110
2111         * cpplib.c (glue_header_name): Use local buffer to build up
2112         header name.
2113
2114 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
2115
2116         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
2117
2118 2002-02-23  Kazu Hirata  <kazu@hxi.com>
2119
2120         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
2121         H8/300[HS] separately.
2122         * config/h8300/h8300.md: Remove the early clobber constraint
2123         from bit field patterns.
2124
2125 2002-02-23  Kazu Hirata  <kazu@hxi.com>
2126
2127         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
2128         register_operand.
2129         (mulhisi3): Likewise.
2130         (umulqisi3): Likewise.
2131         (umulhisi3): Likewise.
2132
2133 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
2134
2135         * cppinit.c (output_deps): Correct test for stdout output.
2136         (init_dependency_output): Cure warning.
2137
2138 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2139
2140         * expr.c (store_expr): When converting expression to promoted
2141         equivalent type, allow using SUBREG_REG of TARGET as the target
2142         of the expansion of EXP.
2143         * loop.c (basic_induction_var, case SUBREG): Always look inside.
2144         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
2145         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
2146         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
2147         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
2148
2149 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
2150
2151         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
2152         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
2153         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
2154
2155 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
2156
2157         PR optimization/5747
2158         * loop.c (scan_loop): Update reg info if move_movables created new
2159         pseudos.
2160
2161 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
2162
2163         * gcc.c (init_gcc_spec): Revert last change.
2164
2165 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
2166
2167         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
2168         gpc_reg_operand constraint.
2169
2170 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
2171
2172         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
2173         Simplify comparison of `low'.
2174         (add_operand): Fix formatting.
2175         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
2176         (mask_operand): Disallow mask to wrap in 64-bit mode.
2177         (rs6000_stack_info): Remove redundant test setting push_p.
2178         (output_toc): Fix formatting.
2179         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
2180         cc_reg_not_cr0_operand constraint.
2181         (booldi3, boolcdi3 splitters): Same.
2182
2183 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
2184
2185         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
2186
2187 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
2188
2189         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
2190         gcc invoked with -shared-libgcc.
2191
2192 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
2193
2194         PR c++/5748
2195         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
2196         decl if any of elements was TREE_USED.
2197
2198 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
2199
2200         * config/sparc/sol2.h: Don't include sys/mman.h.
2201         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
2202         (arith_4096_operand): Don't throw high bits away.
2203         (const64_operand): Take sign extension of CONST_INTs into account.
2204         (const64_high_operand, sparc_emit_set_const32): Likewise.
2205         (GEN_HIGHINT64): Likewise.
2206         (sparc_emit_set_const64_quick1): Likewise.
2207         (const64_is_2insns): Likewise.
2208         (print_operand): Use trunc_int_for_mode for sign extension.
2209         * config/sparc/sparc.h (SMALL_INT32): Likewise.
2210         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
2211         chars.  Assume CONST_INT is already properly sign-extended.
2212         (movdi split): Sign-extend each SImode part.
2213         (andsi3 split): Don't mask high bits off, so that result
2214         remains properly sign-extend.
2215         (iorsi3 split): Likewise.
2216         (xorsi3 split): Likewise.
2217
2218 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
2219
2220         * fold-const.c (fold): Fix typo in comments.
2221
2222 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
2223
2224         * Makefile.in (langhooks.o): Update dependencies.
2225
2226 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
2227
2228         * langhooks.c: Include flags.h.
2229
2230 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
2231
2232         * testsuite/gcc.dg/attr-alwaysinline.c: New.
2233
2234         * c-common.c (c_common_post_options): Set inline trees by
2235         default.
2236
2237         * doc/extend.texi (Function Attributes): Document always_inline
2238         attribute.
2239         Update documentation about inlining when not optimizing.
2240
2241         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
2242
2243         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
2244         unless DECL_ALWAYS_INLINE.
2245
2246         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
2247         unless DECL_ALWAYS_INLINE.
2248         (c_disregard_inline_limits): Disregard if always_inline set.
2249
2250         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
2251         Disregard if always_inline set.
2252         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
2253         unless DECL_ALWAYS_INLINE.
2254
2255         * attribs.c (handle_always_inline_attribute): New.
2256         (c_common_attribute_table): Add always_inline.
2257
2258         * config/rs6000/altivec.h: Add prototypes for builtins
2259         requiring the always_inline attribute.
2260
2261 2002-02-21  Eric Christopher  <echristo@redhat.com>
2262
2263         * expmed.c (store_bit_field): Try to simplify the subreg
2264         before generating a new one when when the mode size of
2265         value is less than maxmode.
2266
2267 2002-02-21  Richard Henderson  <rth@redhat.com>
2268
2269         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
2270         than gen_rtx_PLUS to form the sum.
2271         * explow.c (force_reg): Rearrange to not allocate new pseudo
2272         when force_operand returns a register.
2273         * expr.c (expand_assignment): Allow offset_rtx expansion to
2274         return a sum.  Do not force addresses into registers.
2275         (expand_expr): Likewise.
2276         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
2277         to canonicalize arithmetic that didn't simpify.
2278         (simplify_plus_minus): New argument force; update
2279         all callers.  Don't split CONST unless we can do something with it,
2280         and wouldn't lose the constness of the operands.
2281
2282         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
2283         that we generated earlier.
2284
2285 2002-02-21  Tom Tromey  <tromey@redhat.com>
2286
2287         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2288         (output_line_info): Use constant `1', with a long explanatory
2289         comment.
2290         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
2291
2292 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
2293
2294         * jump.c (redirect_jump): If old label has no UID, don't try to
2295         delete it.
2296
2297 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
2298
2299         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
2300         If input is constant, do shifts at compile time.
2301
2302 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
2303
2304         * doc/extend.texi: Fix some more overfull hboxes.
2305
2306 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
2307
2308         PR optimization/4994
2309         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
2310         register moves.
2311
2312 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
2313
2314         PR c++/4574
2315         * expr.h (expand_and): Add mode argument.
2316         * expmed.c (expand_and): Add mode argument.
2317         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
2318         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
2319         * except.c (expand_builtin_extract_return_addr): Likewise.
2320         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
2321         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
2322         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
2323         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
2324         * config/c4x/c4x.md: Use GEN_INT (x) instead of
2325         gen_rtx (CONST_INT, VOIDmode, x).
2326
2327 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
2328
2329         PR c/4697:
2330         * stmt.c (warn_if_unused_value): Move side effects test once more.
2331
2332 2002-02-20  Torbjorn Granlund  <tege@swox.com>
2333
2334         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
2335         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
2336
2337 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
2338
2339         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
2340         SUBREG or ZERO_EXTEND.
2341
2342 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
2343
2344         * sh.h (current_function_anonymous_args): Remove.
2345         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
2346         of current_function_varargs and current_function_stdarg is set.
2347         * sh.c (sh_expand_prologue): Check current_function_varargs /
2348         current_function_stdarg / TARGET_SH5 instead of
2349         current_function_anonymous_args.
2350
2351         * sh64.h (TARGET_VERSION): Define.
2352
2353 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
2354
2355         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
2356         VRSAVE_REGNO on TARGET_ALTIVEC.
2357
2358 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
2359
2360         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
2361         bits of SImode const_int.
2362         (includes_rshift_p): Likewise.
2363         (print_operand): Call mask_operand and mask64_operand with correct
2364         mode.
2365         (rs6000_output_function_epilogue): Pad traceback table to word.
2366         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
2367         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
2368         mask64_operand with correct mode.
2369         (FUNCTION_ARG_REGNO_P): Correct parentheses.
2370
2371 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
2372
2373         PR debug/4461
2374         * varasm.c (get_pool_constant_mark): New.
2375         * rtl.h (get_pool_constant_mark): Add prototype.
2376         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
2377         be represented if it has not been output.
2378
2379 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
2380
2381         * combine.c (do_SUBST): Sanity check substitutions of
2382         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
2383         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
2384         CONST_INT into its operand.
2385         (known_cond): Likewise, for ZERO_EXTEND.
2386         * simplify-rtx.c (simplify_unary_operation): Fix condition to
2387         allow for simplification of wide modes.  Reject CONST_INTs in
2388         ZERO_EXTEND when their actual mode is not given.
2389
2390 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
2391
2392         * c-decl.c (pushdecl): If no global declaration is found for an
2393         extern declaration in block scope, try a limbo one.
2394
2395 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
2396
2397         PR c++/4401
2398         * c-common.c (pointer_int_sum): Moved from...
2399         * c-typeck.c (pointer_int_sum): ...here.
2400         * c-common.h (pointer_int_sum): Add prototype.
2401
2402 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
2403
2404         PR c++/5713
2405         * c-decl.c (duplicate_decls): Return 0 if issued error about
2406         redeclaration.
2407
2408 2002-02-20  Roger Sayle  <roger@eyesopen.com>
2409             Jakub Jelinek  <jakub@redhat.com>
2410
2411         PR c/4389
2412         * tree.c (host_integerp): Ensure that the constant integer is
2413         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
2414         when pos is zero or non-zero respectively.  Clarify comment.
2415         * c-format.c (check_format_info_recurse): Fix host_integerp
2416         usage; the pos argument should be zero when assigning to a
2417         signed HOST_WIDE_INT.
2418
2419 2002-02-20  Richard Henderson  <rth@redhat.com>
2420
2421         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
2422         of the operand, rather than assuming TImode.
2423         (ix86_expand_binop_builtin): Cope with commutative patterns
2424         using nonimmediate_operand for both operands.
2425         (ix86_expand_timode_binop_builtin): Likewise.
2426         (ix86_expand_store_builtin): Validate operand 1.
2427         (ix86_expand_unop1_builtin): Likewise.
2428
2429 2002-02-20  Philip Blundell  <philb@gnu.org>
2430
2431         PR 5705
2432         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
2433
2434 2002-02-20  Richard Henderson  <rth@redhat.com>
2435
2436         PR c/5615
2437         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
2438
2439 2002-02-20  Tom Tromey  <tromey@redhat.com>
2440
2441         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2442         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2443         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2444         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
2445         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
2446         unconditionally.
2447
2448 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
2449
2450         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
2451           for (const_int 0) in X not just INTVAL.
2452
2453 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
2454
2455         * doc/extend.texi: Avoid or reduce overfull hboxes.
2456
2457 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
2458
2459         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
2460         operations if the field does not start at a mode boundary.
2461
2462 2001-02-20      Joel Sherrill <joel@OARcorp.com>
2463
2464         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
2465         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
2466         Also done for -Acpu and -Amachine.
2467
2468 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
2469
2470         * cppinit.c (init_dependency_output): Take deps output file
2471         from -o if none given with -MF.  Suppress normal output.
2472         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
2473         * doc/cpp.texi, doc/invoke.texi: Update.
2474
2475 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
2476
2477         * toplev.c (output_quoted_string): Write unprintable
2478         characters with octal escapes.
2479
2480 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
2481
2482         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
2483         really_call_used[VRSAVE_REGNO] if not Altivec.
2484
2485 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
2486
2487         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
2488         MODE_MASK.
2489         (constant_pool_expr_1): Fix formatting.
2490         (rs6000_legitimize_reload_address): Likewise.
2491
2492 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2493
2494         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
2495         now that we have one.
2496
2497 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
2498
2499         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
2500         end of first block of bitfields (which was only seven bits);
2501         rename dummy to unused_1; remove comment which is no longer true.
2502
2503 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
2504
2505         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
2506
2507 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
2508
2509         PR 5399
2510         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
2511         if generating PIC.
2512
2513         PR 5054
2514         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
2515         arm_is_longcall_p rather than inspecting call-type cookie
2516         directly.
2517         (call_value_insn) [TARGET_THUMB]: Likewise.
2518
2519 2002-02-19  Graham Stott  <grahams@redhat.com>
2520
2521         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
2522
2523 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
2524
2525         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
2526         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
2527         (FP_SAVE_INLINE): Delete.
2528
2529         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
2530         * config/rs6000/eabi.asm: Remove ABI save restore routines.
2531         * config/rs6000/t-ppccomm: Build crtsavres.o.
2532         * config/rs6000/crtsavres.asm: New file.
2533
2534 2002-02-19  Philip Blundell  <philb@gnu.org>
2535
2536         * config/arm/arm.c (use_return_insn): Don't reject interrupt
2537         functions.
2538         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
2539         (output_return_instruction): Allow interrupt functions to return with
2540         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
2541         (arm_expand_prologue): Subtract 4 before stacking LR in an
2542         interrupt function.
2543
2544 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
2545
2546         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
2547         decl, not just FUNCTION_DECL.
2548         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
2549         (arm_assemble_integer): Likewise.
2550         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
2551         marked local.
2552
2553 2002-02-19  matthew green  <mrg@eterna.com.au>
2554
2555         * config.gcc (sparc-*-netbsdelf*): Enable target.
2556         (sparc64-*-netbsd*): New target.
2557         * config/sparc/netbsd-elf.h: New file.
2558         * config/sparc/t-netbsd64: New file.
2559
2560 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
2561
2562         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
2563
2564 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
2565
2566         * doc/invoke.texi: explicitly list the style guidelines that
2567         -Weffc++ checks for.
2568
2569 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
2570
2571         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
2572
2573 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2574
2575         PR other/5718
2576         * gcc.c (cpp_unique_options): Treat -o as indicating object file
2577         only if not -E.  If -E, pass -o through to the preprocessor.
2578
2579 2002-02-19  Kazu Hirata  <kazu@hxi.com>
2580
2581         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
2582         register number with an appropriate macro.
2583
2584 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
2585
2586         * doc/rtl.texi (Constants): Close @code tag.
2587
2588 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
2589
2590         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
2591         ("mmx_uavgv4hi3"): Same.
2592         ("pmulhrwv4hi3"): Same.
2593
2594         * tree-inline.c (walk_tree): Handle vectors.
2595
2596         * c-common.c (constant_expression_warning): Handle vectors.
2597         (overflow_warning): Same.
2598
2599         * sched-deps.c (sched_analyze_2): Handle vectors.
2600
2601         * rtlanal.c (rtx_unstable_p): Handle vectors.
2602         (rtx_varies_p): Same.
2603         (count_occurrences): Same.
2604         (regs_set_between_p): Same.
2605         (modified_between_p): Same.
2606         (modified_in_p): Same.
2607         (volatile_insn_p): Same.
2608         (volatile_refs_p): Same.
2609         (side_effects_p): Same.
2610         (may_trap_p): Same.
2611         (inequality_comparisons_p): Same.
2612         (replace_regs): Same.
2613         (computed_jump_p_1): Same.
2614
2615         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
2616         argument.
2617         (inner_mode_array): New.
2618         (copy_rtx): Handle vectors.
2619         (copy_most_rtx): Same.
2620         (rtx_equal_p): Same.
2621         (get_mode_alignment): Adjust for vectors.
2622
2623         * resource.c (mark_referenced_resources): Handle vectors.
2624         (mark_set_resources): Same.
2625
2626         * reload1.c (eliminate_regs): Handle vectors.
2627         (elimination_effects): Same.
2628         (scan_paradoxical_subregs): Same.
2629
2630         * reload.c (subst_reg_equivs): Handle vectors.
2631
2632         * regrename.c (scan_rtx): Handle vectors.
2633
2634         * regclass.c (reg_scan_mark_refs): Handle vectors.
2635
2636         * recog.c (find_single_use_1): Handle vectors.
2637
2638         * local-alloc.c (equiv_init_varies_p): Handle vectors.
2639         (contains_replace_regs): Same.
2640         (memref_referenced_p): Same.
2641
2642         * integrate.c (copy_rtx_and_substitute): Handle vectors.
2643         (subst_constants): Same.
2644
2645         * genattrtab.c (attr_copy_rtx): Handle vectors.
2646         (encode_units_mask): Same.
2647         (clear_struct_flag): Same.
2648         (count_sub_rtxs): Same.
2649
2650         * gcse.c (want_to_gcse_p): Handle vectors.
2651         (oprs_unchanged_p): Same.
2652         (hash_expr_1): Same.
2653         (oprs_not_set_p): Same.
2654         (expr_killed_p): Same.
2655         (compute_transp): Same.
2656         (store_ops_ok): Same.
2657
2658         * function.c (purge_addressof_1): Do not allow paradoxical subregs
2659         of vectors.
2660         (fixup_var_refs_1): Same.
2661         (instantiate_virtual_regs_1): Same.
2662
2663         * fold-const.c (operand_equal_p): Handle vectors.
2664         (fold): Same.
2665         (rtl_expr_nonnegative_p): Same.
2666
2667         * flow.c (mark_used_regs): Handle vectors.
2668
2669         * df.c (df_uses_record): Handle vectors.
2670
2671         * cselib.c (cselib_subst_to_values): Handle vectors.
2672         (cselib_mem_conflict_p): Same.
2673         (hash_rtx): Same.
2674
2675         * cse.c (canon_reg): Handle vectors.
2676         (fold_rt): Same.
2677         (cse_process_notes): Same.
2678         (count_reg_usage): Same.
2679         (canon_hash): Same.
2680
2681         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
2682
2683         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
2684
2685         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
2686         (gen_rtx): Handle CONST_VECTOR.
2687         (gen_const_vector_0): New.
2688         (copy_rtx_if_shared): CONST_VECTORs can be shared.
2689         (reset_used_flags): Same.
2690         (copy_insn_1): Same.
2691         (initializer_constant_valid_p): Handle VECTOR_CST.
2692
2693         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
2694
2695         * doc/rtl.texi (Constants): Document const_vector.
2696         (CONST0_RTX): Update for vectors.
2697         (RTL sharing): Same.
2698
2699         * print-tree.c (print_node): Add case for VECTOR_CST.
2700
2701         * tree.h (TREE_VECTOR_CST_ELTS): New.
2702         (struct tree_vector): New.
2703         (union tree_node): Add vector node.
2704         (build_vector): Add prototype.
2705
2706         * tree.def (VECTOR_CST): New.
2707
2708         * tree.c (build_vector): New.
2709
2710         * expmed.c (make_tree): Handle CONST_VECTOR.
2711
2712         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
2713         (CONST_VECTOR_ELT): New.
2714         (CONST_VECTOR_NUNITS): New.
2715
2716         * machmode.h (GET_MODE_INNER): New.
2717         (DEF_MACHMODE): Accept 8th arg.
2718
2719         * machmode.def: Add 8th argument for vector inner mode.
2720         Add inner vector modes for vectors.
2721
2722         * rtl.def (VEC_CONST): Remove.
2723         (CONST_VECTOR): New.
2724
2725         * expr.c (clear_storage): Allow vectors.
2726         (is_zeros_p): Handle VECTOR_CST.
2727
2728         * varasm.c (output_constant_pool): Handle vectors.
2729         (rtx_const): Add veclo and vechi fields.
2730         (kind): Add RTX_VECTOR.
2731         (decode_rtx_const): Add case for vector.
2732
2733         * config/rs6000/rs6000-protos.h: Add zero_constant.
2734
2735         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
2736         constants.  Force easy vector constants into memory.
2737         (easy_vector_constant): New.
2738         (emit_easy_vector_constant): New.
2739         (rs6000_legitimize_reload_address): Do not generate bad reloads on
2740         darwin.
2741
2742         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
2743         instruction does.
2744         ("altivec_lvxl"): Same.
2745         (altivec_lvebx): Same.
2746         (altivec_lvehx): Same.
2747         (altivec_lvewx): Same.
2748         ("*movv4si_const0"): New.
2749         ("*movv4sf_const0"): New.
2750         ("*movv8hi_const0"): New.
2751         ("*movv16qi_const0"): New.
2752
2753 2002-02-18  Kazu Hirata  <kazu@hxi.com>
2754
2755         * config/h8300/h8300.c (notice_update_cc): Use
2756         cc_status.value2.
2757
2758 2002-02-18  Kazu Hirata  <kazu@hxi.com>
2759
2760         * config/h8300/h8300.md (divmod patterns): Change the
2761         constraints for operands[1] to register_operand.
2762
2763 2002-02-18  Kazu Hirata  <kazu@hxi.com>
2764
2765         * config/h8300/h8300-protos.h: Remove the prototype for
2766         p_operand.
2767         * config/h8300/h8300.c (p_operand): Remove.
2768         * config/h8300/h8300.md: Replace p_operand with
2769         const_int_operand.
2770
2771 2002-02-18 Philip Blundell <pb@nexus.co.uk>
2772
2773         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
2774         comment.
2775         (output_return_instruction): Allow use of LDR to unstack
2776         return addresss even for interrupt handlers or when
2777         interworking.  If compiling for ARMv5, use interworking-safe
2778         return instructions by default.  Remove duplicated code and
2779         lengthy "strcat" sequences.
2780
2781 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2782
2783         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
2784         (LINK_EH_SPEC): Define.
2785         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
2786
2787 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
2788
2789         * config/s390/s390.c (s390_emit_prologue): Do not set the
2790         frame_related flag for call-clobbered registers.
2791
2792 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
2793
2794         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
2795         (construct_container): Fix handling of SSE operands.
2796         (ix86_expand_builtin): Fix handling of 64bit pointers.
2797         (mmx_maskmovq_rex): New pattern.
2798
2799 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
2800
2801         * regrename.c (kill_set_value): Handle subregs properly.
2802
2803 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
2804
2805         * objc/objc-act.c (handle_impent): Remove leading '*'
2806         from objc_class_name.
2807
2808 2002-02-17  Richard Henderson  <rth@redhat.com>
2809
2810         * config/alpha/alpha.c (some_small_symbolic_operand,
2811         some_small_symbolic_operand_1, split_small_symbolic_operand,
2812         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
2813         Handle small SYMBOL_REFs anywhere, not just inside memories.
2814         * config/alpha/alpha-protos.h: Update.
2815         * config/alpha/alpha.h (PREDICATE_CODES): Update.
2816         * config/alpha/alpha.md (small symbolic operand splitter): Update.
2817
2818 2002-02-17  Roland McGrath  <roland@frob.com>
2819
2820         * config.gcc (powerpc-*-gnu-gnualtivec*,
2821         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
2822         * config/rs6000/gnu.h: New file.
2823         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
2824         Grok "gnu" in rs6000_abi_name.
2825         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
2826         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
2827         Grok -mcall-gnu analogous to -mcall-linux et al.
2828         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
2829         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
2830         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
2831
2832 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
2833
2834         PR c/3444:
2835         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
2836         shortening.
2837
2838 2002-02-17  Philipp Thomas  <pthomas@suse.de>
2839
2840         * config/cris/cris.h: Undefine STARTFILE_SPEC and
2841         ENDFILE_SPEC before (re)defining them.
2842
2843 2002-02-17  Kazu Hirata  <kazu@hxi.com>
2844
2845         * config/h8300/h8300.c: Fix formatting.
2846         * config/h8300/h8300.h: Likewise.
2847
2848 2002-02-17  Philipp Thomas  <pthomas@suse.de>
2849
2850         * doc/tm.texi: Explain why empty strings should not be
2851         marked for translation.
2852
2853 2002-02-17  Philipp Thomas  <pthomas@suse.de>
2854
2855         * final.c (output_operand_lossage): Changed to accept
2856         printf style arguments. Change calls where necessary.
2857         * output.h (output_operand_lossage): Change declaration
2858         accordingly. Update copyright.
2859         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
2860         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
2861         Update copyright date where necessary.
2862
2863         * config/i386/i386.c (print_operand): Likewise. Remove use of
2864         sprintf.
2865
2866         * config/cris/cris.c (cris_operand_lossage): Likewise.
2867         Rename parameter so that exgettext recognizes it as
2868         translatable message.
2869         (LOSE_AND_RETURN): Rename parameter to msgid.
2870
2871 2002-02-17  Kazu Hirata  <kazu@hxi.com>
2872
2873         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
2874         hard coded register number with an appropriate macro.
2875         (HARD_REGNO_MODE_OK): Likewise.
2876         (ARG_POINTER_REGNUM): Likewise.
2877         (STATIC_CHAIN_REGNUM): Likewise.
2878         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
2879         * config/h8300/h8300.md (define_constants): Define more
2880         register numbers.
2881
2882 2002-02-17  Philipp Thomas  <pthomas@suse.de>
2883
2884         * config/i386/i386.h: Don't mark empty strings for translation.
2885
2886 2002-02-16  H.J. Lu <hjl@gnu.org>
2887
2888         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
2889
2890 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
2891
2892         * cppinit.c (merge_include_chains): Check for brack being
2893         NULL before attempting to merge it with qtail.
2894
2895 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
2896
2897         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
2898         DBX_DEBUG.
2899
2900 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2901
2902         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
2903
2904 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2905
2906         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
2907         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
2908         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
2909
2910 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2911
2912         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
2913         now only if !TARGET_FIX.
2914         (*movsi_nt_vms_fix): New pattern.
2915
2916 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
2917
2918         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
2919         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
2920         (alpha_sa_mask, alpha_sa_size): Reflect above change.
2921         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
2922         (alpha_start_function, alpha_expand_epilogue): Likewise.
2923         (unicosmk_gen_dsib): Likewise.
2924
2925 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2926
2927         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
2928
2929 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
2930
2931         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
2932         check_and_change_labels, s390_final_chunkify): Delete.
2933         (s390_split_branches, s390_chunkify_pool): New functions.
2934         (s390_function_prologue): Call them.
2935
2936         * config/s390/s390.h (S390_REL_MAX): Delete.
2937         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
2938
2939         * config/s390/s390.md (cjump, icjump, jump): Fix length
2940         attribute calculation.
2941
2942
2943 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
2944
2945         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
2946         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
2947
2948 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2949
2950         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
2951         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
2952         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
2953
2954 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
2955
2956         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
2957
2958 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
2959
2960         * reload.c (find_dummy_reload): Check that an output register
2961         is valid for its mode.
2962
2963 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
2964
2965         * combine.c (known_cond): After replacing the REG of a SUBREG, try
2966         to simplify it.
2967
2968         * function.c (assign_parms): Demote promoted argument passed by
2969         transparent reference.
2970
2971 2001-02-14      Joel Sherrill <joel@OARcorp.com>
2972
2973         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
2974         -Acpu() and -Amachine() to eliminate warnings.
2975
2976 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
2977
2978         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
2979
2980 2002-02-14  Kazu Hirata  <kazu@hxi.com>
2981
2982         * config/h8300/h8300-protos.h: Update the prototype for
2983         const_costs.
2984         * config/h8300/h8300.c (const_costs): Treat SET as a little
2985         more expensive operation.
2986         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
2987         reference to const_costs.
2988
2989 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
2990
2991         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
2992
2993 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
2994
2995         PR c/5503:
2996         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
2997         use arguments from newtype.
2998
2999 2002-02-13  Eric Christopher  <echristo@redhat.com>
3000
3001         * config/mips/mips.c (override_options): Add check for march/mipsX
3002         on the same command line. Fix error message in cpu processing.
3003         Remove architecture and ISA checks.
3004
3005 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
3006
3007         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
3008
3009         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
3010
3011 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
3012
3013         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
3014         alternatives.
3015         ("*movv8hi_internal1"): Same.
3016         ("*movv16qi_internal1"): Same.
3017         ("*movv4sf_internal1"): Same.
3018
3019         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
3020         not push_reload for altivec modes.
3021
3022 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
3023
3024         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
3025         all RTEMS targets including removal of #includes from config/*/rtems*.h
3026         file and adding them to tm_file setting. Added xm_defines=POSIX to
3027         many targets.
3028         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
3029         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
3030         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
3031         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
3032         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
3033         config/m68k/rtemself.h: Ditto.
3034         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
3035         config/mips/rtems64.h: Ditto.
3036         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
3037         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
3038         Ditto.
3039         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
3040         config/sparc/rtemself.h: Ditto.
3041         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
3042         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
3043         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
3044         more like arm-elf.
3045         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
3046         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
3047         target made more similar to i386-elf.
3048         * config/i386/t-rtems-i386: Added soft float support and multilibs.
3049         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
3050         be similar to config/m68k/t-m68kelf.
3051         * gthr-rtems.h: Encapsulate with extern "C" for C++.
3052
3053 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
3054
3055         * regmove.c (kill_value): Handle subregs.
3056
3057 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
3058
3059         * i386.md (mul patterns): Allow memory operand to be first;
3060         add expanders where needed; fix constraints.
3061         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
3062         Allow memory operand to be the first.
3063
3064         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
3065         operands.
3066
3067 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
3068
3069         PR c/5681:
3070         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
3071         GET_MODE (x).
3072
3073 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
3074
3075         PR optimization/5547:
3076         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
3077         all valid IA-32 address modes involving non-scaled %ebx and
3078         GOT/GOTOFF as displacement.
3079
3080 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
3081
3082         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
3083         after emitting ltorg insns.
3084
3085         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
3086         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
3087         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
3088         *abssf2): Fix "op_type" attribute.
3089
3090 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
3091
3092         * mkconfig.sh: Avoid using a subshell redirect.
3093         ($output.T): Change to $(output)T.
3094         (ENABLE_NLS): Remove unneeded undef.
3095
3096         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
3097         * config/alpha/x-vms (libsubdir): Define.
3098
3099         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
3100         register frame procedures. Optimize retrieving context.
3101
3102         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
3103         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
3104         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
3105
3106 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3107
3108         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
3109         Make same change as for find_base_value.
3110
3111 2002-02-13  Kazu Hirata  <kazu@hxi.com>
3112
3113         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
3114         of QImode and SImode.
3115
3116 2002-02-13  Kazu Hirata  <kazu@hxi.com>
3117
3118         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
3119         length computation of movsi.
3120         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
3121
3122 2002-02-13  Kazu Hirata  <kazu@hxi.com>
3123
3124         * config/h8300/h8300.md (subqi3): Tighten the predicate for
3125         operands[2] to register_operand.
3126
3127 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
3128
3129         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
3130
3131 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
3132
3133         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
3134         for altivec_lvx* and altivec_stvx*.
3135         ("*movv4si_internal"): Add constraint for loading from GPRs.
3136         ("*movv8hi_internal1"): Same.
3137         ("*movv16qi_internal1"): Same.
3138         ("*movv4sf_internal1"): Same.
3139
3140         * config/rs6000/rs6000.c (altivec_register_operand): New.
3141
3142         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
3143         altivec_register_operand.
3144
3145 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
3146
3147         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
3148         handle SYMBOL_REF.
3149
3150 2002-02-13  Stan Shebs  <shebs@apple.com>
3151
3152         * c-typeck.c (digest_init): Handle vectors.
3153         (really_start_incremental_init): Same.
3154         (pop_init_level): Same.
3155         (process_init_element): Same.
3156
3157         * varasm.c (output_constant): Same.
3158
3159         * expr.c (clear_storage): Same.
3160         (store_constructor): Same.
3161
3162 2002-02-12  Eric Christopher  <echristo@redhat.com>
3163
3164         * explow.c (hard_function_value): Add comment explaining
3165         signed/unsigned comparison.
3166
3167 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
3168
3169         * jump.c (never_reached_warning): Add finish argument.
3170         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
3171         real insn after end.
3172         * rtl.h (never_reached_warning): Adjust prototype.
3173         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
3174         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
3175         never_reached_warning.
3176
3177 2002-02-12  Graham Stott  <grahams@redhat.com>
3178
3179         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
3180
3181 2002-02-12  Kazu Hirata  <kazu@hxi.com>
3182
3183         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
3184         logical shifts on H8/300.
3185         (shift_alg_si): Improve several shifts on H8/300.
3186         (get_shift_alg): Likewise.
3187
3188 2002-02-12  Graham Stott  <grahams@redhat.com>
3189
3190         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
3191
3192 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3193
3194         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
3195         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
3196
3197 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
3198
3199         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
3200         non-CONST_INT through default_assemble_integer.
3201         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
3202         <case 8>: Abort for CONST_DOUBLE.
3203
3204 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3205
3206         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
3207         is specified.
3208         * config/pa/pa-linux.h (LIB_SPEC): Delete.
3209         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
3210
3211 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
3212
3213         * config/stormy16/stormy16.md (zero_extendqihi2): New.
3214
3215 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
3216
3217         * regrename.c (regrename_optimize): Don't accept a
3218         part-clobbered register if the replaced register is not part
3219         clobbered.
3220
3221         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
3222         take padding into account when computing the argument value.
3223
3224         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
3225
3226         * combine.c (try_combine): Apply substitutions in
3227         CALL_INSN_FUNCTION_USAGE too.
3228
3229 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
3230
3231         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
3232         __builtin_altivec_abs*.
3233         (bdesc_abs): New.
3234
3235         * config/rs6000/rs6000.h (rs6000_builtins): Add
3236         ALTIVEC_BUILTIN_ABS*.
3237
3238         * config/rs6000/altivec.h: Use const char for builtins expecting
3239         literals.
3240         (vec_abs): New versions for C and C++.
3241         (vec_abss): Same.
3242
3243 2002-02-10  Kazu Hirata  <kazu@hxi.com>
3244
3245         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
3246         using Pmode.
3247
3248 2002-02-10  Kazu Hirata  <kazu@hxi.com>
3249
3250         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
3251         constant definition from h8300.md.
3252         (FRAME_POINTER_REGNUM): Likewise.
3253         * config/h8300/h8300.md (define_constants): Add FP_REG.
3254
3255 2002-02-10  Kazu Hirata  <kazu@hxi.com>
3256
3257         * config/h8300/h8300.c (print_operand): Remove redundant code.
3258
3259 2002-02-10  Kazu Hirata  <kazu@hxi.com>
3260
3261         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
3262         * config/h8300/h8300.c (byte_reg): Make it static.
3263
3264 2002-02-10  Richard Henderson  <rth@redhat.com>
3265
3266         PR c/5623
3267         * c-typeck.c (incomplete_type_error): Handle flexible array members.
3268
3269 2002-02-10  Richard Henderson  <rth@redhat.com>
3270
3271         PR c++/5624
3272         * tree.c (append_random_chars): Don't abort if main_input_filename
3273         does not exist.
3274
3275 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
3276
3277         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
3278
3279 2002-02-10  Kazu Hirata  <kazu@hxi.com>
3280
3281         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
3282         (pushhi1): Likewise.
3283
3284 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3285
3286         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
3287         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
3288
3289 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
3290
3291         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
3292         remove MASK_VIS.
3293         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
3294
3295 2002-02-09  Kazu Hirata  <kazu@hxi.com>
3296
3297         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
3298         a half of an SImode register on H8/300.
3299
3300 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
3301
3302         * i386.md (movdi_2): Add missing '!'.
3303
3304 2002-02-09  Kazu Hirata  <kazu@hxi.com>
3305
3306         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
3307         definitions.
3308
3309 2002-02-09  Kazu Hirata  <kazu@hxi.com>
3310
3311         * config/h8300/h8300.md (length): Correct the distance valid
3312         for the short branch.
3313
3314 2002-02-09  Kazu Hirata  <kazu@hxi.com>
3315
3316         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
3317
3318 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
3319
3320         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
3321         registers in SImode.
3322         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
3323         part-clobbered.
3324
3325         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
3326         patch.
3327
3328         Contribute sh64-elf.
3329         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
3330         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
3331         (sh_cannot_modify_jumps_p): New function.
3332         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
3333         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
3334         (sh_ms_bitfield_layout_p): New function.
3335         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
3336                     Zack Weinberg  <zack@codesourcery.com>
3337         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
3338         expand_simple_binop instead of expand_binop.
3339         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
3340         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
3341         use of .quad and .uaquad.
3342         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
3343         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
3344         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
3345         * config/sh/sh.md (movdi_const, movdi_const_32bit,
3346         movdi_const_16bit): Make sure all CONSTs have modes.
3347         (sym2PIC): Ditto, but by adjusting all callers.
3348         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
3349         if the prologue calls the SHmedia argument decoder or register
3350         saver.
3351         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
3352         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
3353         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
3354         (sh_expand_epilogue): Don't emit USE of return target register.
3355         (prepare_move_operands): Legitimize DImode PIC addresses.
3356         (sh_media_register_for_return): Skip tr0, used to initialize the
3357         PIC register.
3358         (sh_expand_prologue): Remove explicit USE of return register.
3359         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
3360         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
3361         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
3362         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
3363         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
3364         EXTRA_CONSTRAINT_T.
3365         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
3366         (MOVI_SHORI_BASE_OPERAND_P): New.
3367         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
3368         (EXTRA_CONSTRAINT_T): Define in terms of them.
3369         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
3370         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
3371         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
3372         alternatives supporting TARGET_REGS.
3373         (UNSPEC_GOTPLT): New constant.
3374         (movdi split): Move incrementing of LABEL_NUSES...
3375         (movdi_const, movdi_const_32bit): Here.  Use
3376         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
3377         (movdi_const_16bit): New.
3378         (call, call_value) [flag_pic]: Use GOTPLT.
3379         (call_pop, call_value_pop): New expands.
3380         (call_pop_compact, call_pop_rettramp): New insns.
3381         (call_value_pop_compact, call_value_pop_rettramp): New insns.
3382         (sibcall) [flag_pic]: Use GOT.
3383         (builtint_setjmp_receiver): Remove bogus, unused expand.
3384         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
3385         (*pt, *ptb, ptrel): New insns.
3386         (sym2GOT): Handle DImode GOT.
3387         (sym2GOTPLT, symGOTPLT2reg): New expands.
3388         (sym2PIC): New expand.
3389         (shcompact_return_tramp): Use GOTPLT to return trampoline.
3390         (shcompact_return_tramp_i): Use return register explicitly.
3391         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
3392         disable flag_reorder_blocks.
3393         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
3394         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
3395         clobbers, for clarity.
3396         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
3397         restoring of r0 in macl as MAYBE_DEAD.
3398         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
3399         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
3400         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
3401         alter_subreg all over.
3402         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
3403         reload, instead of emitting instructions that would require
3404         reloading.
3405         (casesi_load_media): Add missing modes.
3406         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
3407         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
3408         as used if the argument decoder is called.
3409         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
3410         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
3411         Pmode, then extend it to DImode if necessary.
3412         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
3413         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
3414         constants in FPU-enabled SHmedia, let them be loaded from memory.
3415         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
3416         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
3417         Adjust whitespace in assembly output templates.
3418         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
3419         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
3420         mode of if_then_else.
3421         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
3422         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
3423         sh.h.
3424         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
3425                     Joern Rennecke <amylaar@redhat.com>
3426         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
3427         (SUBTARGET_CPP_PTR_SPEC): New.
3428         (SUBTARGET_CPP_SPEC): Remove.
3429         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
3430         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
3431         Fix typo in previous checkin.
3432         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
3433         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
3434         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
3435                     Alexandre Oliva  <aoliva@redhat.com>
3436         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
3437         what single FP register can hold for SHmedia target.
3438         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
3439                     Alexandre Oliva  <aoliva@redhat.com>
3440         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
3441         Do not split into SUBREG.
3442         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
3443         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
3444         and added new functions as specified in SH5 ABI r9.
3445         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
3446         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
3447         8-byte boundary.
3448         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
3449         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
3450         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
3451         and consttable_window_ends.
3452         2001-06-03  Graham Stott  <grahams@redhat,com>
3453         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
3454         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
3455         * config/sh/sh.c (print_operand): Handle floating-point pair,
3456         vector and matrix registers.
3457         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
3458         vector modes into account.
3459         * config/sh/sh.md (movv2sf): Split move between registers into
3460         movdf.
3461         (movv4sf, movv16sf): Introduce insns that get split only after
3462         reload.
3463         * config/sh/shmedia.h: Fix Copyright dates.
3464         * config/sh/ushmedia.h: Likewise.  Move loop counter
3465         declarations into conditionals that uses them.
3466         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
3467         loop boundary.
3468         * config/sh/sshmedia.h: Fix Copyright dates.
3469         (sh_media_PUTCFG): Fix constraints.
3470         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
3471         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
3472         ptrmemfunc_vbit_in_delta for SH5.
3473         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
3474         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
3475         * invoke.texi: Likewise.
3476         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
3477         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
3478         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
3479         GCC_pop_shmedia_regs_nofpu): New global symbols.
3480         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
3481         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
3482         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
3483         compact function with nonlocal labels.
3484         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
3485         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
3486         (initial_elimination_offset): Account for their stack space.
3487         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
3488         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
3489         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
3490         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
3491         least one of the operands to be a register.
3492         (movv2sf): Likewise.  Renamed to movv2sf_i.
3493         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
3494         prepare_move_operands() before emitting SHmedia insns.
3495         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
3496         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
3497         Don't save nor initialize r12.  Don't mis-align the stack.
3498         Pad the code with a nop.
3499         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
3500         stack.
3501         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
3502         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
3503         [__SHMEDIA__]: Implement.
3504         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
3505         * config/sh/sh.md: Set latency of `pt' closer to reality.
3506         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
3507         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
3508         Set move, load and store type attributes.
3509         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
3510         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
3511         profiling.
3512         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
3513         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
3514         * config/sh/sh.c (sh_media_register_for_return): New function.
3515         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
3516         branch-target register.
3517         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
3518         * config/sh/sh.md (return_media_i): Use any call-clobbered
3519         branch-target register.
3520         (return_media): If r18 wasn't copied in the prologue, copy it
3521         here.
3522         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
3523         Clear class FP0_REGS.
3524         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
3525         from elf.h.
3526         2001-03-08  DJ Delorie  <dj@redhat.com>
3527         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
3528         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
3529         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
3530         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
3531         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
3532         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
3533         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
3534         return value correctly for call_cookie.
3535         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
3536         * config/sh/crt1.asm (start): Modified so as to call
3537         ___setup_argv_and_call_main.
3538         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
3539         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
3540         SHmedia mode.
3541         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
3542         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
3543         (STRIP_NAME_ENCODING): Use it.
3544         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
3545         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
3546         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
3547         prepare_scc_operands().
3548         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
3549         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
3550         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
3551         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
3552         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
3553         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
3554         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
3555         used in shcompact_incoming_args.
3556         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
3557         change.
3558         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
3559         mode.
3560         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
3561         Adjust accordingly.
3562         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
3563         Simplify.  Adjust.  Add sanity check.
3564         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
3565         FPU_SINGLE_BIT.
3566         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
3567         TARGET_SHCOMPACT.
3568         (udivsi3, divsi3): Use them.
3569         (force_mode_for_call): New insn.
3570         (call, call_value, sibcall_value): Emit it before SHcompact
3571         calls.
3572         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
3573         * config/sh/sh.md (call, call_value, sibcall): Make sure the
3574         call cookie is non-NULL before taking its value.
3575         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
3576         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
3577         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
3578         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
3579         block.
3580         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
3581         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
3582         temporary for stack adjusts.  Use MACL and MACH to pass
3583         arguments to shcompact_incoming_args.
3584         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
3585         clobber r1.
3586         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
3587         (nested_trampoline): Load static chain address into r1.
3588         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
3589         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
3590         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
3591         fp_arith_reg_operand().
3592         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
3593         * config/sh/sh.md (casesi): Sign-extend the first two operands,
3594         and use signed compares for them.
3595         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
3596         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
3597         ones properly aligned.
3598         (find_barrier): Account for extra alignment needed for 8-byte wide
3599         constants.
3600         (machine_dependent_reorg): Require a label for the second 4-byte
3601         constant after an 8-byte one.
3602         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
3603         change.
3604         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
3605         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
3606         last_float when switching float modes.
3607         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
3608         auto-increment for general-purpose registers.
3609         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
3610         result.
3611         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
3612         for stack adjust.
3613         * config/sh/sh.c (sh_builtin_saveregs): Support using all
3614         registers for varargs.
3615         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
3616         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
3617         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
3618         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
3619         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
3620         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
3621         call_cookie accordingly.
3622         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
3623         (SHCOMPACT_BYREF): Likewise.
3624         (SHCOMPACT_FORCE_ON_STACK): New macro.
3625         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
3626         (sh_builtin_saveregs): Likewise.
3627         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
3628         shcompact_incoming_args): Use new shift values.  Support
3629         sequences of consecutive and non-consecutive pushes/pops.
3630         * config/sh/sh.md (return): Don't explicitly use PR_REG.
3631         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
3632         * config/sh/sh.h (TEXT_SECTION): Define.
3633         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
3634         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
3635         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
3636         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
3637         return values on FPU-enabled SHmedia.
3638         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
3639         FPU-enabled SHmedia.
3640         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
3641         value is returned in a non-FP reg and is not returned by
3642         reference.
3643         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
3644         jump_ind.
3645         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
3646         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
3647         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
3648         quad-aligned to be passed by callee-copy reference.
3649         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
3650         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
3651         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
3652         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
3653         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
3654         copying low-numbered FP regs to r7 and r8.
3655         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
3656         FP regs to general-purpose regs only if the copy was passed on the
3657         stack.
3658         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
3659         copying FP reg to r9.
3660         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
3661         copy FP regs to general-purpose regs only in outgoing calls.
3662         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
3663         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
3664         HOST_WIDE_INT.
3665         * config/sh/sh.h (struct sh_args): Document all fields.
3666         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
3667         passed partially on the stack should not consider making
3668         sibcalls.
3669         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
3670         stack_regs only for incoming calls.  When passing FP args,
3671         make sure there are FP regs available before modifying
3672         call_cookie.
3673         (SHCOMPACT_BYREF): Pass double args in general-purpose
3674         registers by reference.
3675         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
3676         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
3677         attempt to generate sibcalls if the caller got any arguments
3678         by reference.
3679         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
3680         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
3681         to 8-byte boundaries.
3682         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
3683         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
3684         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
3685         stored in the stack.
3686         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
3687         for the offsets to have the ISA bit set.
3688         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
3689         invocation.  Use beq instead of bgt to mark end of sequence of
3690         loads.
3691         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
3692         bgt to mark end of sequence of stores.
3693         * config/sh/sh.c (arith_operand): Don't check whether
3694         CONST_OK_FOR_J for now.
3695         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
3696         instead of long for conversion.
3697         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
3698         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
3699         before passing it to fprintf.
3700         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
3701         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
3702         Call set_fpscr before reading/writing SR.
3703         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
3704         Call set_fpscr.
3705         * config/sh/lib1funcs.asm: Add `.align 2' directives before
3706         SHmedia code.
3707         (FMOVD_WORKS): Define on SH5 with FPU.
3708         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
3709         setting.
3710         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
3711         _fpscr_values.
3712         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
3713         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
3714         address.
3715         (ia_main_table): Ditto.
3716         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
3717         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
3718         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
3719         the definitions from sh.h.
3720         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
3721         TARGET_SH5.
3722         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
3723         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
3724         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
3725         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
3726         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
3727         Increment LABEL_NUSES.
3728
3729         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
3730         TARGET_SH5.
3731         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
3732         defined.
3733         * config/sh/elf.h (SIZE_TYPE): Likewise.
3734         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
3735         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
3736         shcompact_incoming_args): Load switch table addresses using
3737         datalabel.
3738         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
3739         (NO_BUILTIN_SIZE_TYPE): Define.
3740         (SIZE_TYPE): Don't define.
3741         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
3742         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
3743         definition of __SH5__=32 for -m5-compact-nofpu.
3744         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
3745         ADDR_DIFF_VEC.
3746         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
3747         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
3748         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
3749         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
3750         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
3751         (INSN_LENGTH_ALIGNMENT): Likewise.
3752         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
3753         * config/sh/sh.md (call, call_value, sibcall): Simplify
3754         copying of non-branch-target register.
3755         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
3756         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
3757         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
3758         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
3759         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
3760         floating-point values as structs.
3761         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
3762         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
3763         general-purpose register.
3764         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
3765         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
3766         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
3767         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
3768         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
3769         (ENCODE_SECTION_INFO): Enclose variables and constants in
3770         DATALABEL unspecs.
3771         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
3772         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
3773         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
3774         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
3775         only for LABEL_REFs.  For SYMBOL_REFs, prepend
3776         SH_DATALABEL_ENCODING to the symbol name.
3777         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
3778         convert_mode().
3779         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
3780         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
3781         UNSPEC_DATALABEL.
3782         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
3783         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
3784         (DATALABEL_REF_P): Don't require CONST.
3785         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
3786         REL label.
3787         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
3788         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
3789         right.
3790         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
3791         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
3792         Use shallow_copy_rtx and PUT_MODE to change the mode of
3793         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
3794         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
3795         on SHmedia using GENERAL_REGs.
3796         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
3797         bltu_media_i): Fix reversion of conditions.
3798         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
3799         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
3800         * config/sh/sh.c (output_far_jump): Save r13 in macl.
3801         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
3802         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
3803         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
3804         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
3805         (GCC_nested_trampoline): Likewise.
3806         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
3807         * config/sh/sh.c (gen_datalabel_ref): Define.
3808         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
3809         (INITIALIZE_TRAMPOLINE): Likewise.
3810         (TRAMPOLINE_ADJUST_ADDRESS): Define.
3811         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
3812         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
3813         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
3814         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
3815         (ic_invalidate): Adjust for SH5.
3816         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
3817         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
3818         _nested_trampoline.
3819         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
3820         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
3821         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
3822         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
3823         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
3824         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
3825         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
3826         * config/sh/sh.c (target_reg_operand): Match only target-branch
3827         registers and pseudos that aren't virtual registers.
3828         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
3829         Copy operands that don't match target_reg_operand to pseudos.
3830         (call_media, call_value_media, sibcall_media): Use
3831         target_reg_operand instead of target_operand.
3832         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
3833         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
3834         * config/sh/sh.c (target_reg_operand): Match hardware registers
3835         other than branch-target registers.
3836         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
3837         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
3838         (fpscr_values) [SH5 == 32]: Define.
3839         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
3840         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
3841         Handle function addresses coming in SUBREGs.
3842         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
3843         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
3844         shcompact_return_trampoline): Use datalabel where appropriate.
3845         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
3846         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
3847         general-purpose register to copy one branch-target register to
3848         another.
3849         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
3850         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
3851         SYMBOL_REFs with VOIDmode.
3852         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
3853         bltu_media_i): New insns.
3854         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
3855         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
3856         (INIT_CUMULATIVE_ARGS): Likewise.
3857         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
3858         * machmode.def (V16SFmode): New mode.
3859         * c-common.c (type_for_mode): Support V2SF and V16SF.
3860         * tree.c (build_common_tree_nodes_2): Likewise.
3861         * tree.h (tree_index): Likewise.
3862         * calls.c (emit_call_1): Take args_so_far.  Adjust all
3863         callers.  Introduce CALL_POPS_ARGS.
3864         * tm.texi (CALL_POPS_ARGS): Document.
3865         * config/sh/crt1.asm: Implement in SHmedia mode.
3866         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
3867         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
3868         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
3869         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
3870         Implement divsi and udivsi in SHmedia mode.  Introduce
3871         SHcompact trampolines.
3872         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
3873         only in SHmedia64.
3874         (regno_reg_class): Rewrite.
3875         (fp_reg_names): Remove.
3876         (sh_register_names, sh_additional_register_names): New.
3877         (print_operand): Added `u'.  Support SUBREGs in addresses.
3878         Add parentheses around shifted CONSTs.
3879         (output_file_start): Output .mode and .abi directives.
3880         (shiftcosts, addsubcosts, multcosts): Adjust.
3881         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
3882         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
3883         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
3884         bytes, not registers.  Take into account the need for the
3885         SHcompact incoming args trampoline.  Adjust all callers.
3886         (sh_expand_prologue): Take stack_regs into account.  Call
3887         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
3888         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
3889         stack aligned as per SH5 ABI.
3890         (sh_builtin_saveregs): Support SH5 ABI.
3891         (sh_build_va_list, sh_va_start): Likewise.
3892         (initial_elimination_offset): Take alignment into account.
3893         Compute location of PR according to the SH5 stack frame.
3894         (arith_reg_operand): Reject branch-target registers.
3895         (shmedia_6bit_operand): New.
3896         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
3897         (target_reg_operand): Match DImode only.  Accept SUBREGs.
3898         (target_operand): New.
3899         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
3900         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
3901         SIBCALL_REGS for SHmedia.
3902         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
3903         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
3904         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
3905         (TARGET_SWITCHES): New SH5 flags.
3906         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
3907         VALID_REGISTER_P to disable unsupported registers.
3908         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
3909         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
3910         (FUNCTION_ARG_PADDING): Define.
3911         (FASTEST_ALIGNMENT): Adjust.
3912         (SH_REGISTER_NAMES_INITIALIZER): New.
3913         (sh_register_names): Declare.
3914         (DEBUG_REGISTER_NAMES): Define.
3915         (REGISTER_NAMES): Define based on sh_register_names.
3916         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
3917         (sh_additional_register_names): Declare.
3918         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
3919         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
3920         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
3921         (REGISTER_NATURAL_MODE): Define.
3922         (FIRST_PSEUDO_REGISTER): Adjust.
3923         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
3924         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
3925         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
3926         (VECTOR_MODE_SUPPORTED_P): Define.
3927         (REG_CLASS_CONTENTS): Adjust.
3928         (SMALL_REGISTER_CLASSES): Adjust.
3929         (REG_ALLOC_ORDER): Adjust.
3930         (INDEX_REG_CLASS): Adjust.
3931         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
3932         (CONST_OK_FOR_LETTER_P): Adjust.
3933         (PREFERRED_RELOAD_CLASS): Adjust.
3934         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
3935         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
3936         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
3937         (FIRST_FP_PARM_REG): Adjust.
3938         (CALL_POPS_ARGS): Define.
3939         (FUNCTION_ARG_REGNO_P): Adjust.
3940         (struct sh_args): New fields.
3941         (GET_SH_ARG_CLASS): Adjust.
3942         (INIT_CUMULATIVE_ARGS): Adjust.
3943         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
3944         (FUNCTION_ARG_ADVANCE): Adjust.
3945         (FUNCTION_ARG): Adjust.
3946         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
3947         (FUNCTION_ARG_CALLEE_COPIES): Define.
3948         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
3949         (STRICT_ARGUMENT_NAMING): Define.
3950         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
3951         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
3952         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
3953         (SETUP_INCOMING_VARARGS): Adjust.
3954         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
3955         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
3956         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
3957         (SUBREG_OK_FOR_INDEX_P): Adjust.
3958         (EXTRA_CONSTRAINT_S): Update.
3959         (EXTRA_CONSTRAINT_T): New.
3960         (EXTRA_CONSTRAINT): Adjust.
3961         (GO_IF_LEGITIMATE_INDEX): Adjust.
3962         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
3963         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
3964         (MOVE_MAX): Adjust.
3965         (MAX_MOVE_MAX): Define.
3966         (Pmode): Adjust.
3967         (CONST_COSTS): Adjust.
3968         (REGISTER_MOVE_COST): Adjust.
3969         (BRANCH_COST): Adjust.
3970         (TEXT_SECTION_ASM_OP): Adjust.
3971         (DBX_REGISTER_NUMBER): Adjust.
3972         (ASM_OUTPUT_DOUBLE_INT): New.
3973         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
3974         (PREDICATE_CODES): Adjust.
3975         (PROMOTE_MODE): Adjust.
3976         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
3977         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
3978         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
3979         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
3980         (DR0_REG, DR2_REG, DR4_REG): Renumber.
3981         (TR0_REG, TR1_REG, TR2_REG): New.
3982         (XD0_REG): Renumber.
3983         (UNSPEC_COMPACT_ARGS): New.
3984         (type): Added pt and ptabs.
3985         (length): Default to 4 on SHmedia.  Default pt length to 12
3986         and     20 on SHmedia32 and SHmedia64, respectively.
3987         (pt): New function unit.
3988         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
3989         Add whitespace between operands of SHmedia instructions.
3990         (movdicc): Fix.
3991         (adddi3_media, addsi3_media): Adjust constraints.
3992         (subsi3) [SHmedia]: Force operand 1 into a register.
3993         (udivsi3_i1_media, udivsi3_i4_media): New.
3994         (udivsi3): Support SHmedia.
3995         (divsi3_i1_media, divsi3_i4_media): New.
3996         (divsi3): Support SHmedia.
3997         (anddi3, iordi3, xordi3): Adjust constraints.
3998         (zero_extendhidi2, zero_extendqidi2): New.
3999         (extendsidi2, extendhidi2, extendqidi2): New.
4000         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
4001         (pop_e, pop_fpul, pop_4): Likewise.
4002         (movsi_media): Support FP and BT registers.
4003         (movsi_media_nofpu): New.  Adjust splits to DImode.
4004         (lduw, ldub): Renamed to zero_extend* above.
4005         (movqi_media): Fix typo.
4006         (movdi_media): Support FP and BT registers.
4007         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
4008         (movdi_const_32bit): New.
4009         (shori_media): Require immediate operand.  Use `u' for output.
4010         (movdf_media, movsf_media): Simplified.
4011         (movdf_media_nofpu, movsf_media_nofpu): New.
4012         (movdf, movsf): Adjust
4013         (movv2sf, movv2sf, movv16sf): New.
4014         (beq_media, beq_media_i): Adjust constraints.  Don't use
4015         scratch BT register.
4016         (bne_media, bne_media_i): Likewise.
4017         (bgt_media, bgt_media_i): Likewise.
4018         (bge_media, bge_media_i): Likewise.
4019         (bgtu_media, bgtu_media_i): Likewise.
4020         (bgeu_media, bgeu_media_i): Likewise.
4021         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
4022         bunordered): Emit jump insn.  Force operands to registers when
4023         needed.
4024         (jump_media, jump): Simplify.
4025         (call_compact, call_compact_rettramp): New.
4026         (call_value_compact, call_value_compact_rettramp): New.
4027         (call_media, call_value_media): Simplify.
4028         (sibcall_compact, sibcall_media): New.
4029         (call, call_value): Adjust for SHmedia and SHcompact.
4030         (sibcall, sibcall_value, untyped_call): Likewise.
4031         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
4032         (indirect_jump): Adjust for SHmedia.
4033         (casesi_jump_media): New.
4034         (nop): Re-enable for SHmedia.
4035         (call_site): Restrict to SH1.
4036         (casesi): Adjust for SHmedia.
4037         (casesi_shift_media, casesi_load_media): New.
4038         (return): Explicitly use PR register.  Call return trampoline
4039         on SHcompact.
4040         (return_i): Explicitly use PR register.
4041         (shcompact_return_tramp, shcompact_return_tramp_i): New.
4042         (return_media): Adjust.
4043         (shcompact_incoming_args): New.
4044         (epilogue): Adjust.
4045         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
4046         (movstrsi): Disable on SH5.
4047         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
4048         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
4049         (subsf3, subsf3_media): Likewise.
4050         (mulsf3, mulsf3_media, mac_media): Likewise.
4051         (divsf3, divsf3_media): Likewise.
4052         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
4053         (floatsisf2, fux_truncsfsi2): Likewise.
4054         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
4055         constraints.
4056         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
4057         (cmpunsf_media, cmpsf): Likewise.
4058         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
4059         (abssf2, abssf2_media): Likewise.
4060         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
4061         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
4062         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
4063         (floatsidf2, fix_truncdfsi2): Likewise.
4064         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
4065         constraints.
4066         (cmpeqdf_media, cmpgtdf_media): Likewise.
4067         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
4068         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
4069         (absdf2, absdf2_media): Likewise.
4070         (extendsfdf2, extendsfdf2_media): Likewise.
4071         (truncsfdf2, truncsfdf2_media): Likewise.
4072         * config/sh/sh64.h: New file.
4073         * config/sh/t-sh64: New file.
4074         * config/sh/shmedia.h: New file.
4075         * config/sh/ushmedia.h: New file.
4076         * config/sh/sshmedia.h: New file.
4077         * configure.in: Added sh64-*-elf.
4078         * configure: Rebuilt.
4079         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
4080         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
4081         (reg_class_from_letter): Use `b' for TARGET_REGS.
4082         (print_operand): Support `%M', `%m', `AND' and
4083         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
4084         (andcosts): Adjust for SHmedia.
4085         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
4086         Likewise.
4087         (target_reg_operand): New function.
4088         * config/sh/sh-protos.h (target_reg_operand): Declare.
4089         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
4090         FP registers on SH5.
4091         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
4092         on SH4.
4093         (TARGET_REGISTER_P): New macro.
4094         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
4095         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
4096         (EXTRA_CONSTRAINT_S): New macro.
4097         (EXTRA_CONSTRAINT): Adjust.
4098         (FLOAT_TYPE_SIZE): Define to 32.
4099         (Pmode): DImode on SHmedia.
4100         (CONST_COSTS): Adjust for SHmedia literals.
4101         (PREDICATE_CODES): Added target_reg_operand.
4102         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
4103         * config/sh/sh.md: Remove all attrs from SHmedia insns.
4104         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
4105         (cmpdi): Accept SHmedia.
4106         (movdicc_false, movdicc_true): New insns.
4107         (movdicc): New expand.
4108         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
4109         no_new_pseudos.
4110         (addsi3_media): Match `S' constraint.
4111         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
4112         (negdi2): Expand for SHmedia.
4113         (one_cmpldi2): New expand.
4114         (zero_extendsidi2): Change from expand to insn.
4115         (extendsidi2): Add constraints.
4116         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
4117         LD/ST address.  Fix SI immediate loading split.
4118         (movhi_media, movqi_media, lduw, ldub): New insns.
4119         (movhi, movqi): Accept SHmedia.
4120         (shori_media, movdi_media): Relax input constraints.  Split
4121         symbolic constants.
4122         (movdf_media, movsf_media): New insn.  New split to movdi.
4123         (movdf, movsf): Match on SHmedia.
4124         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
4125         bgeu_media): New insns and splits.  New insns with `_i' suffix.
4126         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
4127         (bunordered): New expand.
4128         (jump_compact): Renamed from `jump'.
4129         (jump_media): New insn.
4130         (jump): New expand.
4131         (call_media, call_value_media): New insns.
4132         (call, call_value): Adjust.
4133         (indirect_jump_compact): Renamed from `indirect_jump'.
4134         (indirect_jump_media): New insn.
4135         (indirect_jump): New expand.
4136         (untyped_call, return): Accept SHmedia.
4137         (return_media): New insn.
4138         (prologue, epilogue, blockage): Accept SHmedia.
4139         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
4140         (sunordered): New expand.
4141         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
4142         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
4143         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
4144         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
4145         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
4146         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
4147         abssf2_media): New insns.
4148         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
4149         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
4150         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
4151         floatdidf2, floatsidf2_media, fix_truncdfdi2,
4152         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
4153         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
4154         absdf2_media): New insns.
4155         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
4156         (extendsfdf2_media, truncdfsf2_media): New insns.
4157         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
4158         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
4159         * config/sh/sh.h (CONST_OK_FOR_J): Document.
4160         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
4161         * config/sh/sh.md (adddi3): New expand.
4162         (adddi3_media, adddi3z_media): New insns.
4163         (adddi3_compact): Renamed from adddi3.
4164         (addsi3_media): Use add.l r63 to add constant zero.
4165         (subdi3): New expand.
4166         (subdi3_media): New insn.
4167         (subdi3_compact): Renamed from subdi3.
4168         (mulsidi3): New expand.
4169         (mulsidi3_media): New insn.
4170         (mulsidi3_compact): Renamed from mulsidi3.
4171         (umulsidi3): New expand.
4172         (umulsidi3_media): New insn.
4173         (umulsidi3_compact): Renamed from umulsidi3.
4174         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
4175         (ashlsi3, ashrsi3, lshrsi3): Use them.
4176         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
4177         (ashldi3, ashrdi3, lshrdi3): Use them.
4178         (zero_extendsidi2): New expand.
4179         (extendsidi2): New insn.
4180         (movsi_media): New insn.  Split to movdi to load constants.
4181         (movsi): Enable for shmedia.
4182         (movdi_media): New insn.  Use shori_media to load wide constants.
4183         (short_media): New insn.
4184         (movdi): Enable for shmedia.
4185         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
4186         * config/sh/sh.h (CPP_SPEC): Added `m5'.
4187         (SUBTARGET_CPP_SPEC): Added `!m5'.
4188         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
4189         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
4190         to all other SH variants.
4191         (TARGET_DEFAULT): Set to SH1_BIT.
4192         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
4193         (BITS_PER_WORD): Raise to 64 on shmedia.
4194         (MAX_BITS_PER_WORD): Change to 64.
4195         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
4196         (INT_TYPE_SIZE): Keep as 32.
4197         (UNITS_PER_WORD): Raise to 8 on shmedia.
4198         (MIN_UNITS_PER_WORD): Keep as 4.
4199         (POINTER_SIZE): Raise to 64 on shmedia.
4200         (CONST_OK_FOR_J): New macro.
4201         (CONST_OK_FOR_LETTER_P): Use it.
4202         (processor_type): Add PROCESSOR_SH5.
4203         * config/sh/sh.md: Conditionalize all expands, insns and
4204         splits to TARGET_SH1.
4205         (cpu): Added sh5.
4206         (addsi3_compact): Renamed from...
4207         (addsi3): Now an expand.
4208         (addsi3_media, subsi3_media): New insns.
4209         (subsi3): Don't negate constants with SHmedia.
4210
4211         * hooks.c: New file.
4212         * hooks.h: New file.
4213         * Makefile.in (HOOKS_H): New.
4214         (TARGET_DEF_H): Added $(HOOKS_H).
4215         (OBJS): Added hooks.o.
4216         (cfgcleanup.o, bb-reorder.o): Added target.h.
4217         (hooks.o): Added dependencies.
4218         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
4219         (TARGET_INITIALIZER): this.
4220         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
4221         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
4222         * bb-reorder.c: Include target.h.
4223         (reorder_basic_blocks): Skip if cannot modify jumps.
4224         * cfgcleanup.c: Include target.h.
4225         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
4226
4227 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
4228
4229         * config/mips/mips.md (casesi_internal, casesi_internal_di):
4230         Protect jump delay slot instructions with .set noreorder and
4231         .set nomacro.
4232
4233 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
4234
4235         * config/mips/mips.md (casesi_internal_di): Calculate
4236         the index into the target offset table correctly.
4237
4238 2002-02-08  Richard Henderson  <rth@redhat.com>
4239
4240         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
4241         * final.c (output_addr_const): Accept and discard SUBREG.
4242         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
4243         mark them unknown instead.
4244         (simplify_subtraction): Handle RTX_UNKNOWN.
4245         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
4246
4247 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
4248
4249         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
4250
4251 2002-02-08  Richard Henderson  <rth@redhat.com>
4252
4253         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
4254
4255 2002-02-08  Andreas Jaeger  <aj@suse.de>
4256
4257         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
4258         * config/i386/t-linux64: New file.
4259
4260 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
4261
4262         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
4263         * c-parse.in (compstmt): Clear last_expr_type.
4264
4265 2002-02-07  Richard Henderson  <rth@redhat.com>
4266
4267         * loop.c (strength_reduce): Sink final_value when not
4268         eliminating a biv.
4269
4270 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
4271
4272         * config/sparc/freebsd.h: Fix mismatched spec {.
4273
4274 2002-02-07  Richard Henderson  <rth@redhat.com>
4275
4276         * cfgrtl.c: Include recog.h and insn-config.h.
4277         (keep_with_call_p): Fix general_operand invocation.
4278         * Makefile.in (cfgrtl.o): Update dependencies.
4279
4280 2002-02-07  Kazu Hirata  <kazu@hxi.com>
4281
4282         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
4283         comment.  Accept HImode only if TARGET_H8300.
4284
4285 2002-02-07  Eric Christopher  <echristo@redhat.com>
4286
4287         * config/mips/crtn.asm: Cleanup #ifdefs.
4288
4289 2002-02-07  Eric Christopher  <echristo@redhat.com>
4290
4291         * config/mips/crti.asm: Add changes for mips16. mips16 uses
4292         register 7 as RA instead of $31.
4293         * config/mips/crtn.asm: Ditto.
4294         * config/mips/mips.c (mips_move_2words): Add case for
4295         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
4296         (compute_frame_size): Fix typo.
4297         (save_restore_insns): Ditto.  Make documentation about using
4298         register $7 as return register more precise.
4299         (mips_expand_epilogue): Fix comment. Add code to work around not
4300         being able to add to the stack pointer directly.
4301         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
4302         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
4303         epilogue.
4304
4305 2002-02-07  Tom Rix  <trix@redhat.com>
4306
4307         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
4308         immediates in ldu and stdu DS opcode field.
4309         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
4310         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
4311         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
4312
4313 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
4314
4315         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
4316         offset for stack bias.
4317
4318 2002-02-07  H.J. Lu <hjl@gnu.org>
4319
4320         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
4321
4322 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
4323
4324         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
4325
4326 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
4327
4328         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
4329         * i386.c (x86_order_regs_for_local_alloc): New global function.
4330         * i386.h (REG_ALLOC_ORDER): CLeanup.
4331         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
4332
4333 2002-02-07  Richard Henderson  <rth@redhat.com>
4334
4335         PR optimization/2463
4336         * alias.c (find_base_value): Recall base values for fixed hard regs.
4337         * loop.c (loop_regs_update): Don't use single_set on non-insns.
4338
4339 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
4340
4341         * config/mips/mips.md (define_delay) [mips16]: Adjust required
4342         length.
4343
4344 2002-02-06  Richard Henderson  <rth@redhat.com>
4345
4346         PR c/5609
4347         * stmt.c (resolve_operand_name_1): Take more care with mixed
4348         named and unnamed operands.
4349
4350 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
4351             Jan Hubicka  <jh@suse.cz>
4352
4353         * loop.c (remove_constant_addition): Avoid clobbering a shared
4354         CONST expression.
4355
4356 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
4357
4358         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
4359         * config/s390/t-linux64: New file.
4360         * config/s390/libgcc-glibc.ver: New file.
4361
4362 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
4363
4364         * config/s390/linux64.h: Delete file.
4365         * config/s390/s390x.h: New file.
4366         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
4367         as target header file.
4368         * config/s390/linux.h (TARGET_VERSION): Define depending on
4369         DEFAULT_TARGET_64BIT.
4370         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
4371         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
4372         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
4373         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
4374         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
4375         (EXTRA_SPEC): New define.
4376         * config/s390/s390.h (TARGET_VERSION): Define depending on
4377         DEFAULT_TARGET_64BIT.
4378         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
4379
4380 2002-02-06  Jason Merrill  <jason@redhat.com>
4381
4382         * c-decl.c (finish_function): Warn about a non-void function with
4383         no return statement and no abnormal exit.
4384         (current_function_returns_abnormally): New variable.
4385         (start_function): Clear it.
4386         (struct c_language_function): Add returns_abnormally.
4387         (push_c_function_context): Save it.
4388         (pop_c_function_context): Restore it.
4389         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
4390         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
4391         an explicit return type.
4392         * c-tree.h: Declare current_function_returns_abnormally.
4393         (C_FUNCTION_IMPLICIT_INT): New macro.
4394         * c-typeck.c (build_function_call): Set it.
4395         (c_expand_return): Set current_function_returns_value even if the
4396         value is erroneous.
4397
4398 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
4399
4400         PR c/5420:
4401         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
4402         unsafe for reevaluation.
4403
4404 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
4405
4406         PR c/5482:
4407         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
4408         EXPR_STMT, but COMPOUND_STMT, recurse into it.
4409
4410 2002-02-06  Richard Henderson  <rth@redhat.com>
4411
4412         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
4413         be a general_operand.  Dest for function value must be a pseudo.
4414
4415 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
4416
4417         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
4418         as SYMBOL_REFs from the constant pool.
4419
4420 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
4421
4422         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
4423         passed by invisible reference.
4424
4425 2002-02-05  Richard Henderson  <rth@redhat.com>
4426
4427         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
4428
4429 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
4430
4431         Implement using "base addresses" in insn operands as default.
4432         * config/mmix/mmix.c (mmix_conditional_register_usage): if
4433         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
4434         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
4435         used to read the rtx value.
4436         (mmix_target_asm_function_epilogue): Fix spacing.
4437         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
4438         (mmix_legitimate_address): Ditto.
4439         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
4440         should be loaded with a GETA insn.  Don't allocate needless extra
4441         char for nul termination and fix misleading comment.
4442         (mmix_print_operand_address): Handle constants if
4443         TARGET_BASE_ADDRESSES.
4444         (mmix_output_register_setting): Use base addressing if
4445         TARGET_BASE_ADDRESSES and the number of insns is 3.
4446         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
4447         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
4448         to use R as constraint, add LDA to match s.
4449         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
4450         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
4451         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
4452         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
4453         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
4454         order with other fixed registers.
4455         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
4456         other parameter/call-clobbered registers.
4457         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
4458         -mbase-addresses, -mno-base-addresses.
4459         (MMIX Options): Ditto.
4460
4461 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4462
4463         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
4464
4465 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
4466
4467         * config/rs6000/altivec.h: Change elem to _S_elem.
4468
4469 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
4470
4471         * config/netbsd.h (WCHAR_TYPE): Define.
4472         (WCHAR_TYPE_SIZE): Ditto.
4473         (WINT_TYPE): Ditto.
4474         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
4475         (WCHAR_UNSIGNED): Ditto.
4476         (WCHAR_TYPE_SIZE): Ditto.
4477         (WINT_TYPE): Ditto.
4478         * config/arm/netbsd.h: Likewise.
4479         * config/i386/netbsd-elf.h: Likewise.
4480         * config/i386/netbsd.h: Likewise.
4481         * config/m68k/netbsd-elf.h: Likewise.
4482         * config/m68k/netbsd.h: Likewise.
4483         * config/ns32k/netbsd.h: Likewise.
4484         * config/sparc/netbsd.h: Likewise.
4485         * config/vax/netbsd.: Likewise.
4486
4487 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
4488
4489         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
4490         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
4491         (TARGET_INITIALIZER): this.
4492         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
4493         (BITFIELD_NBYTES_LIMITED): Markup fix.
4494         * tree.h (default_ms_bitfield_layout_p): Declare.
4495         (record_layout_info): Added prev_field.
4496         * tree.c (default_ms_bitfield_layout_p): New fn.
4497         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
4498         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
4499         * stor-layout.c: Include target.h.
4500         (start_record_layout): Initialize prev_field.
4501         (place_field): Handle MS bit-field layout, and disregard
4502         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
4503         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
4504         * Makefile.in (stor-layout.o): Adjust dependencies.
4505
4506 2002-02-05  Jason Merrill  <jason@redhat.com>
4507
4508         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
4509
4510 2002-02-05  Andreas Jaeger  <aj@suse.de>
4511
4512         * crtstuff.c: Fix comments.
4513
4514 2002-02-05  Richard Henderson  <rth@redhat.com>
4515
4516         PR fortran/3393
4517         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
4518         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
4519
4520         PR fortran/3392
4521         * config/mips/mips.c (function_arg): Handle TImode.
4522         (function_arg_advance): Likewise.
4523
4524 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
4525
4526         * config/rs6000/altivec.h (vec_step_help): Rename to
4527         __vec_step_help.
4528
4529 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
4530
4531         * config/rs6000/altivec.h: Fix typos.
4532
4533 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
4534
4535         * config/arm/netbsd.h: Correct a comment.
4536
4537 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
4538
4539         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
4540         building void typed builtins.
4541
4542         * config/rs6000/altivec.h (vec_ld*): Fix typos.
4543         (vec_step): Implement for C++.
4544
4545 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4546
4547         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
4548
4549 2002-02-04  Richard Henderson  <rth@redhat.com>
4550
4551         * combine.c (nonzero_bits): Re-introduce special case for
4552         sp/fp/ap wrt REGNO_POINTER_ALIGN.
4553
4554 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
4555
4556         * doc/extend.texi: Warn about unsupported usage of altivec
4557         builtins.
4558
4559         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
4560         (altivec_predicate_*): New.
4561
4562         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
4563         Add C++ version of vec_*() functions.
4564
4565         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
4566         (bdesc_2arg): Remove altivec predicates.
4567         (altivec_expand_builtin): Handle predicates.
4568         (altivec_init_builtins): Handle predicates.
4569         (altivec_expand_predicate_builtin): New.
4570
4571 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4572
4573         * pa.c (DO_FRAME_NOTES): Move forward.
4574         (store_reg): Revise handling of frame notes.
4575         (load_reg): Likewise.
4576         (set_reg_plus_d): Likewise.
4577         (hppa_expand_prologue): Likewise.
4578         (hppa_expand_epilogue): Likewise.
4579
4580 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4581
4582         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
4583
4584 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
4585
4586         PR c/4475, c++/3780:
4587         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
4588         * c-common.h (SWITCH_TYPE): Define.
4589         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
4590         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
4591         Rename spareness variable to sparseness.
4592         (expand_end_case_type): Renamed from expand_end_case, use orig_type
4593         if non-NULL instead of TREE_TYPE (orig_index).
4594         * tree.h (expand_end_case_type): Renamed from expand_end_case.
4595         (expand_end_case): Define using expand_end_case_type.
4596         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
4597         to expand_end_case_type.
4598         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
4599
4600 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4601
4602         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
4603         (BIGGEST_ALIGNMENT): Change to 128.
4604
4605 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4606
4607         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
4608
4609 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4610
4611         * pa.md (call_internal_reg_64bit): Remove unused variable.
4612
4613 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
4614
4615         * config/arm/arm.h (machine_function): Add uses_anonymous_args
4616         field.
4617         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
4618         * config/arm/arm.c (current_function_anonymous_args): Delete,
4619         replace uses with cfun->machine->uses_anonymous_args.
4620         (arm_reorg): Do not reset uses_anonymous_args.
4621
4622         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
4623         any geenral register.
4624
4625 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
4626
4627         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
4628         the entry block.
4629
4630 2002-02-04  Richard Henderson  <rth@redhat.com>
4631
4632         * combine.c (force_to_mode): Remove STACK_BIAS code.
4633         (nonzero_bits): Likewise.  Replace sp/fp special case with
4634         REGNO_POINTER_ALIGN.
4635
4636         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
4637         (HARD_FRAME_POINTER_REGNUM): New.
4638         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
4639         (FIXED_REGS, CALL_USED_REGS): Update.
4640         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
4641         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
4642         (HARD_REGNO_NREGS): Update for SFP.
4643         (STACK_POINTER_OFFSET): Include bias here ...
4644         (FIRST_PARM_OFFSET): ... not here.
4645         (STACK_BIAS): Remove.
4646         (INIT_EXPANDERS): New.
4647         (STARTING_FRAME_OFFSET): Do not include bias.
4648         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
4649         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
4650         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
4651         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
4652         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
4653         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
4654         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
4655         (MUST_SAVE_REGISTER): Likewise.
4656         (sparc_flat_function_prologue): Likewise.
4657         (sparc_flat_function_epilogue): Likewise.
4658         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
4659         (sparc_init_modes): SFP is GENERAL_REGS.
4660         (sparc_builtin_saveregs): SFP does not have bias applied.
4661
4662 2002-02-04  Richard Henderson  <rth@redhat.com>
4663
4664         * config/alpha/alpha.c (current_function_is_thunk): Don't check
4665         current_function_is_thunk.
4666         (alpha_sa_mask): Distinguish between current_function_is_thunk
4667         called from ASM_OUTPUT_MI_THUNK and not.
4668         (alpha_does_function_need_gp): Thunks always need gp.
4669         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
4670         (alpha_output_mi_thunk_osf): New.
4671         * config/alpha/alpha-protos.h: Update.
4672         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
4673
4674 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
4675
4676         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
4677         function types, not when they're taken away.
4678
4679 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
4680
4681         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
4682         CODE_LABEL and jump table when replacing a table jump with a
4683         simple jump.
4684
4685 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
4686
4687         * config/s390/s390-protos.h (legitimize_la_operand,
4688         s390_secondary_input_reload_class, s390_plus_operand,
4689         s390_expand_plus_operand): Add prototypes.
4690
4691         config/s390/s390.c (s390_secondary_input_reload_class,
4692         s390_plus_operand, s390_expand_plus_operand): New functions.
4693
4694         (struct s390_address): New member 'pointer'.
4695         (s390_decompose_address): Compute it.
4696         (legitimate_la_operand_p): Use it.
4697         (legitimize_la_operand): New function.
4698         (movti, movdi, movdf splitters): Call it.
4699
4700         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
4701         (PREDICATE_CODES): Add s390_plus_operand.
4702
4703         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
4704         (la_ccclobber): Allow GENERAL_REGS as output operand.
4705
4706         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
4707         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
4708         (*la_64, *la_31, reload_indi, reload_insi): ... these.
4709
4710 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
4711
4712         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
4713         register names for regular asm () construct.
4714
4715 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
4716
4717         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
4718         registers.
4719
4720 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
4721
4722         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
4723         pat for recog.
4724
4725 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
4726
4727         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
4728         constant pool to be identical by string address and index.
4729
4730 2002-02-04  Anthony Green  <green@redhat.com>
4731
4732         * output.h (SECTION_OVERRIDE): Define.
4733         * varasm.c (named_section): Obey SECTION_OVERRIDE.
4734
4735 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
4736
4737         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
4738         by existing arm*-*-netbsd* (a.out) target.
4739         (ns32k-*-netbsdelf*): Likewise.
4740         (sparc-*-netbsdelf*): Likewise.
4741         (vax-*-netbsdelf*): Likewise.
4742
4743 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
4744
4745         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
4746         headers and libobjc headers.
4747
4748 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
4749
4750         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
4751         (_mingw.h): Remove duplicate include.
4752
4753 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
4754
4755         * config.gcc: Set cpu_type to m68k for 68010, as well.
4756         (m68010-*-netbsdelf*): New...
4757         (m68k*-*-netbsdelf*): ...targets.
4758         * config/m68k/netbsd-elf.h: New file.
4759
4760 2002-02-02  Kazu Hirata  <kazu@hxi.com>
4761
4762         * config/h8300/h8300.c (hand_list): Move inside function_arg.
4763
4764 2002-02-02  Kazu Hirata  <kazu@hxi.com>
4765
4766         * config/h8300/h8300.c (h8_push_ops): Move inside
4767         h8300_init_once.
4768         (h8_pop_ops): Likewise.
4769         (h8_move_ops): Likewise.
4770
4771 2002-02-02  Kazu Hirata  <kazu@hxi.com>
4772
4773         * config/h8300/h8300.c (os_task): Make it static.
4774         (monitor): Likewise.
4775         (pragma_saveall): Likewise.
4776
4777 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
4778
4779         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
4780         constant is a valid sign-extension for Pmode.
4781
4782 2002-02-02  Kazu Hirata  <kazu@hxi.com>
4783
4784         * config/h8300/h8300.c: Fix formatting.
4785
4786 2002-02-02  Kazu Hirata  <kazu@hxi.com>
4787
4788         * config/h8300/h8300.md: Fix formatting.
4789
4790 2002-02-02  Kazu Hirata  <kazu@hxi.com>
4791
4792         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
4793         predicates of operands[1].  Split the patterns for each
4794         processor variant.
4795
4796 2002-02-02  Kazu Hirata  <kazu@hxi.com>
4797
4798         * config/h8300/h8300.md (xor patterns): Tighten the predicates
4799         of operands[1] to register_operand.
4800
4801 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4802
4803         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
4804         * cpphash.c (_cpp_init_hashtable): Similarly.
4805         * cppinit.c (cpp_create_reader): Default the signed_char flag.
4806         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
4807         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
4808         (cpp_handle_option): Handle the new options.
4809         * cpplex.c (cpp_interpret_charconst): Use new flag.
4810         * cpplib.h (struct cpp_options): New member signed_char.
4811         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
4812         (cpp_options): Handle -fsigned-char and -funsigned-char.
4813         (static_specs): Remove signed_char_spec.
4814         (do_spec1): Don't handle %c.
4815         * system.h: Poison SIGNED_CHAR_SPEC.
4816         * tradcif.y (yylex): Use flag_signed_char.
4817         * tradcpp.h (flag_signed_char): New.
4818         * tradcpp.c (flag_signed_char): New.
4819         (main): Handle new command-line options.
4820         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
4821 config:
4822         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
4823         * avr/avr.h: Remove old comments.
4824         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
4825         (CC1_SPEC): Pass -fsigned-char if -mic*.
4826         (SIGNED_CHAR_SPEC): Remove.
4827 doc:
4828         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
4829
4830 2002-02-01  Eric Christopher  <echristo@redhat.com>
4831
4832         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
4833         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
4834         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
4835         (ASM_OUTPUT_REG_POP): Ditto.
4836
4837 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4838
4839         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
4840         patch.
4841
4842 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
4843
4844         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
4845
4846 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
4847
4848         PR c/5304:
4849         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
4850         unconditionally.
4851
4852 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
4853
4854         * cfganal.c: Include tm_p.h.
4855         (keep_with_call_p): Fix the test that determines if a register holds
4856         the return value of a call.
4857
4858 2002-02-01  DJ Delorie  <dj@redhat.com>
4859
4860         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
4861         we are given conflicting registers, switch to the other one we
4862         had allocated for us.
4863         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
4864         as TImode so we know when the "other" register is available.
4865
4866 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
4867
4868         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
4869         sparc/sparc_bi.h.
4870
4871 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
4872
4873         * cfganal.c (keep_with_call_p): New function.
4874         (flow_call_edges_add): Prevent splitting a block between a call and
4875         a single-set instruction that should be kept in the same block.
4876
4877 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4878
4879         * doc/install.texi (avr): Update outdated URL.
4880
4881 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
4882
4883         * config/stormy16/stormy16.md (pushqi): New.
4884         (popqi): New.
4885         (pushhi): New.
4886         (pophi): New.
4887         (movhi): Remove stack operands.
4888         (movqi): Likewise.
4889         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
4890         nonimmediate_nonstack_operand.
4891         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
4892         New.
4893         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
4894         New.
4895
4896 2002-01-31  Jason Merrill  <jason@redhat.com>
4897
4898         * Makefile.in (c-parse.c): Handle .output file.
4899         * objc/Make-lang.in (objc-parse.c): Likewise.
4900
4901 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
4902
4903         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
4904         the -me[lb] option is given.  Don't output the default flag
4905         twice.
4906
4907 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
4908
4909         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
4910         the primary source file; this has not been done yet.
4911         * c-decl.c (c_expand_body): Reset input_filename from
4912         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
4913
4914 2002-01-31  Kazu Hirata  <kazu@hxi.com>
4915
4916         * rtlanal.c (subreg_regno_offset): Do not use
4917         SUBREG_REGNO_OFFSET.
4918         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
4919         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
4920
4921 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
4922
4923         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
4924         version rather than GNATS version in --version output.
4925
4926 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
4927
4928         * ifcvt.c (noce_process_if_block): Make a copy of the destination
4929         when copying back from a temporary.
4930
4931 2002-01-30  Richard Henderson  <rth@redhat.com>
4932
4933         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
4934         and new_dest are the same.
4935
4936 2002-01-30  Richard Henderson  <rth@redhat.com>
4937
4938         PR opt/5076
4939         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
4940         * rtl.c (note_insn_name): Update.
4941         * emit-rtl.c (remove_unnecessary_notes): Kill it.
4942         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
4943         to perform loop rotation.
4944         (expand_exit_loop_top_cond): New.
4945         * tree.h (expand_exit_loop_top_cond): Declare it.
4946         * c-semantics.c (genrtl_while_stmt): Use it.
4947         (genrtl_for_stmt): Likewise.
4948
4949 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
4950
4951         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
4952         arguments to 64-bit boundaries on 64-bit ABIs.
4953
4954 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
4955
4956         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
4957
4958 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
4959
4960         * c-decl.c (grokdeclarator): Handle type being a typedef for an
4961         invalid type.
4962
4963 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
4964
4965         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
4966         * config/sparc/sparc_bi.h: Remove file.
4967         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
4968
4969 2002-01-30  Richard Henderson  <rth@redhat.com>
4970
4971         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
4972
4973 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
4974
4975         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
4976
4977 2002-01-30  Jason Merrill  <jason@redhat.com>
4978
4979         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
4980         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
4981         (reg_save): Use DW_CFA_offset_extended_sf instead.
4982
4983         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
4984
4985 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
4986
4987         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
4988         in cselib_lookup.
4989
4990 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
4991
4992         * rs6000.md ("*call_value_local32"): Remove constraints.
4993         ("*call_value_local64"): Same.
4994         ("*call_value_indirect_nonlocal_aix32"): Same.
4995         ("*call_value_nonlocal_aix32"): Same.
4996         ("*call_value_indirect_nonlocal_aix64"): Same.
4997         ("*call_value_nonlocal_aix64"): Same.
4998         ("*call_value_nonlocal_sysv"): Same.
4999
5000 2002-01-29  Richard Henderson  <rth@redhat.com>
5001
5002         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
5003
5004 2002-01-29  Richard Henderson  <rth@redhat.com>
5005
5006         * expr.c (force_operand): Ignore flag_pic for detecting pic
5007         address loads.
5008         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
5009         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
5010         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
5011         instead of open-coded loop.
5012         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
5013         be fixed when in use.
5014
5015 2002-01-29  Richard Henderson  <rth@redhat.com>
5016
5017         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
5018         * sched-rgn.c (propagate_deps): Update them.
5019         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
5020         clobbers list when either gets too long.
5021
5022 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
5023
5024         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
5025         and INDEX_REGS the same as GENERAL_REGS.
5026         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
5027
5028 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5029
5030         * tree.c (build_nonstandard_integer_type): Correct prototype.
5031
5032 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
5033
5034         * config/s390/s390.md (movstrsico, movstrdix_64,
5035         movstrsix_31): Remove, replace by ...
5036         (movstrdi_short, movstrsi_short, movstrdi_long,
5037         movstrsi_long): ... these.  New.
5038         (movstrdi, movstrsi): Adapt.
5039
5040         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
5041         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
5042         Remove unnecessary CC clobber.
5043         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
5044         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
5045
5046         (divmoddi4): Don't partially initialize TImode register.
5047
5048 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
5049
5050         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
5051
5052 2002-01-29  Richard Henderson  <rth@redhat.com>
5053
5054         * flow.c (print_rtl_and_abort): Remove.
5055         (print_rtl_and_abort_fcn): Remove.
5056         (verify_local_live_at_start): Use dump_bb instead.
5057         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
5058         (verify_wide_reg_1): Return 2 on mode test failure.
5059
5060 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5061
5062         PR c/3325, c/3326, c/2511, c/3347
5063         * c-decl.c (enum_decl_context): Remove BITFIELD.
5064         (grokdeclarator): Take bitfield width as an input.
5065         Ensure bitfields are given the correct type.  Perform
5066         bitfield width validation with build_bitfield_integer_type
5067         rather than waiting for finish_struct.
5068         (grok_typename, grok_typename_in_parm_context, start_decl,
5069         push_parmdecl, grokfield, start_function): Update calls to
5070         grokdeclarator.
5071         (build_bitfield_integer_type): New function.
5072         (finish_struct): Move bitfield validation to grokdeclarator
5073         and build_bitfield_integer_type.
5074         * tree.c (build_nonstandard_integer_type): New function.
5075         * tree.h (build_nonstandard_integer_type): New prototype.
5076 objc:
5077         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
5078
5079 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
5080
5081         PR other/1502:
5082         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
5083         don't ignore unrecognized -W* options.
5084         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
5085         * cpplib.h (cpp_handle_option): Adjust prototype.
5086         * c-decl.c (c_decode_options): Pass 0 as last argument to
5087         cpp_handle_option.
5088
5089         PR c/2896:
5090         * gcc.c (cpp_unique_options): Split from cpp_options.
5091         (cpp_options): Source cpp_unique_options.
5092         (default_compilers): Use cpp_unique_options instead of cpp_options
5093         when used together with cc1_options.
5094         (static_specs): Add cpp_unique_options.
5095         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
5096         when used together with cc1_options.
5097
5098 2002-01-29  Kazu Hirata  <kazu@hxi.com>
5099
5100         * config/h8300/h8300-protos.h: Update the prototype of
5101         output_a_shift.
5102         * config/h8300/h8300.c (output_a_shift): Remove an unused
5103         argument 'insn'.  Remove redundant code.
5104         * config/h8300/h8300.md: Adust to the new prototype of
5105         output_a_shift.
5106
5107 2002-01-29  Kazu Hirata  <kazu@hxi.com>
5108
5109         * config/h8300/h8300-protos.h: Update the prototypes of
5110         emit_a_rotate and expand_a_rotate.
5111         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
5112         first argument to 'enum rtx_code'.
5113         (expand_a_rotate): Likewise.
5114
5115 2002-01-28  Kazu Hirata  <kazu@hxi.com>
5116
5117         * config/h8300/h8300-protos.h: Update the prototype of
5118         output_simode_bld.
5119         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
5120         'log2'.
5121         * config/h8300/h8300.md: Adjust to the new prototype.
5122
5123 2002-01-28  Kazu Hirata  <kazu@hxi.com>
5124
5125         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
5126         redundant code.
5127
5128 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5129
5130         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
5131         is a fixed register before returning pic_offset_table_rtx.
5132         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
5133         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
5134
5135 2002-01-28  Jason Merrill  <jason@redhat.com>
5136
5137         * dwarf2.h: Sync with src version.
5138
5139 2002-01-28  Paul Koning  <pkoning@equallogic.com>
5140
5141         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
5142         BT_FN_VOID_PTR_VAR.
5143         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
5144         * doc/extend.texi (__builtin_prefetch): Update documentation:
5145         first argument is now const void ptr.
5146
5147 2002-01-28  Kazu Hirata  <kazu@hxi.com>
5148
5149         * config/h8300/h8300-protos.h: Remove an unused prototype.
5150
5151 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
5152
5153         * toplev.c (lang_independent_init): Round up identifier size.
5154
5155 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
5156
5157         * config.gcc: Revert previous change.
5158
5159 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
5160
5161         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
5162
5163 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
5164
5165         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
5166         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
5167         other non-elf netbsd config frags.
5168         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
5169         collect2 will does that.
5170         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
5171         shared-lib frobbing will work.
5172
5173 2002-01-28  Kazu Hirata  <kazu@hxi.com>
5174
5175         * config/h8300/h8300.h: Fix formatting.
5176         * config/h8300/h8300.md: Likewise.
5177
5178 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
5179
5180         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
5181         the old, removed AAA_standards fix.
5182         * fixinc/fixincl.x: Rebuilt.
5183
5184 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
5185
5186         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
5187         atexit call in crtbegin, hooked in after call to frame_dummy;
5188         register EH before registering __fini__start.
5189
5190 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
5191
5192         * config/rs6000/altivec.h: Remove spurious semicolons.
5193
5194 2002-01-27  Kazu Hirata  <kazu@hxi.com>
5195
5196         * config/h8300/h8300.md: Replace dead bit extraction patterns
5197         with ones that work.
5198
5199 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5200
5201         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
5202         if not STRICT_ALIGNMENT.
5203         * rtl.h (MEM_ALIGN): Likewise.
5204
5205 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5206
5207         * doc/invoke.texi (-fdump-translation-unit): Revert this
5208         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5209
5210 2002-01-27  Kazu Hirata  <kazu@hxi.com>
5211
5212         * config/h8300/h8300.md (define_constants): New.
5213         (anonymous patterns) Use defined constants appropriately.
5214
5215 2002-01-27  Kazu Hirata  <kazu@hxi.com>
5216
5217         * config/h8300/h8300.c (function_arg): Remove redundant code.
5218
5219 2002-01-26  Richard Henderson  <rth@redhat.com>
5220
5221         * sched-deps.c (reg_pending_uses_head): New.
5222         (reg_pending_barrier): Rename from reg_pending_sets_all.
5223         (find_insn_list): Don't mark inline.
5224         (find_insn_mem_list): Remove.
5225         (add_dependence_list, add_dependence_list_and_free): New.
5226         (flush_pending_lists): Replace only_write param with separate
5227         for_read and for_write parameters.  Update all callers.  Use
5228         add_dependence_list_and_free.
5229         (sched_analyze_1): Do not add reg dependencies here; just set
5230         the pending bits.  Use add_dependence_list.
5231         (sched_analyze_2): Likewise.
5232         (sched_analyze_insn): Replace schedule_barrier_found with
5233         reg_pending_barrier.  Add all dependencies for pending reg
5234         uses, sets, and clobbers.
5235         (sched_analyze): Don't add reg dependencies for calls, just
5236         set pending bits.  Use regs_invalidated_by_call.  Treat
5237         sched_before_next_call as a normal list, not a fake insn.
5238         (init_deps): No funny init for sched_before_next_call.
5239         (free_deps): Free pending mems lists.  Don't zero reg_last.
5240         (init_deps_global): Init reg_pending_uses.
5241         (finish_deps_global): Free it.
5242         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
5243         (find_insn_mem_list): Remove.
5244         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
5245         (propagate_deps): Use them.  Zero temp mem lists.
5246
5247 2002-01-26  Richard Henderson  <rth@redhat.com>
5248
5249         * Makefile.in (CRTSTUFF_CFLAGS): New.
5250         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
5251         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
5252         crtstuff.c instead of alpha assembly version.
5253         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
5254         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
5255         not FORCE_{INIT,FINI}_SECTION_ALIGN.
5256         (__do_global_dtors_aux): Mark used.
5257         (frame_dummy, __do_global_ctors_aux): Mark used.
5258         (fini_dummy, init_dummy): Remove.
5259
5260         * config/alpha/crtbegin.asm: Remove file.
5261         * config/alpha/crtend.asm: Remove file.
5262         * config/alpha/t-crtbe: Remove file.
5263         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
5264         (LINK_EH_SPEC): New.
5265
5266         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
5267         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
5268         calling constructors.
5269         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
5270
5271         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
5272         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
5273         CRT_END_INIT_DUMMY hack.
5274         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
5275         FORCE_{INIT,FINI}_SECTION_ALIGN.
5276
5277         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
5278         FORCE_{INIT,FINI}_SECTION_ALIGN.
5279
5280         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
5281         invocation sequence.
5282         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
5283
5284         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
5285         (FORCE_CODE_SECTION_ALIGN): New.
5286
5287 2002-01-26  Richard Henderson  <rth@redhat.com>
5288
5289         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
5290
5291 2002-01-26  Richard Henderson  <rth@redhat.com>
5292
5293         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
5294         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
5295
5296 2002-01-26  Kazu Hirata  <kazu@hxi.com>
5297
5298         * config/h8300/h8300.md: Remove bit extraction patterns that
5299         cannot be triggered.
5300         Restrict each bit extraction pattern to a variant on which the
5301         pattern is tested.
5302
5303 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
5304
5305         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
5306
5307 2002-01-26  Kazu Hirata  <kazu@hxi.com>
5308
5309         * config/h8300/h8300.md: Remove bit test patterns that cannot
5310         be triggered.
5311         Restrict each bit test pattern to a variant on which the
5312         pattern is tested.
5313
5314 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5315
5316         * builtins.c (expand_builtin_strncat): Remove redundant check for
5317         INTEGER_CST.
5318
5319 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
5320
5321         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
5322         default setting.
5323         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
5324         existing setting.
5325
5326 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
5327
5328         * dbxout.c (dbxout_init): Use assemble_name rather than just
5329         stripping off the first character.
5330         (dbxout_source_file): Likewise.
5331
5332 2002-01-25  DJ Delorie  <dj@redhat.com>
5333
5334         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
5335         using rtx_equal_p, not by comparing pointers.
5336
5337 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
5338
5339         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
5340         for PIC_OFFSET_TABLE_REGNUM.
5341         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
5342
5343 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
5344
5345         * config.gcc (x86_64-*-freebsd*): New target.
5346         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
5347         value.
5348         (i[34567]86-*-freebsd*): Don't include svr4.h.
5349         * config/i386/freebsd64.h: New file.
5350
5351 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
5352
5353         * config/alpha/x-vms (version): Make static.
5354
5355         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
5356         in previous checkin.
5357
5358         * Makefile.in (install-headers-cp): New target.
5359         * config.gcc (alpha-dec-*vms*): Install headers with
5360         install-headers-cp
5361
5362 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
5363
5364         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
5365         avoid it's copies.
5366
5367 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5368
5369         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
5370         of compare_tree_int.
5371         (expand_builtin_strncat): Likewise.
5372         * c-decl.c (finish_struct): Use tree_low_cst.
5373         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
5374         * tree.c (compare_tree_int): Likewise.
5375
5376 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
5377
5378         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
5379         adjustments even if they are implemented by more than two insns.
5380
5381 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
5382
5383         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
5384         * df.h (struct ref): Kill B.
5385         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
5386
5387         * basic-block.h (PROP_EQUAL_NOTES): New flag.
5388         * flow.c (propagate_one_insn): Use it.
5389         (mark_used_regs): Handle NIL.
5390
5391 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
5392
5393         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
5394         to help folding.
5395
5396 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
5397
5398         * rs6000.md (prefetch): Make address V4SI mode so that the address
5399         is restricted to legitimate form for instruction.
5400
5401 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
5402
5403         * doc/install.texi (xtensa-*-elf): New target.
5404         (xtensa-*-linux*): New target.
5405         * doc/contrib.texi: Add myself.
5406
5407 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
5408
5409         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
5410         purpose register to hold an SImode (or smaller) value.
5411
5412 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
5413
5414         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
5415         registry only.
5416         * crtstuff.c: Likewise.
5417
5418 2002-01-25  Kazu Hirata  <kazu@hxi.com>
5419
5420         * config/h8300/h8300.md (negation patterns): Tighten
5421         predicates to register_operand.
5422
5423 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
5424
5425         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
5426         mode, not Pmode.
5427
5428         * builtins.c (expand_builtin_prefetch): Same.
5429
5430 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
5431
5432         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
5433         modes.
5434
5435 2002-01-24  Kazu Hirata  <kazu@hxi.com>
5436
5437         * config/h8300/h8300.c (print_operand): Remove support for
5438         operand character 'A'.
5439         * config/h8300/h8300.md (three anonymous patterns): Replace
5440         operand character 'A' with either 'T' or 'S'.
5441
5442 2002-01-24  Kazu Hirata  <kazu@hxi.com>
5443
5444         * config/h8300/h8300.c (print_operand): Remove support for
5445         operand character 'U'.
5446
5447 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
5448
5449         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
5450
5451 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
5452
5453         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
5454         values to be assigned to the stack pointer.
5455
5456 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
5457
5458         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
5459         to const_double needs to be done right for big-endian systems.
5460
5461 2002-01-24  Jason Merrill  <jason@redhat.com>
5462
5463         PR c++/2432
5464         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
5465         to can_throw_internal.
5466
5467 2002-01-23  Richard Henderson  <rth@redhat.com>
5468
5469         * fold-const.c (fold): Change UINT_MAX test to check vs precision
5470         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
5471
5472 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
5473
5474         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
5475         (symGOT2reg): Use them, then set as GOT value as unchanging.
5476         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
5477         as a temporary, if possible.
5478         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
5479         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
5480
5481 2002-01-23  Kazu Hirata  <kazu@hxi.com>
5482
5483         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
5484         accept to accept 0x80 as operands[2].
5485
5486 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
5487
5488         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
5489
5490 2002-01-23  Richard Henderson  <rth@redhat.com>
5491
5492         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
5493
5494 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
5495
5496         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
5497         (parmlist_or_identifiers_1): Verify that only a parmlist follows
5498         an attribute.
5499
5500 2002-01-23  Richard Henderson  <rth@redhat.com>
5501
5502         * expr.c (move_by_pieces_1): Extend size before negation.
5503
5504         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
5505         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
5506         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
5507         * config/m68k/t-m68kelf: Likewise.
5508
5509 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
5510
5511         * config/xtensa/elf.h: New file.
5512         * config/xtensa/lib1funcs.asm: New file.
5513         * config/xtensa/lib2funcs.S: New file.
5514         * config/xtensa/linux.h: New file.
5515         * config/xtensa/t-xtensa: New file.
5516         * config/xtensa/xtensa-config.h: New file.
5517         * config/xtensa/xtensa-protos.h: New file.
5518         * config/xtensa/xtensa.c: New file.
5519         * config/xtensa/xtensa.h: New file.
5520         * config/xtensa/xtensa.md: New file.
5521         * config.gcc (xtensa-*-elf*): New target.
5522         (xtensa-*-linux*): New target.
5523         * cse.c (canon_hash): Compare rtx pointers instead of register
5524         numbers.  This is required for the Xtensa port.
5525         * integrate.c (copy_insn_list): Handle case where the static
5526         chain is in memory and the memory address has to be copied to
5527         a register.
5528         * doc/invoke.texi (Option Summary): Add Xtensa options.
5529         (Xtensa Options): New node.
5530         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
5531
5532 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
5533
5534         * diagnostic.c (internal_error): Do ICE suppression only
5535         when ENABLE_CHECKING is not defined.
5536
5537         * c-typeck.c (require_complete_type): Return error_mark_node
5538         if type is error_mark_node.
5539
5540 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
5541
5542         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
5543         -Os and issue a warning.
5544
5545 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
5546
5547         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
5548         current (lack of) need for host configuration by hand.
5549
5550         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
5551         references.  Documentation of some target macros moved from
5552         hostconfig.texi to tm.texi.
5553
5554 2002-01-23  Will Cohen  <wcohen@redhat.com>
5555
5556         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
5557         defined.
5558
5559 2002-01-23  Kazu Hirata  <kazu@hxi.com>
5560
5561         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
5562         operand[3].
5563
5564 2002-01-23  Jason Merrill  <jason@redhat.com>
5565
5566         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
5567
5568         * function.c (assign_parms): Don't put args of inline functions
5569         into registers when not optimizing.
5570
5571 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
5572
5573         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
5574         (prologue_use): New pattern.
5575         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
5576         preference to gen_rtx_USE.
5577         (thumb_expand_prologue): Use gen_prologue_use in preference to
5578         gen_rtx_USE.
5579         (thumb_expand_epilogue): Use gen_prologue_use in preference to
5580         gen_rtx_USE.
5581
5582 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
5583
5584         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
5585
5586 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5587
5588         PR c/3504
5589         * doc/extend.texi: Correct documentation of __alignof__.
5590
5591 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
5592
5593         * params.h: Rename arguments of DEFPARAM so that it will be
5594         recognized as a translation keyword.
5595
5596 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
5597
5598         * extend.texi: Document altivec functions.
5599         Fix N-bit adjectives in X86 builtin documentation.
5600
5601 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
5602
5603         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
5604         auto_inc_dec values.
5605
5606 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
5607
5608         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
5609         after backslash.
5610         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
5611
5612 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
5613
5614         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
5615
5616 2002-01-22  Richard Henderson  <rth@redhat.com>
5617
5618         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
5619         copy_insn not copy_rtx.
5620
5621 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
5622
5623         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
5624         "nonzero" as that might add "1" bits.  Ensure "constop" is
5625         properly sign extened.
5626         (force_to_mode): Tweak for sign extended constop.
5627
5628 2002-01-22  Richard Henderson  <rth@redhat.com>
5629
5630         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
5631         for_each_rtx instead of assuming we're already looking at the MEM.
5632         (split_small_symbolic_mem_operand): Likewise.
5633         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5634         * config/alpha/alpha.md (small symbolic memory splitters): Update.
5635
5636 2002-01-22  Richard Henderson  <rth@redhat.com>
5637
5638         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
5639         sequence number for the literal.
5640         (divmoddi_internal_er): Likewise.
5641
5642 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5643
5644         PR java/4972
5645         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
5646         in LIBICONV variable.
5647         * configure: Regenerated.
5648
5649 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
5650
5651         * dependence.c (build_def_use): Remove array_idx.
5652
5653         * dwarfout.c (last_filename): Remove.
5654         (output_compile_unit_die): Remove last_filename.
5655
5656 2002-01-22  Roger Sayle  <roger@eyesopen.com>
5657             Richard Henderson  <rth@redhat.com>
5658
5659         PR opt/3640
5660         * fold-const.c (fold): Optimize unsigned comparisons against
5661         UINT_MAX (and similar unsigned constants).
5662
5663 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
5664
5665         * Makefile.in (loop.o): Depend on OPTABS_H.
5666         * loop.c (emit_prefetch_instructions): Check the prefetch operand
5667         against the predicate.
5668
5669         PR target/5379
5670         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
5671         for the address operand.
5672
5673 2002-01-22  Richard Henderson  <rth@redhat.com>
5674
5675         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
5676
5677 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5678
5679         PR other/5450
5680         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
5681         preprocessor flags.
5682
5683 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
5684
5685         * config.gcc (x86_64-*-netbsd*): New target.
5686         * config/i386/netbsd64.h: New file.
5687
5688 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
5689
5690         * regrename.c (kill_value): Fix typo.
5691
5692 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
5693
5694         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
5695
5696         * config/rs6000/rs6000.h: Same.
5697
5698         * function.c (instantiate_virtual_regs): Remove
5699         STARTING_FRAME_PHASE.
5700         (assign_stack_local_1): Same.
5701         Calculate frame phase.
5702
5703 2002-01-22  Nick Clifton  <nickc@redhat.com>
5704
5705         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
5706         variable declaration to outer scope in order to simplify
5707         future extensions.
5708         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
5709         arm_hard_regno_mode_ok.
5710         * config/arm/arm-protos.h: Add a prototype for
5711         arm_hard_regno_mode_ok.
5712         * config/arm/arm.c (soft_df_operand): Remove now redundant
5713         check for DImode values using IP_REGNUM.
5714         (nonimmediate_soft_df_operand): Remove now redundant check for
5715         DImode values using IP_REGNUM.
5716         (arm_hard_regno_mode_ok): New function. New check: make sure
5717         that DImode values are not stored in IP_REGNUM.
5718
5719         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
5720         note with a USE.
5721         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
5722
5723 2002-01-22  Jason Merrill  <jason@redhat.com>
5724
5725         * c-semantics.c (genrtl_compound_stmt): Only check nesting
5726         consistency if this COMPOUND_STMT is scoped.
5727
5728 2002-01-22  Kazu Hirata  <kazu@hxi.com>
5729
5730         * predict.c: Fix formatting.
5731         * print-tree.c: Likewise.
5732         * protoize.c: Likewise.
5733         * real.h: Likewise.
5734         * rtl.h: Likewise.
5735         * sbitmap.h: Likewise.
5736         * scan.c: Likewise.
5737         * sched-deps.c: Likewise.
5738         * sched-vis.c: Likewise.
5739         * sdbout.c: Likewise.
5740         * sibcall.c: Likewise.
5741         * ssa.c: Likewise.
5742         * ssa-ccp.c: Likewise.
5743         * ssa-dce.c: Likewise.
5744         * stmt.c: Likewise.
5745         * stor-layout.c: Likewise.
5746         * system.h: Likewise.
5747
5748 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5749
5750         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
5751         if fits in bounds of base type.
5752
5753         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
5754         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
5755         (add_bound_info, default): If can't find a context, make a
5756         SAVE_EXPR.
5757         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
5758
5759 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
5760
5761         * c-typeck.c (parser_build_binary_op): If result from
5762         build_binary_op is ERROR_MARK just return error_mark_node without
5763         further processing.
5764
5765 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
5766
5767         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
5768         Split a.out-specific bits into...
5769         * config/netbsd-aout.h: ...this.
5770         * config/netbsd-elf.h: New file.
5771         * config/alpha/netbsd-elf.h: Remove.
5772         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
5773         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
5774         (STARTFILE_SPEC): Remove redundant definition.
5775         (ENDFILE_SPEC): Likewise.
5776         (LINK_SPEC): Likewise.
5777         (CPP_SPEC): Likewise.
5778         (ASM_SPEC): Likewise.
5779         (LIB_SPEC): Likewise.
5780         (SWITCH_TAKES_ARG): Likewise.
5781         (TARGET_MEM_FUNCTIONS): Likewise.
5782         (CPP_PREDEFINES): Redefine.
5783         (ASM_FINAL_SPEC): Remove redefinition.
5784         (ASM_COMMENT_START): Redefine.
5785         (FUNCTION_PROFILER): Define.
5786         (TARGET_VERSION): Redefine.
5787         Comment and formatting cleanup.
5788         * config/i386/netbsd.h: Include <netbsd-aout.h>.
5789         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
5790         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
5791         big- or little-endian.
5792         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
5793         * config.gcc (*-*-netbsd*): Add definitions common to all
5794         NetBSD configs.
5795         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
5796         gnu_ld definitions.  Add netbsd-elf.h to and remove
5797         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
5798         tmake_file, and don't lose previous tmake_file contents.
5799         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
5800         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
5801         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
5802         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
5803         (mipsel-*-netbsd*): Rename this to...
5804         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
5805         mips/little.h to tm_file for mips*el-*.
5806         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
5807         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
5808         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
5809
5810 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5811
5812         * pa-protos.h (reg_before_reload_operand): New function prototype.
5813         * pa.c (reg_before_reload_operand): New function implementation.
5814         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
5815         contraints to "*m".
5816
5817 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5818
5819         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
5820
5821 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5822
5823         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
5824         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
5825         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
5826         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
5827         (ENDFILE_SPEC): Undefine.
5828         (STARTFILE_SPEC): Redefine for PA.
5829
5830 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5831
5832         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
5833
5834 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
5835
5836         * config.gcc: Add entries to supported PowerPC --with-cpu
5837         types.
5838
5839 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
5840
5841         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
5842         true for 64-bit mode only SSE registers in 32-bit mode.
5843
5844 2002-01-21  Kazu Hirata  <kazu@hxi.com>
5845
5846         * unwind-dw2.c: Fix formatting.
5847         * unwind-dw2-fde.c: Likewise.
5848         * unwind-dw2-fde.h: Likewise.
5849         * unwind-pe.h: Likewise.
5850         * varasm.c: Likewise.
5851         * varray.h: Likewise.
5852
5853 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
5854
5855         Remove workaround for register stack overwrite bug in mmix.
5856         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
5857         support for TARGET_REG_STACK_FILL_BUG.
5858         * config/mmix/mmix.h: Remove member has_call_without_parameters.
5859         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
5860         Delete.
5861         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
5862         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
5863         -mno-reg-stack-fill-bug-workaround.
5864         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
5865         machine member has_call_without_parameters.
5866         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
5867         -mreg-stack-fill-bug-workaround and
5868         -mno-reg-stack-fill-bug-workaround.
5869         (MMIX Options): Ditto.
5870
5871 2002-01-21  Kazu Hirata  <kazu@hxi.com>
5872
5873         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
5874         as appropriate.
5875         Remove redundant code.
5876
5877 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
5878
5879         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
5880         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
5881         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
5882         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
5883         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
5884         out target macro definitions and non-target-specific comments
5885         mostly taken from old versions of the manual.
5886
5887 2002-01-20  Kazu Hirata  <kazu@hxi.com>
5888
5889         * config/h8300/h8300.h: Fix comment formatting.
5890         * config/ia64/aix.h: Likewise.
5891         * config/ia64/ia64-protos.h: Likewise.
5892         * config/ia64/ia64.c: Likewise.
5893         * config/ia64/ia64.h: Likewise.
5894         * config/ia64/ia64intrin.h: Likewise.
5895         * config/ia64/linux.h: Likewise.
5896         * config/ia64/unwind-aix.c: Likewise.
5897         * config/ia64/unwind-ia64.c: Likewise.
5898
5899 2002-01-20  Kazu Hirata  <kazu@hxi.com>
5900
5901         * config/h8300/h8300.c: Revise comments about shift code.
5902
5903 2002-01-20  Kazu Hirata  <kazu@hxi.com>
5904
5905         * config/h8300/h8300.c (function_arg): Update a comment.
5906
5907 2002-01-20  Kazu Hirata  <kazu@hxi.com>
5908
5909         * config/h8300/h8300.md: Update the comments at the beginning
5910         of the file.
5911
5912 2002-01-20  Kazu Hirata  <kazu@hxi.com>
5913
5914         * config/i370/i370.c: Fix comment formatting.
5915         * config/i370/i370.h: Likewise.
5916         * config/i370/i370.md: Likewise.
5917         * config/i370/linux.h: Likewise.
5918
5919 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5920
5921         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
5922
5923         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
5924         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
5925         in incomplete case.
5926
5927 2002-01-20  Graham Stott  <grahams@redhat.com>
5928
5929         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
5930
5931 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5932
5933         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
5934
5935 2002-01-19  Tom Rix  <trix@redhat.com>
5936
5937         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
5938
5939 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
5940
5941         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
5942
5943         * function.c (assign_stack_local_1): Adjust x_frame_offset with
5944         STARTING_FRAME_PHASE.
5945         (STARTING_FRAME_PHASE): New.
5946         (instantiate_virtual_regs): Check saneness of
5947         STARTING_FRAME_PHASE.
5948
5949         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
5950
5951 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
5952
5953         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
5954
5955 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5956
5957         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
5958         be used for bootstrapping GCC 3.0.
5959
5960 2002-01-18  Kazu Hirata  <kazu@hxi.com>
5961
5962         * config/h8300/h8300.md: Fix an insn length.
5963
5964 2002-01-18  Kazu Hirata  <kazu@hxi.com>
5965
5966         * bitmap.h: Fix comment formatting.
5967         * combine.c: Likewise.
5968         * cppfiles.c: Likewise.
5969         * c-pragma.h: Likewise.
5970         * c-typeck.c: Likewise.
5971         * df.c: Likewise.
5972         * dwarf2out.c: Likewise.
5973         * function.c: Likewise.
5974         * gcc.c: Likewise.
5975         * genattrtab.c: Likewise.
5976         * gthr-win32.h: Likewise.
5977         * haifa-sched.c: Likewise.
5978         * predict.c: Likewise.
5979         * rtlanal.c: Likewise.
5980         * rtl.h: Likewise.
5981         * unwind-dw2-fde.h: Likewise.
5982         * unwind-pe.h: Likewise.
5983         * vmsdbgout.c: Likewise.
5984
5985 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5986
5987         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
5988         if type_required and passed decl.
5989
5990 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
5991
5992         * config.gcc (cpu_type): Include altivec.h in powerpc
5993         extra_headers.
5994         Same for darwin.
5995
5996         * config/rs6000/altivec.h: New.
5997
5998 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
5999
6000         * doc/install.texi (*-ibm-aix*): Update assembler and exception
6001         handling information.
6002         * doc/trouble.texi (Interoperation): Add libstdc++ information
6003         for AIX.
6004         (Misunderstandings): Add template instantiation and static template
6005         member information for AIX.
6006
6007 2002-01-17  Jason Merrill  <jason@redhat.com>
6008
6009         * dbxout.c (dbxout_type): Support const and volatile.
6010
6011         * except.c (add_partial_entry): Remove backwards compatibility code.
6012         (end_protect_partials): Likewise.
6013
6014 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
6015
6016         * config/ia64/ia64.md (prologue_use): New.
6017         * config/ia64/ia64.c (ia64_expand_prologue): Use
6018         gen_prologue_use instead of gen_rtx_USE.
6019         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
6020         as CODE_FOR_pred_rel_mutex.
6021         (ia64_sched_reorder2): Likewise.
6022
6023 2002-01-16  Eric Christopher  <echristo@redhat.com>
6024
6025         * config/mips/r3900.h: Reformat.
6026         (SUBTARGET_CPP_SIZE_SPEC): Remove.
6027         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
6028         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
6029         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
6030         * config/mips/t-elf: Remove mips3 multilib.
6031
6032 2002-01-16  H.J. Lu <hjl@gnu.org>
6033
6034         * config/mips/linux.h: Include "mips/abi64.h".
6035
6036 2002-01-16  H.J. Lu <hjl@gnu.org>
6037
6038         * config/mips/t-linux: New.
6039
6040         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
6041
6042         * config/mips/linux.h: Don't include "gofast.h".
6043         (INIT_SUBTARGET_OPTABS): Removed.
6044
6045 2002-01-16  Kazu Hirata  <kazu@hxi.com>
6046
6047         * config/h8300/h8300-protos.h: Replace emit_a_shift with
6048         output_a_shift.
6049         * config/h8300/h8300.c: Likewise.
6050         * config/h8300/h8300.md: Likewise.
6051
6052 2002-01-16  Kazu Hirata  <kazu@hxi.com>
6053
6054         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
6055         spaces after an opcode name.
6056         (pushqi1_h8300hs): Likewise.
6057         (pushhi1_h8300hs): Likewise.
6058
6059 2002-01-16  Kazu Hirata  <kazu@hxi.com>
6060
6061         * doc/extend.texi: Replace "option" with "attribute"
6062         appropriately.
6063
6064 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
6065
6066         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
6067         (and:DI () (const_int -8)).
6068         (split_small_symbolic_mem_operand): Split
6069         (mem (and:DI () (const_int -8)).
6070
6071 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
6072
6073         PR target/5309:
6074         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
6075         same way as TYPE_IMUL.
6076         (ultrasparc_sched_reorder): Likewise.
6077         * config/sparc/sparc.md (type): Add comment to update
6078         ultrasparc_sched_reorder when making changes.
6079
6080 2002-01-16  Kazu Hirata  <kazu@hxi.com>
6081
6082         * doc/invoke.texi: Change the dump file name of block
6083         reordering pass from 28.bbro to 29.bbro.
6084         Mention -dk option.
6085
6086 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
6087
6088         * i386.md (minsf splitter): Fix pasto.
6089
6090 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
6091
6092         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
6093         to frame pointer initialisation instruction.
6094         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
6095         initialisation instruction.
6096         (soft_df_operand): Do not accept the IP register.
6097         (nonimmediate_soft_df_operand): Do not accept the IP register.
6098
6099 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
6100
6101         PR target/5357:
6102         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
6103         MASK_V8 being both set.
6104
6105 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
6106
6107         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
6108         insn for GOT register; add REG_MAYBE_DEAD notes instead.
6109         config/s390/s390.md (call, call_value): Add GOT register to
6110         CALL_INSN_FUNCTION_USAGE where needed.
6111         (call_exp, call_value_exp): New.
6112
6113 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
6114
6115         * config/arm/arm.c: General formatting tidy up.
6116
6117 2002-01-16  Graham Stott  <grahams@redhat.com>
6118
6119         * calls.c (try_to_integrate): Use "(size_t)" intermediate
6120         cast and when casting an integer literal to "rtx" pointer.
6121         (expand_call): Likewise.
6122         * flow.c (try_pre_increment): Likewise.
6123         (find_use_as_address): Likewise.
6124         * integrate.c (expand_iline_function): Likewise.
6125         * regmove.c (try_auto_increment): Likewise.
6126
6127 2002-01-16  Graham Stott  <grahams@redhat.com>
6128
6129         * sched-rgn.c (passed): Use sbitmap_free.
6130         (header): Likewise.
6131         (inner): Likewise.
6132         (in_queue): Likewise.
6133         (in_stack): Likewise.
6134
6135 2002-01-15  Eric Christopher  <echristo@redhat.com>
6136
6137         * flow.c (propagate_one_insn): Change to use fatal_insn.
6138
6139 2002-01-15  Kazu Hirata  <kazu@hxi.com>
6140
6141         * expmed.c (extract_fixed_bit_field): Remove unused code.
6142         * system.h: Poison SLOW_ZERO_EXTEND.
6143         * doc/tm.texi: Remove.
6144         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
6145         * config/arm/arm.h: Likewise.
6146         * config/avr/avr.h: Likewise.
6147         * config/clipper/clipper.h: Likewise.
6148         * config/convex/convex.h: Likewise.
6149         * config/d30v/d30v.h: Likewise.
6150         * config/dsp16xx/dsp16xx.h: Likewise.
6151         * config/elxsi/elxsi.h: Likewise.
6152         * config/fr30/fr30.h: Likewise.
6153         * config/h8300/h8300.h: Likewise.
6154         * config/i370/i370.h: Likewise.
6155         * config/i386/i386.h: Likewise.
6156         * config/m68k/m68k.h: Likewise.
6157         * config/mips/mips.h: Likewise.
6158         * config/ns32k/ns32k.h: Likewise.
6159         * config/pdp11/pdp11.h: Likewise.
6160         * config/pj/pj.h: Likewise.
6161         * config/s390/s390.h: Likewise.
6162         * config/sh/sh.h: Likewise.
6163         * config/stormy16/stormy16.h: Likewise.
6164         * config/v850/v850.h: Likewise.
6165         * config/vax/vax.h: Likewise.
6166         * config/we32k/we32k.h: Likewise.
6167
6168 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
6169
6170         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
6171         (altivec_lvsl): Change constraint to b.
6172         (altivec_lvsr): Same.
6173         (altivec_lvebx): Same.
6174         (altivec_lvehx): Same.
6175         (altivec_lvewx): Same.
6176         (altivec_lvxl): Same.
6177         (altivec_lvx): Same.
6178         (altivec_stvx): Add parallel.
6179         (altivec_stvxl): Same.
6180         (altivec_stvehx): Same.
6181         (altivec_stvebx): Same.
6182         (altivec_stvebx): Same.
6183
6184 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
6185
6186         * config.gcc: Change altivec.h to altivec-defs.h.
6187
6188         * config/rs6000/altivec.h: Delete.
6189
6190         * config/rs6000/altivec-defs.h: Add.
6191
6192 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6193
6194         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
6195         and UMOD modes.
6196
6197         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
6198         less than or equal to eight bytes.
6199
6200         * vax.md (andsi3): Remove constraints and change SET destination
6201         operand type to nonimmediate_operand.
6202         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
6203         when it is a CONST_INT.
6204
6205 2002-01-15  Jason Merrill  <jason@redhat.com>
6206
6207         * c-common.def (FILE_STMT): New code.
6208         * c-common.c (statement_code_p): It's a statement.
6209         * c-common.h (stmt_tree_s): Add x_last_filename.
6210         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
6211         (last_expr_filename): New macro.
6212         * c-semantics.c (begin_stmt_tree): Initialize it.
6213         (add_stmt): If the filename changed, also insert a
6214         FILE_STMT.
6215         (expand_stmt): Handle seeing one.
6216
6217 2002-01-15  Eric Christopher  <echristo@redhat.com>
6218
6219         * flow.c (propagate_one_insn): Add error message and print out
6220         insn for debugging.
6221
6222 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
6223
6224         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
6225         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
6226         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
6227         TRAMPOLINE_ALIGNMENT.
6228         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
6229         to be in bits.
6230         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
6231         PCC_BITFIELD_TYPE_MATTERS.
6232         * config/interix.h (STDC_VALUE): Remove.  Use
6233         STDC_0_IN_SYSTEM_HEADERS.
6234         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
6235         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
6236         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
6237
6238 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
6239
6240         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
6241         not work on this platform currently.
6242
6243 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
6244
6245         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
6246         readonly_warning in _().
6247
6248 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
6249
6250         * gcc.c (delete_if_ordinary): Backout previous change.
6251
6252 2002-01-15  Kazu Hirata  <kazu@hxi.com>
6253
6254         * config/h8300/h8300.c (print_operand): Remove support for
6255         unused operand characters.
6256
6257         * read-rtl.c: Fix formatting.
6258         * real.c: Likewise.
6259         * recog.c: Likewise.
6260         * regclass.c: Likewise.
6261         * regmove.c: Likewise.
6262         * reg-stack.c: Likewise.
6263         * reload1.c: Likewise.
6264         * rtlanal.c: Likewise.
6265
6266 2002-01-15  Kazu Hirata  <kazu@hxi.com>
6267
6268         * config/i386/i386.c: Fix formatting.
6269
6270 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
6271
6272         * c-typeck.c (process_init_element): Don't save_expr
6273         COMPOUND_LITERAL_EXPR if just its initializer will be used.
6274
6275 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
6276
6277         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
6278         emit optional traceback table if optimize_size or TARGET_ELF.
6279         * config/rs6000/rs6000.md (prefetch): New.
6280
6281 2002-01-15  Andreas Jaeger  <aj@suse.de>
6282
6283         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
6284
6285 2002-01-15  Kazu Hirata  <kazu@hxi.com>
6286
6287         * mips-tfile.c: Fix formatting.
6288
6289 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
6290
6291         * unroll.c (final_reg_note_copy): Fix previous commit.
6292
6293 2002-01-14  Kazu Hirata  <kazu@hxi.com>
6294
6295         * config/h8300/h8300-protos.h: Remove the prototype for
6296         eq_operator.
6297         * config/h8300/h8300.c (eq_operator): Remove.
6298
6299 2002-01-14  Richard Henderson  <rth@redhat.com>
6300
6301         * config/i386/i386.md (prefetch): Tidy.
6302         (prefetch_3dnow): Fix locality operand.
6303
6304 2002-01-14  Richard Henderson  <rth@redhat.com>
6305
6306         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
6307         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
6308
6309 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
6310
6311         * reload1.c (reload_combine): Pass reg_sum replacement through
6312         copy_rtx in loop performing multiple changes.
6313
6314 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
6315
6316         * except.c (remove_unreachable_regions): New.
6317         (free_eh_status): Clear exception_handler_labels.
6318         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
6319         (find_exception_handler_labels): Don't add the same label more than
6320         once.
6321         (remove_exception_handler_label): Don't die if
6322         find_exception_handler_labels hasn't been called for the current
6323         function yet.
6324
6325 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
6326
6327         * toplev.c (rest_of_compilation): Rebuild jump labels after
6328         gcse.
6329
6330 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
6331
6332         * doc/extend.texi: Move documentation of X86 built-in functions
6333         here.
6334         * doc/invoke.texi: From here.
6335         * doc/sourcebuild.texi: Document location of documentation for
6336         machine built-in functions.
6337
6338 2002-01-13  Christopher Faylor  <cgf@redhat.com>
6339
6340         * cppfiles.c (TEST_THRESHOLD): New macro.
6341         (SHOULD_MMAP): Ditto.
6342         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
6343         be used.
6344
6345 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
6346
6347         * unroll.c (final_reg_note_copy): Properly handle
6348         REG_LABEL
6349         (unroll_loops): Fix LOOP_CONDITION heuristics.
6350
6351 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
6352
6353         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
6354         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
6355
6356 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
6357
6358         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
6359         threaded loop.
6360
6361 2002-01-14  Tom Rix  <trix@redhat.com>
6362
6363         * config/rs6000/rs6000.md: Fix typo with sradi.
6364
6365 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
6366
6367         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
6368         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
6369         (clrstrdi, clrstrsi): Adapt callers.
6370
6371         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
6372
6373         (movti splitter): Never use register 0 as base register.
6374
6375 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
6376
6377         * combine.c (simplify_shift_const): Always generate new rtx
6378         for shift expression instead of reusing given expression.
6379
6380 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6381
6382         * config/alpha/alpha.c (alpha_expand_mov): Don't call
6383         alpha_legitimize_address unless mode is Pmode.
6384
6385 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
6386
6387         * doc/md.texi (Modifiers): Document the '*' constraint for the
6388         user.
6389
6390         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
6391         * doc/extend.texi (Function Attributes): 'interrupt' is valid
6392         for xstormy16 too.
6393
6394 2002-01-13  Richard Henderson  <rth@redhat.com>
6395
6396         * reload.c (find_reloads): Use a hard reg destination as reload reg
6397         for an input reload of the source.
6398
6399 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6400
6401         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
6402         more generic.
6403
6404 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
6405
6406         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
6407         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
6408
6409         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
6410
6411 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6412
6413         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
6414
6415 2002-01-12  Tom Rix  <trix@redhat.com>
6416
6417         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
6418         TARGET_POWERPC64.
6419
6420 2002-01-12  Richard Henderson  <rth@redhat.com>
6421
6422         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
6423
6424         * doc/invoke.texi: Update Alpha options.
6425
6426         * doc/invoke.texi: Update i386 built-in function lists.
6427
6428 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
6429
6430         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
6431         referencing outside.
6432
6433 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6434
6435         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
6436         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
6437         offsets, and change line folding.
6438         * optabs.c (expand_binop): Remove warnings.
6439         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
6440
6441 2002-01-12  Graham Stott <grahams@redhat.com>
6442
6443         * attribs.c (handle_deprecated_attribute): constify WHAT.
6444         * diagnostic.c (warn_deprecated_use): Add braces, fixes
6445         dangling else warning and constify WHAT.
6446         * except.h (struct function, struct inline_remap): Move
6447         struct tag forward defs before all prototypes.
6448         (duplicate_eh_regions): Whitespace.
6449
6450 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
6451
6452         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
6453         MODE_BASE_REG_CLASS.
6454         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
6455
6456 2002-01-12  Richard Henderson  <rth@redhat.com>
6457
6458         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
6459         (ix86_expand_vector_move): New.
6460         (bdesc_2arg): Remove andps, andnps, orps, xorps.
6461         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
6462         Remove old prefetch builtins.  Special case the logicals removed above.
6463         (ix86_expand_builtin): Likewise.
6464         (safe_vector_operand): Use V4SFmode, not TImode.
6465         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
6466         (ix86_expand_timode_binop_builtin): New.
6467         * config/i386/i386-protos.h: Update.
6468         * config/i386/i386.h (enum ix86_builtins): Update.
6469         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
6470         Use ix86_expand_vector_move in vector move expanders.
6471         (movti_internal, movti_rex64): Add xorps alternative.
6472         (sse_clrv4sf): Rename and adjust from sse_clrti.
6473         (prefetch): Don't work so hard.
6474         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
6475         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
6476         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
6477
6478 2002-01-11  Richard Henderson  <rth@redhat.com>
6479
6480         * config/i386/mmintrin.h: New file.
6481         * config/i386/xmmintrin.h: New file.
6482         * config.gcc (i?86-*-*): Add extra_headers.
6483         * simplify-rtx.c (simplify_unary_operation): Handle saturating
6484         truncation codes.
6485         (simplify_binary_operation): Handle saturating arithmetic codes.
6486         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
6487         not the lowpart subreg.
6488         (ix86_expand_builtin): Return a TImode dummy register instead of 0
6489         on error.
6490         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
6491
6492 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6493
6494         * conflict.c (conflict_graph_compute): Free regsets when finished.
6495         * ssa.c (compute_coalesced_reg_partition): Likewise.
6496
6497 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6498
6499         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
6500         every where we allocate a register.
6501
6502 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6503
6504         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
6505         * lcm.c (compute_earliest, compute_farthest): Likewise.
6506
6507 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
6508
6509         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
6510
6511 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
6512
6513         * doc/rtl.texi (Insns): Fix 2 typos.
6514
6515 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
6516
6517         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
6518         options.  Use @table @gcctabopt for MMIX options.  Add index
6519         entries for MMIX options.  Start new paragraph with first
6520         heading of the machine-dependent options.
6521
6522 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
6523
6524         PR other/5299
6525         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
6526         * combine.c (force_to_mode): Same.
6527         * reload1.c (clear_reload_reg_in_use): Same.
6528
6529 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
6530
6531         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
6532         and 'subtargets'.
6533
6534 2002-01-11  Andreas Jaeger  <aj@suse.de>,
6535             Brad Lucier <lucier@math.purdue.edu>
6536
6537         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
6538         mcpu.
6539
6540 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
6541
6542         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
6543         Protect with IN_LIBGCC.
6544         (LINK_EH_SPEC): Add required trailing space.
6545
6546 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
6547
6548         * c-tree.h: Move function declarations so that they are listed
6549         under the filename which contains them.
6550         (check_identifier, finish_decl_top_level,
6551         lookup_name_current_level_global, shadow_record_fields): Remove.
6552
6553 2002-01-11  Andreas Jaeger  <aj@suse.de>
6554
6555         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
6556         march.
6557
6558 2002-01-10  Richard Henderson  <rth@redhat.com>
6559
6560         * config/alpha/alpha.c (print_operand): Add 'J'.
6561         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
6562         new operand with the sequence number for the lituse.  When splitting
6563         the insns, use gen_movdi_er_high_g and generate a sequence number.
6564         (gen_movdi_er_high_g): Print the sequence number if non-zero.
6565
6566 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
6567
6568         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
6569         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
6570         stvxl.
6571         (altivec_expand_builtin): Same.
6572         (altivec_expand_stv_builtin): New.
6573
6574         * config/rs6000/rs6000.h (rs6000_builtins): Same.
6575
6576         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
6577         ("altivec_lvehx"): New.
6578         ("altivec_lvewx"): New.
6579         ("altivec_lvxl"): New.
6580         ("altivec_lvx"): New.
6581         ("altivec_stvx"): New.
6582         ("altivec_stvebx"): New.
6583         ("altivec_stvehx"): New.
6584         ("altivec_stvewx"): New.
6585         ("altivec_stvxl"): New.
6586
6587 2002-01-10  Richard Henderson  <rth@redhat.com>
6588
6589         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
6590         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
6591         care not to delete instructions twice.
6592
6593 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
6594
6595         * toplev.c: Don't declare environ (it's not used anywhere).
6596         * configure.in: Don't check for declaration of environ.
6597         * config/i386/xm-mingw32.h: Don't #define environ.
6598         * config.in, configure: Regenerate.
6599
6600 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
6601
6602         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
6603         * configure: Regenerate.
6604
6605         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
6606         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
6607         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
6608         alpha/xm-vms.h.
6609         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
6610         LIMITS_H_TEST here, not in m68k/x-next.
6611         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
6612         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
6613
6614         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
6615         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
6616         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
6617
6618         * config/i386/x-djgpp: Renamed i386/t-djgpp.
6619         * config/m88k/x-dolph: Renamed m88k/t-dolph.
6620         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
6621         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
6622         replacement of quadlib.asm with quadlib.c.
6623
6624         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
6625         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
6626         config/rs6000/xm-beos.h: Delete file.
6627
6628         * config.gcc: Update to match above changes.
6629
6630 2002-01-10  Kazu Hirata  <kazu@hxi.com>
6631
6632         * config/h8300/h8300.h: Fix comment typos.
6633         * config/h8300/h8300.md: Likewise.
6634         * config/h8300/lib1funcs.asm: Likewise.
6635
6636 2002-01-10  Dale Johannesen  <dalej@apple.com>
6637
6638         PR optimization/5269
6639         * unroll.c (precondition_loop_p): Make *increment be the correct
6640         sign when n_iterations known, to avoid confusing caller.
6641
6642 2002-01-10  Kazu Hirata  <kazu@hxi.com>
6643
6644         * doc/extend.texi (deprecated): Fix a typo.
6645
6646 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
6647
6648         * basic-block.h (update_br_prob_note): Declare.
6649         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
6650         (try_forward_edges): Care negative frequencies and update note.
6651         (outgoing_edges_match): Tweek conditional merging heuristics.
6652         (try_crossjump_to_edge): use update_br_prob_note.
6653         * cfglayout.c (fixup_reorder_chain): Likewise.
6654         * cfrtl.c (update_br_prob_note): New.
6655         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
6656
6657         * i386.c (ix86_decompose_address): Return -1 if address contains
6658         shift.
6659         (legitimate_address_p): Require ix86_decompose_address to return 1.
6660
6661         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
6662         (cprop_insn): Likewise.
6663
6664 2002-01-10  Kazu Hirata  <kazu@hxi.com>
6665
6666         * toplev.c: Fix formatting.
6667         * tree.c: Likewise.
6668         * tree-dump.c: Likewise.
6669         * unroll.c: Likewise.
6670         * unwind-dw2.c: Likewise.
6671         * unwind-dw2-fde.c: Likewise.
6672         * unwind-dw2-fde-glibc.c: Likewise.
6673         * unwind-sjlj.c: Likewise.
6674
6675 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
6676
6677         * doc/invoke.texi: Document PDP-11 options.
6678
6679 2002-01-10  Kazu Hirata  <kazu@hxi.com>
6680
6681         * config/h8300/h8300.h: Fix formatting.
6682
6683 2002-01-10  Ira Ruben   <ira@apple.com>
6684
6685         Add __attribute__ ((deprecated)).
6686         * extend.texi: Document __attribute__ ((deprecated)).
6687         * invoke.texi: Document -Wno-deprecated-declarations.
6688         * testsuite/g++.dg/other/deprecated.C: New C++ test.
6689         * testsuite/gcc.dg/deprecated.c: New C test.
6690         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
6691         (c_common_attribute_table): Add "deprecated" entry.
6692         (handle_deprecated_attribute): New function.
6693         * c-decl.c (deprecated_states): New enum.
6694         deprecated_state: State of "deprecated" handling.
6695         (start_decl): Set deprecated_state based on attributes.
6696         (grokdeclarator): Test for deprecated uses, propagate attribute.
6697         * c-typeck.c (build_component_ref): Test for deprecated fields.
6698         (build_external_ref): Test for deprecated primaries.
6699         * diagnostic.c (warn_deprecated_use) New function to issue
6700         warnings about __attribute__ ((depricated)) references.
6701         * flags.h (warn_deprecated_decl): Extern declared for
6702         -W[no-]deprecated-declarations option.
6703         * print-tree.c (print_node): Show deprecated flag status.
6704         * toplev.c (warn_deprecated_decl): Defined.
6705         (W_options): Added "deprecated-declaration".
6706         * toplev.h (warn_deprecated_use): Extern declared.
6707         * tree.h (struct tree_common): Define deprecated_flag.
6708         (TREE_DEPRECATED): New macro to access flag.
6709         * cp/call.c (build_call): Test for deprecated calls.
6710         * cp/class.c (add_implicitly_declared_members): Set global
6711         flag to tell grokdeclarator to not issue deprecated warnings.
6712         * cp/cp-tree.h: Add extern for adding_implicit_members.
6713         * cp/decl.c (deprecated_states): New enum.
6714         (start_decl): Set deprecated_state based on attributes.
6715         (grokdeclarator): Test for deprecated uses, propagate attribute.
6716         * cp/lex.c (do_identifier): Test for deprecated primaries.
6717         * cp/typeck.c (build_component_ref): Test for deprecated fields.
6718
6719 2002-01-10  Ira Ruben   <ira@apple.com>
6720
6721         Fix to assign attributes to inline member functions.
6722         * cp/decl.c (start_method): Handle attrlist.
6723
6724 2002-01-10  Kazu Hirata  <kazu@hxi.com>
6725
6726         * combine.c (expand_field_assignment): Use subreg_lsb().
6727
6728 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
6729
6730         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
6731         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
6732         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
6733         Recurse for any operand of AND as long as constant is non-zero.
6734
6735 2002-01-10  Kazu Hirata  <kazu@hxi.com>
6736
6737         * config/h8300/h8300.md: Remove constraints from expanders.
6738
6739 2002-01-10  Kazu Hirata  <kazu@hxi.com>
6740
6741         * varasm.c: Fix formatting.
6742         * varray.c: Likewise.
6743         * vmsdbgout.c: Likewise.
6744         * xcoffout.c: Likewise.
6745
6746 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
6747
6748         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
6749         update edge probabilities to match.
6750
6751 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
6752
6753         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
6754         dependencies.
6755         * doc/languages.texi, doc/sourcebuild.texi: New files.
6756         * doc/configfiles.texi: Make a subsubsection.  Update.
6757         * doc/configterms.texi: Add @node.  Remove warning that this isn't
6758         instructions for building GCC.
6759         * doc/makefile.texi: Make a subsection.
6760         * doc/gccint.texi: Update.
6761
6762 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
6763
6764         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
6765
6766 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
6767
6768         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
6769
6770 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
6771
6772         * optabs.c (expand_fix): Look for wider integer modes first.
6773
6774         * i386.md (mov?f): Avoid the fake const double trick for medium
6775         memory model.
6776         (min?f*/max?f*): Prohibit memory operands for i387 variant.
6777         (fop_df_4): Disable for SSE compilation.
6778
6779 2002-01-10  Graham Stott  <grahams@redhat.com>
6780
6781         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
6782         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
6783
6784 2002-01-10  Richard Henderson  <rth@redhat.com>
6785
6786         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
6787
6788 2002-01-10  Richard Henderson  <rth@redhat.com>
6789
6790         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
6791         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
6792
6793 2002-01-10  Kazu Hirata  <kazu@hxi.com>
6794
6795         * combine.c (can_combine_p): Fix a comment typo.
6796
6797 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
6798
6799         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
6800         empty list correctly.  Change loop index $t to $f for
6801         consistency with rest of Makefile.
6802
6803 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
6804
6805         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
6806         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
6807
6808         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
6809         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
6810         (altivec_init_builtins): Same.
6811         (altivec_expand_unop_builtin): Return NULL_RTX on error.
6812         (altivec_expand_binop_builtin): Same.
6813         (altivec_expand_ternop_builtin): Same.
6814         (bdesc_dst): New.
6815
6816         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
6817         ("altivec_vctuxs"): Fix typo.
6818         ("altivec_vnmsubfp"): Same.
6819         ("altivec_dssall"): New.
6820         ("altivec_mfvscr"): New.
6821         ("altivec_dss"): New.
6822         ("altivec_lvsl"): New.
6823         ("altivec_lvsr"): New.
6824         ("altivec_dstt"): New.
6825         ("altivec_dstst"): New.
6826         ("altivec_dststt"): New.
6827         ("altivec_dst"): New.
6828
6829         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
6830         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
6831
6832 2002-01-09  Richard Henderson  <rth@redhat.com>
6833
6834         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
6835
6836 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
6837
6838         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
6839         function.
6840         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
6841         prototype.
6842         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
6843
6844 2002-01-09  Kazu Hirata  <kazu@hxi.com>
6845
6846         * read-rtl.c: Fix formatting.
6847         * real.c: Likewise.
6848         * regclass.c: Likewise.
6849         * regrename.c: Likewise.
6850         * reg-stack.c: Likewise.
6851         * reload1.c: Likewise.
6852         * reload.c: Likewise.
6853         * rtl.c: Likewise.
6854
6855 2002-01-09  Kazu Hirata  <kazu@hxi.com>
6856
6857         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
6858         to extract items in the expr_list chain.
6859
6860 2002-01-09  Richard Henderson  <rth@redhat.com>
6861
6862         * config/vax/vax.c (vax_rtx_cost): Never abort.
6863
6864         * config/vax/vax.h (REAL_ARITHMETIC): Define.
6865
6866 2002-01-09  Jan Hubicka  <jh@suse.cz>
6867
6868         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
6869
6870 2002-01-09  Richard Henderson  <rth@redhat.com>
6871
6872         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
6873         Unify code from various alternatives.
6874
6875 2002-01-09  Richard Henderson  <rth@redhat.com>
6876
6877         * regrename.c (copy_value): Ignore the copy if the source register
6878         is present in the value chain with a narrower mode.
6879
6880 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
6881
6882         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
6883         for the c4x target. Also improve layout.
6884
6885 2002-01-09  Richard Henderson  <rth@redhat.com>
6886
6887         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
6888         * config/m32r/m32r.md (and ior xor splitters): Swap operands
6889         to match insn patterns.
6890
6891 2002-01-09  Richard Henderson  <rth@redhat.com>
6892
6893         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
6894         (copyprop_hardreg_forward_1): Likewise.
6895
6896 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6897
6898         * pa.md (decrement_and_branch_until_zero): Change predicate for
6899         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
6900
6901 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
6902
6903         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
6904         gets undefined. For Darwin.
6905
6906 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6907
6908         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
6909
6910 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
6911
6912         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
6913
6914 2002-01-08  Richard Henderson  <rth@redhat.com>
6915
6916         * regrename.c (copy_value): Ignore overlapping copies.
6917
6918 2002-01-08  Richard Henderson  <rth@redhat.com>
6919
6920         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
6921         as needed to avoid shared structure.
6922
6923 2002-01-08  Kazu Hirata  <kazu@hxi.com>
6924
6925         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
6926         H8/300H and H8/S.
6927
6928 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
6929
6930         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
6931         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
6932         documentation of obsolete macros.
6933         * system.h: Poison these macros.
6934         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
6935         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
6936         config/c4x/c4x.h, config/clipper/clipper.h,
6937         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
6938         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
6939         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
6940         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
6941         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
6942         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
6943         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
6944         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
6945         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
6946         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
6947         config/sparc/sparc.h, config/stormy16/stormy16.h,
6948         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
6949         definitions and commented out definitions of obsolete macros.
6950         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
6951         of MAX_INT_TYPE_SIZE.
6952
6953 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
6954
6955         * config/s390/s390.c (s390_preferred_reload_class): Never
6956         return ADDR_REGS if it isn't a subset of the given class.
6957         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
6958         FP_REGS, but all superclasses as well.
6959
6960         * config/s390/s390.c (s390_function_profiler): Fix thinko.
6961
6962         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
6963         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
6964         must not be a const_int.
6965
6966 2002-01-08  Richard Henderson  <rth@redhat.com>
6967
6968         * Makefile.in (toplev.o): Depend on options.h.
6969         (gcc.o): Depend on specs.h.
6970
6971 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
6972
6973         * expr.c (store_expr): Convert VOIDmode constants back to target's
6974         mode.
6975
6976 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6977
6978         * doc/invoke.texi: Markup gcc as @command.  Refer to
6979         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
6980         of http://gcc.gnu.org/thanks.html.
6981
6982 2002-01-08  Dale Johannesen  <dalej@apple.com>
6983
6984         * config/rs6000/rs6000.md: Add missing int register
6985         target case to movdf_low.
6986
6987 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
6988
6989         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
6990         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
6991         (cppinit.o): Depend on except.h.
6992         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
6993         s-specs): New rules.
6994
6995         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
6996         Don't create specs.h/options.h/gencheck.h here.  Remove
6997         unnecessary variable settings from last argument of AC_OUTPUT.
6998         * config.in, configure: Regenerate.
6999         * intl.c: Hardcode package name as "gcc".
7000
7001         * cppinit.c: Include except.h.
7002         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
7003         appropriate.
7004         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
7005         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
7006         (!)USING_SJLJ_EXCEPTIONS.
7007         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
7008
7009 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
7010
7011         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
7012         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
7013         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
7014         documentation of obsolete macros.
7015         * system.h: Poison these macros.
7016         * config/d30v/d30v.h, config/ns32k/encore.h,
7017         config/stormy16/stormy16.h: Remove definitions and commented out
7018         definitions of obsolete macros.
7019
7020 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
7021
7022         * objc/objc-act.c (handle_class_ref): Mark the declaration of
7023         %sobjc_class_ref_%s as used - to prevent unwanted compiler
7024         warnings.
7025
7026 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
7027
7028         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
7029         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
7030         to insn adjusting stack/frame pointer.
7031         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
7032         accept operands that cause the insn to be non-splittable.
7033
7034 2002-01-08  Graham Stott  <grahams@redhat.com>
7035
7036         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
7037         (C_TYPE_FIELDS_VOLATILE): Likewise.
7038         (C_TYPE_BEING_DEFINED): Likewise.
7039         (C_IS_RESERVED_WORD): Likewise.
7040         (C_TYPE_VARIABLE_SIZE): Likewise.
7041         (C_DECL_VARIABLE_SIZE): Likewise.
7042         (C_MISSING_PROTOTYPE_WARNED): Likewise.
7043         (C_SET_EXP_ORIGINAL_CODE): Likewise.
7044         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
7045         parenthesis.
7046         (C_DECL_ANTICIPATED): Likewise.
7047         (c_build_type_variant): Add parenthesis.
7048
7049 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
7050
7051         * gcc.c (option_map): Remove --version.
7052         (process_command): Handle -fversion following the GNU Coding
7053         Standards.  Partially addresses PR other/704.
7054
7055 2002-01-08  Graham Stott  <grahams@redhat.com>
7056
7057         * combine.c (combine_instructions): Fix typo.
7058
7059 2002-01-08  Graham Stott  <grahams@redhat.com>
7060
7061         * debug.h: Use "tree" and "rtx" throughout.
7062
7063         * debug.c: Likewise.
7064
7065 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
7066
7067         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
7068         constant pool, use the pool's version of the symbol instead.
7069
7070 2002-01-07  Richard Henderson  <rth@redhat.com>
7071
7072         * regrename.c (find_oldest_value_reg): Ignore the value chain if
7073         the original register was copied in a mode with a fewer number of
7074         hard registers than the desired mode.
7075         (copyprop_hardreg_forward_1): Likewise.
7076         (debug_value_data): Fix loop test.
7077         * toplev.c (parse_options_and_default_flags): Reenable
7078         -fcprop-registers at -O1.
7079
7080 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
7081
7082         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
7083         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
7084
7085         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
7086         predicates.
7087
7088         * config/rs6000/rs6000.md: Add altivec predicate patterns.
7089
7090 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7091
7092         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
7093         (pa_output_function_prologue): Output local label at the beginning of
7094         the prologue when profiling.
7095         (hppa_profile_hook): Use the local label rather than the function label.
7096         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
7097
7098 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
7099
7100         * config/rs6000/rs6000.c (print_operand): Remove extra space.
7101         (altivec_expand_unop_builtin): Fix thinko.
7102         (altivec_expand_binop_builtin): Same.
7103         (altivec_expand_ternop_builtin): Same.
7104         (altivec_expand_builtin): Same.
7105
7106 2002-01-07  Richard Henderson  <rth@redhat.com>
7107
7108         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
7109
7110 2002-01-07  Jason Merrill  <jason@redhat.com>
7111
7112         * unwind-dw2.c (execute_cfa_program): Use < again.
7113
7114 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
7115
7116         * predict.c (combine_predictions_for_insn): Avoid division by zero.
7117
7118 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
7119
7120         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
7121         Don't allow -1 - x -> ~x simplifications in the first pass.
7122
7123 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
7124
7125         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
7126         arguments.
7127         (altivec_expand_binop_builtin): Same.
7128         (altivec_expand_unop_builtin): Same.
7129         (print_operand): Fix typo.
7130         (bdesc_1arg): Add vupk* variants.
7131
7132         * rs6000.h (rs6000_builtins): Add vupk* enums.
7133
7134         * rs6000.md: Add altivec_vupk* variants.
7135
7136 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
7137
7138         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
7139         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
7140         and last update dates.
7141
7142 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
7143
7144         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
7145
7146 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7147
7148         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
7149         * config/avr/avr.h (CPP_SPEC): Likewise.
7150         (LINK_SPEC): Likewise.
7151         (CRT_BINUTILS_SPECS): Likewise.
7152         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7153         * doc/invoke.texi (AVR Options): Document them.
7154
7155 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
7156
7157         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
7158         LABEL_NUSES.
7159
7160 2002-01-07  Graham Stott  <grahams@redhat.com>
7161
7162         * config/i386/i386.h: Update copyright date.
7163         (HALF_PIC_PTR): Add parenthesis.
7164         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
7165         (CONSTANT_ALIGNMENT): Add parenthesis.
7166         (DATA_ALIGNMENT): Likewise.
7167         (LOCAL_ALIGNMENT): Likewise.
7168         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
7169         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
7170         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
7171         (HARD_REGNO_NREGS): Add paranethesis.
7172         (VALID_SSE_REG_MODE): Whitespace.
7173         (VALID_MMX_REG_MODE): Whitespace.
7174         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
7175         (ix86_hard_regno_mode_ok): Add parenthesis.
7176         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
7177         (RETURN_IN_MEMORY): Whitespace.
7178         (N_REG_CLASSES): Add parenthesis.
7179         (INTEGER_CLASS_P): Add parenthesis and wrap.
7180         (FLOAT_CLASS_P): Likewise.
7181         (SSE_CLASS_P): Likewise.
7182         (MMX_CLASS_P): Likewise.
7183         (MAYBE_INTEGER_CLASS_P): Likewise.
7184         (MAYBE_FLOAT_CLASS_P): Likewise.
7185         (MAYBE_SSE_CLASS_P): Likewise.
7186         (MAYBE_MMX_CLASS_P): Likewise.
7187         (Q_CLASS_P): Likewise.
7188         (GENERAL_REGNO_P): Uppercase macro parameter.
7189         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
7190         (FP_REGNO_P): Likewise.
7191         (ANY_FP_REGNO_P): Uppercase macro parameter.
7192         (SSE_REGNO_P): Likewise.
7193         (SSE_REGNO): Likewise.
7194         (SSE_REG_P): Likewise.
7195         (SSE_FLOAT_MODE_P): Likewise.
7196         (MMX_REGNO_P): Likewise.
7197         (MMX_REG_P):Likewise.
7198         (STACK_REG_P): Likewise.
7199         (NON_STACK_REG_P): Likewise.
7200         (STACK_TOP_P): Likewise.
7201         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
7202         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
7203         (SECONDARY_MEMORY_NEEDED): Likewise.
7204         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
7205         (MD_ASM_CLOBBERS): Whitespace and wrap.
7206         (MUST_PASS_IN_STACK): Whitespace and wrap.
7207         (RETURN_POPS_ARGS): Add parenthesis.
7208         (INIT_CUMULATIVE_ARGS): Likewise.
7209         (FUNCTION_ARG): Likewise.
7210         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
7211         (SETUP_INCOMING_VARARGS): Likewise.
7212         (BUILD_VA_LIST_TYPE):  Add parenthesis.
7213         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
7214         parenthsis.
7215         (EXPAND_BUILTIN_VA_ARG): Likewise.
7216         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
7217         (INITIALIZE_TRAMPOLINE): Add parenthesis.
7218         (INITIAL_ELIMINATION_OFFSET): Likewise.
7219         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
7220         (REGNO_OK_FOR_BASE_P): Likewise.
7221         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
7222         (REGNO_OK_FOR_DIREG_P): Likewise.
7223         (REG_OK_FOR_INDEX_P): Whitespace.
7224         (REG_OK_FOR_BASE_P): Whitespace.
7225         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
7226         parenthesis.
7227         (FIND_BASE_TERM): Fix typo.
7228         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
7229         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
7230         (SYMBOLIC_CONST; Whitespace.
7231         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
7232         (ENCODE_SECTION_INFO): Whitespace.
7233         (FINALIZE_PIC): Remove do { ... } while (0).
7234         (PROMOTE_MODE): Wrap in do { ... } while (0).
7235         (CONST_COSTS): Whitespace.
7236         (RTX_COSTS): Add paramethesis, whitespace and wrap.
7237         (REGISTER_MOVE_COST): Add parenthesis.
7238         (MEMORY_MOVE_COST): Likewise.
7239         (EXTRA_CC_MODES): Whitespace.
7240         (SELECT_CC_MODE): Add parenthesis and whitespace.
7241         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
7242         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
7243         (ASM_OUTPUT_LABEL): Add paramethesis.
7244         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
7245         (ASM_OUTPUT_REG_POP): Likewise.
7246         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
7247         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7248
7249         * config/i386/i386.c: Update copyright.
7250         (CHECK_STACK_LIMIT): Add parenthesis.
7251         (AT_BP): Uppercase macro parameter.
7252         (x86_64_int_parameter_registers): Constify.
7253         (x86_64_int_return_registers): Likewise.
7254         (ix86_compare_op0): Use rtx.
7255         (construct_container): Constify INTREG parameter.
7256         (function_arg): Use rtx.
7257
7258         * diagnostic.h: Update copyright date.
7259         (output_buffer_state): Add parenthesis.
7260         (output_buffer_format_args): Likewise.
7261
7262         * combine.c (combine_instructions): Replace XEXP (links, 0)
7263         with link.
7264
7265 2002-01-06  H.J. Lu <hjl@gnu.org>
7266
7267         * cfgcleanup.c (thread_jump): Fix 2 typos.
7268
7269 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
7270
7271         * config.gcc: Add support for --enable-altivec.
7272
7273 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7274
7275         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
7276
7277 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
7278
7279         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
7280         __objc_class_name_*.
7281
7282 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7283
7284         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
7285
7286 2002-01-06  Richard Henderson  <rth@redhat.com>
7287
7288         * reorg.c (emit_delay_sequence): Remove death notes, not merely
7289         nop them out.  Increment label reference count for REG_LABEL.
7290         (fill_slots_from_thread): Frob label reference count around
7291         delete_related_insns.
7292
7293 2002-01-05  Richard Henderson  <rth@redhat.com>
7294
7295         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
7296         jump threading.
7297
7298 2002-01-05  Richard Henderson  <rth@redhat.com>
7299
7300         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
7301         * integrate.c (output_inline_function): Likewise.
7302         * toplev.c (rest_of_compilation): Do it here instead.  Move call
7303         to remove_unnecessary_notes after emitting abstract instance.
7304         Force an emitted nested function to have its parent emited as well.
7305         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
7306         for null.
7307         (rtl_for_decl_location): Do not look at reload data structures
7308         before reload has run.
7309
7310 2002-01-05  Kazu Hirata  <kazu@hxi.com>
7311
7312         * cse.c: Fix formatting.
7313         * dwarf2asm.c: Likewise.
7314         * dwarf2out.c: Likewise.
7315         * explow.c: Likewise.
7316         * expmed.c: Likewise.
7317         * function.c: Likewise.
7318         * gcov.c: Likewise.
7319         * gencheck.c: Likewise.
7320         * genrecog.c: Likewise.
7321         * ggc-common.c: Likewise.
7322         * ggc-page.c: Likewise.
7323         * global.c: Likewise.
7324
7325 2002-01-05  Kazu Hirata  <kazu@hxi.com>
7326
7327         * combine.c: Fix formatting.
7328
7329 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
7330
7331         PR middle-end/1557
7332         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
7333
7334 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
7335
7336         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
7337         as 1 for __powerpc64__ as well.
7338
7339         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
7340
7341         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
7342         return it.
7343
7344 2002-01-05  Daniel Berlin  <dan@dberlin.org>
7345
7346         * lcm.c: Revert change, due to performance regression it causes on
7347         SPEC because it's slightly more conservative (sigh, I hate
7348         edge-based LCM).
7349
7350 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
7351
7352         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
7353
7354 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7355
7356         * doc/cppinternals.texi: Update.
7357
7358 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
7359
7360         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
7361         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
7362         negatives.
7363         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
7364         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
7365         kludge for pre-october-14th mmix versions to handle new-found bug
7366         with PUSHJ/PUSHGO and the register stack.
7367         * config/mmix/mmix.h (struct machine_function): Rename member
7368         has_call_value_without_parameters to has_call_without_parameters.
7369         All referers changed.
7370         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
7371         TARGET_MASK_BRANCH_PREDICT): New macros.
7372         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
7373         -mno-reg-stack-fill-bug-workaround.
7374         * config/mmix/mmix.md ("call"): Set struct machine member
7375         has_call_without_parameters.
7376
7377 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
7378
7379         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
7380
7381 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
7382
7383         * cfgcleanup.c: Include tm_p.h
7384         (mark_effect): Fix handling of hard register; fix handling of SET
7385
7386 2002-01-04  Kazu Hirata  <kazu@hxi.com>
7387
7388         * config/h8300/h8300.md (anonymous patterns): Check that
7389         operands are registers before using REGNO on them.
7390
7391 2002-01-03  Roland McGrath  <roland@frob.com>
7392
7393         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
7394
7395 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
7396
7397         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
7398         * c-common.h (genrtl_expr_stmt_value): Likewise.
7399         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
7400         (expand_expr_stmt_value): Add maybe_last argument.
7401         Don't warn about statement with no effect if it is the last statement
7402         in expression statement.
7403         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
7404         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
7405         expand_expr_stmt_value.
7406         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
7407         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
7408         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
7409         as maybe_last to expand_expr_stmt_value.
7410
7411 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
7412
7413         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
7414         be passed in, do not build it.
7415         (c_begin_if_stmt): New function.
7416         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
7417         * c-common.h (c_expand_start_cond): Update prototype.
7418         (c_begin_if_stmt): Prototype new function.
7419         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
7420         * c-parse.in (if_prefix): Use c_begin_if_stmt,
7421         c_begin_while_stmt and c_finish_while_stmt_cond.
7422
7423 2002-01-04  William Cohen  <wcohen@redhat.com>
7424
7425         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
7426         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
7427         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
7428         * config/pa/som.h (ASM_FILE_START): Likewise.
7429
7430 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
7431
7432         * lcm.c: Include df.h.
7433         Add available_transfer_function prototype.
7434         (compute_available): Rework to use iterative dataflow framework.
7435         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
7436         with bb_info in df.h
7437         (available_transfer_function): New function.
7438
7439         * Makefile.in (lcm.o): add df.h to dependencies.
7440
7441 2002-01-04  Richard Henderson  <rth@redhat.com>
7442
7443         * config/alpha/alpha.c (some_operand): Accept HIGH.
7444         (input_operand): Likewise; accept simple references to globals.
7445         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
7446         (alpha_const_double_ok_for_letter_p): Likewise.
7447         (alpha_extra_constraint): Likewise.
7448         (alpha_preferred_reload_class): Likewise.  Do not force
7449         symbolic constants to memory.
7450         (alpha_legitimate_address_p): Accept simple references
7451         to small_symbolic_operand.
7452         (alpha_legitimize_address): New arg scratch.  Be prepared to be
7453         called when no_new_pseudos.  Emit simple symbolic references.
7454         Split integers into low, high, and rest.
7455         (alpha_expand_mov): Use alpha_legitimize_address.
7456         (some_small_symbolic_mem_operand): New.
7457         (split_small_symbolic_mem_operand): New.
7458         * config/alpha/alpha-protos.h: Update.
7459         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
7460         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
7461         (EXTRA_CONSTRAINT): Likewise.
7462         (PREFERRED_RELOAD_CLASS): Likewise.
7463         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
7464         (PREDICATE_CODES): Update.
7465         * config/alpha/alpha.md: New post-reload splitters to convert
7466         simplfied symbolic operands to the form that references $29.
7467         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
7468         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
7469
7470 2002-01-03  Richard Henderson  <rth@redhat.com>
7471
7472         * local-alloc.c (function_invariant_p): Update commentary.
7473
7474 2002-01-04  H.J. Lu <hjl@gnu.org>
7475
7476         * toplev.c (rest_of_compilation): Fix a typo when calling
7477         cleanup_cfg.
7478
7479 2002-01-03  Kazu Hirata  <kazu@hxi.com>
7480
7481         * c-common.c: Fix formatting.
7482         * diagnostic.c: Likewise.
7483         * doloop.c: Likewise.
7484         * dwarf2out.c: Likewise.
7485
7486 2002-01-03  Kazu Hirata  <kazu@hxi.com>
7487
7488         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
7489         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
7490
7491 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7492
7493         * cpperror.c: Update comments and copyright.
7494         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
7495         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
7496
7497 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7498
7499         * collect2.c (main): Use strcmp when testing for "-shared".
7500
7501 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7502
7503         * cppmacro.c: Don't include intl.h.  Update comments.
7504         (new_number_token): Allocate enough buffer for 64-bit unsigned
7505         integers; update prototype.
7506         * cppmain.c: Update comments.
7507
7508 2002-01-03  William Cohen  <wcohen@redhat.com>
7509
7510         * function.h (struct function): Add profile.
7511         (current_function_profile): New.
7512         doc/extend.texi: Update documentation.
7513         * final.c (final_start_function): Use current_function_profile
7514         instead of profile_flag.
7515         (profile_after_prologue): Likewise.
7516         * function.c (expand_function_start): Likewise.
7517         (expand_function_start): Likewise.
7518         * config/alpha/alpha.c (direct_call_operand):
7519         (alpha_does_function_need_gp): Likewise.
7520         (alpha_expand_prologue): Likewise.
7521         * config/arm/arm.c (arm_expand_prologue): Likewise.
7522         thumb_expand_prologue: Likewise.
7523         * config/d30v/d30v.c (d30v_stack_info): Likewise.
7524         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
7525         (fr30_expand_prologue): Likewise.
7526         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
7527         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
7528         * config/i386/i386.h (FINALIZE_PIC): Likewise.
7529         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
7530         * config/i960/i960.c (i960_output_function_prologue): Likewise.
7531         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
7532         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
7533         (m32r_expand_prologue): Likewise.
7534         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
7535         (m88k_expand_prologue): Likewise.
7536         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
7537         * config/mips/mips.c (compute_frame_size): Likewise.
7538         (mips_expand_prologue): Likewise.
7539         (mips_can_use_return_insn): Likewise.
7540         * config/pa/elf.h (ASM_FILE_START): Likewise.
7541         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
7542         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
7543         * config/pa/som.h (ASM_FILE_START): Likewise.
7544         * config/romp/romp.c (romp_using_r14): Likewise.
7545         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
7546         (rs6000_stack_info): Likewise.
7547         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7548         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
7549         * config/v850/v850.c (compute_register_save_size): Likewise.
7550
7551 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
7552
7553         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
7554         gen_lowpart_common fails, use gen_lowpart_SUBREG.
7555
7556 2002-01-03  Turly O'Connor  <turly@apple.com>
7557
7558         * darwin.c (machopic_output_possible_stub_label): Don't generate
7559         stub routines for pseudo-stubs which we've just defined.
7560
7561 2002-01-03  Kazu Hirata  <kazu@hxi.com>
7562
7563         * builtins.c: Fix formatting.
7564         * c-typeck.c: Likewise.
7565         * combine.c: Likewise.
7566         * expr.c: Likewise.
7567         * loop.c: Likewise.
7568
7569 2002-01-03  Andreas Schwab  <schwab@suse.de>
7570
7571         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
7572         and return true if _cpp_push_next_buffer pushed a new include
7573         file.
7574         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
7575         _cpp_pop_file_buffer did not push a new file.
7576         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
7577
7578 2002-01-02  Eric Christopher  <echristo@redhat.com>
7579
7580         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
7581         FIND_REG_INC_NOTE call. Update copyright.
7582         * loop.c (canonicalize_condition): Ditto.
7583         * reorg.c (delete_scheduled_jump): Ditto.
7584
7585 2002-01-03  Kazu Hirata  <kazu@hxi.com>
7586
7587         * gcse.c: Fix formatting.
7588
7589 2002-01-03  Graham Stott  <grahams@redhat.com>
7590
7591         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
7592         forward defs for struct tags rtx_def, union_tree, rtvec_def
7593         also output corresponding typedefs for rtx, tree, and rtvec.
7594
7595         * system.h: Move forward defs for struct tags rtx_def, union_tree,
7596         rtvec_def along with corresponding typedefs for rtx, tree, and
7597         rtvec to config.h, hconfig.h, tconfig.h.
7598
7599 2002-01-03  Graham Stott  <grahams@redhat.com>
7600
7601         * tree.h: Update copyright date.
7602         (IS_EXPR_CODE_CLASS): Add parenthesis.
7603         (TREE_SET_CODE): Add whitespace.
7604         (TREE_CHECK): Add parenthesis.
7605         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
7606         (CST_OR_CONSTRUCTOR_CHECK):
7607         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
7608         (TREE_SYMBOL_REFERENCED): Whitespace.
7609         (INT_CST_LT): Likewise.
7610         (INT_CST_LT_UNSIGNED): Likewise.
7611         (tree_real_cst): Unwrap comment.
7612         (tree_string): Likewise.
7613         (tree_complex): Likewise.
7614         (IDENTIFIER_POINTER): correct cast.
7615         (SAVE_EXPR_CONTEXT): Whitespace.
7616         (EXPR_WFL_FILENAME_NODE): Likewise.
7617         (EXPR_WFL_FILENAME): Remove parenthesis.
7618         (DECL_ORIGIN): Add parenthesis.
7619         (DECL_FROM_INLINE): Use NULL_TREE.
7620         (build_int_2): Whitespace.
7621         (build_type_variant): Add parenthesis.
7622
7623         * gcc/jcf-parse.c: Update copyright date.
7624         (yyparse): Constify resource_filename.
7625
7626 2002-01-03  Graham Stott  <grahams@redhat.com>
7627
7628         * rtl.h: Update copyright date.
7629         (RTL_CHECK1): Wrap long line.
7630         (RTL_CHECK2): Likewise.
7631         (RTL_CHECKC1): Wrap long line and whitespace.
7632         (RTL_CHECKC2): Likewise.
7633         (XWINT): Whitespace.
7634         (XINT): Likewise.
7635         (XSTR): Likewise.
7636         (XEXP): Likewise.
7637         (XVEC): Likewise.
7638         (XMODE): Likewise.
7639         (XBITMAP): Likewise.
7640         (XTREE): Likewise.
7641         (XBBDEF): Likewise.
7642         (XTMPL): Likewise.
7643         (X0WINT): Likewise.
7644         (X0INT):Likewise.
7645         (X0UINT): Likewise.
7646         (X0STR): Likewise.
7647         (X0EXP): Likewise.
7648         (X0VEC): Likewise.
7649         (X0MODE): Likewise.
7650         (X0BITMAP): Likewise.
7651         (X0TREE): Likewise.
7652         (X0BBDEF): Likewise.
7653         (X0ADVFLAGS): Likewise.
7654         (X0CSELIB): Likewise.
7655         (X0MEMATTR): Likewise.
7656         (XCWINT): Likewise.
7657         (XCINT): Likewise.
7658         (XCUINT): Likewise.
7659         (XCSTR): Likewise.
7660         (XCEXP): Likewise.
7661         (XCVEC): Likewise.
7662         (XCMODE): Likewise.
7663         (XCBITMAP): Likewise.
7664         (XCTREE): Likewise.
7665         (XCBBDEF): Likewise.
7666         (XCADVFLAGS): Likewise.
7667         (XCCSELIB): Likewise.
7668         (XC2EXP): Likewise.
7669         (INSN_UID): Likewise.
7670         (PREV_INSN): Likewise.
7671         (PATTERN): Likewise.
7672         (INSN_CODE): Likewise.
7673         (PUT_REG_NOTE_KIND): Likewise.
7674         (CODE_LABEL_NUMBER): Likewise.
7675         (NOTE_SOURCE_FILE): Likewise.
7676         (NOTE_BLOCK): Likewise.
7677         (NOTE_EH_HANDLER): Likewise.
7678         (NOTE_RANGE_INFO): Likewise.
7679         (NOTE_LIVE_INFO): Likewise.
7680         (NOTE_BASIC_BLOCK): Likewise.
7681         (NOTE_EXPECTED_VALUE): Likewise.
7682         (NOTE_LINE_NUMBER): Likewise.
7683         (LABEL_NAME): Likewise.
7684         (LABEL_NUSES): Likewise.
7685         (LABEL_ALTERNATE_NAME): Likewise.
7686         (ADDRESSOF_DECL): Likewise.
7687         (JUMP_LABEL): Likewise.
7688         (LABEL_NEXTREF): Likewise.
7689         (REGNO): Likewise.
7690         (ORIGINAL_REGNO: Likewise.
7691         (HARD_REGISTER_NUM_P): Add parenthesis.
7692         (SUBREG_REG): Whitespace.
7693         (SUBREG_BYTE): Likewise.
7694         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
7695         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
7696         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
7697         (ASM_OPERANDS_INPUT_VEC): Likewise.
7698         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
7699         (ASM_OPERANDS_INPUT): Likewise.
7700         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
7701         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
7702         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
7703         (ASM_OPERANDS_INPUT_MODE): Likewise.
7704         (ASM_OPERANDS_SOURCE_FILE): Likewise.
7705         (ASM_OPERANDS_SOURCE_LINE): Likewise.
7706         (MEM_SET_IN_STRUCT_P): Minor reformat.
7707         (TRAP_CONDITION): Whitespace.
7708         (TRAP_CODE): Likewise.
7709         (COND_EXEC_TEST): Likewise.
7710         (COND_EXEC_CODE): Likewise.
7711         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
7712         (PHI_NODE_P): Add parenthesis.
7713         (plus_constant): Whitespace and add parenthesis.
7714
7715 2002-01-03  Kazu Hirata  <kazu@hxi.com>
7716
7717         * config/avr/avr.c: Fix comment typos.
7718         * config/c4x/c4x.md: Likewise.
7719         * config/dsp16xx/dsp16xx.h: Likewise.
7720         * config/dsp16xx/dsp16xx.md: Likewise.
7721         * config/i386/i386.md: Likewise.
7722         * config/ia64/ia64.c: Likewise.
7723         * config/m32r/m32r.h: Likewise.
7724         * config/m68hc11/m68hc11.md: Likewise.
7725         * config/mmix/mmix.c: Likewise.
7726         * config/mn10200/mn10200.c: Likewise.
7727         * config/romp/romp.c: Likewise.
7728         * config/sh/sh.c: Likewise.
7729         * config/stormy16/stormy16.c: Likewise.
7730         * config/stormy16/stormy16.h: Likewise.
7731         * config/stormy16/stormy16.md: Likewise.
7732
7733 2002-01-03  Graham Stott  <grahams@redhat.com>
7734
7735         * loop.h: Update copyright date.
7736         (LOOP_MOVABLES): Fix typo.
7737         (LOOP_REGS): Likewise.
7738         (LOOP_IVS): Likewise.
7739
7740 2002-01-03  Graham Stott  <grahams@redhat.com>
7741
7742         * cppinit.c: Update copyright date.
7743         Don't include output.h
7744         * Makefile.in: Update copyright date.
7745         Update dependency.
7746
7747 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7748
7749         PR c/5226
7750         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
7751         (-pthread) Add to RS/6000 options.
7752
7753 2002-01-02  Kazu Hirata  <kazu@hxi.com>
7754
7755         * except.c: Fix comment typos.
7756         * loop.c: Likewise.
7757         * varasm.c: Likewise.
7758         * doc/tm.texi: Fix a typo.
7759
7760 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
7761
7762         * c-typeck.c (output_init_element): Allow initializing static storage
7763         duration objects with compound literals.
7764
7765 2002-01-02  Richard Henderson  <rth@redhat.com>
7766
7767         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
7768         after abusing it.
7769
7770 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7771
7772         * gcc.c (default_compilers): Const-ify.
7773         * mips-tdump.c (stab_names): Likewise.
7774         * mips-tfile.c (map_coff_types, map_coff_storage,
7775         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
7776         pseudo_ops_t, pseudo_ops): Likewise.
7777         * protoize.c (default_include): Likewise
7778
7779         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
7780         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
7781         Add array size in declaration.
7782         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
7783         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
7784         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
7785         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
7786         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
7787         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
7788         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
7789         emtens, make_nan): Const-ify.
7790         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
7791         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
7792
7793 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
7794
7795         * config.gcc (ia64-*-*): Set extra_headers.
7796         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
7797         * config/alpha/t-osf: Remove.
7798         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
7799
7800 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
7801
7802         * config/rs6000/t-aix43: Revert previous change.
7803
7804 2002-01-02  Jason Merrill  <jason@redhat.com>
7805
7806         * c-decl.c (c_expand_body): Call outlining_inline_function when
7807         emitting an inline function out of line.
7808
7809 2002-01-02  Richard Henderson  <rth@redhat.com>
7810
7811         * dwarf2out.c (limbo_die_node): Add created_for member.
7812         (new_die): New argument created_for.  Update all callers.
7813         (mark_limbo_die_list): New.
7814         (dwarf2out_init): Register limbo_die_list as a root.
7815         (dwarf2out_finish): Force insert limbo dies into their function
7816         context.
7817
7818 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
7819
7820         PR c++/5089
7821         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
7822
7823 2002-01-02  Kazu Hirata  <kazu@hxi.com>
7824
7825         * config/h8300/fixunssfsi.c: Update copyright.
7826         Fix comment typos.
7827         Fix formatting.
7828         * config/h8300/h8300.c: Update copyright.
7829         Eliminate warnings.
7830
7831 2002-01-02  Kazu Hirata  <kazu@hxi.com>
7832
7833         * config/romp/romp.c: Fix comment formatting.
7834         * config/romp/romp.h: Likewise.
7835         * config/romp/romp.md: Likewise.
7836         * config/s390/s390.c: Likewise.
7837         * config/stormy16/stormy16.c: Likewise.
7838         * config/stormy16/stormy16.h: Likewise.
7839
7840 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
7841
7842         * c-common.h (genrtl_expr_stmt_value): Declare.
7843         * c-semantics.c (genrtl_goto_stmt): Redirect to...
7844         (genrtl_goto_stmt_value): ... this new function.  Pass new
7845         argument down to expand_expr_stmt_value, taking
7846         TREE_ADDRESSABLE into account.
7847         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
7848         STMT_EXPR as addressable, i.e., one whose result we want.
7849         * expr.c (expand_expr): Don't save expression statement value
7850         of labeled_blocks or loop_exprs.
7851         * stmt.c (expand_expr_stmt): Redirect to...
7852         (expand_expr_stmt_value): ... this new function.  Use new
7853         argument to tell whether to save expression value.
7854         (expand_end_stmt_expr): Reset last_expr_type and
7855         last_expr_value if we don't have either.
7856         * tree-inline.c (declare_return_variable): Mark its use
7857         statement as addressable.
7858         * tree.h: Document new use of TREE_ADDRESSABLE.
7859         (expand_expr_stmt_value): Declare.
7860
7861 2002-01-01  Tom Rix  <trix@redhat.com>
7862
7863         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
7864         rs6000_emit_allocate_stack.
7865
7866 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
7867
7868         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
7869         ${srcdir}/ginclude/ to every entry in extra_headers.
7870         * configure: Regenerate.
7871         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
7872         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
7873         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
7874         * ginclude/proto.h: Rename to config/convex/proto.h.
7875
7876 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7877
7878         * attribs.c (handle_vector_size_attribute): Use host_integerp
7879         and tree_int_cst; remove warnings.
7880         * caller-save.c (insert_restore): Add cast to get rid of warning.
7881         (insert_save): Likewise.
7882         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
7883         * regmove.c (find_matches): Add temporary var to kill a warning.
7884
7885 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
7886
7887         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
7888         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
7889         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
7890         (vms-dwarf2eh.o): Add Makefile rule.
7891         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
7892         * config/alpha/vms-dwarf2eh.asm: New file.
7893
7894         * gcc.c (delete_if_ordinary): Delete all versions.
7895
7896 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
7897
7898         * config/mmix/mmix.md: Update FIXME to not mention
7899         define_constants.
7900         (MMIX_rJ_REGNUM): New define_constants constant.
7901         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
7902         "*movdicc_real"): Adjust contraints formatting.
7903         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
7904         for branch prediction.
7905         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
7906         output template.
7907         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
7908         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
7909         number.  Delete related FIXMEs.
7910         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
7911         from number to MMIX_rJ_REGNUM.
7912         (TARGET_MASK_BRANCH_PREDICT): New.
7913         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
7914         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
7915         value.  Add -mbranch-predict and -mno-branch-predict.
7916         (TARGET_VERSION): Drop date.
7917         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
7918         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
7919         for finding out global symbols.
7920         (mmix_asm_output_labelref): Revert condition for global symbol.
7921         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
7922         (mmix_print_operand_punct_valid_p): A '+' is valid.
7923
7924 See ChangeLog.6 for earlier changes.