OSDN Git Service

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