OSDN Git Service

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