OSDN Git Service

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