OSDN Git Service

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