OSDN Git Service

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