OSDN Git Service

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