OSDN Git Service

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